Class AutoscalingSettings

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.vmwareengine.v1.AutoscalingSettings
All Implemented Interfaces:
AutoscalingSettingsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class AutoscalingSettings extends com.google.protobuf.GeneratedMessage implements AutoscalingSettingsOrBuilder
 Autoscaling settings define the rules used by VMware Engine to
 automatically scale-out and scale-in the clusters in a private cloud.
 
Protobuf type google.cloud.vmwareengine.v1.AutoscalingSettings
See Also:
  • Field Details

    • AUTOSCALING_POLICIES_FIELD_NUMBER

      public static final int AUTOSCALING_POLICIES_FIELD_NUMBER
      See Also:
    • MIN_CLUSTER_NODE_COUNT_FIELD_NUMBER

      public static final int MIN_CLUSTER_NODE_COUNT_FIELD_NUMBER
      See Also:
    • MAX_CLUSTER_NODE_COUNT_FIELD_NUMBER

      public static final int MAX_CLUSTER_NODE_COUNT_FIELD_NUMBER
      See Also:
    • COOL_DOWN_PERIOD_FIELD_NUMBER

      public static final int COOL_DOWN_PERIOD_FIELD_NUMBER
      See Also:
  • 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.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getAutoscalingPoliciesCount

      public int getAutoscalingPoliciesCount()
      Description copied from interface: AutoscalingSettingsOrBuilder
       Required. The map with autoscaling policies applied to the cluster.
       The key is the identifier of the policy.
       It must meet the following requirements:
      
       * Only contains 1-63 alphanumeric characters and hyphens
       * Begins with an alphabetical character
       * Ends with a non-hyphen character
       * Not formatted as a UUID
       * Complies with [RFC
       1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
      
       Currently there map must contain only one element
       that describes the autoscaling policy for compute nodes.
       
      map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAutoscalingPoliciesCount in interface AutoscalingSettingsOrBuilder
    • containsAutoscalingPolicies

      public boolean containsAutoscalingPolicies(String key)
       Required. The map with autoscaling policies applied to the cluster.
       The key is the identifier of the policy.
       It must meet the following requirements:
      
       * Only contains 1-63 alphanumeric characters and hyphens
       * Begins with an alphabetical character
       * Ends with a non-hyphen character
       * Not formatted as a UUID
       * Complies with [RFC
       1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
      
       Currently there map must contain only one element
       that describes the autoscaling policy for compute nodes.
       
      map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      containsAutoscalingPolicies in interface AutoscalingSettingsOrBuilder
    • getAutoscalingPolicies

      @Deprecated public Map<String,AutoscalingSettings.AutoscalingPolicy> getAutoscalingPolicies()
      Deprecated.
      Specified by:
      getAutoscalingPolicies in interface AutoscalingSettingsOrBuilder
    • getAutoscalingPoliciesMap

      public Map<String,AutoscalingSettings.AutoscalingPolicy> getAutoscalingPoliciesMap()
       Required. The map with autoscaling policies applied to the cluster.
       The key is the identifier of the policy.
       It must meet the following requirements:
      
       * Only contains 1-63 alphanumeric characters and hyphens
       * Begins with an alphabetical character
       * Ends with a non-hyphen character
       * Not formatted as a UUID
       * Complies with [RFC
       1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
      
       Currently there map must contain only one element
       that describes the autoscaling policy for compute nodes.
       
      map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAutoscalingPoliciesMap in interface AutoscalingSettingsOrBuilder
    • getAutoscalingPoliciesOrDefault

      public AutoscalingSettings.AutoscalingPolicy getAutoscalingPoliciesOrDefault(String key, AutoscalingSettings.AutoscalingPolicy defaultValue)
       Required. The map with autoscaling policies applied to the cluster.
       The key is the identifier of the policy.
       It must meet the following requirements:
      
       * Only contains 1-63 alphanumeric characters and hyphens
       * Begins with an alphabetical character
       * Ends with a non-hyphen character
       * Not formatted as a UUID
       * Complies with [RFC
       1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
      
       Currently there map must contain only one element
       that describes the autoscaling policy for compute nodes.
       
      map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAutoscalingPoliciesOrDefault in interface AutoscalingSettingsOrBuilder
    • getAutoscalingPoliciesOrThrow

      public AutoscalingSettings.AutoscalingPolicy getAutoscalingPoliciesOrThrow(String key)
       Required. The map with autoscaling policies applied to the cluster.
       The key is the identifier of the policy.
       It must meet the following requirements:
      
       * Only contains 1-63 alphanumeric characters and hyphens
       * Begins with an alphabetical character
       * Ends with a non-hyphen character
       * Not formatted as a UUID
       * Complies with [RFC
       1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
      
       Currently there map must contain only one element
       that describes the autoscaling policy for compute nodes.
       
      map<string, .google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy> autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAutoscalingPoliciesOrThrow in interface AutoscalingSettingsOrBuilder
    • getMinClusterNodeCount

      public int getMinClusterNodeCount()
       Optional. Minimum number of nodes of any type in a cluster.
       If not specified the default limits apply.
       
      int32 min_cluster_node_count = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinClusterNodeCount in interface AutoscalingSettingsOrBuilder
      Returns:
      The minClusterNodeCount.
    • getMaxClusterNodeCount

      public int getMaxClusterNodeCount()
       Optional. Maximum number of nodes of any type in a cluster.
       If not specified the default limits apply.
       
      int32 max_cluster_node_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxClusterNodeCount in interface AutoscalingSettingsOrBuilder
      Returns:
      The maxClusterNodeCount.
    • hasCoolDownPeriod

      public boolean hasCoolDownPeriod()
       Optional. The minimum duration between consecutive autoscale operations.
       It starts once addition or removal of nodes is fully completed.
       Defaults to 30 minutes if not specified. Cool down period must be in whole
       minutes (for example, 30, 31, 50, 180 minutes).
       
      .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCoolDownPeriod in interface AutoscalingSettingsOrBuilder
      Returns:
      Whether the coolDownPeriod field is set.
    • getCoolDownPeriod

      public com.google.protobuf.Duration getCoolDownPeriod()
       Optional. The minimum duration between consecutive autoscale operations.
       It starts once addition or removal of nodes is fully completed.
       Defaults to 30 minutes if not specified. Cool down period must be in whole
       minutes (for example, 30, 31, 50, 180 minutes).
       
      .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCoolDownPeriod in interface AutoscalingSettingsOrBuilder
      Returns:
      The coolDownPeriod.
    • getCoolDownPeriodOrBuilder

      public com.google.protobuf.DurationOrBuilder getCoolDownPeriodOrBuilder()
       Optional. The minimum duration between consecutive autoscale operations.
       It starts once addition or removal of nodes is fully completed.
       Defaults to 30 minutes if not specified. Cool down period must be in whole
       minutes (for example, 30, 31, 50, 180 minutes).
       
      .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCoolDownPeriodOrBuilder in interface AutoscalingSettingsOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 AutoscalingSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static AutoscalingSettings.Builder newBuilder()
    • newBuilder

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

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

      protected AutoscalingSettings.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AutoscalingSettings getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<AutoscalingSettings> 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.GeneratedMessage
    • getDefaultInstanceForType

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