Class GenerateDbPartitionsForReadAction.Builder (6.60.0)

public static final class GenerateDbPartitionsForReadAction.Builder extends GeneratedMessageV3.Builder<GenerateDbPartitionsForReadAction.Builder> implements GenerateDbPartitionsForReadActionOrBuilder

Generate database partitions for the given read. Successful outcomes will contain database partitions in the db_partition field.

Protobuf type google.spanner.executor.v1.GenerateDbPartitionsForReadAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllTable(Iterable<? extends TableMetadata> values)

public GenerateDbPartitionsForReadAction.Builder addAllTable(Iterable<? extends TableMetadata> values)

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.spanner.executor.v1.TableMetadata>
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenerateDbPartitionsForReadAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder
Overrides

addTable(TableMetadata value)

public GenerateDbPartitionsForReadAction.Builder addTable(TableMetadata value)

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameter
NameDescription
valueTableMetadata
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

addTable(TableMetadata.Builder builderForValue)

public GenerateDbPartitionsForReadAction.Builder addTable(TableMetadata.Builder builderForValue)

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameter
NameDescription
builderForValueTableMetadata.Builder
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

addTable(int index, TableMetadata value)

public GenerateDbPartitionsForReadAction.Builder addTable(int index, TableMetadata value)

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameters
NameDescription
indexint
valueTableMetadata
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

addTable(int index, TableMetadata.Builder builderForValue)

public GenerateDbPartitionsForReadAction.Builder addTable(int index, TableMetadata.Builder builderForValue)

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameters
NameDescription
indexint
builderForValueTableMetadata.Builder
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

addTableBuilder()

public TableMetadata.Builder addTableBuilder()

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Returns
TypeDescription
TableMetadata.Builder

addTableBuilder(int index)

public TableMetadata.Builder addTableBuilder(int index)

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableMetadata.Builder

build()

public GenerateDbPartitionsForReadAction build()
Returns
TypeDescription
GenerateDbPartitionsForReadAction

buildPartial()

public GenerateDbPartitionsForReadAction buildPartial()
Returns
TypeDescription
GenerateDbPartitionsForReadAction

clear()

public GenerateDbPartitionsForReadAction.Builder clear()
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder
Overrides

clearDesiredBytesPerPartition()

public GenerateDbPartitionsForReadAction.Builder clearDesiredBytesPerPartition()

Desired size of data in each partition. Spanner doesn't guarantee to respect this value.

optional int64 desired_bytes_per_partition = 3;

Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GenerateDbPartitionsForReadAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder
Overrides

clearMaxPartitionCount()

public GenerateDbPartitionsForReadAction.Builder clearMaxPartitionCount()

If set, the desired max number of partitions. Spanner doesn't guarantee to respect this value.

optional int64 max_partition_count = 4;

Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerateDbPartitionsForReadAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder
Overrides

clearRead()

public GenerateDbPartitionsForReadAction.Builder clearRead()

Read to generate partitions for.

.google.spanner.executor.v1.ReadAction read = 1;

Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

clearTable()

public GenerateDbPartitionsForReadAction.Builder clearTable()

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

clone()

public GenerateDbPartitionsForReadAction.Builder clone()
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder
Overrides

getDefaultInstanceForType()

public GenerateDbPartitionsForReadAction getDefaultInstanceForType()
Returns
TypeDescription
GenerateDbPartitionsForReadAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDesiredBytesPerPartition()

public long getDesiredBytesPerPartition()

Desired size of data in each partition. Spanner doesn't guarantee to respect this value.

optional int64 desired_bytes_per_partition = 3;

Returns
TypeDescription
long

The desiredBytesPerPartition.

getMaxPartitionCount()

public long getMaxPartitionCount()

If set, the desired max number of partitions. Spanner doesn't guarantee to respect this value.

optional int64 max_partition_count = 4;

Returns
TypeDescription
long

The maxPartitionCount.

getRead()

public ReadAction getRead()

Read to generate partitions for.

.google.spanner.executor.v1.ReadAction read = 1;

Returns
TypeDescription
ReadAction

The read.

getReadBuilder()

public ReadAction.Builder getReadBuilder()

Read to generate partitions for.

.google.spanner.executor.v1.ReadAction read = 1;

Returns
TypeDescription
ReadAction.Builder

getReadOrBuilder()

public ReadActionOrBuilder getReadOrBuilder()

Read to generate partitions for.

.google.spanner.executor.v1.ReadAction read = 1;

Returns
TypeDescription
ReadActionOrBuilder

getTable(int index)

public TableMetadata getTable(int index)

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableMetadata

getTableBuilder(int index)

public TableMetadata.Builder getTableBuilder(int index)

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableMetadata.Builder

getTableBuilderList()

public List<TableMetadata.Builder> getTableBuilderList()

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Returns
TypeDescription
List<Builder>

getTableCount()

public int getTableCount()

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Returns
TypeDescription
int

getTableList()

public List<TableMetadata> getTableList()

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Returns
TypeDescription
List<TableMetadata>

getTableOrBuilder(int index)

public TableMetadataOrBuilder getTableOrBuilder(int index)

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableMetadataOrBuilder

getTableOrBuilderList()

public List<? extends TableMetadataOrBuilder> getTableOrBuilderList()

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Returns
TypeDescription
List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder>

hasDesiredBytesPerPartition()

public boolean hasDesiredBytesPerPartition()

Desired size of data in each partition. Spanner doesn't guarantee to respect this value.

optional int64 desired_bytes_per_partition = 3;

Returns
TypeDescription
boolean

Whether the desiredBytesPerPartition field is set.

hasMaxPartitionCount()

public boolean hasMaxPartitionCount()

If set, the desired max number of partitions. Spanner doesn't guarantee to respect this value.

optional int64 max_partition_count = 4;

Returns
TypeDescription
boolean

Whether the maxPartitionCount field is set.

hasRead()

public boolean hasRead()

Read to generate partitions for.

.google.spanner.executor.v1.ReadAction read = 1;

Returns
TypeDescription
boolean

Whether the read field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenerateDbPartitionsForReadAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GenerateDbPartitionsForReadAction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder
Overrides

mergeFrom(GenerateDbPartitionsForReadAction other)

public GenerateDbPartitionsForReadAction.Builder mergeFrom(GenerateDbPartitionsForReadAction other)
Parameter
NameDescription
otherGenerateDbPartitionsForReadAction
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

mergeRead(ReadAction value)

public GenerateDbPartitionsForReadAction.Builder mergeRead(ReadAction value)

Read to generate partitions for.

.google.spanner.executor.v1.ReadAction read = 1;

Parameter
NameDescription
valueReadAction
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateDbPartitionsForReadAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder
Overrides

removeTable(int index)

public GenerateDbPartitionsForReadAction.Builder removeTable(int index)

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

setDesiredBytesPerPartition(long value)

public GenerateDbPartitionsForReadAction.Builder setDesiredBytesPerPartition(long value)

Desired size of data in each partition. Spanner doesn't guarantee to respect this value.

optional int64 desired_bytes_per_partition = 3;

Parameter
NameDescription
valuelong

The desiredBytesPerPartition to set.

Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GenerateDbPartitionsForReadAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder
Overrides

setMaxPartitionCount(long value)

public GenerateDbPartitionsForReadAction.Builder setMaxPartitionCount(long value)

If set, the desired max number of partitions. Spanner doesn't guarantee to respect this value.

optional int64 max_partition_count = 4;

Parameter
NameDescription
valuelong

The maxPartitionCount to set.

Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

This builder for chaining.

setRead(ReadAction value)

public GenerateDbPartitionsForReadAction.Builder setRead(ReadAction value)

Read to generate partitions for.

.google.spanner.executor.v1.ReadAction read = 1;

Parameter
NameDescription
valueReadAction
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

setRead(ReadAction.Builder builderForValue)

public GenerateDbPartitionsForReadAction.Builder setRead(ReadAction.Builder builderForValue)

Read to generate partitions for.

.google.spanner.executor.v1.ReadAction read = 1;

Parameter
NameDescription
builderForValueReadAction.Builder
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

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

public GenerateDbPartitionsForReadAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder
Overrides

setTable(int index, TableMetadata value)

public GenerateDbPartitionsForReadAction.Builder setTable(int index, TableMetadata value)

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameters
NameDescription
indexint
valueTableMetadata
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

setTable(int index, TableMetadata.Builder builderForValue)

public GenerateDbPartitionsForReadAction.Builder setTable(int index, TableMetadata.Builder builderForValue)

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameters
NameDescription
indexint
builderForValueTableMetadata.Builder
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerateDbPartitionsForReadAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder
Overrides