Cloud Vision V1 Client - Class TextProperty (1.7.6)

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
NameDescription
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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDetectedLanguages

A list of detected languages together with confidence.

Parameter
NameDescription
var array<Google\Cloud\Vision\V1\TextAnnotation\DetectedLanguage>
Returns
TypeDescription
$this

getDetectedBreak

Detected start or end of a text segment.

Returns
TypeDescription
Google\Cloud\Vision\V1\TextAnnotation\DetectedBreak|null

hasDetectedBreak

clearDetectedBreak

setDetectedBreak

Detected start or end of a text segment.

Parameter
NameDescription
var Google\Cloud\Vision\V1\TextAnnotation\DetectedBreak
Returns
TypeDescription
$this