[BindServiceMethod(typeof(ConversationalSearchService), "BindService")]
public abstract class ConversationalSearchService.ConversationalSearchServiceBaseReference documentation and code samples for the Discovery Engine v1 API class ConversationalSearchService.ConversationalSearchServiceBase.
Base class for server-side implementations of ConversationalSearchService
Namespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Methods
AnswerQuery(AnswerQueryRequest, ServerCallContext)
public virtual Task<AnswerQueryResponse> AnswerQuery(AnswerQueryRequest request, ServerCallContext context)Answer query method.
| Parameters | |
|---|---|
| Name | Description |
request |
AnswerQueryRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskAnswerQueryResponse |
The response to send back to the client (wrapped by a task). |
ConverseConversation(ConverseConversationRequest, ServerCallContext)
public virtual Task<ConverseConversationResponse> ConverseConversation(ConverseConversationRequest request, ServerCallContext context)Converses a conversation.
| Parameters | |
|---|---|
| Name | Description |
request |
ConverseConversationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskConverseConversationResponse |
The response to send back to the client (wrapped by a task). |
CreateConversation(CreateConversationRequest, ServerCallContext)
public virtual Task<Conversation> CreateConversation(CreateConversationRequest request, ServerCallContext context)Creates a Conversation.
If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to create already exists, an ALREADY_EXISTS error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateConversationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskConversation |
The response to send back to the client (wrapped by a task). |
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). |
DeleteConversation(DeleteConversationRequest, ServerCallContext)
public virtual Task<Empty> DeleteConversation(DeleteConversationRequest request, ServerCallContext context)Deletes a Conversation.
If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to delete does not exist, a NOT_FOUND error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteConversationRequestThe 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). |
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). |
GetAnswer(GetAnswerRequest, ServerCallContext)
public virtual Task<Answer> GetAnswer(GetAnswerRequest request, ServerCallContext context)Gets a Answer.
| Parameters | |
|---|---|
| Name | Description |
request |
GetAnswerRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskAnswer |
The response to send back to the client (wrapped by a task). |
GetConversation(GetConversationRequest, ServerCallContext)
public virtual Task<Conversation> GetConversation(GetConversationRequest request, ServerCallContext context)Gets a Conversation.
| Parameters | |
|---|---|
| Name | Description |
request |
GetConversationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskConversation |
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). |
ListConversations(ListConversationsRequest, ServerCallContext)
public virtual Task<ListConversationsResponse> ListConversations(ListConversationsRequest request, ServerCallContext context)Lists all Conversations by their parent [DataStore][google.cloud.discoveryengine.v1.DataStore].
| Parameters | |
|---|---|
| Name | Description |
request |
ListConversationsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListConversationsResponse |
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). |
StreamAnswerQuery(AnswerQueryRequest, IServerStreamWriter<AnswerQueryResponse>, ServerCallContext)
public virtual Task StreamAnswerQuery(AnswerQueryRequest request, IServerStreamWriter<AnswerQueryResponse> responseStream, ServerCallContext context)Answer query method (streaming).
It takes one [AnswerQueryRequest][google.cloud.discoveryengine.v1.AnswerQueryRequest] and returns multiple [AnswerQueryResponse][google.cloud.discoveryengine.v1.AnswerQueryResponse] messages in a stream.
| Parameters | |
|---|---|
| Name | Description |
request |
AnswerQueryRequestThe request received from the client. |
responseStream |
IServerStreamWriterAnswerQueryResponseUsed for sending responses back to the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task |
A task indicating completion of the handler. |
UpdateConversation(UpdateConversationRequest, ServerCallContext)
public virtual Task<Conversation> UpdateConversation(UpdateConversationRequest request, ServerCallContext context)Updates a Conversation.
[Conversation][google.cloud.discoveryengine.v1.Conversation] action type cannot be changed. If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to update does not exist, a NOT_FOUND error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateConversationRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskConversation |
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). |