public final class Job
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Dataflow API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Job() |
Modifier and Type | Method and Description |
---|---|
Job |
clone() |
java.lang.String |
getClientRequestId()
The client's unique identifier of the job, re-used across retried attempts.
|
java.lang.String |
getCreatedFromSnapshotId()
If this is specified, the job's initial state is populated from the given snapshot.
|
java.lang.String |
getCreateTime()
The timestamp when the job was initially created.
|
java.lang.String |
getCurrentState()
The current state of the job.
|
java.lang.String |
getCurrentStateTime()
The timestamp associated with the current state.
|
Environment |
getEnvironment()
The environment for the job.
|
JobExecutionInfo |
getExecutionInfo()
Deprecated.
|
java.lang.String |
getId()
The unique ID of this job.
|
JobMetadata |
getJobMetadata()
This field is populated by the Dataflow service to support filtering jobs by the metadata
values provided here.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
User-defined labels for this job.
|
java.lang.String |
getLocation()
The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
that contains this job.
|
java.lang.String |
getName()
The user-specified Cloud Dataflow job name.
|
PipelineDescription |
getPipelineDescription()
Preliminary field: The format of this data may change at any time.
|
java.lang.String |
getProjectId()
The ID of the Cloud Platform project that the job belongs to.
|
java.lang.String |
getReplacedByJobId()
If another job is an update of this job (and thus, this job is in `JOB_STATE_UPDATED`), this
field contains the ID of that job.
|
java.lang.String |
getReplaceJobId()
If this job is an update of an existing job, this field is the job ID of the job it replaced.
|
java.lang.String |
getRequestedState()
The job's requested state.
|
java.util.List<ExecutionStageState> |
getStageStates()
This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
|
java.lang.String |
getStartTime()
The timestamp when the job was started (transitioned to JOB_STATE_PENDING).
|
java.util.List<Step> |
getSteps()
Exactly one of step or steps_location should be specified.
|
java.lang.String |
getStepsLocation()
The GCS location where the steps are stored.
|
java.util.List<java.lang.String> |
getTempFiles()
A set of files the system should be aware of that are used for temporary storage.
|
java.util.Map<java.lang.String,java.lang.String> |
getTransformNameMapping()
The map of transform name prefixes of the job to be replaced to the corresponding name prefixes
of the new job.
|
java.lang.String |
getType()
The type of Cloud Dataflow job.
|
Job |
set(java.lang.String fieldName,
java.lang.Object value) |
Job |
setClientRequestId(java.lang.String clientRequestId)
The client's unique identifier of the job, re-used across retried attempts.
|
Job |
setCreatedFromSnapshotId(java.lang.String createdFromSnapshotId)
If this is specified, the job's initial state is populated from the given snapshot.
|
Job |
setCreateTime(java.lang.String createTime)
The timestamp when the job was initially created.
|
Job |
setCurrentState(java.lang.String currentState)
The current state of the job.
|
Job |
setCurrentStateTime(java.lang.String currentStateTime)
The timestamp associated with the current state.
|
Job |
setEnvironment(Environment environment)
The environment for the job.
|
Job |
setExecutionInfo(JobExecutionInfo executionInfo)
Deprecated.
|
Job |
setId(java.lang.String id)
The unique ID of this job.
|
Job |
setJobMetadata(JobMetadata jobMetadata)
This field is populated by the Dataflow service to support filtering jobs by the metadata
values provided here.
|
Job |
setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
User-defined labels for this job.
|
Job |
setLocation(java.lang.String location)
The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints)
that contains this job.
|
Job |
setName(java.lang.String name)
The user-specified Cloud Dataflow job name.
|
Job |
setPipelineDescription(PipelineDescription pipelineDescription)
Preliminary field: The format of this data may change at any time.
|
Job |
setProjectId(java.lang.String projectId)
The ID of the Cloud Platform project that the job belongs to.
|
Job |
setReplacedByJobId(java.lang.String replacedByJobId)
If another job is an update of this job (and thus, this job is in `JOB_STATE_UPDATED`), this
field contains the ID of that job.
|
Job |
setReplaceJobId(java.lang.String replaceJobId)
If this job is an update of an existing job, this field is the job ID of the job it replaced.
|
Job |
setRequestedState(java.lang.String requestedState)
The job's requested state.
|
Job |
setStageStates(java.util.List<ExecutionStageState> stageStates)
This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
|
Job |
setStartTime(java.lang.String startTime)
The timestamp when the job was started (transitioned to JOB_STATE_PENDING).
|
Job |
setSteps(java.util.List<Step> steps)
Exactly one of step or steps_location should be specified.
|
Job |
setStepsLocation(java.lang.String stepsLocation)
The GCS location where the steps are stored.
|
Job |
setTempFiles(java.util.List<java.lang.String> tempFiles)
A set of files the system should be aware of that are used for temporary storage.
|
Job |
setTransformNameMapping(java.util.Map<java.lang.String,java.lang.String> transformNameMapping)
The map of transform name prefixes of the job to be replaced to the corresponding name prefixes
of the new job.
|
Job |
setType(java.lang.String type)
The type of Cloud Dataflow job.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getClientRequestId()
null
for nonepublic Job setClientRequestId(java.lang.String clientRequestId)
clientRequestId
- clientRequestId or null
for nonepublic java.lang.String getCreateTime()
null
for nonepublic Job setCreateTime(java.lang.String createTime)
createTime
- createTime or null
for nonepublic java.lang.String getCreatedFromSnapshotId()
null
for nonepublic Job setCreatedFromSnapshotId(java.lang.String createdFromSnapshotId)
createdFromSnapshotId
- createdFromSnapshotId or null
for nonepublic java.lang.String getCurrentState()
null
for nonepublic Job setCurrentState(java.lang.String currentState)
currentState
- currentState or null
for nonepublic java.lang.String getCurrentStateTime()
null
for nonepublic Job setCurrentStateTime(java.lang.String currentStateTime)
currentStateTime
- currentStateTime or null
for nonepublic Environment getEnvironment()
null
for nonepublic Job setEnvironment(Environment environment)
environment
- environment or null
for nonepublic JobExecutionInfo getExecutionInfo()
null
for nonepublic Job setExecutionInfo(JobExecutionInfo executionInfo)
executionInfo
- executionInfo or null
for nonepublic java.lang.String getId()
null
for nonepublic Job setId(java.lang.String id)
id
- id or null
for nonepublic JobMetadata getJobMetadata()
null
for nonepublic Job setJobMetadata(JobMetadata jobMetadata)
jobMetadata
- jobMetadata or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getLabels()
null
for nonepublic Job setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
labels
- labels or null
for nonepublic java.lang.String getLocation()
null
for nonepublic Job setLocation(java.lang.String location)
location
- location or null
for nonepublic java.lang.String getName()
null
for nonepublic Job setName(java.lang.String name)
name
- name or null
for nonepublic PipelineDescription getPipelineDescription()
null
for nonepublic Job setPipelineDescription(PipelineDescription pipelineDescription)
pipelineDescription
- pipelineDescription or null
for nonepublic java.lang.String getProjectId()
null
for nonepublic Job setProjectId(java.lang.String projectId)
projectId
- projectId or null
for nonepublic java.lang.String getReplaceJobId()
null
for nonepublic Job setReplaceJobId(java.lang.String replaceJobId)
replaceJobId
- replaceJobId or null
for nonepublic java.lang.String getReplacedByJobId()
null
for nonepublic Job setReplacedByJobId(java.lang.String replacedByJobId)
replacedByJobId
- replacedByJobId or null
for nonepublic java.lang.String getRequestedState()
null
for nonepublic Job setRequestedState(java.lang.String requestedState)
requestedState
- requestedState or null
for nonepublic java.util.List<ExecutionStageState> getStageStates()
null
for nonepublic Job setStageStates(java.util.List<ExecutionStageState> stageStates)
stageStates
- stageStates or null
for nonepublic java.lang.String getStartTime()
null
for nonepublic Job setStartTime(java.lang.String startTime)
startTime
- startTime or null
for nonepublic java.util.List<Step> getSteps()
null
for nonepublic Job setSteps(java.util.List<Step> steps)
steps
- steps or null
for nonepublic java.lang.String getStepsLocation()
null
for nonepublic Job setStepsLocation(java.lang.String stepsLocation)
stepsLocation
- stepsLocation or null
for nonepublic java.util.List<java.lang.String> getTempFiles()
null
for nonepublic Job setTempFiles(java.util.List<java.lang.String> tempFiles)
tempFiles
- tempFiles or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getTransformNameMapping()
null
for nonepublic Job setTransformNameMapping(java.util.Map<java.lang.String,java.lang.String> transformNameMapping)
transformNameMapping
- transformNameMapping or null
for nonepublic java.lang.String getType()
null
for nonepublic Job setType(java.lang.String type)
type
- type or null
for nonepublic Job set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Job clone()
clone
in class com.google.api.client.json.GenericJson