Class AutoscalingPolicyScaleInControl.Builder

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

public static final class AutoscalingPolicyScaleInControl.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutoscalingPolicyScaleInControl.Builder> implements AutoscalingPolicyScaleInControlOrBuilder
 Configuration that allows for slower scale in so that even if Autoscaler
 recommends an abrupt scale in of a MIG, it will be throttled as specified
 by the parameters below.
 
Protobuf type google.cloud.compute.v1.AutoscalingPolicyScaleInControl
  • 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<AutoscalingPolicyScaleInControl.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<AutoscalingPolicyScaleInControl.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<AutoscalingPolicyScaleInControl.Builder>
    • getDefaultInstanceForType

      public AutoscalingPolicyScaleInControl 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

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

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

      public AutoscalingPolicyScaleInControl.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<AutoscalingPolicyScaleInControl.Builder>
      Throws:
      IOException
    • hasMaxScaledInReplicas

      public boolean hasMaxScaledInReplicas()
       Maximum allowed number (or %) of VMs that can be deducted from the peak
       recommendation during the window autoscaler looks at when computing
       recommendations. Possibly all these VMs can be deleted at once so user
       service needs to be prepared to lose that many VMs in one step.
       
      optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
      Specified by:
      hasMaxScaledInReplicas in interface AutoscalingPolicyScaleInControlOrBuilder
      Returns:
      Whether the maxScaledInReplicas field is set.
    • getMaxScaledInReplicas

      public FixedOrPercent getMaxScaledInReplicas()
       Maximum allowed number (or %) of VMs that can be deducted from the peak
       recommendation during the window autoscaler looks at when computing
       recommendations. Possibly all these VMs can be deleted at once so user
       service needs to be prepared to lose that many VMs in one step.
       
      optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
      Specified by:
      getMaxScaledInReplicas in interface AutoscalingPolicyScaleInControlOrBuilder
      Returns:
      The maxScaledInReplicas.
    • setMaxScaledInReplicas

      public AutoscalingPolicyScaleInControl.Builder setMaxScaledInReplicas(FixedOrPercent value)
       Maximum allowed number (or %) of VMs that can be deducted from the peak
       recommendation during the window autoscaler looks at when computing
       recommendations. Possibly all these VMs can be deleted at once so user
       service needs to be prepared to lose that many VMs in one step.
       
      optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
    • setMaxScaledInReplicas

      public AutoscalingPolicyScaleInControl.Builder setMaxScaledInReplicas(FixedOrPercent.Builder builderForValue)
       Maximum allowed number (or %) of VMs that can be deducted from the peak
       recommendation during the window autoscaler looks at when computing
       recommendations. Possibly all these VMs can be deleted at once so user
       service needs to be prepared to lose that many VMs in one step.
       
      optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
    • mergeMaxScaledInReplicas

      public AutoscalingPolicyScaleInControl.Builder mergeMaxScaledInReplicas(FixedOrPercent value)
       Maximum allowed number (or %) of VMs that can be deducted from the peak
       recommendation during the window autoscaler looks at when computing
       recommendations. Possibly all these VMs can be deleted at once so user
       service needs to be prepared to lose that many VMs in one step.
       
      optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
    • clearMaxScaledInReplicas

      public AutoscalingPolicyScaleInControl.Builder clearMaxScaledInReplicas()
       Maximum allowed number (or %) of VMs that can be deducted from the peak
       recommendation during the window autoscaler looks at when computing
       recommendations. Possibly all these VMs can be deleted at once so user
       service needs to be prepared to lose that many VMs in one step.
       
      optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
    • getMaxScaledInReplicasBuilder

      public FixedOrPercent.Builder getMaxScaledInReplicasBuilder()
       Maximum allowed number (or %) of VMs that can be deducted from the peak
       recommendation during the window autoscaler looks at when computing
       recommendations. Possibly all these VMs can be deleted at once so user
       service needs to be prepared to lose that many VMs in one step.
       
      optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
    • getMaxScaledInReplicasOrBuilder

      public FixedOrPercentOrBuilder getMaxScaledInReplicasOrBuilder()
       Maximum allowed number (or %) of VMs that can be deducted from the peak
       recommendation during the window autoscaler looks at when computing
       recommendations. Possibly all these VMs can be deleted at once so user
       service needs to be prepared to lose that many VMs in one step.
       
      optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
      Specified by:
      getMaxScaledInReplicasOrBuilder in interface AutoscalingPolicyScaleInControlOrBuilder
    • hasTimeWindowSec

      public boolean hasTimeWindowSec()
       How far back autoscaling looks when computing recommendations to
       include directives regarding slower scale in, as described above.
       
      optional int32 time_window_sec = 36405300;
      Specified by:
      hasTimeWindowSec in interface AutoscalingPolicyScaleInControlOrBuilder
      Returns:
      Whether the timeWindowSec field is set.
    • getTimeWindowSec

      public int getTimeWindowSec()
       How far back autoscaling looks when computing recommendations to
       include directives regarding slower scale in, as described above.
       
      optional int32 time_window_sec = 36405300;
      Specified by:
      getTimeWindowSec in interface AutoscalingPolicyScaleInControlOrBuilder
      Returns:
      The timeWindowSec.
    • setTimeWindowSec

      public AutoscalingPolicyScaleInControl.Builder setTimeWindowSec(int value)
       How far back autoscaling looks when computing recommendations to
       include directives regarding slower scale in, as described above.
       
      optional int32 time_window_sec = 36405300;
      Parameters:
      value - The timeWindowSec to set.
      Returns:
      This builder for chaining.
    • clearTimeWindowSec

      public AutoscalingPolicyScaleInControl.Builder clearTimeWindowSec()
       How far back autoscaling looks when computing recommendations to
       include directives regarding slower scale in, as described above.
       
      optional int32 time_window_sec = 36405300;
      Returns:
      This builder for chaining.