Class TimestampValue.Builder

  • All Implemented Interfaces:
    TimestampValueOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    TimestampValue

    public static final class TimestampValue.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
    implements TimestampValueOrBuilder
     Timestamp value type.
     
    Protobuf type google.cloud.contentwarehouse.v1.TimestampValue
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
      • clear

        public TimestampValue.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
      • getDefaultInstanceForType

        public TimestampValue getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public TimestampValue build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public TimestampValue buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public TimestampValue.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
      • setField

        public TimestampValue.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
      • clearField

        public TimestampValue.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
      • clearOneof

        public TimestampValue.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
      • setRepeatedField

        public TimestampValue.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
      • addRepeatedField

        public TimestampValue.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
      • mergeFrom

        public TimestampValue.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TimestampValue.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
      • mergeFrom

        public TimestampValue.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TimestampValue.Builder>
        Throws:
        IOException
      • hasTimestampValue

        public boolean hasTimestampValue()
         Timestamp value
         
        .google.protobuf.Timestamp timestamp_value = 1;
        Specified by:
        hasTimestampValue in interface TimestampValueOrBuilder
        Returns:
        Whether the timestampValue field is set.
      • getTimestampValue

        public com.google.protobuf.Timestamp getTimestampValue()
         Timestamp value
         
        .google.protobuf.Timestamp timestamp_value = 1;
        Specified by:
        getTimestampValue in interface TimestampValueOrBuilder
        Returns:
        The timestampValue.
      • setTimestampValue

        public TimestampValue.Builder setTimestampValue​(com.google.protobuf.Timestamp value)
         Timestamp value
         
        .google.protobuf.Timestamp timestamp_value = 1;
      • setTimestampValue

        public TimestampValue.Builder setTimestampValue​(com.google.protobuf.Timestamp.Builder builderForValue)
         Timestamp value
         
        .google.protobuf.Timestamp timestamp_value = 1;
      • mergeTimestampValue

        public TimestampValue.Builder mergeTimestampValue​(com.google.protobuf.Timestamp value)
         Timestamp value
         
        .google.protobuf.Timestamp timestamp_value = 1;
      • clearTimestampValue

        public TimestampValue.Builder clearTimestampValue()
         Timestamp value
         
        .google.protobuf.Timestamp timestamp_value = 1;
      • getTimestampValueBuilder

        public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder()
         Timestamp value
         
        .google.protobuf.Timestamp timestamp_value = 1;
      • getTimestampValueOrBuilder

        public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder()
         Timestamp value
         
        .google.protobuf.Timestamp timestamp_value = 1;
        Specified by:
        getTimestampValueOrBuilder in interface TimestampValueOrBuilder
      • hasTextValue

        public boolean hasTextValue()
         The string must represent a valid instant in UTC and is parsed using
         java.time.format.DateTimeFormatter.ISO_INSTANT.
         e.g. "2013-09-29T18:46:19Z"
         
        string text_value = 2;
        Specified by:
        hasTextValue in interface TimestampValueOrBuilder
        Returns:
        Whether the textValue field is set.
      • getTextValue

        public String getTextValue()
         The string must represent a valid instant in UTC and is parsed using
         java.time.format.DateTimeFormatter.ISO_INSTANT.
         e.g. "2013-09-29T18:46:19Z"
         
        string text_value = 2;
        Specified by:
        getTextValue in interface TimestampValueOrBuilder
        Returns:
        The textValue.
      • getTextValueBytes

        public com.google.protobuf.ByteString getTextValueBytes()
         The string must represent a valid instant in UTC and is parsed using
         java.time.format.DateTimeFormatter.ISO_INSTANT.
         e.g. "2013-09-29T18:46:19Z"
         
        string text_value = 2;
        Specified by:
        getTextValueBytes in interface TimestampValueOrBuilder
        Returns:
        The bytes for textValue.
      • setTextValue

        public TimestampValue.Builder setTextValue​(String value)
         The string must represent a valid instant in UTC and is parsed using
         java.time.format.DateTimeFormatter.ISO_INSTANT.
         e.g. "2013-09-29T18:46:19Z"
         
        string text_value = 2;
        Parameters:
        value - The textValue to set.
        Returns:
        This builder for chaining.
      • clearTextValue

        public TimestampValue.Builder clearTextValue()
         The string must represent a valid instant in UTC and is parsed using
         java.time.format.DateTimeFormatter.ISO_INSTANT.
         e.g. "2013-09-29T18:46:19Z"
         
        string text_value = 2;
        Returns:
        This builder for chaining.
      • setTextValueBytes

        public TimestampValue.Builder setTextValueBytes​(com.google.protobuf.ByteString value)
         The string must represent a valid instant in UTC and is parsed using
         java.time.format.DateTimeFormatter.ISO_INSTANT.
         e.g. "2013-09-29T18:46:19Z"
         
        string text_value = 2;
        Parameters:
        value - The bytes for textValue to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final TimestampValue.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
      • mergeUnknownFields

        public final TimestampValue.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>