Class RegionsService.RegionsServiceBase
Base class for server-side implementations of RegionsService
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
[BindServiceMethod(typeof(RegionsService), "BindService")]
public abstract class RegionsService.RegionsServiceBase
Methods
CreateRegion(CreateRegionRequest, ServerCallContext)
Creates a region definition in your Merchant Center account. Executing this method requires admin access.
Declaration
public virtual Task<Region> CreateRegion(CreateRegionRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateRegionRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Region> | The response to send back to the client (wrapped by a task). |
DeleteRegion(DeleteRegionRequest, ServerCallContext)
Deletes a region definition from your Merchant Center account. Executing this method requires admin access.
Declaration
public virtual Task<Empty> DeleteRegion(DeleteRegionRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteRegionRequest | request | The request received from the client. |
| ServerCallContext | context | 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). |
GetRegion(GetRegionRequest, ServerCallContext)
Retrieves a region defined in your Merchant Center account.
Declaration
public virtual Task<Region> GetRegion(GetRegionRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| GetRegionRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Region> | The response to send back to the client (wrapped by a task). |
ListRegions(ListRegionsRequest, ServerCallContext)
Lists the regions in your Merchant Center account.
Declaration
public virtual Task<ListRegionsResponse> ListRegions(ListRegionsRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ListRegionsRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<ListRegionsResponse> | The response to send back to the client (wrapped by a task). |
UpdateRegion(UpdateRegionRequest, ServerCallContext)
Updates a region definition in your Merchant Center account. Executing this method requires admin access.
Declaration
public virtual Task<Region> UpdateRegion(UpdateRegionRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateRegionRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Region> | The response to send back to the client (wrapped by a task). |