# Google Cloud Dataproc V1 Client - Class OrderedJob (3.14.0)

3.14.0 (latest) 3.13.4 3.12.0 3.11.0 3.10.1 3.9.0 3.8.1 3.7.1 3.6.1 3.5.1 3.4.0 3.3.0 3.2.2 2.12.0 2.11.0 2.10.0 2.9.1 2.8.2 2.7.0 2.6.1 2.5.0 2.3.0 2.2.3 2.1.0 2.0.0 Reference documentation and code samples for the Google Cloud Dataproc V1 Client class OrderedJob.

A job executed by the workflow.

Generated from protobuf message `google.cloud.dataproc.v1.OrderedJob`

## Namespace

Google \\ Cloud \\ Dataproc \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ step_id` | `string` Required. The step id. The id must be unique among all jobs within the template. The step id is used as prefix for job id, as job `goog-dataproc-workflow-step-id` label, and in [prerequisiteStepIds](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.OrderedJob#_Google_Cloud_Dataproc_V1_OrderedJob__getPrerequisiteStepIds__) field from other steps. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters. |
| `↳ hadoop_job` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.HadoopJob` Optional. Job is a Hadoop job. |
| `↳ spark_job` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.SparkJob` Optional. Job is a Spark job. |
| `↳ pyspark_job` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.PySparkJob` Optional. Job is a PySpark job. |
| `↳ hive_job` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.HiveJob` Optional. Job is a Hive job. |
| `↳ pig_job` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.PigJob` Optional. Job is a Pig job. |
| `↳ spark_r_job` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.SparkRJob` Optional. Job is a SparkR job. |
| `↳ spark_sql_job` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.SparkSqlJob` Optional. Job is a SparkSql job. |
| `↳ presto_job` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.PrestoJob` Optional. Job is a Presto job. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. The labels to associate with this job. Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \[\\p{Ll}\\p{Lo}\]\[\\p{Ll}\\p{Lo}\\p{N}*-\]{0,62} Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \[\\p{Ll}\\p{Lo}\\p{N}*-\]{0,63} No more than 32 labels can be associated with a given job. |
| `↳ scheduling` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.JobScheduling` Optional. Job scheduling configuration. |
| `↳ prerequisite_step_ids` | `array` Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow. |

### getStepId

Required. The step id. The id must be unique among all jobs
within the template.

The step id is used as prefix for job id, as job
`goog-dataproc-workflow-step-id` label, and in
[prerequisiteStepIds](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.OrderedJob#_Google_Cloud_Dataproc_V1_OrderedJob__getPrerequisiteStepIds__)
field from other steps.
The id must contain only letters (a-z, A-Z), numbers (0-9),
underscores (_), and hyphens (-). Cannot begin or end with underscore
or hyphen. Must consist of between 3 and 50 characters.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setStepId

Required. The step id. The id must be unique among all jobs
within the template.

The step id is used as prefix for job id, as job
`goog-dataproc-workflow-step-id` label, and in
[prerequisiteStepIds](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.OrderedJob#_Google_Cloud_Dataproc_V1_OrderedJob__getPrerequisiteStepIds__)
field from other steps.
The id must contain only letters (a-z, A-Z), numbers (0-9),
underscores (_), and hyphens (-). Cannot begin or end with underscore
or hyphen. Must consist of between 3 and 50 characters.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getHadoopJob

Optional. Job is a Hadoop job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.HadoopJob|null` |   |

### hasHadoopJob

### setHadoopJob

Optional. Job is a Hadoop job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.HadoopJob` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSparkJob

Optional. Job is a Spark job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.SparkJob|null` |   |

### hasSparkJob

### setSparkJob

Optional. Job is a Spark job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.SparkJob` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPysparkJob

Optional. Job is a PySpark job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.PySparkJob|null` |   |

### hasPysparkJob

### setPysparkJob

Optional. Job is a PySpark job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.PySparkJob` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getHiveJob

Optional. Job is a Hive job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.HiveJob|null` |   |

### hasHiveJob

### setHiveJob

Optional. Job is a Hive job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.HiveJob` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPigJob

Optional. Job is a Pig job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.PigJob|null` |   |

### hasPigJob

### setPigJob

Optional. Job is a Pig job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.PigJob` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSparkRJob

Optional. Job is a SparkR job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.SparkRJob|null` |   |

### hasSparkRJob

### setSparkRJob

Optional. Job is a SparkR job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.SparkRJob` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSparkSqlJob

Optional. Job is a SparkSql job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.SparkSqlJob|null` |   |

### hasSparkSqlJob

### setSparkSqlJob

Optional. Job is a SparkSql job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.SparkSqlJob` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPrestoJob

Optional. Job is a Presto job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.PrestoJob|null` |   |

### hasPrestoJob

### setPrestoJob

Optional. Job is a Presto job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.PrestoJob` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabels

Optional. The labels to associate with this job.

Label keys must be between 1 and 63 characters long, and must conform to
the following regular expression:
\[\\p{Ll}\\p{Lo}\]\[\\p{Ll}\\p{Lo}\\p{N}*-\]{0,62}
Label values must be between 1 and 63 characters long, and must conform to
the following regular expression: \[\\p{Ll}\\p{Lo}\\p{N}*-\]{0,63}
No more than 32 labels can be associated with a given job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional. The labels to associate with this job.

Label keys must be between 1 and 63 characters long, and must conform to
the following regular expression:
\[\\p{Ll}\\p{Lo}\]\[\\p{Ll}\\p{Lo}\\p{N}*-\]{0,62}
Label values must be between 1 and 63 characters long, and must conform to
the following regular expression: \[\\p{Ll}\\p{Lo}\\p{N}*-\]{0,63}
No more than 32 labels can be associated with a given job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getScheduling

Optional. Job scheduling configuration.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.JobScheduling|null` |   |

### hasScheduling

### clearScheduling

### setScheduling

Optional. Job scheduling configuration.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.JobScheduling` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPrerequisiteStepIds

Optional. The optional list of prerequisite job step_ids.

If not specified, the job will start at the beginning of workflow.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/RepeatedField` |   |

### setPrerequisiteStepIds

Optional. The optional list of prerequisite job step_ids.

If not specified, the job will start at the beginning of workflow.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getJobType

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |