Class Value.Builder (6.69.0)

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

Implements

ValueOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Value.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Value.Builder
Overrides

build()

public Value build()
Returns
Type Description
Value

buildPartial()

public Value buildPartial()
Returns
Type Description
Value

clear()

public Value.Builder clear()
Returns
Type Description
Value.Builder
Overrides

clearArrayType()

public Value.Builder clearArrayType()

Type of array element. Only set if value is an array.

optional .google.spanner.v1.Type array_type = 12;

Returns
Type Description
Value.Builder

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;

Returns
Type Description
Value.Builder

clearBoolValue()

public Value.Builder clearBoolValue()

Bool type value.

bool bool_value = 3;

Returns
Type Description
Value.Builder

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
Type Description
Value.Builder

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
Type Description
Value.Builder

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
Type Description
Value.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Value.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Value.Builder
Overrides

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
Type Description
Value.Builder

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
Type Description
Value.Builder

This builder for chaining.

clearIsNull()

public Value.Builder clearIsNull()

If is_null is set, then this value is null.

bool is_null = 1;

Returns
Type Description
Value.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Value.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Value.Builder
Overrides

clearStringValue()

public Value.Builder clearStringValue()

String type value, stored in CORD.

string string_value = 6;

Returns
Type Description
Value.Builder

This builder for chaining.

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;

Returns
Type Description
Value.Builder

clearTimestampValue()

public Value.Builder clearTimestampValue()

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Returns
Type Description
Value.Builder

clearValueType()

public Value.Builder clearValueType()
Returns
Type Description
Value.Builder

clone()

public Value.Builder clone()
Returns
Type Description
Value.Builder
Overrides

getArrayType()

public Type getArrayType()

Type of array element. Only set if value is an array.

optional .google.spanner.v1.Type array_type = 12;

Returns
Type Description
Type

The arrayType.

getArrayTypeBuilder()

public Type.Builder getArrayTypeBuilder()

Type of array element. Only set if value is an array.

optional .google.spanner.v1.Type array_type = 12;

Returns
Type Description
Type.Builder

getArrayTypeOrBuilder()

public TypeOrBuilder getArrayTypeOrBuilder()

Type of array element. Only set if value is an array.

optional .google.spanner.v1.Type array_type = 12;

Returns
Type Description
TypeOrBuilder

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;

Returns
Type Description
ValueList

The arrayValue.

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;

Returns
Type Description
ValueList.Builder

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;

Returns
Type Description
ValueListOrBuilder

getBoolValue()

public boolean getBoolValue()

Bool type value.

bool bool_value = 3;

Returns
Type Description
boolean

The boolValue.

getBytesValue()

public ByteString getBytesValue()

Bytes type value, stored in CORD. It's also used for PROTO type value.

bytes bytes_value = 5;

Returns
Type Description
ByteString

The bytesValue.

getDateDaysValue()

public int getDateDaysValue()

Date type value. Date is specified as a number of days since Unix epoch.

int32 date_days_value = 9;

Returns
Type Description
int

The dateDaysValue.

getDefaultInstanceForType()

public Value getDefaultInstanceForType()
Returns
Type Description
Value

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDoubleValue()

public double getDoubleValue()

Double type value. It's used for all float point types, like float and double.

double double_value = 4;

Returns
Type Description
double

The doubleValue.

getIntValue()

public long getIntValue()

Int type value. It's used for all integer number types, like int32 and int64.

int64 int_value = 2;

Returns
Type Description
long

The intValue.

getIsCommitTimestamp()

public boolean getIsCommitTimestamp()

If set, holds the sentinel value for the transaction CommitTimestamp.

bool is_commit_timestamp = 10;

Returns
Type Description
boolean

The isCommitTimestamp.

getIsNull()

public boolean getIsNull()

If is_null is set, then this value is null.

bool is_null = 1;

Returns
Type Description
boolean

The isNull.

getStringValue()

public String getStringValue()

String type value, stored in CORD.

string string_value = 6;

Returns
Type Description
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

String type value, stored in CORD.

string string_value = 6;

Returns
Type Description
ByteString

The bytes for stringValue.

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;

Returns
Type Description
ValueList

The structValue.

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;

Returns
Type Description
ValueList.Builder

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;

Returns
Type Description
ValueListOrBuilder

getTimestampValue()

public Timestamp getTimestampValue()

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Returns
Type Description
Timestamp

The timestampValue.

getTimestampValueBuilder()

public Timestamp.Builder getTimestampValueBuilder()

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Returns
Type Description
Builder

getTimestampValueOrBuilder()

public TimestampOrBuilder getTimestampValueOrBuilder()

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Returns
Type Description
TimestampOrBuilder

getValueTypeCase()

public Value.ValueTypeCase getValueTypeCase()
Returns
Type Description
Value.ValueTypeCase

hasArrayType()

public boolean hasArrayType()

Type of array element. Only set if value is an array.

optional .google.spanner.v1.Type array_type = 12;

Returns
Type Description
boolean

Whether the arrayType field is set.

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;

Returns
Type Description
boolean

Whether the arrayValue field is set.

hasBoolValue()

public boolean hasBoolValue()

Bool type value.

bool bool_value = 3;

Returns
Type Description
boolean

Whether the boolValue field is set.

hasBytesValue()

public boolean hasBytesValue()

Bytes type value, stored in CORD. It's also used for PROTO type value.

bytes bytes_value = 5;

Returns
Type Description
boolean

Whether the bytesValue field is set.

hasDateDaysValue()

public boolean hasDateDaysValue()

Date type value. Date is specified as a number of days since Unix epoch.

int32 date_days_value = 9;

Returns
Type Description
boolean

Whether the dateDaysValue field is set.

hasDoubleValue()

public boolean hasDoubleValue()

Double type value. It's used for all float point types, like float and double.

double double_value = 4;

Returns
Type Description
boolean

Whether the doubleValue field is set.

hasIntValue()

public boolean hasIntValue()

Int type value. It's used for all integer number types, like int32 and int64.

int64 int_value = 2;

Returns
Type Description
boolean

Whether the intValue field is set.

hasIsCommitTimestamp()

public boolean hasIsCommitTimestamp()

If set, holds the sentinel value for the transaction CommitTimestamp.

bool is_commit_timestamp = 10;

Returns
Type Description
boolean

Whether the isCommitTimestamp field is set.

hasIsNull()

public boolean hasIsNull()

If is_null is set, then this value is null.

bool is_null = 1;

Returns
Type Description
boolean

Whether the isNull field is set.

hasStringValue()

public boolean hasStringValue()

String type value, stored in CORD.

string string_value = 6;

Returns
Type Description
boolean

Whether the stringValue field is set.

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;

Returns
Type Description
boolean

Whether the structValue field is set.

hasTimestampValue()

public boolean hasTimestampValue()

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Returns
Type Description
boolean

Whether the timestampValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeArrayType(Type value)

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;

Parameter
Name Description
value Type
Returns
Type Description
Value.Builder

mergeArrayValue(ValueList value)

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;

Parameter
Name Description
value ValueList
Returns
Type Description
Value.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Value.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Value.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Value.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Value.Builder
Overrides

mergeFrom(Value other)

public Value.Builder mergeFrom(Value other)
Parameter
Name Description
other Value
Returns
Type Description
Value.Builder

mergeStructValue(ValueList value)

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;

Parameter
Name Description
value ValueList
Returns
Type Description
Value.Builder

mergeTimestampValue(Timestamp value)

public Value.Builder mergeTimestampValue(Timestamp value)

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Parameter
Name Description
value Timestamp
Returns
Type Description
Value.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Value.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Value.Builder
Overrides

setArrayType(Type value)

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;

Parameter
Name Description
value Type
Returns
Type Description
Value.Builder

setArrayType(Type.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Type.Builder
Returns
Type Description
Value.Builder

setArrayValue(ValueList value)

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;

Parameter
Name Description
value ValueList
Returns
Type Description
Value.Builder

setArrayValue(ValueList.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ValueList.Builder
Returns
Type Description
Value.Builder

setBoolValue(boolean value)

public Value.Builder setBoolValue(boolean value)

Bool type value.

bool bool_value = 3;

Parameter
Name Description
value boolean

The boolValue to set.

Returns
Type Description
Value.Builder

This builder for chaining.

setBytesValue(ByteString value)

public Value.Builder setBytesValue(ByteString value)

Bytes type value, stored in CORD. It's also used for PROTO type value.

bytes bytes_value = 5;

Parameter
Name Description
value ByteString

The bytesValue to set.

Returns
Type Description
Value.Builder

This builder for chaining.

setDateDaysValue(int value)

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;

Parameter
Name Description
value int

The dateDaysValue to set.

Returns
Type Description
Value.Builder

This builder for chaining.

setDoubleValue(double value)

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;

Parameter
Name Description
value double

The doubleValue to set.

Returns
Type Description
Value.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Value.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Value.Builder
Overrides

setIntValue(long value)

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;

Parameter
Name Description
value long

The intValue to set.

Returns
Type Description
Value.Builder

This builder for chaining.

setIsCommitTimestamp(boolean value)

public Value.Builder setIsCommitTimestamp(boolean value)

If set, holds the sentinel value for the transaction CommitTimestamp.

bool is_commit_timestamp = 10;

Parameter
Name Description
value boolean

The isCommitTimestamp to set.

Returns
Type Description
Value.Builder

This builder for chaining.

setIsNull(boolean value)

public Value.Builder setIsNull(boolean value)

If is_null is set, then this value is null.

bool is_null = 1;

Parameter
Name Description
value boolean

The isNull to set.

Returns
Type Description
Value.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Value.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Value.Builder
Overrides

setStringValue(String value)

public Value.Builder setStringValue(String value)

String type value, stored in CORD.

string string_value = 6;

Parameter
Name Description
value String

The stringValue to set.

Returns
Type Description
Value.Builder

This builder for chaining.

setStringValueBytes(ByteString value)

public Value.Builder setStringValueBytes(ByteString value)

String type value, stored in CORD.

string string_value = 6;

Parameter
Name Description
value ByteString

The bytes for stringValue to set.

Returns
Type Description
Value.Builder

This builder for chaining.

setStructValue(ValueList value)

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;

Parameter
Name Description
value ValueList
Returns
Type Description
Value.Builder

setStructValue(ValueList.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ValueList.Builder
Returns
Type Description
Value.Builder

setTimestampValue(Timestamp value)

public Value.Builder setTimestampValue(Timestamp value)

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Parameter
Name Description
value Timestamp
Returns
Type Description
Value.Builder

setTimestampValue(Timestamp.Builder builderForValue)

public Value.Builder setTimestampValue(Timestamp.Builder builderForValue)

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Value.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Value.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Value.Builder
Overrides