0.18.0 (latest) 0.17.1 0.16.0 0.15.3 0.12.0 0.11.0 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 NotebookAction.

Represents a workflow action that will run against a Notebook runtime.

Generated from protobuf message `google.cloud.dataform.v1beta1.WorkflowInvocationAction.NotebookAction`

## Namespace

Google \\ Cloud \\ Dataform \\ V1beta1 \\ WorkflowInvocationAction

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ contents` | `string` Output only. The code contents of a Notebook to be run. |
| `↳ job_id` | `string` Output only. The ID of the Gemini Enterprise Agent Platform job that executed the notebook in contents and also the ID used for the outputs created in Google Cloud Storage buckets. Only set once the job has started to run. |
| `↳ file_path` | `string` Output only. The path to the notebook file in the repository. |

### getContents

Output only. The code contents of a Notebook to be run.

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

### setContents

Output only. The code contents of a Notebook to be run.

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

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

### getJobId

Output only. The ID of the Gemini Enterprise Agent Platform job that
executed the notebook in contents and also the ID used for the outputs
created in Google Cloud Storage buckets. Only set once the job has
started to run.

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

### setJobId

Output only. The ID of the Gemini Enterprise Agent Platform job that
executed the notebook in contents and also the ID used for the outputs
created in Google Cloud Storage buckets. Only set once the job has
started to run.

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

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

### getFilePath

Output only. The path to the notebook file in the repository.

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

### setFilePath

Output only. The path to the notebook file in the repository.

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

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