public final class AutoscalingPolicy extends GeneratedMessageV3 implements AutoscalingPolicyOrBuilder
   
   Cloud Autoscaler policy.
 Protobuf type google.cloud.compute.v1.AutoscalingPolicy
Fields
  
  COOL_DOWN_PERIOD_SEC_FIELD_NUMBER
  
    public static final int COOL_DOWN_PERIOD_SEC_FIELD_NUMBER
   
  Field Value
  
  CPU_UTILIZATION_FIELD_NUMBER
  
    public static final int CPU_UTILIZATION_FIELD_NUMBER
   
  Field Value
  
  CUSTOM_METRIC_UTILIZATIONS_FIELD_NUMBER
  
    public static final int CUSTOM_METRIC_UTILIZATIONS_FIELD_NUMBER
   
  Field Value
  
  LOAD_BALANCING_UTILIZATION_FIELD_NUMBER
  
    public static final int LOAD_BALANCING_UTILIZATION_FIELD_NUMBER
   
  Field Value
  
  MAX_NUM_REPLICAS_FIELD_NUMBER
  
    public static final int MAX_NUM_REPLICAS_FIELD_NUMBER
   
  Field Value
  
  MIN_NUM_REPLICAS_FIELD_NUMBER
  
    public static final int MIN_NUM_REPLICAS_FIELD_NUMBER
   
  Field Value
  
  MODE_FIELD_NUMBER
  
    public static final int MODE_FIELD_NUMBER
   
  Field Value
  
  SCALE_IN_CONTROL_FIELD_NUMBER
  
    public static final int SCALE_IN_CONTROL_FIELD_NUMBER
   
  Field Value
  
  SCALING_SCHEDULES_FIELD_NUMBER
  
    public static final int SCALING_SCHEDULES_FIELD_NUMBER
   
  Field Value
  
  Methods
  
  
  containsScalingSchedules(String key)
  
    public boolean containsScalingSchedules(String key)
   
   Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
 
 map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
 
equals(Object obj)
  
    public boolean equals(Object obj)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  getCoolDownPeriodSec()
  
    public int getCoolDownPeriodSec()
   
   The number of seconds that the autoscaler waits before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds. Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.
 optional int32 cool_down_period_sec = 107692954;
    
      
        | Type | Description | 
      
        | int | The coolDownPeriodSec. | 
    
  
  
  getCpuUtilization()
  
    public AutoscalingPolicyCpuUtilization getCpuUtilization()
   
   Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
 
 optional .google.cloud.compute.v1.AutoscalingPolicyCpuUtilization cpu_utilization = 381211147;
 
getCpuUtilizationOrBuilder()
  
    public AutoscalingPolicyCpuUtilizationOrBuilder getCpuUtilizationOrBuilder()
   
   Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
 
 optional .google.cloud.compute.v1.AutoscalingPolicyCpuUtilization cpu_utilization = 381211147;
 
getCustomMetricUtilizations(int index)
  
    public AutoscalingPolicyCustomMetricUtilization getCustomMetricUtilizations(int index)
   
   Configuration parameters of autoscaling based on a custom metric.
 
 repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
 
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  getCustomMetricUtilizationsCount()
  
    public int getCustomMetricUtilizationsCount()
   
   Configuration parameters of autoscaling based on a custom metric.
 
 repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
 
getCustomMetricUtilizationsList()
  
    public List<AutoscalingPolicyCustomMetricUtilization> getCustomMetricUtilizationsList()
   
   Configuration parameters of autoscaling based on a custom metric.
 
 repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
 
getCustomMetricUtilizationsOrBuilder(int index)
  
    public AutoscalingPolicyCustomMetricUtilizationOrBuilder getCustomMetricUtilizationsOrBuilder(int index)
   
   Configuration parameters of autoscaling based on a custom metric.
 
 repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
 
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  getCustomMetricUtilizationsOrBuilderList()
  
    public List<? extends AutoscalingPolicyCustomMetricUtilizationOrBuilder> getCustomMetricUtilizationsOrBuilderList()
   
   Configuration parameters of autoscaling based on a custom metric.
 
 repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
 
    
      
        | Type | Description | 
      
        | List<? extends com.google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilizationOrBuilder> |  | 
    
  
  
  getDefaultInstance()
  
    public static AutoscalingPolicy getDefaultInstance()
   
  Returns
  
  
  getDefaultInstanceForType()
  
    public AutoscalingPolicy getDefaultInstanceForType()
   
  Returns
  
  
  getDescriptor()
  
    public static final Descriptors.Descriptor getDescriptor()
   
  Returns
  
  
  getLoadBalancingUtilization()
  
    public AutoscalingPolicyLoadBalancingUtilization getLoadBalancingUtilization()
   
   Configuration parameters of autoscaling based on load balancer.
 
 optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;
 
getLoadBalancingUtilizationOrBuilder()
  
    public AutoscalingPolicyLoadBalancingUtilizationOrBuilder getLoadBalancingUtilizationOrBuilder()
   
   Configuration parameters of autoscaling based on load balancer.
 
 optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;
 
getMaxNumReplicas()
  
    public int getMaxNumReplicas()
   
   The maximum number of instances that the autoscaler can scale out to. This is required when creating or updating an autoscaler. The maximum number of replicas must not be lower than minimal number of replicas.
 optional int32 max_num_replicas = 62327375;
    
      
        | Type | Description | 
      
        | int | The maxNumReplicas. | 
    
  
  
  getMinNumReplicas()
  
    public int getMinNumReplicas()
   
   The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. If not provided, autoscaler chooses a default value depending on maximum number of instances allowed.
 optional int32 min_num_replicas = 535329825;
    
      
        | Type | Description | 
      
        | int | The minNumReplicas. | 
    
  
  
  getMode()
  
   Defines operating mode for this policy.
 Check the Mode enum for the list of possible values.
 optional string mode = 3357091;
    
      
        | Type | Description | 
      
        | String | The mode. | 
    
  
  
  getModeBytes()
  
    public ByteString getModeBytes()
   
   Defines operating mode for this policy.
 Check the Mode enum for the list of possible values.
 optional string mode = 3357091;
getParserForType()
  
    public Parser<AutoscalingPolicy> getParserForType()
   
  Returns
  
  Overrides
  
  
  getScaleInControl()
  
    public AutoscalingPolicyScaleInControl getScaleInControl()
   
  
 optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
 
getScaleInControlOrBuilder()
  
    public AutoscalingPolicyScaleInControlOrBuilder getScaleInControlOrBuilder()
   
  
 optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
 
getScalingSchedules()
  
    public Map<String,AutoscalingPolicyScalingSchedule> getScalingSchedules()
   
  
  Returns
  
  
  getScalingSchedulesCount()
  
    public int getScalingSchedulesCount()
   
   Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
 
 map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
 
getScalingSchedulesMap()
  
    public Map<String,AutoscalingPolicyScalingSchedule> getScalingSchedulesMap()
   
   Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
 
 map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
 
getScalingSchedulesOrDefault(String key, AutoscalingPolicyScalingSchedule defaultValue)
  
    public AutoscalingPolicyScalingSchedule getScalingSchedulesOrDefault(String key, AutoscalingPolicyScalingSchedule defaultValue)
   
   Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
 
 map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
 
getScalingSchedulesOrThrow(String key)
  
    public AutoscalingPolicyScalingSchedule getScalingSchedulesOrThrow(String key)
   
   Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
 
 map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
 
getSerializedSize()
  
    public int getSerializedSize()
   
  Returns
  
  Overrides
  
  
  getUnknownFields()
  
    public final UnknownFieldSet getUnknownFields()
   
  Returns
  
  Overrides
  
  
  hasCoolDownPeriodSec()
  
    public boolean hasCoolDownPeriodSec()
   
   The number of seconds that the autoscaler waits before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds. Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.
 optional int32 cool_down_period_sec = 107692954;
    
      
        | Type | Description | 
      
        | boolean | Whether the coolDownPeriodSec field is set. | 
    
  
  
  hasCpuUtilization()
  
    public boolean hasCpuUtilization()
   
   Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
 
 optional .google.cloud.compute.v1.AutoscalingPolicyCpuUtilization cpu_utilization = 381211147;
 
    
      
        | Type | Description | 
      
        | boolean | Whether the cpuUtilization field is set. | 
    
  
  
  hasLoadBalancingUtilization()
  
    public boolean hasLoadBalancingUtilization()
   
   Configuration parameters of autoscaling based on load balancer.
 
 optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;
 
    
      
        | Type | Description | 
      
        | boolean | Whether the loadBalancingUtilization field is set. | 
    
  
  
  hasMaxNumReplicas()
  
    public boolean hasMaxNumReplicas()
   
   The maximum number of instances that the autoscaler can scale out to. This is required when creating or updating an autoscaler. The maximum number of replicas must not be lower than minimal number of replicas.
 optional int32 max_num_replicas = 62327375;
    
      
        | Type | Description | 
      
        | boolean | Whether the maxNumReplicas field is set. | 
    
  
  
  hasMinNumReplicas()
  
    public boolean hasMinNumReplicas()
   
   The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. If not provided, autoscaler chooses a default value depending on maximum number of instances allowed.
 optional int32 min_num_replicas = 535329825;
    
      
        | Type | Description | 
      
        | boolean | Whether the minNumReplicas field is set. | 
    
  
  
  hasMode()
  
   Defines operating mode for this policy.
 Check the Mode enum for the list of possible values.
 optional string mode = 3357091;
    
      
        | Type | Description | 
      
        | boolean | Whether the mode field is set. | 
    
  
  
  hasScaleInControl()
  
    public boolean hasScaleInControl()
   
  
 optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
 
    
      
        | Type | Description | 
      
        | boolean | Whether the scaleInControl field is set. | 
    
  
  
  hashCode()
  
  Returns
  
  Overrides
  
  
  internalGetFieldAccessorTable()
  
    protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
   
  Returns
  
  Overrides
  
  
  internalGetMapField(int number)
  
    protected MapField internalGetMapField(int number)
   
  Parameter
  
    
      
        | Name | Description | 
      
        | number | int
 | 
    
  
  Returns
  
  Overrides
  
  
  isInitialized()
  
    public final boolean isInitialized()
   
  Returns
  
  Overrides
  
  
  newBuilder()
  
    public static AutoscalingPolicy.Builder newBuilder()
   
  Returns
  
  
  newBuilder(AutoscalingPolicy prototype)
  
    public static AutoscalingPolicy.Builder newBuilder(AutoscalingPolicy prototype)
   
  Parameter
  
  Returns
  
  
  newBuilderForType()
  
    public AutoscalingPolicy.Builder newBuilderForType()
   
  Returns
  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent)
  
    protected AutoscalingPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
  
    protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  
  
    public static AutoscalingPolicy parseDelimitedFrom(InputStream input)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  
  
    public static AutoscalingPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  parseFrom(byte[] data)
  
    public static AutoscalingPolicy parseFrom(byte[] data)
   
  Parameter
  
    
      
        | Name | Description | 
      
        | data | byte[]
 | 
    
  
  Returns
  
  Exceptions
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
  
    public static AutoscalingPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  parseFrom(ByteString data)
  
    public static AutoscalingPolicy parseFrom(ByteString data)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
  
    public static AutoscalingPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  
  
    public static AutoscalingPolicy parseFrom(CodedInputStream input)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  
  
    public static AutoscalingPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  
  
    public static AutoscalingPolicy parseFrom(InputStream input)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  
  
    public static AutoscalingPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  parseFrom(ByteBuffer data)
  
    public static AutoscalingPolicy parseFrom(ByteBuffer data)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
  
    public static AutoscalingPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  parser()
  
    public static Parser<AutoscalingPolicy> parser()
   
  Returns
  
  
  toBuilder()
  
    public AutoscalingPolicy.Builder toBuilder()
   
  Returns
  
  
  writeTo(CodedOutputStream output)
  
    public void writeTo(CodedOutputStream output)
   
  Parameter
  
  Overrides
  
  Exceptions