# Cloud Vision V1 Client - Class TextProperty (2.2.1)

2.2.1 (latest) 2.2.0 2.1.3 2.0.3 1.10.3 1.9.4 1.8.0 1.7.6 1.6.8 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<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.TextAnnotation.DetectedLanguage>` A list of detected languages together with confidence. |
| `↳ detected_break` | `https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.TextAnnotation.DetectedBreak` Detected start or end of a text segment. |

### getDetectedLanguages

A list of detected languages together with confidence.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.TextAnnotation.DetectedLanguage>` |   |

### setDetectedLanguages

A list of detected languages together with confidence.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.TextAnnotation.DetectedLanguage>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDetectedBreak

Detected start or end of a text segment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.TextAnnotation.DetectedBreak|null` |   |

### hasDetectedBreak

### clearDetectedBreak

### setDetectedBreak

Detected start or end of a text segment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.TextAnnotation.DetectedBreak` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |