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 \ V1Methods
__construct
Constructor.
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_id
string
Optional. The user defined ID to use for session, which will become the final component of the session resource name. If not provided, Vertex AI will generate a value for this ID. This value may be up to 63 characters, and valid characters are [a-z0-9-]
. The first character must be a letter, and the last character must be a letter or number.
getParent
Required. The resource name of the location to create the session in.
Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}
string
setParent
Required. The resource name of the location to create the session in.
Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}
var
string
$this
getSession
Required. The session to create.
hasSession
clearSession
setSession
Required. The session to create.
$this
getSessionId
Optional. The user defined ID to use for session, which will become the final component of the session resource name. If not provided, Vertex AI will generate a value for this ID.
This value may be up to 63 characters, and valid characters are [a-z0-9-]
. The first character must be a letter, and the last character
must be a letter or number.
string
setSessionId
Optional. The user defined ID to use for session, which will become the final component of the session resource name. If not provided, Vertex AI will generate a value for this ID.
This value may be up to 63 characters, and valid characters are [a-z0-9-]
. The first character must be a letter, and the last character
must be a letter or number.
var
string
$this
static::build
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
static::buildFromParentSessionSessionId
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
sessionId
string
Optional. The user defined ID to use for session, which will become the final component of the session resource name. If not provided, Vertex AI will generate a value for this ID.
This value may be up to 63 characters, and valid characters are [a-z0-9-]
. The first character must be a letter, and the last character
must be a letter or number.

