/// <summary>Snippet for UpdateDocument</summary> public void UpdateDocument() { // Snippet: UpdateDocument(Document,DocumentMask,CallSettings) // Create client FirestoreClient firestoreClient = FirestoreClient.Create(); // Initialize request argument(s) Document document = new Document(); DocumentMask updateMask = new DocumentMask(); // Make the request Document response = firestoreClient.UpdateDocument(document, updateMask); // End snippet }
/// <summary>Snippet for UpdateDocument</summary> public void UpdateDocument_RequestObject() { // Snippet: UpdateDocument(UpdateDocumentRequest,CallSettings) // Create client FirestoreClient firestoreClient = FirestoreClient.Create(); // Initialize request argument(s) UpdateDocumentRequest request = new UpdateDocumentRequest { Document = new Document(), UpdateMask = new DocumentMask(), }; // Make the request Document response = firestoreClient.UpdateDocument(request); // End snippet }