/** * Requests that a job be cancelled. This call will return immediately, and the client will need to * poll for the job status to see if the cancel completed successfully. Cancelled jobs may still * incur costs. * * Create a request for the method "jobs.cancel". * * This request holds the parameters needed by the bigquery server. After setting any optional * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * * @param projectId [Required] Project ID of the job to cancel * @param jobId [Required] Job ID of the job to cancel * @return the request */ public Cancel cancel(java.lang.String projectId, java.lang.String jobId) throws java.io.IOException { Cancel result = new Cancel(projectId, jobId); initialize(result); return result; }