Class AutoscalingConfig.AutoscalingLimits

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AutoscalingConfig.AutoscalingLimitsOrBuilder, Serializable
Enclosing class:
AutoscalingConfig

public static final class AutoscalingConfig.AutoscalingLimits extends com.google.protobuf.GeneratedMessageV3 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
See Also:
  • Field Details

    • MIN_NODES_FIELD_NUMBER

      public static final int MIN_NODES_FIELD_NUMBER
      See Also:
    • MIN_PROCESSING_UNITS_FIELD_NUMBER

      public static final int MIN_PROCESSING_UNITS_FIELD_NUMBER
      See Also:
    • MAX_NODES_FIELD_NUMBER

      public static final int MAX_NODES_FIELD_NUMBER
      See Also:
    • MAX_PROCESSING_UNITS_FIELD_NUMBER

      public static final int MAX_PROCESSING_UNITS_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • getMinLimitCase

      Specified by:
      getMinLimitCase in interface AutoscalingConfig.AutoscalingLimitsOrBuilder
    • getMaxLimitCase

      Specified by:
      getMaxLimitCase in interface AutoscalingConfig.AutoscalingLimitsOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AutoscalingConfig.AutoscalingLimits parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AutoscalingConfig.AutoscalingLimits parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AutoscalingConfig.AutoscalingLimits parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AutoscalingConfig.AutoscalingLimits parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AutoscalingConfig.AutoscalingLimits parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AutoscalingConfig.AutoscalingLimits parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AutoscalingConfig.AutoscalingLimits parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AutoscalingConfig.AutoscalingLimits parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AutoscalingConfig.AutoscalingLimits parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AutoscalingConfig.AutoscalingLimits parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AutoscalingConfig.AutoscalingLimits parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AutoscalingConfig.AutoscalingLimits parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static AutoscalingConfig.AutoscalingLimits.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AutoscalingConfig.AutoscalingLimits.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static AutoscalingConfig.AutoscalingLimits getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AutoscalingConfig.AutoscalingLimits> parser()
    • getParserForType

      public com.google.protobuf.Parser<AutoscalingConfig.AutoscalingLimits> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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