Class Instance.Builder

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

public static final class Instance.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder> implements InstanceOrBuilder
 An isolated set of Cloud Spanner resources on which databases can be hosted.
 
Protobuf type google.spanner.admin.instance.v1.Instance
  • 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<Instance.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

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

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

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

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

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

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

      public Instance.Builder mergeFrom(Instance other)
    • isInitialized

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

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

      public String getName()
       Required. A unique identifier for the instance, which cannot be changed
       after the instance is created. Values are of the form
       `projects/<project>/instances/[a-z][-a-z0-9]*[a-z0-9]`. The final
       segment of the name must be between 2 and 64 characters in length.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface InstanceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. A unique identifier for the instance, which cannot be changed
       after the instance is created. Values are of the form
       `projects/<project>/instances/[a-z][-a-z0-9]*[a-z0-9]`. The final
       segment of the name must be between 2 and 64 characters in length.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface InstanceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Instance.Builder setName(String value)
       Required. A unique identifier for the instance, which cannot be changed
       after the instance is created. Values are of the form
       `projects/<project>/instances/[a-z][-a-z0-9]*[a-z0-9]`. The final
       segment of the name must be between 2 and 64 characters in length.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Instance.Builder clearName()
       Required. A unique identifier for the instance, which cannot be changed
       after the instance is created. Values are of the form
       `projects/<project>/instances/[a-z][-a-z0-9]*[a-z0-9]`. The final
       segment of the name must be between 2 and 64 characters in length.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Instance.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. A unique identifier for the instance, which cannot be changed
       after the instance is created. Values are of the form
       `projects/<project>/instances/[a-z][-a-z0-9]*[a-z0-9]`. The final
       segment of the name must be between 2 and 64 characters in length.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getConfig

      public String getConfig()
       Required. The name of the instance's configuration. Values are of the form
       `projects/<project>/instanceConfigs/<configuration>`. See
       also [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and
       [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
       
      string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getConfig in interface InstanceOrBuilder
      Returns:
      The config.
    • getConfigBytes

      public com.google.protobuf.ByteString getConfigBytes()
       Required. The name of the instance's configuration. Values are of the form
       `projects/<project>/instanceConfigs/<configuration>`. See
       also [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and
       [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
       
      string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getConfigBytes in interface InstanceOrBuilder
      Returns:
      The bytes for config.
    • setConfig

      public Instance.Builder setConfig(String value)
       Required. The name of the instance's configuration. Values are of the form
       `projects/<project>/instanceConfigs/<configuration>`. See
       also [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and
       [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
       
      string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The config to set.
      Returns:
      This builder for chaining.
    • clearConfig

      public Instance.Builder clearConfig()
       Required. The name of the instance's configuration. Values are of the form
       `projects/<project>/instanceConfigs/<configuration>`. See
       also [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and
       [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
       
      string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setConfigBytes

      public Instance.Builder setConfigBytes(com.google.protobuf.ByteString value)
       Required. The name of the instance's configuration. Values are of the form
       `projects/<project>/instanceConfigs/<configuration>`. See
       also [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and
       [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
       
      string config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for config to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Required. The descriptive name for this instance as it appears in UIs.
       Must be unique per project and between 4 and 30 characters in length.
       
      string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface InstanceOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. The descriptive name for this instance as it appears in UIs.
       Must be unique per project and between 4 and 30 characters in length.
       
      string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface InstanceOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Instance.Builder setDisplayName(String value)
       Required. The descriptive name for this instance as it appears in UIs.
       Must be unique per project and between 4 and 30 characters in length.
       
      string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Instance.Builder clearDisplayName()
       Required. The descriptive name for this instance as it appears in UIs.
       Must be unique per project and between 4 and 30 characters in length.
       
      string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Instance.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. The descriptive name for this instance as it appears in UIs.
       Must be unique per project and between 4 and 30 characters in length.
       
      string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getNodeCount

      public int getNodeCount()
       The number of nodes allocated to this instance. At most, one of either
       `node_count` or `processing_units` should be present in the message.
      
       Users can set the `node_count` field to specify the target number of nodes
       allocated to the instance.
      
       If autoscaling is enabled, `node_count` is treated as an `OUTPUT_ONLY`
       field and reflects the current number of nodes allocated to the instance.
      
       This might be zero in API responses for instances that are not yet in the
       `READY` state.
      
      
       For more information, see
       [Compute capacity, nodes, and processing
       units](https://cloud.google.com/spanner/docs/compute-capacity).
       
      int32 node_count = 5;
      Specified by:
      getNodeCount in interface InstanceOrBuilder
      Returns:
      The nodeCount.
    • setNodeCount

      public Instance.Builder setNodeCount(int value)
       The number of nodes allocated to this instance. At most, one of either
       `node_count` or `processing_units` should be present in the message.
      
       Users can set the `node_count` field to specify the target number of nodes
       allocated to the instance.
      
       If autoscaling is enabled, `node_count` is treated as an `OUTPUT_ONLY`
       field and reflects the current number of nodes allocated to the instance.
      
       This might be zero in API responses for instances that are not yet in the
       `READY` state.
      
      
       For more information, see
       [Compute capacity, nodes, and processing
       units](https://cloud.google.com/spanner/docs/compute-capacity).
       
      int32 node_count = 5;
      Parameters:
      value - The nodeCount to set.
      Returns:
      This builder for chaining.
    • clearNodeCount

      public Instance.Builder clearNodeCount()
       The number of nodes allocated to this instance. At most, one of either
       `node_count` or `processing_units` should be present in the message.
      
       Users can set the `node_count` field to specify the target number of nodes
       allocated to the instance.
      
       If autoscaling is enabled, `node_count` is treated as an `OUTPUT_ONLY`
       field and reflects the current number of nodes allocated to the instance.
      
       This might be zero in API responses for instances that are not yet in the
       `READY` state.
      
      
       For more information, see
       [Compute capacity, nodes, and processing
       units](https://cloud.google.com/spanner/docs/compute-capacity).
       
      int32 node_count = 5;
      Returns:
      This builder for chaining.
    • getProcessingUnits

      public int getProcessingUnits()
       The number of processing units allocated to this instance. At most, one of
       either `processing_units` or `node_count` should be present in the message.
      
       Users can set the `processing_units` field to specify the target number of
       processing units allocated to the instance.
      
       If autoscaling is enabled, `processing_units` is treated as an
       `OUTPUT_ONLY` field and reflects the current number of processing units
       allocated to the instance.
      
       This might be zero in API responses for instances that are not yet in the
       `READY` state.
      
      
       For more information, see
       [Compute capacity, nodes and processing
       units](https://cloud.google.com/spanner/docs/compute-capacity).
       
      int32 processing_units = 9;
      Specified by:
      getProcessingUnits in interface InstanceOrBuilder
      Returns:
      The processingUnits.
    • setProcessingUnits

      public Instance.Builder setProcessingUnits(int value)
       The number of processing units allocated to this instance. At most, one of
       either `processing_units` or `node_count` should be present in the message.
      
       Users can set the `processing_units` field to specify the target number of
       processing units allocated to the instance.
      
       If autoscaling is enabled, `processing_units` is treated as an
       `OUTPUT_ONLY` field and reflects the current number of processing units
       allocated to the instance.
      
       This might be zero in API responses for instances that are not yet in the
       `READY` state.
      
      
       For more information, see
       [Compute capacity, nodes and processing
       units](https://cloud.google.com/spanner/docs/compute-capacity).
       
      int32 processing_units = 9;
      Parameters:
      value - The processingUnits to set.
      Returns:
      This builder for chaining.
    • clearProcessingUnits

      public Instance.Builder clearProcessingUnits()
       The number of processing units allocated to this instance. At most, one of
       either `processing_units` or `node_count` should be present in the message.
      
       Users can set the `processing_units` field to specify the target number of
       processing units allocated to the instance.
      
       If autoscaling is enabled, `processing_units` is treated as an
       `OUTPUT_ONLY` field and reflects the current number of processing units
       allocated to the instance.
      
       This might be zero in API responses for instances that are not yet in the
       `READY` state.
      
      
       For more information, see
       [Compute capacity, nodes and processing
       units](https://cloud.google.com/spanner/docs/compute-capacity).
       
      int32 processing_units = 9;
      Returns:
      This builder for chaining.
    • getReplicaComputeCapacityList

      public List<ReplicaComputeCapacity> getReplicaComputeCapacityList()
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReplicaComputeCapacityList in interface InstanceOrBuilder
    • getReplicaComputeCapacityCount

      public int getReplicaComputeCapacityCount()
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReplicaComputeCapacityCount in interface InstanceOrBuilder
    • getReplicaComputeCapacity

      public ReplicaComputeCapacity getReplicaComputeCapacity(int index)
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReplicaComputeCapacity in interface InstanceOrBuilder
    • setReplicaComputeCapacity

      public Instance.Builder setReplicaComputeCapacity(int index, ReplicaComputeCapacity value)
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setReplicaComputeCapacity

      public Instance.Builder setReplicaComputeCapacity(int index, ReplicaComputeCapacity.Builder builderForValue)
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addReplicaComputeCapacity

      public Instance.Builder addReplicaComputeCapacity(ReplicaComputeCapacity value)
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addReplicaComputeCapacity

      public Instance.Builder addReplicaComputeCapacity(int index, ReplicaComputeCapacity value)
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addReplicaComputeCapacity

      public Instance.Builder addReplicaComputeCapacity(ReplicaComputeCapacity.Builder builderForValue)
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addReplicaComputeCapacity

      public Instance.Builder addReplicaComputeCapacity(int index, ReplicaComputeCapacity.Builder builderForValue)
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllReplicaComputeCapacity

      public Instance.Builder addAllReplicaComputeCapacity(Iterable<? extends ReplicaComputeCapacity> values)
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearReplicaComputeCapacity

      public Instance.Builder clearReplicaComputeCapacity()
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeReplicaComputeCapacity

      public Instance.Builder removeReplicaComputeCapacity(int index)
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getReplicaComputeCapacityBuilder

      public ReplicaComputeCapacity.Builder getReplicaComputeCapacityBuilder(int index)
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getReplicaComputeCapacityOrBuilder

      public ReplicaComputeCapacityOrBuilder getReplicaComputeCapacityOrBuilder(int index)
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReplicaComputeCapacityOrBuilder in interface InstanceOrBuilder
    • getReplicaComputeCapacityOrBuilderList

      public List<? extends ReplicaComputeCapacityOrBuilder> getReplicaComputeCapacityOrBuilderList()
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReplicaComputeCapacityOrBuilderList in interface InstanceOrBuilder
    • addReplicaComputeCapacityBuilder

      public ReplicaComputeCapacity.Builder addReplicaComputeCapacityBuilder()
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addReplicaComputeCapacityBuilder

      public ReplicaComputeCapacity.Builder addReplicaComputeCapacityBuilder(int index)
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getReplicaComputeCapacityBuilderList

      public List<ReplicaComputeCapacity.Builder> getReplicaComputeCapacityBuilderList()
       Output only. Lists the compute capacity per ReplicaSelection. A replica
       selection identifies a set of replicas with common properties. Replicas
       identified by a ReplicaSelection are scaled with the same compute capacity.
       
      repeated .google.spanner.admin.instance.v1.ReplicaComputeCapacity replica_compute_capacity = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • hasAutoscalingConfig

      public boolean hasAutoscalingConfig()
       Optional. The autoscaling configuration. Autoscaling is enabled if this
       field is set. When autoscaling is enabled, node_count and processing_units
       are treated as OUTPUT_ONLY fields and reflect the current compute capacity
       allocated to the instance.
       
      .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAutoscalingConfig in interface InstanceOrBuilder
      Returns:
      Whether the autoscalingConfig field is set.
    • getAutoscalingConfig

      public AutoscalingConfig getAutoscalingConfig()
       Optional. The autoscaling configuration. Autoscaling is enabled if this
       field is set. When autoscaling is enabled, node_count and processing_units
       are treated as OUTPUT_ONLY fields and reflect the current compute capacity
       allocated to the instance.
       
      .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAutoscalingConfig in interface InstanceOrBuilder
      Returns:
      The autoscalingConfig.
    • setAutoscalingConfig

      public Instance.Builder setAutoscalingConfig(AutoscalingConfig value)
       Optional. The autoscaling configuration. Autoscaling is enabled if this
       field is set. When autoscaling is enabled, node_count and processing_units
       are treated as OUTPUT_ONLY fields and reflect the current compute capacity
       allocated to the instance.
       
      .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];
    • setAutoscalingConfig

      public Instance.Builder setAutoscalingConfig(AutoscalingConfig.Builder builderForValue)
       Optional. The autoscaling configuration. Autoscaling is enabled if this
       field is set. When autoscaling is enabled, node_count and processing_units
       are treated as OUTPUT_ONLY fields and reflect the current compute capacity
       allocated to the instance.
       
      .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAutoscalingConfig

      public Instance.Builder mergeAutoscalingConfig(AutoscalingConfig value)
       Optional. The autoscaling configuration. Autoscaling is enabled if this
       field is set. When autoscaling is enabled, node_count and processing_units
       are treated as OUTPUT_ONLY fields and reflect the current compute capacity
       allocated to the instance.
       
      .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];
    • clearAutoscalingConfig

      public Instance.Builder clearAutoscalingConfig()
       Optional. The autoscaling configuration. Autoscaling is enabled if this
       field is set. When autoscaling is enabled, node_count and processing_units
       are treated as OUTPUT_ONLY fields and reflect the current compute capacity
       allocated to the instance.
       
      .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];
    • getAutoscalingConfigBuilder

      public AutoscalingConfig.Builder getAutoscalingConfigBuilder()
       Optional. The autoscaling configuration. Autoscaling is enabled if this
       field is set. When autoscaling is enabled, node_count and processing_units
       are treated as OUTPUT_ONLY fields and reflect the current compute capacity
       allocated to the instance.
       
      .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];
    • getAutoscalingConfigOrBuilder

      public AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder()
       Optional. The autoscaling configuration. Autoscaling is enabled if this
       field is set. When autoscaling is enabled, node_count and processing_units
       are treated as OUTPUT_ONLY fields and reflect the current compute capacity
       allocated to the instance.
       
      .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAutoscalingConfigOrBuilder in interface InstanceOrBuilder
    • getStateValue

      public int getStateValue()
       Output only. The current instance state. For
       [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance],
       the state must be either omitted or set to `CREATING`. For
       [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance],
       the state must be either omitted or set to `READY`.
       
      .google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface InstanceOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Instance.Builder setStateValue(int value)
       Output only. The current instance state. For
       [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance],
       the state must be either omitted or set to `CREATING`. For
       [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance],
       the state must be either omitted or set to `READY`.
       
      .google.spanner.admin.instance.v1.Instance.State state = 6 [(.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 Instance.State getState()
       Output only. The current instance state. For
       [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance],
       the state must be either omitted or set to `CREATING`. For
       [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance],
       the state must be either omitted or set to `READY`.
       
      .google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface InstanceOrBuilder
      Returns:
      The state.
    • setState

      public Instance.Builder setState(Instance.State value)
       Output only. The current instance state. For
       [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance],
       the state must be either omitted or set to `CREATING`. For
       [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance],
       the state must be either omitted or set to `READY`.
       
      .google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Instance.Builder clearState()
       Output only. The current instance state. For
       [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance],
       the state must be either omitted or set to `CREATING`. For
       [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance],
       the state must be either omitted or set to `READY`.
       
      .google.spanner.admin.instance.v1.Instance.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: InstanceOrBuilder
       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. And so 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 = 7;
      Specified by:
      getLabelsCount in interface InstanceOrBuilder
    • 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. And so 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 = 7;
      Specified by:
      containsLabels in interface InstanceOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface InstanceOrBuilder
    • 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. And so 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 = 7;
      Specified by:
      getLabelsMap in interface InstanceOrBuilder
    • 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. And so 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 = 7;
      Specified by:
      getLabelsOrDefault in interface InstanceOrBuilder
    • 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. And so 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 = 7;
      Specified by:
      getLabelsOrThrow in interface InstanceOrBuilder
    • clearLabels

      public Instance.Builder clearLabels()
    • removeLabels

      public Instance.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. And so 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 = 7;
    • getMutableLabels

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

      public Instance.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. And so 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 = 7;
    • putAllLabels

      public Instance.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. And so 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 = 7;
    • getInstanceTypeValue

      public int getInstanceTypeValue()
       The `InstanceType` of the current instance.
       
      .google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
      Specified by:
      getInstanceTypeValue in interface InstanceOrBuilder
      Returns:
      The enum numeric value on the wire for instanceType.
    • setInstanceTypeValue

      public Instance.Builder setInstanceTypeValue(int value)
       The `InstanceType` of the current instance.
       
      .google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
      Parameters:
      value - The enum numeric value on the wire for instanceType to set.
      Returns:
      This builder for chaining.
    • getInstanceType

      public Instance.InstanceType getInstanceType()
       The `InstanceType` of the current instance.
       
      .google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
      Specified by:
      getInstanceType in interface InstanceOrBuilder
      Returns:
      The instanceType.
    • setInstanceType

      public Instance.Builder setInstanceType(Instance.InstanceType value)
       The `InstanceType` of the current instance.
       
      .google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
      Parameters:
      value - The instanceType to set.
      Returns:
      This builder for chaining.
    • clearInstanceType

      public Instance.Builder clearInstanceType()
       The `InstanceType` of the current instance.
       
      .google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
      Returns:
      This builder for chaining.
    • getEndpointUrisList

      public com.google.protobuf.ProtocolStringList getEndpointUrisList()
       Deprecated. This field is not populated.
       
      repeated string endpoint_uris = 8;
      Specified by:
      getEndpointUrisList in interface InstanceOrBuilder
      Returns:
      A list containing the endpointUris.
    • getEndpointUrisCount

      public int getEndpointUrisCount()
       Deprecated. This field is not populated.
       
      repeated string endpoint_uris = 8;
      Specified by:
      getEndpointUrisCount in interface InstanceOrBuilder
      Returns:
      The count of endpointUris.
    • getEndpointUris

      public String getEndpointUris(int index)
       Deprecated. This field is not populated.
       
      repeated string endpoint_uris = 8;
      Specified by:
      getEndpointUris in interface InstanceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The endpointUris at the given index.
    • getEndpointUrisBytes

      public com.google.protobuf.ByteString getEndpointUrisBytes(int index)
       Deprecated. This field is not populated.
       
      repeated string endpoint_uris = 8;
      Specified by:
      getEndpointUrisBytes in interface InstanceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the endpointUris at the given index.
    • setEndpointUris

      public Instance.Builder setEndpointUris(int index, String value)
       Deprecated. This field is not populated.
       
      repeated string endpoint_uris = 8;
      Parameters:
      index - The index to set the value at.
      value - The endpointUris to set.
      Returns:
      This builder for chaining.
    • addEndpointUris

      public Instance.Builder addEndpointUris(String value)
       Deprecated. This field is not populated.
       
      repeated string endpoint_uris = 8;
      Parameters:
      value - The endpointUris to add.
      Returns:
      This builder for chaining.
    • addAllEndpointUris

      public Instance.Builder addAllEndpointUris(Iterable<String> values)
       Deprecated. This field is not populated.
       
      repeated string endpoint_uris = 8;
      Parameters:
      values - The endpointUris to add.
      Returns:
      This builder for chaining.
    • clearEndpointUris

      public Instance.Builder clearEndpointUris()
       Deprecated. This field is not populated.
       
      repeated string endpoint_uris = 8;
      Returns:
      This builder for chaining.
    • addEndpointUrisBytes

      public Instance.Builder addEndpointUrisBytes(com.google.protobuf.ByteString value)
       Deprecated. This field is not populated.
       
      repeated string endpoint_uris = 8;
      Parameters:
      value - The bytes of the endpointUris to add.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time at which the instance was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface InstanceOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time at which the instance was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface InstanceOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Instance.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the instance was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Instance.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time at which the instance was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Instance.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the instance was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Instance.Builder clearCreateTime()
       Output only. The time at which the instance was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time at which the instance was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time at which the instance was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface InstanceOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time at which the instance was most recently updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface InstanceOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time at which the instance was most recently updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface InstanceOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Instance.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the instance was most recently updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Instance.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time at which the instance was most recently updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Instance.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the instance was most recently updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Instance.Builder clearUpdateTime()
       Output only. The time at which the instance was most recently updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The time at which the instance was most recently updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time at which the instance was most recently updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface InstanceOrBuilder
    • hasFreeInstanceMetadata

      public boolean hasFreeInstanceMetadata()
       Free instance metadata. Only populated for free instances.
       
      .google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13;
      Specified by:
      hasFreeInstanceMetadata in interface InstanceOrBuilder
      Returns:
      Whether the freeInstanceMetadata field is set.
    • getFreeInstanceMetadata

      public FreeInstanceMetadata getFreeInstanceMetadata()
       Free instance metadata. Only populated for free instances.
       
      .google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13;
      Specified by:
      getFreeInstanceMetadata in interface InstanceOrBuilder
      Returns:
      The freeInstanceMetadata.
    • setFreeInstanceMetadata

      public Instance.Builder setFreeInstanceMetadata(FreeInstanceMetadata value)
       Free instance metadata. Only populated for free instances.
       
      .google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13;
    • setFreeInstanceMetadata

      public Instance.Builder setFreeInstanceMetadata(FreeInstanceMetadata.Builder builderForValue)
       Free instance metadata. Only populated for free instances.
       
      .google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13;
    • mergeFreeInstanceMetadata

      public Instance.Builder mergeFreeInstanceMetadata(FreeInstanceMetadata value)
       Free instance metadata. Only populated for free instances.
       
      .google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13;
    • clearFreeInstanceMetadata

      public Instance.Builder clearFreeInstanceMetadata()
       Free instance metadata. Only populated for free instances.
       
      .google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13;
    • getFreeInstanceMetadataBuilder

      public FreeInstanceMetadata.Builder getFreeInstanceMetadataBuilder()
       Free instance metadata. Only populated for free instances.
       
      .google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13;
    • getFreeInstanceMetadataOrBuilder

      public FreeInstanceMetadataOrBuilder getFreeInstanceMetadataOrBuilder()
       Free instance metadata. Only populated for free instances.
       
      .google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13;
      Specified by:
      getFreeInstanceMetadataOrBuilder in interface InstanceOrBuilder
    • getEditionValue

      public int getEditionValue()
       Optional. The `Edition` of the current instance.
       
      .google.spanner.admin.instance.v1.Instance.Edition edition = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEditionValue in interface InstanceOrBuilder
      Returns:
      The enum numeric value on the wire for edition.
    • setEditionValue

      public Instance.Builder setEditionValue(int value)
       Optional. The `Edition` of the current instance.
       
      .google.spanner.admin.instance.v1.Instance.Edition edition = 20 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for edition to set.
      Returns:
      This builder for chaining.
    • getEdition

      public Instance.Edition getEdition()
       Optional. The `Edition` of the current instance.
       
      .google.spanner.admin.instance.v1.Instance.Edition edition = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEdition in interface InstanceOrBuilder
      Returns:
      The edition.
    • setEdition

      public Instance.Builder setEdition(Instance.Edition value)
       Optional. The `Edition` of the current instance.
       
      .google.spanner.admin.instance.v1.Instance.Edition edition = 20 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The edition to set.
      Returns:
      This builder for chaining.
    • clearEdition

      public Instance.Builder clearEdition()
       Optional. The `Edition` of the current instance.
       
      .google.spanner.admin.instance.v1.Instance.Edition edition = 20 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getDefaultBackupScheduleTypeValue

      public int getDefaultBackupScheduleTypeValue()
       Optional. Controls the default backup schedule behavior for new databases
       within the instance. By default, a backup schedule is created automatically
       when a new database is created in a new instance.
      
       Note that the `AUTOMATIC` value isn't permitted for free instances,
       as backups and backup schedules aren't supported for free instances.
      
       In the `GetInstance` or `ListInstances` response, if the value of
       `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner doesn't
       create a default backup schedule for new databases in the instance.
       
      .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefaultBackupScheduleTypeValue in interface InstanceOrBuilder
      Returns:
      The enum numeric value on the wire for defaultBackupScheduleType.
    • setDefaultBackupScheduleTypeValue

      public Instance.Builder setDefaultBackupScheduleTypeValue(int value)
       Optional. Controls the default backup schedule behavior for new databases
       within the instance. By default, a backup schedule is created automatically
       when a new database is created in a new instance.
      
       Note that the `AUTOMATIC` value isn't permitted for free instances,
       as backups and backup schedules aren't supported for free instances.
      
       In the `GetInstance` or `ListInstances` response, if the value of
       `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner doesn't
       create a default backup schedule for new databases in the instance.
       
      .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for defaultBackupScheduleType to set.
      Returns:
      This builder for chaining.
    • getDefaultBackupScheduleType

      public Instance.DefaultBackupScheduleType getDefaultBackupScheduleType()
       Optional. Controls the default backup schedule behavior for new databases
       within the instance. By default, a backup schedule is created automatically
       when a new database is created in a new instance.
      
       Note that the `AUTOMATIC` value isn't permitted for free instances,
       as backups and backup schedules aren't supported for free instances.
      
       In the `GetInstance` or `ListInstances` response, if the value of
       `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner doesn't
       create a default backup schedule for new databases in the instance.
       
      .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefaultBackupScheduleType in interface InstanceOrBuilder
      Returns:
      The defaultBackupScheduleType.
    • setDefaultBackupScheduleType

      public Instance.Builder setDefaultBackupScheduleType(Instance.DefaultBackupScheduleType value)
       Optional. Controls the default backup schedule behavior for new databases
       within the instance. By default, a backup schedule is created automatically
       when a new database is created in a new instance.
      
       Note that the `AUTOMATIC` value isn't permitted for free instances,
       as backups and backup schedules aren't supported for free instances.
      
       In the `GetInstance` or `ListInstances` response, if the value of
       `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner doesn't
       create a default backup schedule for new databases in the instance.
       
      .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The defaultBackupScheduleType to set.
      Returns:
      This builder for chaining.
    • clearDefaultBackupScheduleType

      public Instance.Builder clearDefaultBackupScheduleType()
       Optional. Controls the default backup schedule behavior for new databases
       within the instance. By default, a backup schedule is created automatically
       when a new database is created in a new instance.
      
       Note that the `AUTOMATIC` value isn't permitted for free instances,
       as backups and backup schedules aren't supported for free instances.
      
       In the `GetInstance` or `ListInstances` response, if the value of
       `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner doesn't
       create a default backup schedule for new databases in the instance.
       
      .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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