public static ResultState forNumber(int value) {
      switch (value) {
        case 0:
          return RESULT_STATE_UNSPECIFIED;
        case 1:
          return SUCCESS;
        case 2:
          return ERROR;
        case 3:
          return KILLED;
        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/ScanRun.java