Vertex AI v1beta1 API - Class SessionService.SessionServiceBase (1.0.0-beta24)

[BindServiceMethod(typeof(SessionService), "BindService")]
public abstract class SessionService.SessionServiceBase

Reference documentation and code samples for the Vertex AI v1beta1 API class SessionService.SessionServiceBase.

Base class for server-side implementations of SessionService

Inheritance

object > SessionService.SessionServiceBase

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

Methods

AppendEvent(AppendEventRequest, ServerCallContext)

public virtual Task<AppendEventResponse> AppendEvent(AppendEventRequest request, ServerCallContext context)

Appends an event to a given session.

Parameters
Name Description
request AppendEventRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskAppendEventResponse

The response to send back to the client (wrapped by a task).

CreateSession(CreateSessionRequest, ServerCallContext)

public virtual Task<Operation> CreateSession(CreateSessionRequest request, ServerCallContext context)

Creates a new [Session][google.cloud.aiplatform.v1beta1.Session] in a given project and location.

Parameters
Name Description
request CreateSessionRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteSession(DeleteSessionRequest, ServerCallContext)

public virtual Task<Operation> DeleteSession(DeleteSessionRequest request, ServerCallContext context)

Deletes details of the specific [Session][google.cloud.aiplatform.v1beta1.Session].

Parameters
Name Description
request DeleteSessionRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

GetSession(GetSessionRequest, ServerCallContext)

public virtual Task<Session> GetSession(GetSessionRequest request, ServerCallContext context)

Gets details of the specific [Session][google.cloud.aiplatform.v1beta1.Session].

Parameters
Name Description
request GetSessionRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskSession

The response to send back to the client (wrapped by a task).

ListEvents(ListEventsRequest, ServerCallContext)

public virtual Task<ListEventsResponse> ListEvents(ListEventsRequest request, ServerCallContext context)

Lists [Events][google.cloud.aiplatform.v1beta1.Event] in a given session.

Parameters
Name Description
request ListEventsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListEventsResponse

The response to send back to the client (wrapped by a task).

ListSessions(ListSessionsRequest, ServerCallContext)

public virtual Task<ListSessionsResponse> ListSessions(ListSessionsRequest request, ServerCallContext context)

Lists [Sessions][google.cloud.aiplatform.v1beta1.Session] in a given project and location.

Parameters
Name Description
request ListSessionsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListSessionsResponse

The response to send back to the client (wrapped by a task).

UpdateSession(UpdateSessionRequest, ServerCallContext)

public virtual Task<Session> UpdateSession(UpdateSessionRequest request, ServerCallContext context)

Updates the specific [Session][google.cloud.aiplatform.v1beta1.Session].

Parameters
Name Description
request UpdateSessionRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskSession

The response to send back to the client (wrapped by a task).