public sealed class WidgetServiceClientImpl : WidgetServiceClientReference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class WidgetServiceClientImpl.
WidgetService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Ces.V1Assembly
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 |
WidgetServiceWidgetServiceClientThe underlying gRPC client. |
settings |
WidgetServiceSettingsThe base WidgetServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override WidgetService.WidgetServiceClient GrpcClient { get; }The underlying gRPC WidgetService client
| Property Value | |
|---|---|
| Type | Description |
WidgetServiceWidgetServiceClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
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 |
GenerateChatTokenRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
GenerateChatTokenResponse |
The RPC response. |
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 |
GenerateChatTokenRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskGenerateChatTokenResponse |
A Task containing the RPC response. |