Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class SpannerSource.
The Spanner source for importing data
Generated from protobuf message google.cloud.discoveryengine.v1.SpannerSource
Namespace
Google \ Cloud \ DiscoveryEngine \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ project_id
string
The project ID that contains the Spanner source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
↳ instance_id
string
Required. The instance ID of the source Spanner table.
↳ database_id
string
Required. The database ID of the source Spanner table.
↳ table_id
string
Required. The table name of the Spanner database that needs to be imported.
↳ enable_data_boost
bool
Whether to apply data boost on Spanner export. Enabling this option will incur additional cost. More info can be found here.
getProjectId
The project ID that contains the Spanner source. Has a length limit of 128
characters. If not specified, inherits the project ID from the parent
request.
Returns
Type
Description
string
setProjectId
The project ID that contains the Spanner source. Has a length limit of 128
characters. If not specified, inherits the project ID from the parent
request.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getInstanceId
Required. The instance ID of the source Spanner table.
Returns
Type
Description
string
setInstanceId
Required. The instance ID of the source Spanner table.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDatabaseId
Required. The database ID of the source Spanner table.
Returns
Type
Description
string
setDatabaseId
Required. The database ID of the source Spanner table.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTableId
Required. The table name of the Spanner database that needs to be imported.
Returns
Type
Description
string
setTableId
Required. The table name of the Spanner database that needs to be imported.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getEnableDataBoost
Whether to apply data boost on Spanner export. Enabling this option will
incur additional cost. More info can be found
here.
Returns
Type
Description
bool
setEnableDataBoost
Whether to apply data boost on Spanner export. Enabling this option will
incur additional cost. More info can be found
here.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Discovery Engine V1 Client - Class SpannerSource (1.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.0 (latest)](/php/docs/reference/cloud-discoveryengine/latest/V1.SpannerSource)\n- [1.6.1](/php/docs/reference/cloud-discoveryengine/1.6.1/V1.SpannerSource)\n- [1.5.1](/php/docs/reference/cloud-discoveryengine/1.5.1/V1.SpannerSource)\n- [1.4.0](/php/docs/reference/cloud-discoveryengine/1.4.0/V1.SpannerSource)\n- [1.3.3](/php/docs/reference/cloud-discoveryengine/1.3.3/V1.SpannerSource)\n- [1.2.0](/php/docs/reference/cloud-discoveryengine/1.2.0/V1.SpannerSource)\n- [1.1.0](/php/docs/reference/cloud-discoveryengine/1.1.0/V1.SpannerSource)\n- [1.0.0](/php/docs/reference/cloud-discoveryengine/1.0.0/V1.SpannerSource)\n- [0.11.3](/php/docs/reference/cloud-discoveryengine/0.11.3/V1.SpannerSource)\n- [0.8.0](/php/docs/reference/cloud-discoveryengine/0.8.0/V1.SpannerSource)\n- [0.7.1](/php/docs/reference/cloud-discoveryengine/0.7.1/V1.SpannerSource)\n- [0.6.0](/php/docs/reference/cloud-discoveryengine/0.6.0/V1.SpannerSource)\n- [0.5.0](/php/docs/reference/cloud-discoveryengine/0.5.0/V1.SpannerSource)\n- [0.4.0](/php/docs/reference/cloud-discoveryengine/0.4.0/V1.SpannerSource)\n- [0.3.0](/php/docs/reference/cloud-discoveryengine/0.3.0/V1.SpannerSource)\n- [0.2.0](/php/docs/reference/cloud-discoveryengine/0.2.0/V1.SpannerSource)\n- [0.1.1](/php/docs/reference/cloud-discoveryengine/0.1.1/V1.SpannerSource) \nReference documentation and code samples for the Google Cloud Discovery Engine V1 Client class SpannerSource.\n\nThe Spanner source for importing data\n\nGenerated from protobuf message `google.cloud.discoveryengine.v1.SpannerSource`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DiscoveryEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getProjectId\n\nThe project ID that contains the Spanner source. Has a length limit of 128\ncharacters. If not specified, inherits the project ID from the parent\nrequest.\n\n### setProjectId\n\nThe project ID that contains the Spanner source. Has a length limit of 128\ncharacters. If not specified, inherits the project ID from the parent\nrequest.\n\n### getInstanceId\n\nRequired. The instance ID of the source Spanner table.\n\n### setInstanceId\n\nRequired. The instance ID of the source Spanner table.\n\n### getDatabaseId\n\nRequired. The database ID of the source Spanner table.\n\n### setDatabaseId\n\nRequired. The database ID of the source Spanner table.\n\n### getTableId\n\nRequired. The table name of the Spanner database that needs to be imported.\n\n### setTableId\n\nRequired. The table name of the Spanner database that needs to be imported.\n\n### getEnableDataBoost\n\nWhether to apply data boost on Spanner export. Enabling this option will\nincur additional cost. More info can be found\n[here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas).\n\n### setEnableDataBoost\n\nWhether to apply data boost on Spanner export. Enabling this option will\nincur additional cost. More info can be found\n[here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas)."]]