Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class SpannerDatabaseReference.
Message representing a reference to a single Spanner database.
Generated from protobuf message google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference
Namespace
Google \ Cloud \ GeminiDataAnalytics \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ engine |
int
Required. The engine of the Spanner instance. |
↳ project_id |
string
Required. The project the instance belongs to. |
↳ instance_id |
string
Required. The instance id. |
↳ database_id |
string
Required. The database id. |
↳ table_ids |
string[]
Optional. The table ids. Denotes all tables if unset. |
↳ database_table_references |
array<DatabaseTableReference>
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. |
↳ priority |
string
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. |
↳ request_tag |
string
Tag to be attached to all queries to Spanner. Allows to identify and monitor queries sent to Spanner by the GDA service. |
getEngine
Required. The engine of the Spanner instance.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Engine. |
setEngine
Required. The engine of the Spanner instance.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Engine. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getProjectId
Required. The project the instance belongs to.
| Returns | |
|---|---|
| Type | Description |
string |
|
setProjectId
Required. The project the instance belongs to.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getInstanceId
Required. The instance id.
| Returns | |
|---|---|
| Type | Description |
string |
|
setInstanceId
Required. The instance id.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDatabaseId
Required. The database id.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDatabaseId
Required. The database id.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTableIds
Optional. The table ids. Denotes all tables if unset.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setTableIds
Optional. The table ids. Denotes all tables if unset.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDatabaseTableReferences
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.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<DatabaseTableReference> |
|
setDatabaseTableReferences
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.
| Parameter | |
|---|---|
| Name | Description |
var |
array<DatabaseTableReference>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
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.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPriority
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRequestTag
Tag to be attached to all queries to Spanner. Allows to identify and monitor queries sent to Spanner by the GDA service.
| Returns | |
|---|---|
| Type | Description |
string |
|
setRequestTag
Tag to be attached to all queries to Spanner. Allows to identify and monitor queries sent to Spanner by the GDA service.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|