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

The CCAI Insights project wide settings.

Use these settings to configure the behavior of Insights.
View these settings with
[`getsettings`](https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/getSettings)
and change the settings with
[`updateSettings`](https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/updateSettings).

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

## Namespace

Google \\ Cloud \\ ContactCenterInsights \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Immutable. The resource name of the settings resource. Format: projects/{project}/locations/{location}/settings |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time at which the settings was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time at which the settings were last updated. |
| `↳ language_code` | `string` A language code to be applied to each transcript segment unless the segment already specifies a language code. Language code defaults to "en-US" if it is neither specified on the segment nor here. |
| `↳ conversation_ttl` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` The default TTL for newly-created conversations. If a conversation has a specified expiration, that value will be used instead. Changing this value will not change the expiration of existing conversations. Conversations with no expire time persist until they are deleted. |
| `↳ pubsub_notification_settings` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` A map that maps a notification trigger to a Pub/Sub topic. Each time a specified trigger occurs, Insights will notify the corresponding Pub/Sub topic. Keys are notification triggers. Supported keys are: \* \* "all-triggers": Notify each time any of the supported triggers occurs. \* \* "create-analysis": Notify each time an analysis is created. \* \* "create-conversation": Notify each time a conversation is created. \* \* "export-insights-data": Notify each time an export is complete. \* \* "ingest-conversations": Notify each time an IngestConversations LRO is complete. \* \* "update-conversation": Notify each time a conversation is updated via UpdateConversation. \* \* "upload-conversation": Notify when an UploadConversation LRO is complete. Values are Pub/Sub topics. The format of each Pub/Sub topic is: projects/{project}/topics/{topic} |
| `↳ analysis_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.Settings.AnalysisConfig` Default analysis settings. |
| `↳ redaction_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.RedactionConfig` Default DLP redaction resources to be applied while ingesting conversations. This applies to conversations ingested from the `UploadConversation` and `IngestConversations` endpoints, including conversations coming from CCAI Platform. |
| `↳ speech_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.SpeechConfig` Optional. Default Speech-to-Text resources to use while ingesting audio files. Optional, CCAI Insights will create a default if not provided. This applies to conversations ingested from the `UploadConversation` and `IngestConversations` endpoints, including conversations coming from CCAI Platform. |

### getName

Immutable. The resource name of the settings resource.

Format:
projects/{project}/locations/{location}/settings

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

### setName

Immutable. The resource name of the settings resource.

Format:
projects/{project}/locations/{location}/settings

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

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

### getCreateTime

Output only. The time at which the settings was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time at which the settings was created.

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

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

### getUpdateTime

Output only. The time at which the settings were last updated.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time at which the settings were last updated.

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

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

### getLanguageCode

A language code to be applied to each transcript segment unless the segment
already specifies a language code. Language code defaults to "en-US" if it
is neither specified on the segment nor here.

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

### setLanguageCode

A language code to be applied to each transcript segment unless the segment
already specifies a language code. Language code defaults to "en-US" if it
is neither specified on the segment nor here.

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

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

### getConversationTtl

The default TTL for newly-created conversations. If a conversation has a
specified expiration, that value will be used instead. Changing this
value will not change the expiration of existing conversations.

Conversations with no expire time persist until they are deleted.

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

### hasConversationTtl

### clearConversationTtl

### setConversationTtl

The default TTL for newly-created conversations. If a conversation has a
specified expiration, that value will be used instead. Changing this
value will not change the expiration of existing conversations.

Conversations with no expire time persist until they are deleted.

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

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

### getPubsubNotificationSettings

A map that maps a notification trigger to a Pub/Sub topic. Each time a
specified trigger occurs, Insights will notify the corresponding Pub/Sub
topic.

Keys are notification triggers. Supported keys are:

- "all-triggers": Notify each time any of the supported triggers occurs.
- "create-analysis": Notify each time an analysis is created.
- "create-conversation": Notify each time a conversation is created.
- "export-insights-data": Notify each time an export is complete.
- "ingest-conversations": Notify each time an IngestConversations LRO is complete.
- "update-conversation": Notify each time a conversation is updated via UpdateConversation.
- "upload-conversation": Notify when an UploadConversation LRO is complete. Values are Pub/Sub topics. The format of each Pub/Sub topic is: projects/{project}/topics/{topic}

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

### setPubsubNotificationSettings

A map that maps a notification trigger to a Pub/Sub topic. Each time a
specified trigger occurs, Insights will notify the corresponding Pub/Sub
topic.

Keys are notification triggers. Supported keys are:

- "all-triggers": Notify each time any of the supported triggers occurs.
- "create-analysis": Notify each time an analysis is created.
- "create-conversation": Notify each time a conversation is created.
- "export-insights-data": Notify each time an export is complete.
- "ingest-conversations": Notify each time an IngestConversations LRO is complete.
- "update-conversation": Notify each time a conversation is updated via UpdateConversation.
- "upload-conversation": Notify when an UploadConversation LRO is complete. Values are Pub/Sub topics. The format of each Pub/Sub topic is: projects/{project}/topics/{topic}

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

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

### getAnalysisConfig

Default analysis settings.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.Settings.AnalysisConfig|null` |   |

### hasAnalysisConfig

### clearAnalysisConfig

### setAnalysisConfig

Default analysis settings.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.Settings.AnalysisConfig` |

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

### getRedactionConfig

Default DLP redaction resources to be applied while ingesting
conversations. This applies to conversations ingested from the
`UploadConversation` and `IngestConversations` endpoints, including
conversations coming from CCAI Platform.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.RedactionConfig|null` |   |

### hasRedactionConfig

### clearRedactionConfig

### setRedactionConfig

Default DLP redaction resources to be applied while ingesting
conversations. This applies to conversations ingested from the
`UploadConversation` and `IngestConversations` endpoints, including
conversations coming from CCAI Platform.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.RedactionConfig` |

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

### getSpeechConfig

Optional. Default Speech-to-Text resources to use while ingesting audio
files. Optional, CCAI Insights will create a default if not provided. This
applies to conversations ingested from the `UploadConversation` and
`IngestConversations` endpoints, including conversations coming from CCAI
Platform.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.SpeechConfig|null` |   |

### hasSpeechConfig

### clearSpeechConfig

### setSpeechConfig

Optional. Default Speech-to-Text resources to use while ingesting audio
files. Optional, CCAI Insights will create a default if not provided. This
applies to conversations ingested from the `UploadConversation` and
`IngestConversations` endpoints, including conversations coming from CCAI
Platform.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.SpeechConfig` |

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