Package com.google.cloud.tpu.v2
Enum 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 requestProtobuf enum
google.cloud.tpu.v2.QueuedResourceState.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe QueuedResource request has passed initial validation/admission control and has been persisted in the queue.The resources specified in the QueuedResource request have been provisioned and are ready for use by the end-user/consumer.The QueuedResource request has been received.The QueuedResource is being deleted.The request could not be completed.The QueuedResource request has been selected.State of the QueuedResource request is not known/set.The resources specified in the QueuedResource request have been deleted.The resources specified in the QueuedResource request are being deleted.The QueuedResource request has passed initial validation and has been persisted in the queue. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe QueuedResource request has passed initial validation/admission control and has been persisted in the queue.static final intThe resources specified in the QueuedResource request have been provisioned and are ready for use by the end-user/consumer.static final intThe QueuedResource request has been received.static final intThe QueuedResource is being deleted.static final intThe request could not be completed.static final intThe QueuedResource request has been selected.static final intState of the QueuedResource request is not known/set.static final intThe resources specified in the QueuedResource request have been deleted.static final intThe resources specified in the QueuedResource request are being deleted.static final intThe QueuedResource request has passed initial validation and has been persisted in the queue. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueuedResourceState.StateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<QueuedResourceState.State>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.StateReturns 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 Details
-
STATE_UNSPECIFIED
State of the QueuedResource request is not known/set.
STATE_UNSPECIFIED = 0; -
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
The QueuedResource request has passed initial validation/admission control and has been persisted in the queue.
ACCEPTED = 2; -
PROVISIONING
The QueuedResource request has been selected. The associated resources are currently being provisioned (or very soon will begin provisioning).
PROVISIONING = 3; -
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
The QueuedResource is being deleted.
DELETING = 5; -
ACTIVE
The resources specified in the QueuedResource request have been provisioned and are ready for use by the end-user/consumer.
ACTIVE = 6; -
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
The resources specified in the QueuedResource request have been deleted.
SUSPENDED = 8; -
WAITING_FOR_RESOURCES
The QueuedResource request has passed initial validation and has been persisted in the queue. It will remain in this state until there are sufficient free resources to begin provisioning your request. Wait times will vary significantly depending on demand levels. When demand is high, not all requests can be immediately provisioned. If you need more reliable obtainability of TPUs consider purchasing a reservation. To put a limit on how long you are willing to wait, use [timing constraints](https://cloud.google.com/tpu/docs/queued-resources#request_a_queued_resource_before_a_specified_time).
WAITING_FOR_RESOURCES = 9; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEState of the QueuedResource request is not known/set.
STATE_UNSPECIFIED = 0;- See Also:
-
CREATING_VALUE
public static final int CREATING_VALUEThe QueuedResource request has been received. We're still working on determining if we will be able to honor this request.
CREATING = 1;- See Also:
-
ACCEPTED_VALUE
public static final int ACCEPTED_VALUEThe QueuedResource request has passed initial validation/admission control and has been persisted in the queue.
ACCEPTED = 2;- See Also:
-
PROVISIONING_VALUE
public static final int PROVISIONING_VALUEThe QueuedResource request has been selected. The associated resources are currently being provisioned (or very soon will begin provisioning).
PROVISIONING = 3;- See Also:
-
FAILED_VALUE
public static final int FAILED_VALUEThe 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:
-
DELETING_VALUE
public static final int DELETING_VALUEThe QueuedResource is being deleted.
DELETING = 5;- See Also:
-
ACTIVE_VALUE
public static final int ACTIVE_VALUEThe resources specified in the QueuedResource request have been provisioned and are ready for use by the end-user/consumer.
ACTIVE = 6;- See Also:
-
SUSPENDING_VALUE
public static final int SUSPENDING_VALUEThe 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:
-
SUSPENDED_VALUE
public static final int SUSPENDED_VALUEThe resources specified in the QueuedResource request have been deleted.
SUSPENDED = 8;- See Also:
-
WAITING_FOR_RESOURCES_VALUE
public static final int WAITING_FOR_RESOURCES_VALUEThe QueuedResource request has passed initial validation and has been persisted in the queue. It will remain in this state until there are sufficient free resources to begin provisioning your request. Wait times will vary significantly depending on demand levels. When demand is high, not all requests can be immediately provisioned. If you need more reliable obtainability of TPUs consider purchasing a reservation. To put a limit on how long you are willing to wait, use [timing constraints](https://cloud.google.com/tpu/docs/queued-resources#request_a_queued_resource_before_a_specified_time).
WAITING_FOR_RESOURCES = 9;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- 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 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
-