2.1.0 (latest) 2.0.0 1.1.0 1.0.0

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

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

A datasource that can be used to answer questions.

## Inheritance

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

## Implements

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

### Datasource()

    public Datasource()

### Datasource(Datasource)

    public Datasource(Datasource other)

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

## Properties

### BigqueryPropertyGraphReference

    public BigQueryPropertyGraphReference BigqueryPropertyGraphReference { get; set; }

A reference to a BigQuery property graph.

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

### BigqueryTableReference

    public BigQueryTableReference BigqueryTableReference { get; set; }

A reference to a BigQuery table.

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

### HasStudioDatasourceId

    public bool HasStudioDatasourceId { get; }

Gets whether the "studio_datasource_id" field is set

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

### LookerExploreReference

    public LookerExploreReference LookerExploreReference { get; set; }

A reference to a Looker explore.

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

### ReferenceCase

    public Datasource.ReferenceOneofCase ReferenceCase { get; }

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

### Schema

    public Schema Schema { get; set; }

Optional. The schema of the datasource.

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

### StructSchema

    public Struct StructSchema { get; set; }

Optional. A struct representation of the schema.
This is populated for datasources with schemas that cannot be
fully represented by the strongly-typed `schema` field.

For Looker datasources, this maps to the LookmlModelExplore type:
<https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore>

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` |   |

### StudioDatasourceId

    public string StudioDatasourceId { get; set; }

A reference to a Looker Studio datasource.

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