Enum 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 enum google.cloud.dataproc.v1.GkeNodePoolTarget.Role
    • 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;
    • 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 name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        NullPointerException - 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 interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        NullPointerException - if the argument is null