[BindServiceMethod(typeof(ControlService), "BindService")]
public abstract class ControlServiceBase
Reference 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 | CreateControlRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Control> | 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 | DeleteControlRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Empty> | 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 | GetControlRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Control> | 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 | ListControlsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ListControlsResponse> | 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 | UpdateControlRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Control> | The response to send back to the client (wrapped by a task). |