public static State forNumber(int value) {
      switch (value) {
        case 0:
          return STATE_UNSPECIFIED;
        case 1:
          return CREATING;
        case 2:
          return READY;
        case 3:
          return RESTARTING;
        case 4:
          return REIMAGING;
        case 5:
          return DELETING;
        case 6:
          return REPAIRING;
        case 8:
          return STOPPED;
        case 9:
          return STOPPING;
        case 10:
          return STARTING;
        case 11:
          return PREEMPTED;
        case 12:
          return TERMINATED;
        case 13:
          return HIDING;
        case 14:
          return HIDDEN;
        case 15:
          return UNHIDING;
        case 16:
          return UNKNOWN;
        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-v1/src/main/java/com/google/cloud/tpu/v1/Node.java