Class Value.Builder

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

    public static final class Value.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
    implements ValueOrBuilder
     `Value` represents a dynamically typed value which can be either be
     a float, a integer, a string, or a datetime value. A producer of value is
     expected to set one of these variants. Absence of any variant indicates an
     error.
     
    Protobuf type google.cloud.contentwarehouse.v1.Value
    • 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<Value.Builder>
      • clear

        public Value.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<Value.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<Value.Builder>
      • getDefaultInstanceForType

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

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

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

        public Value.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<Value.Builder>
      • setField

        public Value.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<Value.Builder>
      • clearField

        public Value.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<Value.Builder>
      • clearOneof

        public Value.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<Value.Builder>
      • setRepeatedField

        public Value.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<Value.Builder>
      • addRepeatedField

        public Value.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<Value.Builder>
      • mergeFrom

        public Value.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<Value.Builder>
      • isInitialized

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

        public Value.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<Value.Builder>
        Throws:
        IOException
      • hasFloatValue

        public boolean hasFloatValue()
         Represents a float value.
         
        float float_value = 1;
        Specified by:
        hasFloatValue in interface ValueOrBuilder
        Returns:
        Whether the floatValue field is set.
      • getFloatValue

        public float getFloatValue()
         Represents a float value.
         
        float float_value = 1;
        Specified by:
        getFloatValue in interface ValueOrBuilder
        Returns:
        The floatValue.
      • setFloatValue

        public Value.Builder setFloatValue​(float value)
         Represents a float value.
         
        float float_value = 1;
        Parameters:
        value - The floatValue to set.
        Returns:
        This builder for chaining.
      • clearFloatValue

        public Value.Builder clearFloatValue()
         Represents a float value.
         
        float float_value = 1;
        Returns:
        This builder for chaining.
      • hasIntValue

        public boolean hasIntValue()
         Represents a integer value.
         
        int32 int_value = 2;
        Specified by:
        hasIntValue in interface ValueOrBuilder
        Returns:
        Whether the intValue field is set.
      • getIntValue

        public int getIntValue()
         Represents a integer value.
         
        int32 int_value = 2;
        Specified by:
        getIntValue in interface ValueOrBuilder
        Returns:
        The intValue.
      • setIntValue

        public Value.Builder setIntValue​(int value)
         Represents a integer value.
         
        int32 int_value = 2;
        Parameters:
        value - The intValue to set.
        Returns:
        This builder for chaining.
      • clearIntValue

        public Value.Builder clearIntValue()
         Represents a integer value.
         
        int32 int_value = 2;
        Returns:
        This builder for chaining.
      • hasStringValue

        public boolean hasStringValue()
         Represents a string value.
         
        string string_value = 3;
        Specified by:
        hasStringValue in interface ValueOrBuilder
        Returns:
        Whether the stringValue field is set.
      • getStringValue

        public String getStringValue()
         Represents a string value.
         
        string string_value = 3;
        Specified by:
        getStringValue in interface ValueOrBuilder
        Returns:
        The stringValue.
      • getStringValueBytes

        public com.google.protobuf.ByteString getStringValueBytes()
         Represents a string value.
         
        string string_value = 3;
        Specified by:
        getStringValueBytes in interface ValueOrBuilder
        Returns:
        The bytes for stringValue.
      • setStringValue

        public Value.Builder setStringValue​(String value)
         Represents a string value.
         
        string string_value = 3;
        Parameters:
        value - The stringValue to set.
        Returns:
        This builder for chaining.
      • clearStringValue

        public Value.Builder clearStringValue()
         Represents a string value.
         
        string string_value = 3;
        Returns:
        This builder for chaining.
      • setStringValueBytes

        public Value.Builder setStringValueBytes​(com.google.protobuf.ByteString value)
         Represents a string value.
         
        string string_value = 3;
        Parameters:
        value - The bytes for stringValue to set.
        Returns:
        This builder for chaining.
      • hasEnumValue

        public boolean hasEnumValue()
         Represents an enum value.
         
        .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
        Specified by:
        hasEnumValue in interface ValueOrBuilder
        Returns:
        Whether the enumValue field is set.
      • getEnumValue

        public EnumValue getEnumValue()
         Represents an enum value.
         
        .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
        Specified by:
        getEnumValue in interface ValueOrBuilder
        Returns:
        The enumValue.
      • setEnumValue

        public Value.Builder setEnumValue​(EnumValue value)
         Represents an enum value.
         
        .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
      • setEnumValue

        public Value.Builder setEnumValue​(EnumValue.Builder builderForValue)
         Represents an enum value.
         
        .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
      • mergeEnumValue

        public Value.Builder mergeEnumValue​(EnumValue value)
         Represents an enum value.
         
        .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
      • clearEnumValue

        public Value.Builder clearEnumValue()
         Represents an enum value.
         
        .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
      • getEnumValueBuilder

        public EnumValue.Builder getEnumValueBuilder()
         Represents an enum value.
         
        .google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
      • hasDatetimeValue

        public boolean hasDatetimeValue()
         Represents a datetime value.
         
        .google.type.DateTime datetime_value = 5;
        Specified by:
        hasDatetimeValue in interface ValueOrBuilder
        Returns:
        Whether the datetimeValue field is set.
      • getDatetimeValue

        public com.google.type.DateTime getDatetimeValue()
         Represents a datetime value.
         
        .google.type.DateTime datetime_value = 5;
        Specified by:
        getDatetimeValue in interface ValueOrBuilder
        Returns:
        The datetimeValue.
      • setDatetimeValue

        public Value.Builder setDatetimeValue​(com.google.type.DateTime value)
         Represents a datetime value.
         
        .google.type.DateTime datetime_value = 5;
      • setDatetimeValue

        public Value.Builder setDatetimeValue​(com.google.type.DateTime.Builder builderForValue)
         Represents a datetime value.
         
        .google.type.DateTime datetime_value = 5;
      • mergeDatetimeValue

        public Value.Builder mergeDatetimeValue​(com.google.type.DateTime value)
         Represents a datetime value.
         
        .google.type.DateTime datetime_value = 5;
      • clearDatetimeValue

        public Value.Builder clearDatetimeValue()
         Represents a datetime value.
         
        .google.type.DateTime datetime_value = 5;
      • getDatetimeValueBuilder

        public com.google.type.DateTime.Builder getDatetimeValueBuilder()
         Represents a datetime value.
         
        .google.type.DateTime datetime_value = 5;
      • getDatetimeValueOrBuilder

        public com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder()
         Represents a datetime value.
         
        .google.type.DateTime datetime_value = 5;
        Specified by:
        getDatetimeValueOrBuilder in interface ValueOrBuilder
      • hasTimestampValue

        public boolean hasTimestampValue()
         Represents a timestamp value.
         
        .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
        Specified by:
        hasTimestampValue in interface ValueOrBuilder
        Returns:
        Whether the timestampValue field is set.
      • getTimestampValue

        public TimestampValue getTimestampValue()
         Represents a timestamp value.
         
        .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
        Specified by:
        getTimestampValue in interface ValueOrBuilder
        Returns:
        The timestampValue.
      • setTimestampValue

        public Value.Builder setTimestampValue​(TimestampValue value)
         Represents a timestamp value.
         
        .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
      • setTimestampValue

        public Value.Builder setTimestampValue​(TimestampValue.Builder builderForValue)
         Represents a timestamp value.
         
        .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
      • mergeTimestampValue

        public Value.Builder mergeTimestampValue​(TimestampValue value)
         Represents a timestamp value.
         
        .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
      • clearTimestampValue

        public Value.Builder clearTimestampValue()
         Represents a timestamp value.
         
        .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
      • getTimestampValueBuilder

        public TimestampValue.Builder getTimestampValueBuilder()
         Represents a timestamp value.
         
        .google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
      • hasBooleanValue

        public boolean hasBooleanValue()
         Represents a boolean value.
         
        bool boolean_value = 7;
        Specified by:
        hasBooleanValue in interface ValueOrBuilder
        Returns:
        Whether the booleanValue field is set.
      • getBooleanValue

        public boolean getBooleanValue()
         Represents a boolean value.
         
        bool boolean_value = 7;
        Specified by:
        getBooleanValue in interface ValueOrBuilder
        Returns:
        The booleanValue.
      • setBooleanValue

        public Value.Builder setBooleanValue​(boolean value)
         Represents a boolean value.
         
        bool boolean_value = 7;
        Parameters:
        value - The booleanValue to set.
        Returns:
        This builder for chaining.
      • clearBooleanValue

        public Value.Builder clearBooleanValue()
         Represents a boolean value.
         
        bool boolean_value = 7;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Value.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<Value.Builder>
      • mergeUnknownFields

        public final Value.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<Value.Builder>