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
     Set of primitive values supported by the system.
     Note that for the purposes of inspection or transformation, the number
     of bytes considered to comprise a 'Value' is based on its representation
     as a UTF-8 encoded string. For example, if 'integer_value' is set to
     123456789, the number of bytes would be counted as 9, even though an
     int64 only holds up to 8 bytes of data.
     
    Protobuf type google.privacy.dlp.v2.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
      • hasIntegerValue

        public boolean hasIntegerValue()
         integer
         
        int64 integer_value = 1;
        Specified by:
        hasIntegerValue in interface ValueOrBuilder
        Returns:
        Whether the integerValue field is set.
      • getIntegerValue

        public long getIntegerValue()
         integer
         
        int64 integer_value = 1;
        Specified by:
        getIntegerValue in interface ValueOrBuilder
        Returns:
        The integerValue.
      • setIntegerValue

        public Value.Builder setIntegerValue​(long value)
         integer
         
        int64 integer_value = 1;
        Parameters:
        value - The integerValue to set.
        Returns:
        This builder for chaining.
      • clearIntegerValue

        public Value.Builder clearIntegerValue()
         integer
         
        int64 integer_value = 1;
        Returns:
        This builder for chaining.
      • hasFloatValue

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

        public double getFloatValue()
         float
         
        double float_value = 2;
        Specified by:
        getFloatValue in interface ValueOrBuilder
        Returns:
        The floatValue.
      • setFloatValue

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

        public Value.Builder clearFloatValue()
         float
         
        double float_value = 2;
        Returns:
        This builder for chaining.
      • hasStringValue

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

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

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

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

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

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

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

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

        public Value.Builder clearBooleanValue()
         boolean
         
        bool boolean_value = 4;
        Returns:
        This builder for chaining.
      • hasTimestampValue

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

        public com.google.protobuf.Timestamp getTimestampValue()
         timestamp
         
        .google.protobuf.Timestamp timestamp_value = 5;
        Specified by:
        getTimestampValue in interface ValueOrBuilder
        Returns:
        The timestampValue.
      • setTimestampValue

        public Value.Builder setTimestampValue​(com.google.protobuf.Timestamp value)
         timestamp
         
        .google.protobuf.Timestamp timestamp_value = 5;
      • setTimestampValue

        public Value.Builder setTimestampValue​(com.google.protobuf.Timestamp.Builder builderForValue)
         timestamp
         
        .google.protobuf.Timestamp timestamp_value = 5;
      • mergeTimestampValue

        public Value.Builder mergeTimestampValue​(com.google.protobuf.Timestamp value)
         timestamp
         
        .google.protobuf.Timestamp timestamp_value = 5;
      • clearTimestampValue

        public Value.Builder clearTimestampValue()
         timestamp
         
        .google.protobuf.Timestamp timestamp_value = 5;
      • getTimestampValueBuilder

        public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder()
         timestamp
         
        .google.protobuf.Timestamp timestamp_value = 5;
      • getTimestampValueOrBuilder

        public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder()
         timestamp
         
        .google.protobuf.Timestamp timestamp_value = 5;
        Specified by:
        getTimestampValueOrBuilder in interface ValueOrBuilder
      • hasTimeValue

        public boolean hasTimeValue()
         time of day
         
        .google.type.TimeOfDay time_value = 6;
        Specified by:
        hasTimeValue in interface ValueOrBuilder
        Returns:
        Whether the timeValue field is set.
      • getTimeValue

        public com.google.type.TimeOfDay getTimeValue()
         time of day
         
        .google.type.TimeOfDay time_value = 6;
        Specified by:
        getTimeValue in interface ValueOrBuilder
        Returns:
        The timeValue.
      • setTimeValue

        public Value.Builder setTimeValue​(com.google.type.TimeOfDay value)
         time of day
         
        .google.type.TimeOfDay time_value = 6;
      • setTimeValue

        public Value.Builder setTimeValue​(com.google.type.TimeOfDay.Builder builderForValue)
         time of day
         
        .google.type.TimeOfDay time_value = 6;
      • mergeTimeValue

        public Value.Builder mergeTimeValue​(com.google.type.TimeOfDay value)
         time of day
         
        .google.type.TimeOfDay time_value = 6;
      • clearTimeValue

        public Value.Builder clearTimeValue()
         time of day
         
        .google.type.TimeOfDay time_value = 6;
      • getTimeValueBuilder

        public com.google.type.TimeOfDay.Builder getTimeValueBuilder()
         time of day
         
        .google.type.TimeOfDay time_value = 6;
      • getTimeValueOrBuilder

        public com.google.type.TimeOfDayOrBuilder getTimeValueOrBuilder()
         time of day
         
        .google.type.TimeOfDay time_value = 6;
        Specified by:
        getTimeValueOrBuilder in interface ValueOrBuilder
      • hasDateValue

        public boolean hasDateValue()
         date
         
        .google.type.Date date_value = 7;
        Specified by:
        hasDateValue in interface ValueOrBuilder
        Returns:
        Whether the dateValue field is set.
      • getDateValue

        public com.google.type.Date getDateValue()
         date
         
        .google.type.Date date_value = 7;
        Specified by:
        getDateValue in interface ValueOrBuilder
        Returns:
        The dateValue.
      • setDateValue

        public Value.Builder setDateValue​(com.google.type.Date value)
         date
         
        .google.type.Date date_value = 7;
      • setDateValue

        public Value.Builder setDateValue​(com.google.type.Date.Builder builderForValue)
         date
         
        .google.type.Date date_value = 7;
      • mergeDateValue

        public Value.Builder mergeDateValue​(com.google.type.Date value)
         date
         
        .google.type.Date date_value = 7;
      • clearDateValue

        public Value.Builder clearDateValue()
         date
         
        .google.type.Date date_value = 7;
      • getDateValueBuilder

        public com.google.type.Date.Builder getDateValueBuilder()
         date
         
        .google.type.Date date_value = 7;
      • getDateValueOrBuilder

        public com.google.type.DateOrBuilder getDateValueOrBuilder()
         date
         
        .google.type.Date date_value = 7;
        Specified by:
        getDateValueOrBuilder in interface ValueOrBuilder
      • hasDayOfWeekValue

        public boolean hasDayOfWeekValue()
         day of week
         
        .google.type.DayOfWeek day_of_week_value = 8;
        Specified by:
        hasDayOfWeekValue in interface ValueOrBuilder
        Returns:
        Whether the dayOfWeekValue field is set.
      • getDayOfWeekValueValue

        public int getDayOfWeekValueValue()
         day of week
         
        .google.type.DayOfWeek day_of_week_value = 8;
        Specified by:
        getDayOfWeekValueValue in interface ValueOrBuilder
        Returns:
        The enum numeric value on the wire for dayOfWeekValue.
      • setDayOfWeekValueValue

        public Value.Builder setDayOfWeekValueValue​(int value)
         day of week
         
        .google.type.DayOfWeek day_of_week_value = 8;
        Parameters:
        value - The enum numeric value on the wire for dayOfWeekValue to set.
        Returns:
        This builder for chaining.
      • getDayOfWeekValue

        public com.google.type.DayOfWeek getDayOfWeekValue()
         day of week
         
        .google.type.DayOfWeek day_of_week_value = 8;
        Specified by:
        getDayOfWeekValue in interface ValueOrBuilder
        Returns:
        The dayOfWeekValue.
      • setDayOfWeekValue

        public Value.Builder setDayOfWeekValue​(com.google.type.DayOfWeek value)
         day of week
         
        .google.type.DayOfWeek day_of_week_value = 8;
        Parameters:
        value - The dayOfWeekValue to set.
        Returns:
        This builder for chaining.
      • clearDayOfWeekValue

        public Value.Builder clearDayOfWeekValue()
         day of week
         
        .google.type.DayOfWeek day_of_week_value = 8;
        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>