2.1.0 (latest) 2.0.0 1.1.0 1.0.0

    public sealed class DataAnalyticsAgent : IMessage<DataAnalyticsAgent>, IEquatable<DataAnalyticsAgent>, IDeepCloneable<DataAnalyticsAgent>, IBufferMessage, IMessage

Reference documentation and code samples for the Data Analytics API with Gemini v1 API class DataAnalyticsAgent.

Message describing a DataAnalyticsAgent object.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DataAnalyticsAgent

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DataAnalyticsAgent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAnalyticsAgent), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DataAnalyticsAgent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAnalyticsAgent), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DataAnalyticsAgent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAnalyticsAgent), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.GeminiDataAnalytics.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1)

## Assembly

Google.Cloud.GeminiDataAnalytics.V1.dll

## Constructors

### DataAnalyticsAgent()

    public DataAnalyticsAgent()

### DataAnalyticsAgent(DataAnalyticsAgent)

    public DataAnalyticsAgent(DataAnalyticsAgent other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAnalyticsAgent` |

## Properties

### LastPublishedContext

    public Context LastPublishedContext { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.Context` |   |

### PublishedContext

    public Context PublishedContext { get; set; }

Optional. The published context for the agent.
This context is used by the Chat API in production.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.Context` |   |

### StagingContext

    public Context StagingContext { get; set; }

Optional. The staging context for the agent.
This context is used to test and validate changes before publishing.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.Context` |   |