public sealed class CreateDocumentRequest : IMessage<CreateDocumentRequest>, IEquatable<CreateDocumentRequest>, IDeepCloneable<CreateDocumentRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Firestore v1 API class CreateDocumentRequest.
The request for
[Firestore.CreateDocument][google.firestore.v1.Firestore.CreateDocument].
Required. The parent resource. For example:
projects/{project_id}/databases/{database_id}/documents or
projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}
[[["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\u003eThis document provides reference information for the \u003ccode\u003eCreateDocumentRequest\u003c/code\u003e class within the Google Cloud Firestore v1 API, specifically for version 3.6.0, and links to other versions as well.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreateDocumentRequest\u003c/code\u003e is a class used to request the creation of a document in Firestore, implementing interfaces such as \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\u003eThe \u003ccode\u003eCreateDocumentRequest\u003c/code\u003e class has properties like \u003ccode\u003eCollectionId\u003c/code\u003e, \u003ccode\u003eDocument\u003c/code\u003e, \u003ccode\u003eDocumentId\u003c/code\u003e, \u003ccode\u003eMask\u003c/code\u003e, and \u003ccode\u003eParent\u003c/code\u003e, which define the necessary parameters for creating a document, such as the document's location, content, and ID.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes two constructors: one empty, and one that takes a \u003ccode\u003eCreateDocumentRequest\u003c/code\u003e parameter, and also inherits methods like \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation covers various older versions, ranging from 2.3.0 up to the latest 3.10.0, and they all refer to the \u003ccode\u003eCreateDocumentRequest\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]