# Contact Center AI Insights v1 API - Class Conversation (2.20.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.20.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.19.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.19.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.18.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.18.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.17.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.17.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.16.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.16.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.15.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.15.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.14.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.14.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.13.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.13.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.12.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.12.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.11.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.10.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.9.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.8.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.7.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.6.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.5.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.4.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.3.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.2.1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.2.1/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.1.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.0.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.3.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.2.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.1.0/Google.Cloud.ContactCenterInsights.V1.Conversation)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.0.0/Google.Cloud.ContactCenterInsights.V1.Conversation)

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

Reference documentation and code samples for the Contact Center AI Insights v1 API class Conversation.

The conversation resource.

## Inheritance

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

## Implements

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

## 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.ContactCenterInsights.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1)

## Assembly

Google.Cloud.ContactCenterInsights.V1.dll

## Constructors

### Conversation()

    public Conversation()

### Conversation(Conversation)

    public Conversation(Conversation other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversation` |

## Properties

### AgentId

    public string AgentId { get; set; }

An opaque, user-specified string representing the human agent who handled
the conversation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### CallMetadata

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

Call-specific metadata.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversation.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversation.Types.CallMetadata` |   |

### ConversationName

    public ConversationName ConversationName { get; set; }

[ConversationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.ConversationName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversation#Google_Cloud_ContactCenterInsights_V1_Conversation_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.ConversationName` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### DataSource

    public ConversationDataSource DataSource { get; set; }

The source of the audio and transcription for the conversation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.ConversationDataSource` |   |

### DialogflowIntents

    public MapField<string, DialogflowIntent> DialogflowIntents { get; }

Output only. All the matched Dialogflow intents in the call. The key
corresponds to a Dialogflow intent, format:
projects/{project}/agent/{agent}/intents/{intent}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.DialogflowIntent` |   |

### Duration

    public Duration Duration { get; set; }

Output only. The duration of the conversation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Duration.html` |   |

### ExpirationCase

    public Conversation.ExpirationOneofCase ExpirationCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversation.ExpirationOneofCase` |   |

### ExpireTime

    public Timestamp ExpireTime { get; set; }

The time at which this conversation should expire. After this time, the
conversation data and any associated analyses will be deleted.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Labels

    public MapField<string, string> Labels { get; }

A map for the user to specify any custom fields. A maximum of 100 labels
per conversation is allowed, with a maximum of 256 characters per entry.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### LanguageCode

    public string LanguageCode { get; set; }

A user-specified language code for the conversation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### LatestAnalysis

    public Analysis LatestAnalysis { get; set; }

Output only. The conversation's latest analysis, if one exists.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Analysis` |   |

### LatestSummary

    public ConversationSummarizationSuggestionData LatestSummary { get; set; }

Output only. Latest summary of the conversation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.ConversationSummarizationSuggestionData` |   |

### Medium

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

Immutable. The conversation medium, if unspecified will default to
PHONE_CALL.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversation.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversation.Types.Medium` |   |

### MetadataCase

    public Conversation.MetadataOneofCase MetadataCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversation.MetadataOneofCase` |   |

### MetadataJson

    public string MetadataJson { get; set; }

Input only. JSON metadata encoded as a string.
This field is primarily used by Insights integrations with various telphony
systems and must be in one of Insight's supported formats.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Name

    public string Name { get; set; }

Immutable. The resource name of the conversation.
Format:
projects/{project}/locations/{location}/conversations/{conversation}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ObfuscatedUserId

    public string ObfuscatedUserId { get; set; }

Obfuscated user ID which the customer sent to us.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### QualityMetadata

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

Conversation metadata related to quality management.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversation.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversation.Types.QualityMetadata` |   |

### RuntimeAnnotations

    public RepeatedField<RuntimeAnnotation> RuntimeAnnotations { get; }

Output only. The annotations that were generated during the customer and
agent interaction.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.RuntimeAnnotation` |   |

### StartTime

    public Timestamp StartTime { get; set; }

The time at which the conversation started.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Transcript

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

Output only. The conversation transcript.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversation.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.Conversation.Types.Transcript` |   |

### Ttl

    public Duration Ttl { get; set; }

Input only. The TTL for this resource. If specified, then this TTL will
be used to calculate the expire time.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Duration.html` |   |

### TurnCount

    public int TurnCount { get; set; }

Output only. The number of turns in the conversation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The most recent time at which the conversation was updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |