public static enum Scheduling.InstanceTerminationAction extends Enum<Scheduling.InstanceTerminationAction> implements com.google.protobuf.ProtocolMessageEnum
Specifies the termination action for the instance.Protobuf enum
google.cloud.compute.v1.Scheduling.InstanceTerminationAction| Enum Constant and Description |
|---|
DELETE
Delete the VM.
|
INSTANCE_TERMINATION_ACTION_UNSPECIFIED
Default value.
|
STOP
Stop the VM without storing in-memory content.
|
UNDEFINED_INSTANCE_TERMINATION_ACTION
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DELETE_VALUE
Delete the VM.
|
static int |
INSTANCE_TERMINATION_ACTION_UNSPECIFIED_VALUE
Default value.
|
static int |
STOP_VALUE
Stop the VM without storing in-memory content.
|
static int |
UNDEFINED_INSTANCE_TERMINATION_ACTION_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static Scheduling.InstanceTerminationAction |
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<Scheduling.InstanceTerminationAction> |
internalGetValueMap() |
static Scheduling.InstanceTerminationAction |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Scheduling.InstanceTerminationAction |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Scheduling.InstanceTerminationAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Scheduling.InstanceTerminationAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scheduling.InstanceTerminationAction UNDEFINED_INSTANCE_TERMINATION_ACTION
A value indicating that the enum field is not set.
UNDEFINED_INSTANCE_TERMINATION_ACTION = 0;public static final Scheduling.InstanceTerminationAction DELETE
Delete the VM.
DELETE = 402225579;public static final Scheduling.InstanceTerminationAction INSTANCE_TERMINATION_ACTION_UNSPECIFIED
Default value. This value is unused.
INSTANCE_TERMINATION_ACTION_UNSPECIFIED = 92954803;public static final Scheduling.InstanceTerminationAction STOP
Stop the VM without storing in-memory content. default action.
STOP = 2555906;public static final Scheduling.InstanceTerminationAction UNRECOGNIZED
public static final int UNDEFINED_INSTANCE_TERMINATION_ACTION_VALUE
A value indicating that the enum field is not set.
UNDEFINED_INSTANCE_TERMINATION_ACTION = 0;public static final int DELETE_VALUE
Delete the VM.
DELETE = 402225579;public static final int INSTANCE_TERMINATION_ACTION_UNSPECIFIED_VALUE
Default value. This value is unused.
INSTANCE_TERMINATION_ACTION_UNSPECIFIED = 92954803;public static final int STOP_VALUE
Stop the VM without storing in-memory content. default action.
STOP = 2555906;public static Scheduling.InstanceTerminationAction[] values()
for (Scheduling.InstanceTerminationAction c : Scheduling.InstanceTerminationAction.values()) System.out.println(c);
public static Scheduling.InstanceTerminationAction 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 Scheduling.InstanceTerminationAction valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Scheduling.InstanceTerminationAction forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Scheduling.InstanceTerminationAction> 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 Scheduling.InstanceTerminationAction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.