Class GbpAccountsServiceGrpc.GbpAccountsServiceFutureStub (1.0.0)

public static final class GbpAccountsServiceGrpc.GbpAccountsServiceFutureStub extends AbstractFutureStub<GbpAccountsServiceGrpc.GbpAccountsServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service GbpAccountsService.

The service facilitates the management of a merchant's Google Business Profile (GBP) account settings. This API defines the following resource model:

  • GbpAccount

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > GbpAccountsServiceGrpc.GbpAccountsServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected GbpAccountsServiceGrpc.GbpAccountsServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
GbpAccountsServiceGrpc.GbpAccountsServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

linkGbpAccount(LinkGbpAccountRequest request)

public ListenableFuture<LinkGbpAccountResponse> linkGbpAccount(LinkGbpAccountRequest request)

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}.

Parameter
Name Description
request LinkGbpAccountRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<LinkGbpAccountResponse>

listGbpAccounts(ListGbpAccountsRequest request)

public ListenableFuture<ListGbpAccountsResponse> listGbpAccounts(ListGbpAccountsRequest request)

List the GBP accounts for a given merchant.

Parameter
Name Description
request ListGbpAccountsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListGbpAccountsResponse>