[BindServiceMethod(typeof(SessionService), "BindService")]
public abstract class SessionService.SessionServiceBaseReference documentation and code samples for the Discovery Engine v1 API class SessionService.SessionServiceBase.
Base class for server-side implementations of SessionService
Namespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Methods
CreateSession(CreateSessionRequest, ServerCallContext)
public virtual Task<Session> CreateSession(CreateSessionRequest request, ServerCallContext context)Creates a Session.
If the [Session][google.cloud.discoveryengine.v1.Session] to create already exists, an ALREADY_EXISTS error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateSessionRequestThe 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). |
DeleteSession(DeleteSessionRequest, ServerCallContext)
public virtual Task<Empty> DeleteSession(DeleteSessionRequest request, ServerCallContext context)Deletes a Session.
If the [Session][google.cloud.discoveryengine.v1.Session] to delete does not exist, a NOT_FOUND error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteSessionRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskEmpty |
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 a 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). |
ListSessions(ListSessionsRequest, ServerCallContext)
public virtual Task<ListSessionsResponse> ListSessions(ListSessionsRequest request, ServerCallContext context)Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1.DataStore].
| 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 a Session.
[Session][google.cloud.discoveryengine.v1.Session] action type cannot be changed. If the [Session][google.cloud.discoveryengine.v1.Session] to update does not exist, a NOT_FOUND error is returned.
| 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). |