Class Value (6.89.0)

publicfinalclassValueextendsGeneratedMessageV3implementsValueOrBuilder

Value represents a single value that can be read or written to/from Spanner.

Protobuf type google.spanner.executor.v1.Value

Implements

ValueOrBuilder

Static Fields

ARRAY_TYPE_FIELD_NUMBER

publicstaticfinalintARRAY_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

ARRAY_VALUE_FIELD_NUMBER

publicstaticfinalintARRAY_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

BOOL_VALUE_FIELD_NUMBER

publicstaticfinalintBOOL_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

BYTES_VALUE_FIELD_NUMBER

publicstaticfinalintBYTES_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

DATE_DAYS_VALUE_FIELD_NUMBER

publicstaticfinalintDATE_DAYS_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

DOUBLE_VALUE_FIELD_NUMBER

publicstaticfinalintDOUBLE_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

INT_VALUE_FIELD_NUMBER

publicstaticfinalintINT_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

IS_COMMIT_TIMESTAMP_FIELD_NUMBER

publicstaticfinalintIS_COMMIT_TIMESTAMP_FIELD_NUMBER
Field Value
TypeDescription
int

IS_NULL_FIELD_NUMBER

publicstaticfinalintIS_NULL_FIELD_NUMBER
Field Value
TypeDescription
int

STRING_VALUE_FIELD_NUMBER

publicstaticfinalintSTRING_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

STRUCT_VALUE_FIELD_NUMBER

publicstaticfinalintSTRUCT_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

TIMESTAMP_VALUE_FIELD_NUMBER

publicstaticfinalintTIMESTAMP_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticValuegetDefaultInstance()
Returns
TypeDescription
Value

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticValue.BuildernewBuilder()
Returns
TypeDescription
Value.Builder

newBuilder(Value prototype)

publicstaticValue.BuildernewBuilder(Valueprototype)
Parameter
NameDescription
prototypeValue
Returns
TypeDescription
Value.Builder

parseDelimitedFrom(InputStream input)

publicstaticValueparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Value
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticValueparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Value
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticValueparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Value
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticValueparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Value
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticValueparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Value
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticValueparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Value
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticValueparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Value
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticValueparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Value
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticValueparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Value
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticValueparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Value
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticValueparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Value
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticValueparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Value
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<Value>parser()
Returns
TypeDescription
Parser<Value>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getArrayType()

publicTypegetArrayType()

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

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

Returns
TypeDescription
Type

The arrayType.

getArrayTypeOrBuilder()

publicTypeOrBuildergetArrayTypeOrBuilder()

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

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

Returns
TypeDescription
TypeOrBuilder

getArrayValue()

publicValueListgetArrayValue()

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.

getArrayValueOrBuilder()

publicValueListOrBuildergetArrayValueOrBuilder()

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()

publicbooleangetBoolValue()

Bool type value.

bool bool_value = 3;

Returns
TypeDescription
boolean

The boolValue.

getBytesValue()

publicByteStringgetBytesValue()

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

bytes bytes_value = 5;

Returns
TypeDescription
ByteString

The bytesValue.

getDateDaysValue()

publicintgetDateDaysValue()

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()

publicValuegetDefaultInstanceForType()
Returns
TypeDescription
Value

getDoubleValue()

publicdoublegetDoubleValue()

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()

publiclonggetIntValue()

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()

publicbooleangetIsCommitTimestamp()

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

bool is_commit_timestamp = 10;

Returns
TypeDescription
boolean

The isCommitTimestamp.

getIsNull()

publicbooleangetIsNull()

If is_null is set, then this value is null.

bool is_null = 1;

Returns
TypeDescription
boolean

The isNull.

getParserForType()

publicParser<Value>getParserForType()
Returns
TypeDescription
Parser<Value>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

getStringValue()

publicStringgetStringValue()

String type value, stored in CORD.

string string_value = 6;

Returns
TypeDescription
String

The stringValue.

getStringValueBytes()

publicByteStringgetStringValueBytes()

String type value, stored in CORD.

string string_value = 6;

Returns
TypeDescription
ByteString

The bytes for stringValue.

getStructValue()

publicValueListgetStructValue()

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.

getStructValueOrBuilder()

publicValueListOrBuildergetStructValueOrBuilder()

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()

publicTimestampgetTimestampValue()

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Returns
TypeDescription
Timestamp

The timestampValue.

getTimestampValueOrBuilder()

publicTimestampOrBuildergetTimestampValueOrBuilder()

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Returns
TypeDescription
TimestampOrBuilder

getValueTypeCase()

publicValue.ValueTypeCasegetValueTypeCase()
Returns
TypeDescription
Value.ValueTypeCase

hasArrayType()

publicbooleanhasArrayType()

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()

publicbooleanhasArrayValue()

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()

publicbooleanhasBoolValue()

Bool type value.

bool bool_value = 3;

Returns
TypeDescription
boolean

Whether the boolValue field is set.

hasBytesValue()

publicbooleanhasBytesValue()

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()

publicbooleanhasDateDaysValue()

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()

publicbooleanhasDoubleValue()

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()

publicbooleanhasIntValue()

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()

publicbooleanhasIsCommitTimestamp()

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()

publicbooleanhasIsNull()

If is_null is set, then this value is null.

bool is_null = 1;

Returns
TypeDescription
boolean

Whether the isNull field is set.

hasStringValue()

publicbooleanhasStringValue()

String type value, stored in CORD.

string string_value = 6;

Returns
TypeDescription
boolean

Whether the stringValue field is set.

hasStructValue()

publicbooleanhasStructValue()

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()

publicbooleanhasTimestampValue()

Timestamp type value.

.google.protobuf.Timestamp timestamp_value = 8;

Returns
TypeDescription
boolean

Whether the timestampValue field is set.

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicValue.BuildernewBuilderForType()
Returns
TypeDescription
Value.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedValue.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Value.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

publicValue.BuildertoBuilder()
Returns
TypeDescription
Value.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException