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 typegoogle.spanner.v1.PartitionReadRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPartitionReadRequest.BuilderThe 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<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLUMNS_FIELD_NUMBERstatic intINDEX_FIELD_NUMBERstatic intKEY_SET_FIELD_NUMBERstatic intPARTITION_OPTIONS_FIELD_NUMBERstatic intSESSION_FIELD_NUMBERstatic intTABLE_FIELD_NUMBERstatic intTRANSACTION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetColumns(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.intgetColumnsCount()The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching this request.com.google.protobuf.ProtocolStringListgetColumnsList()The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching this request.static PartitionReadRequestgetDefaultInstance()PartitionReadRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetIndex()If non-empty, the name of an index on [table][google.spanner.v1.PartitionReadRequest.table].com.google.protobuf.ByteStringgetIndexBytes()If non-empty, the name of an index on [table][google.spanner.v1.PartitionReadRequest.table].KeySetgetKeySet()Required.KeySetOrBuildergetKeySetOrBuilder()Required.com.google.protobuf.Parser<PartitionReadRequest>getParserForType()PartitionOptionsgetPartitionOptions()Additional options that affect how many partitions are created.PartitionOptionsOrBuildergetPartitionOptionsOrBuilder()Additional options that affect how many partitions are created.intgetSerializedSize()StringgetSession()Required.com.google.protobuf.ByteStringgetSessionBytes()Required.StringgetTable()Required.com.google.protobuf.ByteStringgetTableBytes()Required.TransactionSelectorgetTransaction()Read only snapshot transactions are supported, read/write and single use transactions are not.TransactionSelectorOrBuildergetTransactionOrBuilder()Read only snapshot transactions are supported, read/write and single use transactions are not.com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasKeySet()Required.booleanhasPartitionOptions()Additional options that affect how many partitions are created.booleanhasTransaction()Read only snapshot transactions are supported, read/write and single use transactions are not.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static PartitionReadRequest.BuildernewBuilder()static PartitionReadRequest.BuildernewBuilder(PartitionReadRequest prototype)PartitionReadRequest.BuildernewBuilderForType()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()PartitionReadRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SESSION_FIELD_NUMBER
public static final int SESSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRANSACTION_FIELD_NUMBER
public static final int TRANSACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TABLE_FIELD_NUMBER
public static final int TABLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INDEX_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COLUMNS_FIELD_NUMBER
public static final int COLUMNS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KEY_SET_FIELD_NUMBER
public static final int KEY_SET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARTITION_OPTIONS_FIELD_NUMBER
public static final int PARTITION_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
public String 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
public TransactionSelector 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
public TransactionSelectorOrBuilder 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
public String 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
public String 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
public String getColumns(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:
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
public KeySet 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
public KeySetOrBuilder 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
public PartitionOptions 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
public PartitionOptionsOrBuilder 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
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- 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
public boolean equals(Object obj)
- 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
public static PartitionReadRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PartitionReadRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PartitionReadRequest parseDelimitedFrom(InputStream input) throws IOException
- 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
public PartitionReadRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static PartitionReadRequest.Builder newBuilder()
-
newBuilder
public static PartitionReadRequest.Builder newBuilder(PartitionReadRequest prototype)
-
toBuilder
public PartitionReadRequest.Builder 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
public static PartitionReadRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<PartitionReadRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<PartitionReadRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PartitionReadRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-