2.1.0 (latest) 2.0.0 1.1.0 1.0.0

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

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

A collection of context to apply to this conversation

## Inheritance

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

## Implements

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

### Context()

    public Context()

### Context(Context)

    public Context(Context other)

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

## Properties

### DatasourceReferences

    public DatasourceReferences DatasourceReferences { get; set; }

Required. Data sources that are available for answering the question.

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

### ExampleQueries

    public RepeatedField<ExampleQuery> ExampleQueries { get; }

Optional. A list of example queries, providing examples of relevant and
commonly used SQL queries and their corresponding natural language queries
optionally present. Currently only used for BigQuery data sources and
databases (alloydb, cloudsql, spanner) data sources.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.ExampleQuery` |   |

### GlossaryTerms

    public RepeatedField<GlossaryTerm> GlossaryTerms { get; }

Optional. Term definitions (currently, only user authored)
Not supported for databases (alloydb, cloudsql, spanner) data sources.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.GlossaryTerm` |   |

### LookerGoldenQueries

    public RepeatedField<LookerGoldenQuery> LookerGoldenQueries { get; }

Optional. A list of golden queries, providing examples of relevant and
commonly used Looker queries and their corresponding natural language
queries optionally present. Only supported for Looker data sources.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.LookerGoldenQuery` |   |

### Options

    public ConversationOptions Options { get; set; }

Optional. Additional options for the conversation.

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

### SchemaRelationships

    public RepeatedField<Context.Types.SchemaRelationship> SchemaRelationships { get; }

Optional. Relationships between table schema, including referencing and
referenced columns.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.Contexthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.Context.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.Context.Types.SchemaRelationship` |   |

### SystemInstruction

    public string SystemInstruction { get; set; }

Optional. The basic entry point for data owners creating domain knowledge
for Agent.

Why: Business jargon (e.g., YTD revenue is calculated as..., Retirement Age
is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate)
can help the model understand the business context around a user question.

Must be at most 250,000 bytes (approx. 250,000 characters for English
text).

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

### UserFunctions

    public UserFunctions UserFunctions { get; set; }

Optional. A collection of user functions to be included in context.

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