public sealed class ImportDocumentsRequest : IMessage<ImportDocumentsRequest>, IEquatable<ImportDocumentsRequest>, IDeepCloneable<ImportDocumentsRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2 API class ImportDocumentsRequest.
Request message for
[Documents.ImportDocuments][google.cloud.dialogflow.v2.Documents.ImportDocuments].
[[["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-09-04 UTC."],[[["\u003cp\u003eThe latest version available for \u003ccode\u003eImportDocumentsRequest\u003c/code\u003e within the Google Cloud Dialogflow V2 API is version 4.26.0, with a comprehensive list of prior versions provided ranging from 4.25.0 down to 3.2.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eImportDocumentsRequest\u003c/code\u003e is a class in the Google.Cloud.Dialogflow.V2 namespace used as the request message for importing documents in the Dialogflow API, which inherits from the base object class and implements several interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eImportDocumentsRequest\u003c/code\u003e class requires a \u003ccode\u003eDocumentTemplate\u003c/code\u003e and a \u003ccode\u003eParent\u003c/code\u003e property, where \u003ccode\u003eParent\u003c/code\u003e specifies the knowledge base to import the documents into, and also offers an optional \u003ccode\u003eGcsSource\u003c/code\u003e property for specifying the Google Cloud Storage location of the documents.\u003c/p\u003e\n"],["\u003cp\u003eThis class has an \u003ccode\u003eImportGcsCustomMetadata\u003c/code\u003e property that enables the importing of custom metadata from Google Cloud Storage, but this is only applicable when the document source is a Google Cloud Storage URI.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides a \u003ccode\u003eSourceCase\u003c/code\u003e property that can be used to determine the source of the documents being imported, and also implements both a default constructor and a copy constructor for instances of \u003ccode\u003eImportDocumentsRequest\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dialogflow v2 API - Class ImportDocumentsRequest (4.26.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.26.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.25.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.25.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.24.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.24.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.23.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.23.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.22.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.22.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.21.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.21.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.20.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.20.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.19.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.19.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.18.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.18.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.17.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.17.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.16.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.16.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.15.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.15.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.14.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.13.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.12.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.11.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.10.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.9.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.8.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.7.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.6.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.5.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.4.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.3.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.2.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.1.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.0.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.11.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.10.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.9.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.8.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.7.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.6.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.5.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.4.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.3.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.2.0/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest) \n\n public sealed class ImportDocumentsRequest : IMessage\u003cImportDocumentsRequest\u003e, IEquatable\u003cImportDocumentsRequest\u003e, IDeepCloneable\u003cImportDocumentsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dialogflow v2 API class ImportDocumentsRequest.\n\nRequest message for\n\\[Documents.ImportDocuments\\]\\[google.cloud.dialogflow.v2.Documents.ImportDocuments\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ImportDocumentsRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ImportDocumentsRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ImportDocumentsRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ImportDocumentsRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest), [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.Dialogflow.V2](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Dialogflow.V2.dll\n\nConstructors\n------------\n\n### ImportDocumentsRequest()\n\n public ImportDocumentsRequest()\n\n### ImportDocumentsRequest(ImportDocumentsRequest)\n\n public ImportDocumentsRequest(ImportDocumentsRequest other)\n\nProperties\n----------\n\n### DocumentTemplate\n\n public ImportDocumentTemplate DocumentTemplate { get; set; }\n\nRequired. Document template used for importing all the documents.\n\n### GcsSource\n\n public GcsSources GcsSource { get; set; }\n\nOptional. The Google Cloud Storage location for the documents.\nThe path can include a wildcard.\n\nThese URIs may have the forms\n`gs://\u003cbucket-name\u003e/\u003cobject-name\u003e`.\n`gs://\u003cbucket-name\u003e/\u003cobject-path\u003e/*.\u003cextension\u003e`.\n\n### ImportGcsCustomMetadata\n\n public bool ImportGcsCustomMetadata { get; set; }\n\nWhether to import custom metadata from Google Cloud Storage.\nOnly valid when the document source is Google Cloud Storage URI.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The knowledge base to import documents into.\nFormat: `projects/\u003cProject ID\u003e/locations/\u003cLocation\nID\u003e/knowledgeBases/\u003cKnowledge Base ID\u003e`.\n\n### ParentAsKnowledgeBaseName\n\n public KnowledgeBaseName ParentAsKnowledgeBaseName { get; set; }\n\n[KnowledgeBaseName](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.KnowledgeBaseName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.ImportDocumentsRequest#Google_Cloud_Dialogflow_V2_ImportDocumentsRequest_Parent) resource name property.\n\n### SourceCase\n\n public ImportDocumentsRequest.SourceOneofCase SourceCase { get; }"]]