[BindServiceMethod(typeof(SessionService), "BindService")]
public abstract class SessionService.SessionServiceBaseReference documentation and code samples for the Vertex AI v1beta1 API class SessionService.SessionServiceBase.
Base class for server-side implementations of SessionService
Namespace
Google.Cloud.AIPlatform.V1Beta1Assembly
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 |
AppendEventRequestThe request received from the client. |
context |
ServerCallContextThe 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].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateSessionRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
DeleteSessionRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
GetSessionRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
ListEventsRequestThe request received from the client. |
context |
ServerCallContextThe 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 reasoning engine.
| Parameters | |
|---|---|
| Name | Description |
request |
ListSessionsRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
UpdateSessionRequestThe request received from the client. |
context |
ServerCallContextThe 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). |