Google Cloud Document Ai V1 Client - Class VisualElement (2.5.0)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class VisualElement.

Detected non-text visual elements e.g. checkbox, signature etc. on the page.

Generated from protobuf message google.cloud.documentai.v1.Document.Page.VisualElement

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Document \ Page

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ layout Layout

Layout for VisualElement.

↳ type string

Type of the VisualElement.

↳ detected_languages array<DetectedLanguage>

A list of detected languages together with confidence.

getLayout

Returns
Type Description
Layout|null

hasLayout

clearLayout

setLayout

Parameter
Name Description
var Layout
Returns
Type Description
$this

getType

Type of the VisualElement.

Returns
Type Description
string

setType

Type of the VisualElement.

Parameter
Name Description
var string
Returns
Type Description
$this

getDetectedLanguages

A list of detected languages together with confidence.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDetectedLanguages

A list of detected languages together with confidence.

Parameter
Name Description
var array<DetectedLanguage>
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.