Output only. The account ID of the service used for the purpose of this connection. When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.
getInstanceId
Cloud SQL instance ID in the formproject:location:instance.
Returns
Type
Description
string
setInstanceId
Cloud SQL instance ID in the formproject:location:instance.
Output only. The account ID of the service used for the purpose of this
connection.
When the connection is used in the context of an operation in
BigQuery, this service account will serve as the identity being used for
connecting to the CloudSQL instance specified in this connection.
Returns
Type
Description
string
setServiceAccountId
Output only. The account ID of the service used for the purpose of this
connection.
When the connection is used in the context of an operation in
BigQuery, this service account will serve as the identity being used for
connecting to the CloudSQL instance specified in this connection.
[[["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 BigQuery Connection V1 Client - Class CloudSqlProperties (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-bigquery-connection/latest/V1.CloudSqlProperties)\n- [2.0.4](/php/docs/reference/cloud-bigquery-connection/2.0.4/V1.CloudSqlProperties)\n- [1.5.5](/php/docs/reference/cloud-bigquery-connection/1.5.5/V1.CloudSqlProperties)\n- [1.4.1](/php/docs/reference/cloud-bigquery-connection/1.4.1/V1.CloudSqlProperties)\n- [1.3.1](/php/docs/reference/cloud-bigquery-connection/1.3.1/V1.CloudSqlProperties)\n- [1.2.2](/php/docs/reference/cloud-bigquery-connection/1.2.2/V1.CloudSqlProperties)\n- [1.1.0](/php/docs/reference/cloud-bigquery-connection/1.1.0/V1.CloudSqlProperties)\n- [1.0.3](/php/docs/reference/cloud-bigquery-connection/1.0.3/V1.CloudSqlProperties) \nReference documentation and code samples for the Google BigQuery Connection V1 Client class CloudSqlProperties.\n\nConnection properties specific to the Cloud SQL.\n\nGenerated from protobuf message `google.cloud.bigquery.connection.v1.CloudSqlProperties`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BigQuery \\\\ Connection \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getInstanceId\n\nCloud SQL instance ID in the form `project:location:instance`.\n\n### setInstanceId\n\nCloud SQL instance ID in the form `project:location:instance`.\n\n### getDatabase\n\nDatabase name.\n\n### setDatabase\n\nDatabase name.\n\n### getType\n\nType of the Cloud SQL database.\n\n### setType\n\nType of the Cloud SQL database.\n\n### getCredential\n\nInput only. Cloud SQL credential.\n\n### hasCredential\n\n### clearCredential\n\n### setCredential\n\nInput only. Cloud SQL credential.\n\n### getServiceAccountId\n\nOutput only. The account ID of the service used for the purpose of this\nconnection.\n\nWhen the connection is used in the context of an operation in\nBigQuery, this service account will serve as the identity being used for\nconnecting to the CloudSQL instance specified in this connection.\n\n### setServiceAccountId\n\nOutput only. The account ID of the service used for the purpose of this\nconnection.\n\nWhen the connection is used in the context of an operation in\nBigQuery, this service account will serve as the identity being used for\nconnecting to the CloudSQL instance specified in this connection."]]