Interface CreateSessionRequestOrBuilder (3.88.0)

public interface CreateSessionRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getParent()

public abstract String getParent()

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getSession()

public abstract Session getSession()

Required. The session to create.

.google.cloud.aiplatform.v1beta1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Session

The session.

getSessionId()

public abstract String 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 session_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The sessionId.

getSessionIdBytes()

public abstract ByteString getSessionIdBytes()

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 session_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for sessionId.

getSessionOrBuilder()

public abstract SessionOrBuilder getSessionOrBuilder()

Required. The session to create.

.google.cloud.aiplatform.v1beta1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SessionOrBuilder

hasSession()

public abstract boolean hasSession()

Required. The session to create.

.google.cloud.aiplatform.v1beta1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the session field is set.