Package com.google.spanner.v1
Class PartitionReadRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.v1.PartitionReadRequest
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,PartitionReadRequestOrBuilder,Serializable
public final class PartitionReadRequest
extends com.google.protobuf.GeneratedMessageV3
implements PartitionReadRequestOrBuilder
The request for [PartitionRead][google.spanner.v1.Spanner.PartitionRead]Protobuf type
google.spanner.v1.PartitionReadRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe request for [PartitionRead][google.spanner.v1.Spanner.PartitionRead]Nested 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 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 TypeMethodDescriptionbooleangetColumns(int index) The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching this request.com.google.protobuf.ByteStringgetColumnsBytes(int index) The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching this request.intThe columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching this request.com.google.protobuf.ProtocolStringListThe columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching this request.static PartitionReadRequeststatic final com.google.protobuf.Descriptors.DescriptorgetIndex()If non-empty, the name of an index on [table][google.spanner.v1.PartitionReadRequest.table].com.google.protobuf.ByteStringIf non-empty, the name of an index on [table][google.spanner.v1.PartitionReadRequest.table].Required.Required.com.google.protobuf.Parser<PartitionReadRequest>Additional options that affect how many partitions are created.Additional options that affect how many partitions are created.intRequired.com.google.protobuf.ByteStringRequired.getTable()Required.com.google.protobuf.ByteStringRequired.Read only snapshot transactions are supported, read/write and single use transactions are not.Read only snapshot transactions are supported, read/write and single use transactions are not.inthashCode()booleanRequired.booleanAdditional options that affect how many partitions are created.booleanRead only snapshot transactions are supported, read/write and single use transactions are not.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic PartitionReadRequest.Builderstatic PartitionReadRequest.BuildernewBuilder(PartitionReadRequest prototype) protected PartitionReadRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static PartitionReadRequestparseDelimitedFrom(InputStream input) static PartitionReadRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartitionReadRequestparseFrom(byte[] data) static PartitionReadRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartitionReadRequestparseFrom(com.google.protobuf.ByteString data) static PartitionReadRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartitionReadRequestparseFrom(com.google.protobuf.CodedInputStream input) static PartitionReadRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartitionReadRequestparseFrom(InputStream input) static PartitionReadRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartitionReadRequestparseFrom(ByteBuffer data) static PartitionReadRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PartitionReadRequest>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
-
SESSION_FIELD_NUMBER
public static final int SESSION_FIELD_NUMBER- See Also:
-
TRANSACTION_FIELD_NUMBER
public static final int TRANSACTION_FIELD_NUMBER- See Also:
-
TABLE_FIELD_NUMBER
public static final int TABLE_FIELD_NUMBER- See Also:
-
INDEX_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER- See Also:
-
COLUMNS_FIELD_NUMBER
public static final int COLUMNS_FIELD_NUMBER- See Also:
-
KEY_SET_FIELD_NUMBER
public static final int KEY_SET_FIELD_NUMBER- See Also:
-
PARTITION_OPTIONS_FIELD_NUMBER
public static final int PARTITION_OPTIONS_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
-
getSession
Required. The session used to create the partitions.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getSessionin interfacePartitionReadRequestOrBuilder- Returns:
- The session.
-
getSessionBytes
public com.google.protobuf.ByteString getSessionBytes()Required. The session used to create the partitions.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getSessionBytesin interfacePartitionReadRequestOrBuilder- Returns:
- The bytes for session.
-
hasTransaction
public boolean hasTransaction()Read only snapshot transactions are supported, read/write and single use transactions are not.
.google.spanner.v1.TransactionSelector transaction = 2;- Specified by:
hasTransactionin interfacePartitionReadRequestOrBuilder- Returns:
- Whether the transaction field is set.
-
getTransaction
Read only snapshot transactions are supported, read/write and single use transactions are not.
.google.spanner.v1.TransactionSelector transaction = 2;- Specified by:
getTransactionin interfacePartitionReadRequestOrBuilder- Returns:
- The transaction.
-
getTransactionOrBuilder
Read only snapshot transactions are supported, read/write and single use transactions are not.
.google.spanner.v1.TransactionSelector transaction = 2;- Specified by:
getTransactionOrBuilderin interfacePartitionReadRequestOrBuilder
-
getTable
Required. The name of the table in the database to be read.
string table = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTablein interfacePartitionReadRequestOrBuilder- Returns:
- The table.
-
getTableBytes
public com.google.protobuf.ByteString getTableBytes()Required. The name of the table in the database to be read.
string table = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTableBytesin interfacePartitionReadRequestOrBuilder- Returns:
- The bytes for table.
-
getIndex
If non-empty, the name of an index on [table][google.spanner.v1.PartitionReadRequest.table]. This index is used instead of the table primary key when interpreting [key_set][google.spanner.v1.PartitionReadRequest.key_set] and sorting result rows. See [key_set][google.spanner.v1.PartitionReadRequest.key_set] for further information.
string index = 4;- Specified by:
getIndexin interfacePartitionReadRequestOrBuilder- Returns:
- The index.
-
getIndexBytes
public com.google.protobuf.ByteString getIndexBytes()If non-empty, the name of an index on [table][google.spanner.v1.PartitionReadRequest.table]. This index is used instead of the table primary key when interpreting [key_set][google.spanner.v1.PartitionReadRequest.key_set] and sorting result rows. See [key_set][google.spanner.v1.PartitionReadRequest.key_set] for further information.
string index = 4;- Specified by:
getIndexBytesin interfacePartitionReadRequestOrBuilder- Returns:
- The bytes for index.
-
getColumnsList
public com.google.protobuf.ProtocolStringList getColumnsList()The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5;- Specified by:
getColumnsListin interfacePartitionReadRequestOrBuilder- Returns:
- A list containing the columns.
-
getColumnsCount
public int getColumnsCount()The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5;- Specified by:
getColumnsCountin interfacePartitionReadRequestOrBuilder- Returns:
- The count of columns.
-
getColumns
The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5;- Specified by:
getColumnsin interfacePartitionReadRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The columns at the given index.
-
getColumnsBytes
public com.google.protobuf.ByteString getColumnsBytes(int index) The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5;- Specified by:
getColumnsBytesin interfacePartitionReadRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the columns at the given index.
-
hasKeySet
public boolean hasKeySet()Required. `key_set` identifies the rows to be yielded. `key_set` names the primary keys of the rows in [table][google.spanner.v1.PartitionReadRequest.table] to be yielded, unless [index][google.spanner.v1.PartitionReadRequest.index] is present. If [index][google.spanner.v1.PartitionReadRequest.index] is present, then [key_set][google.spanner.v1.PartitionReadRequest.key_set] instead names index keys in [index][google.spanner.v1.PartitionReadRequest.index]. It is not an error for the `key_set` to name rows that do not exist in the database. Read yields nothing for nonexistent rows.
.google.spanner.v1.KeySet key_set = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasKeySetin interfacePartitionReadRequestOrBuilder- Returns:
- Whether the keySet field is set.
-
getKeySet
Required. `key_set` identifies the rows to be yielded. `key_set` names the primary keys of the rows in [table][google.spanner.v1.PartitionReadRequest.table] to be yielded, unless [index][google.spanner.v1.PartitionReadRequest.index] is present. If [index][google.spanner.v1.PartitionReadRequest.index] is present, then [key_set][google.spanner.v1.PartitionReadRequest.key_set] instead names index keys in [index][google.spanner.v1.PartitionReadRequest.index]. It is not an error for the `key_set` to name rows that do not exist in the database. Read yields nothing for nonexistent rows.
.google.spanner.v1.KeySet key_set = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getKeySetin interfacePartitionReadRequestOrBuilder- Returns:
- The keySet.
-
getKeySetOrBuilder
Required. `key_set` identifies the rows to be yielded. `key_set` names the primary keys of the rows in [table][google.spanner.v1.PartitionReadRequest.table] to be yielded, unless [index][google.spanner.v1.PartitionReadRequest.index] is present. If [index][google.spanner.v1.PartitionReadRequest.index] is present, then [key_set][google.spanner.v1.PartitionReadRequest.key_set] instead names index keys in [index][google.spanner.v1.PartitionReadRequest.index]. It is not an error for the `key_set` to name rows that do not exist in the database. Read yields nothing for nonexistent rows.
.google.spanner.v1.KeySet key_set = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getKeySetOrBuilderin interfacePartitionReadRequestOrBuilder
-
hasPartitionOptions
public boolean hasPartitionOptions()Additional options that affect how many partitions are created.
.google.spanner.v1.PartitionOptions partition_options = 9;- Specified by:
hasPartitionOptionsin interfacePartitionReadRequestOrBuilder- Returns:
- Whether the partitionOptions field is set.
-
getPartitionOptions
Additional options that affect how many partitions are created.
.google.spanner.v1.PartitionOptions partition_options = 9;- Specified by:
getPartitionOptionsin interfacePartitionReadRequestOrBuilder- Returns:
- The partitionOptions.
-
getPartitionOptionsOrBuilder
Additional options that affect how many partitions are created.
.google.spanner.v1.PartitionOptions partition_options = 9;- Specified by:
getPartitionOptionsOrBuilderin interfacePartitionReadRequestOrBuilder
-
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 PartitionReadRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PartitionReadRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PartitionReadRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PartitionReadRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PartitionReadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PartitionReadRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PartitionReadRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static PartitionReadRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static PartitionReadRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static PartitionReadRequest 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 PartitionReadRequest.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
-