Enum QueuedResourceState.State

java.lang.Object
java.lang.Enum<QueuedResourceState.State>
com.google.cloud.tpu.v2.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 enum google.cloud.tpu.v2.QueuedResourceState.State
  • Enum Constant Details

    • 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;
    • WAITING_FOR_RESOURCES

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

      public static final QueuedResourceState.State UNRECOGNIZED
  • Field Details

    • STATE_UNSPECIFIED_VALUE

      public static final int STATE_UNSPECIFIED_VALUE
       State of the QueuedResource request is not known/set.
       
      STATE_UNSPECIFIED = 0;
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • DELETING_VALUE

      public static final int DELETING_VALUE
       The QueuedResource is being deleted.
       
      DELETING = 5;
      See Also:
    • 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:
    • 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:
    • SUSPENDED_VALUE

      public static final int SUSPENDED_VALUE
       The resources specified in the QueuedResource request have been
       deleted.
       
      SUSPENDED = 8;
      See Also:
    • WAITING_FOR_RESOURCES_VALUE

      public static final int WAITING_FOR_RESOURCES_VALUE
       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;
      See Also:
  • Method Details

    • values

      public static QueuedResourceState.State[] 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

      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 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 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 name
      NullPointerException - 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:
      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 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 name
      NullPointerException - if the argument is null