Class AppProfile.MultiClusterRoutingUseAny.Builder (2.10.2)

public static final class AppProfile.MultiClusterRoutingUseAny.Builder extends GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder> implements AppProfile.MultiClusterRoutingUseAnyOrBuilder

Read/write requests are routed to the nearest cluster in the instance, and will fail over to the nearest cluster that is available in the event of transient errors or delays. Clusters in a region are considered equidistant. Choosing this option sacrifices read-your-writes consistency to improve availability.

Protobuf type google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny

Static Methods

getDescriptor()

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

Methods

addAllClusterIds(Iterable<String> values)

public AppProfile.MultiClusterRoutingUseAny.Builder addAllClusterIds(Iterable<String> values)

The set of clusters to route to. The order is ignored; clusters will be tried in order of distance. If left empty, all clusters are eligible.

repeated string cluster_ids = 1;

Parameter
NameDescription
valuesIterable<String>

The clusterIds to add.

Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder

This builder for chaining.

addClusterIds(String value)

public AppProfile.MultiClusterRoutingUseAny.Builder addClusterIds(String value)

The set of clusters to route to. The order is ignored; clusters will be tried in order of distance. If left empty, all clusters are eligible.

repeated string cluster_ids = 1;

Parameter
NameDescription
valueString

The clusterIds to add.

Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder

This builder for chaining.

addClusterIdsBytes(ByteString value)

public AppProfile.MultiClusterRoutingUseAny.Builder addClusterIdsBytes(ByteString value)

The set of clusters to route to. The order is ignored; clusters will be tried in order of distance. If left empty, all clusters are eligible.

repeated string cluster_ids = 1;

Parameter
NameDescription
valueByteString

The bytes of the clusterIds to add.

Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AppProfile.MultiClusterRoutingUseAny.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder
Overrides

build()

public AppProfile.MultiClusterRoutingUseAny build()
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny

buildPartial()

public AppProfile.MultiClusterRoutingUseAny buildPartial()
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny

clear()

public AppProfile.MultiClusterRoutingUseAny.Builder clear()
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder
Overrides

clearClusterIds()

public AppProfile.MultiClusterRoutingUseAny.Builder clearClusterIds()

The set of clusters to route to. The order is ignored; clusters will be tried in order of distance. If left empty, all clusters are eligible.

repeated string cluster_ids = 1;

Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AppProfile.MultiClusterRoutingUseAny.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AppProfile.MultiClusterRoutingUseAny.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder
Overrides

clone()

public AppProfile.MultiClusterRoutingUseAny.Builder clone()
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder
Overrides

getClusterIds(int index)

public String getClusterIds(int index)

The set of clusters to route to. The order is ignored; clusters will be tried in order of distance. If left empty, all clusters are eligible.

repeated string cluster_ids = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The clusterIds at the given index.

getClusterIdsBytes(int index)

public ByteString getClusterIdsBytes(int index)

The set of clusters to route to. The order is ignored; clusters will be tried in order of distance. If left empty, all clusters are eligible.

repeated string cluster_ids = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the clusterIds at the given index.

getClusterIdsCount()

public int getClusterIdsCount()

The set of clusters to route to. The order is ignored; clusters will be tried in order of distance. If left empty, all clusters are eligible.

repeated string cluster_ids = 1;

Returns
TypeDescription
int

The count of clusterIds.

getClusterIdsList()

public ProtocolStringList getClusterIdsList()

The set of clusters to route to. The order is ignored; clusters will be tried in order of distance. If left empty, all clusters are eligible.

repeated string cluster_ids = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the clusterIds.

getDefaultInstanceForType()

public AppProfile.MultiClusterRoutingUseAny getDefaultInstanceForType()
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AppProfile.MultiClusterRoutingUseAny other)

public AppProfile.MultiClusterRoutingUseAny.Builder mergeFrom(AppProfile.MultiClusterRoutingUseAny other)
Parameter
NameDescription
otherAppProfile.MultiClusterRoutingUseAny
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AppProfile.MultiClusterRoutingUseAny.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AppProfile.MultiClusterRoutingUseAny.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AppProfile.MultiClusterRoutingUseAny.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder
Overrides

setClusterIds(int index, String value)

public AppProfile.MultiClusterRoutingUseAny.Builder setClusterIds(int index, String value)

The set of clusters to route to. The order is ignored; clusters will be tried in order of distance. If left empty, all clusters are eligible.

repeated string cluster_ids = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The clusterIds to set.

Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AppProfile.MultiClusterRoutingUseAny.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder
Overrides

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

public AppProfile.MultiClusterRoutingUseAny.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AppProfile.MultiClusterRoutingUseAny.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AppProfile.MultiClusterRoutingUseAny.Builder
Overrides