# Cloud Vision V1 Client - Class DetectedBreak (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 DetectedBreak.

Detected start or end of a structural component.

Generated from protobuf message `google.cloud.vision.v1.TextAnnotation.DetectedBreak`

## Namespace

Google \\ Cloud \\ Vision \\ V1 \\ TextAnnotation

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Detected break type. |
| `↳ is_prefix` | `bool` True if break prepends the element. |

### getType

Detected break type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [BreakType](https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.TextAnnotation.DetectedBreak.BreakType). |

### setType

Detected break type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [BreakType](https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.TextAnnotation.DetectedBreak.BreakType). |

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

### getIsPrefix

True if break prepends the element.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setIsPrefix

True if break prepends the element.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

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