0.16.0 (latest) 0.15.0 0.14.1 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.1

> [!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 Gemini Data Analytics V1beta Client class DataAnalyticsAgent.

Message describing a DataAnalyticsAgent object.

Generated from protobuf message `google.cloud.geminidataanalytics.v1beta.DataAnalyticsAgent`

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ staging_context` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context` Optional. The staging context for the agent. This context is used to test and validate changes before publishing. |
| `↳ published_context` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context` Optional. The published context for the agent. This context is used by the Chat API in production. |
| `↳ last_published_context` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context` Output only. The last published context for the agent. This is an output-only field populated by the system when the published context is updated. It is used to restore the agent to a previous state. |

### getStagingContext

Optional. The staging context for the agent.

This context is used to test and validate changes before publishing.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context|null` |   |

### hasStagingContext

### clearStagingContext

### setStagingContext

Optional. The staging context for the agent.

This context is used to test and validate changes before publishing.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context` |

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

### getPublishedContext

Optional. The published context for the agent.

This context is used by the Chat API in production.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context|null` |   |

### hasPublishedContext

### clearPublishedContext

### setPublishedContext

Optional. The published context for the agent.

This context is used by the Chat API in production.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context` |

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

### getLastPublishedContext

Output only. The last published context for the agent.

This is an output-only field populated by the system when the
published context is updated. It is used to restore the agent to a
previous state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context|null` |   |

### hasLastPublishedContext

### clearLastPublishedContext

### setLastPublishedContext

Output only. The last published context for the agent.

This is an output-only field populated by the system when the
published context is updated. It is used to restore the agent to a
previous state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Context` |

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