# Google Cloud Contact Center Insights V1 Client - Class WordInfo (2.4.2)

2.4.2 (latest) 2.4.1 2.3.3 2.2.1 2.1.1 2.0.1 1.9.5 1.8.0 1.7.1 1.6.2 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.3 Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class WordInfo.

Word-level info for words in a transcript.

Generated from protobuf message `google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo`

## Namespace

Google \\ Cloud \\ ContactCenterInsights \\ V1 \\ Conversation \\ Transcript \\ TranscriptSegment

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start_offset` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Time offset of the start of this word relative to the beginning of the total conversation. |
| `↳ end_offset` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Time offset of the end of this word relative to the beginning of the total conversation. |
| `↳ word` | `string` The word itself. Includes punctuation marks that surround the word. |
| `↳ confidence` | `float` A confidence estimate between 0.0 and 1.0 of the fidelity of this word. A default value of 0.0 indicates that the value is unset. |

### getStartOffset

Time offset of the start of this word relative to the beginning of
the total conversation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasStartOffset

### clearStartOffset

### setStartOffset

Time offset of the start of this word relative to the beginning of
the total conversation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

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

### getEndOffset

Time offset of the end of this word relative to the beginning of the
total conversation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasEndOffset

### clearEndOffset

### setEndOffset

Time offset of the end of this word relative to the beginning of the
total conversation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

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

### getWord

The word itself. Includes punctuation marks that surround the word.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setWord

The word itself. Includes punctuation marks that surround the word.

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

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

### getConfidence

A confidence estimate between 0.0 and 1.0 of the fidelity of this
word. A default value of 0.0 indicates that the value is unset.

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

### setConfidence

A confidence estimate between 0.0 and 1.0 of the fidelity of this
word. A default value of 0.0 indicates that the value is unset.

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

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