Class RegionsService.RegionsServiceBase
Base class for server-side implementations of RegionsService
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.dll
Syntax
[BindServiceMethod(typeof(RegionsService), "BindService")]
public abstract class RegionsService.RegionsServiceBase
Methods
BatchCreateRegions(BatchCreateRegionsRequest, ServerCallContext)
Creates one or more regions in your Merchant Center account. Executing this method requires admin access.
Declaration
public virtual Task<BatchCreateRegionsResponse> BatchCreateRegions(BatchCreateRegionsRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
BatchCreateRegionsRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<BatchCreateRegionsResponse> | The response to send back to the client (wrapped by a task). |
BatchDeleteRegions(BatchDeleteRegionsRequest, ServerCallContext)
Deletes multiple regions by name from your Merchant Center account. Executing this method requires admin access.
Declaration
public virtual Task<Empty> BatchDeleteRegions(BatchDeleteRegionsRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
BatchDeleteRegionsRequest | 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). |
BatchUpdateRegions(BatchUpdateRegionsRequest, ServerCallContext)
Updates one or more regions in your Merchant Center account. Executing this method requires admin access.
Declaration
public virtual Task<BatchUpdateRegionsResponse> BatchUpdateRegions(BatchUpdateRegionsRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
BatchUpdateRegionsRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<BatchUpdateRegionsResponse> | The response to send back to the client (wrapped by a task). |
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). |