/// <summary>Snippet for ProcessDocument</summary> public void ProcessDocument() { // Snippet: ProcessDocument(string, CallSettings) // Create client DocumentProcessorServiceClient documentProcessorServiceClient = DocumentProcessorServiceClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/processors/[PROCESSOR]"; // Make the request ProcessResponse response = documentProcessorServiceClient.ProcessDocument(name); // End snippet }
/// <summary>Snippet for ProcessDocument</summary> public void ProcessDocumentResourceNames() { // Snippet: ProcessDocument(ProcessorName, CallSettings) // Create client DocumentProcessorServiceClient documentProcessorServiceClient = DocumentProcessorServiceClient.Create(); // Initialize request argument(s) ProcessorName name = ProcessorName.FromProjectLocationProcessor("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); // Make the request ProcessResponse response = documentProcessorServiceClient.ProcessDocument(name); // End snippet }
/// <summary>Snippet for ProcessDocument</summary> public void ProcessDocumentRequestObject() { // Snippet: ProcessDocument(ProcessRequest, CallSettings) // Create client DocumentProcessorServiceClient documentProcessorServiceClient = DocumentProcessorServiceClient.Create(); // Initialize request argument(s) ProcessRequest request = new ProcessRequest { ProcessorName = ProcessorName.FromProjectLocationProcessor("[PROJECT]", "[LOCATION]", "[PROCESSOR]"), SkipHumanReview = false, InlineDocument = new Document(), }; // Make the request ProcessResponse response = documentProcessorServiceClient.ProcessDocument(request); // End snippet }