Class ListInstancePartitionsResponse.Builder (6.66.0)

public static final class ListInstancePartitionsResponse.Builder extends GeneratedMessageV3.Builder<ListInstancePartitionsResponse.Builder> implements ListInstancePartitionsResponseOrBuilder

The response for ListInstancePartitions.

Protobuf type google.spanner.admin.instance.v1.ListInstancePartitionsResponse

Static Methods

getDescriptor()

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

Methods

addAllInstancePartitions(Iterable<? extends InstancePartition> values)

public ListInstancePartitionsResponse.Builder addAllInstancePartitions(Iterable<? extends InstancePartition> values)

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Parameter
Name Description
values Iterable<? extends com.google.spanner.admin.instance.v1.InstancePartition>
Returns
Type Description
ListInstancePartitionsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListInstancePartitionsResponse.Builder addAllUnreachable(Iterable<String> values)

The list of unreachable instance partitions. It includes the names of instance partitions whose metadata could not be retrieved within instance_partition_deadline.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListInstancePartitionsResponse.Builder

This builder for chaining.

addInstancePartitions(InstancePartition value)

public ListInstancePartitionsResponse.Builder addInstancePartitions(InstancePartition value)

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Parameter
Name Description
value InstancePartition
Returns
Type Description
ListInstancePartitionsResponse.Builder

addInstancePartitions(InstancePartition.Builder builderForValue)

public ListInstancePartitionsResponse.Builder addInstancePartitions(InstancePartition.Builder builderForValue)

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Parameter
Name Description
builderForValue InstancePartition.Builder
Returns
Type Description
ListInstancePartitionsResponse.Builder

addInstancePartitions(int index, InstancePartition value)

public ListInstancePartitionsResponse.Builder addInstancePartitions(int index, InstancePartition value)

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Parameters
Name Description
index int
value InstancePartition
Returns
Type Description
ListInstancePartitionsResponse.Builder

addInstancePartitions(int index, InstancePartition.Builder builderForValue)

public ListInstancePartitionsResponse.Builder addInstancePartitions(int index, InstancePartition.Builder builderForValue)

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Parameters
Name Description
index int
builderForValue InstancePartition.Builder
Returns
Type Description
ListInstancePartitionsResponse.Builder

addInstancePartitionsBuilder()

public InstancePartition.Builder addInstancePartitionsBuilder()

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Returns
Type Description
InstancePartition.Builder

addInstancePartitionsBuilder(int index)

public InstancePartition.Builder addInstancePartitionsBuilder(int index)

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Parameter
Name Description
index int
Returns
Type Description
InstancePartition.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListInstancePartitionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListInstancePartitionsResponse.Builder
Overrides

addUnreachable(String value)

public ListInstancePartitionsResponse.Builder addUnreachable(String value)

The list of unreachable instance partitions. It includes the names of instance partitions whose metadata could not be retrieved within instance_partition_deadline.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListInstancePartitionsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListInstancePartitionsResponse.Builder addUnreachableBytes(ByteString value)

The list of unreachable instance partitions. It includes the names of instance partitions whose metadata could not be retrieved within instance_partition_deadline.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListInstancePartitionsResponse.Builder

This builder for chaining.

build()

public ListInstancePartitionsResponse build()
Returns
Type Description
ListInstancePartitionsResponse

buildPartial()

public ListInstancePartitionsResponse buildPartial()
Returns
Type Description
ListInstancePartitionsResponse

clear()

public ListInstancePartitionsResponse.Builder clear()
Returns
Type Description
ListInstancePartitionsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListInstancePartitionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListInstancePartitionsResponse.Builder
Overrides

clearInstancePartitions()

public ListInstancePartitionsResponse.Builder clearInstancePartitions()

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Returns
Type Description
ListInstancePartitionsResponse.Builder

clearNextPageToken()

public ListInstancePartitionsResponse.Builder clearNextPageToken()

next_page_token can be sent in a subsequent ListInstancePartitions call to fetch more of the matching instance partitions.

string next_page_token = 2;

Returns
Type Description
ListInstancePartitionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListInstancePartitionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListInstancePartitionsResponse.Builder
Overrides

clearUnreachable()

public ListInstancePartitionsResponse.Builder clearUnreachable()

The list of unreachable instance partitions. It includes the names of instance partitions whose metadata could not be retrieved within instance_partition_deadline.

repeated string unreachable = 3;

Returns
Type Description
ListInstancePartitionsResponse.Builder

This builder for chaining.

clone()

public ListInstancePartitionsResponse.Builder clone()
Returns
Type Description
ListInstancePartitionsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListInstancePartitionsResponse getDefaultInstanceForType()
Returns
Type Description
ListInstancePartitionsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstancePartitions(int index)

public InstancePartition getInstancePartitions(int index)

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Parameter
Name Description
index int
Returns
Type Description
InstancePartition

getInstancePartitionsBuilder(int index)

public InstancePartition.Builder getInstancePartitionsBuilder(int index)

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Parameter
Name Description
index int
Returns
Type Description
InstancePartition.Builder

getInstancePartitionsBuilderList()

public List<InstancePartition.Builder> getInstancePartitionsBuilderList()

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Returns
Type Description
List<Builder>

getInstancePartitionsCount()

public int getInstancePartitionsCount()

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Returns
Type Description
int

getInstancePartitionsList()

public List<InstancePartition> getInstancePartitionsList()

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Returns
Type Description
List<InstancePartition>

getInstancePartitionsOrBuilder(int index)

public InstancePartitionOrBuilder getInstancePartitionsOrBuilder(int index)

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Parameter
Name Description
index int
Returns
Type Description
InstancePartitionOrBuilder

getInstancePartitionsOrBuilderList()

public List<? extends InstancePartitionOrBuilder> getInstancePartitionsOrBuilderList()

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Returns
Type Description
List<? extends com.google.spanner.admin.instance.v1.InstancePartitionOrBuilder>

getNextPageToken()

public String getNextPageToken()

next_page_token can be sent in a subsequent ListInstancePartitions call to fetch more of the matching instance partitions.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

next_page_token can be sent in a subsequent ListInstancePartitions call to fetch more of the matching instance partitions.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

The list of unreachable instance partitions. It includes the names of instance partitions whose metadata could not be retrieved within instance_partition_deadline.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

The list of unreachable instance partitions. It includes the names of instance partitions whose metadata could not be retrieved within instance_partition_deadline.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

The list of unreachable instance partitions. It includes the names of instance partitions whose metadata could not be retrieved within instance_partition_deadline.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

The list of unreachable instance partitions. It includes the names of instance partitions whose metadata could not be retrieved within instance_partition_deadline.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListInstancePartitionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListInstancePartitionsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListInstancePartitionsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListInstancePartitionsResponse.Builder
Overrides

mergeFrom(ListInstancePartitionsResponse other)

public ListInstancePartitionsResponse.Builder mergeFrom(ListInstancePartitionsResponse other)
Parameter
Name Description
other ListInstancePartitionsResponse
Returns
Type Description
ListInstancePartitionsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListInstancePartitionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListInstancePartitionsResponse.Builder
Overrides

removeInstancePartitions(int index)

public ListInstancePartitionsResponse.Builder removeInstancePartitions(int index)

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Parameter
Name Description
index int
Returns
Type Description
ListInstancePartitionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListInstancePartitionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListInstancePartitionsResponse.Builder
Overrides

setInstancePartitions(int index, InstancePartition value)

public ListInstancePartitionsResponse.Builder setInstancePartitions(int index, InstancePartition value)

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Parameters
Name Description
index int
value InstancePartition
Returns
Type Description
ListInstancePartitionsResponse.Builder

setInstancePartitions(int index, InstancePartition.Builder builderForValue)

public ListInstancePartitionsResponse.Builder setInstancePartitions(int index, InstancePartition.Builder builderForValue)

The list of requested instancePartitions.

repeated .google.spanner.admin.instance.v1.InstancePartition instance_partitions = 1;

Parameters
Name Description
index int
builderForValue InstancePartition.Builder
Returns
Type Description
ListInstancePartitionsResponse.Builder

setNextPageToken(String value)

public ListInstancePartitionsResponse.Builder setNextPageToken(String value)

next_page_token can be sent in a subsequent ListInstancePartitions call to fetch more of the matching instance partitions.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListInstancePartitionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListInstancePartitionsResponse.Builder setNextPageTokenBytes(ByteString value)

next_page_token can be sent in a subsequent ListInstancePartitions call to fetch more of the matching instance partitions.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListInstancePartitionsResponse.Builder

This builder for chaining.

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

public ListInstancePartitionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListInstancePartitionsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListInstancePartitionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListInstancePartitionsResponse.Builder
Overrides

setUnreachable(int index, String value)

public ListInstancePartitionsResponse.Builder setUnreachable(int index, String value)

The list of unreachable instance partitions. It includes the names of instance partitions whose metadata could not be retrieved within instance_partition_deadline.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListInstancePartitionsResponse.Builder

This builder for chaining.