public static enum AutoscalingPolicy.Mode extends Enum<AutoscalingPolicy.Mode> implements com.google.protobuf.ProtocolMessageEnum
Defines operating mode for this policy.Protobuf enum
google.cloud.compute.v1.AutoscalingPolicy.Mode| Enum Constant and Description |
|---|
OFF
Do not automatically scale the MIG in or out.
|
ON
Automatically scale the MIG in and out according to the policy.
|
ONLY_SCALE_OUT
Automatically create VMs according to the policy, but do not scale the MIG in.
|
ONLY_UP
Automatically create VMs according to the policy, but do not scale the MIG in.
|
UNDEFINED_MODE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
OFF_VALUE
Do not automatically scale the MIG in or out.
|
static int |
ON_VALUE
Automatically scale the MIG in and out according to the policy.
|
static int |
ONLY_SCALE_OUT_VALUE
Automatically create VMs according to the policy, but do not scale the MIG in.
|
static int |
ONLY_UP_VALUE
Automatically create VMs according to the policy, but do not scale the MIG in.
|
static int |
UNDEFINED_MODE_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static AutoscalingPolicy.Mode |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<AutoscalingPolicy.Mode> |
internalGetValueMap() |
static AutoscalingPolicy.Mode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static AutoscalingPolicy.Mode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static AutoscalingPolicy.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AutoscalingPolicy.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AutoscalingPolicy.Mode UNDEFINED_MODE
A value indicating that the enum field is not set.
UNDEFINED_MODE = 0;public static final AutoscalingPolicy.Mode OFF
Do not automatically scale the MIG in or out. The recommended_size field contains the size of MIG that would be set if the actuation mode was enabled.
OFF = 78159;public static final AutoscalingPolicy.Mode ON
Automatically scale the MIG in and out according to the policy.
ON = 2527;public static final AutoscalingPolicy.Mode ONLY_SCALE_OUT
Automatically create VMs according to the policy, but do not scale the MIG in.
ONLY_SCALE_OUT = 152713670;public static final AutoscalingPolicy.Mode ONLY_UP
Automatically create VMs according to the policy, but do not scale the MIG in.
ONLY_UP = 478095374;public static final AutoscalingPolicy.Mode UNRECOGNIZED
public static final int UNDEFINED_MODE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_MODE = 0;public static final int OFF_VALUE
Do not automatically scale the MIG in or out. The recommended_size field contains the size of MIG that would be set if the actuation mode was enabled.
OFF = 78159;public static final int ON_VALUE
Automatically scale the MIG in and out according to the policy.
ON = 2527;public static final int ONLY_SCALE_OUT_VALUE
Automatically create VMs according to the policy, but do not scale the MIG in.
ONLY_SCALE_OUT = 152713670;public static final int ONLY_UP_VALUE
Automatically create VMs according to the policy, but do not scale the MIG in.
ONLY_UP = 478095374;public static AutoscalingPolicy.Mode[] values()
for (AutoscalingPolicy.Mode c : AutoscalingPolicy.Mode.values()) System.out.println(c);
public static AutoscalingPolicy.Mode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static AutoscalingPolicy.Mode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static AutoscalingPolicy.Mode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<AutoscalingPolicy.Mode> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static AutoscalingPolicy.Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.