# Interface SpannerDatabaseReferenceOrBuilder (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 SpannerDatabaseReferenceOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getDatabaseId()

    public abstract String getDatabaseId()

Required. The database id.

`string database_id = 4 [(.google.api.field_behavior) = REQUIRED];`

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

### getDatabaseIdBytes()

    public abstract ByteString getDatabaseIdBytes()

Required. The database id.

`string database_id = 4 [(.google.api.field_behavior) = REQUIRED];`

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

### getDatabaseTableReferences(int index)

    public abstract DatabaseTableReference getDatabaseTableReferences(int index)

Optional. References to tables within the database. Each reference
specifies a table and can optionally include the table's schema to provide
context for the query.

`
repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getDatabaseTableReferencesCount()

    public abstract int getDatabaseTableReferencesCount()

Optional. References to tables within the database. Each reference
specifies a table and can optionally include the table's schema to provide
context for the query.

`
repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getDatabaseTableReferencesList()

    public abstract List<DatabaseTableReference> getDatabaseTableReferencesList()

Optional. References to tables within the database. Each reference
specifies a table and can optionally include the table's schema to provide
context for the query.

`
repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1beta.DatabaseTableReference>` |   |

### getDatabaseTableReferencesOrBuilder(int index)

    public abstract DatabaseTableReferenceOrBuilder getDatabaseTableReferencesOrBuilder(int index)

Optional. References to tables within the database. Each reference
specifies a table and can optionally include the table's schema to provide
context for the query.

`
repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getDatabaseTableReferencesOrBuilderList()

    public abstract List<? extends DatabaseTableReferenceOrBuilder> getDatabaseTableReferencesOrBuilderList()

Optional. References to tables within the database. Each reference
specifies a table and can optionally include the table's schema to provide
context for the query.

`
repeated .google.cloud.geminidataanalytics.v1beta.DatabaseTableReference database_table_references = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceOrBuilder>` |   |

### getEngine()

    public abstract SpannerDatabaseReference.Engine getEngine()

Required. The engine of the Spanner instance.

`
.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine` | The engine. |

### getEngineValue()

    public abstract int getEngineValue()

Required. The engine of the Spanner instance.

`
.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for engine. |

### getInstanceId()

    public abstract String getInstanceId()

Required. The instance id.

`string instance_id = 3 [(.google.api.field_behavior) = REQUIRED];`

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

### getInstanceIdBytes()

    public abstract ByteString getInstanceIdBytes()

Required. The instance id.

`string instance_id = 3 [(.google.api.field_behavior) = REQUIRED];`

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

### getPriority()

    public abstract String getPriority()

Optional. Priority for the queries to Spanner. Should be a value supported
by Cloud Spanner e.g.: LOW, MEDIUM, HIGH. Unsupported values will be
ignored. See
<https://docs.cloud.google.com/spanner/docs/reference/rest/v1/RequestOptions#Priority>
for complete list.

`string priority = 8 [(.google.api.field_behavior) = OPTIONAL];`

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

### getPriorityBytes()

    public abstract ByteString getPriorityBytes()

Optional. Priority for the queries to Spanner. Should be a value supported
by Cloud Spanner e.g.: LOW, MEDIUM, HIGH. Unsupported values will be
ignored. See
<https://docs.cloud.google.com/spanner/docs/reference/rest/v1/RequestOptions#Priority>
for complete list.

`string priority = 8 [(.google.api.field_behavior) = OPTIONAL];`

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

### getProjectId()

    public abstract String getProjectId()

Required. The project the instance belongs to.

`string project_id = 1 [(.google.api.field_behavior) = REQUIRED];`

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

### getProjectIdBytes()

    public abstract ByteString getProjectIdBytes()

Required. The project the instance belongs to.

`string project_id = 1 [(.google.api.field_behavior) = REQUIRED];`

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

### getRequestTag()

    public abstract String getRequestTag()

Tag to be attached to all queries to Spanner. Allows to identify and
monitor queries sent to Spanner by the GDA service.

`string request_tag = 9;`

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

### getRequestTagBytes()

    public abstract ByteString getRequestTagBytes()

Tag to be attached to all queries to Spanner. Allows to identify and
monitor queries sent to Spanner by the GDA service.

`string request_tag = 9;`

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

### getTableIds(int index)

    public abstract String getTableIds(int index)

Optional. The table ids. Denotes all tables if unset.

`repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The tableIds at the given index. |

### getTableIdsBytes(int index)

    public abstract ByteString getTableIdsBytes(int index)

Optional. The table ids. Denotes all tables if unset.

`repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the tableIds at the given index. |

### getTableIdsCount()

    public abstract int getTableIdsCount()

Optional. The table ids. Denotes all tables if unset.

`repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of tableIds. |

### getTableIdsList()

    public abstract List<String> getTableIdsList()

Optional. The table ids. Denotes all tables if unset.

`repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the tableIds. |