Reference documentation and code samples for the Google Cloud Document Ai V1 Client class Token.
A detected token.
Generated from protobuf message google.cloud.documentai.v1.Document.Page.Token
Namespace
Google \ Cloud \ DocumentAI \ V1 \ Document \ PageMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ layout |
Layout
|
↳ detected_break |
Token\DetectedBreak
Detected break at the end of a Token. |
↳ detected_languages |
array<DetectedLanguage>
A list of detected languages together with confidence. |
↳ provenance |
Google\Cloud\DocumentAI\V1\Document\Provenance
The history of this annotation. |
↳ style_info |
Token\StyleInfo
Text style attributes. |
getLayout
| Returns | |
|---|---|
| Type | Description |
Layout|null |
|
hasLayout
clearLayout
setLayout
| Parameter | |
|---|---|
| Name | Description |
var |
Layout
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDetectedBreak
Detected break at the end of a Token.
| Returns | |
|---|---|
| Type | Description |
Token\DetectedBreak|null |
|
hasDetectedBreak
clearDetectedBreak
setDetectedBreak
Detected break at the end of a Token.
| Parameter | |
|---|---|
| Name | Description |
var |
Token\DetectedBreak
|
| 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 |
|
getProvenance
The history of this annotation.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\DocumentAI\V1\Document\Provenance|null |
|
hasProvenance
clearProvenance
setProvenance
The history of this annotation.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\DocumentAI\V1\Document\Provenance
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getStyleInfo
Text style attributes.
| Returns | |
|---|---|
| Type | Description |
Token\StyleInfo|null |
|
hasStyleInfo
clearStyleInfo
setStyleInfo
Text style attributes.
| Parameter | |
|---|---|
| Name | Description |
var |
Token\StyleInfo
|
| Returns | |
|---|---|
| Type | Description |
$this |
|