# Cloud Video Intelligence V1 Client - Class LabelSegment (2.2.0)

2.2.0 (latest) 2.1.2 2.0.5 1.15.5 1.14.2 1.13.1 1.12.16 Reference documentation and code samples for the Cloud Video Intelligence V1 Client class LabelSegment.

Video segment level annotation results for label detection.

Generated from protobuf message `google.cloud.videointelligence.v1.LabelSegment`

## Namespace

Google \\ Cloud \\ VideoIntelligence \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ segment` | `https://docs.cloud.google.com/php/docs/reference/cloud-videointelligence/latest/V1.VideoSegment` Video segment where a label was detected. |
| `↳ confidence` | `float` Confidence that the label is accurate. Range: \[0, 1\]. |

### getSegment

Video segment where a label was detected.

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

### hasSegment

### clearSegment

### setSegment

Video segment where a label was detected.

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

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

### getConfidence

Confidence that the label is accurate. Range: \[0, 1\].

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setConfidence

Confidence that the label is accurate. Range: \[0, 1\].

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

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