# Google Cloud Dialogflow V2 Client - Class ConversationProfile (2.4.0)

2.4.0 (latest) 2.3.1 2.2.1 2.1.2 2.0.1 1.17.2 1.16.0 1.15.1 1.14.0 1.13.0 1.12.3 1.11.0 1.10.2 1.9.0 1.8.0 1.7.2 1.6.0 1.5.0 1.4.0 1.3.2 1.2.0 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class ConversationProfile.

Defines the services to connect to incoming Dialogflow conversations.

Generated from protobuf message `google.cloud.dialogflow.v2.ConversationProfile`

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The unique identifier of this conversation profile. Format: `projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>`. |
| `↳ display_name` | `string` Required. Human readable name for this profile. Max length 1024 bytes. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Create time of the conversation profile. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Update time of the conversation profile. |
| `↳ automated_agent_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AutomatedAgentConfig` Configuration for an automated agent to use with this profile. |
| `↳ human_agent_assistant_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig` Configuration for agent assistance to use with this profile. |
| `↳ human_agent_handoff_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentHandoffConfig` Configuration for connecting to a live agent. Currently, this feature is not general available, please contact Google to get access. |
| `↳ notification_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.NotificationConfig` Configuration for publishing conversation lifecycle events. |
| `↳ logging_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.LoggingConfig` Configuration for logging conversation lifecycle events. |
| `↳ new_message_event_notification_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.NotificationConfig` Configuration for publishing new message events. Event will be sent in format of [ConversationEvent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ConversationEvent) |
| `↳ new_recognition_result_notification_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.NotificationConfig` Optional. Configuration for publishing transcription intermediate results. Event will be sent in format of [ConversationEvent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ConversationEvent). If configured, the following information will be populated as [ConversationEvent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ConversationEvent) Pub/Sub message attributes: - "participant_id" - "participant_role" - "message_id" |
| `↳ stt_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SpeechToTextConfig` Settings for speech transcription. |
| `↳ language_code` | `string` Language code for the conversation profile. If not specified, the language is en-US. Language at ConversationProfile should be set for all non en-US languages. This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". |
| `↳ time_zone` | `string` The time zone of this conversational profile from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris. Defaults to America/New_York. |
| `↳ security_settings` | `string` Name of the CX SecuritySettings reference for the agent. Format: `projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`. |
| `↳ tts_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SynthesizeSpeechConfig` Configuration for Text-to-Speech synthesization. Used by Phone Gateway to specify synthesization options. If agent defines synthesization options as well, agent settings overrides the option here. |

### getName

The unique identifier of this conversation profile.

Format: `projects/<Project ID>/locations/<Location
ID>/conversationProfiles/<Conversation Profile ID>`.

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

### setName

The unique identifier of this conversation profile.

Format: `projects/<Project ID>/locations/<Location
ID>/conversationProfiles/<Conversation Profile ID>`.

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

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

### getDisplayName

Required. Human readable name for this profile. Max length 1024 bytes.

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

### setDisplayName

Required. Human readable name for this profile. Max length 1024 bytes.

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

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

### getCreateTime

Output only. Create time of the conversation profile.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Create time of the conversation profile.

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

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

### getUpdateTime

Output only. Update time of the conversation profile.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Update time of the conversation profile.

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

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

### getAutomatedAgentConfig

Configuration for an automated agent to use with this profile.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AutomatedAgentConfig|null` |   |

### hasAutomatedAgentConfig

### clearAutomatedAgentConfig

### setAutomatedAgentConfig

Configuration for an automated agent to use with this profile.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.AutomatedAgentConfig` |

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

### getHumanAgentAssistantConfig

Configuration for agent assistance to use with this profile.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig|null` |   |

### hasHumanAgentAssistantConfig

### clearHumanAgentAssistantConfig

### setHumanAgentAssistantConfig

Configuration for agent assistance to use with this profile.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentAssistantConfig` |

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

### getHumanAgentHandoffConfig

Configuration for connecting to a live agent.

Currently, this feature is not general available, please contact Google
to get access.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentHandoffConfig|null` |   |

### hasHumanAgentHandoffConfig

### clearHumanAgentHandoffConfig

### setHumanAgentHandoffConfig

Configuration for connecting to a live agent.

Currently, this feature is not general available, please contact Google
to get access.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.HumanAgentHandoffConfig` |

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

### getNotificationConfig

Configuration for publishing conversation lifecycle events.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.NotificationConfig|null` |   |

### hasNotificationConfig

### clearNotificationConfig

### setNotificationConfig

Configuration for publishing conversation lifecycle events.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.NotificationConfig` |

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

### getLoggingConfig

Configuration for logging conversation lifecycle events.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.LoggingConfig|null` |   |

### hasLoggingConfig

### clearLoggingConfig

### setLoggingConfig

Configuration for logging conversation lifecycle events.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.LoggingConfig` |

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

### getNewMessageEventNotificationConfig

Configuration for publishing new message events. Event will be sent in
format of [ConversationEvent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ConversationEvent)

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.NotificationConfig|null` |   |

### hasNewMessageEventNotificationConfig

### clearNewMessageEventNotificationConfig

### setNewMessageEventNotificationConfig

Configuration for publishing new message events. Event will be sent in
format of [ConversationEvent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ConversationEvent)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.NotificationConfig` |

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

### getNewRecognitionResultNotificationConfig

Optional. Configuration for publishing transcription intermediate results.

Event will be sent in format of
[ConversationEvent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ConversationEvent). If
configured, the following information will be populated as
[ConversationEvent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ConversationEvent) Pub/Sub
message attributes:

- "participant_id"
- "participant_role"
- "message_id"

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.NotificationConfig|null` |   |

### hasNewRecognitionResultNotificationConfig

### clearNewRecognitionResultNotificationConfig

### setNewRecognitionResultNotificationConfig

Optional. Configuration for publishing transcription intermediate results.

Event will be sent in format of
[ConversationEvent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ConversationEvent). If
configured, the following information will be populated as
[ConversationEvent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ConversationEvent) Pub/Sub
message attributes:

- "participant_id"
- "participant_role"
- "message_id"

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.NotificationConfig` |

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

### getSttConfig

Settings for speech transcription.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SpeechToTextConfig|null` |   |

### hasSttConfig

### clearSttConfig

### setSttConfig

Settings for speech transcription.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SpeechToTextConfig` |

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

### getLanguageCode

Language code for the conversation profile. If not specified, the language
is en-US. Language at ConversationProfile should be set for all non en-US
languages.

This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
language tag. Example: "en-US".

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

### setLanguageCode

Language code for the conversation profile. If not specified, the language
is en-US. Language at ConversationProfile should be set for all non en-US
languages.

This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
language tag. Example: "en-US".

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

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

### getTimeZone

The time zone of this conversational profile from the
[time zone database](https://www.iana.org/time-zones), e.g.,
America/New_York, Europe/Paris. Defaults to America/New_York.

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

### setTimeZone

The time zone of this conversational profile from the
[time zone database](https://www.iana.org/time-zones), e.g.,
America/New_York, Europe/Paris. Defaults to America/New_York.

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

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

### getSecuritySettings

Name of the CX SecuritySettings reference for the agent.

Format: `projects/<Project ID>/locations/<Location
ID>/securitySettings/<Security Settings ID>`.

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

### setSecuritySettings

Name of the CX SecuritySettings reference for the agent.

Format: `projects/<Project ID>/locations/<Location
ID>/securitySettings/<Security Settings ID>`.

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

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

### getTtsConfig

Configuration for Text-to-Speech synthesization.

Used by Phone Gateway to specify synthesization options. If agent defines
synthesization options as well, agent settings overrides the option here.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SynthesizeSpeechConfig|null` |   |

### hasTtsConfig

### clearTtsConfig

### setTtsConfig

Configuration for Text-to-Speech synthesization.

Used by Phone Gateway to specify synthesization options. If agent defines
synthesization options as well, agent settings overrides the option here.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SynthesizeSpeechConfig` |

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