# Interface DatasourceOrBuilder (0.21.0)

0.21.0 (latest) 0.19.0 0.16.0 0.15.0 0.13.0 0.11.0 0.10.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface DatasourceOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getBigqueryPropertyGraphReference()

    public abstract BigQueryPropertyGraphReference getBigqueryPropertyGraphReference()

A reference to a BigQuery property graph.

`
.google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReference bigquery_property_graph_reference = 16;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReference` | The bigqueryPropertyGraphReference. |

### getBigqueryPropertyGraphReferenceOrBuilder()

    public abstract BigQueryPropertyGraphReferenceOrBuilder getBigqueryPropertyGraphReferenceOrBuilder()

A reference to a BigQuery property graph.

`
.google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReference bigquery_property_graph_reference = 16;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReferenceOrBuilder` |   |

### getBigqueryTableReference()

    public abstract BigQueryTableReference getBigqueryTableReference()

A reference to a BigQuery table.

`.google.cloud.geminidataanalytics.v1.BigQueryTableReference bigquery_table_reference = 1;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.BigQueryTableReference` | The bigqueryTableReference. |

### getBigqueryTableReferenceOrBuilder()

    public abstract BigQueryTableReferenceOrBuilder getBigqueryTableReferenceOrBuilder()

A reference to a BigQuery table.

`.google.cloud.geminidataanalytics.v1.BigQueryTableReference bigquery_table_reference = 1;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.BigQueryTableReferenceOrBuilder` |   |

### getLookerExploreReference()

    public abstract LookerExploreReference getLookerExploreReference()

A reference to a Looker explore.

`.google.cloud.geminidataanalytics.v1.LookerExploreReference looker_explore_reference = 4;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.LookerExploreReference` | The lookerExploreReference. |

### getLookerExploreReferenceOrBuilder()

    public abstract LookerExploreReferenceOrBuilder getLookerExploreReferenceOrBuilder()

A reference to a Looker explore.

`.google.cloud.geminidataanalytics.v1.LookerExploreReference looker_explore_reference = 4;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.LookerExploreReferenceOrBuilder` |   |

### getReferenceCase()

    public abstract Datasource.ReferenceCase getReferenceCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.Datasource.ReferenceCase` |   |

### getSchema()

    public abstract Schema getSchema()

Optional. The schema of the datasource.

`
.google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.Schema` | The schema. |

### getSchemaOrBuilder()

    public abstract SchemaOrBuilder getSchemaOrBuilder()

Optional. The schema of the datasource.

`
.google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.SchemaOrBuilder` |   |

### getStructSchema()

    public abstract Struct 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>

`.google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Struct.html` | The structSchema. |

### getStructSchemaOrBuilder()

    public abstract StructOrBuilder getStructSchemaOrBuilder()

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>

`.google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.StructOrBuilder.html` |   |

### getStudioDatasourceId()

    public abstract String getStudioDatasourceId()

A reference to a Looker Studio datasource.

`string studio_datasource_id = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The studioDatasourceId. |

### getStudioDatasourceIdBytes()

    public abstract ByteString getStudioDatasourceIdBytes()

A reference to a Looker Studio datasource.

`string studio_datasource_id = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for studioDatasourceId. |

### hasBigqueryPropertyGraphReference()

    public abstract boolean hasBigqueryPropertyGraphReference()

A reference to a BigQuery property graph.

`
.google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReference bigquery_property_graph_reference = 16;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the bigqueryPropertyGraphReference field is set. |

### hasBigqueryTableReference()

    public abstract boolean hasBigqueryTableReference()

A reference to a BigQuery table.

`.google.cloud.geminidataanalytics.v1.BigQueryTableReference bigquery_table_reference = 1;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the bigqueryTableReference field is set. |

### hasLookerExploreReference()

    public abstract boolean hasLookerExploreReference()

A reference to a Looker explore.

`.google.cloud.geminidataanalytics.v1.LookerExploreReference looker_explore_reference = 4;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the lookerExploreReference field is set. |

### hasSchema()

    public abstract boolean hasSchema()

Optional. The schema of the datasource.

`
.google.cloud.geminidataanalytics.v1.Schema schema = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the schema field is set. |

### hasStructSchema()

    public abstract boolean hasStructSchema()

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>

`.google.protobuf.Struct struct_schema = 10 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the structSchema field is set. |

### hasStudioDatasourceId()

    public abstract boolean hasStudioDatasourceId()

A reference to a Looker Studio datasource.

`string studio_datasource_id = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the studioDatasourceId field is set. |