Enum ClusterStatus.State

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ClusterStatus.State>
    Enclosing class:
    ClusterStatus

    public static enum ClusterStatus.State
    extends Enum<ClusterStatus.State>
    implements com.google.protobuf.ProtocolMessageEnum
     The cluster state.
     
    Protobuf enum google.cloud.dataproc.v1.ClusterStatus.State
    • Enum Constant Detail

      • UNKNOWN

        public static final ClusterStatus.State UNKNOWN
         The cluster state is unknown.
         
        UNKNOWN = 0;
      • CREATING

        public static final ClusterStatus.State CREATING
         The cluster is being created and set up. It is not ready for use.
         
        CREATING = 1;
      • RUNNING

        public static final ClusterStatus.State RUNNING
         The cluster is currently running and healthy. It is ready for use.
        
         **Note:** The cluster state changes from "creating" to "running" status
         after the master node(s), first two primary worker nodes (and the last
         primary worker node if primary workers > 2) are running.
         
        RUNNING = 2;
      • ERROR

        public static final ClusterStatus.State ERROR
         The cluster encountered an error. It is not ready for use.
         
        ERROR = 3;
      • ERROR_DUE_TO_UPDATE

        public static final ClusterStatus.State ERROR_DUE_TO_UPDATE
         The cluster has encountered an error while being updated. Jobs can
         be submitted to the cluster, but the cluster cannot be updated.
         
        ERROR_DUE_TO_UPDATE = 9;
      • DELETING

        public static final ClusterStatus.State DELETING
         The cluster is being deleted. It cannot be used.
         
        DELETING = 4;
      • UPDATING

        public static final ClusterStatus.State UPDATING
         The cluster is being updated. It continues to accept and process jobs.
         
        UPDATING = 5;
      • STOPPING

        public static final ClusterStatus.State STOPPING
         The cluster is being stopped. It cannot be used.
         
        STOPPING = 6;
      • STOPPED

        public static final ClusterStatus.State STOPPED
         The cluster is currently stopped. It is not ready for use.
         
        STOPPED = 7;
      • STARTING

        public static final ClusterStatus.State STARTING
         The cluster is being started. It is not ready for use.
         
        STARTING = 8;
      • REPAIRING

        public static final ClusterStatus.State REPAIRING
         The cluster is being repaired. It is not ready for use.
         
        REPAIRING = 10;
    • Field Detail

      • UNKNOWN_VALUE

        public static final int UNKNOWN_VALUE
         The cluster state is unknown.
         
        UNKNOWN = 0;
        See Also:
        Constant Field Values
      • CREATING_VALUE

        public static final int CREATING_VALUE
         The cluster is being created and set up. It is not ready for use.
         
        CREATING = 1;
        See Also:
        Constant Field Values
      • RUNNING_VALUE

        public static final int RUNNING_VALUE
         The cluster is currently running and healthy. It is ready for use.
        
         **Note:** The cluster state changes from "creating" to "running" status
         after the master node(s), first two primary worker nodes (and the last
         primary worker node if primary workers > 2) are running.
         
        RUNNING = 2;
        See Also:
        Constant Field Values
      • ERROR_VALUE

        public static final int ERROR_VALUE
         The cluster encountered an error. It is not ready for use.
         
        ERROR = 3;
        See Also:
        Constant Field Values
      • ERROR_DUE_TO_UPDATE_VALUE

        public static final int ERROR_DUE_TO_UPDATE_VALUE
         The cluster has encountered an error while being updated. Jobs can
         be submitted to the cluster, but the cluster cannot be updated.
         
        ERROR_DUE_TO_UPDATE = 9;
        See Also:
        Constant Field Values
      • DELETING_VALUE

        public static final int DELETING_VALUE
         The cluster is being deleted. It cannot be used.
         
        DELETING = 4;
        See Also:
        Constant Field Values
      • UPDATING_VALUE

        public static final int UPDATING_VALUE
         The cluster is being updated. It continues to accept and process jobs.
         
        UPDATING = 5;
        See Also:
        Constant Field Values
      • STOPPING_VALUE

        public static final int STOPPING_VALUE
         The cluster is being stopped. It cannot be used.
         
        STOPPING = 6;
        See Also:
        Constant Field Values
      • STOPPED_VALUE

        public static final int STOPPED_VALUE
         The cluster is currently stopped. It is not ready for use.
         
        STOPPED = 7;
        See Also:
        Constant Field Values
      • STARTING_VALUE

        public static final int STARTING_VALUE
         The cluster is being started. It is not ready for use.
         
        STARTING = 8;
        See Also:
        Constant Field Values
      • REPAIRING_VALUE

        public static final int REPAIRING_VALUE
         The cluster is being repaired. It is not ready for use.
         
        REPAIRING = 10;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static ClusterStatus.State[] 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 (ClusterStatus.State c : ClusterStatus.State.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClusterStatus.State 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 ClusterStatus.State 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 ClusterStatus.State 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<ClusterStatus.State> 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 ClusterStatus.State 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