Class GenerateDbPartitionsForReadAction.Builder (6.77.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
Type Description
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
Name Description
values Iterable<? extends com.google.spanner.executor.v1.TableMetadata>
Returns
Type Description
GenerateDbPartitionsForReadAction.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenerateDbPartitionsForReadAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value TableMetadata
Returns
Type Description
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
Name Description
builderForValue TableMetadata.Builder
Returns
Type Description
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
Name Description
index int
value TableMetadata
Returns
Type Description
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
Name Description
index int
builderForValue TableMetadata.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
TableMetadata.Builder

build()

public GenerateDbPartitionsForReadAction build()
Returns
Type Description
GenerateDbPartitionsForReadAction

buildPartial()

public GenerateDbPartitionsForReadAction buildPartial()
Returns
Type Description
GenerateDbPartitionsForReadAction

clear()

public GenerateDbPartitionsForReadAction.Builder clear()
Returns
Type Description
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
Type Description
GenerateDbPartitionsForReadAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GenerateDbPartitionsForReadAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description