Class InstanceConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
com.google.spanner.admin.instance.v1.InstanceConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, InstanceConfigOrBuilder, Cloneable
Enclosing class:
InstanceConfig

public static final class InstanceConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder> implements InstanceConfigOrBuilder
 A possible configuration for a Cloud Spanner instance. Configurations
 define the geographic placement of nodes and their replication.
 
Protobuf type google.spanner.admin.instance.v1.InstanceConfig
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public InstanceConfig.Builder mergeFrom(InstanceConfig other)
    • isInitialized

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

      public InstanceConfig.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<InstanceConfig.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       A unique identifier for the instance configuration.  Values
       are of the form
       `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
      
       User instance configuration must start with `custom-`.
       
      string name = 1;
      Specified by:
      getName in interface InstanceConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       A unique identifier for the instance configuration.  Values
       are of the form
       `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
      
       User instance configuration must start with `custom-`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface InstanceConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      public InstanceConfig.Builder setName(String value)
       A unique identifier for the instance configuration.  Values
       are of the form
       `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
      
       User instance configuration must start with `custom-`.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public InstanceConfig.Builder clearName()
       A unique identifier for the instance configuration.  Values
       are of the form
       `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
      
       User instance configuration must start with `custom-`.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public InstanceConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       A unique identifier for the instance configuration.  Values
       are of the form
       `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
      
       User instance configuration must start with `custom-`.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       The name of this instance configuration as it appears in UIs.
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface InstanceConfigOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The name of this instance configuration as it appears in UIs.
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface InstanceConfigOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public InstanceConfig.Builder setDisplayName(String value)
       The name of this instance configuration as it appears in UIs.
       
      string display_name = 2;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public InstanceConfig.Builder clearDisplayName()
       The name of this instance configuration as it appears in UIs.
       
      string display_name = 2;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public InstanceConfig.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The name of this instance configuration as it appears in UIs.
       
      string display_name = 2;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getConfigTypeValue

      public int getConfigTypeValue()
       Output only. Whether this instance configuration is a Google-managed or
       user-managed configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConfigTypeValue in interface InstanceConfigOrBuilder
      Returns:
      The enum numeric value on the wire for configType.
    • setConfigTypeValue

      public InstanceConfig.Builder setConfigTypeValue(int value)
       Output only. Whether this instance configuration is a Google-managed or
       user-managed configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for configType to set.
      Returns:
      This builder for chaining.
    • getConfigType

      public InstanceConfig.Type getConfigType()
       Output only. Whether this instance configuration is a Google-managed or
       user-managed configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConfigType in interface InstanceConfigOrBuilder
      Returns:
      The configType.
    • setConfigType

      public InstanceConfig.Builder setConfigType(InstanceConfig.Type value)
       Output only. Whether this instance configuration is a Google-managed or
       user-managed configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The configType to set.
      Returns:
      This builder for chaining.
    • clearConfigType

      public InstanceConfig.Builder clearConfigType()
       Output only. Whether this instance configuration is a Google-managed or
       user-managed configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getReplicasList

      public List<ReplicaInfo> getReplicasList()
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
      Specified by:
      getReplicasList in interface InstanceConfigOrBuilder
    • getReplicasCount

      public int getReplicasCount()
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
      Specified by:
      getReplicasCount in interface InstanceConfigOrBuilder
    • getReplicas

      public ReplicaInfo getReplicas(int index)
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
      Specified by:
      getReplicas in interface InstanceConfigOrBuilder
    • setReplicas

      public InstanceConfig.Builder setReplicas(int index, ReplicaInfo value)
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
    • setReplicas

      public InstanceConfig.Builder setReplicas(int index, ReplicaInfo.Builder builderForValue)
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
    • addReplicas

      public InstanceConfig.Builder addReplicas(ReplicaInfo value)
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
    • addReplicas

      public InstanceConfig.Builder addReplicas(int index, ReplicaInfo value)
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
    • addReplicas

      public InstanceConfig.Builder addReplicas(ReplicaInfo.Builder builderForValue)
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
    • addReplicas

      public InstanceConfig.Builder addReplicas(int index, ReplicaInfo.Builder builderForValue)
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
    • addAllReplicas

      public InstanceConfig.Builder addAllReplicas(Iterable<? extends ReplicaInfo> values)
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
    • clearReplicas

      public InstanceConfig.Builder clearReplicas()
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
    • removeReplicas

      public InstanceConfig.Builder removeReplicas(int index)
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
    • getReplicasBuilder

      public ReplicaInfo.Builder getReplicasBuilder(int index)
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
    • getReplicasOrBuilder

      public ReplicaInfoOrBuilder getReplicasOrBuilder(int index)
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
      Specified by:
      getReplicasOrBuilder in interface InstanceConfigOrBuilder
    • getReplicasOrBuilderList

      public List<? extends ReplicaInfoOrBuilder> getReplicasOrBuilderList()
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
      Specified by:
      getReplicasOrBuilderList in interface InstanceConfigOrBuilder
    • addReplicasBuilder

      public ReplicaInfo.Builder addReplicasBuilder()
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
    • addReplicasBuilder

      public ReplicaInfo.Builder addReplicasBuilder(int index)
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
    • getReplicasBuilderList

      public List<ReplicaInfo.Builder> getReplicasBuilderList()
       The geographic placement of nodes in this instance configuration and their
       replication properties.
      
       To create user-managed configurations, input
       `replicas` must include all replicas in `replicas` of the `base_config`
       and include one or more replicas in the `optional_replicas` of the
       `base_config`.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
    • getOptionalReplicasList

      public List<ReplicaInfo> getOptionalReplicasList()
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOptionalReplicasList in interface InstanceConfigOrBuilder
    • getOptionalReplicasCount

      public int getOptionalReplicasCount()
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOptionalReplicasCount in interface InstanceConfigOrBuilder
    • getOptionalReplicas

      public ReplicaInfo getOptionalReplicas(int index)
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOptionalReplicas in interface InstanceConfigOrBuilder
    • setOptionalReplicas

      public InstanceConfig.Builder setOptionalReplicas(int index, ReplicaInfo value)
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setOptionalReplicas

      public InstanceConfig.Builder setOptionalReplicas(int index, ReplicaInfo.Builder builderForValue)
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addOptionalReplicas

      public InstanceConfig.Builder addOptionalReplicas(ReplicaInfo value)
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addOptionalReplicas

      public InstanceConfig.Builder addOptionalReplicas(int index, ReplicaInfo value)
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addOptionalReplicas

      public InstanceConfig.Builder addOptionalReplicas(ReplicaInfo.Builder builderForValue)
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addOptionalReplicas

      public InstanceConfig.Builder addOptionalReplicas(int index, ReplicaInfo.Builder builderForValue)
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllOptionalReplicas

      public InstanceConfig.Builder addAllOptionalReplicas(Iterable<? extends ReplicaInfo> values)
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearOptionalReplicas

      public InstanceConfig.Builder clearOptionalReplicas()
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeOptionalReplicas

      public InstanceConfig.Builder removeOptionalReplicas(int index)
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getOptionalReplicasBuilder

      public ReplicaInfo.Builder getOptionalReplicasBuilder(int index)
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getOptionalReplicasOrBuilder

      public ReplicaInfoOrBuilder getOptionalReplicasOrBuilder(int index)
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOptionalReplicasOrBuilder in interface InstanceConfigOrBuilder
    • getOptionalReplicasOrBuilderList

      public List<? extends ReplicaInfoOrBuilder> getOptionalReplicasOrBuilderList()
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOptionalReplicasOrBuilderList in interface InstanceConfigOrBuilder
    • addOptionalReplicasBuilder

      public ReplicaInfo.Builder addOptionalReplicasBuilder()
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addOptionalReplicasBuilder

      public ReplicaInfo.Builder addOptionalReplicasBuilder(int index)
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getOptionalReplicasBuilderList

      public List<ReplicaInfo.Builder> getOptionalReplicasBuilderList()
       Output only. The available optional replicas to choose from for
       user-managed configurations. Populated for Google-managed configurations.
       
      repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getBaseConfig

      public String getBaseConfig()
       Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
       based on which this configuration is created. Only set for user-managed
       configurations. `base_config` must refer to a configuration of type
       `GOOGLE_MANAGED` in the same project as this configuration.
       
      string base_config = 7 [(.google.api.resource_reference) = { ... }
      Specified by:
      getBaseConfig in interface InstanceConfigOrBuilder
      Returns:
      The baseConfig.
    • getBaseConfigBytes

      public com.google.protobuf.ByteString getBaseConfigBytes()
       Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
       based on which this configuration is created. Only set for user-managed
       configurations. `base_config` must refer to a configuration of type
       `GOOGLE_MANAGED` in the same project as this configuration.
       
      string base_config = 7 [(.google.api.resource_reference) = { ... }
      Specified by:
      getBaseConfigBytes in interface InstanceConfigOrBuilder
      Returns:
      The bytes for baseConfig.
    • setBaseConfig

      public InstanceConfig.Builder setBaseConfig(String value)
       Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
       based on which this configuration is created. Only set for user-managed
       configurations. `base_config` must refer to a configuration of type
       `GOOGLE_MANAGED` in the same project as this configuration.
       
      string base_config = 7 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The baseConfig to set.
      Returns:
      This builder for chaining.
    • clearBaseConfig

      public InstanceConfig.Builder clearBaseConfig()
       Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
       based on which this configuration is created. Only set for user-managed
       configurations. `base_config` must refer to a configuration of type
       `GOOGLE_MANAGED` in the same project as this configuration.
       
      string base_config = 7 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setBaseConfigBytes

      public InstanceConfig.Builder setBaseConfigBytes(com.google.protobuf.ByteString value)
       Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
       based on which this configuration is created. Only set for user-managed
       configurations. `base_config` must refer to a configuration of type
       `GOOGLE_MANAGED` in the same project as this configuration.
       
      string base_config = 7 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for baseConfig to set.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: InstanceConfigOrBuilder
       Cloud Labels are a flexible and lightweight mechanism for organizing cloud
       resources into groups that reflect a customer's organizational needs and
       deployment strategies. Cloud Labels can be used to filter collections of
       resources. They can be used to control how resource metrics are aggregated.
       And they can be used as arguments to policy management rules (e.g. route,
       firewall, load balancing, etc.).
      
        * Label keys must be between 1 and 63 characters long and must conform to
          the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
        * Label values must be between 0 and 63 characters long and must conform
          to the regular expression `[a-z0-9_-]{0,63}`.
        * No more than 64 labels can be associated with a given resource.
      
       See https://goo.gl/xmQnxf for more information on and examples of labels.
      
       If you plan to use labels in your own code, please note that additional
       characters may be allowed in the future. Therefore, you are advised to use
       an internal label representation, such as JSON, which doesn't rely upon
       specific characters being disallowed.  For example, representing labels
       as the string:  name + "_" + value  would prove problematic if we were to
       allow "_" in a future release.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsCount in interface InstanceConfigOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Cloud Labels are a flexible and lightweight mechanism for organizing cloud
       resources into groups that reflect a customer's organizational needs and
       deployment strategies. Cloud Labels can be used to filter collections of
       resources. They can be used to control how resource metrics are aggregated.
       And they can be used as arguments to policy management rules (e.g. route,
       firewall, load balancing, etc.).
      
        * Label keys must be between 1 and 63 characters long and must conform to
          the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
        * Label values must be between 0 and 63 characters long and must conform
          to the regular expression `[a-z0-9_-]{0,63}`.
        * No more than 64 labels can be associated with a given resource.
      
       See https://goo.gl/xmQnxf for more information on and examples of labels.
      
       If you plan to use labels in your own code, please note that additional
       characters may be allowed in the future. Therefore, you are advised to use
       an internal label representation, such as JSON, which doesn't rely upon
       specific characters being disallowed.  For example, representing labels
       as the string:  name + "_" + value  would prove problematic if we were to
       allow "_" in a future release.
       
      map<string, string> labels = 8;
      Specified by:
      containsLabels in interface InstanceConfigOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface InstanceConfigOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Cloud Labels are a flexible and lightweight mechanism for organizing cloud
       resources into groups that reflect a customer's organizational needs and
       deployment strategies. Cloud Labels can be used to filter collections of
       resources. They can be used to control how resource metrics are aggregated.
       And they can be used as arguments to policy management rules (e.g. route,
       firewall, load balancing, etc.).
      
        * Label keys must be between 1 and 63 characters long and must conform to
          the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
        * Label values must be between 0 and 63 characters long and must conform
          to the regular expression `[a-z0-9_-]{0,63}`.
        * No more than 64 labels can be associated with a given resource.
      
       See https://goo.gl/xmQnxf for more information on and examples of labels.
      
       If you plan to use labels in your own code, please note that additional
       characters may be allowed in the future. Therefore, you are advised to use
       an internal label representation, such as JSON, which doesn't rely upon
       specific characters being disallowed.  For example, representing labels
       as the string:  name + "_" + value  would prove problematic if we were to
       allow "_" in a future release.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsMap in interface InstanceConfigOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Cloud Labels are a flexible and lightweight mechanism for organizing cloud
       resources into groups that reflect a customer's organizational needs and
       deployment strategies. Cloud Labels can be used to filter collections of
       resources. They can be used to control how resource metrics are aggregated.
       And they can be used as arguments to policy management rules (e.g. route,
       firewall, load balancing, etc.).
      
        * Label keys must be between 1 and 63 characters long and must conform to
          the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
        * Label values must be between 0 and 63 characters long and must conform
          to the regular expression `[a-z0-9_-]{0,63}`.
        * No more than 64 labels can be associated with a given resource.
      
       See https://goo.gl/xmQnxf for more information on and examples of labels.
      
       If you plan to use labels in your own code, please note that additional
       characters may be allowed in the future. Therefore, you are advised to use
       an internal label representation, such as JSON, which doesn't rely upon
       specific characters being disallowed.  For example, representing labels
       as the string:  name + "_" + value  would prove problematic if we were to
       allow "_" in a future release.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsOrDefault in interface InstanceConfigOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Cloud Labels are a flexible and lightweight mechanism for organizing cloud
       resources into groups that reflect a customer's organizational needs and
       deployment strategies. Cloud Labels can be used to filter collections of
       resources. They can be used to control how resource metrics are aggregated.
       And they can be used as arguments to policy management rules (e.g. route,
       firewall, load balancing, etc.).
      
        * Label keys must be between 1 and 63 characters long and must conform to
          the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
        * Label values must be between 0 and 63 characters long and must conform
          to the regular expression `[a-z0-9_-]{0,63}`.
        * No more than 64 labels can be associated with a given resource.
      
       See https://goo.gl/xmQnxf for more information on and examples of labels.
      
       If you plan to use labels in your own code, please note that additional
       characters may be allowed in the future. Therefore, you are advised to use
       an internal label representation, such as JSON, which doesn't rely upon
       specific characters being disallowed.  For example, representing labels
       as the string:  name + "_" + value  would prove problematic if we were to
       allow "_" in a future release.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsOrThrow in interface InstanceConfigOrBuilder
    • clearLabels

      public InstanceConfig.Builder clearLabels()
    • removeLabels

      public InstanceConfig.Builder removeLabels(String key)
       Cloud Labels are a flexible and lightweight mechanism for organizing cloud
       resources into groups that reflect a customer's organizational needs and
       deployment strategies. Cloud Labels can be used to filter collections of
       resources. They can be used to control how resource metrics are aggregated.
       And they can be used as arguments to policy management rules (e.g. route,
       firewall, load balancing, etc.).
      
        * Label keys must be between 1 and 63 characters long and must conform to
          the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
        * Label values must be between 0 and 63 characters long and must conform
          to the regular expression `[a-z0-9_-]{0,63}`.
        * No more than 64 labels can be associated with a given resource.
      
       See https://goo.gl/xmQnxf for more information on and examples of labels.
      
       If you plan to use labels in your own code, please note that additional
       characters may be allowed in the future. Therefore, you are advised to use
       an internal label representation, such as JSON, which doesn't rely upon
       specific characters being disallowed.  For example, representing labels
       as the string:  name + "_" + value  would prove problematic if we were to
       allow "_" in a future release.
       
      map<string, string> labels = 8;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public InstanceConfig.Builder putLabels(String key, String value)
       Cloud Labels are a flexible and lightweight mechanism for organizing cloud
       resources into groups that reflect a customer's organizational needs and
       deployment strategies. Cloud Labels can be used to filter collections of
       resources. They can be used to control how resource metrics are aggregated.
       And they can be used as arguments to policy management rules (e.g. route,
       firewall, load balancing, etc.).
      
        * Label keys must be between 1 and 63 characters long and must conform to
          the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
        * Label values must be between 0 and 63 characters long and must conform
          to the regular expression `[a-z0-9_-]{0,63}`.
        * No more than 64 labels can be associated with a given resource.
      
       See https://goo.gl/xmQnxf for more information on and examples of labels.
      
       If you plan to use labels in your own code, please note that additional
       characters may be allowed in the future. Therefore, you are advised to use
       an internal label representation, such as JSON, which doesn't rely upon
       specific characters being disallowed.  For example, representing labels
       as the string:  name + "_" + value  would prove problematic if we were to
       allow "_" in a future release.
       
      map<string, string> labels = 8;
    • putAllLabels

      public InstanceConfig.Builder putAllLabels(Map<String,String> values)
       Cloud Labels are a flexible and lightweight mechanism for organizing cloud
       resources into groups that reflect a customer's organizational needs and
       deployment strategies. Cloud Labels can be used to filter collections of
       resources. They can be used to control how resource metrics are aggregated.
       And they can be used as arguments to policy management rules (e.g. route,
       firewall, load balancing, etc.).
      
        * Label keys must be between 1 and 63 characters long and must conform to
          the following regular expression: `[a-z][a-z0-9_-]{0,62}`.
        * Label values must be between 0 and 63 characters long and must conform
          to the regular expression `[a-z0-9_-]{0,63}`.
        * No more than 64 labels can be associated with a given resource.
      
       See https://goo.gl/xmQnxf for more information on and examples of labels.
      
       If you plan to use labels in your own code, please note that additional
       characters may be allowed in the future. Therefore, you are advised to use
       an internal label representation, such as JSON, which doesn't rely upon
       specific characters being disallowed.  For example, representing labels
       as the string:  name + "_" + value  would prove problematic if we were to
       allow "_" in a future release.
       
      map<string, string> labels = 8;
    • getEtag

      public String getEtag()
       etag is used for optimistic concurrency control as a way
       to help prevent simultaneous updates of a instance configuration from
       overwriting each other. It is strongly suggested that systems make use of
       the etag in the read-modify-write cycle to perform instance configuration
       updates in order to avoid race conditions: An etag is returned in the
       response which contains instance configurations, and systems are expected
       to put that etag in the request to update instance configuration to ensure
       that their change is applied to the same version of the instance
       configuration. If no etag is provided in the call to update the instance
       configuration, then the existing instance configuration is overwritten
       blindly.
       
      string etag = 9;
      Specified by:
      getEtag in interface InstanceConfigOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       etag is used for optimistic concurrency control as a way
       to help prevent simultaneous updates of a instance configuration from
       overwriting each other. It is strongly suggested that systems make use of
       the etag in the read-modify-write cycle to perform instance configuration
       updates in order to avoid race conditions: An etag is returned in the
       response which contains instance configurations, and systems are expected
       to put that etag in the request to update instance configuration to ensure
       that their change is applied to the same version of the instance
       configuration. If no etag is provided in the call to update the instance
       configuration, then the existing instance configuration is overwritten
       blindly.
       
      string etag = 9;
      Specified by:
      getEtagBytes in interface InstanceConfigOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public InstanceConfig.Builder setEtag(String value)
       etag is used for optimistic concurrency control as a way
       to help prevent simultaneous updates of a instance configuration from
       overwriting each other. It is strongly suggested that systems make use of
       the etag in the read-modify-write cycle to perform instance configuration
       updates in order to avoid race conditions: An etag is returned in the
       response which contains instance configurations, and systems are expected
       to put that etag in the request to update instance configuration to ensure
       that their change is applied to the same version of the instance
       configuration. If no etag is provided in the call to update the instance
       configuration, then the existing instance configuration is overwritten
       blindly.
       
      string etag = 9;
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public InstanceConfig.Builder clearEtag()
       etag is used for optimistic concurrency control as a way
       to help prevent simultaneous updates of a instance configuration from
       overwriting each other. It is strongly suggested that systems make use of
       the etag in the read-modify-write cycle to perform instance configuration
       updates in order to avoid race conditions: An etag is returned in the
       response which contains instance configurations, and systems are expected
       to put that etag in the request to update instance configuration to ensure
       that their change is applied to the same version of the instance
       configuration. If no etag is provided in the call to update the instance
       configuration, then the existing instance configuration is overwritten
       blindly.
       
      string etag = 9;
      Returns:
      This builder for chaining.
    • setEtagBytes

      public InstanceConfig.Builder setEtagBytes(com.google.protobuf.ByteString value)
       etag is used for optimistic concurrency control as a way
       to help prevent simultaneous updates of a instance configuration from
       overwriting each other. It is strongly suggested that systems make use of
       the etag in the read-modify-write cycle to perform instance configuration
       updates in order to avoid race conditions: An etag is returned in the
       response which contains instance configurations, and systems are expected
       to put that etag in the request to update instance configuration to ensure
       that their change is applied to the same version of the instance
       configuration. If no etag is provided in the call to update the instance
       configuration, then the existing instance configuration is overwritten
       blindly.
       
      string etag = 9;
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • getLeaderOptionsList

      public com.google.protobuf.ProtocolStringList getLeaderOptionsList()
       Allowed values of the "default_leader" schema option for databases in
       instances that use this instance configuration.
       
      repeated string leader_options = 4;
      Specified by:
      getLeaderOptionsList in interface InstanceConfigOrBuilder
      Returns:
      A list containing the leaderOptions.
    • getLeaderOptionsCount

      public int getLeaderOptionsCount()
       Allowed values of the "default_leader" schema option for databases in
       instances that use this instance configuration.
       
      repeated string leader_options = 4;
      Specified by:
      getLeaderOptionsCount in interface InstanceConfigOrBuilder
      Returns:
      The count of leaderOptions.
    • getLeaderOptions

      public String getLeaderOptions(int index)
       Allowed values of the "default_leader" schema option for databases in
       instances that use this instance configuration.
       
      repeated string leader_options = 4;
      Specified by:
      getLeaderOptions in interface InstanceConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The leaderOptions at the given index.
    • getLeaderOptionsBytes

      public com.google.protobuf.ByteString getLeaderOptionsBytes(int index)
       Allowed values of the "default_leader" schema option for databases in
       instances that use this instance configuration.
       
      repeated string leader_options = 4;
      Specified by:
      getLeaderOptionsBytes in interface InstanceConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the leaderOptions at the given index.
    • setLeaderOptions

      public InstanceConfig.Builder setLeaderOptions(int index, String value)
       Allowed values of the "default_leader" schema option for databases in
       instances that use this instance configuration.
       
      repeated string leader_options = 4;
      Parameters:
      index - The index to set the value at.
      value - The leaderOptions to set.
      Returns:
      This builder for chaining.
    • addLeaderOptions

      public InstanceConfig.Builder addLeaderOptions(String value)
       Allowed values of the "default_leader" schema option for databases in
       instances that use this instance configuration.
       
      repeated string leader_options = 4;
      Parameters:
      value - The leaderOptions to add.
      Returns:
      This builder for chaining.
    • addAllLeaderOptions

      public InstanceConfig.Builder addAllLeaderOptions(Iterable<String> values)
       Allowed values of the "default_leader" schema option for databases in
       instances that use this instance configuration.
       
      repeated string leader_options = 4;
      Parameters:
      values - The leaderOptions to add.
      Returns:
      This builder for chaining.
    • clearLeaderOptions

      public InstanceConfig.Builder clearLeaderOptions()
       Allowed values of the "default_leader" schema option for databases in
       instances that use this instance configuration.
       
      repeated string leader_options = 4;
      Returns:
      This builder for chaining.
    • addLeaderOptionsBytes

      public InstanceConfig.Builder addLeaderOptionsBytes(com.google.protobuf.ByteString value)
       Allowed values of the "default_leader" schema option for databases in
       instances that use this instance configuration.
       
      repeated string leader_options = 4;
      Parameters:
      value - The bytes of the leaderOptions to add.
      Returns:
      This builder for chaining.
    • getReconciling

      public boolean getReconciling()
       Output only. If true, the instance configuration is being created or
       updated. If false, there are no ongoing operations for the instance
       configuration.
       
      bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReconciling in interface InstanceConfigOrBuilder
      Returns:
      The reconciling.
    • setReconciling

      public InstanceConfig.Builder setReconciling(boolean value)
       Output only. If true, the instance configuration is being created or
       updated. If false, there are no ongoing operations for the instance
       configuration.
       
      bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The reconciling to set.
      Returns:
      This builder for chaining.
    • clearReconciling

      public InstanceConfig.Builder clearReconciling()
       Output only. If true, the instance configuration is being created or
       updated. If false, there are no ongoing operations for the instance
       configuration.
       
      bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. The current instance configuration state. Applicable only for
       `USER_MANAGED` configurations.
       
      .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface InstanceConfigOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public InstanceConfig.Builder setStateValue(int value)
       Output only. The current instance configuration state. Applicable only for
       `USER_MANAGED` configurations.
       
      .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.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 InstanceConfig.State getState()
       Output only. The current instance configuration state. Applicable only for
       `USER_MANAGED` configurations.
       
      .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface InstanceConfigOrBuilder
      Returns:
      The state.
    • setState

       Output only. The current instance configuration state. Applicable only for
       `USER_MANAGED` configurations.
       
      .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public InstanceConfig.Builder clearState()
       Output only. The current instance configuration state. Applicable only for
       `USER_MANAGED` configurations.
       
      .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getFreeInstanceAvailabilityValue

      public int getFreeInstanceAvailabilityValue()
       Output only. Describes whether free instances are available to be created
       in this instance configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFreeInstanceAvailabilityValue in interface InstanceConfigOrBuilder
      Returns:
      The enum numeric value on the wire for freeInstanceAvailability.
    • setFreeInstanceAvailabilityValue

      public InstanceConfig.Builder setFreeInstanceAvailabilityValue(int value)
       Output only. Describes whether free instances are available to be created
       in this instance configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for freeInstanceAvailability to set.
      Returns:
      This builder for chaining.
    • getFreeInstanceAvailability

      public InstanceConfig.FreeInstanceAvailability getFreeInstanceAvailability()
       Output only. Describes whether free instances are available to be created
       in this instance configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFreeInstanceAvailability in interface InstanceConfigOrBuilder
      Returns:
      The freeInstanceAvailability.
    • setFreeInstanceAvailability

      public InstanceConfig.Builder setFreeInstanceAvailability(InstanceConfig.FreeInstanceAvailability value)
       Output only. Describes whether free instances are available to be created
       in this instance configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The freeInstanceAvailability to set.
      Returns:
      This builder for chaining.
    • clearFreeInstanceAvailability

      public InstanceConfig.Builder clearFreeInstanceAvailability()
       Output only. Describes whether free instances are available to be created
       in this instance configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getQuorumTypeValue

      public int getQuorumTypeValue()
       Output only. The `QuorumType` of the instance configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getQuorumTypeValue in interface InstanceConfigOrBuilder
      Returns:
      The enum numeric value on the wire for quorumType.
    • setQuorumTypeValue

      public InstanceConfig.Builder setQuorumTypeValue(int value)
       Output only. The `QuorumType` of the instance configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for quorumType to set.
      Returns:
      This builder for chaining.
    • getQuorumType

      public InstanceConfig.QuorumType getQuorumType()
       Output only. The `QuorumType` of the instance configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getQuorumType in interface InstanceConfigOrBuilder
      Returns:
      The quorumType.
    • setQuorumType

      public InstanceConfig.Builder setQuorumType(InstanceConfig.QuorumType value)
       Output only. The `QuorumType` of the instance configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The quorumType to set.
      Returns:
      This builder for chaining.
    • clearQuorumType

      public InstanceConfig.Builder clearQuorumType()
       Output only. The `QuorumType` of the instance configuration.
       
      .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getStorageLimitPerProcessingUnit

      public long getStorageLimitPerProcessingUnit()
       Output only. The storage limit in bytes per processing unit.
       
      int64 storage_limit_per_processing_unit = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStorageLimitPerProcessingUnit in interface InstanceConfigOrBuilder
      Returns:
      The storageLimitPerProcessingUnit.
    • setStorageLimitPerProcessingUnit

      public InstanceConfig.Builder setStorageLimitPerProcessingUnit(long value)
       Output only. The storage limit in bytes per processing unit.
       
      int64 storage_limit_per_processing_unit = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The storageLimitPerProcessingUnit to set.
      Returns:
      This builder for chaining.
    • clearStorageLimitPerProcessingUnit

      public InstanceConfig.Builder clearStorageLimitPerProcessingUnit()
       Output only. The storage limit in bytes per processing unit.
       
      int64 storage_limit_per_processing_unit = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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