public sealed class ControlServiceClientImpl : ControlServiceClientControlService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Remarks
Service for modifying Control.
Constructors
ControlServiceClientImpl(ControlService.ControlServiceClient, ControlServiceSettings, ILogger)
public ControlServiceClientImpl(ControlService.ControlServiceClient grpcClient, ControlServiceSettings settings, ILogger logger)Constructs a client wrapper for the ControlService service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
ControlService.ControlServiceClientThe underlying gRPC client. |
settings |
ControlServiceSettingsThe base ControlServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override ControlService.ControlServiceClient GrpcClient { get; }The underlying gRPC ControlService client
| Property Value | |
|---|---|
| Type | Description |
ControlService.ControlServiceClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
CreateControl(CreateControlRequest, CallSettings)
public override Control CreateControl(CreateControlRequest request, CallSettings callSettings = null)Creates a Control.
If the [Control][google.cloud.retail.v2.Control] to create already exists, an ALREADY_EXISTS error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Control |
The RPC response. |
CreateControlAsync(CreateControlRequest, CallSettings)
public override Task<Control> CreateControlAsync(CreateControlRequest request, CallSettings callSettings = null)Creates a Control.
If the [Control][google.cloud.retail.v2.Control] to create already exists, an ALREADY_EXISTS error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Control> |
A Task containing the RPC response. |
DeleteControl(DeleteControlRequest, CallSettings)
public override void DeleteControl(DeleteControlRequest request, CallSettings callSettings = null)Deletes a Control.
If the [Control][google.cloud.retail.v2.Control] to delete does not exist, a NOT_FOUND error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
DeleteControlAsync(DeleteControlRequest, CallSettings)
public override Task DeleteControlAsync(DeleteControlRequest request, CallSettings callSettings = null)Deletes a Control.
If the [Control][google.cloud.retail.v2.Control] to delete does not exist, a NOT_FOUND error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
GetControl(GetControlRequest, CallSettings)
public override Control GetControl(GetControlRequest request, CallSettings callSettings = null)Gets a Control.
| Parameters | |
|---|---|
| Name | Description |
request |
GetControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Control |
The RPC response. |
GetControlAsync(GetControlRequest, CallSettings)
public override Task<Control> GetControlAsync(GetControlRequest request, CallSettings callSettings = null)Gets a Control.
| Parameters | |
|---|---|
| Name | Description |
request |
GetControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Control> |
A Task containing the RPC response. |
ListControls(ListControlsRequest, CallSettings)
public override PagedEnumerable<ListControlsResponse, Control> ListControls(ListControlsRequest request, CallSettings callSettings = null)Lists all Controls by their parent [Catalog][google.cloud.retail.v2.Catalog].
| Parameters | |
|---|---|
| Name | Description |
request |
ListControlsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<ListControlsResponse, Control> |
A pageable sequence of Control resources. |
ListControlsAsync(ListControlsRequest, CallSettings)
public override PagedAsyncEnumerable<ListControlsResponse, Control> ListControlsAsync(ListControlsRequest request, CallSettings callSettings = null)Lists all Controls by their parent [Catalog][google.cloud.retail.v2.Catalog].
| Parameters | |
|---|---|
| Name | Description |
request |
ListControlsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<ListControlsResponse, Control> |
A pageable asynchronous sequence of Control resources. |
UpdateControl(UpdateControlRequest, CallSettings)
public override Control UpdateControl(UpdateControlRequest request, CallSettings callSettings = null)Updates a Control.
[Control][google.cloud.retail.v2.Control] cannot be set to a different oneof field, if so an INVALID_ARGUMENT is returned. If the [Control][google.cloud.retail.v2.Control] to update does not exist, a NOT_FOUND error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Control |
The RPC response. |
UpdateControlAsync(UpdateControlRequest, CallSettings)
public override Task<Control> UpdateControlAsync(UpdateControlRequest request, CallSettings callSettings = null)Updates a Control.
[Control][google.cloud.retail.v2.Control] cannot be set to a different oneof field, if so an INVALID_ARGUMENT is returned. If the [Control][google.cloud.retail.v2.Control] to update does not exist, a NOT_FOUND error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Control> |
A Task containing the RPC response. |