Class Value.Builder (6.60.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Value.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Value.Builder
Overrides

build()

public Value build()
Returns
TypeDescription
Value

buildPartial()

public Value buildPartial()
Returns
TypeDescription
Value

clear()

public Value.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Value.Builder

clearBoolValue()

public Value.Builder clearBoolValue()

Bool type value.

bool bool_value = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Value.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Value.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Value.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Value.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Value.Builder
Overrides

clearStringValue()

public Value.Builder clearStringValue()

String type value, stored in CORD.

string string_value = 6;

Returns
TypeDescription
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
TypeDescription
Value.Builder

clearTimestampValue()

public Value.Builder clearTimestampValue()

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Returns
TypeDescription
Value.Builder

clearValueType()

public Value.Builder clearValueType()
Returns
TypeDescription
Value.Builder

clone()

public Value.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ValueListOrBuilder

getBoolValue()

public boolean getBoolValue()

Bool type value.

bool bool_value = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The dateDaysValue.

getDefaultInstanceForType()

public Value getDefaultInstanceForType()
Returns
TypeDescription
Value

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
long

The intValue.

getIsCommitTimestamp()

public boolean getIsCommitTimestamp()

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

bool is_commit_timestamp = 10;

Returns
TypeDescription
boolean

The isCommitTimestamp.

getIsNull()

public boolean getIsNull()

If is_null is set, then this value is null.

bool is_null = 1;

Returns
TypeDescription
boolean

The isNull.

getStringValue()

public String getStringValue()

String type value, stored in CORD.

string string_value = 6;

Returns
TypeDescription
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

String type value, stored in CORD.

string string_value = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ValueListOrBuilder

getTimestampValue()

public Timestamp getTimestampValue()

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Returns
TypeDescription
Timestamp

The timestampValue.

getTimestampValueBuilder()

public Timestamp.Builder getTimestampValueBuilder()

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Returns
TypeDescription
Builder

getTimestampValueOrBuilder()

public TimestampOrBuilder getTimestampValueOrBuilder()

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Returns
TypeDescription
TimestampOrBuilder

getValueTypeCase()

public Value.ValueTypeCase getValueTypeCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the arrayValue field is set.

hasBoolValue()

public boolean hasBoolValue()

Bool type value.

bool bool_value = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the isNull field is set.

hasStringValue()

public boolean hasStringValue()

String type value, stored in CORD.

string string_value = 6;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the structValue field is set.

hasTimestampValue()

public boolean hasTimestampValue()

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Returns
TypeDescription
boolean

Whether the timestampValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueType
Returns
TypeDescription
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
NameDescription
valueValueList
Returns
TypeDescription
Value.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Value.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Value.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Value.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Value.Builder
Overrides

mergeFrom(Value other)

public Value.Builder mergeFrom(Value other)
Parameter
NameDescription
otherValue
Returns
TypeDescription
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
NameDescription
valueValueList
Returns
TypeDescription
Value.Builder

mergeTimestampValue(Timestamp value)

public Value.Builder mergeTimestampValue(Timestamp value)

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Value.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Value.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueType
Returns
TypeDescription
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
NameDescription
builderForValueType.Builder
Returns
TypeDescription
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
NameDescription
valueValueList
Returns
TypeDescription
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
NameDescription
builderForValueValueList.Builder
Returns
TypeDescription
Value.Builder

setBoolValue(boolean value)

public Value.Builder setBoolValue(boolean value)

Bool type value.

bool bool_value = 3;

Parameter
NameDescription
valueboolean

The boolValue to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytesValue to set.

Returns
TypeDescription
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
NameDescription
valueint

The dateDaysValue to set.

Returns
TypeDescription
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
NameDescription
valuedouble

The doubleValue to set.

Returns
TypeDescription
Value.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Value.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The intValue to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The isCommitTimestamp to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The isNull to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Value.Builder
Overrides

setStringValue(String value)

public Value.Builder setStringValue(String value)

String type value, stored in CORD.

string string_value = 6;

Parameter
NameDescription
valueString

The stringValue to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for stringValue to set.

Returns
TypeDescription
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
NameDescription
valueValueList
Returns
TypeDescription
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
NameDescription
builderForValueValueList.Builder
Returns
TypeDescription
Value.Builder

setTimestampValue(Timestamp value)

public Value.Builder setTimestampValue(Timestamp value)

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Value.Builder

setTimestampValue(Timestamp.Builder builderForValue)

public Value.Builder setTimestampValue(Timestamp.Builder builderForValue)

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Value.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Value.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Value.Builder
Overrides