Class GenerateDbPartitionsForReadAction (6.57.0)

public final class GenerateDbPartitionsForReadAction extends GeneratedMessageV3 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GenerateDbPartitionsForReadAction

Static Fields

DESIRED_BYTES_PER_PARTITION_FIELD_NUMBER

public static final int DESIRED_BYTES_PER_PARTITION_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_PARTITION_COUNT_FIELD_NUMBER

public static final int MAX_PARTITION_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

READ_FIELD_NUMBER

public static final int READ_FIELD_NUMBER
Field Value
TypeDescription
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GenerateDbPartitionsForReadAction getDefaultInstance()
Returns
TypeDescription
GenerateDbPartitionsForReadAction

getDescriptor()

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

newBuilder()

public static GenerateDbPartitionsForReadAction.Builder newBuilder()
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

newBuilder(GenerateDbPartitionsForReadAction prototype)

public static GenerateDbPartitionsForReadAction.Builder newBuilder(GenerateDbPartitionsForReadAction prototype)
Parameter
NameDescription
prototypeGenerateDbPartitionsForReadAction
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

parseDelimitedFrom(InputStream input)

public static GenerateDbPartitionsForReadAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GenerateDbPartitionsForReadAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateDbPartitionsForReadAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GenerateDbPartitionsForReadAction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GenerateDbPartitionsForReadAction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GenerateDbPartitionsForReadAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GenerateDbPartitionsForReadAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GenerateDbPartitionsForReadAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GenerateDbPartitionsForReadAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GenerateDbPartitionsForReadAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GenerateDbPartitionsForReadAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GenerateDbPartitionsForReadAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GenerateDbPartitionsForReadAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GenerateDbPartitionsForReadAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateDbPartitionsForReadAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GenerateDbPartitionsForReadAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GenerateDbPartitionsForReadAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GenerateDbPartitionsForReadAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateDbPartitionsForReadAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GenerateDbPartitionsForReadAction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GenerateDbPartitionsForReadAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GenerateDbPartitionsForReadAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GenerateDbPartitionsForReadAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GenerateDbPartitionsForReadAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GenerateDbPartitionsForReadAction> parser()
Returns
TypeDescription
Parser<GenerateDbPartitionsForReadAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public GenerateDbPartitionsForReadAction getDefaultInstanceForType()
Returns
TypeDescription
GenerateDbPartitionsForReadAction

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.

getParserForType()

public Parser<GenerateDbPartitionsForReadAction> getParserForType()
Returns
TypeDescription
Parser<GenerateDbPartitionsForReadAction>
Overrides

getRead()

public ReadAction getRead()

Read to generate partitions for.

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

Returns
TypeDescription
ReadAction

The read.

getReadOrBuilder()

public ReadActionOrBuilder getReadOrBuilder()

Read to generate partitions for.

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

Returns
TypeDescription
ReadActionOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GenerateDbPartitionsForReadAction.Builder newBuilderForType()
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GenerateDbPartitionsForReadAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GenerateDbPartitionsForReadAction.Builder toBuilder()
Returns
TypeDescription
GenerateDbPartitionsForReadAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException