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
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ layout
↳ type
↳ detected_languages
array< Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage
>
A list of detected languages together with confidence.
getLayout
Layout for VisualElement .
Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1;
hasLayout
clearLayout
setLayout
Layout for VisualElement .
Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1;
$this
getType
Type of the VisualElement .
Generated from protobuf field string type = 2;
string
setType
Type of the VisualElement .
Generated from protobuf field string type = 2;
var
string
$this
getDetectedLanguages
A list of detected languages together with confidence.
Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 3;
Google\Protobuf\Internal\RepeatedField
setDetectedLanguages
A list of detected languages together with confidence.
Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 3;
$this