# Class Conversation (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0

    Conversation(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A conversation represents an interaction between an end user
and the CES app.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Identifier. The unique identifier of the conversation. Format: `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` |
| `start_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Timestamp when the conversation was created. |
| `end_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Timestamp when the conversation was completed. |
| `turns` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1.types.Conversation.Turn]` Required. The turns in the conversation. |
| `turn_count` | `int` Output only. The number of turns in the conversation. |
| `channel_type` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1.types.Conversation.ChannelType` DEPRECATED. Please use input_types instead. |
| `source` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1.types.Conversation.Source` Output only. Indicate the source of the conversation. |
| `input_types` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1.types.Conversation.InputType]` Output only. The input types of the conversation. |
| `entry_agent` | `str` Output only. The agent that initially handles the conversation. If not specified, the conversation is handled by the root agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` |
| `deployment` | `str` Output only. The deployment of the app used for processing the conversation. Format: `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` |
| `app_version` | `str` Output only. The version of the app used for processing the conversation. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}` |
| `language_code` | `str` Output only. The language code of the conversation. |
| `messages` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1.types.Message]` Deprecated. Use turns instead. |

## Classes

### ChannelType

    ChannelType(value)

The channel type of the conversation.

### InputType

    InputType(value)

Type of the input message.

### Source

    Source(value)

The source of the conversation.

### Turn

    Turn(mapping=None, *, ignore_unknown_fields=False, **kwargs)

All information about a single turn in the conversation.