public class DataChatService.DataChatServiceClient : ClientBase<DataChatService.DataChatServiceClient>
Reference documentation and code samples for the Data Analytics API with Gemini v1beta API class DataChatService.DataChatServiceClient.
Client for DataChatService
Inheritance
object > ClientBase > ClientBaseDataChatServiceDataChatServiceClient > DataChatService.DataChatServiceClientNamespace
Google.Cloud.GeminiDataAnalytics.V1BetaAssembly
Google.Cloud.GeminiDataAnalytics.V1Beta.dll
Constructors
DataChatServiceClient()
protected DataChatServiceClient()
Protected parameterless constructor to allow creation of test doubles.
DataChatServiceClient(CallInvoker)
public DataChatServiceClient(CallInvoker callInvoker)
Creates a new client for DataChatService that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker |
CallInvoker The callInvoker to use to make remote calls. |
DataChatServiceClient(ChannelBase)
public DataChatServiceClient(ChannelBase channel)
Creates a new client for DataChatService
Parameter | |
---|---|
Name | Description |
channel |
ChannelBase The channel to use to make remote calls. |
DataChatServiceClient(ClientBaseConfiguration)
protected DataChatServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration The client configuration. |
Methods
Chat(ChatRequest, CallOptions)
public virtual AsyncServerStreamingCall<Message> Chat(ChatRequest request, CallOptions options)
Answers a data question by generating a stream of [Message]s.
Parameters | |
---|---|
Name | Description |
request |
ChatRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncServerStreamingCallMessage |
The call object. |
Chat(ChatRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncServerStreamingCall<Message> Chat(ChatRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Answers a data question by generating a stream of [Message]s.
Parameters | |
---|---|
Name | Description |
request |
ChatRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncServerStreamingCallMessage |
The call object. |
CreateConversation(CreateConversationRequest, CallOptions)
public virtual Conversation CreateConversation(CreateConversationRequest request, CallOptions options)
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 to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Conversation |
The response received from the server. |
CreateConversation(CreateConversationRequest, Metadata, DateTime?, CancellationToken)
public virtual Conversation CreateConversation(CreateConversationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Conversation |
The response received from the server. |
CreateConversationAsync(CreateConversationRequest, CallOptions)
public virtual AsyncUnaryCall<Conversation> CreateConversationAsync(CreateConversationRequest request, CallOptions options)
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 to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallConversation |
The call object. |
CreateConversationAsync(CreateConversationRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Conversation> CreateConversationAsync(CreateConversationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallConversation |
The call object. |
CreateLocationsClient()
public virtual Locations.LocationsClient CreateLocationsClient()
Creates a new instance of Locations.LocationsClient using the same call invoker as this client.
Returns | |
---|---|
Type | Description |
LocationsLocationsClient |
A new Locations.LocationsClient for the same target as this client. |
GetConversation(GetConversationRequest, CallOptions)
public virtual Conversation GetConversation(GetConversationRequest request, CallOptions options)
Gets details of a single conversation using conversation id and parent.
Parameters | |
---|---|
Name | Description |
request |
GetConversationRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Conversation |
The response received from the server. |
GetConversation(GetConversationRequest, Metadata, DateTime?, CancellationToken)
public virtual Conversation GetConversation(GetConversationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Gets details of a single conversation using conversation id and parent.
Parameters | |
---|---|
Name | Description |
request |
GetConversationRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Conversation |
The response received from the server. |
GetConversationAsync(GetConversationRequest, CallOptions)
public virtual AsyncUnaryCall<Conversation> GetConversationAsync(GetConversationRequest request, CallOptions options)
Gets details of a single conversation using conversation id and parent.
Parameters | |
---|---|
Name | Description |
request |
GetConversationRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallConversation |
The call object. |
GetConversationAsync(GetConversationRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Conversation> GetConversationAsync(GetConversationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Gets details of a single conversation using conversation id and parent.
Parameters | |
---|---|
Name | Description |
request |
GetConversationRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallConversation |
The call object. |
ListConversations(ListConversationsRequest, CallOptions)
public virtual ListConversationsResponse ListConversations(ListConversationsRequest request, CallOptions options)
Lists all conversations for a given parent.
Parameters | |
---|---|
Name | Description |
request |
ListConversationsRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ListConversationsResponse |
The response received from the server. |
ListConversations(ListConversationsRequest, Metadata, DateTime?, CancellationToken)
public virtual ListConversationsResponse ListConversations(ListConversationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Lists all conversations for a given parent.
Parameters | |
---|---|
Name | Description |
request |
ListConversationsRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
ListConversationsResponse |
The response received from the server. |
ListConversationsAsync(ListConversationsRequest, CallOptions)
public virtual AsyncUnaryCall<ListConversationsResponse> ListConversationsAsync(ListConversationsRequest request, CallOptions options)
Lists all conversations for a given parent.
Parameters | |
---|---|
Name | Description |
request |
ListConversationsRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallListConversationsResponse |
The call object. |
ListConversationsAsync(ListConversationsRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ListConversationsResponse> ListConversationsAsync(ListConversationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Lists all conversations for a given parent.
Parameters | |
---|---|
Name | Description |
request |
ListConversationsRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallListConversationsResponse |
The call object. |
ListMessages(ListMessagesRequest, CallOptions)
public virtual ListMessagesResponse ListMessages(ListMessagesRequest request, CallOptions options)
Lists all messages for a given conversation.
Parameters | |
---|---|
Name | Description |
request |
ListMessagesRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ListMessagesResponse |
The response received from the server. |
ListMessages(ListMessagesRequest, Metadata, DateTime?, CancellationToken)
public virtual ListMessagesResponse ListMessages(ListMessagesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Lists all messages for a given conversation.
Parameters | |
---|---|
Name | Description |
request |
ListMessagesRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
ListMessagesResponse |
The response received from the server. |
ListMessagesAsync(ListMessagesRequest, CallOptions)
public virtual AsyncUnaryCall<ListMessagesResponse> ListMessagesAsync(ListMessagesRequest request, CallOptions options)
Lists all messages for a given conversation.
Parameters | |
---|---|
Name | Description |
request |
ListMessagesRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallListMessagesResponse |
The call object. |
ListMessagesAsync(ListMessagesRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ListMessagesResponse> ListMessagesAsync(ListMessagesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Lists all messages for a given conversation.
Parameters | |
---|---|
Name | Description |
request |
ListMessagesRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallListMessagesResponse |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override DataChatService.DataChatServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
DataChatServiceDataChatServiceClient |