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"]],[["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-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCloudSqlSource\u003c/code\u003e class in the Google.Cloud.DiscoveryEngine.V1 API facilitates importing data from a Cloud SQL source into the Discovery Engine.\u003c/p\u003e\n"],["\u003cp\u003eVersion 1.6.0 is the latest available version of the \u003ccode\u003eCloudSqlSource\u003c/code\u003e class, with several previous versions also listed for reference.\u003c/p\u003e\n"],["\u003cp\u003eThis class requires the specification of \u003ccode\u003eDatabaseId\u003c/code\u003e, \u003ccode\u003eInstanceId\u003c/code\u003e, and \u003ccode\u003eTableId\u003c/code\u003e to identify the Cloud SQL data source and also has a \u003ccode\u003eProjectId\u003c/code\u003e property, which defaults to the parent request if not specified, that is restricted to 128 characters.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCloudSqlSource\u003c/code\u003e class has properties such as \u003ccode\u003eGcsStagingDir\u003c/code\u003e to specify an intermediate Cloud Storage directory and \u003ccode\u003eOffload\u003c/code\u003e to enable serverless export.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCloudSqlSource\u003c/code\u003e class implements several interfaces, including IMessage, IEquatable, and IDeepCloneable, supporting message handling and deep cloning.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class CloudSqlSource (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CloudSqlSource)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.CloudSqlSource)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.CloudSqlSource)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.CloudSqlSource)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.CloudSqlSource)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.CloudSqlSource)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.CloudSqlSource)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.CloudSqlSource)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.CloudSqlSource)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.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 v1 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.V1/latest/Google.Cloud.DiscoveryEngine.V1.CloudSqlSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CloudSqlSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CloudSqlSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CloudSqlSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.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.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.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."]]