REST Resource: projects.locations.dataStores.sessions

Resource: Session

External session proto definition.

JSON representation
{
  "name": string,
  "displayName": string,
  "state": enum (State),
  "userPseudoId": string,
  "turns": [
    {
      object (Turn)
    }
  ],
  "startTime": string,
  "endTime": string,
  "isPinned": boolean
}
Fields
name

string

Immutable. Fully qualified name projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*

displayName

string

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

enum (State)

The state of the session.

userPseudoId

string

A unique identifier for tracking users.

turns[]

object (Turn)

Turns.

startTime

string (Timestamp format)

Output only. The time the session started.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

endTime

string (Timestamp format)

Output only. The time the session finished.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

isPinned

boolean

Optional. Whether the session is pinned, pinned session will be displayed on the top of the session list.

Methods

create

Creates a Session.

delete

Deletes a Session.

get

Gets a Session.

list

Lists all Sessions by their parent DataStore.

patch

Updates a Session.