Package com.google.bigtable.admin.v2
Class AppProfile.MultiClusterRoutingUseAny.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
-
- com.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.Builder
-
- All Implemented Interfaces:
AppProfile.MultiClusterRoutingUseAnyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AppProfile.MultiClusterRoutingUseAny
public static final class AppProfile.MultiClusterRoutingUseAny.Builder extends com.google.protobuf.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 typegoogle.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
-
clear
public AppProfile.MultiClusterRoutingUseAny.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
-
getDefaultInstanceForType
public AppProfile.MultiClusterRoutingUseAny getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AppProfile.MultiClusterRoutingUseAny build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AppProfile.MultiClusterRoutingUseAny buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AppProfile.MultiClusterRoutingUseAny.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
-
setField
public AppProfile.MultiClusterRoutingUseAny.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
-
clearField
public AppProfile.MultiClusterRoutingUseAny.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
-
clearOneof
public AppProfile.MultiClusterRoutingUseAny.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
-
setRepeatedField
public AppProfile.MultiClusterRoutingUseAny.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
-
addRepeatedField
public AppProfile.MultiClusterRoutingUseAny.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
-
mergeFrom
public AppProfile.MultiClusterRoutingUseAny.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
-
mergeFrom
public AppProfile.MultiClusterRoutingUseAny.Builder mergeFrom(AppProfile.MultiClusterRoutingUseAny other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
-
mergeFrom
public AppProfile.MultiClusterRoutingUseAny.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>- Throws:
IOException
-
getClusterIdsList
public com.google.protobuf.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;- Specified by:
getClusterIdsListin interfaceAppProfile.MultiClusterRoutingUseAnyOrBuilder- Returns:
- A list containing the clusterIds.
-
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;- Specified by:
getClusterIdsCountin interfaceAppProfile.MultiClusterRoutingUseAnyOrBuilder- Returns:
- The count of clusterIds.
-
getClusterIds
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;- Specified by:
getClusterIdsin interfaceAppProfile.MultiClusterRoutingUseAnyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The clusterIds at the given index.
-
getClusterIdsBytes
public com.google.protobuf.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;- Specified by:
getClusterIdsBytesin interfaceAppProfile.MultiClusterRoutingUseAnyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the clusterIds at the given index.
-
setClusterIds
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:
index- The index to set the value at.value- The clusterIds to set.- Returns:
- This builder for chaining.
-
addClusterIds
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;- Parameters:
value- The clusterIds to add.- Returns:
- This builder for chaining.
-
addAllClusterIds
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;- Parameters:
values- The clusterIds to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addClusterIdsBytes
public AppProfile.MultiClusterRoutingUseAny.Builder addClusterIdsBytes(com.google.protobuf.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;- Parameters:
value- The bytes of the clusterIds to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AppProfile.MultiClusterRoutingUseAny.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
-
mergeUnknownFields
public final AppProfile.MultiClusterRoutingUseAny.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
-
-