public static final class KeyRecipe.Part extends GeneratedMessage 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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
IDENTIFIER_FIELD_NUMBER
public static final int IDENTIFIER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NULL_ORDER_FIELD_NUMBER
public static final int NULL_ORDER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ORDER_FIELD_NUMBER
public static final int ORDER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RANDOM_FIELD_NUMBER
public static final int RANDOM_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
STRUCT_IDENTIFIERS_FIELD_NUMBER
public static final int STRUCT_IDENTIFIERS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TAG_FIELD_NUMBER
public static final int TAG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static KeyRecipe.Part getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static KeyRecipe.Part.Builder newBuilder()
newBuilder(KeyRecipe.Part prototype)
public static KeyRecipe.Part.Builder newBuilder(KeyRecipe.Part prototype)
public static KeyRecipe.Part parseDelimitedFrom(InputStream input)
public static KeyRecipe.Part parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static KeyRecipe.Part parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static KeyRecipe.Part parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static KeyRecipe.Part parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static KeyRecipe.Part parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static KeyRecipe.Part parseFrom(CodedInputStream input)
public static KeyRecipe.Part parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static KeyRecipe.Part parseFrom(InputStream input)
public static KeyRecipe.Part parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static KeyRecipe.Part parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static KeyRecipe.Part parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<KeyRecipe.Part> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public KeyRecipe.Part getDefaultInstanceForType()
getIdentifier()
public String getIdentifier()
identifier is the name of the column or query parameter.
string identifier = 5;
| Returns |
| Type |
Description |
String |
The identifier.
|
getIdentifierBytes()
public ByteString getIdentifierBytes()
identifier is the name of the column or query parameter.
string identifier = 5;
| Returns |
| Type |
Description |
ByteString |
The bytes for identifier.
|
getNullOrder()
public KeyRecipe.Part.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;
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;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for nullOrder.
|
getOrder()
public KeyRecipe.Part.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;
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;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for order.
|
getParserForType()
public Parser<KeyRecipe.Part> getParserForType()
Overrides
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;
| Returns |
| Type |
Description |
boolean |
The random.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getStructIdentifiers(int index)
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;
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
int |
The structIdentifiers at the given index.
|
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;
| Returns |
| Type |
Description |
int |
The count of structIdentifiers.
|
getStructIdentifiersList()
public List<Integer> getStructIdentifiersList()
It is a repeated field to support fetching key columns from nested
structs, such as STRUCT query parameters.
repeated int32 struct_identifiers = 7;
| Returns |
| Type |
Description |
List<Integer> |
A list containing the structIdentifiers.
|
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;
| Returns |
| Type |
Description |
int |
The tag.
|
getType()
The type of the key part. Only present if tag is zero.
.google.spanner.v1.Type type = 4;
| Returns |
| Type |
Description |
Type |
The type.
|
getTypeOrBuilder()
public TypeOrBuilder getTypeOrBuilder()
The type of the key part. Only present if tag is zero.
.google.spanner.v1.Type type = 4;
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;
| Returns |
| Type |
Description |
Value |
The value.
|
getValueOrBuilder()
public 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;
getValueTypeCase()
public KeyRecipe.Part.ValueTypeCase getValueTypeCase()
hasIdentifier()
public boolean hasIdentifier()
identifier is the name of the column or query parameter.
string identifier = 5;
| Returns |
| Type |
Description |
boolean |
Whether the identifier field is set.
|
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;
| Returns |
| Type |
Description |
boolean |
Whether the random field is set.
|
hasType()
The type of the key part. Only present if tag is zero.
.google.spanner.v1.Type type = 4;
| Returns |
| Type |
Description |
boolean |
Whether the type field is set.
|
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;
| Returns |
| Type |
Description |
boolean |
Whether the value field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public KeyRecipe.Part.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected KeyRecipe.Part.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public KeyRecipe.Part.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides