Class PartitionResponse (6.74.0)

public final class PartitionResponse extends GeneratedMessageV3 implements PartitionResponseOrBuilder

The response for PartitionQuery or PartitionRead

Protobuf type google.spanner.v1.PartitionResponse

Static Fields

PARTITIONS_FIELD_NUMBER

public static final int PARTITIONS_FIELD_NUMBER
Field Value
Type Description
int

TRANSACTION_FIELD_NUMBER

public static final int TRANSACTION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PartitionResponse getDefaultInstance()
Returns
Type Description
PartitionResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PartitionResponse.Builder newBuilder()
Returns
Type Description
PartitionResponse.Builder

newBuilder(PartitionResponse prototype)

public static PartitionResponse.Builder newBuilder(PartitionResponse prototype)
Parameter
Name Description
prototype PartitionResponse
Returns
Type Description
PartitionResponse.Builder

parseDelimitedFrom(InputStream input)

public static PartitionResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PartitionResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PartitionResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartitionResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PartitionResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PartitionResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PartitionResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartitionResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PartitionResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PartitionResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PartitionResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartitionResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PartitionResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PartitionResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PartitionResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartitionResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PartitionResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PartitionResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PartitionResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartitionResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PartitionResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PartitionResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PartitionResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartitionResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PartitionResponse> parser()
Returns
Type Description
Parser<PartitionResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public PartitionResponse getDefaultInstanceForType()
Returns
Type Description
PartitionResponse

getParserForType()

public Parser<PartitionResponse> getParserForType()
Returns
Type Description
Parser<PartitionResponse>
Overrides

getPartitions(int index)

public Partition getPartitions(int index)

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Parameter
Name Description
index int
Returns
Type Description
Partition

getPartitionsCount()

public int getPartitionsCount()

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Returns
Type Description
int

getPartitionsList()

public List<Partition> getPartitionsList()

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Returns
Type Description
List<Partition>

getPartitionsOrBuilder(int index)

public PartitionOrBuilder getPartitionsOrBuilder(int index)

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Parameter
Name Description
index int
Returns
Type Description
PartitionOrBuilder

getPartitionsOrBuilderList()

public List<? extends PartitionOrBuilder> getPartitionsOrBuilderList()

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Returns
Type Description
List<? extends com.google.spanner.v1.PartitionOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTransaction()

public Transaction getTransaction()

Transaction created by this request.

.google.spanner.v1.Transaction transaction = 2;

Returns
Type Description
Transaction

The transaction.

getTransactionOrBuilder()

public TransactionOrBuilder getTransactionOrBuilder()

Transaction created by this request.

.google.spanner.v1.Transaction transaction = 2;

Returns
Type Description
TransactionOrBuilder

hasTransaction()

public boolean hasTransaction()

Transaction created by this request.

.google.spanner.v1.Transaction transaction = 2;

Returns
Type Description
boolean

Whether the transaction field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PartitionResponse.Builder newBuilderForType()
Returns
Type Description
PartitionResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PartitionResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PartitionResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PartitionResponse.Builder toBuilder()
Returns
Type Description
PartitionResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException