Class Value.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
com.google.spanner.executor.v1.Value.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ValueOrBuilder, Cloneable
Enclosing class:
Value

public static final class Value.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder> implements ValueOrBuilder
 Value represents a single value that can be read or written to/from
 Spanner.
 
Protobuf type google.spanner.executor.v1.Value
  • Method Details

    • 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>
    • 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.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
    • getValueTypeCase

      public Value.ValueTypeCase getValueTypeCase()
      Specified by:
      getValueTypeCase in interface ValueOrBuilder
    • clearValueType

      public Value.Builder clearValueType()
    • hasIsNull

      public boolean hasIsNull()
       If is_null is set, then this value is null.
       
      bool is_null = 1;
      Specified by:
      hasIsNull in interface ValueOrBuilder
      Returns:
      Whether the isNull field is set.
    • getIsNull

      public boolean getIsNull()
       If is_null is set, then this value is null.
       
      bool is_null = 1;
      Specified by:
      getIsNull in interface ValueOrBuilder
      Returns:
      The isNull.
    • setIsNull

      public Value.Builder setIsNull(boolean value)
       If is_null is set, then this value is null.
       
      bool is_null = 1;
      Parameters:
      value - The isNull to set.
      Returns:
      This builder for chaining.
    • clearIsNull

      public Value.Builder clearIsNull()
       If is_null is set, then this value is null.
       
      bool is_null = 1;
      Returns:
      This builder for chaining.
    • hasIntValue

      public boolean hasIntValue()
       Int type value. It's used for all integer number types, like int32 and
       int64.
       
      int64 int_value = 2;
      Specified by:
      hasIntValue in interface ValueOrBuilder
      Returns:
      Whether the intValue field is set.
    • getIntValue

      public long getIntValue()
       Int type value. It's used for all integer number types, like int32 and
       int64.
       
      int64 int_value = 2;
      Specified by:
      getIntValue in interface ValueOrBuilder
      Returns:
      The intValue.
    • setIntValue

      public Value.Builder setIntValue(long value)
       Int type value. It's used for all integer number types, like int32 and
       int64.
       
      int64 int_value = 2;
      Parameters:
      value - The intValue to set.
      Returns:
      This builder for chaining.
    • clearIntValue

      public Value.Builder clearIntValue()
       Int type value. It's used for all integer number types, like int32 and
       int64.
       
      int64 int_value = 2;
      Returns:
      This builder for chaining.
    • hasBoolValue

      public boolean hasBoolValue()
       Bool type value.
       
      bool bool_value = 3;
      Specified by:
      hasBoolValue in interface ValueOrBuilder
      Returns:
      Whether the boolValue field is set.
    • getBoolValue

      public boolean getBoolValue()
       Bool type value.
       
      bool bool_value = 3;
      Specified by:
      getBoolValue in interface ValueOrBuilder
      Returns:
      The boolValue.
    • setBoolValue

      public Value.Builder setBoolValue(boolean value)
       Bool type value.
       
      bool bool_value = 3;
      Parameters:
      value - The boolValue to set.
      Returns:
      This builder for chaining.
    • clearBoolValue

      public Value.Builder clearBoolValue()
       Bool type value.
       
      bool bool_value = 3;
      Returns:
      This builder for chaining.
    • hasDoubleValue

      public boolean hasDoubleValue()
       Double type value. It's used for all float point types, like float and
       double.
       
      double double_value = 4;
      Specified by:
      hasDoubleValue in interface ValueOrBuilder
      Returns:
      Whether the doubleValue field is set.
    • getDoubleValue

      public double getDoubleValue()
       Double type value. It's used for all float point types, like float and
       double.
       
      double double_value = 4;
      Specified by:
      getDoubleValue in interface ValueOrBuilder
      Returns:
      The doubleValue.
    • setDoubleValue

      public Value.Builder setDoubleValue(double value)
       Double type value. It's used for all float point types, like float and
       double.
       
      double double_value = 4;
      Parameters:
      value - The doubleValue to set.
      Returns:
      This builder for chaining.
    • clearDoubleValue

      public Value.Builder clearDoubleValue()
       Double type value. It's used for all float point types, like float and
       double.
       
      double double_value = 4;
      Returns:
      This builder for chaining.
    • hasBytesValue

      public boolean hasBytesValue()
       Bytes type value, stored in CORD. It's also used for PROTO type value.
       
      bytes bytes_value = 5;
      Specified by:
      hasBytesValue in interface ValueOrBuilder
      Returns:
      Whether the bytesValue field is set.
    • getBytesValue

      public com.google.protobuf.ByteString getBytesValue()
       Bytes type value, stored in CORD. It's also used for PROTO type value.
       
      bytes bytes_value = 5;
      Specified by:
      getBytesValue in interface ValueOrBuilder
      Returns:
      The bytesValue.
    • setBytesValue

      public Value.Builder setBytesValue(com.google.protobuf.ByteString value)
       Bytes type value, stored in CORD. It's also used for PROTO type value.
       
      bytes bytes_value = 5;
      Parameters:
      value - The bytesValue to set.
      Returns:
      This builder for chaining.
    • clearBytesValue

      public Value.Builder clearBytesValue()
       Bytes type value, stored in CORD. It's also used for PROTO type value.
       
      bytes bytes_value = 5;
      Returns:
      This builder for chaining.
    • hasStringValue

      public boolean hasStringValue()
       String type value, stored in CORD.
       
      string string_value = 6;
      Specified by:
      hasStringValue in interface ValueOrBuilder
      Returns:
      Whether the stringValue field is set.
    • getStringValue

      public String getStringValue()
       String type value, stored in CORD.
       
      string string_value = 6;
      Specified by:
      getStringValue in interface ValueOrBuilder
      Returns:
      The stringValue.
    • getStringValueBytes

      public com.google.protobuf.ByteString getStringValueBytes()
       String type value, stored in CORD.
       
      string string_value = 6;
      Specified by:
      getStringValueBytes in interface ValueOrBuilder
      Returns:
      The bytes for stringValue.
    • setStringValue

      public Value.Builder setStringValue(String value)
       String type value, stored in CORD.
       
      string string_value = 6;
      Parameters:
      value - The stringValue to set.
      Returns:
      This builder for chaining.
    • clearStringValue

      public Value.Builder clearStringValue()
       String type value, stored in CORD.
       
      string string_value = 6;
      Returns:
      This builder for chaining.
    • setStringValueBytes

      public Value.Builder setStringValueBytes(com.google.protobuf.ByteString value)
       String type value, stored in CORD.
       
      string string_value = 6;
      Parameters:
      value - The bytes for stringValue to set.
      Returns:
      This builder for chaining.
    • hasStructValue

      public boolean hasStructValue()
       Struct type value. It contains a ValueList representing the values in
       this struct.
       
      .google.spanner.executor.v1.ValueList struct_value = 7;
      Specified by:
      hasStructValue in interface ValueOrBuilder
      Returns:
      Whether the structValue field is set.
    • getStructValue

      public ValueList getStructValue()
       Struct type value. It contains a ValueList representing the values in
       this struct.
       
      .google.spanner.executor.v1.ValueList struct_value = 7;
      Specified by:
      getStructValue in interface ValueOrBuilder
      Returns:
      The structValue.
    • setStructValue

      public Value.Builder setStructValue(ValueList value)
       Struct type value. It contains a ValueList representing the values in
       this struct.
       
      .google.spanner.executor.v1.ValueList struct_value = 7;
    • setStructValue

      public Value.Builder setStructValue(ValueList.Builder builderForValue)
       Struct type value. It contains a ValueList representing the values in
       this struct.
       
      .google.spanner.executor.v1.ValueList struct_value = 7;
    • mergeStructValue

      public Value.Builder mergeStructValue(ValueList value)
       Struct type value. It contains a ValueList representing the values in
       this struct.
       
      .google.spanner.executor.v1.ValueList struct_value = 7;
    • clearStructValue

      public Value.Builder clearStructValue()
       Struct type value. It contains a ValueList representing the values in
       this struct.
       
      .google.spanner.executor.v1.ValueList struct_value = 7;
    • getStructValueBuilder

      public ValueList.Builder getStructValueBuilder()
       Struct type value. It contains a ValueList representing the values in
       this struct.
       
      .google.spanner.executor.v1.ValueList struct_value = 7;
    • getStructValueOrBuilder

      public ValueListOrBuilder getStructValueOrBuilder()
       Struct type value. It contains a ValueList representing the values in
       this struct.
       
      .google.spanner.executor.v1.ValueList struct_value = 7;
      Specified by:
      getStructValueOrBuilder in interface ValueOrBuilder
    • hasTimestampValue

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

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

      public Value.Builder setTimestampValue(com.google.protobuf.Timestamp value)
       Timestamp type value.
       
      .google.protobuf.Timestamp timestamp_value = 8;
    • setTimestampValue

      public Value.Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp type value.
       
      .google.protobuf.Timestamp timestamp_value = 8;
    • mergeTimestampValue

      public Value.Builder mergeTimestampValue(com.google.protobuf.Timestamp value)
       Timestamp type value.
       
      .google.protobuf.Timestamp timestamp_value = 8;
    • clearTimestampValue

      public Value.Builder clearTimestampValue()
       Timestamp type value.
       
      .google.protobuf.Timestamp timestamp_value = 8;
    • getTimestampValueBuilder

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

      public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder()
       Timestamp type value.
       
      .google.protobuf.Timestamp timestamp_value = 8;
      Specified by:
      getTimestampValueOrBuilder in interface ValueOrBuilder
    • hasDateDaysValue

      public boolean hasDateDaysValue()
       Date type value. Date is specified as a number of days since Unix epoch.
       
      int32 date_days_value = 9;
      Specified by:
      hasDateDaysValue in interface ValueOrBuilder
      Returns:
      Whether the dateDaysValue field is set.
    • getDateDaysValue

      public int getDateDaysValue()
       Date type value. Date is specified as a number of days since Unix epoch.
       
      int32 date_days_value = 9;
      Specified by:
      getDateDaysValue in interface ValueOrBuilder
      Returns:
      The dateDaysValue.
    • setDateDaysValue

      public Value.Builder setDateDaysValue(int value)
       Date type value. Date is specified as a number of days since Unix epoch.
       
      int32 date_days_value = 9;
      Parameters:
      value - The dateDaysValue to set.
      Returns:
      This builder for chaining.
    • clearDateDaysValue

      public Value.Builder clearDateDaysValue()
       Date type value. Date is specified as a number of days since Unix epoch.
       
      int32 date_days_value = 9;
      Returns:
      This builder for chaining.
    • hasIsCommitTimestamp

      public boolean hasIsCommitTimestamp()
       If set, holds the sentinel value for the transaction CommitTimestamp.
       
      bool is_commit_timestamp = 10;
      Specified by:
      hasIsCommitTimestamp in interface ValueOrBuilder
      Returns:
      Whether the isCommitTimestamp field is set.
    • getIsCommitTimestamp

      public boolean getIsCommitTimestamp()
       If set, holds the sentinel value for the transaction CommitTimestamp.
       
      bool is_commit_timestamp = 10;
      Specified by:
      getIsCommitTimestamp in interface ValueOrBuilder
      Returns:
      The isCommitTimestamp.
    • setIsCommitTimestamp

      public Value.Builder setIsCommitTimestamp(boolean value)
       If set, holds the sentinel value for the transaction CommitTimestamp.
       
      bool is_commit_timestamp = 10;
      Parameters:
      value - The isCommitTimestamp to set.
      Returns:
      This builder for chaining.
    • clearIsCommitTimestamp

      public Value.Builder clearIsCommitTimestamp()
       If set, holds the sentinel value for the transaction CommitTimestamp.
       
      bool is_commit_timestamp = 10;
      Returns:
      This builder for chaining.
    • hasArrayValue

      public boolean hasArrayValue()
       Array type value. The underlying Valuelist should have values that have
       the same type.
       
      .google.spanner.executor.v1.ValueList array_value = 11;
      Specified by:
      hasArrayValue in interface ValueOrBuilder
      Returns:
      Whether the arrayValue field is set.
    • getArrayValue

      public ValueList getArrayValue()
       Array type value. The underlying Valuelist should have values that have
       the same type.
       
      .google.spanner.executor.v1.ValueList array_value = 11;
      Specified by:
      getArrayValue in interface ValueOrBuilder
      Returns:
      The arrayValue.
    • setArrayValue

      public Value.Builder setArrayValue(ValueList value)
       Array type value. The underlying Valuelist should have values that have
       the same type.
       
      .google.spanner.executor.v1.ValueList array_value = 11;
    • setArrayValue

      public Value.Builder setArrayValue(ValueList.Builder builderForValue)
       Array type value. The underlying Valuelist should have values that have
       the same type.
       
      .google.spanner.executor.v1.ValueList array_value = 11;
    • mergeArrayValue

      public Value.Builder mergeArrayValue(ValueList value)
       Array type value. The underlying Valuelist should have values that have
       the same type.
       
      .google.spanner.executor.v1.ValueList array_value = 11;
    • clearArrayValue

      public Value.Builder clearArrayValue()
       Array type value. The underlying Valuelist should have values that have
       the same type.
       
      .google.spanner.executor.v1.ValueList array_value = 11;
    • getArrayValueBuilder

      public ValueList.Builder getArrayValueBuilder()
       Array type value. The underlying Valuelist should have values that have
       the same type.
       
      .google.spanner.executor.v1.ValueList array_value = 11;
    • getArrayValueOrBuilder

      public ValueListOrBuilder getArrayValueOrBuilder()
       Array type value. The underlying Valuelist should have values that have
       the same type.
       
      .google.spanner.executor.v1.ValueList array_value = 11;
      Specified by:
      getArrayValueOrBuilder in interface ValueOrBuilder
    • hasArrayType

      public boolean hasArrayType()
       Type of array element. Only set if value is an array.
       
      optional .google.spanner.v1.Type array_type = 12;
      Specified by:
      hasArrayType in interface ValueOrBuilder
      Returns:
      Whether the arrayType field is set.
    • getArrayType

      public Type getArrayType()
       Type of array element. Only set if value is an array.
       
      optional .google.spanner.v1.Type array_type = 12;
      Specified by:
      getArrayType in interface ValueOrBuilder
      Returns:
      The arrayType.
    • setArrayType

      public Value.Builder setArrayType(Type value)
       Type of array element. Only set if value is an array.
       
      optional .google.spanner.v1.Type array_type = 12;
    • setArrayType

      public Value.Builder setArrayType(Type.Builder builderForValue)
       Type of array element. Only set if value is an array.
       
      optional .google.spanner.v1.Type array_type = 12;
    • mergeArrayType

      public Value.Builder mergeArrayType(Type value)
       Type of array element. Only set if value is an array.
       
      optional .google.spanner.v1.Type array_type = 12;
    • clearArrayType

      public Value.Builder clearArrayType()
       Type of array element. Only set if value is an array.
       
      optional .google.spanner.v1.Type array_type = 12;
    • getArrayTypeBuilder

      public Type.Builder getArrayTypeBuilder()
       Type of array element. Only set if value is an array.
       
      optional .google.spanner.v1.Type array_type = 12;
    • getArrayTypeOrBuilder

      public TypeOrBuilder getArrayTypeOrBuilder()
       Type of array element. Only set if value is an array.
       
      optional .google.spanner.v1.Type array_type = 12;
      Specified by:
      getArrayTypeOrBuilder in interface ValueOrBuilder
    • 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>