NAME

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

SYNOPSIS

use Google::Cloud::Documentai::V1beta3::Geometry;

my $msg = Google::Cloud::Documentai::V1beta3::Geometry::Vertex->new({
    x => $x,
    y => $y,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/documentai/v1beta3/geometry.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::Geometry::Vertex

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    X coordinate.

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

    Type: Int32

    Y coordinate (starts from the top of the image).

Google::Cloud::Documentai::V1beta3::Geometry::NormalizedVertex

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

Inherits from Protobuf::Message.

Accessors

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

    Type: Float

    X coordinate.

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

    Type: Float

    Y coordinate (starts from the top of the image).

Google::Cloud::Documentai::V1beta3::Geometry::BoundingPoly

A bounding polygon for the detected image annotation.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.