Google Cloud Discovery Engine V1 Client - Class SessionConfig (1.17.0)

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

Configuration for the session.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ session_management_policy int

Optional. Session management policy that defines who will manage the session.

↳ session_ttl SessionConfig\SessionTtl

Optional. The TTL for the session. If unset, the default value is 60 days.

getSessionManagementPolicy

Optional. Session management policy that defines who will manage the session.

Returns
Type Description
int Enum of type SessionManagementPolicy.

setSessionManagementPolicy

Optional. Session management policy that defines who will manage the session.

Parameter
Name Description
var int

Enum of type SessionManagementPolicy.

Returns
Type Description
$this

getSessionTtl

Optional. The TTL for the session. If unset, the default value is 60 days.

Returns
Type Description
SessionConfig\SessionTtl|null

hasSessionTtl

clearSessionTtl

setSessionTtl

Optional. The TTL for the session. If unset, the default value is 60 days.

Parameter
Name Description
var SessionConfig\SessionTtl
Returns
Type Description
$this