コード例 #1
0
 /// <summary>Snippet for GetDocument</summary>
 public void GetDocument_RequestObject()
 {
     // Snippet: GetDocument(GetDocumentRequest,CallSettings)
     // Create client
     FirestoreClient firestoreClient = FirestoreClient.Create();
     // Initialize request argument(s)
     GetDocumentRequest request = new GetDocumentRequest
     {
         Name = new AnyPathName("[PROJECT]", "[DATABASE]", "[DOCUMENT]", "[ANY_PATH]").ToString(),
     };
     // Make the request
     Document response = firestoreClient.GetDocument(request);
     // End snippet
 }
コード例 #2
0
 /// <summary>Snippet for GetDocument</summary>
 public void GetDocumentRequestObject()
 {
     // Snippet: GetDocument(GetDocumentRequest, CallSettings)
     // Create client
     FirestoreClient firestoreClient = FirestoreClient.Create();
     // Initialize request argument(s)
     GetDocumentRequest request = new GetDocumentRequest
     {
         Name        = "",
         Mask        = new DocumentMask(),
         Transaction = ByteString.Empty,
     };
     // Make the request
     Document response = firestoreClient.GetDocument(request);
     // End snippet
 }