4.34.0 (latest) 4.33.0 4.32.0 4.31.0 4.30.0 4.29.0 4.28.0 4.27.0 4.26.0 4.25.0 4.24.0 4.23.0 4.22.0 4.21.0 4.20.0 4.19.0 4.18.0 4.17.0 4.16.0 4.15.0 4.14.0 4.13.0 4.12.0 4.11.0 4.10.0 4.9.0 4.8.0 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0

    public sealed class Conversation : IMessage<Conversation>, IEquatable<Conversation>, IDeepCloneable<Conversation>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class Conversation.

Represents a conversation.
A conversation is an interaction between an agent, including live agents
and Dialogflow agents, and a support customer. Conversations can
include phone calls and text-based chat sessions.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Conversation

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Conversation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.Conversation.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Conversation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.Conversation.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Conversation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.Conversation.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.md.txt)

## Assembly

Google.Cloud.Dialogflow.V2.dll

## Constructors

### Conversation()

    public Conversation()

### Conversation(Conversation)

    public Conversation(Conversation other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Conversation` |

## Properties

### ConversationName

    public ConversationName ConversationName { get; set; }

[ConversationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.ConversationName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.Conversation.md.txt#Google_Cloud_Dialogflow_V2_Conversation_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ConversationName` |   |

### ConversationProfile

    public string ConversationProfile { get; set; }

Required. The Conversation Profile to be used to configure this
Conversation. This field cannot be updated.
Format: `projects/<Project ID>/locations/<Location
ID>/conversationProfiles/<Conversation Profile ID>`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ConversationProfileAsConversationProfileName

    public ConversationProfileName ConversationProfileAsConversationProfileName { get; set; }

[ConversationProfileName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.ConversationProfileName.md.txt)-typed view over the [ConversationProfile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.Conversation.md.txt#Google_Cloud_Dialogflow_V2_Conversation_ConversationProfile) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ConversationProfileName` |   |

### ConversationStage

    public Conversation.Types.ConversationStage ConversationStage { get; set; }

Optional. The stage of a conversation. It indicates whether the virtual
agent or a human agent is handling the conversation.

If the conversation is created with the conversation profile that has
Dialogflow config set, defaults to
\[ConversationStage.VIRTUAL_AGENT_STAGE\]\[google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE\];
Otherwise, defaults to
\[ConversationStage.HUMAN_ASSIST_STAGE\]\[google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE\].

If the conversation is created with the conversation profile that has
Dialogflow config set but explicitly sets conversation_stage to
\[ConversationStage.HUMAN_ASSIST_STAGE\]\[google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE\],
it skips
\[ConversationStage.VIRTUAL_AGENT_STAGE\]\[google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE\]
stage and directly goes to
\[ConversationStage.HUMAN_ASSIST_STAGE\]\[google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ConversationTypesConversationStage` |   |

### EndTime

    public Timestamp EndTime { get; set; }

Output only. The time the conversation was finished.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### IngestedContextReferences

    public MapField<string, Conversation.Types.ContextReference> IngestedContextReferences { get; }

Output only. The context reference updates provided by external systems.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringConversationTypesContextReference` |   |

### InitialConversationProfile

    public ConversationProfile InitialConversationProfile { get; set; }

Optional. Output only. The initial conversation profile to be used to
configure this conversation, which is a copy of the conversation profile
config read at conversation creation time.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ConversationProfile` |   |

### InitialGeneratorContexts

    public MapField<string, Conversation.Types.GeneratorContext> InitialGeneratorContexts { get; }

Output only. A map with generator name as key and generator context as
value.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringConversationTypesGeneratorContext` |   |

### LifecycleState

    public Conversation.Types.LifecycleState LifecycleState { get; set; }

Output only. The current state of the Conversation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ConversationTypesLifecycleState` |   |

### Name

    public string Name { get; set; }

Output only. Identifier. The unique identifier of this conversation.
Format: `projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PhoneNumber

    public ConversationPhoneNumber PhoneNumber { get; set; }

Output only. It will not be empty if the conversation is to be connected
over telephony.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ConversationPhoneNumber` |   |

### StartTime

    public Timestamp StartTime { get; set; }

Output only. The time the conversation was started.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### TelephonyConnectionInfo

    public Conversation.Types.TelephonyConnectionInfo TelephonyConnectionInfo { get; set; }

Output only. The telephony connection information.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ConversationTypesTelephonyConnectionInfo` |   |