public class AssistantService.AssistantServiceClient : ClientBase<AssistantService.AssistantServiceClient>Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta API class AssistantService.AssistantServiceClient.
Client for AssistantService
Inheritance
object > ClientBase > ClientBaseAssistantServiceAssistantServiceClient > AssistantService.AssistantServiceClientNamespace
Google.Cloud.Ces.V1BetaAssembly
Google.Cloud.Ces.V1Beta.dll
Constructors
AssistantServiceClient()
protected AssistantServiceClient()Protected parameterless constructor to allow creation of test doubles.
AssistantServiceClient(CallInvoker)
public AssistantServiceClient(CallInvoker callInvoker)Creates a new client for AssistantService that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
AssistantServiceClient(ChannelBase)
public AssistantServiceClient(ChannelBase channel)Creates a new client for AssistantService
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
AssistantServiceClient(ClientBaseConfiguration)
protected AssistantServiceClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfigurationThe client configuration. |
Methods
ChatAiAssistant(ChatAiAssistantRequest, CallOptions)
public virtual ChatAiAssistantResponse ChatAiAssistant(ChatAiAssistantRequest request, CallOptions options)Runs Arc, the AI assistant, for the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
ChatAiAssistantRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse |
The response received from the server. |
ChatAiAssistant(ChatAiAssistantRequest, Metadata, DateTime?, CancellationToken)
public virtual ChatAiAssistantResponse ChatAiAssistant(ChatAiAssistantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Runs Arc, the AI assistant, for the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
ChatAiAssistantRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse |
The response received from the server. |
ChatAiAssistantAsync(ChatAiAssistantRequest, CallOptions)
public virtual AsyncUnaryCall<ChatAiAssistantResponse> ChatAiAssistantAsync(ChatAiAssistantRequest request, CallOptions options)Runs Arc, the AI assistant, for the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
ChatAiAssistantRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallChatAiAssistantResponse |
The call object. |
ChatAiAssistantAsync(ChatAiAssistantRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ChatAiAssistantResponse> ChatAiAssistantAsync(ChatAiAssistantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Runs Arc, the AI assistant, for the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
ChatAiAssistantRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallChatAiAssistantResponse |
The call object. |
CreateAssistantSession(CreateAssistantSessionRequest, CallOptions)
public virtual AssistantSession CreateAssistantSession(CreateAssistantSessionRequest request, CallOptions options)Creates a new assistant session in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateAssistantSessionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AssistantSession |
The response received from the server. |
CreateAssistantSession(CreateAssistantSessionRequest, Metadata, DateTime?, CancellationToken)
public virtual AssistantSession CreateAssistantSession(CreateAssistantSessionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Creates a new assistant session in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateAssistantSessionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AssistantSession |
The response received from the server. |
CreateAssistantSessionAsync(CreateAssistantSessionRequest, CallOptions)
public virtual AsyncUnaryCall<AssistantSession> CreateAssistantSessionAsync(CreateAssistantSessionRequest request, CallOptions options)Creates a new assistant session in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateAssistantSessionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallAssistantSession |
The call object. |
CreateAssistantSessionAsync(CreateAssistantSessionRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<AssistantSession> CreateAssistantSessionAsync(CreateAssistantSessionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Creates a new assistant session in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateAssistantSessionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallAssistantSession |
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. |
DeleteAssistantSession(DeleteAssistantSessionRequest, CallOptions)
public virtual Empty DeleteAssistantSession(DeleteAssistantSessionRequest request, CallOptions options)Deletes the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteAssistantSessionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Empty |
The response received from the server. |
DeleteAssistantSession(DeleteAssistantSessionRequest, Metadata, DateTime?, CancellationToken)
public virtual Empty DeleteAssistantSession(DeleteAssistantSessionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Deletes the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteAssistantSessionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Empty |
The response received from the server. |
DeleteAssistantSessionAsync(DeleteAssistantSessionRequest, CallOptions)
public virtual AsyncUnaryCall<Empty> DeleteAssistantSessionAsync(DeleteAssistantSessionRequest request, CallOptions options)Deletes the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteAssistantSessionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallEmpty |
The call object. |
DeleteAssistantSessionAsync(DeleteAssistantSessionRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Empty> DeleteAssistantSessionAsync(DeleteAssistantSessionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Deletes the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteAssistantSessionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallEmpty |
The call object. |
GetAssistantSession(GetAssistantSessionRequest, CallOptions)
public virtual AssistantSession GetAssistantSession(GetAssistantSessionRequest request, CallOptions options)Gets details of the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
GetAssistantSessionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AssistantSession |
The response received from the server. |
GetAssistantSession(GetAssistantSessionRequest, Metadata, DateTime?, CancellationToken)
public virtual AssistantSession GetAssistantSession(GetAssistantSessionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Gets details of the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
GetAssistantSessionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AssistantSession |
The response received from the server. |
GetAssistantSessionAsync(GetAssistantSessionRequest, CallOptions)
public virtual AsyncUnaryCall<AssistantSession> GetAssistantSessionAsync(GetAssistantSessionRequest request, CallOptions options)Gets details of the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
GetAssistantSessionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallAssistantSession |
The call object. |
GetAssistantSessionAsync(GetAssistantSessionRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<AssistantSession> GetAssistantSessionAsync(GetAssistantSessionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Gets details of the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
GetAssistantSessionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallAssistantSession |
The call object. |
ListAssistantSessions(ListAssistantSessionsRequest, CallOptions)
public virtual ListAssistantSessionsResponse ListAssistantSessions(ListAssistantSessionsRequest request, CallOptions options)Lists all assistant sessions in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAssistantSessionsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
ListAssistantSessionsResponse |
The response received from the server. |
ListAssistantSessions(ListAssistantSessionsRequest, Metadata, DateTime?, CancellationToken)
public virtual ListAssistantSessionsResponse ListAssistantSessions(ListAssistantSessionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Lists all assistant sessions in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAssistantSessionsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
ListAssistantSessionsResponse |
The response received from the server. |
ListAssistantSessionsAsync(ListAssistantSessionsRequest, CallOptions)
public virtual AsyncUnaryCall<ListAssistantSessionsResponse> ListAssistantSessionsAsync(ListAssistantSessionsRequest request, CallOptions options)Lists all assistant sessions in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAssistantSessionsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallListAssistantSessionsResponse |
The call object. |
ListAssistantSessionsAsync(ListAssistantSessionsRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ListAssistantSessionsResponse> ListAssistantSessionsAsync(ListAssistantSessionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Lists all assistant sessions in the given app.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAssistantSessionsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallListAssistantSessionsResponse |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override AssistantService.AssistantServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
AssistantServiceAssistantServiceClient |
|
RunAssistant(RunAssistantRequest, CallOptions)
public virtual RunAssistantResponse RunAssistant(RunAssistantRequest request, CallOptions options)Runs the assistant agent for the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
RunAssistantRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
RunAssistantResponse |
The response received from the server. |
RunAssistant(RunAssistantRequest, Metadata, DateTime?, CancellationToken)
public virtual RunAssistantResponse RunAssistant(RunAssistantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Runs the assistant agent for the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
RunAssistantRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
RunAssistantResponse |
The response received from the server. |
RunAssistantAsync(RunAssistantRequest, CallOptions)
public virtual AsyncUnaryCall<RunAssistantResponse> RunAssistantAsync(RunAssistantRequest request, CallOptions options)Runs the assistant agent for the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
RunAssistantRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallRunAssistantResponse |
The call object. |
RunAssistantAsync(RunAssistantRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<RunAssistantResponse> RunAssistantAsync(RunAssistantRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Runs the assistant agent for the specified assistant session.
| Parameters | |
|---|---|
| Name | Description |
request |
RunAssistantRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallRunAssistantResponse |
The call object. |