public static enum InstanceGroupConfig.Preemptibility extends Enum<InstanceGroupConfig.Preemptibility> implements ProtocolMessageEnum
Controls the use of [preemptible instances] (https://cloud.google.com/compute/docs/instances/preemptible) within the group.Protobuf enum
google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility
Enum Constant and Description |
---|
NON_PREEMPTIBLE
Instances are non-preemptible.
|
PREEMPTIBILITY_UNSPECIFIED
Preemptibility is unspecified, the system will choose the
appropriate setting for each instance group.
|
PREEMPTIBLE
Instances are preemptible.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
NON_PREEMPTIBLE_VALUE
Instances are non-preemptible.
|
static int |
PREEMPTIBILITY_UNSPECIFIED_VALUE
Preemptibility is unspecified, the system will choose the
appropriate setting for each instance group.
|
static int |
PREEMPTIBLE_VALUE
Instances are preemptible.
|
Modifier and Type | Method and Description |
---|---|
static InstanceGroupConfig.Preemptibility |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<InstanceGroupConfig.Preemptibility> |
internalGetValueMap() |
static InstanceGroupConfig.Preemptibility |
valueOf(Descriptors.EnumValueDescriptor desc) |
static InstanceGroupConfig.Preemptibility |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static InstanceGroupConfig.Preemptibility |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InstanceGroupConfig.Preemptibility[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InstanceGroupConfig.Preemptibility PREEMPTIBILITY_UNSPECIFIED
Preemptibility is unspecified, the system will choose the appropriate setting for each instance group.
PREEMPTIBILITY_UNSPECIFIED = 0;
public static final InstanceGroupConfig.Preemptibility NON_PREEMPTIBLE
Instances are non-preemptible. This option is allowed for all instance groups and is the only valid value for Master and Worker instance groups.
NON_PREEMPTIBLE = 1;
public static final InstanceGroupConfig.Preemptibility PREEMPTIBLE
Instances are preemptible. This option is allowed only for secondary worker groups.
PREEMPTIBLE = 2;
public static final InstanceGroupConfig.Preemptibility UNRECOGNIZED
public static final int PREEMPTIBILITY_UNSPECIFIED_VALUE
Preemptibility is unspecified, the system will choose the appropriate setting for each instance group.
PREEMPTIBILITY_UNSPECIFIED = 0;
public static final int NON_PREEMPTIBLE_VALUE
Instances are non-preemptible. This option is allowed for all instance groups and is the only valid value for Master and Worker instance groups.
NON_PREEMPTIBLE = 1;
public static final int PREEMPTIBLE_VALUE
Instances are preemptible. This option is allowed only for secondary worker groups.
PREEMPTIBLE = 2;
public static InstanceGroupConfig.Preemptibility[] values()
for (InstanceGroupConfig.Preemptibility c : InstanceGroupConfig.Preemptibility.values()) System.out.println(c);
public static InstanceGroupConfig.Preemptibility 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 Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static InstanceGroupConfig.Preemptibility valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static InstanceGroupConfig.Preemptibility forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<InstanceGroupConfig.Preemptibility> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static InstanceGroupConfig.Preemptibility valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.