docs: public Job copyTableId(String dataset, String tableName) throws BigQueryException {
      // [START bigquery_copy_table]
      TableId destinationId = TableId.of(dataset, tableName);
      JobOption options = JobOption.fields(JobField.STATUS, JobField.USER_EMAIL);
      Job job = table.copy(destinationId, options);
      // Wait for the job to complete.
      try {
        Job completedJob =
            job.waitFor(
                RetryOption.initialRetryDelay(Duration.ofSeconds(1)),
                RetryOption.totalTimeout(Duration.ofMinutes(3)));
        if (completedJob != null && completedJob.getStatus().getError() == null) {
          // Job completed successfully.
        } else {
          // Handle error case.
        }
      } catch (InterruptedException e) {
        // Handle interrupted wait
      }
      // [END bigquery_copy_table]
      return job;
    }