[BindServiceMethod(typeof(DataChatService), "BindService")]
public abstract class DataChatService.DataChatServiceBaseReference documentation and code samples for the Data Analytics API with Gemini v1beta API class DataChatService.DataChatServiceBase.
Base class for server-side implementations of DataChatService
Namespace
Google.Cloud.GeminiDataAnalytics.V1BetaAssembly
Google.Cloud.GeminiDataAnalytics.V1Beta.dll
Methods
Chat(ChatRequest, IServerStreamWriter<Message>, ServerCallContext)
public virtual Task Chat(ChatRequest request, IServerStreamWriter<Message> responseStream, ServerCallContext context)Answers a data question by generating a stream of [Message][google.cloud.geminidataanalytics.v1alpha.Message] objects.
| Parameters | |
|---|---|
| Name | Description |
request |
ChatRequestThe request received from the client. |
responseStream |
IServerStreamWriterMessageUsed 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. |
CreateConversation(CreateConversationRequest, ServerCallContext)
public virtual Task<Conversation> CreateConversation(CreateConversationRequest request, ServerCallContext context)Creates a new conversation to persist the conversation history. Each conversation will have multiple messages associated with it.
| 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). |
GetConversation(GetConversationRequest, ServerCallContext)
public virtual Task<Conversation> GetConversation(GetConversationRequest request, ServerCallContext context)Gets details of a single conversation by using conversation id and parent.
| 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). |
ListConversations(ListConversationsRequest, ServerCallContext)
public virtual Task<ListConversationsResponse> ListConversations(ListConversationsRequest request, ServerCallContext context)Lists all conversations for a given parent.
| 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). |
ListMessages(ListMessagesRequest, ServerCallContext)
public virtual Task<ListMessagesResponse> ListMessages(ListMessagesRequest request, ServerCallContext context)Lists all messages for a given conversation.
| Parameters | |
|---|---|
| Name | Description |
request |
ListMessagesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListMessagesResponse |
The response to send back to the client (wrapped by a task). |