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.WidgetServiceClientNamespace
Google.Cloud.Ces.V1Assembly
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 |
CallInvokerThe callInvoker to use to make remote calls. |
WidgetServiceClient(ChannelBase)
public WidgetServiceClient(ChannelBase channel)Creates a new client for WidgetService
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe 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 |
ClientBaseClientBaseConfigurationThe 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 |
GenerateChatTokenRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GenerateChatTokenRequestThe 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 |
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 |
GenerateChatTokenRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GenerateChatTokenRequestThe 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 |
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 |
|