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
AlloyDB export to a specific Cloud Storage directory.
Ensure that the AlloyDB service account has the necessary Cloud
Storage Admin permissions to access the specified Cloud Storage directory.
The project ID that contains the AlloyDB 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\u003eAlloyDbSource\u003c/code\u003e class in the Discovery Engine v1beta API is used to import data from an AlloyDB source.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAlloyDbSource\u003c/code\u003e requires the specification of \u003ccode\u003eClusterId\u003c/code\u003e, \u003ccode\u003eDatabaseId\u003c/code\u003e, \u003ccode\u003eLocationId\u003c/code\u003e, and \u003ccode\u003eTableId\u003c/code\u003e, all with a maximum length of 256 characters.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGcsStagingDir\u003c/code\u003e property allows for an optional intermediate Cloud Storage directory for the import process, limited to 2,000 characters, and \u003ccode\u003eProjectId\u003c/code\u003e is also an optional value that defaults to the parent request's project ID if not specified.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for creating an \u003ccode\u003eAlloyDbSource\u003c/code\u003e object: one default and another that takes an existing \u003ccode\u003eAlloyDbSource\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class AlloyDbSource (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.AlloyDbSource)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.AlloyDbSource) \n\n public sealed class AlloyDbSource : IMessage\u003cAlloyDbSource\u003e, IEquatable\u003cAlloyDbSource\u003e, IDeepCloneable\u003cAlloyDbSource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1beta API class AlloyDbSource.\n\nAlloyDB source import data from. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AlloyDbSource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AlloyDbSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AlloyDbSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AlloyDbSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AlloyDbSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AlloyDbSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AlloyDbSource), [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### AlloyDbSource()\n\n public AlloyDbSource()\n\n### AlloyDbSource(AlloyDbSource)\n\n public AlloyDbSource(AlloyDbSource other)\n\nProperties\n----------\n\n### ClusterId\n\n public string ClusterId { get; set; }\n\nRequired. The AlloyDB cluster to copy the data from with a length limit of\n256 characters.\n\n### DatabaseId\n\n public string DatabaseId { get; set; }\n\nRequired. The AlloyDB database to copy the data from with a length limit of\n256 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\nAlloyDB export to a specific Cloud Storage directory.\n\nEnsure that the AlloyDB service account has the necessary Cloud\nStorage Admin permissions to access the specified Cloud Storage directory.\n\n### LocationId\n\n public string LocationId { get; set; }\n\nRequired. The AlloyDB location to copy the data from with a length limit of\n256 characters.\n\n### ProjectId\n\n public string ProjectId { get; set; }\n\nThe project ID that contains the AlloyDB source.\nHas a length limit of 128 characters. If not specified, inherits the\nproject ID from the parent request.\n\n### TableId\n\n public string TableId { get; set; }\n\nRequired. The AlloyDB table to copy the data from with a length limit of\n256 characters."]]