Package com.google.cloud.compute.v1
Class AutoscalingPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutoscalingPolicy.Builder>
com.google.cloud.compute.v1.AutoscalingPolicy.Builder
- All Implemented Interfaces:
AutoscalingPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AutoscalingPolicy
public static final class AutoscalingPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AutoscalingPolicy.Builder>
implements AutoscalingPolicyOrBuilder
Cloud Autoscaler policy.Protobuf type
google.cloud.compute.v1.AutoscalingPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllCustomMetricUtilizations(Iterable<? extends AutoscalingPolicyCustomMetricUtilization> values) Configuration parameters of autoscaling based on a custom metric.addCustomMetricUtilizations(int index, AutoscalingPolicyCustomMetricUtilization value) Configuration parameters of autoscaling based on a custom metric.addCustomMetricUtilizations(int index, AutoscalingPolicyCustomMetricUtilization.Builder builderForValue) Configuration parameters of autoscaling based on a custom metric.Configuration parameters of autoscaling based on a custom metric.Configuration parameters of autoscaling based on a custom metric.Configuration parameters of autoscaling based on a custom metric.addCustomMetricUtilizationsBuilder(int index) Configuration parameters of autoscaling based on a custom metric.build()clear()The number of seconds that your application takes to initialize on a VM instance.Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.Configuration parameters of autoscaling based on a custom metric.Configuration parameters of autoscaling based on load balancer.The maximum number of instances that the autoscaler can scale out to.The minimum number of replicas that the autoscaler can scale in to.Defines the operating mode for this policy.optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;booleanScaling schedules defined for an autoscaler.intThe number of seconds that your application takes to initialize on a VM instance.Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.getCustomMetricUtilizations(int index) Configuration parameters of autoscaling based on a custom metric.getCustomMetricUtilizationsBuilder(int index) Configuration parameters of autoscaling based on a custom metric.Configuration parameters of autoscaling based on a custom metric.intConfiguration parameters of autoscaling based on a custom metric.Configuration parameters of autoscaling based on a custom metric.getCustomMetricUtilizationsOrBuilder(int index) Configuration parameters of autoscaling based on a custom metric.Configuration parameters of autoscaling based on a custom metric.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorConfiguration parameters of autoscaling based on load balancer.Configuration parameters of autoscaling based on load balancer.Configuration parameters of autoscaling based on load balancer.intThe maximum number of instances that the autoscaler can scale out to.intThe minimum number of replicas that the autoscaler can scale in to.getMode()Defines the operating mode for this policy.com.google.protobuf.ByteStringDefines the operating mode for this policy.Deprecated.optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;Deprecated.intScaling schedules defined for an autoscaler.Scaling schedules defined for an autoscaler.getScalingSchedulesOrDefault(String key, AutoscalingPolicyScalingSchedule defaultValue) Scaling schedules defined for an autoscaler.Scaling schedules defined for an autoscaler.booleanThe number of seconds that your application takes to initialize on a VM instance.booleanDefines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.booleanConfiguration parameters of autoscaling based on load balancer.booleanThe maximum number of instances that the autoscaler can scale out to.booleanThe minimum number of replicas that the autoscaler can scale in to.booleanhasMode()Defines the operating mode for this policy.booleanoptional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanDefines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.mergeFrom(AutoscalingPolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Configuration parameters of autoscaling based on load balancer.optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;Scaling schedules defined for an autoscaler.Scaling schedules defined for an autoscaler.Scaling schedules defined for an autoscaler.removeCustomMetricUtilizations(int index) Configuration parameters of autoscaling based on a custom metric.Scaling schedules defined for an autoscaler.setCoolDownPeriodSec(int value) The number of seconds that your application takes to initialize on a VM instance.Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.setCpuUtilization(AutoscalingPolicyCpuUtilization.Builder builderForValue) Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.setCustomMetricUtilizations(int index, AutoscalingPolicyCustomMetricUtilization value) Configuration parameters of autoscaling based on a custom metric.setCustomMetricUtilizations(int index, AutoscalingPolicyCustomMetricUtilization.Builder builderForValue) Configuration parameters of autoscaling based on a custom metric.Configuration parameters of autoscaling based on load balancer.Configuration parameters of autoscaling based on load balancer.setMaxNumReplicas(int value) The maximum number of instances that the autoscaler can scale out to.setMinNumReplicas(int value) The minimum number of replicas that the autoscaler can scale in to.Defines the operating mode for this policy.setModeBytes(com.google.protobuf.ByteString value) Defines the operating mode for this policy.optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;setScaleInControl(AutoscalingPolicyScaleInControl.Builder builderForValue) optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingPolicy.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingPolicy.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutoscalingPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AutoscalingPolicy.Builder>
-
mergeFrom
public AutoscalingPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutoscalingPolicy.Builder>- Throws:
IOException
-
hasCoolDownPeriodSec
public boolean hasCoolDownPeriodSec()The number of seconds that your application takes to initialize on a VM instance. This is referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). Specifying an accurate initialization period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs might not yet represent normal usage of your application. The default initialization period is 60 seconds. Initialization periods might vary because of numerous factors. We recommend that you test how long your application takes to initialize. To do this, create a VM and time your application's startup process.
optional int32 cool_down_period_sec = 107692954;- Specified by:
hasCoolDownPeriodSecin interfaceAutoscalingPolicyOrBuilder- Returns:
- Whether the coolDownPeriodSec field is set.
-
getCoolDownPeriodSec
public int getCoolDownPeriodSec()The number of seconds that your application takes to initialize on a VM instance. This is referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). Specifying an accurate initialization period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs might not yet represent normal usage of your application. The default initialization period is 60 seconds. Initialization periods might vary because of numerous factors. We recommend that you test how long your application takes to initialize. To do this, create a VM and time your application's startup process.
optional int32 cool_down_period_sec = 107692954;- Specified by:
getCoolDownPeriodSecin interfaceAutoscalingPolicyOrBuilder- Returns:
- The coolDownPeriodSec.
-
setCoolDownPeriodSec
The number of seconds that your application takes to initialize on a VM instance. This is referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). Specifying an accurate initialization period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs might not yet represent normal usage of your application. The default initialization period is 60 seconds. Initialization periods might vary because of numerous factors. We recommend that you test how long your application takes to initialize. To do this, create a VM and time your application's startup process.
optional int32 cool_down_period_sec = 107692954;- Parameters:
value- The coolDownPeriodSec to set.- Returns:
- This builder for chaining.
-
clearCoolDownPeriodSec
The number of seconds that your application takes to initialize on a VM instance. This is referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). Specifying an accurate initialization period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs might not yet represent normal usage of your application. The default initialization period is 60 seconds. Initialization periods might vary because of numerous factors. We recommend that you test how long your application takes to initialize. To do this, create a VM and time your application's startup process.
optional int32 cool_down_period_sec = 107692954;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasCpuUtilizationin interfaceAutoscalingPolicyOrBuilder- Returns:
- Whether the cpuUtilization field is set.
-
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;- Specified by:
getCpuUtilizationin interfaceAutoscalingPolicyOrBuilder- Returns:
- The cpuUtilization.
-
setCpuUtilization
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; -
setCpuUtilization
public AutoscalingPolicy.Builder setCpuUtilization(AutoscalingPolicyCpuUtilization.Builder builderForValue) 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; -
mergeCpuUtilization
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; -
clearCpuUtilization
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; -
getCpuUtilizationBuilder
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
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;- Specified by:
getCpuUtilizationOrBuilderin interfaceAutoscalingPolicyOrBuilder
-
getCustomMetricUtilizationsList
Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;- Specified by:
getCustomMetricUtilizationsListin interfaceAutoscalingPolicyOrBuilder
-
getCustomMetricUtilizationsCount
public int getCustomMetricUtilizationsCount()Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;- Specified by:
getCustomMetricUtilizationsCountin interfaceAutoscalingPolicyOrBuilder
-
getCustomMetricUtilizations
Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;- Specified by:
getCustomMetricUtilizationsin interfaceAutoscalingPolicyOrBuilder
-
setCustomMetricUtilizations
public AutoscalingPolicy.Builder setCustomMetricUtilizations(int index, AutoscalingPolicyCustomMetricUtilization value) Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850; -
setCustomMetricUtilizations
public AutoscalingPolicy.Builder setCustomMetricUtilizations(int index, AutoscalingPolicyCustomMetricUtilization.Builder builderForValue) Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850; -
addCustomMetricUtilizations
public AutoscalingPolicy.Builder addCustomMetricUtilizations(AutoscalingPolicyCustomMetricUtilization value) Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850; -
addCustomMetricUtilizations
public AutoscalingPolicy.Builder addCustomMetricUtilizations(int index, AutoscalingPolicyCustomMetricUtilization value) Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850; -
addCustomMetricUtilizations
public AutoscalingPolicy.Builder addCustomMetricUtilizations(AutoscalingPolicyCustomMetricUtilization.Builder builderForValue) Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850; -
addCustomMetricUtilizations
public AutoscalingPolicy.Builder addCustomMetricUtilizations(int index, AutoscalingPolicyCustomMetricUtilization.Builder builderForValue) Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850; -
addAllCustomMetricUtilizations
public AutoscalingPolicy.Builder addAllCustomMetricUtilizations(Iterable<? extends AutoscalingPolicyCustomMetricUtilization> values) Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850; -
clearCustomMetricUtilizations
Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850; -
removeCustomMetricUtilizations
Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850; -
getCustomMetricUtilizationsBuilder
public AutoscalingPolicyCustomMetricUtilization.Builder getCustomMetricUtilizationsBuilder(int index) Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850; -
getCustomMetricUtilizationsOrBuilder
public AutoscalingPolicyCustomMetricUtilizationOrBuilder getCustomMetricUtilizationsOrBuilder(int index) Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;- Specified by:
getCustomMetricUtilizationsOrBuilderin interfaceAutoscalingPolicyOrBuilder
-
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;- Specified by:
getCustomMetricUtilizationsOrBuilderListin interfaceAutoscalingPolicyOrBuilder
-
addCustomMetricUtilizationsBuilder
Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850; -
addCustomMetricUtilizationsBuilder
public AutoscalingPolicyCustomMetricUtilization.Builder addCustomMetricUtilizationsBuilder(int index) Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850; -
getCustomMetricUtilizationsBuilderList
public List<AutoscalingPolicyCustomMetricUtilization.Builder> getCustomMetricUtilizationsBuilderList()Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850; -
hasLoadBalancingUtilization
public boolean hasLoadBalancingUtilization()Configuration parameters of autoscaling based on load balancer.
optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;- Specified by:
hasLoadBalancingUtilizationin interfaceAutoscalingPolicyOrBuilder- Returns:
- Whether the loadBalancingUtilization field is set.
-
getLoadBalancingUtilization
Configuration parameters of autoscaling based on load balancer.
optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;- Specified by:
getLoadBalancingUtilizationin interfaceAutoscalingPolicyOrBuilder- Returns:
- The loadBalancingUtilization.
-
setLoadBalancingUtilization
public AutoscalingPolicy.Builder setLoadBalancingUtilization(AutoscalingPolicyLoadBalancingUtilization value) Configuration parameters of autoscaling based on load balancer.
optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403; -
setLoadBalancingUtilization
public AutoscalingPolicy.Builder setLoadBalancingUtilization(AutoscalingPolicyLoadBalancingUtilization.Builder builderForValue) Configuration parameters of autoscaling based on load balancer.
optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403; -
mergeLoadBalancingUtilization
public AutoscalingPolicy.Builder mergeLoadBalancingUtilization(AutoscalingPolicyLoadBalancingUtilization value) Configuration parameters of autoscaling based on load balancer.
optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403; -
clearLoadBalancingUtilization
Configuration parameters of autoscaling based on load balancer.
optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403; -
getLoadBalancingUtilizationBuilder
Configuration parameters of autoscaling based on load balancer.
optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403; -
getLoadBalancingUtilizationOrBuilder
Configuration parameters of autoscaling based on load balancer.
optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;- Specified by:
getLoadBalancingUtilizationOrBuilderin interfaceAutoscalingPolicyOrBuilder
-
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;- Specified by:
hasMaxNumReplicasin interfaceAutoscalingPolicyOrBuilder- Returns:
- Whether the maxNumReplicas field is set.
-
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;- Specified by:
getMaxNumReplicasin interfaceAutoscalingPolicyOrBuilder- Returns:
- The maxNumReplicas.
-
setMaxNumReplicas
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;- Parameters:
value- The maxNumReplicas to set.- Returns:
- This builder for chaining.
-
clearMaxNumReplicas
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;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasMinNumReplicasin interfaceAutoscalingPolicyOrBuilder- Returns:
- Whether the minNumReplicas field is set.
-
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;- Specified by:
getMinNumReplicasin interfaceAutoscalingPolicyOrBuilder- Returns:
- The minNumReplicas.
-
setMinNumReplicas
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;- Parameters:
value- The minNumReplicas to set.- Returns:
- This builder for chaining.
-
clearMinNumReplicas
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;- Returns:
- This builder for chaining.
-
hasMode
public boolean hasMode()Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler" Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Specified by:
hasModein interfaceAutoscalingPolicyOrBuilder- Returns:
- Whether the mode field is set.
-
getMode
Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler" Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Specified by:
getModein interfaceAutoscalingPolicyOrBuilder- Returns:
- The mode.
-
getModeBytes
public com.google.protobuf.ByteString getModeBytes()Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler" Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Specified by:
getModeBytesin interfaceAutoscalingPolicyOrBuilder- Returns:
- The bytes for mode.
-
setMode
Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler" Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Parameters:
value- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler" Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Returns:
- This builder for chaining.
-
setModeBytes
Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler" Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Parameters:
value- The bytes for mode to set.- Returns:
- This builder for chaining.
-
hasScaleInControl
public boolean hasScaleInControl()optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;- Specified by:
hasScaleInControlin interfaceAutoscalingPolicyOrBuilder- Returns:
- Whether the scaleInControl field is set.
-
getScaleInControl
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;- Specified by:
getScaleInControlin interfaceAutoscalingPolicyOrBuilder- Returns:
- The scaleInControl.
-
setScaleInControl
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872; -
setScaleInControl
public AutoscalingPolicy.Builder setScaleInControl(AutoscalingPolicyScaleInControl.Builder builderForValue) optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872; -
mergeScaleInControl
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872; -
clearScaleInControl
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872; -
getScaleInControlBuilder
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872; -
getScaleInControlOrBuilder
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;- Specified by:
getScaleInControlOrBuilderin interfaceAutoscalingPolicyOrBuilder
-
getScalingSchedulesCount
public int getScalingSchedulesCount()Description copied from interface:AutoscalingPolicyOrBuilderScaling 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;- Specified by:
getScalingSchedulesCountin interfaceAutoscalingPolicyOrBuilder
-
containsScalingSchedules
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;- Specified by:
containsScalingSchedulesin interfaceAutoscalingPolicyOrBuilder
-
getScalingSchedules
Deprecated.UsegetScalingSchedulesMap()instead.- Specified by:
getScalingSchedulesin interfaceAutoscalingPolicyOrBuilder
-
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;- Specified by:
getScalingSchedulesMapin interfaceAutoscalingPolicyOrBuilder
-
getScalingSchedulesOrDefault
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;- Specified by:
getScalingSchedulesOrDefaultin interfaceAutoscalingPolicyOrBuilder
-
getScalingSchedulesOrThrow
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;- Specified by:
getScalingSchedulesOrThrowin interfaceAutoscalingPolicyOrBuilder
-
clearScalingSchedules
-
removeScalingSchedules
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; -
getMutableScalingSchedules
Deprecated.Use alternate mutation accessors instead. -
putScalingSchedules
public AutoscalingPolicy.Builder putScalingSchedules(String key, AutoscalingPolicyScalingSchedule value) 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; -
putAllScalingSchedules
public AutoscalingPolicy.Builder putAllScalingSchedules(Map<String, AutoscalingPolicyScalingSchedule> values) 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; -
putScalingSchedulesBuilderIfAbsent
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;
-