/// <summary>Snippet for CreateDocument</summary> public void CreateDocument_RequestObject() { // Snippet: CreateDocument(CreateDocumentRequest,CallSettings) // Create client FirestoreClient firestoreClient = FirestoreClient.Create(); // Initialize request argument(s) CreateDocumentRequest request = new CreateDocumentRequest { Parent = new AnyPathName("[PROJECT]", "[DATABASE]", "[DOCUMENT]", "[ANY_PATH]").ToString(), CollectionId = "", DocumentId = "", Document = new Document(), }; // Make the request Document response = firestoreClient.CreateDocument(request); // End snippet }
/// <summary>Snippet for CreateDocument</summary> public void CreateDocumentRequestObject() { // Snippet: CreateDocument(CreateDocumentRequest, CallSettings) // Create client FirestoreClient firestoreClient = FirestoreClient.Create(); // Initialize request argument(s) CreateDocumentRequest request = new CreateDocumentRequest { Parent = "", CollectionId = "", DocumentId = "", Document = new Document(), Mask = new DocumentMask(), }; // Make the request Document response = firestoreClient.CreateDocument(request); // End snippet }