Enum Workstation.State

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

    public static enum Workstation.State
    extends Enum<Workstation.State>
    implements com.google.protobuf.ProtocolMessageEnum
     Whether a workstation is running and ready to receive user requests.
     
    Protobuf enum google.cloud.workstations.v1.Workstation.State
    • Enum Constant Detail

      • STATE_UNSPECIFIED

        public static final Workstation.State STATE_UNSPECIFIED
         Do not use.
         
        STATE_UNSPECIFIED = 0;
      • STATE_STARTING

        public static final Workstation.State STATE_STARTING
         The workstation is not yet ready to accept requests from users but will
         be soon.
         
        STATE_STARTING = 1;
      • STATE_RUNNING

        public static final Workstation.State STATE_RUNNING
         The workstation is ready to accept requests from users.
         
        STATE_RUNNING = 2;
      • STATE_STOPPING

        public static final Workstation.State STATE_STOPPING
         The workstation is being stopped.
         
        STATE_STOPPING = 3;
      • STATE_STOPPED

        public static final Workstation.State STATE_STOPPED
         The workstation is stopped and will not be able to receive requests until
         it is started.
         
        STATE_STOPPED = 4;
    • Field Detail

      • STATE_UNSPECIFIED_VALUE

        public static final int STATE_UNSPECIFIED_VALUE
         Do not use.
         
        STATE_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • STATE_STARTING_VALUE

        public static final int STATE_STARTING_VALUE
         The workstation is not yet ready to accept requests from users but will
         be soon.
         
        STATE_STARTING = 1;
        See Also:
        Constant Field Values
      • STATE_RUNNING_VALUE

        public static final int STATE_RUNNING_VALUE
         The workstation is ready to accept requests from users.
         
        STATE_RUNNING = 2;
        See Also:
        Constant Field Values
      • STATE_STOPPING_VALUE

        public static final int STATE_STOPPING_VALUE
         The workstation is being stopped.
         
        STATE_STOPPING = 3;
        See Also:
        Constant Field Values
      • STATE_STOPPED_VALUE

        public static final int STATE_STOPPED_VALUE
         The workstation is stopped and will not be able to receive requests until
         it is started.
         
        STATE_STOPPED = 4;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Workstation.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 (Workstation.State c : Workstation.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 Workstation.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 Workstation.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 Workstation.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<Workstation.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 Workstation.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