com.google.api.services.bigquery.model.Job.setUserEmail()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(265)

本文整理了Java中com.google.api.services.bigquery.model.Job.setUserEmail()方法的一些代码示例,展示了Job.setUserEmail()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Job.setUserEmail()方法的具体详情如下:
包路径:com.google.api.services.bigquery.model.Job
类名称:Job
方法名:setUserEmail

Job.setUserEmail介绍

[英][Output-only] Email address of the user who ran the job.
[中][仅输出]运行作业的用户的电子邮件地址。

代码示例

代码示例来源:origin: googleapis/google-cloud-java

Job toPb() {
 Job jobPb = new Job();
 jobPb.setEtag(etag);
 jobPb.setId(generatedId);
 jobPb.setSelfLink(selfLink);
 jobPb.setUserEmail(userEmail);
 if (jobId != null) {
  jobPb.setJobReference(jobId.toPb());
 }
 if (status != null) {
  jobPb.setStatus(status.toPb());
 }
 if (statistics != null) {
  jobPb.setStatistics(statistics.toPb());
 }
 if (configuration != null) {
  jobPb.setConfiguration(configuration.toPb());
 }
 return jobPb;
}

代码示例来源:origin: googleapis/google-cloud-java

@Override
 public Job apply(JobList.Jobs jobPb) {
  JobStatus statusPb =
    jobPb.getStatus() != null ? jobPb.getStatus() : new JobStatus();
  if (statusPb.getState() == null) {
   statusPb.setState(jobPb.getState());
  }
  if (statusPb.getErrorResult() == null) {
   statusPb.setErrorResult(jobPb.getErrorResult());
  }
  return new Job()
    .setConfiguration(jobPb.getConfiguration())
    .setId(jobPb.getId())
    .setJobReference(jobPb.getJobReference())
    .setKind(jobPb.getKind())
    .setStatistics(jobPb.getStatistics())
    .setStatus(statusPb)
    .setUserEmail(jobPb.getUserEmail());
 }
}));

代码示例来源:origin: com.google.cloud/gcloud-java-bigquery

Job toPb() {
 Job jobPb = new Job();
 jobPb.setEtag(etag);
 jobPb.setId(generatedId);
 jobPb.setSelfLink(selfLink);
 jobPb.setUserEmail(userEmail);
 if (jobId != null) {
  jobPb.setJobReference(jobId.toPb());
 }
 if (status != null) {
  jobPb.setStatus(status.toPb());
 }
 if (statistics != null) {
  jobPb.setStatistics(statistics.toPb());
 }
 jobPb.setConfiguration(configuration.toPb());
 return jobPb;
}

代码示例来源:origin: com.google.gcloud/gcloud-java-bigquery

Job toPb() {
 Job jobPb = new Job();
 jobPb.setEtag(etag);
 jobPb.setId(generatedId);
 jobPb.setSelfLink(selfLink);
 jobPb.setUserEmail(userEmail);
 if (jobId != null) {
  jobPb.setJobReference(jobId.toPb());
 }
 if (status != null) {
  jobPb.setStatus(status.toPb());
 }
 if (statistics != null) {
  jobPb.setStatistics(statistics.toPb());
 }
 jobPb.setConfiguration(configuration.toPb());
 return jobPb;
}

代码示例来源:origin: com.google.cloud/google-cloud-bigquery

Job toPb() {
 Job jobPb = new Job();
 jobPb.setEtag(etag);
 jobPb.setId(generatedId);
 jobPb.setSelfLink(selfLink);
 jobPb.setUserEmail(userEmail);
 if (jobId != null) {
  jobPb.setJobReference(jobId.toPb());
 }
 if (status != null) {
  jobPb.setStatus(status.toPb());
 }
 if (statistics != null) {
  jobPb.setStatistics(statistics.toPb());
 }
 if (configuration != null) {
  jobPb.setConfiguration(configuration.toPb());
 }
 return jobPb;
}

代码示例来源:origin: com.google.cloud/google-cloud-bigquery

@Override
 public Job apply(JobList.Jobs jobPb) {
  JobStatus statusPb =
    jobPb.getStatus() != null ? jobPb.getStatus() : new JobStatus();
  if (statusPb.getState() == null) {
   statusPb.setState(jobPb.getState());
  }
  if (statusPb.getErrorResult() == null) {
   statusPb.setErrorResult(jobPb.getErrorResult());
  }
  return new Job()
    .setConfiguration(jobPb.getConfiguration())
    .setId(jobPb.getId())
    .setJobReference(jobPb.getJobReference())
    .setKind(jobPb.getKind())
    .setStatistics(jobPb.getStatistics())
    .setStatus(statusPb)
    .setUserEmail(jobPb.getUserEmail());
 }
}));

代码示例来源:origin: com.google.gcloud/gcloud-java-bigquery

@Override
 public Job apply(JobList.Jobs jobPb) {
  JobStatus statusPb = jobPb.getStatus() != null
    ? jobPb.getStatus() : new JobStatus();
  if (statusPb.getState() == null) {
   statusPb.setState(jobPb.getState());
  }
  if (statusPb.getErrorResult() == null) {
   statusPb.setErrorResult(jobPb.getErrorResult());
  }
  return new Job()
    .setConfiguration(jobPb.getConfiguration())
    .setId(jobPb.getId())
    .setJobReference(jobPb.getJobReference())
    .setKind(jobPb.getKind())
    .setStatistics(jobPb.getStatistics())
    .setStatus(statusPb)
    .setUserEmail(jobPb.getUserEmail());
 }
}));

代码示例来源:origin: com.google.cloud/gcloud-java-bigquery

@Override
 public Job apply(JobList.Jobs jobPb) {
  JobStatus statusPb = jobPb.getStatus() != null
    ? jobPb.getStatus() : new JobStatus();
  if (statusPb.getState() == null) {
   statusPb.setState(jobPb.getState());
  }
  if (statusPb.getErrorResult() == null) {
   statusPb.setErrorResult(jobPb.getErrorResult());
  }
  return new Job()
    .setConfiguration(jobPb.getConfiguration())
    .setId(jobPb.getId())
    .setJobReference(jobPb.getJobReference())
    .setKind(jobPb.getKind())
    .setStatistics(jobPb.getStatistics())
    .setStatus(statusPb)
    .setUserEmail(jobPb.getUserEmail());
 }
}));

相关文章