NAME

Google::Cloud::Documentai::V1beta3::DocumentIo - Compiled Protocol Buffers messages for google/cloud/documentai/v1beta3/document_io.proto

SYNOPSIS

use Google::Cloud::Documentai::V1beta3::DocumentIo;

my $msg = Google::Cloud::Documentai::V1beta3::DocumentIo::Documents->new({
    documents => $documents,
});

# Read or update a field
my $val = $msg->documents();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Documentai::V1beta3::DocumentIo::Documents->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/documentai/v1beta3/document_io.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::V1beta3::DocumentIo::Documents

A set of inline documents.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Documentai::V1beta3::DocumentIo::RawDocument

Payload message of raw document content (bytes).

Inherits from Protobuf::Message.

Accessors

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

    Type: Bytes

    Inline document content.

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

    Type: String

    An IANA MIME type (RFC6838) indicating the nature and format of the [content][google.cloud.documentai.v1beta3.RawDocument.content].

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

    Type: String

    The display name of the document, it supports all Unicode characters except the following: `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,` `~`, `=` and `:` are reserved. If not specified, a default ID is generated.

Google::Cloud::Documentai::V1beta3::DocumentIo::GcsDocument

Specifies a document stored on Cloud Storage.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The Cloud Storage object uri.

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

    Type: String

    An IANA MIME type (RFC6838) of the content.

Google::Cloud::Documentai::V1beta3::DocumentIo::GcsDocuments

Specifies a set of documents on Cloud Storage.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Documentai::V1beta3::DocumentIo::GcsPrefix

Specifies all documents on Cloud Storage with a common prefix.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The URI prefix.

Google::Cloud::Documentai::V1beta3::DocumentIo::RawDocuments

Specifies a set of raw documents.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Documentai::V1beta3::DocumentIo::BatchDocumentsInputConfig

The common config to specify a set of documents used as input.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Documentai::V1beta3::DocumentIo::DocumentOutputConfig

Config that controls the output of documents. All documents will be written as a JSON file.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Documentai::V1beta3::DocumentIo::OcrConfig

Config for Document OCR.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Documentai::V1beta3::DocumentIo::OcrConfig::Hints)

    Hints for the OCR model.

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

    Type: Bool

    Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs.

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

    Type: Bool

    Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of poor quality for a given input. Adds additional latency comparable to regular OCR to the process call.

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

    Type: String

    A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are:

    - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.

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

    Type: Bool

    Includes symbol level OCR information if set to true.

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

    Type: Bool

    Turn on font identification model and return font style information. Deprecated, use [PremiumFeatures.compute_style_info][google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures.compute_style_info] instead.

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

    Type: Bool

    Turn off character box detector in OCR engine. Character box detection is enabled by default in OCR 2.0 (and later) processors.

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

    Type: Message (Google::Cloud::Documentai::V1beta3::DocumentIo::OcrConfig::PremiumFeatures)

    Configurations for premium OCR features.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Documentai::V1beta3::DocumentIo::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.