public static State forNumber(int value) {
      switch (value) {
        case 0:
          return STATE_UNSPECIFIED;
        case 1:
          return CREATING;
        case 2:
          return ACCEPTED;
        case 3:
          return PROVISIONING;
        case 4:
          return FAILED;
        case 5:
          return DELETING;
        case 6:
          return ACTIVE;
        case 7:
          return SUSPENDING;
        case 8:
          return SUSPENDED;
        case 9:
          return WAITING_FOR_RESOURCES;
        default:
          return null;
      }
    }
@param value The numeric wire value of the corresponding enum entry.
@return The enum associated with the given numeric wire value.
java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceState.java