Class InstancePartition.Builder

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

public static final class InstancePartition.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstancePartition.Builder> implements InstancePartitionOrBuilder
 An isolated set of Cloud Spanner resources that databases can define
 placements on.
 
Protobuf type google.spanner.admin.instance.v1.InstancePartition
  • Method Details

    • getDescriptor

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

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

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

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

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

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

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

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

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

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

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

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

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

      public InstancePartition.Builder mergeFrom(InstancePartition other)
    • isInitialized

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

      public InstancePartition.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<InstancePartition.Builder>
      Throws:
      IOException
    • getComputeCapacityCase

      public InstancePartition.ComputeCapacityCase getComputeCapacityCase()
      Specified by:
      getComputeCapacityCase in interface InstancePartitionOrBuilder
    • clearComputeCapacity

      public InstancePartition.Builder clearComputeCapacity()
    • getName

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

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

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

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

      public InstancePartition.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. A unique identifier for the instance partition. Values are of the
       form
       `projects/<project>/instances/<instance>/instancePartitions/[a-z][-a-z0-9]*[a-z0-9]`.
       The final segment of the name must be between 2 and 64 characters in
       length. An instance partition's name cannot be changed after the instance
       partition is created.
       
      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 partition'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 InstancePartitionOrBuilder
      Returns:
      The config.
    • getConfigBytes

      public com.google.protobuf.ByteString getConfigBytes()
       Required. The name of the instance partition'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 InstancePartitionOrBuilder
      Returns:
      The bytes for config.
    • setConfig

      public InstancePartition.Builder setConfig(String value)
       Required. The name of the instance partition'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 InstancePartition.Builder clearConfig()
       Required. The name of the instance partition'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 InstancePartition.Builder setConfigBytes(com.google.protobuf.ByteString value)
       Required. The name of the instance partition'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 partition 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 InstancePartitionOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. The descriptive name for this instance partition 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 InstancePartitionOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public InstancePartition.Builder setDisplayName(String value)
       Required. The descriptive name for this instance partition 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 InstancePartition.Builder clearDisplayName()
       Required. The descriptive name for this instance partition 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 InstancePartition.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. The descriptive name for this instance partition 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.
    • hasNodeCount

      public boolean hasNodeCount()
       The number of nodes allocated to this instance partition.
      
       Users can set the `node_count` field to specify the target number of
       nodes allocated to the instance partition.
      
       This may be zero in API responses for instance partitions that are not
       yet in state `READY`.
       
      int32 node_count = 5;
      Specified by:
      hasNodeCount in interface InstancePartitionOrBuilder
      Returns:
      Whether the nodeCount field is set.
    • getNodeCount

      public int getNodeCount()
       The number of nodes allocated to this instance partition.
      
       Users can set the `node_count` field to specify the target number of
       nodes allocated to the instance partition.
      
       This may be zero in API responses for instance partitions that are not
       yet in state `READY`.
       
      int32 node_count = 5;
      Specified by:
      getNodeCount in interface InstancePartitionOrBuilder
      Returns:
      The nodeCount.
    • setNodeCount

      public InstancePartition.Builder setNodeCount(int value)
       The number of nodes allocated to this instance partition.
      
       Users can set the `node_count` field to specify the target number of
       nodes allocated to the instance partition.
      
       This may be zero in API responses for instance partitions that are not
       yet in state `READY`.
       
      int32 node_count = 5;
      Parameters:
      value - The nodeCount to set.
      Returns:
      This builder for chaining.
    • clearNodeCount

      public InstancePartition.Builder clearNodeCount()
       The number of nodes allocated to this instance partition.
      
       Users can set the `node_count` field to specify the target number of
       nodes allocated to the instance partition.
      
       This may be zero in API responses for instance partitions that are not
       yet in state `READY`.
       
      int32 node_count = 5;
      Returns:
      This builder for chaining.
    • hasProcessingUnits

      public boolean hasProcessingUnits()
       The number of processing units allocated to this instance partition.
      
       Users can set the `processing_units` field to specify the target number
       of processing units allocated to the instance partition.
      
       This might be zero in API responses for instance partitions that are not
       yet in the `READY` state.
       
      int32 processing_units = 6;
      Specified by:
      hasProcessingUnits in interface InstancePartitionOrBuilder
      Returns:
      Whether the processingUnits field is set.
    • getProcessingUnits

      public int getProcessingUnits()
       The number of processing units allocated to this instance partition.
      
       Users can set the `processing_units` field to specify the target number
       of processing units allocated to the instance partition.
      
       This might be zero in API responses for instance partitions that are not
       yet in the `READY` state.
       
      int32 processing_units = 6;
      Specified by:
      getProcessingUnits in interface InstancePartitionOrBuilder
      Returns:
      The processingUnits.
    • setProcessingUnits

      public InstancePartition.Builder setProcessingUnits(int value)
       The number of processing units allocated to this instance partition.
      
       Users can set the `processing_units` field to specify the target number
       of processing units allocated to the instance partition.
      
       This might be zero in API responses for instance partitions that are not
       yet in the `READY` state.
       
      int32 processing_units = 6;
      Parameters:
      value - The processingUnits to set.
      Returns:
      This builder for chaining.
    • clearProcessingUnits

      public InstancePartition.Builder clearProcessingUnits()
       The number of processing units allocated to this instance partition.
      
       Users can set the `processing_units` field to specify the target number
       of processing units allocated to the instance partition.
      
       This might be zero in API responses for instance partitions that are not
       yet in the `READY` state.
       
      int32 processing_units = 6;
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. The current instance partition state.
       
      .google.spanner.admin.instance.v1.InstancePartition.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface InstancePartitionOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public InstancePartition.Builder setStateValue(int value)
       Output only. The current instance partition state.
       
      .google.spanner.admin.instance.v1.InstancePartition.State state = 7 [(.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 InstancePartition.State getState()
       Output only. The current instance partition state.
       
      .google.spanner.admin.instance.v1.InstancePartition.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface InstancePartitionOrBuilder
      Returns:
      The state.
    • setState

       Output only. The current instance partition state.
       
      .google.spanner.admin.instance.v1.InstancePartition.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public InstancePartition.Builder clearState()
       Output only. The current instance partition state.
       
      .google.spanner.admin.instance.v1.InstancePartition.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasCreateTime

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public com.google.protobuf.ProtocolStringList getReferencingDatabasesList()
       Output only. The names of the databases that reference this
       instance partition. Referencing databases should share the parent instance.
       The existence of any referencing database prevents the instance partition
       from being deleted.
       
      repeated string referencing_databases = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReferencingDatabasesList in interface InstancePartitionOrBuilder
      Returns:
      A list containing the referencingDatabases.
    • getReferencingDatabasesCount

      public int getReferencingDatabasesCount()
       Output only. The names of the databases that reference this
       instance partition. Referencing databases should share the parent instance.
       The existence of any referencing database prevents the instance partition
       from being deleted.
       
      repeated string referencing_databases = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReferencingDatabasesCount in interface InstancePartitionOrBuilder
      Returns:
      The count of referencingDatabases.
    • getReferencingDatabases

      public String getReferencingDatabases(int index)
       Output only. The names of the databases that reference this
       instance partition. Referencing databases should share the parent instance.
       The existence of any referencing database prevents the instance partition
       from being deleted.
       
      repeated string referencing_databases = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReferencingDatabases in interface InstancePartitionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The referencingDatabases at the given index.
    • getReferencingDatabasesBytes

      public com.google.protobuf.ByteString getReferencingDatabasesBytes(int index)
       Output only. The names of the databases that reference this
       instance partition. Referencing databases should share the parent instance.
       The existence of any referencing database prevents the instance partition
       from being deleted.
       
      repeated string referencing_databases = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReferencingDatabasesBytes in interface InstancePartitionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the referencingDatabases at the given index.
    • setReferencingDatabases

      public InstancePartition.Builder setReferencingDatabases(int index, String value)
       Output only. The names of the databases that reference this
       instance partition. Referencing databases should share the parent instance.
       The existence of any referencing database prevents the instance partition
       from being deleted.
       
      repeated string referencing_databases = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The referencingDatabases to set.
      Returns:
      This builder for chaining.
    • addReferencingDatabases

      public InstancePartition.Builder addReferencingDatabases(String value)
       Output only. The names of the databases that reference this
       instance partition. Referencing databases should share the parent instance.
       The existence of any referencing database prevents the instance partition
       from being deleted.
       
      repeated string referencing_databases = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The referencingDatabases to add.
      Returns:
      This builder for chaining.
    • addAllReferencingDatabases

      public InstancePartition.Builder addAllReferencingDatabases(Iterable<String> values)
       Output only. The names of the databases that reference this
       instance partition. Referencing databases should share the parent instance.
       The existence of any referencing database prevents the instance partition
       from being deleted.
       
      repeated string referencing_databases = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The referencingDatabases to add.
      Returns:
      This builder for chaining.
    • clearReferencingDatabases

      public InstancePartition.Builder clearReferencingDatabases()
       Output only. The names of the databases that reference this
       instance partition. Referencing databases should share the parent instance.
       The existence of any referencing database prevents the instance partition
       from being deleted.
       
      repeated string referencing_databases = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addReferencingDatabasesBytes

      public InstancePartition.Builder addReferencingDatabasesBytes(com.google.protobuf.ByteString value)
       Output only. The names of the databases that reference this
       instance partition. Referencing databases should share the parent instance.
       The existence of any referencing database prevents the instance partition
       from being deleted.
       
      repeated string referencing_databases = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the referencingDatabases to add.
      Returns:
      This builder for chaining.
    • getReferencingBackupsList

      @Deprecated public com.google.protobuf.ProtocolStringList getReferencingBackupsList()
      Deprecated.
      google.spanner.admin.instance.v1.InstancePartition.referencing_backups is deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781
       Output only. Deprecated: This field is not populated.
       Output only. The names of the backups that reference this instance
       partition. Referencing backups should share the parent instance. The
       existence of any referencing backup prevents the instance partition from
       being deleted.
       
      repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReferencingBackupsList in interface InstancePartitionOrBuilder
      Returns:
      A list containing the referencingBackups.
    • getReferencingBackupsCount

      @Deprecated public int getReferencingBackupsCount()
      Deprecated.
      google.spanner.admin.instance.v1.InstancePartition.referencing_backups is deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781
       Output only. Deprecated: This field is not populated.
       Output only. The names of the backups that reference this instance
       partition. Referencing backups should share the parent instance. The
       existence of any referencing backup prevents the instance partition from
       being deleted.
       
      repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReferencingBackupsCount in interface InstancePartitionOrBuilder
      Returns:
      The count of referencingBackups.
    • getReferencingBackups

      @Deprecated public String getReferencingBackups(int index)
      Deprecated.
      google.spanner.admin.instance.v1.InstancePartition.referencing_backups is deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781
       Output only. Deprecated: This field is not populated.
       Output only. The names of the backups that reference this instance
       partition. Referencing backups should share the parent instance. The
       existence of any referencing backup prevents the instance partition from
       being deleted.
       
      repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReferencingBackups in interface InstancePartitionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The referencingBackups at the given index.
    • getReferencingBackupsBytes

      @Deprecated public com.google.protobuf.ByteString getReferencingBackupsBytes(int index)
      Deprecated.
      google.spanner.admin.instance.v1.InstancePartition.referencing_backups is deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781
       Output only. Deprecated: This field is not populated.
       Output only. The names of the backups that reference this instance
       partition. Referencing backups should share the parent instance. The
       existence of any referencing backup prevents the instance partition from
       being deleted.
       
      repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReferencingBackupsBytes in interface InstancePartitionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the referencingBackups at the given index.
    • setReferencingBackups

      @Deprecated public InstancePartition.Builder setReferencingBackups(int index, String value)
      Deprecated.
      google.spanner.admin.instance.v1.InstancePartition.referencing_backups is deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781
       Output only. Deprecated: This field is not populated.
       Output only. The names of the backups that reference this instance
       partition. Referencing backups should share the parent instance. The
       existence of any referencing backup prevents the instance partition from
       being deleted.
       
      repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The referencingBackups to set.
      Returns:
      This builder for chaining.
    • addReferencingBackups

      @Deprecated public InstancePartition.Builder addReferencingBackups(String value)
      Deprecated.
      google.spanner.admin.instance.v1.InstancePartition.referencing_backups is deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781
       Output only. Deprecated: This field is not populated.
       Output only. The names of the backups that reference this instance
       partition. Referencing backups should share the parent instance. The
       existence of any referencing backup prevents the instance partition from
       being deleted.
       
      repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The referencingBackups to add.
      Returns:
      This builder for chaining.
    • addAllReferencingBackups

      @Deprecated public InstancePartition.Builder addAllReferencingBackups(Iterable<String> values)
      Deprecated.
      google.spanner.admin.instance.v1.InstancePartition.referencing_backups is deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781
       Output only. Deprecated: This field is not populated.
       Output only. The names of the backups that reference this instance
       partition. Referencing backups should share the parent instance. The
       existence of any referencing backup prevents the instance partition from
       being deleted.
       
      repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The referencingBackups to add.
      Returns:
      This builder for chaining.
    • clearReferencingBackups

      @Deprecated public InstancePartition.Builder clearReferencingBackups()
      Deprecated.
      google.spanner.admin.instance.v1.InstancePartition.referencing_backups is deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781
       Output only. Deprecated: This field is not populated.
       Output only. The names of the backups that reference this instance
       partition. Referencing backups should share the parent instance. The
       existence of any referencing backup prevents the instance partition from
       being deleted.
       
      repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addReferencingBackupsBytes

      @Deprecated public InstancePartition.Builder addReferencingBackupsBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.spanner.admin.instance.v1.InstancePartition.referencing_backups is deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781
       Output only. Deprecated: This field is not populated.
       Output only. The names of the backups that reference this instance
       partition. Referencing backups should share the parent instance. The
       existence of any referencing backup prevents the instance partition from
       being deleted.
       
      repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the referencingBackups to add.
      Returns:
      This builder for chaining.
    • getEtag

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

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

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

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

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

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

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