Class AutoscalingSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutoscalingSettings.Builder>
com.google.cloud.vmwareengine.v1.AutoscalingSettings.Builder
All Implemented Interfaces:
AutoscalingSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AutoscalingSettings

public static final class AutoscalingSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutoscalingSettings.Builder> 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
  • 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.Builder<AutoscalingSettings.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AutoscalingSettings.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

      public AutoscalingSettings.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<AutoscalingSettings.Builder>
      Throws:
      IOException
    • 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
    • clearAutoscalingPolicies

      public AutoscalingSettings.Builder clearAutoscalingPolicies()
    • removeAutoscalingPolicies

      public AutoscalingSettings.Builder removeAutoscalingPolicies(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];
    • getMutableAutoscalingPolicies

      @Deprecated public Map<String,AutoscalingSettings.AutoscalingPolicy> getMutableAutoscalingPolicies()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAutoscalingPolicies

      public AutoscalingSettings.Builder putAutoscalingPolicies(String key, AutoscalingSettings.AutoscalingPolicy value)
       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];
    • putAllAutoscalingPolicies

       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];
    • putAutoscalingPoliciesBuilderIfAbsent

      public AutoscalingSettings.AutoscalingPolicy.Builder putAutoscalingPoliciesBuilderIfAbsent(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];
    • 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.
    • setMinClusterNodeCount

      public AutoscalingSettings.Builder setMinClusterNodeCount(int value)
       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];
      Parameters:
      value - The minClusterNodeCount to set.
      Returns:
      This builder for chaining.
    • clearMinClusterNodeCount

      public AutoscalingSettings.Builder clearMinClusterNodeCount()
       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];
      Returns:
      This builder for chaining.
    • 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.
    • setMaxClusterNodeCount

      public AutoscalingSettings.Builder setMaxClusterNodeCount(int value)
       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];
      Parameters:
      value - The maxClusterNodeCount to set.
      Returns:
      This builder for chaining.
    • clearMaxClusterNodeCount

      public AutoscalingSettings.Builder clearMaxClusterNodeCount()
       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];
      Returns:
      This builder for chaining.
    • 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.
    • setCoolDownPeriod

      public AutoscalingSettings.Builder setCoolDownPeriod(com.google.protobuf.Duration value)
       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];
    • setCoolDownPeriod

      public AutoscalingSettings.Builder setCoolDownPeriod(com.google.protobuf.Duration.Builder builderForValue)
       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];
    • mergeCoolDownPeriod

      public AutoscalingSettings.Builder mergeCoolDownPeriod(com.google.protobuf.Duration value)
       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];
    • clearCoolDownPeriod

      public AutoscalingSettings.Builder clearCoolDownPeriod()
       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];
    • getCoolDownPeriodBuilder

      public com.google.protobuf.Duration.Builder getCoolDownPeriodBuilder()
       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];
    • 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