public final class PartitionReadRequest extends GeneratedMessageV3 implements PartitionReadRequestOrBuilder
The request for [PartitionRead][google.spanner.v1.Spanner.PartitionRead]Protobuf type
google.spanner.v1.PartitionReadRequest| Modifier and Type | Class and Description |
|---|---|
static class |
PartitionReadRequest.Builder
The request for [PartitionRead][google.spanner.v1.Spanner.PartitionRead]
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
COLUMNS_FIELD_NUMBER |
static int |
INDEX_FIELD_NUMBER |
static int |
KEY_SET_FIELD_NUMBER |
static int |
PARTITION_OPTIONS_FIELD_NUMBER |
static int |
SESSION_FIELD_NUMBER |
static int |
TABLE_FIELD_NUMBER |
static int |
TRANSACTION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getColumns(int index)
The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching
this request.
|
ByteString |
getColumnsBytes(int index)
The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching
this request.
|
int |
getColumnsCount()
The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching
this request.
|
ProtocolStringList |
getColumnsList()
The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching
this request.
|
static PartitionReadRequest |
getDefaultInstance() |
PartitionReadRequest |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getIndex()
If non-empty, the name of an index on [table][google.spanner.v1.PartitionReadRequest.table].
|
ByteString |
getIndexBytes()
If non-empty, the name of an index on [table][google.spanner.v1.PartitionReadRequest.table].
|
KeySet |
getKeySet()
Required.
|
KeySetOrBuilder |
getKeySetOrBuilder()
Required.
|
Parser<PartitionReadRequest> |
getParserForType() |
PartitionOptions |
getPartitionOptions()
Additional options that affect how many partitions are created.
|
PartitionOptionsOrBuilder |
getPartitionOptionsOrBuilder()
Additional options that affect how many partitions are created.
|
int |
getSerializedSize() |
java.lang.String |
getSession()
Required.
|
ByteString |
getSessionBytes()
Required.
|
java.lang.String |
getTable()
Required.
|
ByteString |
getTableBytes()
Required.
|
TransactionSelector |
getTransaction()
Read only snapshot transactions are supported, read/write and single use
transactions are not.
|
TransactionSelectorOrBuilder |
getTransactionOrBuilder()
Read only snapshot transactions are supported, read/write and single use
transactions are not.
|
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasKeySet()
Required.
|
boolean |
hasPartitionOptions()
Additional options that affect how many partitions are created.
|
boolean |
hasTransaction()
Read only snapshot transactions are supported, read/write and single use
transactions are not.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static PartitionReadRequest.Builder |
newBuilder() |
static PartitionReadRequest.Builder |
newBuilder(PartitionReadRequest prototype) |
PartitionReadRequest.Builder |
newBuilderForType() |
protected PartitionReadRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static PartitionReadRequest |
parseDelimitedFrom(java.io.InputStream input) |
static PartitionReadRequest |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static PartitionReadRequest |
parseFrom(byte[] data) |
static PartitionReadRequest |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static PartitionReadRequest |
parseFrom(java.nio.ByteBuffer data) |
static PartitionReadRequest |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static PartitionReadRequest |
parseFrom(ByteString data) |
static PartitionReadRequest |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static PartitionReadRequest |
parseFrom(CodedInputStream input) |
static PartitionReadRequest |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static PartitionReadRequest |
parseFrom(java.io.InputStream input) |
static PartitionReadRequest |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<PartitionReadRequest> |
parser() |
PartitionReadRequest.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int SESSION_FIELD_NUMBER
public static final int TRANSACTION_FIELD_NUMBER
public static final int TABLE_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER
public static final int COLUMNS_FIELD_NUMBER
public static final int KEY_SET_FIELD_NUMBER
public static final int PARTITION_OPTIONS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getSession()
Required. The session used to create the partitions.
string session = 1;getSession in interface PartitionReadRequestOrBuilderpublic ByteString getSessionBytes()
Required. The session used to create the partitions.
string session = 1;getSessionBytes in interface PartitionReadRequestOrBuilderpublic boolean hasTransaction()
Read only snapshot transactions are supported, read/write and single use transactions are not.
.google.spanner.v1.TransactionSelector transaction = 2;hasTransaction in interface PartitionReadRequestOrBuilderpublic TransactionSelector getTransaction()
Read only snapshot transactions are supported, read/write and single use transactions are not.
.google.spanner.v1.TransactionSelector transaction = 2;getTransaction in interface PartitionReadRequestOrBuilderpublic TransactionSelectorOrBuilder getTransactionOrBuilder()
Read only snapshot transactions are supported, read/write and single use transactions are not.
.google.spanner.v1.TransactionSelector transaction = 2;getTransactionOrBuilder in interface PartitionReadRequestOrBuilderpublic java.lang.String getTable()
Required. The name of the table in the database to be read.
string table = 3;getTable in interface PartitionReadRequestOrBuilderpublic ByteString getTableBytes()
Required. The name of the table in the database to be read.
string table = 3;getTableBytes in interface PartitionReadRequestOrBuilderpublic java.lang.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;getIndex in interface PartitionReadRequestOrBuilderpublic 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;getIndexBytes in interface PartitionReadRequestOrBuilderpublic ProtocolStringList getColumnsList()
The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5;getColumnsList in interface PartitionReadRequestOrBuilderpublic int getColumnsCount()
The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5;getColumnsCount in interface PartitionReadRequestOrBuilderpublic java.lang.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;getColumns in interface PartitionReadRequestOrBuilderpublic 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;getColumnsBytes in interface PartitionReadRequestOrBuilderpublic 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;hasKeySet in interface PartitionReadRequestOrBuilderpublic 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;getKeySet in interface PartitionReadRequestOrBuilderpublic 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;getKeySetOrBuilder in interface PartitionReadRequestOrBuilderpublic boolean hasPartitionOptions()
Additional options that affect how many partitions are created.
.google.spanner.v1.PartitionOptions partition_options = 9;hasPartitionOptions in interface PartitionReadRequestOrBuilderpublic PartitionOptions getPartitionOptions()
Additional options that affect how many partitions are created.
.google.spanner.v1.PartitionOptions partition_options = 9;getPartitionOptions in interface PartitionReadRequestOrBuilderpublic PartitionOptionsOrBuilder getPartitionOptionsOrBuilder()
Additional options that affect how many partitions are created.
.google.spanner.v1.PartitionOptions partition_options = 9;getPartitionOptionsOrBuilder in interface PartitionReadRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static PartitionReadRequest parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PartitionReadRequest parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PartitionReadRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PartitionReadRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PartitionReadRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PartitionReadRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PartitionReadRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PartitionReadRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static PartitionReadRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PartitionReadRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static PartitionReadRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PartitionReadRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic PartitionReadRequest.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static PartitionReadRequest.Builder newBuilder()
public static PartitionReadRequest.Builder newBuilder(PartitionReadRequest prototype)
public PartitionReadRequest.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected PartitionReadRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static PartitionReadRequest getDefaultInstance()
public static Parser<PartitionReadRequest> parser()
public Parser<PartitionReadRequest> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public PartitionReadRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder