Required. The path to the file in Google Cloud Storage where the source file for import will be stored. The URI is in the formgs://bucketName/fileName.
↳ database
string
Optional. Name of the database to which the import will be done. For import from SQL file, this is required only if the file does not specify a database. Note - Value provided should be the same as expected fromSELECT current_database();and NOT as a resource reference.
↳ user
string
Optional. Database user to be used for importing the data. Note - Value provided should be the same as expected fromSELECT current_user;and NOT as a resource reference.
Required. The path to the file in Google Cloud Storage where the source
file for import will be stored. The URI is in the formgs://bucketName/fileName.
Returns
Type
Description
string
setGcsUri
Required. The path to the file in Google Cloud Storage where the source
file for import will be stored. The URI is in the formgs://bucketName/fileName.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDatabase
Optional. Name of the database to which the import will be done.
For import from SQL file, this is required only if the file does not
specify a database.
Note - Value provided should be the same as expected fromSELECT
current_database();and NOT as a resource reference.
Returns
Type
Description
string
setDatabase
Optional. Name of the database to which the import will be done.
For import from SQL file, this is required only if the file does not
specify a database.
Note - Value provided should be the same as expected fromSELECT
current_database();and NOT as a resource reference.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getUser
Optional. Database user to be used for importing the data.
Note - Value provided should be the same as expected fromSELECT current_user;and NOT as a resource reference.
Returns
Type
Description
string
setUser
Optional. Database user to be used for importing the data.
Note - Value provided should be the same as expected fromSELECT current_user;and NOT as a resource reference.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getImportOptions
Returns
Type
Description
string
static::build
Parameters
Name
Description
name
string
Required. The resource name of the cluster. Please seeAlloyDBAdminClient::clusterName()for help formatting this field.
gcsUri
string
Required. The path to the file in Google Cloud Storage where the source
file for import will be stored. The URI is in the formgs://bucketName/fileName.
database
string
Optional. Name of the database to which the import will be done.
For import from SQL file, this is required only if the file does not
specify a database.
Note - Value provided should be the same as expected fromSELECT
current_database();and NOT as a resource reference.
user
string
Optional. Database user to be used for importing the data.
Note - Value provided should be the same as expected fromSELECT current_user;and NOT as a resource reference.
[[["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 AlloyDB for PostgreSQL V1 Client - Class ImportClusterRequest (1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/php/docs/reference/cloud-alloydb/latest/V1.ImportClusterRequest)\n- [1.4.0](/php/docs/reference/cloud-alloydb/1.4.0/V1.ImportClusterRequest)\n- [1.3.0](/php/docs/reference/cloud-alloydb/1.3.0/V1.ImportClusterRequest)\n- [1.2.0](/php/docs/reference/cloud-alloydb/1.2.0/V1.ImportClusterRequest)\n- [1.1.3](/php/docs/reference/cloud-alloydb/1.1.3/V1.ImportClusterRequest)\n- [1.0.0](/php/docs/reference/cloud-alloydb/1.0.0/V1.ImportClusterRequest)\n- [0.10.3](/php/docs/reference/cloud-alloydb/0.10.3/V1.ImportClusterRequest)\n- [0.9.0](/php/docs/reference/cloud-alloydb/0.9.0/V1.ImportClusterRequest)\n- [0.8.0](/php/docs/reference/cloud-alloydb/0.8.0/V1.ImportClusterRequest)\n- [0.7.1](/php/docs/reference/cloud-alloydb/0.7.1/V1.ImportClusterRequest)\n- [0.6.0](/php/docs/reference/cloud-alloydb/0.6.0/V1.ImportClusterRequest)\n- [0.5.0](/php/docs/reference/cloud-alloydb/0.5.0/V1.ImportClusterRequest)\n- [0.4.0](/php/docs/reference/cloud-alloydb/0.4.0/V1.ImportClusterRequest)\n- [0.3.0](/php/docs/reference/cloud-alloydb/0.3.0/V1.ImportClusterRequest)\n- [0.2.1](/php/docs/reference/cloud-alloydb/0.2.1/V1.ImportClusterRequest)\n- [0.1.3](/php/docs/reference/cloud-alloydb/0.1.3/V1.ImportClusterRequest) \nReference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class ImportClusterRequest.\n\nImport cluster request.\n\nGenerated from protobuf message `google.cloud.alloydb.v1.ImportClusterRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AlloyDb \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSqlImportOptions\n\nOptions for importing data in SQL format.\n\n### hasSqlImportOptions\n\n### setSqlImportOptions\n\nOptions for importing data in SQL format.\n\n### getCsvImportOptions\n\nOptions for importing data in CSV format.\n\n### hasCsvImportOptions\n\n### setCsvImportOptions\n\nOptions for importing data in CSV format.\n\n### getName\n\nRequired. The resource name of the cluster.\n\n### setName\n\nRequired. The resource name of the cluster.\n\n### getGcsUri\n\nRequired. The path to the file in Google Cloud Storage where the source\nfile for import will be stored. The URI is in the form\n`gs://bucketName/fileName`.\n\n### setGcsUri\n\nRequired. The path to the file in Google Cloud Storage where the source\nfile for import will be stored. The URI is in the form\n`gs://bucketName/fileName`.\n\n### getDatabase\n\nOptional. Name of the database to which the import will be done.\n\nFor import from SQL file, this is required only if the file does not\nspecify a database.\nNote - Value provided should be the same as expected from `SELECT\ncurrent_database();` and NOT as a resource reference.\n\n### setDatabase\n\nOptional. Name of the database to which the import will be done.\n\nFor import from SQL file, this is required only if the file does not\nspecify a database.\nNote - Value provided should be the same as expected from `SELECT\ncurrent_database();` and NOT as a resource reference.\n\n### getUser\n\nOptional. Database user to be used for importing the data.\n\nNote - Value provided should be the same as expected from\n`SELECT current_user;` and NOT as a resource reference.\n\n### setUser\n\nOptional. Database user to be used for importing the data.\n\nNote - Value provided should be the same as expected from\n`SELECT current_user;` and NOT as a resource reference.\n\n### getImportOptions\n\n### static::build"]]