Class PartitionReadRequest.Builder (6.89.0)

publicstaticfinalclassPartitionReadRequest.BuilderextendsGeneratedMessageV3.Builder<PartitionReadRequest.Builder>implementsPartitionReadRequestOrBuilder

The request for PartitionRead

Protobuf type google.spanner.v1.PartitionReadRequest

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllColumns(Iterable<String> values)

publicPartitionReadRequest.BuilderaddAllColumns(Iterable<String>values)

The columns of table to be returned for each row matching this request.

repeated string columns = 5;

Parameter
NameDescription
valuesIterable<String>

The columns to add.

Returns
TypeDescription
PartitionReadRequest.Builder

This builder for chaining.

addColumns(String value)

publicPartitionReadRequest.BuilderaddColumns(Stringvalue)

The columns of table to be returned for each row matching this request.

repeated string columns = 5;

Parameter
NameDescription
valueString

The columns to add.

Returns
TypeDescription
PartitionReadRequest.Builder

This builder for chaining.

addColumnsBytes(ByteString value)

publicPartitionReadRequest.BuilderaddColumnsBytes(ByteStringvalue)

The columns of table to be returned for each row matching this request.

repeated string columns = 5;

Parameter
NameDescription
valueByteString

The bytes of the columns to add.

Returns
TypeDescription
PartitionReadRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicPartitionReadRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PartitionReadRequest.Builder
Overrides

build()

publicPartitionReadRequestbuild()
Returns
TypeDescription
PartitionReadRequest

buildPartial()

publicPartitionReadRequestbuildPartial()
Returns
TypeDescription
PartitionReadRequest

clear()

publicPartitionReadRequest.Builderclear()
Returns
TypeDescription
PartitionReadRequest.Builder
Overrides

clearColumns()

publicPartitionReadRequest.BuilderclearColumns()

The columns of table to be returned for each row matching this request.

repeated string columns = 5;

Returns
TypeDescription
PartitionReadRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicPartitionReadRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PartitionReadRequest.Builder
Overrides

clearIndex()

publicPartitionReadRequest.BuilderclearIndex()

If non-empty, the name of an index on table. This index is used instead of the table primary key when interpreting key_set and sorting result rows. See key_set for further information.

string index = 4;

Returns
TypeDescription
PartitionReadRequest.Builder

This builder for chaining.

clearKeySet()

publicPartitionReadRequest.BuilderclearKeySet()

Required. key_set identifies the rows to be yielded. key_set names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in 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];

Returns
TypeDescription
PartitionReadRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicPartitionReadRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PartitionReadRequest.Builder
Overrides

clearPartitionOptions()

publicPartitionReadRequest.BuilderclearPartitionOptions()

Additional options that affect how many partitions are created.

.google.spanner.v1.PartitionOptions partition_options = 9;

Returns
TypeDescription
PartitionReadRequest.Builder

clearSession()

publicPartitionReadRequest.BuilderclearSession()

Required. The session used to create the partitions.

string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
PartitionReadRequest.Builder

This builder for chaining.

clearTable()

publicPartitionReadRequest.BuilderclearTable()

Required. The name of the table in the database to be read.

string table = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PartitionReadRequest.Builder

This builder for chaining.

clearTransaction()

publicPartitionReadRequest.BuilderclearTransaction()

Read only snapshot transactions are supported, read/write and single use transactions are not.

.google.spanner.v1.TransactionSelector transaction = 2;

Returns
TypeDescription
PartitionReadRequest.Builder

clone()

publicPartitionReadRequest.Builderclone()
Returns
TypeDescription
PartitionReadRequest.Builder
Overrides

getColumns(int index)

publicStringgetColumns(intindex)

The columns of table to be returned for each row matching this request.

repeated string columns = 5;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The columns at the given index.

getColumnsBytes(int index)

publicByteStringgetColumnsBytes(intindex)

The columns of table to be returned for each row matching this request.

repeated string columns = 5;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the columns at the given index.

getColumnsCount()

publicintgetColumnsCount()

The columns of table to be returned for each row matching this request.

repeated string columns = 5;

Returns
TypeDescription
int

The count of columns.

getColumnsList()

publicProtocolStringListgetColumnsList()

The columns of table to be returned for each row matching this request.

repeated string columns = 5;

Returns
TypeDescription
ProtocolStringList

A list containing the columns.

getDefaultInstanceForType()

publicPartitionReadRequestgetDefaultInstanceForType()
Returns
TypeDescription
PartitionReadRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIndex()

publicStringgetIndex()

If non-empty, the name of an index on table. This index is used instead of the table primary key when interpreting key_set and sorting result rows. See key_set for further information.

string index = 4;

Returns
TypeDescription
String

The index.

getIndexBytes()

publicByteStringgetIndexBytes()

If non-empty, the name of an index on table. This index is used instead of the table primary key when interpreting key_set and sorting result rows. See key_set for further information.

string index = 4;

Returns
TypeDescription
ByteString

The bytes for index.

getKeySet()

publicKeySetgetKeySet()

Required. key_set identifies the rows to be yielded. key_set names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in 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];

Returns
TypeDescription
KeySet

The keySet.

getKeySetBuilder()

publicKeySet.BuildergetKeySetBuilder()

Required. key_set identifies the rows to be yielded. key_set names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in 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];

Returns
TypeDescription
KeySet.Builder

getKeySetOrBuilder()

publicKeySetOrBuildergetKeySetOrBuilder()

Required. key_set identifies the rows to be yielded. key_set names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in 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];

Returns
TypeDescription
KeySetOrBuilder

getPartitionOptions()

publicPartitionOptionsgetPartitionOptions()

Additional options that affect how many partitions are created.

.google.spanner.v1.PartitionOptions partition_options = 9;

Returns
TypeDescription
PartitionOptions

The partitionOptions.

getPartitionOptionsBuilder()

publicPartitionOptions.BuildergetPartitionOptionsBuilder()

Additional options that affect how many partitions are created.

.google.spanner.v1.PartitionOptions partition_options = 9;

Returns
TypeDescription
PartitionOptions.Builder

getPartitionOptionsOrBuilder()

publicPartitionOptionsOrBuildergetPartitionOptionsOrBuilder()

Additional options that affect how many partitions are created.

.google.spanner.v1.PartitionOptions partition_options = 9;

Returns
TypeDescription
PartitionOptionsOrBuilder

getSession()

publicStringgetSession()

Required. The session used to create the partitions.

string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The session.

getSessionBytes()

publicByteStringgetSessionBytes()

Required. The session used to create the partitions.

string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for session.

getTable()

publicStringgetTable()

Required. The name of the table in the database to be read.

string table = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The table.

getTableBytes()

publicByteStringgetTableBytes()

Required. The name of the table in the database to be read.

string table = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for table.

getTransaction()

publicTransactionSelectorgetTransaction()

Read only snapshot transactions are supported, read/write and single use transactions are not.

.google.spanner.v1.TransactionSelector transaction = 2;

Returns
TypeDescription
TransactionSelector

The transaction.

getTransactionBuilder()

publicTransactionSelector.BuildergetTransactionBuilder()

Read only snapshot transactions are supported, read/write and single use transactions are not.

.google.spanner.v1.TransactionSelector transaction = 2;

Returns
TypeDescription
TransactionSelector.Builder

getTransactionOrBuilder()

publicTransactionSelectorOrBuildergetTransactionOrBuilder()

Read only snapshot transactions are supported, read/write and single use transactions are not.

.google.spanner.v1.TransactionSelector transaction = 2;

Returns
TypeDescription
TransactionSelectorOrBuilder

hasKeySet()

publicbooleanhasKeySet()

Required. key_set identifies the rows to be yielded. key_set names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in 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];

Returns
TypeDescription
boolean

Whether the keySet field is set.

hasPartitionOptions()

publicbooleanhasPartitionOptions()

Additional options that affect how many partitions are created.

.google.spanner.v1.PartitionOptions partition_options = 9;

Returns
TypeDescription
boolean

Whether the partitionOptions field is set.

hasTransaction()

publicbooleanhasTransaction()

Read only snapshot transactions are supported, read/write and single use transactions are not.

.google.spanner.v1.TransactionSelector transaction = 2;

Returns
TypeDescription
boolean

Whether the transaction field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicPartitionReadRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PartitionReadRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

publicPartitionReadRequest.BuildermergeFrom(Messageother)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PartitionReadRequest.Builder
Overrides

mergeFrom(PartitionReadRequest other)

publicPartitionReadRequest.BuildermergeFrom(PartitionReadRequestother)
Parameter
NameDescription
otherPartitionReadRequest
Returns
TypeDescription
PartitionReadRequest.Builder

mergeKeySet(KeySet value)

publicPartitionReadRequest.BuildermergeKeySet(KeySetvalue)

Required. key_set identifies the rows to be yielded. key_set names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in 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];

Parameter
NameDescription
valueKeySet
Returns
TypeDescription
PartitionReadRequest.Builder

mergePartitionOptions(PartitionOptions value)

publicPartitionReadRequest.BuildermergePartitionOptions(PartitionOptionsvalue)

Additional options that affect how many partitions are created.

.google.spanner.v1.PartitionOptions partition_options = 9;

Parameter
NameDescription
valuePartitionOptions
Returns
TypeDescription
PartitionReadRequest.Builder

mergeTransaction(TransactionSelector value)

publicPartitionReadRequest.BuildermergeTransaction(TransactionSelectorvalue)

Read only snapshot transactions are supported, read/write and single use transactions are not.

.google.spanner.v1.TransactionSelector transaction = 2;

Parameter
NameDescription
valueTransactionSelector
Returns
TypeDescription
PartitionReadRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalPartitionReadRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PartitionReadRequest.Builder
Overrides

setColumns(int index, String value)

publicPartitionReadRequest.BuildersetColumns(intindex,Stringvalue)

The columns of table to be returned for each row matching this request.

repeated string columns = 5;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The columns to set.

Returns
TypeDescription
PartitionReadRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicPartitionReadRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PartitionReadRequest.Builder
Overrides

setIndex(String value)

publicPartitionReadRequest.BuildersetIndex(Stringvalue)

If non-empty, the name of an index on table. This index is used instead of the table primary key when interpreting key_set and sorting result rows. See key_set for further information.

string index = 4;

Parameter
NameDescription
valueString

The index to set.

Returns
TypeDescription
PartitionReadRequest.Builder

This builder for chaining.

setIndexBytes(ByteString value)

publicPartitionReadRequest.BuildersetIndexBytes(ByteStringvalue)

If non-empty, the name of an index on table. This index is used instead of the table primary key when interpreting key_set and sorting result rows. See key_set for further information.

string index = 4;

Parameter
NameDescription
valueByteString

The bytes for index to set.

Returns
TypeDescription
PartitionReadRequest.Builder

This builder for chaining.

setKeySet(KeySet value)

publicPartitionReadRequest.BuildersetKeySet(KeySetvalue)

Required. key_set identifies the rows to be yielded. key_set names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in 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];

Parameter
NameDescription
valueKeySet
Returns
TypeDescription
PartitionReadRequest.Builder

setKeySet(KeySet.Builder builderForValue)

publicPartitionReadRequest.BuildersetKeySet(KeySet.BuilderbuilderForValue)

Required. key_set identifies the rows to be yielded. key_set names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in 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];

Parameter
NameDescription
builderForValueKeySet.Builder
Returns
TypeDescription
PartitionReadRequest.Builder

setPartitionOptions(PartitionOptions value)

publicPartitionReadRequest.BuildersetPartitionOptions(PartitionOptionsvalue)

Additional options that affect how many partitions are created.

.google.spanner.v1.PartitionOptions partition_options = 9;

Parameter
NameDescription
valuePartitionOptions
Returns
TypeDescription
PartitionReadRequest.Builder

setPartitionOptions(PartitionOptions.Builder builderForValue)

publicPartitionReadRequest.BuildersetPartitionOptions(PartitionOptions.BuilderbuilderForValue)

Additional options that affect how many partitions are created.

.google.spanner.v1.PartitionOptions partition_options = 9;

Parameter
NameDescription
builderForValuePartitionOptions.Builder
Returns
TypeDescription
PartitionReadRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicPartitionReadRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PartitionReadRequest.Builder
Overrides

setSession(String value)

publicPartitionReadRequest.BuildersetSession(Stringvalue)

Required. The session used to create the partitions.

string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The session to set.

Returns
TypeDescription
PartitionReadRequest.Builder

This builder for chaining.

setSessionBytes(ByteString value)

publicPartitionReadRequest.BuildersetSessionBytes(ByteStringvalue)

Required. The session used to create the partitions.

string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for session to set.

Returns
TypeDescription
PartitionReadRequest.Builder

This builder for chaining.

setTable(String value)

publicPartitionReadRequest.BuildersetTable(Stringvalue)

Required. The name of the table in the database to be read.

string table = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The table to set.

Returns
TypeDescription
PartitionReadRequest.Builder

This builder for chaining.

setTableBytes(ByteString value)

publicPartitionReadRequest.BuildersetTableBytes(ByteStringvalue)

Required. The name of the table in the database to be read.

string table = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for table to set.

Returns
TypeDescription
PartitionReadRequest.Builder

This builder for chaining.

setTransaction(TransactionSelector value)

publicPartitionReadRequest.BuildersetTransaction(TransactionSelectorvalue)

Read only snapshot transactions are supported, read/write and single use transactions are not.

.google.spanner.v1.TransactionSelector transaction = 2;

Parameter
NameDescription
valueTransactionSelector
Returns
TypeDescription
PartitionReadRequest.Builder

setTransaction(TransactionSelector.Builder builderForValue)

publicPartitionReadRequest.BuildersetTransaction(TransactionSelector.BuilderbuilderForValue)

Read only snapshot transactions are supported, read/write and single use transactions are not.

.google.spanner.v1.TransactionSelector transaction = 2;

Parameter
NameDescription
builderForValueTransactionSelector.Builder
Returns
TypeDescription
PartitionReadRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalPartitionReadRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PartitionReadRequest.Builder
Overrides