Class PartitionResponse (6.25.1)

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

TRANSACTION_FIELD_NUMBER

public static final int TRANSACTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PartitionResponse getDefaultInstance()
Returns
TypeDescription
PartitionResponse

getDescriptor()

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

newBuilder()

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

newBuilder(PartitionResponse prototype)

public static PartitionResponse.Builder newBuilder(PartitionResponse prototype)
Parameter
NameDescription
prototypePartitionResponse
Returns
TypeDescription
PartitionResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public PartitionResponse getDefaultInstanceForType()
Returns
TypeDescription
PartitionResponse

getParserForType()

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

getPartitions(int index)

public Partition getPartitions(int index)

Partitions created by this request.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Partition

getPartitionsCount()

public int getPartitionsCount()

Partitions created by this request.

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

Returns
TypeDescription
int

getPartitionsList()

public List<Partition> getPartitionsList()

Partitions created by this request.

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

Returns
TypeDescription
List<Partition>

getPartitionsOrBuilder(int index)

public PartitionOrBuilder getPartitionsOrBuilder(int index)

Partitions created by this request.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PartitionOrBuilder

getPartitionsOrBuilderList()

public List<? extends PartitionOrBuilder> getPartitionsOrBuilderList()

Partitions created by this request.

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

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTransaction()

public Transaction getTransaction()

Transaction created by this request.

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

Returns
TypeDescription
Transaction

The transaction.

getTransactionOrBuilder()

public TransactionOrBuilder getTransactionOrBuilder()

Transaction created by this request.

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

Returns
TypeDescription
TransactionOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasTransaction()

public boolean hasTransaction()

Transaction created by this request.

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

Returns
TypeDescription
boolean

Whether the transaction 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 PartitionResponse.Builder newBuilderForType()
Returns
TypeDescription
PartitionResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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