Class AutoscalingConfig

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

public final class AutoscalingConfig extends com.google.protobuf.GeneratedMessageV3 implements AutoscalingConfigOrBuilder
 Autoscaling configuration for an instance.
 
Protobuf type google.spanner.admin.instance.v1.AutoscalingConfig
See Also:
  • Field Details

    • AUTOSCALING_LIMITS_FIELD_NUMBER

      public static final int AUTOSCALING_LIMITS_FIELD_NUMBER
      See Also:
    • AUTOSCALING_TARGETS_FIELD_NUMBER

      public static final int AUTOSCALING_TARGETS_FIELD_NUMBER
      See Also:
    • ASYMMETRIC_AUTOSCALING_OPTIONS_FIELD_NUMBER

      public static final int ASYMMETRIC_AUTOSCALING_OPTIONS_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
    • hasAutoscalingLimits

      public boolean hasAutoscalingLimits()
       Required. Autoscaling limits for an instance.
       
      .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAutoscalingLimits in interface AutoscalingConfigOrBuilder
      Returns:
      Whether the autoscalingLimits field is set.
    • getAutoscalingLimits

      public AutoscalingConfig.AutoscalingLimits getAutoscalingLimits()
       Required. Autoscaling limits for an instance.
       
      .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAutoscalingLimits in interface AutoscalingConfigOrBuilder
      Returns:
      The autoscalingLimits.
    • getAutoscalingLimitsOrBuilder

      public AutoscalingConfig.AutoscalingLimitsOrBuilder getAutoscalingLimitsOrBuilder()
       Required. Autoscaling limits for an instance.
       
      .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAutoscalingLimitsOrBuilder in interface AutoscalingConfigOrBuilder
    • hasAutoscalingTargets

      public boolean hasAutoscalingTargets()
       Required. The autoscaling targets for an instance.
       
      .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAutoscalingTargets in interface AutoscalingConfigOrBuilder
      Returns:
      Whether the autoscalingTargets field is set.
    • getAutoscalingTargets

      public AutoscalingConfig.AutoscalingTargets getAutoscalingTargets()
       Required. The autoscaling targets for an instance.
       
      .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAutoscalingTargets in interface AutoscalingConfigOrBuilder
      Returns:
      The autoscalingTargets.
    • getAutoscalingTargetsOrBuilder

      public AutoscalingConfig.AutoscalingTargetsOrBuilder getAutoscalingTargetsOrBuilder()
       Required. The autoscaling targets for an instance.
       
      .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAutoscalingTargetsOrBuilder in interface AutoscalingConfigOrBuilder
    • getAsymmetricAutoscalingOptionsList

      public List<AutoscalingConfig.AsymmetricAutoscalingOption> getAsymmetricAutoscalingOptionsList()
       Optional. Optional asymmetric autoscaling options.
       Replicas matching the replica selection criteria will be autoscaled
       independently from other replicas. The autoscaler will scale the replicas
       based on the utilization of replicas identified by the replica selection.
       Replica selections should not overlap with each other.
      
       Other replicas (those do not match any replica selection) will be
       autoscaled together and will have the same compute capacity allocated to
       them.
       
      repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAsymmetricAutoscalingOptionsList in interface AutoscalingConfigOrBuilder
    • getAsymmetricAutoscalingOptionsOrBuilderList

      public List<? extends AutoscalingConfig.AsymmetricAutoscalingOptionOrBuilder> getAsymmetricAutoscalingOptionsOrBuilderList()
       Optional. Optional asymmetric autoscaling options.
       Replicas matching the replica selection criteria will be autoscaled
       independently from other replicas. The autoscaler will scale the replicas
       based on the utilization of replicas identified by the replica selection.
       Replica selections should not overlap with each other.
      
       Other replicas (those do not match any replica selection) will be
       autoscaled together and will have the same compute capacity allocated to
       them.
       
      repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAsymmetricAutoscalingOptionsOrBuilderList in interface AutoscalingConfigOrBuilder
    • getAsymmetricAutoscalingOptionsCount

      public int getAsymmetricAutoscalingOptionsCount()
       Optional. Optional asymmetric autoscaling options.
       Replicas matching the replica selection criteria will be autoscaled
       independently from other replicas. The autoscaler will scale the replicas
       based on the utilization of replicas identified by the replica selection.
       Replica selections should not overlap with each other.
      
       Other replicas (those do not match any replica selection) will be
       autoscaled together and will have the same compute capacity allocated to
       them.
       
      repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAsymmetricAutoscalingOptionsCount in interface AutoscalingConfigOrBuilder
    • getAsymmetricAutoscalingOptions

      public AutoscalingConfig.AsymmetricAutoscalingOption getAsymmetricAutoscalingOptions(int index)
       Optional. Optional asymmetric autoscaling options.
       Replicas matching the replica selection criteria will be autoscaled
       independently from other replicas. The autoscaler will scale the replicas
       based on the utilization of replicas identified by the replica selection.
       Replica selections should not overlap with each other.
      
       Other replicas (those do not match any replica selection) will be
       autoscaled together and will have the same compute capacity allocated to
       them.
       
      repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAsymmetricAutoscalingOptions in interface AutoscalingConfigOrBuilder
    • getAsymmetricAutoscalingOptionsOrBuilder

      public AutoscalingConfig.AsymmetricAutoscalingOptionOrBuilder getAsymmetricAutoscalingOptionsOrBuilder(int index)
       Optional. Optional asymmetric autoscaling options.
       Replicas matching the replica selection criteria will be autoscaled
       independently from other replicas. The autoscaler will scale the replicas
       based on the utilization of replicas identified by the replica selection.
       Replica selections should not overlap with each other.
      
       Other replicas (those do not match any replica selection) will be
       autoscaled together and will have the same compute capacity allocated to
       them.
       
      repeated .google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption asymmetric_autoscaling_options = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAsymmetricAutoscalingOptionsOrBuilder in interface AutoscalingConfigOrBuilder
    • 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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static AutoscalingConfig 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

      public static AutoscalingConfig.Builder newBuilder()
    • newBuilder

      public static AutoscalingConfig.Builder newBuilder(AutoscalingConfig prototype)
    • toBuilder

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

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

      public static AutoscalingConfig getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<AutoscalingConfig> 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 getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder