# Google Cloud Contact Center Insights V1 Client - Class ConversationLevelSilence (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 ConversationLevelSilence.

Conversation-level silence data.

Generated from protobuf message `google.cloud.contactcenterinsights.v1.ConversationLevelSilence`

## Namespace

Google \\ Cloud \\ ContactCenterInsights \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ silence_duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Amount of time calculated to be in silence. |
| `↳ silence_percentage` | `float` Percentage of the total conversation spent in silence. |

### getSilenceDuration

Amount of time calculated to be in silence.

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

### hasSilenceDuration

### clearSilenceDuration

### setSilenceDuration

Amount of time calculated to be in silence.

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

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

### getSilencePercentage

Percentage of the total conversation spent in silence.

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

### setSilencePercentage

Percentage of the total conversation spent in silence.

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

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