public static enum GkeNodePoolTarget.Role extends Enum<GkeNodePoolTarget.Role> implements com.google.protobuf.ProtocolMessageEnum
`Role` specifies the tasks that will run on the node pool. Roles can be specific to workloads. Exactly one [GkeNodePoolTarget][google.cloud.dataproc.v1.GkeNodePoolTarget] within the virtual cluster must have the `DEFAULT` role, which is used to run all workloads that are not associated with a node pool.Protobuf enum
google.cloud.dataproc.v1.GkeNodePoolTarget.Role| Enum Constant and Description |
|---|
CONTROLLER
Run work associated with the Dataproc control plane (for example,
controllers and webhooks).
|
DEFAULT
At least one node pool must have the `DEFAULT` role.
|
ROLE_UNSPECIFIED
Role is unspecified.
|
SPARK_DRIVER
Run work associated with a Spark driver of a job.
|
SPARK_EXECUTOR
Run work associated with a Spark executor of a job.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTROLLER_VALUE
Run work associated with the Dataproc control plane (for example,
controllers and webhooks).
|
static int |
DEFAULT_VALUE
At least one node pool must have the `DEFAULT` role.
|
static int |
ROLE_UNSPECIFIED_VALUE
Role is unspecified.
|
static int |
SPARK_DRIVER_VALUE
Run work associated with a Spark driver of a job.
|
static int |
SPARK_EXECUTOR_VALUE
Run work associated with a Spark executor of a job.
|
| Modifier and Type | Method and Description |
|---|---|
static GkeNodePoolTarget.Role |
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<GkeNodePoolTarget.Role> |
internalGetValueMap() |
static GkeNodePoolTarget.Role |
valueOf(com.google.protobuf.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
At least one node pool must have the `DEFAULT` role. Work assigned to a role that is not associated with a node pool is assigned to the node pool with the `DEFAULT` role. For example, work assigned to the `CONTROLLER` role will be assigned to the node pool with the `DEFAULT` role if no node pool has the `CONTROLLER` role.
DEFAULT = 1;public static final GkeNodePoolTarget.Role CONTROLLER
Run work associated with the Dataproc control plane (for example, controllers and webhooks). Very low resource requirements.
CONTROLLER = 2;public static final GkeNodePoolTarget.Role SPARK_DRIVER
Run work associated with a Spark driver of a job.
SPARK_DRIVER = 3;public static final GkeNodePoolTarget.Role SPARK_EXECUTOR
Run work associated with a Spark executor of a job.
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
At least one node pool must have the `DEFAULT` role. Work assigned to a role that is not associated with a node pool is assigned to the node pool with the `DEFAULT` role. For example, work assigned to the `CONTROLLER` role will be assigned to the node pool with the `DEFAULT` role if no node pool has the `CONTROLLER` role.
DEFAULT = 1;public static final int CONTROLLER_VALUE
Run work associated with the Dataproc control plane (for example, controllers and webhooks). Very low resource requirements.
CONTROLLER = 2;public static final int SPARK_DRIVER_VALUE
Run work associated with a Spark driver of a job.
SPARK_DRIVER = 3;public static final int SPARK_EXECUTOR_VALUE
Run work associated with a Spark executor of a job.
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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.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 com.google.protobuf.Internal.EnumLiteMap<GkeNodePoolTarget.Role> 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 GkeNodePoolTarget.Role valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.