public sealed class DataChatServiceClientImpl : DataChatServiceClient
Reference documentation and code samples for the Data Analytics API with Gemini v1beta API class DataChatServiceClientImpl.
DataChatService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.GeminiDataAnalytics.V1BetaAssembly
Google.Cloud.GeminiDataAnalytics.V1Beta.dll
Remarks
Service to ask a natural language question on top of BigQuery and LookerStudio datasources to get back streamed responses of various kinds to help provide a rich conversational answer.
Constructors
DataChatServiceClientImpl(DataChatServiceClient, DataChatServiceSettings, ILogger)
public DataChatServiceClientImpl(DataChatService.DataChatServiceClient grpcClient, DataChatServiceSettings settings, ILogger logger)
Constructs a client wrapper for the DataChatService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient |
DataChatServiceDataChatServiceClient The underlying gRPC client. |
settings |
DataChatServiceSettings The base DataChatServiceSettings used within this client. |
logger |
ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override DataChatService.DataChatServiceClient GrpcClient { get; }
The underlying gRPC DataChatService client
Property Value | |
---|---|
Type | Description |
DataChatServiceDataChatServiceClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
Methods
Chat(ChatRequest, CallSettings)
public override DataChatServiceClient.ChatStream Chat(ChatRequest request, CallSettings callSettings = null)
Answers a data question by generating a stream of [Message]s.
Parameters | |
---|---|
Name | Description |
request |
ChatRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DataChatServiceClientChatStream |
The server stream. |
CreateConversation(CreateConversationRequest, CallSettings)
public override Conversation CreateConversation(CreateConversationRequest request, CallSettings callSettings = null)
Creates a new conversation to persist the conversation history. Each conversation will have multiple messages associated with it.
Parameters | |
---|---|
Name | Description |
request |
CreateConversationRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Conversation |
The RPC response. |
CreateConversationAsync(CreateConversationRequest, CallSettings)
public override Task<Conversation> CreateConversationAsync(CreateConversationRequest request, CallSettings callSettings = null)
Creates a new conversation to persist the conversation history. Each conversation will have multiple messages associated with it.
Parameters | |
---|---|
Name | Description |
request |
CreateConversationRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskConversation |
A Task containing the RPC response. |
GetConversation(GetConversationRequest, CallSettings)
public override Conversation GetConversation(GetConversationRequest request, CallSettings callSettings = null)
Gets details of a single conversation using conversation id and parent.
Parameters | |
---|---|
Name | Description |
request |
GetConversationRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Conversation |
The RPC response. |
GetConversationAsync(GetConversationRequest, CallSettings)
public override Task<Conversation> GetConversationAsync(GetConversationRequest request, CallSettings callSettings = null)
Gets details of a single conversation using conversation id and parent.
Parameters | |
---|---|
Name | Description |
request |
GetConversationRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskConversation |
A Task containing the RPC response. |
ListConversations(ListConversationsRequest, CallSettings)
public override PagedEnumerable<ListConversationsResponse, Conversation> ListConversations(ListConversationsRequest request, CallSettings callSettings = null)
Lists all conversations for a given parent.
Parameters | |
---|---|
Name | Description |
request |
ListConversationsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListConversationsResponseConversation |
A pageable sequence of Conversation resources. |
ListConversationsAsync(ListConversationsRequest, CallSettings)
public override PagedAsyncEnumerable<ListConversationsResponse, Conversation> ListConversationsAsync(ListConversationsRequest request, CallSettings callSettings = null)
Lists all conversations for a given parent.
Parameters | |
---|---|
Name | Description |
request |
ListConversationsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListConversationsResponseConversation |
A pageable asynchronous sequence of Conversation resources. |
ListMessages(ListMessagesRequest, CallSettings)
public override PagedEnumerable<ListMessagesResponse, StorageMessage> ListMessages(ListMessagesRequest request, CallSettings callSettings = null)
Lists all messages for a given conversation.
Parameters | |
---|---|
Name | Description |
request |
ListMessagesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListMessagesResponseStorageMessage |
A pageable sequence of StorageMessage resources. |
ListMessagesAsync(ListMessagesRequest, CallSettings)
public override PagedAsyncEnumerable<ListMessagesResponse, StorageMessage> ListMessagesAsync(ListMessagesRequest request, CallSettings callSettings = null)
Lists all messages for a given conversation.
Parameters | |
---|---|
Name | Description |
request |
ListMessagesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListMessagesResponseStorageMessage |
A pageable asynchronous sequence of StorageMessage resources. |