Package com.google.spanner.executor.v1
Class Value
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.executor.v1.Value
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ValueOrBuilder,Serializable
Value represents a single value that can be read or written to/from Spanner.Protobuf type
google.spanner.executor.v1.Value- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classValue represents a single value that can be read or written to/from Spanner.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanType of array element.Type of array element.Array type value.Array type value.booleanBool type value.com.google.protobuf.ByteStringBytes type value, stored in CORD.intDate type value.static Valuestatic final com.google.protobuf.Descriptors.DescriptordoubleDouble type value.longInt type value.booleanIf set, holds the sentinel value for the transaction CommitTimestamp.booleanIf is_null is set, then this value is null.com.google.protobuf.Parser<Value>intString type value, stored in CORD.com.google.protobuf.ByteStringString type value, stored in CORD.Struct type value.Struct type value.com.google.protobuf.TimestampTimestamp type value.com.google.protobuf.TimestampOrBuilderTimestamp type value.booleanType of array element.booleanArray type value.booleanBool type value.booleanBytes type value, stored in CORD.booleanDate type value.booleanDouble type value.inthashCode()booleanInt type value.booleanIf set, holds the sentinel value for the transaction CommitTimestamp.booleanIf is_null is set, then this value is null.booleanString type value, stored in CORD.booleanStruct type value.booleanTimestamp type value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Value.Builderstatic Value.BuildernewBuilder(Value prototype) protected Value.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ValueparseDelimitedFrom(InputStream input) static ValueparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ValueparseFrom(byte[] data) static ValueparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ValueparseFrom(com.google.protobuf.ByteString data) static ValueparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ValueparseFrom(com.google.protobuf.CodedInputStream input) static ValueparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ValueparseFrom(InputStream input) static ValueparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ValueparseFrom(ByteBuffer data) static ValueparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Value>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
IS_NULL_FIELD_NUMBER
public static final int IS_NULL_FIELD_NUMBER- See Also:
-
INT_VALUE_FIELD_NUMBER
public static final int INT_VALUE_FIELD_NUMBER- See Also:
-
BOOL_VALUE_FIELD_NUMBER
public static final int BOOL_VALUE_FIELD_NUMBER- See Also:
-
DOUBLE_VALUE_FIELD_NUMBER
public static final int DOUBLE_VALUE_FIELD_NUMBER- See Also:
-
BYTES_VALUE_FIELD_NUMBER
public static final int BYTES_VALUE_FIELD_NUMBER- See Also:
-
STRING_VALUE_FIELD_NUMBER
public static final int STRING_VALUE_FIELD_NUMBER- See Also:
-
STRUCT_VALUE_FIELD_NUMBER
public static final int STRUCT_VALUE_FIELD_NUMBER- See Also:
-
TIMESTAMP_VALUE_FIELD_NUMBER
public static final int TIMESTAMP_VALUE_FIELD_NUMBER- See Also:
-
DATE_DAYS_VALUE_FIELD_NUMBER
public static final int DATE_DAYS_VALUE_FIELD_NUMBER- See Also:
-
IS_COMMIT_TIMESTAMP_FIELD_NUMBER
public static final int IS_COMMIT_TIMESTAMP_FIELD_NUMBER- See Also:
-
ARRAY_VALUE_FIELD_NUMBER
public static final int ARRAY_VALUE_FIELD_NUMBER- See Also:
-
ARRAY_TYPE_FIELD_NUMBER
public static final int ARRAY_TYPE_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getValueTypeCase
- Specified by:
getValueTypeCasein interfaceValueOrBuilder
-
hasIsNull
public boolean hasIsNull()If is_null is set, then this value is null.
bool is_null = 1;- Specified by:
hasIsNullin interfaceValueOrBuilder- 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:
getIsNullin interfaceValueOrBuilder- Returns:
- The isNull.
-
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:
hasIntValuein interfaceValueOrBuilder- 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:
getIntValuein interfaceValueOrBuilder- Returns:
- The intValue.
-
hasBoolValue
public boolean hasBoolValue()Bool type value.
bool bool_value = 3;- Specified by:
hasBoolValuein interfaceValueOrBuilder- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()Bool type value.
bool bool_value = 3;- Specified by:
getBoolValuein interfaceValueOrBuilder- Returns:
- The boolValue.
-
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:
hasDoubleValuein interfaceValueOrBuilder- 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:
getDoubleValuein interfaceValueOrBuilder- Returns:
- The doubleValue.
-
hasBytesValue
public boolean hasBytesValue()Bytes type value, stored in CORD. It's also used for PROTO type value.
bytes bytes_value = 5;- Specified by:
hasBytesValuein interfaceValueOrBuilder- 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:
getBytesValuein interfaceValueOrBuilder- Returns:
- The bytesValue.
-
hasStringValue
public boolean hasStringValue()String type value, stored in CORD.
string string_value = 6;- Specified by:
hasStringValuein interfaceValueOrBuilder- Returns:
- Whether the stringValue field is set.
-
getStringValue
String type value, stored in CORD.
string string_value = 6;- Specified by:
getStringValuein interfaceValueOrBuilder- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()String type value, stored in CORD.
string string_value = 6;- Specified by:
getStringValueBytesin interfaceValueOrBuilder- Returns:
- The bytes for stringValue.
-
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:
hasStructValuein interfaceValueOrBuilder- Returns:
- Whether the structValue field is set.
-
getStructValue
Struct type value. It contains a ValueList representing the values in this struct.
.google.spanner.executor.v1.ValueList struct_value = 7;- Specified by:
getStructValuein interfaceValueOrBuilder- Returns:
- The structValue.
-
getStructValueOrBuilder
Struct type value. It contains a ValueList representing the values in this struct.
.google.spanner.executor.v1.ValueList struct_value = 7;- Specified by:
getStructValueOrBuilderin interfaceValueOrBuilder
-
hasTimestampValue
public boolean hasTimestampValue()Timestamp type value.
.google.protobuf.Timestamp timestamp_value = 8;- Specified by:
hasTimestampValuein interfaceValueOrBuilder- 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:
getTimestampValuein interfaceValueOrBuilder- Returns:
- The timestampValue.
-
getTimestampValueOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder()Timestamp type value.
.google.protobuf.Timestamp timestamp_value = 8;- Specified by:
getTimestampValueOrBuilderin interfaceValueOrBuilder
-
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:
hasDateDaysValuein interfaceValueOrBuilder- 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:
getDateDaysValuein interfaceValueOrBuilder- Returns:
- The dateDaysValue.
-
hasIsCommitTimestamp
public boolean hasIsCommitTimestamp()If set, holds the sentinel value for the transaction CommitTimestamp.
bool is_commit_timestamp = 10;- Specified by:
hasIsCommitTimestampin interfaceValueOrBuilder- 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:
getIsCommitTimestampin interfaceValueOrBuilder- Returns:
- The isCommitTimestamp.
-
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:
hasArrayValuein interfaceValueOrBuilder- Returns:
- Whether the arrayValue field is set.
-
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:
getArrayValuein interfaceValueOrBuilder- Returns:
- The arrayValue.
-
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:
getArrayValueOrBuilderin interfaceValueOrBuilder
-
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:
hasArrayTypein interfaceValueOrBuilder- Returns:
- Whether the arrayType field is set.
-
getArrayType
Type of array element. Only set if value is an array.
optional .google.spanner.v1.Type array_type = 12;- Specified by:
getArrayTypein interfaceValueOrBuilder- Returns:
- The arrayType.
-
getArrayTypeOrBuilder
Type of array element. Only set if value is an array.
optional .google.spanner.v1.Type array_type = 12;- Specified by:
getArrayTypeOrBuilderin interfaceValueOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Value parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Value parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Value parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Value parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Value parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Value parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Value parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Value parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Value.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-