Package com.google.cloud.tpu.v2alpha1
Enum QueuedResourceState.State
- java.lang.Object
-
- java.lang.Enum<QueuedResourceState.State>
-
- com.google.cloud.tpu.v2alpha1.QueuedResourceState.State
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<QueuedResourceState.State>
- Enclosing class:
- QueuedResourceState
public static enum QueuedResourceState.State extends Enum<QueuedResourceState.State> implements com.google.protobuf.ProtocolMessageEnum
Output only state of the request
Protobuf enumgoogle.cloud.tpu.v2alpha1.QueuedResourceState.State
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTEDThe QueuedResource request has passed initial validation/admission control and has been persisted in the queue.ACTIVEThe resources specified in the QueuedResource request have been provisioned and are ready for use by the end-user/consumer.CREATINGThe QueuedResource request has been received.DELETINGThe QueuedResource is being deleted.FAILEDThe request could not be completed.PROVISIONINGThe QueuedResource request has been selected.STATE_UNSPECIFIEDState of the QueuedResource request is not known/set.SUSPENDEDThe resources specified in the QueuedResource request have been deleted.SUSPENDINGThe resources specified in the QueuedResource request are being deleted.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intACCEPTED_VALUEThe QueuedResource request has passed initial validation/admission control and has been persisted in the queue.static intACTIVE_VALUEThe resources specified in the QueuedResource request have been provisioned and are ready for use by the end-user/consumer.static intCREATING_VALUEThe QueuedResource request has been received.static intDELETING_VALUEThe QueuedResource is being deleted.static intFAILED_VALUEThe request could not be completed.static intPROVISIONING_VALUEThe QueuedResource request has been selected.static intSTATE_UNSPECIFIED_VALUEState of the QueuedResource request is not known/set.static intSUSPENDED_VALUEThe resources specified in the QueuedResource request have been deleted.static intSUSPENDING_VALUEThe resources specified in the QueuedResource request are being deleted.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static QueuedResourceState.StateforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<QueuedResourceState.State>internalGetValueMap()static QueuedResourceState.StatevalueOf(int value)Deprecated.static QueuedResourceState.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static QueuedResourceState.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static QueuedResourceState.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 QueuedResourceState.State STATE_UNSPECIFIED
State of the QueuedResource request is not known/set.
STATE_UNSPECIFIED = 0;
-
CREATING
public static final QueuedResourceState.State CREATING
The QueuedResource request has been received. We're still working on determining if we will be able to honor this request.
CREATING = 1;
-
ACCEPTED
public static final QueuedResourceState.State ACCEPTED
The QueuedResource request has passed initial validation/admission control and has been persisted in the queue.
ACCEPTED = 2;
-
PROVISIONING
public static final QueuedResourceState.State PROVISIONING
The QueuedResource request has been selected. The associated resources are currently being provisioned (or very soon will begin provisioning).
PROVISIONING = 3;
-
FAILED
public static final QueuedResourceState.State FAILED
The request could not be completed. This may be due to some late-discovered problem with the request itself, or due to unavailability of resources within the constraints of the request (e.g., the 'valid until' start timing constraint expired).
FAILED = 4;
-
DELETING
public static final QueuedResourceState.State DELETING
The QueuedResource is being deleted.
DELETING = 5;
-
ACTIVE
public static final QueuedResourceState.State ACTIVE
The resources specified in the QueuedResource request have been provisioned and are ready for use by the end-user/consumer.
ACTIVE = 6;
-
SUSPENDING
public static final QueuedResourceState.State SUSPENDING
The resources specified in the QueuedResource request are being deleted. This may have been initiated by the user, or the Cloud TPU service. Inspect the state data for more details.
SUSPENDING = 7;
-
SUSPENDED
public static final QueuedResourceState.State SUSPENDED
The resources specified in the QueuedResource request have been deleted.
SUSPENDED = 8;
-
UNRECOGNIZED
public static final QueuedResourceState.State UNRECOGNIZED
-
-
Field Detail
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUE
State of the QueuedResource request is not known/set.
STATE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
CREATING_VALUE
public static final int CREATING_VALUE
The QueuedResource request has been received. We're still working on determining if we will be able to honor this request.
CREATING = 1;- See Also:
- Constant Field Values
-
ACCEPTED_VALUE
public static final int ACCEPTED_VALUE
The QueuedResource request has passed initial validation/admission control and has been persisted in the queue.
ACCEPTED = 2;- See Also:
- Constant Field Values
-
PROVISIONING_VALUE
public static final int PROVISIONING_VALUE
The QueuedResource request has been selected. The associated resources are currently being provisioned (or very soon will begin provisioning).
PROVISIONING = 3;- See Also:
- Constant Field Values
-
FAILED_VALUE
public static final int FAILED_VALUE
The request could not be completed. This may be due to some late-discovered problem with the request itself, or due to unavailability of resources within the constraints of the request (e.g., the 'valid until' start timing constraint expired).
FAILED = 4;- See Also:
- Constant Field Values
-
DELETING_VALUE
public static final int DELETING_VALUE
The QueuedResource is being deleted.
DELETING = 5;- See Also:
- Constant Field Values
-
ACTIVE_VALUE
public static final int ACTIVE_VALUE
The resources specified in the QueuedResource request have been provisioned and are ready for use by the end-user/consumer.
ACTIVE = 6;- See Also:
- Constant Field Values
-
SUSPENDING_VALUE
public static final int SUSPENDING_VALUE
The resources specified in the QueuedResource request are being deleted. This may have been initiated by the user, or the Cloud TPU service. Inspect the state data for more details.
SUSPENDING = 7;- See Also:
- Constant Field Values
-
SUSPENDED_VALUE
public static final int SUSPENDED_VALUE
The resources specified in the QueuedResource request have been deleted.
SUSPENDED = 8;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static QueuedResourceState.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 (QueuedResourceState.State c : QueuedResourceState.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 QueuedResourceState.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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static QueuedResourceState.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 QueuedResourceState.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<QueuedResourceState.State> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static QueuedResourceState.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
-
-