public static final class Partition.Builder extends GeneratedMessageV3.Builder<Partition.Builder> implements PartitionOrBuilder
Information returned for each partition returned in a PartitionResponse.
Protobuf type google.spanner.v1.Partition
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Partition.BuilderImplements
PartitionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Partition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Partition.Builder |
build()
public Partition build()
Returns | |
---|---|
Type | Description |
Partition |
buildPartial()
public Partition buildPartial()
Returns | |
---|---|
Type | Description |
Partition |
clear()
public Partition.Builder clear()
Returns | |
---|---|
Type | Description |
Partition.Builder |
clearField(Descriptors.FieldDescriptor field)
public Partition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Partition.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Partition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Partition.Builder |
clearPartitionToken()
public Partition.Builder clearPartitionToken()
This token can be passed to Read, StreamingRead, ExecuteSql, or ExecuteStreamingSql requests to restrict the results to those identified by this partition token.
bytes partition_token = 1;
Returns | |
---|---|
Type | Description |
Partition.Builder |
This builder for chaining. |
clone()
public Partition.Builder clone()
Returns | |
---|---|
Type | Description |
Partition.Builder |
getDefaultInstanceForType()
public Partition getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Partition |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getPartitionToken()
public ByteString getPartitionToken()
This token can be passed to Read, StreamingRead, ExecuteSql, or ExecuteStreamingSql requests to restrict the results to those identified by this partition token.
bytes partition_token = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The partitionToken. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Partition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Partition.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Partition.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Partition.Builder |
mergeFrom(Partition other)
public Partition.Builder mergeFrom(Partition other)
Parameter | |
---|---|
Name | Description |
other |
Partition |
Returns | |
---|---|
Type | Description |
Partition.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Partition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Partition.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Partition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Partition.Builder |
setPartitionToken(ByteString value)
public Partition.Builder setPartitionToken(ByteString value)
This token can be passed to Read, StreamingRead, ExecuteSql, or ExecuteStreamingSql requests to restrict the results to those identified by this partition token.
bytes partition_token = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The partitionToken to set. |
Returns | |
---|---|
Type | Description |
Partition.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Partition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Partition.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Partition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Partition.Builder |