public static Code forNumber(int value) {
      switch (value) {
        case 0:
          return CODE_UNSPECIFIED;
        case 1:
          return INTERNAL_ERROR;
        case 2:
          return APPENGINE_API_BACKEND_ERROR;
        case 3:
          return APPENGINE_API_NOT_ACCESSIBLE;
        case 4:
          return APPENGINE_DEFAULT_HOST_MISSING;
        case 6:
          return CANNOT_USE_GOOGLE_COM_ACCOUNT;
        case 7:
          return CANNOT_USE_OWNER_ACCOUNT;
        case 8:
          return COMPUTE_API_BACKEND_ERROR;
        case 9:
          return COMPUTE_API_NOT_ACCESSIBLE;
        case 10:
          return CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT;
        case 11:
          return CUSTOM_LOGIN_URL_MALFORMED;
        case 12:
          return CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS;
        case 13:
          return CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS;
        case 14:
          return CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS;
        case 15:
          return CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS;
        case 16:
          return DUPLICATE_SCAN_NAME;
        case 18:
          return INVALID_FIELD_VALUE;
        case 19:
          return FAILED_TO_AUTHENTICATE_TO_TARGET;
        case 20:
          return FINDING_TYPE_UNSPECIFIED;
        case 21:
          return FORBIDDEN_TO_SCAN_COMPUTE;
        case 43:
          return FORBIDDEN_UPDATE_TO_MANAGED_SCAN;
        case 22:
          return MALFORMED_FILTER;
        case 23:
          return MALFORMED_RESOURCE_NAME;
        case 24:
          return PROJECT_INACTIVE;
        case 25:
          return REQUIRED_FIELD;
        case 26:
          return RESOURCE_NAME_INCONSISTENT;
        case 27:
          return SCAN_ALREADY_RUNNING;
        case 28:
          return SCAN_NOT_RUNNING;
        case 29:
          return SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT;
        case 30:
          return SEED_URL_MALFORMED;
        case 31:
          return SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS;
        case 32:
          return SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS;
        case 33:
          return SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS;
        case 35:
          return SEED_URL_HAS_UNRESERVED_IP_ADDRESS;
        case 36:
          return SERVICE_ACCOUNT_NOT_CONFIGURED;
        case 37:
          return TOO_MANY_SCANS;
        case 38:
          return UNABLE_TO_RESOLVE_PROJECT_INFO;
        case 39:
          return UNSUPPORTED_BLACKLIST_PATTERN_FORMAT;
        case 40:
          return UNSUPPORTED_FILTER;
        case 41:
          return UNSUPPORTED_FINDING_TYPE;
        case 42:
          return UNSUPPORTED_URL_SCHEME;
        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-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java