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

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: String

    Required. 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: Bool

    Whether 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: Bool

    Optional. 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: String

    A message providing more details about the human review state.

  • $msg->human_review_operation() / $msg->human_review_operation($value)

    Type: String

    The 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 => 0

  • SKIPPED => 1

  • VALIDATION_PASSED => 2

  • IN_PROGRESS => 3

  • ERROR => 4

Google::Cloud::Documentai::V1::DocumentProcessorService::ProcessResponse

Response message for the [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] method.

Inherits from Protobuf::Message.

Accessors

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: String

    Required. 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: Bool

    Whether 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

Enum: BatchProcessMetadata::State

  • STATE_UNSPECIFIED => 0

  • WAITING => 1

  • RUNNING => 2

  • SUCCEEDED => 3

  • CANCELLING => 4

  • CANCELLED => 5

  • FAILED => 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: String

    Required. 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

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: String

    Required. The location of processor types to list. Format: `projects/{project}/locations/{location}`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The 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: String

    Used 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

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: String

    Required. The parent (project and location) which owns this collection of Processors. Format: `projects/{project}/locations/{location}`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The 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: String

    We 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: String

    Points 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: String

    Required. 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: String

    Required. 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: String

    Required. 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: String

    Required. 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: Int32

    The 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: String

    We 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

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: String

    Required. 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

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: String

    Required. 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

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: String

    Required. 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

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: String

    Required. 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: String

    Required. 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

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: String

    Required. 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

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: String

    Required. 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

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: String

    Required. 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: String

    Required. 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

Google::Cloud::Documentai::V1::DocumentProcessorService::TrainProcessorVersionRequest

Request message for the [TrainProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.TrainProcessorVersion] method.

Inherits from Protobuf::Message.

Accessors

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: String

    The 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

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: String

    Required. 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: Bool

    Whether 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 => 0

  • URGENT => 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: String

    The 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: String

    The reason why the review is rejected by reviewer.

Enum: ReviewDocumentResponse::State

  • STATE_UNSPECIFIED => 0

  • REJECTED => 1

  • SUCCEEDED => 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

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: String

    Required. 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

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: String

    The 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: String

    Required. 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: String

    Required. 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: Int32

    The 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: String

    A 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: String

    A 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.