Class AutoscalingSettings.AutoscalingPolicy.Builder

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

public static final class AutoscalingSettings.AutoscalingPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutoscalingSettings.AutoscalingPolicy.Builder> implements AutoscalingSettings.AutoscalingPolicyOrBuilder
 Autoscaling policy describes the behavior of the autoscaling
 with respect to the resource utilization.
 The scale-out operation is initiated if the utilization
 exceeds ANY of the respective thresholds.
 The scale-in operation is initiated if the utilization
 is below ALL of the respective thresholds.
 
Protobuf type google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy
  • 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<AutoscalingSettings.AutoscalingPolicy.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.AutoscalingPolicy.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.AutoscalingPolicy.Builder>
    • getDefaultInstanceForType

      public AutoscalingSettings.AutoscalingPolicy 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

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

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

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

      public String getNodeTypeId()
       Required. The canonical identifier of the node type to add or remove.
       Corresponds to the `NodeType`.
       
      string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNodeTypeId in interface AutoscalingSettings.AutoscalingPolicyOrBuilder
      Returns:
      The nodeTypeId.
    • getNodeTypeIdBytes

      public com.google.protobuf.ByteString getNodeTypeIdBytes()
       Required. The canonical identifier of the node type to add or remove.
       Corresponds to the `NodeType`.
       
      string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNodeTypeIdBytes in interface AutoscalingSettings.AutoscalingPolicyOrBuilder
      Returns:
      The bytes for nodeTypeId.
    • setNodeTypeId

       Required. The canonical identifier of the node type to add or remove.
       Corresponds to the `NodeType`.
       
      string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The nodeTypeId to set.
      Returns:
      This builder for chaining.
    • clearNodeTypeId

       Required. The canonical identifier of the node type to add or remove.
       Corresponds to the `NodeType`.
       
      string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNodeTypeIdBytes

      public AutoscalingSettings.AutoscalingPolicy.Builder setNodeTypeIdBytes(com.google.protobuf.ByteString value)
       Required. The canonical identifier of the node type to add or remove.
       Corresponds to the `NodeType`.
       
      string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for nodeTypeId to set.
      Returns:
      This builder for chaining.
    • getScaleOutSize

      public int getScaleOutSize()
       Required. Number of nodes to add to a cluster during a scale-out
       operation. Must be divisible by 2 for stretched clusters. During a
       scale-in operation only one node (or 2 for stretched clusters) are
       removed in a single iteration.
       
      int32 scale_out_size = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScaleOutSize in interface AutoscalingSettings.AutoscalingPolicyOrBuilder
      Returns:
      The scaleOutSize.
    • setScaleOutSize

      public AutoscalingSettings.AutoscalingPolicy.Builder setScaleOutSize(int value)
       Required. Number of nodes to add to a cluster during a scale-out
       operation. Must be divisible by 2 for stretched clusters. During a
       scale-in operation only one node (or 2 for stretched clusters) are
       removed in a single iteration.
       
      int32 scale_out_size = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The scaleOutSize to set.
      Returns:
      This builder for chaining.
    • clearScaleOutSize

       Required. Number of nodes to add to a cluster during a scale-out
       operation. Must be divisible by 2 for stretched clusters. During a
       scale-in operation only one node (or 2 for stretched clusters) are
       removed in a single iteration.
       
      int32 scale_out_size = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasCpuThresholds

      public boolean hasCpuThresholds()
       Optional. Utilization thresholds pertaining to CPU utilization.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCpuThresholds in interface AutoscalingSettings.AutoscalingPolicyOrBuilder
      Returns:
      Whether the cpuThresholds field is set.
    • getCpuThresholds

      public AutoscalingSettings.Thresholds getCpuThresholds()
       Optional. Utilization thresholds pertaining to CPU utilization.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCpuThresholds in interface AutoscalingSettings.AutoscalingPolicyOrBuilder
      Returns:
      The cpuThresholds.
    • setCpuThresholds

       Optional. Utilization thresholds pertaining to CPU utilization.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];
    • setCpuThresholds

       Optional. Utilization thresholds pertaining to CPU utilization.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCpuThresholds

       Optional. Utilization thresholds pertaining to CPU utilization.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];
    • clearCpuThresholds

      public AutoscalingSettings.AutoscalingPolicy.Builder clearCpuThresholds()
       Optional. Utilization thresholds pertaining to CPU utilization.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getCpuThresholdsBuilder

      public AutoscalingSettings.Thresholds.Builder getCpuThresholdsBuilder()
       Optional. Utilization thresholds pertaining to CPU utilization.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getCpuThresholdsOrBuilder

      public AutoscalingSettings.ThresholdsOrBuilder getCpuThresholdsOrBuilder()
       Optional. Utilization thresholds pertaining to CPU utilization.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCpuThresholdsOrBuilder in interface AutoscalingSettings.AutoscalingPolicyOrBuilder
    • hasGrantedMemoryThresholds

      public boolean hasGrantedMemoryThresholds()
       Optional. Utilization thresholds pertaining to amount of granted memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasGrantedMemoryThresholds in interface AutoscalingSettings.AutoscalingPolicyOrBuilder
      Returns:
      Whether the grantedMemoryThresholds field is set.
    • getGrantedMemoryThresholds

      public AutoscalingSettings.Thresholds getGrantedMemoryThresholds()
       Optional. Utilization thresholds pertaining to amount of granted memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGrantedMemoryThresholds in interface AutoscalingSettings.AutoscalingPolicyOrBuilder
      Returns:
      The grantedMemoryThresholds.
    • setGrantedMemoryThresholds

       Optional. Utilization thresholds pertaining to amount of granted memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];
    • setGrantedMemoryThresholds

       Optional. Utilization thresholds pertaining to amount of granted memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];
    • mergeGrantedMemoryThresholds

       Optional. Utilization thresholds pertaining to amount of granted memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];
    • clearGrantedMemoryThresholds

      public AutoscalingSettings.AutoscalingPolicy.Builder clearGrantedMemoryThresholds()
       Optional. Utilization thresholds pertaining to amount of granted memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];
    • getGrantedMemoryThresholdsBuilder

      public AutoscalingSettings.Thresholds.Builder getGrantedMemoryThresholdsBuilder()
       Optional. Utilization thresholds pertaining to amount of granted memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];
    • getGrantedMemoryThresholdsOrBuilder

      public AutoscalingSettings.ThresholdsOrBuilder getGrantedMemoryThresholdsOrBuilder()
       Optional. Utilization thresholds pertaining to amount of granted memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGrantedMemoryThresholdsOrBuilder in interface AutoscalingSettings.AutoscalingPolicyOrBuilder
    • hasConsumedMemoryThresholds

      public boolean hasConsumedMemoryThresholds()
       Optional. Utilization thresholds pertaining to amount of consumed memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasConsumedMemoryThresholds in interface AutoscalingSettings.AutoscalingPolicyOrBuilder
      Returns:
      Whether the consumedMemoryThresholds field is set.
    • getConsumedMemoryThresholds

      public AutoscalingSettings.Thresholds getConsumedMemoryThresholds()
       Optional. Utilization thresholds pertaining to amount of consumed memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConsumedMemoryThresholds in interface AutoscalingSettings.AutoscalingPolicyOrBuilder
      Returns:
      The consumedMemoryThresholds.
    • setConsumedMemoryThresholds

       Optional. Utilization thresholds pertaining to amount of consumed memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];
    • setConsumedMemoryThresholds

      public AutoscalingSettings.AutoscalingPolicy.Builder setConsumedMemoryThresholds(AutoscalingSettings.Thresholds.Builder builderForValue)
       Optional. Utilization thresholds pertaining to amount of consumed memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];
    • mergeConsumedMemoryThresholds

       Optional. Utilization thresholds pertaining to amount of consumed memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];
    • clearConsumedMemoryThresholds

      public AutoscalingSettings.AutoscalingPolicy.Builder clearConsumedMemoryThresholds()
       Optional. Utilization thresholds pertaining to amount of consumed memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];
    • getConsumedMemoryThresholdsBuilder

      public AutoscalingSettings.Thresholds.Builder getConsumedMemoryThresholdsBuilder()
       Optional. Utilization thresholds pertaining to amount of consumed memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];
    • getConsumedMemoryThresholdsOrBuilder

      public AutoscalingSettings.ThresholdsOrBuilder getConsumedMemoryThresholdsOrBuilder()
       Optional. Utilization thresholds pertaining to amount of consumed memory.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConsumedMemoryThresholdsOrBuilder in interface AutoscalingSettings.AutoscalingPolicyOrBuilder
    • hasStorageThresholds

      public boolean hasStorageThresholds()
       Optional. Utilization thresholds pertaining to amount of consumed
       storage.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasStorageThresholds in interface AutoscalingSettings.AutoscalingPolicyOrBuilder
      Returns:
      Whether the storageThresholds field is set.
    • getStorageThresholds

      public AutoscalingSettings.Thresholds getStorageThresholds()
       Optional. Utilization thresholds pertaining to amount of consumed
       storage.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStorageThresholds in interface AutoscalingSettings.AutoscalingPolicyOrBuilder
      Returns:
      The storageThresholds.
    • setStorageThresholds

       Optional. Utilization thresholds pertaining to amount of consumed
       storage.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];
    • setStorageThresholds

       Optional. Utilization thresholds pertaining to amount of consumed
       storage.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];
    • mergeStorageThresholds

       Optional. Utilization thresholds pertaining to amount of consumed
       storage.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];
    • clearStorageThresholds

      public AutoscalingSettings.AutoscalingPolicy.Builder clearStorageThresholds()
       Optional. Utilization thresholds pertaining to amount of consumed
       storage.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getStorageThresholdsBuilder

      public AutoscalingSettings.Thresholds.Builder getStorageThresholdsBuilder()
       Optional. Utilization thresholds pertaining to amount of consumed
       storage.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getStorageThresholdsOrBuilder

      public AutoscalingSettings.ThresholdsOrBuilder getStorageThresholdsOrBuilder()
       Optional. Utilization thresholds pertaining to amount of consumed
       storage.
       
      .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStorageThresholdsOrBuilder in interface AutoscalingSettings.AutoscalingPolicyOrBuilder