Google Cloud Discovery Engine V1 Client - Class Session (1.1.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class Session.

External session proto definition.

Generated from protobuf message google.cloud.discoveryengine.v1.Session

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

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

↳ state int

The state of the session.

↳ user_pseudo_id string

A unique identifier for tracking users.

↳ turns array<Google\Cloud\DiscoveryEngine\V1\Session\Turn>

Turns.

↳ start_time Google\Protobuf\Timestamp

Output only. The time the session started.

↳ end_time Google\Protobuf\Timestamp

Output only. The time the session finished.

getName

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

Returns
Type Description
string

setName

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

Parameter
Name Description
var string
Returns
Type Description
$this

getState

The state of the session.

Returns
Type Description
int

setState

The state of the session.

Parameter
Name Description
var int
Returns
Type Description
$this

getUserPseudoId

A unique identifier for tracking users.

Returns
Type Description
string

setUserPseudoId

A unique identifier for tracking users.

Parameter
Name Description
var string
Returns
Type Description
$this

getTurns

Turns.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setTurns

Turns.

Parameter
Name Description
var array<Google\Cloud\DiscoveryEngine\V1\Session\Turn>
Returns
Type Description
$this

getStartTime

Output only. The time the session started.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Output only. The time the session started.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getEndTime

Output only. The time the session finished.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

Output only. The time the session finished.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this