Class GenerateDbPartitionsForReadAction.Builder (6.83.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
GenerateDbPartitionsForReadAction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerateDbPartitionsForReadAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GenerateDbPartitionsForReadAction.Builder
Overrides

clearRead()

public GenerateDbPartitionsForReadAction.Builder clearRead()

Read to generate partitions for.

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

Returns
Type Description
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
Type Description
GenerateDbPartitionsForReadAction.Builder

clone()

public GenerateDbPartitionsForReadAction.Builder clone()
Returns
Type Description
GenerateDbPartitionsForReadAction.Builder
Overrides

getDefaultInstanceForType()

public GenerateDbPartitionsForReadAction getDefaultInstanceForType()
Returns
Type Description
GenerateDbPartitionsForReadAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
long

The maxPartitionCount.

getRead()

public ReadAction getRead()

Read to generate partitions for.

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

Returns
Type Description
ReadAction

The read.

getReadBuilder()

public ReadAction.Builder getReadBuilder()

Read to generate partitions for.

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

Returns
Type Description
ReadAction.Builder

getReadOrBuilder()

public ReadActionOrBuilder getReadOrBuilder()

Read to generate partitions for.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<Builder>

getTableCount()

public int getTableCount()

Metadata related to the tables involved in the read.

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

Returns
Type Description
int

getTableList()

public List<TableMetadata> getTableList()

Metadata related to the tables involved in the read.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the maxPartitionCount field is set.

hasRead()

public boolean hasRead()

Read to generate partitions for.

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

Returns
Type Description
boolean

Whether the read field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenerateDbPartitionsForReadAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateDbPartitionsForReadAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GenerateDbPartitionsForReadAction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GenerateDbPartitionsForReadAction.Builder
Overrides

mergeFrom(GenerateDbPartitionsForReadAction other)

public GenerateDbPartitionsForReadAction.Builder mergeFrom(GenerateDbPartitionsForReadAction other)
Parameter
Name Description
other GenerateDbPartitionsForReadAction
Returns
Type Description
GenerateDbPartitionsForReadAction.Builder

mergeRead(ReadAction value)

public GenerateDbPartitionsForReadAction.Builder mergeRead(ReadAction value)

Read to generate partitions for.

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

Parameter
Name Description
value ReadAction
Returns
Type Description
GenerateDbPartitionsForReadAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateDbPartitionsForReadAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
value long

The desiredBytesPerPartition to set.

Returns
Type Description
GenerateDbPartitionsForReadAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GenerateDbPartitionsForReadAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value long

The maxPartitionCount to set.

Returns
Type Description
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
Name Description
value ReadAction
Returns
Type Description
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
Name Description
builderForValue ReadAction.Builder
Returns
Type Description
GenerateDbPartitionsForReadAction.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerateDbPartitionsForReadAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerateDbPartitionsForReadAction.Builder
Overrides