public class WidgetConfigService.WidgetConfigServiceClient : ClientBase<WidgetConfigService.WidgetConfigServiceClient>Reference documentation and code samples for the Discovery Engine v1 API class WidgetConfigService.WidgetConfigServiceClient.
Client for WidgetConfigService
Inheritance
object > ClientBase > ClientBaseWidgetConfigServiceWidgetConfigServiceClient > WidgetConfigService.WidgetConfigServiceClientNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
WidgetConfigServiceClient()
protected WidgetConfigServiceClient()Protected parameterless constructor to allow creation of test doubles.
WidgetConfigServiceClient(CallInvoker)
public WidgetConfigServiceClient(CallInvoker callInvoker)Creates a new client for WidgetConfigService that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
WidgetConfigServiceClient(ChannelBase)
public WidgetConfigServiceClient(ChannelBase channel)Creates a new client for WidgetConfigService
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
WidgetConfigServiceClient(ClientBaseConfiguration)
protected WidgetConfigServiceClient(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. |
GetWidgetConfig(GetWidgetConfigRequest, CallOptions)
public virtual WidgetConfig GetWidgetConfig(GetWidgetConfigRequest request, CallOptions options)Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
| Parameters | |
|---|---|
| Name | Description |
request |
GetWidgetConfigRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig |
The response received from the server. |
GetWidgetConfig(GetWidgetConfigRequest, Metadata, DateTime?, CancellationToken)
public virtual WidgetConfig GetWidgetConfig(GetWidgetConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
| Parameters | |
|---|---|
| Name | Description |
request |
GetWidgetConfigRequestThe 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 |
WidgetConfig |
The response received from the server. |
GetWidgetConfigAsync(GetWidgetConfigRequest, CallOptions)
public virtual AsyncUnaryCall<WidgetConfig> GetWidgetConfigAsync(GetWidgetConfigRequest request, CallOptions options)Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
| Parameters | |
|---|---|
| Name | Description |
request |
GetWidgetConfigRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallWidgetConfig |
The call object. |
GetWidgetConfigAsync(GetWidgetConfigRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<WidgetConfig> GetWidgetConfigAsync(GetWidgetConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
| Parameters | |
|---|---|
| Name | Description |
request |
GetWidgetConfigRequestThe 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 |
AsyncUnaryCallWidgetConfig |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override WidgetConfigService.WidgetConfigServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
WidgetConfigServiceWidgetConfigServiceClient |
|
UpdateWidgetConfig(UpdateWidgetConfigRequest, CallOptions)
public virtual WidgetConfig UpdateWidgetConfig(UpdateWidgetConfigRequest request, CallOptions options)Update a WidgetConfig.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateWidgetConfigRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig |
The response received from the server. |
UpdateWidgetConfig(UpdateWidgetConfigRequest, Metadata, DateTime?, CancellationToken)
public virtual WidgetConfig UpdateWidgetConfig(UpdateWidgetConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Update a WidgetConfig.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateWidgetConfigRequestThe 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 |
WidgetConfig |
The response received from the server. |
UpdateWidgetConfigAsync(UpdateWidgetConfigRequest, CallOptions)
public virtual AsyncUnaryCall<WidgetConfig> UpdateWidgetConfigAsync(UpdateWidgetConfigRequest request, CallOptions options)Update a WidgetConfig.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateWidgetConfigRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCallWidgetConfig |
The call object. |
UpdateWidgetConfigAsync(UpdateWidgetConfigRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<WidgetConfig> UpdateWidgetConfigAsync(UpdateWidgetConfigRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Update a WidgetConfig.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateWidgetConfigRequestThe 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 |
AsyncUnaryCallWidgetConfig |
The call object. |