public sealed class FirestoreSource : IMessage<FirestoreSource>, IEquatable<FirestoreSource>, IDeepCloneable<FirestoreSource>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class FirestoreSource.
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
Firestore export to a specific Cloud Storage directory.
Ensure that the Firestore service account has the necessary Cloud
Storage Admin permissions to access the specified Cloud Storage directory.
The project ID that the Cloud SQL source is in with 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\u003e\u003ccode\u003eFirestoreSource\u003c/code\u003e is a class in the Discovery Engine v1beta API, used for importing data from a Firestore source.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFirestoreSource\u003c/code\u003e class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, extending its functionality.\u003c/p\u003e\n"],["\u003cp\u003eThis class includes constructors for creating instances, either default or based on another \u003ccode\u003eFirestoreSource\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eFirestoreSource\u003c/code\u003e class include \u003ccode\u003eCollectionId\u003c/code\u003e, \u003ccode\u003eDatabaseId\u003c/code\u003e, \u003ccode\u003eGcsStagingDir\u003c/code\u003e, and \u003ccode\u003eProjectId\u003c/code\u003e, each serving to define the source and location of the Firestore data.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class FirestoreSource (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.FirestoreSource)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.FirestoreSource) \n\n public sealed class FirestoreSource : IMessage\u003cFirestoreSource\u003e, IEquatable\u003cFirestoreSource\u003e, IDeepCloneable\u003cFirestoreSource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1beta API class FirestoreSource.\n\nFirestore source import data from. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e FirestoreSource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[FirestoreSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.FirestoreSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[FirestoreSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.FirestoreSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[FirestoreSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.FirestoreSource), [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### FirestoreSource()\n\n public FirestoreSource()\n\n### FirestoreSource(FirestoreSource)\n\n public FirestoreSource(FirestoreSource other)\n\nProperties\n----------\n\n### CollectionId\n\n public string CollectionId { get; set; }\n\nRequired. The Firestore collection (or entity) to copy the data from with a\nlength limit of 1,500 characters.\n\n### DatabaseId\n\n public string DatabaseId { get; set; }\n\nRequired. The Firestore 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\nFirestore export to a specific Cloud Storage directory.\n\nEnsure that the Firestore service account has the necessary Cloud\nStorage Admin permissions to access the specified Cloud Storage directory.\n\n### ProjectId\n\n public string ProjectId { get; set; }\n\nThe project ID that the Cloud SQL source is in with a length limit of 128\ncharacters. If not specified, inherits the project ID from the parent\nrequest."]]