public static enum GkeNodePoolTarget.Role extends Enum<GkeNodePoolTarget.Role> implements ProtocolMessageEnum
`Role` specifies whose tasks will run on the NodePool. The roles can be specific to workloads. Exactly one GkeNodePoolTarget within the VirtualCluster must have 'default' role, which is used to run all workloads that are not associated with a NodePool.Protobuf enum
google.cloud.dataproc.v1.GkeNodePoolTarget.Role
Enum Constant and Description |
---|
CONTROLLER
Run controllers and webhooks.
|
DEFAULT
Any roles that are not directly assigned to a NodePool run on the
`default` role's NodePool.
|
ROLE_UNSPECIFIED
Role is unspecified.
|
SPARK_DRIVER
Run spark driver.
|
SPARK_EXECUTOR
Run spark executors.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CONTROLLER_VALUE
Run controllers and webhooks.
|
static int |
DEFAULT_VALUE
Any roles that are not directly assigned to a NodePool run on the
`default` role's NodePool.
|
static int |
ROLE_UNSPECIFIED_VALUE
Role is unspecified.
|
static int |
SPARK_DRIVER_VALUE
Run spark driver.
|
static int |
SPARK_EXECUTOR_VALUE
Run spark executors.
|
Modifier and Type | Method and Description |
---|---|
static GkeNodePoolTarget.Role |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<GkeNodePoolTarget.Role> |
internalGetValueMap() |
static GkeNodePoolTarget.Role |
valueOf(Descriptors.EnumValueDescriptor desc) |
static GkeNodePoolTarget.Role |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static GkeNodePoolTarget.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GkeNodePoolTarget.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GkeNodePoolTarget.Role ROLE_UNSPECIFIED
Role is unspecified.
ROLE_UNSPECIFIED = 0;
public static final GkeNodePoolTarget.Role DEFAULT
Any roles that are not directly assigned to a NodePool run on the `default` role's NodePool.
DEFAULT = 1;
public static final GkeNodePoolTarget.Role CONTROLLER
Run controllers and webhooks.
CONTROLLER = 2;
public static final GkeNodePoolTarget.Role SPARK_DRIVER
Run spark driver.
SPARK_DRIVER = 3;
public static final GkeNodePoolTarget.Role SPARK_EXECUTOR
Run spark executors.
SPARK_EXECUTOR = 4;
public static final GkeNodePoolTarget.Role UNRECOGNIZED
public static final int ROLE_UNSPECIFIED_VALUE
Role is unspecified.
ROLE_UNSPECIFIED = 0;
public static final int DEFAULT_VALUE
Any roles that are not directly assigned to a NodePool run on the `default` role's NodePool.
DEFAULT = 1;
public static final int CONTROLLER_VALUE
Run controllers and webhooks.
CONTROLLER = 2;
public static final int SPARK_DRIVER_VALUE
Run spark driver.
SPARK_DRIVER = 3;
public static final int SPARK_EXECUTOR_VALUE
Run spark executors.
SPARK_EXECUTOR = 4;
public static GkeNodePoolTarget.Role[] values()
for (GkeNodePoolTarget.Role c : GkeNodePoolTarget.Role.values()) System.out.println(c);
public static GkeNodePoolTarget.Role 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 GkeNodePoolTarget.Role valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static GkeNodePoolTarget.Role forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<GkeNodePoolTarget.Role> 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 GkeNodePoolTarget.Role valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.