[BindServiceMethod(typeof(ControlService), "BindService")]
public abstract class ControlService.ControlServiceBaseReference documentation and code samples for the Retail v2 API class ControlService.ControlServiceBase.
Base class for server-side implementations of ControlService
Namespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Methods
CreateControl(CreateControlRequest, ServerCallContext)
public virtual Task<Control> CreateControl(CreateControlRequest request, ServerCallContext context)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 received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskControl |
The response to send back to the client (wrapped by a task). |
DeleteControl(DeleteControlRequest, ServerCallContext)
public virtual Task<Empty> DeleteControl(DeleteControlRequest request, ServerCallContext context)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 received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskEmpty |
The response to send back to the client (wrapped by a task). |
GetControl(GetControlRequest, ServerCallContext)
public virtual Task<Control> GetControl(GetControlRequest request, ServerCallContext context)Gets a Control.
| Parameters | |
|---|---|
| Name | Description |
request |
GetControlRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskControl |
The response to send back to the client (wrapped by a task). |
ListControls(ListControlsRequest, ServerCallContext)
public virtual Task<ListControlsResponse> ListControls(ListControlsRequest request, ServerCallContext context)Lists all Controls by their parent [Catalog][google.cloud.retail.v2.Catalog].
| Parameters | |
|---|---|
| Name | Description |
request |
ListControlsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListControlsResponse |
The response to send back to the client (wrapped by a task). |
UpdateControl(UpdateControlRequest, ServerCallContext)
public virtual Task<Control> UpdateControl(UpdateControlRequest request, ServerCallContext context)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 received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskControl |
The response to send back to the client (wrapped by a task). |