Package com.google.cloud.compute.v1
Class AutoscalingPolicy
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.AutoscalingPolicy
-
- All Implemented Interfaces:
AutoscalingPolicyOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class AutoscalingPolicy extends com.google.protobuf.GeneratedMessageV3 implements AutoscalingPolicyOrBuilder
Cloud Autoscaler policy.
Protobuf typegoogle.cloud.compute.v1.AutoscalingPolicy
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AutoscalingPolicy.Builder
Cloud Autoscaler policy.static class
AutoscalingPolicy.Mode
Defines the operating mode for this policy.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
COOL_DOWN_PERIOD_SEC_FIELD_NUMBER
static int
CPU_UTILIZATION_FIELD_NUMBER
static int
CUSTOM_METRIC_UTILIZATIONS_FIELD_NUMBER
static int
LOAD_BALANCING_UTILIZATION_FIELD_NUMBER
static int
MAX_NUM_REPLICAS_FIELD_NUMBER
static int
MIN_NUM_REPLICAS_FIELD_NUMBER
static int
MODE_FIELD_NUMBER
static int
SCALE_IN_CONTROL_FIELD_NUMBER
static int
SCALING_SCHEDULES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsScalingSchedules(String key)
Scaling schedules defined for an autoscaler.boolean
equals(Object obj)
int
getCoolDownPeriodSec()
The number of seconds that your application takes to initialize on a VM instance.AutoscalingPolicyCpuUtilization
getCpuUtilization()
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.AutoscalingPolicyCpuUtilizationOrBuilder
getCpuUtilizationOrBuilder()
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.AutoscalingPolicyCustomMetricUtilization
getCustomMetricUtilizations(int index)
Configuration parameters of autoscaling based on a custom metric.int
getCustomMetricUtilizationsCount()
Configuration parameters of autoscaling based on a custom metric.List<AutoscalingPolicyCustomMetricUtilization>
getCustomMetricUtilizationsList()
Configuration parameters of autoscaling based on a custom metric.AutoscalingPolicyCustomMetricUtilizationOrBuilder
getCustomMetricUtilizationsOrBuilder(int index)
Configuration parameters of autoscaling based on a custom metric.List<? extends AutoscalingPolicyCustomMetricUtilizationOrBuilder>
getCustomMetricUtilizationsOrBuilderList()
Configuration parameters of autoscaling based on a custom metric.static AutoscalingPolicy
getDefaultInstance()
AutoscalingPolicy
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
AutoscalingPolicyLoadBalancingUtilization
getLoadBalancingUtilization()
Configuration parameters of autoscaling based on load balancer.AutoscalingPolicyLoadBalancingUtilizationOrBuilder
getLoadBalancingUtilizationOrBuilder()
Configuration parameters of autoscaling based on load balancer.int
getMaxNumReplicas()
The maximum number of instances that the autoscaler can scale out to.int
getMinNumReplicas()
The minimum number of replicas that the autoscaler can scale in to.String
getMode()
Defines the operating mode for this policy.com.google.protobuf.ByteString
getModeBytes()
Defines the operating mode for this policy.com.google.protobuf.Parser<AutoscalingPolicy>
getParserForType()
AutoscalingPolicyScaleInControl
getScaleInControl()
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
AutoscalingPolicyScaleInControlOrBuilder
getScaleInControlOrBuilder()
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
Map<String,AutoscalingPolicyScalingSchedule>
getScalingSchedules()
Deprecated.int
getScalingSchedulesCount()
Scaling schedules defined for an autoscaler.Map<String,AutoscalingPolicyScalingSchedule>
getScalingSchedulesMap()
Scaling schedules defined for an autoscaler.AutoscalingPolicyScalingSchedule
getScalingSchedulesOrDefault(String key, AutoscalingPolicyScalingSchedule defaultValue)
Scaling schedules defined for an autoscaler.AutoscalingPolicyScalingSchedule
getScalingSchedulesOrThrow(String key)
Scaling schedules defined for an autoscaler.int
getSerializedSize()
boolean
hasCoolDownPeriodSec()
The number of seconds that your application takes to initialize on a VM instance.boolean
hasCpuUtilization()
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.int
hashCode()
boolean
hasLoadBalancingUtilization()
Configuration parameters of autoscaling based on load balancer.boolean
hasMaxNumReplicas()
The maximum number of instances that the autoscaler can scale out to.boolean
hasMinNumReplicas()
The minimum number of replicas that the autoscaler can scale in to.boolean
hasMode()
Defines the operating mode for this policy.boolean
hasScaleInControl()
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static AutoscalingPolicy.Builder
newBuilder()
static AutoscalingPolicy.Builder
newBuilder(AutoscalingPolicy prototype)
AutoscalingPolicy.Builder
newBuilderForType()
protected AutoscalingPolicy.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AutoscalingPolicy
parseDelimitedFrom(InputStream input)
static AutoscalingPolicy
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutoscalingPolicy
parseFrom(byte[] data)
static AutoscalingPolicy
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutoscalingPolicy
parseFrom(com.google.protobuf.ByteString data)
static AutoscalingPolicy
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutoscalingPolicy
parseFrom(com.google.protobuf.CodedInputStream input)
static AutoscalingPolicy
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutoscalingPolicy
parseFrom(InputStream input)
static AutoscalingPolicy
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutoscalingPolicy
parseFrom(ByteBuffer data)
static AutoscalingPolicy
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AutoscalingPolicy>
parser()
AutoscalingPolicy.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
COOL_DOWN_PERIOD_SEC_FIELD_NUMBER
public static final int COOL_DOWN_PERIOD_SEC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CPU_UTILIZATION_FIELD_NUMBER
public static final int CPU_UTILIZATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CUSTOM_METRIC_UTILIZATIONS_FIELD_NUMBER
public static final int CUSTOM_METRIC_UTILIZATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOAD_BALANCING_UTILIZATION_FIELD_NUMBER
public static final int LOAD_BALANCING_UTILIZATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_NUM_REPLICAS_FIELD_NUMBER
public static final int MAX_NUM_REPLICAS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_NUM_REPLICAS_FIELD_NUMBER
public static final int MIN_NUM_REPLICAS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MODE_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCALE_IN_CONTROL_FIELD_NUMBER
public static final int SCALE_IN_CONTROL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCALING_SCHEDULES_FIELD_NUMBER
public static final int SCALING_SCHEDULES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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:
hasCoolDownPeriodSec
in 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:
getCoolDownPeriodSec
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- The coolDownPeriodSec.
-
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:
hasCpuUtilization
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- Whether the cpuUtilization field is set.
-
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;
- Specified by:
getCpuUtilization
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- The cpuUtilization.
-
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;
- Specified by:
getCpuUtilizationOrBuilder
in interfaceAutoscalingPolicyOrBuilder
-
getCustomMetricUtilizationsList
public List<AutoscalingPolicyCustomMetricUtilization> getCustomMetricUtilizationsList()
Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
- Specified by:
getCustomMetricUtilizationsList
in 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:
getCustomMetricUtilizationsOrBuilderList
in 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:
getCustomMetricUtilizationsCount
in interfaceAutoscalingPolicyOrBuilder
-
getCustomMetricUtilizations
public AutoscalingPolicyCustomMetricUtilization getCustomMetricUtilizations(int index)
Configuration parameters of autoscaling based on a custom metric.
repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
- Specified by:
getCustomMetricUtilizations
in interfaceAutoscalingPolicyOrBuilder
-
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:
getCustomMetricUtilizationsOrBuilder
in interfaceAutoscalingPolicyOrBuilder
-
hasLoadBalancingUtilization
public boolean hasLoadBalancingUtilization()
Configuration parameters of autoscaling based on load balancer.
optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;
- Specified by:
hasLoadBalancingUtilization
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- Whether the loadBalancingUtilization field is set.
-
getLoadBalancingUtilization
public AutoscalingPolicyLoadBalancingUtilization getLoadBalancingUtilization()
Configuration parameters of autoscaling based on load balancer.
optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;
- Specified by:
getLoadBalancingUtilization
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- The loadBalancingUtilization.
-
getLoadBalancingUtilizationOrBuilder
public AutoscalingPolicyLoadBalancingUtilizationOrBuilder getLoadBalancingUtilizationOrBuilder()
Configuration parameters of autoscaling based on load balancer.
optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;
- Specified by:
getLoadBalancingUtilizationOrBuilder
in 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:
hasMaxNumReplicas
in 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:
getMaxNumReplicas
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- The maxNumReplicas.
-
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:
hasMinNumReplicas
in 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:
getMinNumReplicas
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- The minNumReplicas.
-
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:
hasMode
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- Whether the mode field is set.
-
getMode
public String 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:
getMode
in 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:
getModeBytes
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- The bytes for mode.
-
hasScaleInControl
public boolean hasScaleInControl()
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
- Specified by:
hasScaleInControl
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- Whether the scaleInControl field is set.
-
getScaleInControl
public AutoscalingPolicyScaleInControl getScaleInControl()
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
- Specified by:
getScaleInControl
in interfaceAutoscalingPolicyOrBuilder
- Returns:
- The scaleInControl.
-
getScaleInControlOrBuilder
public AutoscalingPolicyScaleInControlOrBuilder getScaleInControlOrBuilder()
optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
- Specified by:
getScaleInControlOrBuilder
in interfaceAutoscalingPolicyOrBuilder
-
getScalingSchedulesCount
public int getScalingSchedulesCount()
Description copied from interface:AutoscalingPolicyOrBuilder
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:
getScalingSchedulesCount
in interfaceAutoscalingPolicyOrBuilder
-
containsScalingSchedules
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;
- Specified by:
containsScalingSchedules
in interfaceAutoscalingPolicyOrBuilder
-
getScalingSchedules
@Deprecated public Map<String,AutoscalingPolicyScalingSchedule> getScalingSchedules()
Deprecated.UsegetScalingSchedulesMap()
instead.- Specified by:
getScalingSchedules
in interfaceAutoscalingPolicyOrBuilder
-
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;
- Specified by:
getScalingSchedulesMap
in 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:
getScalingSchedulesOrDefault
in interfaceAutoscalingPolicyOrBuilder
-
getScalingSchedulesOrThrow
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;
- Specified by:
getScalingSchedulesOrThrow
in interfaceAutoscalingPolicyOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AutoscalingPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutoscalingPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutoscalingPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutoscalingPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutoscalingPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutoscalingPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutoscalingPolicy parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AutoscalingPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AutoscalingPolicy parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AutoscalingPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AutoscalingPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AutoscalingPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AutoscalingPolicy.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AutoscalingPolicy.Builder newBuilder()
-
newBuilder
public static AutoscalingPolicy.Builder newBuilder(AutoscalingPolicy prototype)
-
toBuilder
public AutoscalingPolicy.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AutoscalingPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AutoscalingPolicy getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AutoscalingPolicy> parser()
-
getParserForType
public com.google.protobuf.Parser<AutoscalingPolicy> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AutoscalingPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-