/// <summary>Snippet for BatchProcessDocuments</summary> public void BatchProcessDocumentsResourceNames() { // Snippet: BatchProcessDocuments(ProcessorName, CallSettings) // Create client DocumentProcessorServiceClient documentProcessorServiceClient = DocumentProcessorServiceClient.Create(); // Initialize request argument(s) ProcessorName name = ProcessorName.FromProjectLocationProcessor("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); // Make the request Operation <BatchProcessResponse, BatchProcessMetadata> response = documentProcessorServiceClient.BatchProcessDocuments(name); // Poll until the returned long-running operation is complete Operation <BatchProcessResponse, BatchProcessMetadata> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result BatchProcessResponse result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <BatchProcessResponse, BatchProcessMetadata> retrievedResponse = documentProcessorServiceClient.PollOnceBatchProcessDocuments(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result BatchProcessResponse retrievedResult = retrievedResponse.Result; } // End snippet }