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 Details

    • 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>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear 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

      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
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
    • setField

      public AppProfile.MultiClusterRoutingUseAny.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
    • clearField

      public AppProfile.MultiClusterRoutingUseAny.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
    • clearOneof

      public AppProfile.MultiClusterRoutingUseAny.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
    • addRepeatedField

      public AppProfile.MultiClusterRoutingUseAny.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
    • mergeFrom

      public AppProfile.MultiClusterRoutingUseAny.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
    • mergeFrom

    • 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>
    • mergeFrom

      public AppProfile.MultiClusterRoutingUseAny.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      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

       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.
    • setUnknownFields

      public final AppProfile.MultiClusterRoutingUseAny.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>
    • mergeUnknownFields

      public final AppProfile.MultiClusterRoutingUseAny.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AppProfile.MultiClusterRoutingUseAny.Builder>