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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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>

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenerateDbPartitionsForReadAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
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

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

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

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

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()
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
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
Overrides

clearRead()

public GenerateDbPartitionsForReadAction.Builder clearRead()

Read to generate partitions for.

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

clearTable()

public GenerateDbPartitionsForReadAction.Builder clearTable()

Metadata related to the tables involved in the read.

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

clone()

public GenerateDbPartitionsForReadAction.Builder clone()
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
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(GenerateDbPartitionsForReadAction other)

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

mergeRead(ReadAction value)

public GenerateDbPartitionsForReadAction.Builder mergeRead(ReadAction value)

Read to generate partitions for.

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

Parameter
NameDescription
valueReadAction

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateDbPartitionsForReadAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
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

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
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

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

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

public GenerateDbPartitionsForReadAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
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

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

setUnknownFields(UnknownFieldSet unknownFields)

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