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 Datasource.

A datasource that can be used to answer questions.

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

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ bigquery_table_reference` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.BigQueryTableReference` A reference to a BigQuery table. |
| `↳ studio_datasource_id` | `string` A reference to a Looker Studio datasource. |
| `↳ looker_explore_reference` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.LookerExploreReference` A reference to a Looker explore. |
| `↳ alloy_db_reference` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.AlloyDbReference` A reference to an AlloyDB database. |
| `↳ spanner_reference` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.SpannerReference` A reference to a Spanner database. |
| `↳ cloud_sql_reference` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.CloudSqlReference` A reference to a CloudSQL database. |
| `↳ bigtable_reference` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.BigtableReference` A reference to a Bigtable instance. |
| `↳ bigquery_property_graph_reference` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.BigQueryPropertyGraphReference` A reference to a BigQuery property graph. |
| `↳ firestore_reference` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.FirestoreReference` A reference to a Firestore database. |
| `↳ schema` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Schema` Optional. The schema of the datasource. |
| `↳ struct_schema` | `Google\Protobuf\Struct` 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> |

### getBigqueryTableReference

A reference to a BigQuery table.

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

### hasBigqueryTableReference

### setBigqueryTableReference

A reference to a BigQuery table.

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

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

### getStudioDatasourceId

A reference to a Looker Studio datasource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasStudioDatasourceId

### setStudioDatasourceId

A reference to a Looker Studio datasource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getLookerExploreReference

A reference to a Looker explore.

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

### hasLookerExploreReference

### setLookerExploreReference

A reference to a Looker explore.

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

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

### getAlloyDbReference

A reference to an AlloyDB database.

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

### hasAlloyDbReference

### setAlloyDbReference

A reference to an AlloyDB database.

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

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

### getSpannerReference

A reference to a Spanner database.

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

### hasSpannerReference

### setSpannerReference

A reference to a Spanner database.

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

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

### getCloudSqlReference

A reference to a CloudSQL database.

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

### hasCloudSqlReference

### setCloudSqlReference

A reference to a CloudSQL database.

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

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

### getBigtableReference

A reference to a Bigtable instance.

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

### hasBigtableReference

### setBigtableReference

A reference to a Bigtable instance.

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

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

### getBigqueryPropertyGraphReference

A reference to a BigQuery property graph.

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

### hasBigqueryPropertyGraphReference

### setBigqueryPropertyGraphReference

A reference to a BigQuery property graph.

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

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

### getFirestoreReference

A reference to a Firestore database.

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

### hasFirestoreReference

### setFirestoreReference

A reference to a Firestore database.

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

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

### getSchema

Optional. The schema of the datasource.

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

### hasSchema

### clearSchema

### setSchema

Optional. The schema of the datasource.

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

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

### getStructSchema

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>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Struct|null` |   |

### hasStructSchema

### clearStructSchema

### setStructSchema

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>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Struct` |

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

### getReference

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |