public sealed class DataChatServiceClientImpl : DataChatServiceClientReference 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 Looker Studio 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 | 
        DataChatServiceDataChatServiceClientThe underlying gRPC client.  | 
      
settings | 
        DataChatServiceSettingsThe base DataChatServiceSettings used within this client.  | 
      
logger | 
        ILoggerOptional 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][google.cloud.geminidataanalytics.v1alpha.Message] objects.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        ChatRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        CreateConversationRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        CreateConversationRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 by using conversation id and parent.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GetConversationRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 by using conversation id and parent.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GetConversationRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        ListConversationsRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        ListConversationsRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        ListMessagesRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        ListMessagesRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
PagedAsyncEnumerableListMessagesResponseStorageMessage | 
        A pageable asynchronous sequence of StorageMessage resources.  |