public sealed class ImportClusterRequest : IMessage<ImportClusterRequest>, IEquatable<ImportClusterRequest>, IDeepCloneable<ImportClusterRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the AlloyDB v1beta API class ImportClusterRequest.
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 from SELECT
current_database(); 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 form
gs://bucketName/fileName.
Optional. Database user to be used for importing the data.
Note - Value provided should be the same as expected from
SELECT current_user; and NOT as a resource reference.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# AlloyDB v1beta API - Class ImportClusterRequest (1.0.0-beta12)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta12 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.ImportClusterRequest)\n- [1.0.0-beta11](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/1.0.0-beta11/Google.Cloud.AlloyDb.V1Beta.ImportClusterRequest) \n\n public sealed class ImportClusterRequest : IMessage\u003cImportClusterRequest\u003e, IEquatable\u003cImportClusterRequest\u003e, IDeepCloneable\u003cImportClusterRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AlloyDB v1beta API class ImportClusterRequest.\n\nImport cluster request. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ImportClusterRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ImportClusterRequest](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.ImportClusterRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ImportClusterRequest](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.ImportClusterRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ImportClusterRequest](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.ImportClusterRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AlloyDb.V1Beta](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1Beta.dll\n\nConstructors\n------------\n\n### ImportClusterRequest()\n\n public ImportClusterRequest()\n\n### ImportClusterRequest(ImportClusterRequest)\n\n public ImportClusterRequest(ImportClusterRequest other)\n\nProperties\n----------\n\n### ClusterName\n\n public ClusterName ClusterName { get; set; }\n\n[ClusterName](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.ClusterName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.ImportClusterRequest#Google_Cloud_AlloyDb_V1Beta_ImportClusterRequest_Name) resource name property.\n\n### CsvImportOptions\n\n public ImportClusterRequest.Types.CsvImportOptions CsvImportOptions { get; set; }\n\nOptions for importing data in CSV format.\n\n### Database\n\n public string Database { get; set; }\n\nOptional. Name of the database to which the import will be done.\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### GcsUri\n\n public string GcsUri { get; set; }\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### ImportOptionsCase\n\n public ImportClusterRequest.ImportOptionsOneofCase ImportOptionsCase { get; }\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The resource name of the cluster.\n\n### SqlImportOptions\n\n public ImportClusterRequest.Types.SqlImportOptions SqlImportOptions { get; set; }\n\nOptions for importing data in SQL format.\n\n### User\n\n public string User { get; set; }\n\nOptional. Database user to be used for importing the data.\nNote - Value provided should be the same as expected from\n`SELECT current_user;` and NOT as a resource reference."]]