public static State forNumber(int value) {
      switch (value) {
        case 0:
          return STATE_UNSPECIFIED;
        case 3:
          return APPROVED;
        case 4:
          return PROVISIONING;
        case 5:
          return ACTIVE;
        case 6:
          return DEPROVISIONING;
        case 7:
          return EXPIRED;
        case 8:
          return FAILED;
        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/Reservation.java