public abstract class JobId extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
JobId.Builder |
Modifier and Type | Method and Description |
---|---|
abstract String |
getJob()
Returns the job's id.
|
abstract String |
getLocation()
Returns the job's location.
|
abstract String |
getProject()
Returns job's project id.
|
static JobId.Builder |
newBuilder() |
static JobId |
of()
Creates a job identity with autogenerated id and no project specified.
|
static JobId |
of(String job)
Creates a job identity given only its user-defined id.
|
static JobId |
of(String project,
String job)
Creates a job identity given project's and job's user-defined id.
|
abstract JobId.Builder |
toBuilder() |
@Nullable public abstract String getProject()
When sending requests with null project, the client will attempt to infer the project name from the environment.
@Nullable public abstract String getJob()
The server returns null job id for dry-run queries.
@Nullable public abstract String getLocation()
When sending requests, the location must be specified for jobs whose location not "US" or "EU".
public abstract JobId.Builder toBuilder()
public static JobId.Builder newBuilder()
public static JobId of(String project, String job)
public static JobId of()
Copyright © 2019 Google LLC. All rights reserved.