Gemini Enterprise for Customer Experience v1 API - Class WidgetServiceClientImpl (1.0.0-beta01)

public sealed class WidgetServiceClientImpl : WidgetServiceClient

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

WidgetService client wrapper implementation, for convenient use.

Inheritance

object > WidgetServiceClient > WidgetServiceClientImpl

Namespace

Google.Cloud.Ces.V1

Assembly

Google.Cloud.Ces.V1.dll

Remarks

Provides APIs for widgets to interact with CES APIs.

Constructors

WidgetServiceClientImpl(WidgetServiceClient, WidgetServiceSettings, ILogger)

public WidgetServiceClientImpl(WidgetService.WidgetServiceClient grpcClient, WidgetServiceSettings settings, ILogger logger)

Constructs a client wrapper for the WidgetService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient WidgetServiceWidgetServiceClient

The underlying gRPC client.

settings WidgetServiceSettings

The base WidgetServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override WidgetService.WidgetServiceClient GrpcClient { get; }

The underlying gRPC WidgetService client

Property Value
Type Description
WidgetServiceWidgetServiceClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

GenerateChatToken(GenerateChatTokenRequest, CallSettings)

public override GenerateChatTokenResponse GenerateChatToken(GenerateChatTokenRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GenerateChatTokenRequest

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
GenerateChatTokenResponse

The RPC response.

Overrides

GenerateChatTokenAsync(GenerateChatTokenRequest, CallSettings)

public override Task<GenerateChatTokenResponse> GenerateChatTokenAsync(GenerateChatTokenRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GenerateChatTokenRequest

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
TaskGenerateChatTokenResponse

A Task containing the RPC response.

Overrides