Reference documentation and code samples for the Google Cloud Dataflow V1beta3 Client class Job.
Defines a job to be run by the Cloud Dataflow service. Do not enter confidential information when you supply string values using the API.
Generated from protobuf message google.dataflow.v1beta3.Job
Namespace
Google \ Cloud \ Dataflow \ V1beta3Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ id
string
The unique ID of this job. This field is set by the Dataflow service when the job is created, and is immutable for the life of the job.
↳ project_id
string
The ID of the Google Cloud project that the job belongs to.
↳ name
string
Optional. The user-specified Dataflow job name. Only one active job with a given name can exist in a project within one region at any given time. Jobs in different regions can have the same name. If a caller attempts to create a job with the same name as an active job that already exists, the attempt returns the existing job. The name must match the regular expression [a-z]([-a-z0-9]{0,1022}[a-z0-9])?
↳ type
int
Optional. The type of Dataflow job.
↳ environment
↳ steps
array< Step
>
Exactly one of step or steps_location should be specified. The top-level steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL.
↳ steps_location
string
The Cloud Storage location where the steps are stored.
↳ current_state
int
The current state of the job. Jobs are created in the JOB_STATE_STOPPED
state unless otherwise specified. A job in the JOB_STATE_RUNNING
state may asynchronously enter a terminal state. After a job has reached a terminal state, no further state updates may be made. This field might be mutated by the Dataflow service; callers cannot mutate it.
↳ current_state_time
↳ requested_state
int
The job's requested state. Applies to UpdateJob
requests. Set requested_state
with UpdateJob
requests to switch between the states JOB_STATE_STOPPED
and JOB_STATE_RUNNING
. You can also use UpdateJob
requests to change a job's state from JOB_STATE_RUNNING
to JOB_STATE_CANCELLED
, JOB_STATE_DONE
, or JOB_STATE_DRAINED
. These states irrevocably terminate the job if it hasn't already reached a terminal state. This field has no effect on CreateJob
requests.
↳ execution_info
↳ create_time
Google\Protobuf\Timestamp
The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
↳ replace_job_id
string
If this job is an update of an existing job, this field is the job ID of the job it replaced. When sending a CreateJobRequest
, you can update a job by specifying it here. The job named here is stopped, and its intermediate state is transferred to this job.
↳ transform_name_mapping
array| Google\Protobuf\Internal\MapField
Optional. The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
↳ client_request_id
string
The client's unique identifier of the job, re-used across retried attempts. If this field is set, the service will ensure its uniqueness. The request to create a job will fail if the service has knowledge of a previously submitted job with the same client's ID and job name. The caller may use this field to ensure idempotence of job creation across retried attempts to create a job. By default, the field is empty and, in that case, the service ignores it.
↳ replaced_by_job_id
string
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.
↳ temp_files
array
A set of files the system should be aware of that are used for temporary storage. These temporary files will be removed on job completion. No duplicates are allowed. No file patterns are supported. The supported files are: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
↳ labels
array| Google\Protobuf\Internal\MapField
User-defined labels for this job. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions: * * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N} -]{0,62} * * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N} -]{0,63} * * Both keys and values are additionally constrained to be <= 128 bytes in size.
↳ location
↳ pipeline_description
PipelineDescription
Preliminary field: The format of this data may change at any time. A description of the user pipeline and stages through which it is executed. Created by Cloud Dataflow service. Only retrieved with JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
↳ stage_states
array< ExecutionStageState
>
This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
↳ job_metadata
JobMetadata
This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher.
↳ start_time
Google\Protobuf\Timestamp
The timestamp when the job was started (transitioned to JOB_STATE_PENDING). Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time and is immutable and set by the Cloud Dataflow service.
↳ created_from_snapshot_id
string
If this is specified, the job's initial state is populated from the given snapshot.
↳ satisfies_pzs
bool
Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests.
↳ runtime_updatable_params
RuntimeUpdatableParams
This field may ONLY be modified at runtime using the projects.jobs.update method to adjust job behavior. This field has no effect when specified at job creation.
↳ satisfies_pzi
bool
Output only. Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests.
↳ service_resources
getId
The unique ID of this job.
This field is set by the Dataflow service when the job is created, and is immutable for the life of the job.
string
setId
The unique ID of this job.
This field is set by the Dataflow service when the job is created, and is immutable for the life of the job.
var
string
$this
getProjectId
The ID of the Google Cloud project that the job belongs to.
string
setProjectId
The ID of the Google Cloud project that the job belongs to.
var
string
$this
getName
Optional. The user-specified Dataflow job name.
Only one active job with a given name can exist in a project within one
region at
any given time. Jobs in different regions can have the same name.
If a caller attempts to create a job with the same
name as an active job that already exists, the attempt returns the
existing job.
The name must match the regular expression [a-z]([-a-z0-9]{0,1022}[a-z0-9])?
string
setName
Optional. The user-specified Dataflow job name.
Only one active job with a given name can exist in a project within one
region at
any given time. Jobs in different regions can have the same name.
If a caller attempts to create a job with the same
name as an active job that already exists, the attempt returns the
existing job.
The name must match the regular expression [a-z]([-a-z0-9]{0,1022}[a-z0-9])?
var
string
$this
getType
Optional. The type of Dataflow job.
int
setType
Optional. The type of Dataflow job.
var
int
$this
getEnvironment
Optional. The environment for the job.
hasEnvironment
clearEnvironment
setEnvironment
Optional. The environment for the job.
$this
getSteps
Exactly one of step or steps_location should be specified.
The top-level steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL.
setSteps
Exactly one of step or steps_location should be specified.
The top-level steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL.
$this
getStepsLocation
The Cloud Storage location where the steps are stored.
string
setStepsLocation
The Cloud Storage location where the steps are stored.
var
string
$this
getCurrentState
The current state of the job.
Jobs are created in the JOB_STATE_STOPPED
state unless otherwise
specified.
A job in the JOB_STATE_RUNNING
state may asynchronously enter a
terminal state. After a job has reached a terminal state, no
further state updates may be made.
This field might be mutated by the Dataflow service;
callers cannot mutate it.
int
setCurrentState
The current state of the job.
Jobs are created in the JOB_STATE_STOPPED
state unless otherwise
specified.
A job in the JOB_STATE_RUNNING
state may asynchronously enter a
terminal state. After a job has reached a terminal state, no
further state updates may be made.
This field might be mutated by the Dataflow service;
callers cannot mutate it.
var
int
$this
getCurrentStateTime
The timestamp associated with the current state.
hasCurrentStateTime
clearCurrentStateTime
setCurrentStateTime
The timestamp associated with the current state.
$this
getRequestedState
The job's requested state. Applies to UpdateJob
requests.
Set requested_state
with UpdateJob
requests to switch between the
states JOB_STATE_STOPPED
and JOB_STATE_RUNNING
. You can also use UpdateJob
requests to change a job's
state from JOB_STATE_RUNNING
to JOB_STATE_CANCELLED
, JOB_STATE_DONE
, or JOB_STATE_DRAINED
. These states irrevocably
terminate the job if it hasn't already reached a terminal state.
This field has no effect on CreateJob
requests.
int
setRequestedState
The job's requested state. Applies to UpdateJob
requests.
Set requested_state
with UpdateJob
requests to switch between the
states JOB_STATE_STOPPED
and JOB_STATE_RUNNING
. You can also use UpdateJob
requests to change a job's
state from JOB_STATE_RUNNING
to JOB_STATE_CANCELLED
, JOB_STATE_DONE
, or JOB_STATE_DRAINED
. These states irrevocably
terminate the job if it hasn't already reached a terminal state.
This field has no effect on CreateJob
requests.
var
int
$this
getExecutionInfo
Deprecated.
hasExecutionInfo
clearExecutionInfo
setExecutionInfo
Deprecated.
$this
getCreateTime
The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
hasCreateTime
clearCreateTime
setCreateTime
The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service.
$this
getReplaceJobId
If this job is an update of an existing job, this field is the job ID of the job it replaced.
When sending a CreateJobRequest
, you can update a job by specifying it
here. The job named here is stopped, and its intermediate state is
transferred to this job.
string
setReplaceJobId
If this job is an update of an existing job, this field is the job ID of the job it replaced.
When sending a CreateJobRequest
, you can update a job by specifying it
here. The job named here is stopped, and its intermediate state is
transferred to this job.
var
string
$this
getTransformNameMapping
Optional. The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
setTransformNameMapping
Optional. The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job.
$this
getClientRequestId
The client's unique identifier of the job, re-used across retried attempts.
If this field is set, the service will ensure its uniqueness. The request to create a job will fail if the service has knowledge of a previously submitted job with the same client's ID and job name. The caller may use this field to ensure idempotence of job creation across retried attempts to create a job. By default, the field is empty and, in that case, the service ignores it.
string
setClientRequestId
The client's unique identifier of the job, re-used across retried attempts.
If this field is set, the service will ensure its uniqueness. The request to create a job will fail if the service has knowledge of a previously submitted job with the same client's ID and job name. The caller may use this field to ensure idempotence of job creation across retried attempts to create a job. By default, the field is empty and, in that case, the service ignores it.
var
string
$this
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.
string
setReplacedByJobId
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.
var
string
$this
getTempFiles
A set of files the system should be aware of that are used for temporary storage. These temporary files will be removed on job completion.
No duplicates are allowed. No file patterns are supported. The supported files are: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
setTempFiles
A set of files the system should be aware of that are used for temporary storage. These temporary files will be removed on job completion.
No duplicates are allowed. No file patterns are supported. The supported files are: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
var
string[]
$this
getLabels
User-defined labels for this job.
The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions:
- Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
- Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
- Both keys and values are additionally constrained to be <= 128 bytes in size.
setLabels
User-defined labels for this job.
The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions:
- Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
- Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
- Both keys and values are additionally constrained to be <= 128 bytes in size.
$this
getLocation
Optional. The regional endpoint that contains this job.
string
setLocation
Optional. The regional endpoint that contains this job.
var
string
$this
getPipelineDescription
Preliminary field: The format of this data may change at any time.
A description of the user pipeline and stages through which it is executed. Created by Cloud Dataflow service. Only retrieved with JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
hasPipelineDescription
clearPipelineDescription
setPipelineDescription
Preliminary field: The format of this data may change at any time.
A description of the user pipeline and stages through which it is executed. Created by Cloud Dataflow service. Only retrieved with JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
$this
getStageStates
This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
setStageStates
This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
$this
getJobMetadata
This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher.
hasJobMetadata
clearJobMetadata
setJobMetadata
This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher.
$this
getStartTime
The timestamp when the job was started (transitioned to JOB_STATE_PENDING).
Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time and is immutable and set by the Cloud Dataflow service.
hasStartTime
clearStartTime
setStartTime
The timestamp when the job was started (transitioned to JOB_STATE_PENDING).
Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time and is immutable and set by the Cloud Dataflow service.
$this
getCreatedFromSnapshotId
If this is specified, the job's initial state is populated from the given snapshot.
string
setCreatedFromSnapshotId
If this is specified, the job's initial state is populated from the given snapshot.
var
string
$this
getSatisfiesPzs
Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests.
bool
setSatisfiesPzs
Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests.
var
bool
$this
getRuntimeUpdatableParams
This field may ONLY be modified at runtime using the projects.jobs.update method to adjust job behavior. This field has no effect when specified at job creation.
hasRuntimeUpdatableParams
clearRuntimeUpdatableParams
setRuntimeUpdatableParams
This field may ONLY be modified at runtime using the projects.jobs.update method to adjust job behavior. This field has no effect when specified at job creation.
$this
getSatisfiesPzi
Output only. Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests.
bool
hasSatisfiesPzi
clearSatisfiesPzi
setSatisfiesPzi
Output only. Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests.
var
bool
$this
getServiceResources
Output only. Resources used by the Dataflow Service to run the job.
hasServiceResources
clearServiceResources
setServiceResources
Output only. Resources used by the Dataflow Service to run the job.
$this