# Google Cloud Dataform V1beta1 Client - Class WorkflowInvocation (0.10.0)

0.11.0 (latest) 0.10.1 0.9.2 0.8.1 0.7.0 0.6.0 0.5.1 0.4.7 0.3.0 0.2.3 0.1.6

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Dataform V1beta1 Client class WorkflowInvocation.

Represents a single invocation of a compilation result.

Generated from protobuf message `google.cloud.dataform.v1beta1.WorkflowInvocation`

## Namespace

Google \\ Cloud \\ Dataform \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ compilation_result` | `string` Immutable. The name of the compilation result to use for this invocation. Must be in the format `projects/*/locations/*/repositories/*/compilationResults/*`. |
| `↳ workflow_config` | `string` Immutable. The name of the workflow config to invoke. Must be in the format `projects/*/locations/*/repositories/*/workflowConfigs/*`. |
| `↳ name` | `string` Output only. The workflow invocation's name. |
| `↳ invocation_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.InvocationConfig` Immutable. If left unset, a default InvocationConfig will be used. |
| `↳ state` | `int` Output only. This workflow invocation's current state. |
| `↳ invocation_timing` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Interval.html` Output only. This workflow invocation's timing details. |
| `↳ resolved_compilation_result` | `string` Output only. The resolved compilation result that was used to create this invocation. Will be in the format `projects/*/locations/*/repositories/*/compilationResults/*`. |
| `↳ data_encryption_state` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.DataEncryptionState` Output only. Only set if the repository has a KMS Key. |
| `↳ internal_metadata` | `string` Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string. |
| `↳ private_resource_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.PrivateResourceMetadata` Output only. Metadata indicating whether this resource is user-scoped. `WorkflowInvocation` resource is `user_scoped` only if it is sourced from a compilation result and the compilation result is user-scoped. |

### getCompilationResult

Immutable. The name of the compilation result to use for this invocation.

Must be in the format
`projects/*/locations/*/repositories/*/compilationResults/*`.

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

### hasCompilationResult

### setCompilationResult

Immutable. The name of the compilation result to use for this invocation.

Must be in the format
`projects/*/locations/*/repositories/*/compilationResults/*`.

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

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

### getWorkflowConfig

Immutable. The name of the workflow config to invoke. Must be in the
format `projects/*/locations/*/repositories/*/workflowConfigs/*`.

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

### hasWorkflowConfig

### setWorkflowConfig

Immutable. The name of the workflow config to invoke. Must be in the
format `projects/*/locations/*/repositories/*/workflowConfigs/*`.

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

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

### getName

Output only. The workflow invocation's name.

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

### setName

Output only. The workflow invocation's name.

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

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

### getInvocationConfig

Immutable. If left unset, a default InvocationConfig will be used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.InvocationConfig|null` |   |

### hasInvocationConfig

### clearInvocationConfig

### setInvocationConfig

Immutable. If left unset, a default InvocationConfig will be used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.InvocationConfig` |

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

### getState

Output only. This workflow invocation's current state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.WorkflowInvocation.State). |

### setState

Output only. This workflow invocation's current state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.WorkflowInvocation.State). |

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

### getInvocationTiming

Output only. This workflow invocation's timing details.

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

### hasInvocationTiming

### clearInvocationTiming

### setInvocationTiming

Output only. This workflow invocation's timing details.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Interval.html` |

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

### getResolvedCompilationResult

Output only. The resolved compilation result that was used to create this
invocation. Will be in the format
`projects/*/locations/*/repositories/*/compilationResults/*`.

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

### setResolvedCompilationResult

Output only. The resolved compilation result that was used to create this
invocation. Will be in the format
`projects/*/locations/*/repositories/*/compilationResults/*`.

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

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

### getDataEncryptionState

Output only. Only set if the repository has a KMS Key.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.DataEncryptionState|null` |   |

### hasDataEncryptionState

### clearDataEncryptionState

### setDataEncryptionState

Output only. Only set if the repository has a KMS Key.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.DataEncryptionState` |

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

### getInternalMetadata

Output only. All the metadata information that is used internally to serve
the resource. For example: timestamps, flags, status fields, etc. The
format of this field is a JSON string.

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

### hasInternalMetadata

### clearInternalMetadata

### setInternalMetadata

Output only. All the metadata information that is used internally to serve
the resource. For example: timestamps, flags, status fields, etc. The
format of this field is a JSON string.

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

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

### getPrivateResourceMetadata

Output only. Metadata indicating whether this resource is user-scoped.

`WorkflowInvocation` resource is `user_scoped` only if it is sourced
from a compilation result and the compilation result is user-scoped.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.PrivateResourceMetadata|null` |   |

### hasPrivateResourceMetadata

### clearPrivateResourceMetadata

### setPrivateResourceMetadata

Output only. Metadata indicating whether this resource is user-scoped.

`WorkflowInvocation` resource is `user_scoped` only if it is sourced
from a compilation result and the compilation result is user-scoped.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.PrivateResourceMetadata` |

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

### getCompilationSource

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