# Common Protos for Google Cloud APIs Client - Class RoutineCreation (1.0.0)

1.0.0 (latest) 0.8.3 0.7.0 0.6.0 0.5.2 0.4.2 0.3.8 Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class RoutineCreation.

Routine creation event.

Generated from protobuf message `google.cloud.audit.BigQueryAuditMetadata.RoutineCreation`

## Namespace

Google \\ Cloud \\ Audit \\ BigQueryAuditMetadata

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ routine` | `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.Routine` Created routine. |
| `↳ reason` | `int` Describes how the routine was created. |
| `↳ job_name` | `string` The URI of the job that created the routine. Format: `projects/<project_id>/jobs/<job_id>`. |

### getRoutine

Created routine.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.Routine|null` |   |

### hasRoutine

### clearRoutine

### setRoutine

Created routine.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.Routine` |

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

### getReason

Describes how the routine was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Reason](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.RoutineCreation.Reason). |

### setReason

Describes how the routine was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Reason](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.RoutineCreation.Reason). |

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

### getJobName

The URI of the job that created the routine.

Format: `projects/<project_id>/jobs/<job_id>`.

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

### setJobName

The URI of the job that created the routine.

Format: `projects/<project_id>/jobs/<job_id>`.

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

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