Intermediate Cloud Storage directory used for the import with a length
limit of 2,000 characters. Can be specified if one wants to have the
Cloud SQL export to a specific Cloud Storage directory.
Ensure that the Cloud SQL service account has the necessary Cloud
Storage Admin permissions to access the specified Cloud Storage directory.
The project ID that contains the Cloud SQL source. Has a length limit of
128 characters. If not specified, inherits the project ID from the parent
request.
[[["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."],[[["\u003cp\u003eThe \u003ccode\u003eCloudSqlSource\u003c/code\u003e class in the Google Cloud Discovery Engine v1beta API is used for importing data from a Cloud SQL source, representing a data import source.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCloudSqlSource\u003c/code\u003e implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionality for message handling, equality comparison, deep cloning, and buffered message manipulation.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties like \u003ccode\u003eDatabaseId\u003c/code\u003e, \u003ccode\u003eGcsStagingDir\u003c/code\u003e, \u003ccode\u003eInstanceId\u003c/code\u003e, \u003ccode\u003eOffload\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, and \u003ccode\u003eTableId\u003c/code\u003e to configure the Cloud SQL source, including database and table specifications, staging directory, and serverless export options.\u003c/p\u003e\n"],["\u003cp\u003eThere are two versions available: \u003ccode\u003e1.0.0-beta18\u003c/code\u003e as the latest, and \u003ccode\u003e1.0.0-beta17\u003c/code\u003e available for referencing in the Google Cloud Discovery Engine v1Beta API documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and also includes inherited members for methods such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class CloudSqlSource (1.0.0-beta19)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta19 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CloudSqlSource)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.CloudSqlSource) \n\n public sealed class CloudSqlSource : IMessage\u003cCloudSqlSource\u003e, IEquatable\u003cCloudSqlSource\u003e, IDeepCloneable\u003cCloudSqlSource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1beta API class CloudSqlSource.\n\nCloud SQL source import data from. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CloudSqlSource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CloudSqlSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CloudSqlSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CloudSqlSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CloudSqlSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CloudSqlSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CloudSqlSource), [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.DiscoveryEngine.V1Beta](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1Beta.dll\n\nConstructors\n------------\n\n### CloudSqlSource()\n\n public CloudSqlSource()\n\n### CloudSqlSource(CloudSqlSource)\n\n public CloudSqlSource(CloudSqlSource other)\n\nProperties\n----------\n\n### DatabaseId\n\n public string DatabaseId { get; set; }\n\nRequired. The Cloud SQL database to copy the data from with a length limit\nof 256 characters.\n\n### GcsStagingDir\n\n public string GcsStagingDir { get; set; }\n\nIntermediate Cloud Storage directory used for the import with a length\nlimit of 2,000 characters. Can be specified if one wants to have the\nCloud SQL export to a specific Cloud Storage directory.\n\nEnsure that the Cloud SQL service account has the necessary Cloud\nStorage Admin permissions to access the specified Cloud Storage directory.\n\n### InstanceId\n\n public string InstanceId { get; set; }\n\nRequired. The Cloud SQL instance to copy the data from with a length limit\nof 256 characters.\n\n### Offload\n\n public bool Offload { get; set; }\n\nOption for serverless export. Enabling this option will incur additional\ncost. More info can be found\n[here](https://cloud.google.com/sql/pricing#serverless).\n\n### ProjectId\n\n public string ProjectId { get; set; }\n\nThe project ID that contains the Cloud SQL source. Has a length limit of\n128 characters. If not specified, inherits the project ID from the parent\nrequest.\n\n### TableId\n\n public string TableId { get; set; }\n\nRequired. The Cloud SQL table to copy the data from with a length limit of\n256 characters."]]