Discovery Engine v1 API - Class WidgetConfigService.WidgetConfigServiceClient (1.17.0)

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.WidgetConfigServiceClient

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

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 CallInvoker

The callInvoker to use to make remote calls.

WidgetConfigServiceClient(ChannelBase)

public WidgetConfigServiceClient(ChannelBase channel)

Creates a new client for WidgetConfigService

Parameter
Name Description
channel ChannelBase

The 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 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.

GetWidgetConfig(GetWidgetConfigRequest, CallOptions)

public virtual WidgetConfig GetWidgetConfig(GetWidgetConfigRequest request, CallOptions options)

Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].

Parameters
Name Description
request GetWidgetConfigRequest

The request to send to the server.

options CallOptions

The 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 GetWidgetConfigRequest

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
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 GetWidgetConfigRequest

The request to send to the server.

options CallOptions

The 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 GetWidgetConfigRequest

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
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
Overrides
Grpc.Core.ClientBase<Google.Cloud.DiscoveryEngine.V1.WidgetConfigService.WidgetConfigServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateWidgetConfig(UpdateWidgetConfigRequest, CallOptions)

public virtual WidgetConfig UpdateWidgetConfig(UpdateWidgetConfigRequest request, CallOptions options)

Update a WidgetConfig.

Parameters
Name Description
request UpdateWidgetConfigRequest

The request to send to the server.

options CallOptions

The 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 UpdateWidgetConfigRequest

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
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 UpdateWidgetConfigRequest

The request to send to the server.

options CallOptions

The 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 UpdateWidgetConfigRequest

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
AsyncUnaryCallWidgetConfig

The call object.