Cloud Vision V1 Client - Class TextProperty (1.9.3)

Reference documentation and code samples for the Cloud Vision V1 Client class TextProperty.

Additional information detected on the structural component.

Generated from protobuf message google.cloud.vision.v1.TextAnnotation.TextProperty

Namespace

Google \ Cloud \ Vision \ V1 \ TextAnnotation

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ detected_languages array<Google\Cloud\Vision\V1\TextAnnotation\DetectedLanguage>

A list of detected languages together with confidence.

↳ detected_break Google\Cloud\Vision\V1\TextAnnotation\DetectedBreak

Detected start or end of a text segment.

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<Google\Cloud\Vision\V1\TextAnnotation\DetectedLanguage>
Returns
Type Description
$this

getDetectedBreak

Detected start or end of a text segment.

Returns
Type Description
Google\Cloud\Vision\V1\TextAnnotation\DetectedBreak|null

hasDetectedBreak

clearDetectedBreak

setDetectedBreak

Detected start or end of a text segment.

Parameter
Name Description
var Google\Cloud\Vision\V1\TextAnnotation\DetectedBreak
Returns
Type Description
$this