Google Cloud Ai Platform V1 Client - Class CreateSessionRequest (1.52.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class CreateSessionRequest.

Request message for SessionService.CreateSession.

Generated from protobuf message google.cloud.aiplatform.v1.CreateSessionRequest

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The resource name of the location to create the session in. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

↳ session Session

Required. The session to create.

getParent

Required. The resource name of the location to create the session in.

Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

Returns
Type Description
string

setParent

Required. The resource name of the location to create the session in.

Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

Parameter
Name Description
var string
Returns
Type Description
$this

getSession

Required. The session to create.

Returns
Type Description
Session|null

hasSession

clearSession

setSession

Required. The session to create.

Parameter
Name Description
var Session
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The resource name of the location to create the session in. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine} Please see SessionServiceClient::reasoningEngineName() for help formatting this field.

session Session

Required. The session to create.

Returns
Type Description
CreateSessionRequest