Package com.google.cloud.dataproc.v1
Enum GkeNodePoolTarget.Role
- java.lang.Object
-
- java.lang.Enum<GkeNodePoolTarget.Role>
-
- com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<GkeNodePoolTarget.Role>
- Enclosing class:
- GkeNodePoolTarget
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 enumgoogle.cloud.dataproc.v1.GkeNodePoolTarget.Role
-
-
Enum Constant Summary
Enum Constants Enum Constant 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
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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(int value)
Deprecated.static GkeNodePoolTarget.Role
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.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.
-
-
-
Enum Constant Detail
-
ROLE_UNSPECIFIED
public static final GkeNodePoolTarget.Role ROLE_UNSPECIFIED
Role is unspecified.
ROLE_UNSPECIFIED = 0;
-
DEFAULT
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;
-
CONTROLLER
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;
-
SPARK_DRIVER
public static final GkeNodePoolTarget.Role SPARK_DRIVER
Run work associated with a Spark driver of a job.
SPARK_DRIVER = 3;
-
SPARK_EXECUTOR
public static final GkeNodePoolTarget.Role SPARK_EXECUTOR
Run work associated with a Spark executor of a job.
SPARK_EXECUTOR = 4;
-
UNRECOGNIZED
public static final GkeNodePoolTarget.Role UNRECOGNIZED
-
-
Field Detail
-
ROLE_UNSPECIFIED_VALUE
public static final int ROLE_UNSPECIFIED_VALUE
Role is unspecified.
ROLE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
DEFAULT_VALUE
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;
- See Also:
- Constant Field Values
-
CONTROLLER_VALUE
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;
- See Also:
- Constant Field Values
-
SPARK_DRIVER_VALUE
public static final int SPARK_DRIVER_VALUE
Run work associated with a Spark driver of a job.
SPARK_DRIVER = 3;
- See Also:
- Constant Field Values
-
SPARK_EXECUTOR_VALUE
public static final int SPARK_EXECUTOR_VALUE
Run work associated with a Spark executor of a job.
SPARK_EXECUTOR = 4;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static GkeNodePoolTarget.Role[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GkeNodePoolTarget.Role c : GkeNodePoolTarget.Role.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GkeNodePoolTarget.Role valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static GkeNodePoolTarget.Role valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static GkeNodePoolTarget.Role forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<GkeNodePoolTarget.Role> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static GkeNodePoolTarget.Role valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-