Gemini Enterprise for Customer Experience v1 API - Class WidgetService.WidgetServiceClient (1.0.0-beta01)

public class WidgetService.WidgetServiceClient : ClientBase<WidgetService.WidgetServiceClient>

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class WidgetService.WidgetServiceClient.

Client for WidgetService

Inheritance

object > ClientBase > ClientBaseWidgetServiceWidgetServiceClient > WidgetService.WidgetServiceClient

Namespace

Google.Cloud.Ces.V1

Assembly

Google.Cloud.Ces.V1.dll

Constructors

WidgetServiceClient()

protected WidgetServiceClient()

Protected parameterless constructor to allow creation of test doubles.

WidgetServiceClient(CallInvoker)

public WidgetServiceClient(CallInvoker callInvoker)

Creates a new client for WidgetService that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

WidgetServiceClient(ChannelBase)

public WidgetServiceClient(ChannelBase channel)

Creates a new client for WidgetService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

WidgetServiceClient(ClientBaseConfiguration)

protected WidgetServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

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.

GenerateChatToken(GenerateChatTokenRequest, CallOptions)

public virtual GenerateChatTokenResponse GenerateChatToken(GenerateChatTokenRequest request, CallOptions options)

Generates a session scoped token for chat widget to authenticate with Session APIs.

Parameters
Name Description
request GenerateChatTokenRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
GenerateChatTokenResponse

The response received from the server.

GenerateChatToken(GenerateChatTokenRequest, Metadata, DateTime?, CancellationToken)

public virtual GenerateChatTokenResponse GenerateChatToken(GenerateChatTokenRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Generates a session scoped token for chat widget to authenticate with Session APIs.

Parameters
Name Description
request GenerateChatTokenRequest

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
GenerateChatTokenResponse

The response received from the server.

GenerateChatTokenAsync(GenerateChatTokenRequest, CallOptions)

public virtual AsyncUnaryCall<GenerateChatTokenResponse> GenerateChatTokenAsync(GenerateChatTokenRequest request, CallOptions options)

Generates a session scoped token for chat widget to authenticate with Session APIs.

Parameters
Name Description
request GenerateChatTokenRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallGenerateChatTokenResponse

The call object.

GenerateChatTokenAsync(GenerateChatTokenRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<GenerateChatTokenResponse> GenerateChatTokenAsync(GenerateChatTokenRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Generates a session scoped token for chat widget to authenticate with Session APIs.

Parameters
Name Description
request GenerateChatTokenRequest

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
AsyncUnaryCallGenerateChatTokenResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override WidgetService.WidgetServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
WidgetServiceWidgetServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Ces.V1.WidgetService.WidgetServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)