public static Code forNumber(int value) {
      switch (value) {
        case 0:
          return CODE_UNSPECIFIED;
        case 1:
          return INTERNAL_ERROR;
        case 2:
          return SCAN_CONFIG_ISSUE;
        case 3:
          return AUTHENTICATION_CONFIG_ISSUE;
        case 4:
          return TIMED_OUT_WHILE_SCANNING;
        case 5:
          return TOO_MANY_REDIRECTS;
        case 6:
          return TOO_MANY_HTTP_ERRORS;
        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-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java