Class RegionsServiceClientImpl
RegionsService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public sealed class RegionsServiceClientImpl : RegionsServiceClient
Remarks
Manages regions configuration.
This API defines the following resource model:
- [Region][google.shopping.merchant.accounts.v1main.Region]
Constructors
RegionsServiceClientImpl(RegionsServiceClient, RegionsServiceSettings, ILogger)
Constructs a client wrapper for the RegionsService service, with the specified gRPC client and settings.
Declaration
public RegionsServiceClientImpl(RegionsService.RegionsServiceClient grpcClient, RegionsServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
RegionsService.RegionsServiceClient | grpcClient | The underlying gRPC client. |
RegionsServiceSettings | settings | The base RegionsServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC RegionsService client
Declaration
public override RegionsService.RegionsServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
RegionsService.RegionsServiceClient |
Overrides
Methods
CreateRegion(CreateRegionRequest, CallSettings)
Creates a region definition in your Merchant Center account. Executing this method requires admin access.
Declaration
public override Region CreateRegion(CreateRegionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateRegionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Region | The RPC response. |
Overrides
CreateRegionAsync(CreateRegionRequest, CallSettings)
Creates a region definition in your Merchant Center account. Executing this method requires admin access.
Declaration
public override Task<Region> CreateRegionAsync(CreateRegionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateRegionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Region> | A Task containing the RPC response. |
Overrides
DeleteRegion(DeleteRegionRequest, CallSettings)
Deletes a region definition from your Merchant Center account. Executing this method requires admin access.
Declaration
public override void DeleteRegion(DeleteRegionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteRegionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Overrides
DeleteRegionAsync(DeleteRegionRequest, CallSettings)
Deletes a region definition from your Merchant Center account. Executing this method requires admin access.
Declaration
public override Task DeleteRegionAsync(DeleteRegionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteRegionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Overrides
GetRegion(GetRegionRequest, CallSettings)
Retrieves a region defined in your Merchant Center account.
Declaration
public override Region GetRegion(GetRegionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetRegionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Region | The RPC response. |
Overrides
GetRegionAsync(GetRegionRequest, CallSettings)
Retrieves a region defined in your Merchant Center account.
Declaration
public override Task<Region> GetRegionAsync(GetRegionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetRegionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Region> | A Task containing the RPC response. |
Overrides
ListRegions(ListRegionsRequest, CallSettings)
Lists the regions in your Merchant Center account.
Declaration
public override PagedEnumerable<ListRegionsResponse, Region> ListRegions(ListRegionsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListRegionsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListRegionsResponse, Region> | A pageable sequence of Region resources. |
Overrides
ListRegionsAsync(ListRegionsRequest, CallSettings)
Lists the regions in your Merchant Center account.
Declaration
public override PagedAsyncEnumerable<ListRegionsResponse, Region> ListRegionsAsync(ListRegionsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListRegionsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListRegionsResponse, Region> | A pageable asynchronous sequence of Region resources. |
Overrides
UpdateRegion(UpdateRegionRequest, CallSettings)
Updates a region definition in your Merchant Center account. Executing this method requires admin access.
Declaration
public override Region UpdateRegion(UpdateRegionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateRegionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Region | The RPC response. |
Overrides
UpdateRegionAsync(UpdateRegionRequest, CallSettings)
Updates a region definition in your Merchant Center account. Executing this method requires admin access.
Declaration
public override Task<Region> UpdateRegionAsync(UpdateRegionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateRegionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Region> | A Task containing the RPC response. |