public static HttpMethod forNumber(int value) {
    switch (value) {
      case 0:
        return HTTP_METHOD_UNSPECIFIED;
      case 1:
        return POST;
      case 2:
        return GET;
      case 3:
        return HEAD;
      case 4:
        return PUT;
      case 5:
        return DELETE;
      case 6:
        return PATCH;
      case 7:
        return OPTIONS;
      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-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/HttpMethod.java