Class Cluster.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
com.google.bigtable.admin.v2.Cluster.Builder
All Implemented Interfaces:
ClusterOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Cluster

public static final class Cluster.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder> implements ClusterOrBuilder
 A resizable group of nodes in a particular cloud location, capable
 of serving all [Tables][google.bigtable.admin.v2.Table] in the parent
 [Instance][google.bigtable.admin.v2.Instance].
 
Protobuf type google.bigtable.admin.v2.Cluster
  • 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<Cluster.Builder>
    • clear

      public Cluster.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<Cluster.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<Cluster.Builder>
    • getDefaultInstanceForType

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

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

      public Cluster buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Cluster.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<Cluster.Builder>
    • setField

      public Cluster.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<Cluster.Builder>
    • clearField

      public Cluster.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<Cluster.Builder>
    • clearOneof

      public Cluster.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<Cluster.Builder>
    • setRepeatedField

      public Cluster.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<Cluster.Builder>
    • addRepeatedField

      public Cluster.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<Cluster.Builder>
    • mergeFrom

      public Cluster.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<Cluster.Builder>
    • mergeFrom

      public Cluster.Builder mergeFrom(Cluster other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
    • mergeFrom

      public Cluster.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<Cluster.Builder>
      Throws:
      IOException
    • getConfigCase

      public Cluster.ConfigCase getConfigCase()
      Specified by:
      getConfigCase in interface ClusterOrBuilder
    • clearConfig

      public Cluster.Builder clearConfig()
    • getName

      public String getName()
       The unique name of the cluster. Values are of the form
       `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`.
       
      string name = 1;
      Specified by:
      getName in interface ClusterOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The unique name of the cluster. Values are of the form
       `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface ClusterOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Cluster.Builder setName(String value)
       The unique name of the cluster. Values are of the form
       `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Cluster.Builder clearName()
       The unique name of the cluster. Values are of the form
       `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Cluster.Builder setNameBytes(com.google.protobuf.ByteString value)
       The unique name of the cluster. Values are of the form
       `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getLocation

      public String getLocation()
       Immutable. The location where this cluster's nodes and storage reside. For
       best performance, clients should be located as close as possible to this
       cluster. Currently only zones are supported, so values should be of the
       form `projects/{project}/locations/{zone}`.
       
      string location = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getLocation in interface ClusterOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Immutable. The location where this cluster's nodes and storage reside. For
       best performance, clients should be located as close as possible to this
       cluster. Currently only zones are supported, so values should be of the
       form `projects/{project}/locations/{zone}`.
       
      string location = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getLocationBytes in interface ClusterOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public Cluster.Builder setLocation(String value)
       Immutable. The location where this cluster's nodes and storage reside. For
       best performance, clients should be located as close as possible to this
       cluster. Currently only zones are supported, so values should be of the
       form `projects/{project}/locations/{zone}`.
       
      string location = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public Cluster.Builder clearLocation()
       Immutable. The location where this cluster's nodes and storage reside. For
       best performance, clients should be located as close as possible to this
       cluster. Currently only zones are supported, so values should be of the
       form `projects/{project}/locations/{zone}`.
       
      string location = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setLocationBytes

      public Cluster.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Immutable. The location where this cluster's nodes and storage reside. For
       best performance, clients should be located as close as possible to this
       cluster. Currently only zones are supported, so values should be of the
       form `projects/{project}/locations/{zone}`.
       
      string location = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. The current state of the cluster.
       
      .google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ClusterOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Cluster.Builder setStateValue(int value)
       Output only. The current state of the cluster.
       
      .google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Cluster.State getState()
       Output only. The current state of the cluster.
       
      .google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ClusterOrBuilder
      Returns:
      The state.
    • setState

      public Cluster.Builder setState(Cluster.State value)
       Output only. The current state of the cluster.
       
      .google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Cluster.Builder clearState()
       Output only. The current state of the cluster.
       
      .google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getServeNodes

      public int getServeNodes()
       The number of nodes allocated to this cluster. More nodes enable higher
       throughput and more consistent performance.
       
      int32 serve_nodes = 4;
      Specified by:
      getServeNodes in interface ClusterOrBuilder
      Returns:
      The serveNodes.
    • setServeNodes

      public Cluster.Builder setServeNodes(int value)
       The number of nodes allocated to this cluster. More nodes enable higher
       throughput and more consistent performance.
       
      int32 serve_nodes = 4;
      Parameters:
      value - The serveNodes to set.
      Returns:
      This builder for chaining.
    • clearServeNodes

      public Cluster.Builder clearServeNodes()
       The number of nodes allocated to this cluster. More nodes enable higher
       throughput and more consistent performance.
       
      int32 serve_nodes = 4;
      Returns:
      This builder for chaining.
    • hasClusterConfig

      public boolean hasClusterConfig()
       Configuration for this cluster.
       
      .google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7;
      Specified by:
      hasClusterConfig in interface ClusterOrBuilder
      Returns:
      Whether the clusterConfig field is set.
    • getClusterConfig

      public Cluster.ClusterConfig getClusterConfig()
       Configuration for this cluster.
       
      .google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7;
      Specified by:
      getClusterConfig in interface ClusterOrBuilder
      Returns:
      The clusterConfig.
    • setClusterConfig

      public Cluster.Builder setClusterConfig(Cluster.ClusterConfig value)
       Configuration for this cluster.
       
      .google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7;
    • setClusterConfig

      public Cluster.Builder setClusterConfig(Cluster.ClusterConfig.Builder builderForValue)
       Configuration for this cluster.
       
      .google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7;
    • mergeClusterConfig

      public Cluster.Builder mergeClusterConfig(Cluster.ClusterConfig value)
       Configuration for this cluster.
       
      .google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7;
    • clearClusterConfig

      public Cluster.Builder clearClusterConfig()
       Configuration for this cluster.
       
      .google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7;
    • getClusterConfigBuilder

      public Cluster.ClusterConfig.Builder getClusterConfigBuilder()
       Configuration for this cluster.
       
      .google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7;
    • getClusterConfigOrBuilder

      public Cluster.ClusterConfigOrBuilder getClusterConfigOrBuilder()
       Configuration for this cluster.
       
      .google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7;
      Specified by:
      getClusterConfigOrBuilder in interface ClusterOrBuilder
    • getDefaultStorageTypeValue

      public int getDefaultStorageTypeValue()
       Immutable. The type of storage used by this cluster to serve its
       parent instance's tables, unless explicitly overridden.
       
      .google.bigtable.admin.v2.StorageType default_storage_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDefaultStorageTypeValue in interface ClusterOrBuilder
      Returns:
      The enum numeric value on the wire for defaultStorageType.
    • setDefaultStorageTypeValue

      public Cluster.Builder setDefaultStorageTypeValue(int value)
       Immutable. The type of storage used by this cluster to serve its
       parent instance's tables, unless explicitly overridden.
       
      .google.bigtable.admin.v2.StorageType default_storage_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The enum numeric value on the wire for defaultStorageType to set.
      Returns:
      This builder for chaining.
    • getDefaultStorageType

      public StorageType getDefaultStorageType()
       Immutable. The type of storage used by this cluster to serve its
       parent instance's tables, unless explicitly overridden.
       
      .google.bigtable.admin.v2.StorageType default_storage_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDefaultStorageType in interface ClusterOrBuilder
      Returns:
      The defaultStorageType.
    • setDefaultStorageType

      public Cluster.Builder setDefaultStorageType(StorageType value)
       Immutable. The type of storage used by this cluster to serve its
       parent instance's tables, unless explicitly overridden.
       
      .google.bigtable.admin.v2.StorageType default_storage_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The defaultStorageType to set.
      Returns:
      This builder for chaining.
    • clearDefaultStorageType

      public Cluster.Builder clearDefaultStorageType()
       Immutable. The type of storage used by this cluster to serve its
       parent instance's tables, unless explicitly overridden.
       
      .google.bigtable.admin.v2.StorageType default_storage_type = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • hasEncryptionConfig

      public boolean hasEncryptionConfig()
       Immutable. The encryption configuration for CMEK-protected clusters.
       
      .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasEncryptionConfig in interface ClusterOrBuilder
      Returns:
      Whether the encryptionConfig field is set.
    • getEncryptionConfig

      public Cluster.EncryptionConfig getEncryptionConfig()
       Immutable. The encryption configuration for CMEK-protected clusters.
       
      .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getEncryptionConfig in interface ClusterOrBuilder
      Returns:
      The encryptionConfig.
    • setEncryptionConfig

      public Cluster.Builder setEncryptionConfig(Cluster.EncryptionConfig value)
       Immutable. The encryption configuration for CMEK-protected clusters.
       
      .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
    • setEncryptionConfig

      public Cluster.Builder setEncryptionConfig(Cluster.EncryptionConfig.Builder builderForValue)
       Immutable. The encryption configuration for CMEK-protected clusters.
       
      .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
    • mergeEncryptionConfig

      public Cluster.Builder mergeEncryptionConfig(Cluster.EncryptionConfig value)
       Immutable. The encryption configuration for CMEK-protected clusters.
       
      .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
    • clearEncryptionConfig

      public Cluster.Builder clearEncryptionConfig()
       Immutable. The encryption configuration for CMEK-protected clusters.
       
      .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
    • getEncryptionConfigBuilder

      public Cluster.EncryptionConfig.Builder getEncryptionConfigBuilder()
       Immutable. The encryption configuration for CMEK-protected clusters.
       
      .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
    • getEncryptionConfigOrBuilder

      public Cluster.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
       Immutable. The encryption configuration for CMEK-protected clusters.
       
      .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getEncryptionConfigOrBuilder in interface ClusterOrBuilder
    • setUnknownFields

      public final Cluster.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<Cluster.Builder>
    • mergeUnknownFields

      public final Cluster.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<Cluster.Builder>