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| Modifier and Type | Class and Description |
|---|---|
static class |
PartitionReadRequest.Builder
The request for [PartitionRead][google.spanner.v1.Spanner.PartitionRead]
|
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| 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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getColumns(int index)
The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching
this request.
|
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.
|
int |
getColumnsCount()
The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching
this request.
|
com.google.protobuf.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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getIndex()
If non-empty, the name of an index on [table][google.spanner.v1.PartitionReadRequest.table].
|
com.google.protobuf.ByteString |
getIndexBytes()
If non-empty, the name of an index on [table][google.spanner.v1.PartitionReadRequest.table].
|
KeySet |
getKeySet()
Required.
|
KeySetOrBuilder |
getKeySetOrBuilder()
Required.
|
com.google.protobuf.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() |
String |
getSession()
Required.
|
com.google.protobuf.ByteString |
getSessionBytes()
Required.
|
String |
getTable()
Required.
|
com.google.protobuf.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.
|
com.google.protobuf.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static PartitionReadRequest.Builder |
newBuilder() |
static PartitionReadRequest.Builder |
newBuilder(PartitionReadRequest prototype) |
PartitionReadRequest.Builder |
newBuilderForType() |
protected PartitionReadRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static PartitionReadRequest |
parseDelimitedFrom(InputStream input) |
static PartitionReadRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PartitionReadRequest |
parseFrom(byte[] data) |
static PartitionReadRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PartitionReadRequest |
parseFrom(ByteBuffer data) |
static PartitionReadRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PartitionReadRequest |
parseFrom(com.google.protobuf.ByteString data) |
static PartitionReadRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PartitionReadRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PartitionReadRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PartitionReadRequest |
parseFrom(InputStream input) |
static PartitionReadRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<PartitionReadRequest> |
parser() |
PartitionReadRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getSession()
Required. The session used to create the partitions.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getSession in interface PartitionReadRequestOrBuilderpublic 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) = { ... }
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 String getTable()
Required. The name of the table in the database to be read.
string table = 3 [(.google.api.field_behavior) = REQUIRED];getTable in interface PartitionReadRequestOrBuilderpublic 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];getTableBytes in interface PartitionReadRequestOrBuilderpublic 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 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;getIndexBytes in interface PartitionReadRequestOrBuilderpublic 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;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 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 PartitionReadRequestOrBuilderindex - The index of the element to return.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;getColumnsBytes in interface PartitionReadRequestOrBuilderindex - The index of the value to return.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];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 [(.google.api.field_behavior) = REQUIRED];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 [(.google.api.field_behavior) = REQUIRED];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 com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static PartitionReadRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PartitionReadRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PartitionReadRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PartitionReadRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PartitionReadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PartitionReadRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PartitionReadRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static PartitionReadRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PartitionReadRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PartitionReadRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PartitionReadRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static PartitionReadRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PartitionReadRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static PartitionReadRequest.Builder newBuilder()
public static PartitionReadRequest.Builder newBuilder(PartitionReadRequest prototype)
public PartitionReadRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected PartitionReadRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static PartitionReadRequest getDefaultInstance()
public static com.google.protobuf.Parser<PartitionReadRequest> parser()
public com.google.protobuf.Parser<PartitionReadRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public PartitionReadRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020 Google LLC. All rights reserved.