public sealed class FirestoreSource : IMessage<FirestoreSource>, IEquatable<FirestoreSource>, IDeepCloneable<FirestoreSource>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 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"]],[["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\u003eThis document provides reference information for the \u003ccode\u003eFirestoreSource\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFirestoreSource\u003c/code\u003e class allows importing data from a Firestore source, which includes the collection, database, and project ID.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes constructors for creating new instances, either blank, or by copying from an existing \u003ccode\u003eFirestoreSource\u003c/code\u003e instance.\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, all requiring certain character limits.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eFirestoreSource\u003c/code\u003e API is 1.6.0, and prior versions back to 1.0.0-beta06 are also documented.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class FirestoreSource (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.FirestoreSource)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.FirestoreSource)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.FirestoreSource)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.FirestoreSource)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.FirestoreSource)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.FirestoreSource)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.FirestoreSource)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.FirestoreSource)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.FirestoreSource)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.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 v1 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.V1/latest/Google.Cloud.DiscoveryEngine.V1.FirestoreSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[FirestoreSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.FirestoreSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[FirestoreSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.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.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### 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."]]