Package com.google.cloud.workstations.v1
Enum Workstation.State
- java.lang.Object
-
- java.lang.Enum<Workstation.State>
-
- com.google.cloud.workstations.v1.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 enumgoogle.cloud.workstations.v1.Workstation.State
-
-
Enum Constant Summary
Enum Constants Enum Constant Description STATE_RUNNING
The workstation is ready to accept requests from users.STATE_STARTING
The workstation is not yet ready to accept requests from users but will be soon.STATE_STOPPED
The workstation is stopped and will not be able to receive requests until it is started.STATE_STOPPING
The workstation is being stopped.STATE_UNSPECIFIED
Do not use.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
STATE_RUNNING_VALUE
The workstation is ready to accept requests from users.static int
STATE_STARTING_VALUE
The workstation is not yet ready to accept requests from users but will be soon.static int
STATE_STOPPED_VALUE
The workstation is stopped and will not be able to receive requests until it is started.static int
STATE_STOPPING_VALUE
The workstation is being stopped.static int
STATE_UNSPECIFIED_VALUE
Do not use.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Workstation.State
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<Workstation.State>
internalGetValueMap()
static Workstation.State
valueOf(int value)
Deprecated.static Workstation.State
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Workstation.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static Workstation.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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;
-
UNRECOGNIZED
public static final Workstation.State UNRECOGNIZED
-
-
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 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 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 nameNullPointerException
- 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 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 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 nameNullPointerException
- if the argument is null
-
-