0.20.1 (latest) 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.12 0.12.3 0.11.14 0.10.0 0.9.1 0.8.1 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.1 0.1.1

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

External session proto definition.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Immutable. Fully qualified name `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*` |
| `display_name` | `str` Optional. The display name of the session. This field is used to identify the session in the UI. By default, the display name is the first turn query text in the session. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1alpha.types.Session.State` The state of the session. |
| `user_pseudo_id` | `str` A unique identifier for tracking users. |
| `turns` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1alpha.types.Session.Turn]` Turns. |
| `start_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time the session started. |
| `end_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time the session finished. |
| `is_pinned` | `bool` Optional. Whether the session is pinned, pinned session will be displayed on the top of the session list. |

## Classes

### State

    State(value)

Enumeration of the state of the session.

### Turn

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

Represents a turn, including a query from the user and a
answer from service.