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 type
google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny-
Method Summary
Modifier and TypeMethodDescriptionaddAllClusterIds(Iterable<String> values) The set of clusters to route to.addClusterIds(String value) The set of clusters to route to.addClusterIdsBytes(com.google.protobuf.ByteString value) The set of clusters to route to.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The set of clusters to route to.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Row affinity sticky routing based on the row key of the request.clone()getClusterIds(int index) The set of clusters to route to.com.google.protobuf.ByteStringgetClusterIdsBytes(int index) The set of clusters to route to.intThe set of clusters to route to.com.google.protobuf.ProtocolStringListThe set of clusters to route to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRow affinity sticky routing based on the row key of the request.Row affinity sticky routing based on the row key of the request.Row affinity sticky routing based on the row key of the request.booleanRow affinity sticky routing based on the row key of the request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Row affinity sticky routing based on the row key of the request.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setClusterIds(int index, String value) The set of clusters to route to.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Row affinity sticky routing based on the row key of the request.setRowAffinity(AppProfile.MultiClusterRoutingUseAny.RowAffinity.Builder builderForValue) Row affinity sticky routing based on the row key of the request.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
- 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
-
getAffinityCase
- Specified by:
getAffinityCasein interfaceAppProfile.MultiClusterRoutingUseAnyOrBuilder
-
clearAffinity
-
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
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
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
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
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
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.
-
hasRowAffinity
public boolean hasRowAffinity()Row affinity sticky routing based on the row key of the request. Requests that span multiple rows are routed non-deterministically.
.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity row_affinity = 3;- Specified by:
hasRowAffinityin interfaceAppProfile.MultiClusterRoutingUseAnyOrBuilder- Returns:
- Whether the rowAffinity field is set.
-
getRowAffinity
Row affinity sticky routing based on the row key of the request. Requests that span multiple rows are routed non-deterministically.
.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity row_affinity = 3;- Specified by:
getRowAffinityin interfaceAppProfile.MultiClusterRoutingUseAnyOrBuilder- Returns:
- The rowAffinity.
-
setRowAffinity
public AppProfile.MultiClusterRoutingUseAny.Builder setRowAffinity(AppProfile.MultiClusterRoutingUseAny.RowAffinity value) Row affinity sticky routing based on the row key of the request. Requests that span multiple rows are routed non-deterministically.
.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity row_affinity = 3; -
setRowAffinity
public AppProfile.MultiClusterRoutingUseAny.Builder setRowAffinity(AppProfile.MultiClusterRoutingUseAny.RowAffinity.Builder builderForValue) Row affinity sticky routing based on the row key of the request. Requests that span multiple rows are routed non-deterministically.
.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity row_affinity = 3; -
mergeRowAffinity
public AppProfile.MultiClusterRoutingUseAny.Builder mergeRowAffinity(AppProfile.MultiClusterRoutingUseAny.RowAffinity value) Row affinity sticky routing based on the row key of the request. Requests that span multiple rows are routed non-deterministically.
.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity row_affinity = 3; -
clearRowAffinity
Row affinity sticky routing based on the row key of the request. Requests that span multiple rows are routed non-deterministically.
.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity row_affinity = 3; -
getRowAffinityBuilder
Row affinity sticky routing based on the row key of the request. Requests that span multiple rows are routed non-deterministically.
.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity row_affinity = 3; -
getRowAffinityOrBuilder
Row affinity sticky routing based on the row key of the request. Requests that span multiple rows are routed non-deterministically.
.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity row_affinity = 3;- Specified by:
getRowAffinityOrBuilderin interfaceAppProfile.MultiClusterRoutingUseAnyOrBuilder
-
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>
-