Service Client: Google::Cloud::Documentai::V1::DocumentProcessorService::DocumentProcessorServiceClient
Client stub representing the remote DocumentProcessorService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to documentai.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Documentai::V1::DocumentProcessorService - Compiled Protocol Buffers messages for google/cloud/documentai/v1/document_processor_service.proto
SYNOPSIS
use Google::Cloud::Documentai::V1::DocumentProcessorService;
my $msg = Google::Cloud::Documentai::V1::DocumentProcessorService::ProcessOptions->new({
individual_page_selector => $individual_page_selector,
from_start => $from_start,
from_end => $from_end,
ocr_config => $ocr_config,
});
# Read or update a field
my $val = $msg->individual_page_selector();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Documentai::V1::DocumentProcessorService::ProcessOptions->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/documentai/v1/document_processor_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Documentai::V1::DocumentProcessorService::ProcessOptions
Options for Process API
Inherits from Protobuf::Message.
Accessors
$msg->individual_page_selector()/$msg->individual_page_selector($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentProcessorService::ProcessOptions::IndividualPageSelector)Which pages to process (1-indexed).
$msg->from_start()/$msg->from_start($value)Type:
Int32Only process certain pages from the start. Process all if the document has fewer pages.
$msg->from_end()/$msg->from_end($value)Type:
Int32Only process certain pages from the end, same as above.
$msg->ocr_config()/$msg->ocr_config($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentIo::OcrConfig)Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor types.
$msg->layout_config()/$msg->layout_config($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentProcessorService::ProcessOptions::LayoutConfig)Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. Returns error if set on other processor types.
$msg->schema_override()/$msg->schema_override($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema)Optional. Override the schema of the [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Will return an Invalid Argument error if this field is set when the underlying [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] doesn't support schema override.
Google::Cloud::Documentai::V1::DocumentProcessorService::ProcessRequest
Request message for the [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] method.
Inherits from Protobuf::Message.
Accessors
$msg->inline_document()/$msg->inline_document($value)Type:
Message(Google::Cloud::Documentai::V1::Document::Document)An inline document proto.
$msg->raw_document()/$msg->raw_document($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentIo::RawDocument)A raw document content (bytes).
$msg->gcs_document()/$msg->gcs_document($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentIo::GcsDocument)A raw document on Google Cloud Storage.
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the [Processor][google.cloud.documentai.v1.Processor] or [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to use for processing. If a [Processor][google.cloud.documentai.v1.Processor] is specified, the server will use its [default version][google.cloud.documentai.v1.Processor.default_processor_version]. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
$msg->skip_human_review()/$msg->skip_human_review($value)Type:
BoolWhether human review should be skipped for this request. Default to `false`.
$msg->field_mask()/$msg->field_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Specifies which fields to include in the [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document] output. Only supports top-level document and pages field, so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`.
$msg->process_options()/$msg->process_options($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentProcessorService::ProcessOptions)Inference-time options for the process API
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentProcessorService::ProcessRequest::LabelsEntry)Optional. The labels with user-defined metadata for the request.
Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
$msg->imageless_mode()/$msg->imageless_mode($value)Type:
BoolOptional. Option to remove images from the document.
Google::Cloud::Documentai::V1::DocumentProcessorService::HumanReviewStatus
The status of human review on a processed document.
Inherits from Protobuf::Message.
Accessors
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Documentai::V1::HumanReviewStatus::State)The state of human review on the processing request.
$msg->state_message()/$msg->state_message($value)Type:
StringA message providing more details about the human review state.
$msg->human_review_operation()/$msg->human_review_operation($value)Type:
StringThe name of the operation triggered by the processed document. This field is populated only when the [state][google.cloud.documentai.v1.HumanReviewStatus.state] is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation returned by [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
Enum: HumanReviewStatus::State
STATE_UNSPECIFIED=>0SKIPPED=>1VALIDATION_PASSED=>2IN_PROGRESS=>3ERROR=>4
Google::Cloud::Documentai::V1::DocumentProcessorService::ProcessResponse
Response message for the [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] method.
Inherits from Protobuf::Message.
Accessors
$msg->document()/$msg->document($value)Type:
Message(Google::Cloud::Documentai::V1::Document::Document)The document payload, will populate fields based on the processor's behavior.
$msg->human_review_status()/$msg->human_review_status($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentProcessorService::HumanReviewStatus)The status of human review on the processed document.
Google::Cloud::Documentai::V1::DocumentProcessorService::BatchProcessRequest
Request message for [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of [Processor][google.cloud.documentai.v1.Processor] or [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
$msg->input_documents()/$msg->input_documents($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentIo::BatchDocumentsInputConfig)The input documents for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
$msg->document_output_config()/$msg->document_output_config($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentIo::DocumentOutputConfig)The output configuration for the [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] method.
$msg->skip_human_review()/$msg->skip_human_review($value)Type:
BoolWhether human review should be skipped for this request. Default to `false`.
$msg->process_options()/$msg->process_options($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentProcessorService::ProcessOptions)Inference-time options for the process API
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentProcessorService::BatchProcessRequest::LabelsEntry)Optional. The labels with user-defined metadata for the request.
Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
Google::Cloud::Documentai::V1::DocumentProcessorService::BatchProcessResponse
Response message for [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
Inherits from Protobuf::Message.
Google::Cloud::Documentai::V1::DocumentProcessorService::BatchProcessMetadata
The long-running operation metadata for [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
Inherits from Protobuf::Message.
Accessors
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Documentai::V1::BatchProcessMetadata::State)The state of the current batch processing.
$msg->state_message()/$msg->state_message($value)Type:
StringA message providing more details about the current state of processing. For example, the error message if the operation is failed.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The creation time of the operation.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The last update time of the operation.
$msg->individual_process_statuses()/$msg->individual_process_statuses($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentProcessorService::BatchProcessMetadata::IndividualProcessStatus)The list of response details of each document.
Enum: BatchProcessMetadata::State
STATE_UNSPECIFIED=>0WAITING=>1RUNNING=>2SUCCEEDED=>3CANCELLING=>4CANCELLED=>5FAILED=>6
Google::Cloud::Documentai::V1::DocumentProcessorService::FetchProcessorTypesRequest
Request message for the [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes] method. Some processor types may require the project be added to an allowlist.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The location of processor types to list. Format: `projects/{project}/locations/{location}`.
Google::Cloud::Documentai::V1::DocumentProcessorService::FetchProcessorTypesResponse
Response message for the [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes] method.
Inherits from Protobuf::Message.
Accessors
$msg->processor_types()/$msg->processor_types($value)Type:
Message(Google::Cloud::Documentai::V1::ProcessorType::ProcessorType)The list of processor types.
Google::Cloud::Documentai::V1::DocumentProcessorService::ListProcessorTypesRequest
Request message for the [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes] method. Some processor types may require the project be added to an allowlist.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The location of processor types to list. Format: `projects/{project}/locations/{location}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of processor types to return. If unspecified, at most `100` processor types will be returned. The maximum value is `500`. Values above `500` will be coerced to `500`.
$msg->page_token()/$msg->page_token($value)Type:
StringUsed to retrieve the next page of results, empty if at the end of the list.
Google::Cloud::Documentai::V1::DocumentProcessorService::ListProcessorTypesResponse
Response message for the [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes] method.
Inherits from Protobuf::Message.
Accessors
$msg->processor_types()/$msg->processor_types($value)Type:
Message(Google::Cloud::Documentai::V1::ProcessorType::ProcessorType)The processor types.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringPoints to the next page, otherwise empty.
Google::Cloud::Documentai::V1::DocumentProcessorService::ListProcessorsRequest
Request message for list all processors belongs to a project.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent (project and location) which owns this collection of Processors. Format: `projects/{project}/locations/{location}`
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of processors to return. If unspecified, at most `50` processors will be returned. The maximum value is `100`. Values above `100` will be coerced to `100`.
$msg->page_token()/$msg->page_token($value)Type:
StringWe will return the processors sorted by creation time. The page token will point to the next processor.
Google::Cloud::Documentai::V1::DocumentProcessorService::ListProcessorsResponse
Response message for the [ListProcessors][google.cloud.documentai.v1.DocumentProcessorService.ListProcessors] method.
Inherits from Protobuf::Message.
Accessors
$msg->processors()/$msg->processors($value)Type:
Message(Google::Cloud::Documentai::V1::Processor::Processor)The list of processors.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringPoints to the next processor, otherwise empty.
Google::Cloud::Documentai::V1::DocumentProcessorService::GetProcessorTypeRequest
Request message for the [GetProcessorType][google.cloud.documentai.v1.DocumentProcessorService.GetProcessorType] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The processor type resource name.
Google::Cloud::Documentai::V1::DocumentProcessorService::GetProcessorRequest
Request message for the [GetProcessor][google.cloud.documentai.v1.DocumentProcessorService.GetProcessor] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The processor resource name.
Google::Cloud::Documentai::V1::DocumentProcessorService::GetProcessorVersionRequest
Request message for the [GetProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.GetProcessorVersion] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The processor resource name.
Google::Cloud::Documentai::V1::DocumentProcessorService::ListProcessorVersionsRequest
Request message for list all processor versions belongs to a processor.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent (project, location and processor) to list all versions. Format: `projects/{project}/locations/{location}/processors/{processor}`
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of processor versions to return. If unspecified, at most `10` processor versions will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`.
$msg->page_token()/$msg->page_token($value)Type:
StringWe will return the processor versions sorted by creation time. The page token will point to the next processor version.
Google::Cloud::Documentai::V1::DocumentProcessorService::ListProcessorVersionsResponse
Response message for the [ListProcessorVersions][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorVersions] method.
Inherits from Protobuf::Message.
Accessors
$msg->processor_versions()/$msg->processor_versions($value)Type:
Message(Google::Cloud::Documentai::V1::Processor::ProcessorVersion)The list of processors.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringPoints to the next processor, otherwise empty.
Google::Cloud::Documentai::V1::DocumentProcessorService::DeleteProcessorVersionRequest
Request message for the [DeleteProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessorVersion] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The processor version resource name to be deleted.
Google::Cloud::Documentai::V1::DocumentProcessorService::DeleteProcessorVersionMetadata
The long-running operation metadata for the [DeleteProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessorVersion] method.
Inherits from Protobuf::Message.
Accessors
$msg->common_metadata()/$msg->common_metadata($value)Type:
Message(Google::Cloud::Documentai::V1::OperationMetadata::CommonOperationMetadata)The basic metadata of the long-running operation.
Google::Cloud::Documentai::V1::DocumentProcessorService::DeployProcessorVersionRequest
Request message for the [DeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The processor version resource name to be deployed.
Google::Cloud::Documentai::V1::DocumentProcessorService::DeployProcessorVersionResponse
Response message for the [DeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion] method.
Inherits from Protobuf::Message.
Google::Cloud::Documentai::V1::DocumentProcessorService::DeployProcessorVersionMetadata
The long-running operation metadata for the [DeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion] method.
Inherits from Protobuf::Message.
Accessors
$msg->common_metadata()/$msg->common_metadata($value)Type:
Message(Google::Cloud::Documentai::V1::OperationMetadata::CommonOperationMetadata)The basic metadata of the long-running operation.
Google::Cloud::Documentai::V1::DocumentProcessorService::UndeployProcessorVersionRequest
Request message for the [UndeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The processor version resource name to be undeployed.
Google::Cloud::Documentai::V1::DocumentProcessorService::UndeployProcessorVersionResponse
Response message for the [UndeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion] method.
Inherits from Protobuf::Message.
Google::Cloud::Documentai::V1::DocumentProcessorService::UndeployProcessorVersionMetadata
The long-running operation metadata for the [UndeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion] method.
Inherits from Protobuf::Message.
Accessors
$msg->common_metadata()/$msg->common_metadata($value)Type:
Message(Google::Cloud::Documentai::V1::OperationMetadata::CommonOperationMetadata)The basic metadata of the long-running operation.
Google::Cloud::Documentai::V1::DocumentProcessorService::CreateProcessorRequest
Request message for the [CreateProcessor][google.cloud.documentai.v1.DocumentProcessorService.CreateProcessor] method. Notice this request is sent to a regionalized backend service. If the [ProcessorType][google.cloud.documentai.v1.ProcessorType] isn't available in that region, the creation fails.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent (project and location) under which to create the processor. Format: `projects/{project}/locations/{location}`
$msg->processor()/$msg->processor($value)Type:
Message(Google::Cloud::Documentai::V1::Processor::Processor)Required. The processor to be created, requires [Processor.type][google.cloud.documentai.v1.Processor.type] and [Processor.display_name][google.cloud.documentai.v1.Processor.display_name] to be set. Also, the [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] field must be set if the processor is under CMEK.
Google::Cloud::Documentai::V1::DocumentProcessorService::DeleteProcessorRequest
Request message for the [DeleteProcessor][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessor] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The processor resource name to be deleted.
Google::Cloud::Documentai::V1::DocumentProcessorService::DeleteProcessorMetadata
The long-running operation metadata for the [DeleteProcessor][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessor] method.
Inherits from Protobuf::Message.
Accessors
$msg->common_metadata()/$msg->common_metadata($value)Type:
Message(Google::Cloud::Documentai::V1::OperationMetadata::CommonOperationMetadata)The basic metadata of the long-running operation.
Google::Cloud::Documentai::V1::DocumentProcessorService::EnableProcessorRequest
Request message for the [EnableProcessor][google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The processor resource name to be enabled.
Google::Cloud::Documentai::V1::DocumentProcessorService::EnableProcessorResponse
Response message for the [EnableProcessor][google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor] method. Intentionally empty proto for adding fields in future.
Inherits from Protobuf::Message.
Google::Cloud::Documentai::V1::DocumentProcessorService::EnableProcessorMetadata
The long-running operation metadata for the [EnableProcessor][google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor] method.
Inherits from Protobuf::Message.
Accessors
$msg->common_metadata()/$msg->common_metadata($value)Type:
Message(Google::Cloud::Documentai::V1::OperationMetadata::CommonOperationMetadata)The basic metadata of the long-running operation.
Google::Cloud::Documentai::V1::DocumentProcessorService::DisableProcessorRequest
Request message for the [DisableProcessor][google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The processor resource name to be disabled.
Google::Cloud::Documentai::V1::DocumentProcessorService::DisableProcessorResponse
Response message for the [DisableProcessor][google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor] method. Intentionally empty proto for adding fields in future.
Inherits from Protobuf::Message.
Google::Cloud::Documentai::V1::DocumentProcessorService::DisableProcessorMetadata
The long-running operation metadata for the [DisableProcessor][google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor] method.
Inherits from Protobuf::Message.
Accessors
$msg->common_metadata()/$msg->common_metadata($value)Type:
Message(Google::Cloud::Documentai::V1::OperationMetadata::CommonOperationMetadata)The basic metadata of the long-running operation.
Google::Cloud::Documentai::V1::DocumentProcessorService::SetDefaultProcessorVersionRequest
Request message for the [SetDefaultProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion] method.
Inherits from Protobuf::Message.
Accessors
$msg->processor()/$msg->processor($value)Type:
StringRequired. The resource name of the [Processor][google.cloud.documentai.v1.Processor] to change default version.
$msg->default_processor_version()/$msg->default_processor_version($value)Type:
StringRequired. The resource name of child [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to use as default. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}`
Google::Cloud::Documentai::V1::DocumentProcessorService::SetDefaultProcessorVersionResponse
Response message for the [SetDefaultProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion] method.
Inherits from Protobuf::Message.
Google::Cloud::Documentai::V1::DocumentProcessorService::SetDefaultProcessorVersionMetadata
The long-running operation metadata for the [SetDefaultProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion] method.
Inherits from Protobuf::Message.
Accessors
$msg->common_metadata()/$msg->common_metadata($value)Type:
Message(Google::Cloud::Documentai::V1::OperationMetadata::CommonOperationMetadata)The basic metadata of the long-running operation.
Google::Cloud::Documentai::V1::DocumentProcessorService::TrainProcessorVersionRequest
Request message for the [TrainProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.TrainProcessorVersion] method.
Inherits from Protobuf::Message.
Accessors
$msg->custom_document_extraction_options()/$msg->custom_document_extraction_options($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentProcessorService::TrainProcessorVersionRequest::CustomDocumentExtractionOptions)Options to control Custom Document Extraction (CDE) Processor.
$msg->foundation_model_tuning_options()/$msg->foundation_model_tuning_options($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentProcessorService::TrainProcessorVersionRequest::FoundationModelTuningOptions)Options to control foundation model tuning of a processor.
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent (project, location and processor) to create the new version for. Format: `projects/{project}/locations/{location}/processors/{processor}`.
$msg->processor_version()/$msg->processor_version($value)Type:
Message(Google::Cloud::Documentai::V1::Processor::ProcessorVersion)Required. The processor version to be created.
$msg->document_schema()/$msg->document_schema($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema)Optional. The schema the processor version will be trained with.
$msg->input_data()/$msg->input_data($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentProcessorService::TrainProcessorVersionRequest::InputData)Optional. The input data used to train the [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
$msg->base_processor_version()/$msg->base_processor_version($value)Type:
StringOptional. The processor version to use as a base for training. This processor version must be a child of `parent`. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`.
Google::Cloud::Documentai::V1::DocumentProcessorService::TrainProcessorVersionResponse
The response for [TrainProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.TrainProcessorVersion].
Inherits from Protobuf::Message.
Accessors
$msg->processor_version()/$msg->processor_version($value)Type:
StringThe resource name of the processor version produced by training.
Google::Cloud::Documentai::V1::DocumentProcessorService::TrainProcessorVersionMetadata
The metadata that represents a processor version being created.
Inherits from Protobuf::Message.
Accessors
$msg->common_metadata()/$msg->common_metadata($value)Type:
Message(Google::Cloud::Documentai::V1::OperationMetadata::CommonOperationMetadata)The basic metadata of the long-running operation.
$msg->training_dataset_validation()/$msg->training_dataset_validation($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentProcessorService::TrainProcessorVersionMetadata::DatasetValidation)The training dataset validation information.
$msg->test_dataset_validation()/$msg->test_dataset_validation($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentProcessorService::TrainProcessorVersionMetadata::DatasetValidation)The test dataset validation information.
Google::Cloud::Documentai::V1::DocumentProcessorService::ReviewDocumentRequest
Request message for the [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument] method.
Inherits from Protobuf::Message.
Accessors
$msg->inline_document()/$msg->inline_document($value)Type:
Message(Google::Cloud::Documentai::V1::Document::Document)An inline document proto.
$msg->human_review_config()/$msg->human_review_config($value)Type:
StringRequired. The resource name of the [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the document will be reviewed with.
$msg->enable_schema_validation()/$msg->enable_schema_validation($value)Type:
BoolWhether the validation should be performed on the ad-hoc review request.
$msg->priority()/$msg->priority($value)Type:
Enum(Google::Cloud::Documentai::V1::ReviewDocumentRequest::Priority)The priority of the human review task.
$msg->document_schema()/$msg->document_schema($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentSchema::DocumentSchema)The document schema of the human review task.
Enum: ReviewDocumentRequest::Priority
DEFAULT=>0URGENT=>1
Google::Cloud::Documentai::V1::DocumentProcessorService::ReviewDocumentResponse
Response message for the [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument] method.
Inherits from Protobuf::Message.
Accessors
$msg->gcs_destination()/$msg->gcs_destination($value)Type:
StringThe Cloud Storage uri for the human reviewed document if the review is succeeded.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Documentai::V1::ReviewDocumentResponse::State)The state of the review operation.
$msg->rejection_reason()/$msg->rejection_reason($value)Type:
StringThe reason why the review is rejected by reviewer.
Enum: ReviewDocumentResponse::State
STATE_UNSPECIFIED=>0REJECTED=>1SUCCEEDED=>2
Google::Cloud::Documentai::V1::DocumentProcessorService::ReviewDocumentOperationMetadata
The long-running operation metadata for the [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument] method.
Inherits from Protobuf::Message.
Accessors
$msg->common_metadata()/$msg->common_metadata($value)Type:
Message(Google::Cloud::Documentai::V1::OperationMetadata::CommonOperationMetadata)The basic metadata of the long-running operation.
$msg->question_id()/$msg->question_id($value)Type:
StringThe Crowd Compute question ID.
Google::Cloud::Documentai::V1::DocumentProcessorService::EvaluateProcessorVersionRequest
Evaluates the given [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] against the supplied documents.
Inherits from Protobuf::Message.
Accessors
$msg->processor_version()/$msg->processor_version($value)Type:
StringRequired. The resource name of the [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to evaluate. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
$msg->evaluation_documents()/$msg->evaluation_documents($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentIo::BatchDocumentsInputConfig)Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation input.
Google::Cloud::Documentai::V1::DocumentProcessorService::EvaluateProcessorVersionMetadata
Metadata of the [EvaluateProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.EvaluateProcessorVersion] method.
Inherits from Protobuf::Message.
Accessors
$msg->common_metadata()/$msg->common_metadata($value)Type:
Message(Google::Cloud::Documentai::V1::OperationMetadata::CommonOperationMetadata)The basic metadata of the long-running operation.
Google::Cloud::Documentai::V1::DocumentProcessorService::EvaluateProcessorVersionResponse
Response of the [EvaluateProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.EvaluateProcessorVersion] method.
Inherits from Protobuf::Message.
Accessors
$msg->evaluation()/$msg->evaluation($value)Type:
StringThe resource name of the created evaluation.
Google::Cloud::Documentai::V1::DocumentProcessorService::GetEvaluationRequest
Retrieves a specific Evaluation.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the [Evaluation][google.cloud.documentai.v1.Evaluation] to get. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}/evaluations/{evaluation}`
Google::Cloud::Documentai::V1::DocumentProcessorService::ListEvaluationsRequest
Retrieves a list of evaluations for a given [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to list evaluations for. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
$msg->page_size()/$msg->page_size($value)Type:
Int32The standard list page size. If unspecified, at most `5` evaluations are returned. The maximum value is `100`. Values above `100` are coerced to `100`.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListEvaluations` call. Provide this to retrieve the subsequent page.
Google::Cloud::Documentai::V1::DocumentProcessorService::ListEvaluationsResponse
The response from `ListEvaluations`.
Inherits from Protobuf::Message.
Accessors
$msg->evaluations()/$msg->evaluations($value)Type:
Message(Google::Cloud::Documentai::V1::Evaluation::Evaluation)The evaluations requested.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Documentai::V1::DocumentProcessorService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.