Class AutoscalingConfig.AutoscalingLimits.Builder

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

public static final class AutoscalingConfig.AutoscalingLimits.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutoscalingConfig.AutoscalingLimits.Builder> implements AutoscalingConfig.AutoscalingLimitsOrBuilder
 The autoscaling limits for the instance. Users can define the minimum and
 maximum compute capacity allocated to the instance, and the autoscaler will
 only scale within that range. Users can either use nodes or processing
 units to specify the limits, but should use the same unit to set both the
 min_limit and max_limit.
 
Protobuf type google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AutoscalingConfig.AutoscalingLimits.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.GeneratedMessage.Builder<AutoscalingConfig.AutoscalingLimits.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.GeneratedMessage.Builder<AutoscalingConfig.AutoscalingLimits.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AutoscalingConfig.AutoscalingLimits buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

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

      public AutoscalingConfig.AutoscalingLimits.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<AutoscalingConfig.AutoscalingLimits.Builder>
      Throws:
      IOException
    • getMinLimitCase

      Specified by:
      getMinLimitCase in interface AutoscalingConfig.AutoscalingLimitsOrBuilder
    • clearMinLimit

    • getMaxLimitCase

      Specified by:
      getMaxLimitCase in interface AutoscalingConfig.AutoscalingLimitsOrBuilder
    • clearMaxLimit

    • hasMinNodes

      public boolean hasMinNodes()
       Minimum number of nodes allocated to the instance. If set, this number
       should be greater than or equal to 1.
       
      int32 min_nodes = 1;
      Specified by:
      hasMinNodes in interface AutoscalingConfig.AutoscalingLimitsOrBuilder
      Returns:
      Whether the minNodes field is set.
    • getMinNodes

      public int getMinNodes()
       Minimum number of nodes allocated to the instance. If set, this number
       should be greater than or equal to 1.
       
      int32 min_nodes = 1;
      Specified by:
      getMinNodes in interface AutoscalingConfig.AutoscalingLimitsOrBuilder
      Returns:
      The minNodes.
    • setMinNodes

      public AutoscalingConfig.AutoscalingLimits.Builder setMinNodes(int value)
       Minimum number of nodes allocated to the instance. If set, this number
       should be greater than or equal to 1.
       
      int32 min_nodes = 1;
      Parameters:
      value - The minNodes to set.
      Returns:
      This builder for chaining.
    • clearMinNodes

       Minimum number of nodes allocated to the instance. If set, this number
       should be greater than or equal to 1.
       
      int32 min_nodes = 1;
      Returns:
      This builder for chaining.
    • hasMinProcessingUnits

      public boolean hasMinProcessingUnits()
       Minimum number of processing units allocated to the instance. If set,
       this number should be multiples of 1000.
       
      int32 min_processing_units = 2;
      Specified by:
      hasMinProcessingUnits in interface AutoscalingConfig.AutoscalingLimitsOrBuilder
      Returns:
      Whether the minProcessingUnits field is set.
    • getMinProcessingUnits

      public int getMinProcessingUnits()
       Minimum number of processing units allocated to the instance. If set,
       this number should be multiples of 1000.
       
      int32 min_processing_units = 2;
      Specified by:
      getMinProcessingUnits in interface AutoscalingConfig.AutoscalingLimitsOrBuilder
      Returns:
      The minProcessingUnits.
    • setMinProcessingUnits

      public AutoscalingConfig.AutoscalingLimits.Builder setMinProcessingUnits(int value)
       Minimum number of processing units allocated to the instance. If set,
       this number should be multiples of 1000.
       
      int32 min_processing_units = 2;
      Parameters:
      value - The minProcessingUnits to set.
      Returns:
      This builder for chaining.
    • clearMinProcessingUnits

      public AutoscalingConfig.AutoscalingLimits.Builder clearMinProcessingUnits()
       Minimum number of processing units allocated to the instance. If set,
       this number should be multiples of 1000.
       
      int32 min_processing_units = 2;
      Returns:
      This builder for chaining.
    • hasMaxNodes

      public boolean hasMaxNodes()
       Maximum number of nodes allocated to the instance. If set, this number
       should be greater than or equal to min_nodes.
       
      int32 max_nodes = 3;
      Specified by:
      hasMaxNodes in interface AutoscalingConfig.AutoscalingLimitsOrBuilder
      Returns:
      Whether the maxNodes field is set.
    • getMaxNodes

      public int getMaxNodes()
       Maximum number of nodes allocated to the instance. If set, this number
       should be greater than or equal to min_nodes.
       
      int32 max_nodes = 3;
      Specified by:
      getMaxNodes in interface AutoscalingConfig.AutoscalingLimitsOrBuilder
      Returns:
      The maxNodes.
    • setMaxNodes

      public AutoscalingConfig.AutoscalingLimits.Builder setMaxNodes(int value)
       Maximum number of nodes allocated to the instance. If set, this number
       should be greater than or equal to min_nodes.
       
      int32 max_nodes = 3;
      Parameters:
      value - The maxNodes to set.
      Returns:
      This builder for chaining.
    • clearMaxNodes

       Maximum number of nodes allocated to the instance. If set, this number
       should be greater than or equal to min_nodes.
       
      int32 max_nodes = 3;
      Returns:
      This builder for chaining.
    • hasMaxProcessingUnits

      public boolean hasMaxProcessingUnits()
       Maximum number of processing units allocated to the instance. If set,
       this number should be multiples of 1000 and be greater than or equal to
       min_processing_units.
       
      int32 max_processing_units = 4;
      Specified by:
      hasMaxProcessingUnits in interface AutoscalingConfig.AutoscalingLimitsOrBuilder
      Returns:
      Whether the maxProcessingUnits field is set.
    • getMaxProcessingUnits

      public int getMaxProcessingUnits()
       Maximum number of processing units allocated to the instance. If set,
       this number should be multiples of 1000 and be greater than or equal to
       min_processing_units.
       
      int32 max_processing_units = 4;
      Specified by:
      getMaxProcessingUnits in interface AutoscalingConfig.AutoscalingLimitsOrBuilder
      Returns:
      The maxProcessingUnits.
    • setMaxProcessingUnits

      public AutoscalingConfig.AutoscalingLimits.Builder setMaxProcessingUnits(int value)
       Maximum number of processing units allocated to the instance. If set,
       this number should be multiples of 1000 and be greater than or equal to
       min_processing_units.
       
      int32 max_processing_units = 4;
      Parameters:
      value - The maxProcessingUnits to set.
      Returns:
      This builder for chaining.
    • clearMaxProcessingUnits

      public AutoscalingConfig.AutoscalingLimits.Builder clearMaxProcessingUnits()
       Maximum number of processing units allocated to the instance. If set,
       this number should be multiples of 1000 and be greater than or equal to
       min_processing_units.
       
      int32 max_processing_units = 4;
      Returns:
      This builder for chaining.