NAME
Google::Cloud::Documentai::V1beta3::DocumentProcessorServiceClient - Client library for Google Cloud Services
SYNOPSIS
use Google::Cloud::Documentai::V1beta3::DocumentProcessorServiceClient;
use Google::Auth;
my $auth = Google::Auth->default();
# 1. High-performance gRPC Transport (Default)
my $grpc_client = Google::Cloud::Documentai::V1beta3::DocumentProcessorServiceClient->new(
credentials => $auth,
transport => 'grpc', # Optional: 'grpc' is default
);
# 2. HTTP/REST Transport
my $rest_client = Google::Cloud::Documentai::V1beta3::DocumentProcessorServiceClient->new(
credentials => $auth,
transport => 'rest',
);
# Execute service methods
my $res = $grpc_client->some_method( %params );
DESCRIPTION
Google::Cloud::Documentai::V1beta3::DocumentProcessorServiceClient is an auto-generated client library for Google Cloud Services.
It provides a unified client interface supporting both high-performance HTTP/2 gRPC and HTTP/REST transports, with automatic Google Cloud Application Default Credentials (ADC) resolution and typed Protocol Buffers message handling.
SOURCE
Generated from the following Protocol Buffers schemas:
googleapis/google/cloud/documentai/v1beta3/barcode.protogoogleapis/google/cloud/documentai/v1beta3/dataset.protogoogleapis/google/cloud/documentai/v1beta3/document.protogoogleapis/google/cloud/documentai/v1beta3/document_io.protogoogleapis/google/cloud/documentai/v1beta3/document_processor_service.protogoogleapis/google/cloud/documentai/v1beta3/document_schema.protogoogleapis/google/cloud/documentai/v1beta3/document_service.protogoogleapis/google/cloud/documentai/v1beta3/evaluation.protogoogleapis/google/cloud/documentai/v1beta3/geometry.protogoogleapis/google/cloud/documentai/v1beta3/operation_metadata.protogoogleapis/google/cloud/documentai/v1beta3/processor.protogoogleapis/google/cloud/documentai/v1beta3/processor_type.proto
CONSTRUCTOR
new
my $client = Google::Cloud::Documentai::V1beta3::DocumentProcessorServiceClient->new(
credentials => $auth, # Optional: Google::Auth object (defaults to ADC)
transport => 'grpc', # Optional: 'grpc' (default) or 'rest'
);
ATTRIBUTES
credentials
Returns or accepts the Google::Auth credentials object.
transport
Returns or accepts the active transport object (Google::gRPC::Client or Google::Cloud::REST::Client).
METHODS
METHODS
The following RPC methods are available in this client:
process_document
my $response = $client->process_document( name => $name, document => $document, skip_human_review => $skip_human_review, field_mask => $field_mask, process_options => $process_options, labels => { ... }, imageless_mode => $imageless_mode, );Calls the RPC method
ProcessDocumentongoogle.cloud.documentai.v1beta3.DocumentProcessorService.Request: Google::Cloud::Documentai::V1beta3::DocumentProcessorService::ProcessRequest
Returns: Google::Cloud::Documentai::V1beta3::DocumentProcessorService::ProcessResponse
Parameters:
name-stringdocument- Google::Cloud::Documentai::V1beta3::Document::Documentskip_human_review-boolfield_mask- Google::Protobuf::FieldMask::FieldMaskprocess_options- Google::Cloud::Documentai::V1beta3::DocumentProcessorService::ProcessOptionslabels-map<string, string> (HashRef)imageless_mode-bool
evaluate_processor_version
my $response = $client->evaluate_processor_version( processor_version => $processor_version, evaluation_documents => $evaluation_documents, );Calls the RPC method
EvaluateProcessorVersionongoogle.cloud.documentai.v1beta3.DocumentProcessorService.Request: Google::Cloud::Documentai::V1beta3::DocumentProcessorService::EvaluateProcessorVersionRequest
Returns: Google::Longrunning::Operations::Operation
Parameters:
processor_version-stringevaluation_documents- Google::Cloud::Documentai::V1beta3::DocumentIo::BatchDocumentsInputConfig
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.