Show / Hide Table of Contents

Class RegionsService.RegionsServiceClient

Client for RegionsService

Inheritance
object
ClientBase
ClientBase<RegionsService.RegionsServiceClient>
RegionsService.RegionsServiceClient
Inherited Members
ClientBase<RegionsService.RegionsServiceClient>.WithHost(string)
ClientBase.CallInvoker
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.dll
Syntax
public class RegionsService.RegionsServiceClient : ClientBase<RegionsService.RegionsServiceClient>

Constructors

RegionsServiceClient()

Protected parameterless constructor to allow creation of test doubles.

Declaration
protected RegionsServiceClient()

RegionsServiceClient(CallInvoker)

Creates a new client for RegionsService that uses a custom CallInvoker.

Declaration
public RegionsServiceClient(CallInvoker callInvoker)
Parameters
Type Name Description
CallInvoker callInvoker

The callInvoker to use to make remote calls.

RegionsServiceClient(ChannelBase)

Creates a new client for RegionsService

Declaration
public RegionsServiceClient(ChannelBase channel)
Parameters
Type Name Description
ChannelBase channel

The channel to use to make remote calls.

RegionsServiceClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

Declaration
protected RegionsServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration

The client configuration.

Methods

CreateRegion(CreateRegionRequest, CallOptions)

Creates a region definition in your Merchant Center account. Executing this method requires admin access.

Declaration
public virtual Region CreateRegion(CreateRegionRequest request, CallOptions options)
Parameters
Type Name Description
CreateRegionRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Region

The response received from the server.

CreateRegion(CreateRegionRequest, Metadata, DateTime?, CancellationToken)

Creates a region definition in your Merchant Center account. Executing this method requires admin access.

Declaration
public virtual Region CreateRegion(CreateRegionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CreateRegionRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
Region

The response received from the server.

CreateRegionAsync(CreateRegionRequest, CallOptions)

Creates a region definition in your Merchant Center account. Executing this method requires admin access.

Declaration
public virtual AsyncUnaryCall<Region> CreateRegionAsync(CreateRegionRequest request, CallOptions options)
Parameters
Type Name Description
CreateRegionRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Region>

The call object.

CreateRegionAsync(CreateRegionRequest, Metadata, DateTime?, CancellationToken)

Creates a region definition in your Merchant Center account. Executing this method requires admin access.

Declaration
public virtual AsyncUnaryCall<Region> CreateRegionAsync(CreateRegionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CreateRegionRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<Region>

The call object.

DeleteRegion(DeleteRegionRequest, CallOptions)

Deletes a region definition from your Merchant Center account. Executing this method requires admin access.

Declaration
public virtual Empty DeleteRegion(DeleteRegionRequest request, CallOptions options)
Parameters
Type Name Description
DeleteRegionRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteRegion(DeleteRegionRequest, Metadata, DateTime?, CancellationToken)

Deletes a region definition from your Merchant Center account. Executing this method requires admin access.

Declaration
public virtual Empty DeleteRegion(DeleteRegionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
DeleteRegionRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteRegionAsync(DeleteRegionRequest, CallOptions)

Deletes a region definition from your Merchant Center account. Executing this method requires admin access.

Declaration
public virtual AsyncUnaryCall<Empty> DeleteRegionAsync(DeleteRegionRequest request, CallOptions options)
Parameters
Type Name Description
DeleteRegionRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Empty>

The call object.

DeleteRegionAsync(DeleteRegionRequest, Metadata, DateTime?, CancellationToken)

Deletes a region definition from your Merchant Center account. Executing this method requires admin access.

Declaration
public virtual AsyncUnaryCall<Empty> DeleteRegionAsync(DeleteRegionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
DeleteRegionRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<Empty>

The call object.

GetRegion(GetRegionRequest, CallOptions)

Retrieves a region defined in your Merchant Center account.

Declaration
public virtual Region GetRegion(GetRegionRequest request, CallOptions options)
Parameters
Type Name Description
GetRegionRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Region

The response received from the server.

GetRegion(GetRegionRequest, Metadata, DateTime?, CancellationToken)

Retrieves a region defined in your Merchant Center account.

Declaration
public virtual Region GetRegion(GetRegionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetRegionRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
Region

The response received from the server.

GetRegionAsync(GetRegionRequest, CallOptions)

Retrieves a region defined in your Merchant Center account.

Declaration
public virtual AsyncUnaryCall<Region> GetRegionAsync(GetRegionRequest request, CallOptions options)
Parameters
Type Name Description
GetRegionRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Region>

The call object.

GetRegionAsync(GetRegionRequest, Metadata, DateTime?, CancellationToken)

Retrieves a region defined in your Merchant Center account.

Declaration
public virtual AsyncUnaryCall<Region> GetRegionAsync(GetRegionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetRegionRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<Region>

The call object.

ListRegions(ListRegionsRequest, CallOptions)

Lists the regions in your Merchant Center account.

Declaration
public virtual ListRegionsResponse ListRegions(ListRegionsRequest request, CallOptions options)
Parameters
Type Name Description
ListRegionsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
ListRegionsResponse

The response received from the server.

ListRegions(ListRegionsRequest, Metadata, DateTime?, CancellationToken)

Lists the regions in your Merchant Center account.

Declaration
public virtual ListRegionsResponse ListRegions(ListRegionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListRegionsRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
ListRegionsResponse

The response received from the server.

ListRegionsAsync(ListRegionsRequest, CallOptions)

Lists the regions in your Merchant Center account.

Declaration
public virtual AsyncUnaryCall<ListRegionsResponse> ListRegionsAsync(ListRegionsRequest request, CallOptions options)
Parameters
Type Name Description
ListRegionsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<ListRegionsResponse>

The call object.

ListRegionsAsync(ListRegionsRequest, Metadata, DateTime?, CancellationToken)

Lists the regions in your Merchant Center account.

Declaration
public virtual AsyncUnaryCall<ListRegionsResponse> ListRegionsAsync(ListRegionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListRegionsRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<ListRegionsResponse>

The call object.

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

Declaration
protected override RegionsService.RegionsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration
Returns
Type Description
RegionsService.RegionsServiceClient
Overrides
Grpc.Core.ClientBase<Google.Shopping.Merchant.Accounts.V1.RegionsService.RegionsServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateRegion(UpdateRegionRequest, CallOptions)

Updates a region definition in your Merchant Center account. Executing this method requires admin access.

Declaration
public virtual Region UpdateRegion(UpdateRegionRequest request, CallOptions options)
Parameters
Type Name Description
UpdateRegionRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Region

The response received from the server.

UpdateRegion(UpdateRegionRequest, Metadata, DateTime?, CancellationToken)

Updates a region definition in your Merchant Center account. Executing this method requires admin access.

Declaration
public virtual Region UpdateRegion(UpdateRegionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
UpdateRegionRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
Region

The response received from the server.

UpdateRegionAsync(UpdateRegionRequest, CallOptions)

Updates a region definition in your Merchant Center account. Executing this method requires admin access.

Declaration
public virtual AsyncUnaryCall<Region> UpdateRegionAsync(UpdateRegionRequest request, CallOptions options)
Parameters
Type Name Description
UpdateRegionRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Region>

The call object.

UpdateRegionAsync(UpdateRegionRequest, Metadata, DateTime?, CancellationToken)

Updates a region definition in your Merchant Center account. Executing this method requires admin access.

Declaration
public virtual AsyncUnaryCall<Region> UpdateRegionAsync(UpdateRegionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
UpdateRegionRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<Region>

The call object.

In this article
Back to top Generated by DocFX