Data Analytics API with Gemini v1beta API - Class DataChatServiceClientImpl (1.0.0-beta01)

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.

Inheritance

object > DataChatServiceClient > DataChatServiceClientImpl

Namespace

Google.Cloud.GeminiDataAnalytics.V1Beta

Assembly

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
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides