public static final class ReadRequest.Builder extends GeneratedMessageV3.Builder<ReadRequest.Builder> implements ReadRequestOrBuilder
The request for [Read][google.spanner.v1.Spanner.Read] and [StreamingRead][google.spanner.v1.Spanner.StreamingRead].Protobuf type
google.spanner.v1.ReadRequest
Modifier and Type | Method and Description |
---|---|
ReadRequest.Builder |
addAllColumns(Iterable<String> values)
Required.
|
ReadRequest.Builder |
addColumns(String value)
Required.
|
ReadRequest.Builder |
addColumnsBytes(ByteString value)
Required.
|
ReadRequest.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
ReadRequest |
build() |
ReadRequest |
buildPartial() |
ReadRequest.Builder |
clear() |
ReadRequest.Builder |
clearColumns()
Required.
|
ReadRequest.Builder |
clearField(Descriptors.FieldDescriptor field) |
ReadRequest.Builder |
clearIndex()
If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table].
|
ReadRequest.Builder |
clearKeySet()
Required.
|
ReadRequest.Builder |
clearLimit()
If greater than zero, only the first `limit` rows are yielded.
|
ReadRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
ReadRequest.Builder |
clearPartitionToken()
If present, results will be restricted to the specified partition
previously created using PartitionRead().
|
ReadRequest.Builder |
clearRequestOptions()
Common options for this request.
|
ReadRequest.Builder |
clearResumeToken()
If this request is resuming a previously interrupted read,
`resume_token` should be copied from the last
[PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption.
|
ReadRequest.Builder |
clearSession()
Required.
|
ReadRequest.Builder |
clearTable()
Required.
|
ReadRequest.Builder |
clearTransaction()
The transaction to use.
|
ReadRequest.Builder |
clone() |
String |
getColumns(int index)
Required.
|
ByteString |
getColumnsBytes(int index)
Required.
|
int |
getColumnsCount()
Required.
|
ProtocolStringList |
getColumnsList()
Required.
|
ReadRequest |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
String |
getIndex()
If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table].
|
ByteString |
getIndexBytes()
If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table].
|
KeySet |
getKeySet()
Required.
|
KeySet.Builder |
getKeySetBuilder()
Required.
|
KeySetOrBuilder |
getKeySetOrBuilder()
Required.
|
long |
getLimit()
If greater than zero, only the first `limit` rows are yielded.
|
ByteString |
getPartitionToken()
If present, results will be restricted to the specified partition
previously created using PartitionRead().
|
RequestOptions |
getRequestOptions()
Common options for this request.
|
RequestOptions.Builder |
getRequestOptionsBuilder()
Common options for this request.
|
RequestOptionsOrBuilder |
getRequestOptionsOrBuilder()
Common options for this request.
|
ByteString |
getResumeToken()
If this request is resuming a previously interrupted read,
`resume_token` should be copied from the last
[PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption.
|
String |
getSession()
Required.
|
ByteString |
getSessionBytes()
Required.
|
String |
getTable()
Required.
|
ByteString |
getTableBytes()
Required.
|
TransactionSelector |
getTransaction()
The transaction to use.
|
TransactionSelector.Builder |
getTransactionBuilder()
The transaction to use.
|
TransactionSelectorOrBuilder |
getTransactionOrBuilder()
The transaction to use.
|
boolean |
hasKeySet()
Required.
|
boolean |
hasRequestOptions()
Common options for this request.
|
boolean |
hasTransaction()
The transaction to use.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ReadRequest.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
ReadRequest.Builder |
mergeFrom(Message other) |
ReadRequest.Builder |
mergeFrom(ReadRequest other) |
ReadRequest.Builder |
mergeKeySet(KeySet value)
Required.
|
ReadRequest.Builder |
mergeRequestOptions(RequestOptions value)
Common options for this request.
|
ReadRequest.Builder |
mergeTransaction(TransactionSelector value)
The transaction to use.
|
ReadRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
ReadRequest.Builder |
setColumns(int index,
String value)
Required.
|
ReadRequest.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
ReadRequest.Builder |
setIndex(String value)
If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table].
|
ReadRequest.Builder |
setIndexBytes(ByteString value)
If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table].
|
ReadRequest.Builder |
setKeySet(KeySet.Builder builderForValue)
Required.
|
ReadRequest.Builder |
setKeySet(KeySet value)
Required.
|
ReadRequest.Builder |
setLimit(long value)
If greater than zero, only the first `limit` rows are yielded.
|
ReadRequest.Builder |
setPartitionToken(ByteString value)
If present, results will be restricted to the specified partition
previously created using PartitionRead().
|
ReadRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
ReadRequest.Builder |
setRequestOptions(RequestOptions.Builder builderForValue)
Common options for this request.
|
ReadRequest.Builder |
setRequestOptions(RequestOptions value)
Common options for this request.
|
ReadRequest.Builder |
setResumeToken(ByteString value)
If this request is resuming a previously interrupted read,
`resume_token` should be copied from the last
[PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption.
|
ReadRequest.Builder |
setSession(String value)
Required.
|
ReadRequest.Builder |
setSessionBytes(ByteString value)
Required.
|
ReadRequest.Builder |
setTable(String value)
Required.
|
ReadRequest.Builder |
setTableBytes(ByteString value)
Required.
|
ReadRequest.Builder |
setTransaction(TransactionSelector.Builder builderForValue)
The transaction to use.
|
ReadRequest.Builder |
setTransaction(TransactionSelector value)
The transaction to use.
|
ReadRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ReadRequest.Builder>
public ReadRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ReadRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ReadRequest.Builder>
public ReadRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ReadRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ReadRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ReadRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ReadRequest.Builder>
public ReadRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ReadRequest.Builder>
public ReadRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ReadRequest.Builder>
public ReadRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ReadRequest.Builder>
public ReadRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ReadRequest.Builder>
public ReadRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ReadRequest.Builder>
public ReadRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ReadRequest.Builder>
public ReadRequest.Builder mergeFrom(ReadRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ReadRequest.Builder>
public ReadRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ReadRequest.Builder>
IOException
public String getSession()
Required. The session in which the read should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getSession
in interface ReadRequestOrBuilder
public ByteString getSessionBytes()
Required. The session in which the read should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getSessionBytes
in interface ReadRequestOrBuilder
public ReadRequest.Builder setSession(String value)
Required. The session in which the read should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The session to set.public ReadRequest.Builder clearSession()
Required. The session in which the read should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public ReadRequest.Builder setSessionBytes(ByteString value)
Required. The session in which the read should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The bytes for session to set.public boolean hasTransaction()
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;
hasTransaction
in interface ReadRequestOrBuilder
public TransactionSelector getTransaction()
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;
getTransaction
in interface ReadRequestOrBuilder
public ReadRequest.Builder setTransaction(TransactionSelector value)
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;
public ReadRequest.Builder setTransaction(TransactionSelector.Builder builderForValue)
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;
public ReadRequest.Builder mergeTransaction(TransactionSelector value)
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;
public ReadRequest.Builder clearTransaction()
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;
public TransactionSelector.Builder getTransactionBuilder()
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;
public TransactionSelectorOrBuilder getTransactionOrBuilder()
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;
getTransactionOrBuilder
in interface ReadRequestOrBuilder
public 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 ReadRequestOrBuilder
public 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 ReadRequestOrBuilder
public ReadRequest.Builder setTable(String value)
Required. The name of the table in the database to be read.
string table = 3 [(.google.api.field_behavior) = REQUIRED];
value
- The table to set.public ReadRequest.Builder clearTable()
Required. The name of the table in the database to be read.
string table = 3 [(.google.api.field_behavior) = REQUIRED];
public ReadRequest.Builder setTableBytes(ByteString value)
Required. The name of the table in the database to be read.
string table = 3 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for table to set.public String getIndex()
If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table]. This index is used instead of the table primary key when interpreting [key_set][google.spanner.v1.ReadRequest.key_set] and sorting result rows. See [key_set][google.spanner.v1.ReadRequest.key_set] for further information.
string index = 4;
getIndex
in interface ReadRequestOrBuilder
public ByteString getIndexBytes()
If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table]. This index is used instead of the table primary key when interpreting [key_set][google.spanner.v1.ReadRequest.key_set] and sorting result rows. See [key_set][google.spanner.v1.ReadRequest.key_set] for further information.
string index = 4;
getIndexBytes
in interface ReadRequestOrBuilder
public ReadRequest.Builder setIndex(String value)
If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table]. This index is used instead of the table primary key when interpreting [key_set][google.spanner.v1.ReadRequest.key_set] and sorting result rows. See [key_set][google.spanner.v1.ReadRequest.key_set] for further information.
string index = 4;
value
- The index to set.public ReadRequest.Builder clearIndex()
If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table]. This index is used instead of the table primary key when interpreting [key_set][google.spanner.v1.ReadRequest.key_set] and sorting result rows. See [key_set][google.spanner.v1.ReadRequest.key_set] for further information.
string index = 4;
public ReadRequest.Builder setIndexBytes(ByteString value)
If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table]. This index is used instead of the table primary key when interpreting [key_set][google.spanner.v1.ReadRequest.key_set] and sorting result rows. See [key_set][google.spanner.v1.ReadRequest.key_set] for further information.
string index = 4;
value
- The bytes for index to set.public ProtocolStringList getColumnsList()
Required. The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5 [(.google.api.field_behavior) = REQUIRED];
getColumnsList
in interface ReadRequestOrBuilder
public int getColumnsCount()
Required. The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5 [(.google.api.field_behavior) = REQUIRED];
getColumnsCount
in interface ReadRequestOrBuilder
public String getColumns(int index)
Required. The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5 [(.google.api.field_behavior) = REQUIRED];
getColumns
in interface ReadRequestOrBuilder
index
- The index of the element to return.public ByteString getColumnsBytes(int index)
Required. The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5 [(.google.api.field_behavior) = REQUIRED];
getColumnsBytes
in interface ReadRequestOrBuilder
index
- The index of the value to return.public ReadRequest.Builder setColumns(int index, String value)
Required. The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5 [(.google.api.field_behavior) = REQUIRED];
index
- The index to set the value at.value
- The columns to set.public ReadRequest.Builder addColumns(String value)
Required. The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5 [(.google.api.field_behavior) = REQUIRED];
value
- The columns to add.public ReadRequest.Builder addAllColumns(Iterable<String> values)
Required. The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5 [(.google.api.field_behavior) = REQUIRED];
values
- The columns to add.public ReadRequest.Builder clearColumns()
Required. The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5 [(.google.api.field_behavior) = REQUIRED];
public ReadRequest.Builder addColumnsBytes(ByteString value)
Required. The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching this request.
repeated string columns = 5 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes of the columns to add.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.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index] is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names index keys in [index][google.spanner.v1.ReadRequest.index]. If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order (if [index][google.spanner.v1.ReadRequest.index] is non-empty). If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not empty, rows will be yielded in an unspecified order. 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 ReadRequestOrBuilder
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.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index] is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names index keys in [index][google.spanner.v1.ReadRequest.index]. If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order (if [index][google.spanner.v1.ReadRequest.index] is non-empty). If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not empty, rows will be yielded in an unspecified order. 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 ReadRequestOrBuilder
public ReadRequest.Builder setKeySet(KeySet value)
Required. `key_set` identifies the rows to be yielded. `key_set` names the primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index] is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names index keys in [index][google.spanner.v1.ReadRequest.index]. If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order (if [index][google.spanner.v1.ReadRequest.index] is non-empty). If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not empty, rows will be yielded in an unspecified order. 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];
public ReadRequest.Builder setKeySet(KeySet.Builder builderForValue)
Required. `key_set` identifies the rows to be yielded. `key_set` names the primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index] is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names index keys in [index][google.spanner.v1.ReadRequest.index]. If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order (if [index][google.spanner.v1.ReadRequest.index] is non-empty). If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not empty, rows will be yielded in an unspecified order. 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];
public ReadRequest.Builder mergeKeySet(KeySet value)
Required. `key_set` identifies the rows to be yielded. `key_set` names the primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index] is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names index keys in [index][google.spanner.v1.ReadRequest.index]. If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order (if [index][google.spanner.v1.ReadRequest.index] is non-empty). If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not empty, rows will be yielded in an unspecified order. 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];
public ReadRequest.Builder clearKeySet()
Required. `key_set` identifies the rows to be yielded. `key_set` names the primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index] is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names index keys in [index][google.spanner.v1.ReadRequest.index]. If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order (if [index][google.spanner.v1.ReadRequest.index] is non-empty). If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not empty, rows will be yielded in an unspecified order. 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];
public KeySet.Builder getKeySetBuilder()
Required. `key_set` identifies the rows to be yielded. `key_set` names the primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index] is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names index keys in [index][google.spanner.v1.ReadRequest.index]. If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order (if [index][google.spanner.v1.ReadRequest.index] is non-empty). If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not empty, rows will be yielded in an unspecified order. 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];
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.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index] is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names index keys in [index][google.spanner.v1.ReadRequest.index]. If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order (if [index][google.spanner.v1.ReadRequest.index] is non-empty). If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not empty, rows will be yielded in an unspecified order. 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 ReadRequestOrBuilder
public long getLimit()
If greater than zero, only the first `limit` rows are yielded. If `limit` is zero, the default is no limit. A limit cannot be specified if `partition_token` is set.
int64 limit = 8;
getLimit
in interface ReadRequestOrBuilder
public ReadRequest.Builder setLimit(long value)
If greater than zero, only the first `limit` rows are yielded. If `limit` is zero, the default is no limit. A limit cannot be specified if `partition_token` is set.
int64 limit = 8;
value
- The limit to set.public ReadRequest.Builder clearLimit()
If greater than zero, only the first `limit` rows are yielded. If `limit` is zero, the default is no limit. A limit cannot be specified if `partition_token` is set.
int64 limit = 8;
public ByteString getResumeToken()
If this request is resuming a previously interrupted read, `resume_token` should be copied from the last [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this enables the new read to resume where the last read left off. The rest of the request parameters must exactly match the request that yielded this token.
bytes resume_token = 9;
getResumeToken
in interface ReadRequestOrBuilder
public ReadRequest.Builder setResumeToken(ByteString value)
If this request is resuming a previously interrupted read, `resume_token` should be copied from the last [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this enables the new read to resume where the last read left off. The rest of the request parameters must exactly match the request that yielded this token.
bytes resume_token = 9;
value
- The resumeToken to set.public ReadRequest.Builder clearResumeToken()
If this request is resuming a previously interrupted read, `resume_token` should be copied from the last [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this enables the new read to resume where the last read left off. The rest of the request parameters must exactly match the request that yielded this token.
bytes resume_token = 9;
public ByteString getPartitionToken()
If present, results will be restricted to the specified partition previously created using PartitionRead(). There must be an exact match for the values of fields common to this message and the PartitionReadRequest message used to create this partition_token.
bytes partition_token = 10;
getPartitionToken
in interface ReadRequestOrBuilder
public ReadRequest.Builder setPartitionToken(ByteString value)
If present, results will be restricted to the specified partition previously created using PartitionRead(). There must be an exact match for the values of fields common to this message and the PartitionReadRequest message used to create this partition_token.
bytes partition_token = 10;
value
- The partitionToken to set.public ReadRequest.Builder clearPartitionToken()
If present, results will be restricted to the specified partition previously created using PartitionRead(). There must be an exact match for the values of fields common to this message and the PartitionReadRequest message used to create this partition_token.
bytes partition_token = 10;
public boolean hasRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
hasRequestOptions
in interface ReadRequestOrBuilder
public RequestOptions getRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
getRequestOptions
in interface ReadRequestOrBuilder
public ReadRequest.Builder setRequestOptions(RequestOptions value)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
public ReadRequest.Builder setRequestOptions(RequestOptions.Builder builderForValue)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
public ReadRequest.Builder mergeRequestOptions(RequestOptions value)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
public ReadRequest.Builder clearRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
public RequestOptions.Builder getRequestOptionsBuilder()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
public RequestOptionsOrBuilder getRequestOptionsOrBuilder()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
getRequestOptionsOrBuilder
in interface ReadRequestOrBuilder
public final ReadRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ReadRequest.Builder>
public final ReadRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ReadRequest.Builder>
Copyright © 2022 Google LLC. All rights reserved.