Show / Hide Table of Contents

Class GbpAccountsService.GbpAccountsServiceClient

Client for GbpAccountsService

Inheritance
object
ClientBase
ClientBase<GbpAccountsService.GbpAccountsServiceClient>
GbpAccountsService.GbpAccountsServiceClient
Inherited Members
ClientBase<GbpAccountsService.GbpAccountsServiceClient>.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 GbpAccountsService.GbpAccountsServiceClient : ClientBase<GbpAccountsService.GbpAccountsServiceClient>

Constructors

GbpAccountsServiceClient()

Protected parameterless constructor to allow creation of test doubles.

Declaration
protected GbpAccountsServiceClient()

GbpAccountsServiceClient(CallInvoker)

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

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

The callInvoker to use to make remote calls.

GbpAccountsServiceClient(ChannelBase)

Creates a new client for GbpAccountsService

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

The channel to use to make remote calls.

GbpAccountsServiceClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

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

The client configuration.

Methods

LinkGbpAccount(LinkGbpAccountRequest, CallOptions)

Link the specified merchant to a GBP account for all countries.

To run this method, you must have admin access to the Merchant Center account. If you don't have admin access, the request fails with the error message User is not an administrator of account {ACCOUNT_ID}.

Declaration
public virtual LinkGbpAccountResponse LinkGbpAccount(LinkGbpAccountRequest request, CallOptions options)
Parameters
Type Name Description
LinkGbpAccountRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
LinkGbpAccountResponse

The response received from the server.

LinkGbpAccount(LinkGbpAccountRequest, Metadata, DateTime?, CancellationToken)

Link the specified merchant to a GBP account for all countries.

To run this method, you must have admin access to the Merchant Center account. If you don't have admin access, the request fails with the error message User is not an administrator of account {ACCOUNT_ID}.

Declaration
public virtual LinkGbpAccountResponse LinkGbpAccount(LinkGbpAccountRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
LinkGbpAccountRequest 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
LinkGbpAccountResponse

The response received from the server.

LinkGbpAccountAsync(LinkGbpAccountRequest, CallOptions)

Link the specified merchant to a GBP account for all countries.

To run this method, you must have admin access to the Merchant Center account. If you don't have admin access, the request fails with the error message User is not an administrator of account {ACCOUNT_ID}.

Declaration
public virtual AsyncUnaryCall<LinkGbpAccountResponse> LinkGbpAccountAsync(LinkGbpAccountRequest request, CallOptions options)
Parameters
Type Name Description
LinkGbpAccountRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<LinkGbpAccountResponse>

The call object.

LinkGbpAccountAsync(LinkGbpAccountRequest, Metadata, DateTime?, CancellationToken)

Link the specified merchant to a GBP account for all countries.

To run this method, you must have admin access to the Merchant Center account. If you don't have admin access, the request fails with the error message User is not an administrator of account {ACCOUNT_ID}.

Declaration
public virtual AsyncUnaryCall<LinkGbpAccountResponse> LinkGbpAccountAsync(LinkGbpAccountRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
LinkGbpAccountRequest 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<LinkGbpAccountResponse>

The call object.

ListGbpAccounts(ListGbpAccountsRequest, CallOptions)

List the GBP accounts for a given merchant.

Declaration
public virtual ListGbpAccountsResponse ListGbpAccounts(ListGbpAccountsRequest request, CallOptions options)
Parameters
Type Name Description
ListGbpAccountsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
ListGbpAccountsResponse

The response received from the server.

ListGbpAccounts(ListGbpAccountsRequest, Metadata, DateTime?, CancellationToken)

List the GBP accounts for a given merchant.

Declaration
public virtual ListGbpAccountsResponse ListGbpAccounts(ListGbpAccountsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListGbpAccountsRequest 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
ListGbpAccountsResponse

The response received from the server.

ListGbpAccountsAsync(ListGbpAccountsRequest, CallOptions)

List the GBP accounts for a given merchant.

Declaration
public virtual AsyncUnaryCall<ListGbpAccountsResponse> ListGbpAccountsAsync(ListGbpAccountsRequest request, CallOptions options)
Parameters
Type Name Description
ListGbpAccountsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<ListGbpAccountsResponse>

The call object.

ListGbpAccountsAsync(ListGbpAccountsRequest, Metadata, DateTime?, CancellationToken)

List the GBP accounts for a given merchant.

Declaration
public virtual AsyncUnaryCall<ListGbpAccountsResponse> ListGbpAccountsAsync(ListGbpAccountsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListGbpAccountsRequest 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<ListGbpAccountsResponse>

The call object.

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

Declaration
protected override GbpAccountsService.GbpAccountsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration
Returns
Type Description
GbpAccountsService.GbpAccountsServiceClient
Overrides
Grpc.Core.ClientBase<Google.Shopping.Merchant.Accounts.V1.GbpAccountsService.GbpAccountsServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)
In this article
Back to top Generated by DocFX