Class Value.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Value.Builder>
com.google.privacy.dlp.v2.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Value.Builder mergeFrom(Value other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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
    • getTypeCase

      public Value.TypeCase getTypeCase()
      Specified by:
      getTypeCase in interface ValueOrBuilder
    • clearType

      public Value.Builder clearType()
    • 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.
    • getStringValue

      public String getStringValue()
       string
       
      string string_value = 3;
      Specified by:
      getStringValue in interface ValueOrBuilder
      Returns:
      The stringValue.
    • 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 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(TimeOfDay value)
       time of day
       
      .google.type.TimeOfDay time_value = 6;
    • setTimeValue

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

      public Value.Builder mergeTimeValue(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 TimeOfDay.Builder getTimeValueBuilder()
       time of day
       
      .google.type.TimeOfDay time_value = 6;
    • getTimeValueOrBuilder

      public 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 Date getDateValue()
       date
       
      .google.type.Date date_value = 7;
      Specified by:
      getDateValue in interface ValueOrBuilder
      Returns:
      The dateValue.
    • setDateValue

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

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

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

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

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

      public 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 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(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.