NAME
Google::Cloud::Documentai::V1::DocumentIo - Compiled Protocol Buffers messages for google/cloud/documentai/v1/document_io.proto
SYNOPSIS
use Google::Cloud::Documentai::V1::DocumentIo;
my $msg = Google::Cloud::Documentai::V1::DocumentIo::RawDocument->new({
content => $content,
mime_type => $mime_type,
display_name => $display_name,
});
# Read or update a field
my $val = $msg->content();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Documentai::V1::DocumentIo::RawDocument->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/documentai/v1/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::V1::DocumentIo::RawDocument
Payload message of raw document content (bytes).
Inherits from Protobuf::Message.
Accessors
$msg->content()/$msg->content($value)Type:
BytesInline document content.
$msg->mime_type()/$msg->mime_type($value)Type:
StringAn IANA MIME type (RFC6838) indicating the nature and format of the [content][google.cloud.documentai.v1.RawDocument.content].
$msg->display_name()/$msg->display_name($value)Type:
StringThe 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::V1::DocumentIo::GcsDocument
Specifies a document stored on Cloud Storage.
Inherits from Protobuf::Message.
Accessors
$msg->gcs_uri()/$msg->gcs_uri($value)Type:
StringThe Cloud Storage object uri.
$msg->mime_type()/$msg->mime_type($value)Type:
StringAn IANA MIME type (RFC6838) of the content.
Google::Cloud::Documentai::V1::DocumentIo::GcsDocuments
Specifies a set of documents on Cloud Storage.
Inherits from Protobuf::Message.
Accessors
$msg->documents()/$msg->documents($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentIo::GcsDocument)The list of documents.
Google::Cloud::Documentai::V1::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:
StringThe URI prefix.
Google::Cloud::Documentai::V1::DocumentIo::BatchDocumentsInputConfig
The common config to specify a set of documents used as input.
Inherits from Protobuf::Message.
Accessors
$msg->gcs_prefix()/$msg->gcs_prefix($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentIo::GcsPrefix)The set of documents that match the specified Cloud Storage `gcs_prefix`.
$msg->gcs_documents()/$msg->gcs_documents($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentIo::GcsDocuments)The set of documents individually specified on Cloud Storage.
Google::Cloud::Documentai::V1::DocumentIo::DocumentOutputConfig
Config that controls the output of documents. All documents will be written as a JSON file.
Inherits from Protobuf::Message.
Accessors
$msg->gcs_output_config()/$msg->gcs_output_config($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentIo::DocumentOutputConfig::GcsOutputConfig)Output config to write the results to Cloud Storage.
Google::Cloud::Documentai::V1::DocumentIo::OcrConfig
Config for Document OCR.
Inherits from Protobuf::Message.
Accessors
$msg->hints()/$msg->hints($value)Type:
Message(Google::Cloud::Documentai::V1::DocumentIo::OcrConfig::Hints)Hints for the OCR model.
$msg->enable_native_pdf_parsing()/$msg->enable_native_pdf_parsing($value)Type:
BoolEnables 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:
BoolEnables 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:
StringA 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:
BoolIncludes symbol level OCR information if set to true.
$msg->compute_style_info()/$msg->compute_style_info($value)Type:
BoolTurn on font identification model and return font style information. Deprecated, use [PremiumFeatures.compute_style_info][google.cloud.documentai.v1.OcrConfig.PremiumFeatures.compute_style_info] instead.
$msg->disable_character_boxes_detection()/$msg->disable_character_boxes_detection($value)Type:
BoolTurn 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::V1::DocumentIo::OcrConfig::PremiumFeatures)Configurations for premium OCR features.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Documentai::V1::DocumentIo::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.