Class Session (0.11.14)

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/*
state google.cloud.discoveryengine_v1beta.types.Session.State
The state of the session.
user_pseudo_id str
A unique identifier for tracking users.
turns MutableSequence[google.cloud.discoveryengine_v1beta.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.

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.