code: public boolean cancelJobFromId(String jobName) {
      // [START ]
      JobId jobId = JobId.of(jobName);
      boolean success = bigquery.cancel(jobId);
      if (success) {
        // job was cancelled
      } else {
        // job was not found
      }
      // [END ]
      return success;
    }
docs: [VARIABLE "my_job_name"]