Package com.google.spanner.v1
Class KeyRecipe.Part
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.v1.KeyRecipe.Part
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,KeyRecipe.PartOrBuilder,Serializable
- Enclosing class:
- KeyRecipe
public static final class KeyRecipe.Part
extends com.google.protobuf.GeneratedMessageV3
implements KeyRecipe.PartOrBuilder
An ssformat key is composed of a sequence of tag numbers and key column values. `Part` represents a single tag or key column value.Protobuf type
google.spanner.v1.KeyRecipe.Part- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn ssformat key is composed of a sequence of tag numbers and key column values.static enumThe null order of the key column.static enumThe remaining fields encode column values.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 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 TypeMethodDescriptionbooleanstatic KeyRecipe.Partstatic final com.google.protobuf.Descriptors.Descriptor`identifier` is the name of the column or query parameter.com.google.protobuf.ByteString`identifier` is the name of the column or query parameter.How NULLs are represented in the encoded key part.intHow NULLs are represented in the encoded key part.getOrder()Whether the key column is sorted ascending or descending.intWhether the key column is sorted ascending or descending.com.google.protobuf.Parser<KeyRecipe.Part>booleanIf true, the client is responsible to fill in the value randomly.intintgetStructIdentifiers(int index) It is a repeated field to support fetching key columns from nested structs, such as `STRUCT` query parameters.intIt is a repeated field to support fetching key columns from nested structs, such as `STRUCT` query parameters.It is a repeated field to support fetching key columns from nested structs, such as `STRUCT` query parameters.intgetTag()If non-zero, `tag` is the only field present in this `Part`.getType()The type of the key part.The type of the key part.com.google.protobuf.ValuegetValue()The constant value of the key part.com.google.protobuf.ValueOrBuilderThe constant value of the key part.inthashCode()boolean`identifier` is the name of the column or query parameter.booleanIf true, the client is responsible to fill in the value randomly.booleanhasType()The type of the key part.booleanhasValue()The constant value of the key part.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic KeyRecipe.Part.Builderstatic KeyRecipe.Part.BuildernewBuilder(KeyRecipe.Part prototype) protected KeyRecipe.Part.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static KeyRecipe.PartparseDelimitedFrom(InputStream input) static KeyRecipe.PartparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KeyRecipe.PartparseFrom(byte[] data) static KeyRecipe.PartparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KeyRecipe.PartparseFrom(com.google.protobuf.ByteString data) static KeyRecipe.PartparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KeyRecipe.PartparseFrom(com.google.protobuf.CodedInputStream input) static KeyRecipe.PartparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KeyRecipe.PartparseFrom(InputStream input) static KeyRecipe.PartparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KeyRecipe.PartparseFrom(ByteBuffer data) static KeyRecipe.PartparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<KeyRecipe.Part>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
-
TAG_FIELD_NUMBER
public static final int TAG_FIELD_NUMBER- See Also:
-
ORDER_FIELD_NUMBER
public static final int ORDER_FIELD_NUMBER- See Also:
-
NULL_ORDER_FIELD_NUMBER
public static final int NULL_ORDER_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
IDENTIFIER_FIELD_NUMBER
public static final int IDENTIFIER_FIELD_NUMBER- See Also:
-
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER- See Also:
-
RANDOM_FIELD_NUMBER
public static final int RANDOM_FIELD_NUMBER- See Also:
-
STRUCT_IDENTIFIERS_FIELD_NUMBER
public static final int STRUCT_IDENTIFIERS_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 interfaceKeyRecipe.PartOrBuilder
-
getTag
public int getTag()If non-zero, `tag` is the only field present in this `Part`. The part is encoded by appending `tag` to the ssformat key.
uint32 tag = 1;- Specified by:
getTagin interfaceKeyRecipe.PartOrBuilder- Returns:
- The tag.
-
getOrderValue
public int getOrderValue()Whether the key column is sorted ascending or descending. Only present if `tag` is zero.
.google.spanner.v1.KeyRecipe.Part.Order order = 2;- Specified by:
getOrderValuein interfaceKeyRecipe.PartOrBuilder- Returns:
- The enum numeric value on the wire for order.
-
getOrder
Whether the key column is sorted ascending or descending. Only present if `tag` is zero.
.google.spanner.v1.KeyRecipe.Part.Order order = 2;- Specified by:
getOrderin interfaceKeyRecipe.PartOrBuilder- Returns:
- The order.
-
getNullOrderValue
public int getNullOrderValue()How NULLs are represented in the encoded key part. Only present if `tag` is zero.
.google.spanner.v1.KeyRecipe.Part.NullOrder null_order = 3;- Specified by:
getNullOrderValuein interfaceKeyRecipe.PartOrBuilder- Returns:
- The enum numeric value on the wire for nullOrder.
-
getNullOrder
How NULLs are represented in the encoded key part. Only present if `tag` is zero.
.google.spanner.v1.KeyRecipe.Part.NullOrder null_order = 3;- Specified by:
getNullOrderin interfaceKeyRecipe.PartOrBuilder- Returns:
- The nullOrder.
-
hasType
public boolean hasType()The type of the key part. Only present if `tag` is zero.
.google.spanner.v1.Type type = 4;- Specified by:
hasTypein interfaceKeyRecipe.PartOrBuilder- Returns:
- Whether the type field is set.
-
getType
The type of the key part. Only present if `tag` is zero.
.google.spanner.v1.Type type = 4;- Specified by:
getTypein interfaceKeyRecipe.PartOrBuilder- Returns:
- The type.
-
getTypeOrBuilder
The type of the key part. Only present if `tag` is zero.
.google.spanner.v1.Type type = 4;- Specified by:
getTypeOrBuilderin interfaceKeyRecipe.PartOrBuilder
-
hasIdentifier
public boolean hasIdentifier()`identifier` is the name of the column or query parameter.
string identifier = 5;- Specified by:
hasIdentifierin interfaceKeyRecipe.PartOrBuilder- Returns:
- Whether the identifier field is set.
-
getIdentifier
`identifier` is the name of the column or query parameter.
string identifier = 5;- Specified by:
getIdentifierin interfaceKeyRecipe.PartOrBuilder- Returns:
- The identifier.
-
getIdentifierBytes
public com.google.protobuf.ByteString getIdentifierBytes()`identifier` is the name of the column or query parameter.
string identifier = 5;- Specified by:
getIdentifierBytesin interfaceKeyRecipe.PartOrBuilder- Returns:
- The bytes for identifier.
-
hasValue
public boolean hasValue()The constant value of the key part. It is present when query uses a constant as a part of the key.
.google.protobuf.Value value = 6;- Specified by:
hasValuein interfaceKeyRecipe.PartOrBuilder- Returns:
- Whether the value field is set.
-
getValue
public com.google.protobuf.Value getValue()The constant value of the key part. It is present when query uses a constant as a part of the key.
.google.protobuf.Value value = 6;- Specified by:
getValuein interfaceKeyRecipe.PartOrBuilder- Returns:
- The value.
-
getValueOrBuilder
public com.google.protobuf.ValueOrBuilder getValueOrBuilder()The constant value of the key part. It is present when query uses a constant as a part of the key.
.google.protobuf.Value value = 6;- Specified by:
getValueOrBuilderin interfaceKeyRecipe.PartOrBuilder
-
hasRandom
public boolean hasRandom()If true, the client is responsible to fill in the value randomly. It's relevant only for the INT64 type.
bool random = 8;- Specified by:
hasRandomin interfaceKeyRecipe.PartOrBuilder- Returns:
- Whether the random field is set.
-
getRandom
public boolean getRandom()If true, the client is responsible to fill in the value randomly. It's relevant only for the INT64 type.
bool random = 8;- Specified by:
getRandomin interfaceKeyRecipe.PartOrBuilder- Returns:
- The random.
-
getStructIdentifiersList
It is a repeated field to support fetching key columns from nested structs, such as `STRUCT` query parameters.
repeated int32 struct_identifiers = 7;- Specified by:
getStructIdentifiersListin interfaceKeyRecipe.PartOrBuilder- Returns:
- A list containing the structIdentifiers.
-
getStructIdentifiersCount
public int getStructIdentifiersCount()It is a repeated field to support fetching key columns from nested structs, such as `STRUCT` query parameters.
repeated int32 struct_identifiers = 7;- Specified by:
getStructIdentifiersCountin interfaceKeyRecipe.PartOrBuilder- Returns:
- The count of structIdentifiers.
-
getStructIdentifiers
public int getStructIdentifiers(int index) It is a repeated field to support fetching key columns from nested structs, such as `STRUCT` query parameters.
repeated int32 struct_identifiers = 7;- Specified by:
getStructIdentifiersin interfaceKeyRecipe.PartOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The structIdentifiers at the given index.
-
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 KeyRecipe.Part parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KeyRecipe.Part parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KeyRecipe.Part parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KeyRecipe.Part parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KeyRecipe.Part parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KeyRecipe.Part parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static KeyRecipe.Part parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static KeyRecipe.Part parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static KeyRecipe.Part parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static KeyRecipe.Part 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 KeyRecipe.Part.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
-