Gemini Enterprise for Customer Experience v1beta API - Class AssistantService.AssistantServiceClient (1.0.0-beta10)

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.AssistantServiceClient

Namespace

Google.Cloud.Ces.V1Beta

Assembly

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 CallInvoker

The callInvoker to use to make remote calls.

AssistantServiceClient(ChannelBase)

public AssistantServiceClient(ChannelBase channel)

Creates a new client for AssistantService

Parameter
Name Description
channel ChannelBase

The 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 ClientBaseClientBaseConfiguration

The 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 ChatAiAssistantRequest

The request to send to the server.

options CallOptions

The 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 ChatAiAssistantRequest

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
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 ChatAiAssistantRequest

The request to send to the server.

options CallOptions

The 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 ChatAiAssistantRequest

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
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 CreateAssistantSessionRequest

The request to send to the server.

options CallOptions

The 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 CreateAssistantSessionRequest

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
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 CreateAssistantSessionRequest

The request to send to the server.

options CallOptions

The 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 CreateAssistantSessionRequest

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
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 DeleteAssistantSessionRequest

The request to send to the server.

options CallOptions

The 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 DeleteAssistantSessionRequest

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
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 DeleteAssistantSessionRequest

The request to send to the server.

options CallOptions

The 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 DeleteAssistantSessionRequest

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
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 GetAssistantSessionRequest

The request to send to the server.

options CallOptions

The 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 GetAssistantSessionRequest

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
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 GetAssistantSessionRequest

The request to send to the server.

options CallOptions

The 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 GetAssistantSessionRequest

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
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 ListAssistantSessionsRequest

The request to send to the server.

options CallOptions

The 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 ListAssistantSessionsRequest

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
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 ListAssistantSessionsRequest

The request to send to the server.

options CallOptions

The 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 ListAssistantSessionsRequest

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
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
Overrides
Grpc.Core.ClientBase<Google.Cloud.Ces.V1Beta.AssistantService.AssistantServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

RunAssistant(RunAssistantRequest, CallOptions)

public virtual RunAssistantResponse RunAssistant(RunAssistantRequest request, CallOptions options)

Runs the assistant agent for the specified assistant session.

Parameters
Name Description
request RunAssistantRequest

The request to send to the server.

options CallOptions

The 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 RunAssistantRequest

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
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 RunAssistantRequest

The request to send to the server.

options CallOptions

The 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 RunAssistantRequest

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
AsyncUnaryCallRunAssistantResponse

The call object.