Class 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 Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
      • getDefaultInstanceForType

        public AppProfile.MultiClusterRoutingUseAny getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public AppProfile.MultiClusterRoutingUseAny build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public AppProfile.MultiClusterRoutingUseAny buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
      • 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:
        getClusterIdsList in interface AppProfile.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:
        getClusterIdsCount in interface AppProfile.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:
        getClusterIds in interface AppProfile.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:
        getClusterIdsBytes in interface AppProfile.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.