2.1.0 (latest) 2.0.0 1.1.0 1.0.0

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

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

An event indicating the progress of an analysis.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AnalysisEvent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.AnalysisEvent), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AnalysisEvent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.AnalysisEvent), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AnalysisEvent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.AnalysisEvent), [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

### AnalysisEvent()

    public AnalysisEvent()

### AnalysisEvent(AnalysisEvent)

    public AnalysisEvent(AnalysisEvent other)

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

## Properties

### Code

    public string Code { get; set; }

Generated code.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### CoderInstruction

    public string CoderInstruction { get; set; }

Instructions issued for code generation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Error

    public string Error { get; set; }

A generic error message.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ExecutionError

    public string ExecutionError { get; set; }

An error from code execution.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ExecutionOutput

    public string ExecutionOutput { get; set; }

Output from code execution.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### HasCode

    public bool HasCode { get; }

Gets whether the "code" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasCoderInstruction

    public bool HasCoderInstruction { get; }

Gets whether the "coder_instruction" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasError

    public bool HasError { get; }

Gets whether the "error" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasExecutionError

    public bool HasExecutionError { get; }

Gets whether the "execution_error" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasExecutionOutput

    public bool HasExecutionOutput { get; }

Gets whether the "execution_output" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasPlannerReasoning

    public bool HasPlannerReasoning { get; }

Gets whether the "planner_reasoning" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasResultCsvData

    public bool HasResultCsvData { get; }

Gets whether the "result_csv_data" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasResultNaturalLanguage

    public bool HasResultNaturalLanguage { get; }

Gets whether the "result_natural_language" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasResultReferenceData

    public bool HasResultReferenceData { get; }

Gets whether the "result_reference_data" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasResultVegaChartJson

    public bool HasResultVegaChartJson { get; }

Gets whether the "result_vega_chart_json" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### KindCase

    public AnalysisEvent.KindOneofCase KindCase { get; }

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

### PlannerReasoning

    public string PlannerReasoning { get; set; }

Python codegen planner's reasoning.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ResultCsvData

    public string ResultCsvData { get; set; }

Result as CSV string.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ResultNaturalLanguage

    public string ResultNaturalLanguage { get; set; }

Result as NL string.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ResultReferenceData

    public string ResultReferenceData { get; set; }

Result as a reference to a data source.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ResultVegaChartJson

    public string ResultVegaChartJson { get; set; }

Result as Vega chart JSON string.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |