Class AccountsServiceGrpc.AccountsServiceFutureStub (1.0.0)

public static final class AccountsServiceGrpc.AccountsServiceFutureStub extends AbstractFutureStub<AccountsServiceGrpc.AccountsServiceFutureStub>

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

Service to support Accounts API.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > AccountsServiceGrpc.AccountsServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

createAndConfigureAccount(CreateAndConfigureAccountRequest request)

public ListenableFuture<Account> createAndConfigureAccount(CreateAndConfigureAccountRequest request)

Creates a Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.

Parameter
Name Description
request CreateAndConfigureAccountRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Account>

deleteAccount(DeleteAccountRequest request)

public ListenableFuture<Empty> deleteAccount(DeleteAccountRequest request)

Deletes the specified account regardless of its type: standalone, advanced account or sub-account. Deleting an advanced account leads to the deletion of all of its sub-accounts. Executing this method requires admin access. The deletion succeeds only if the account does not provide services to any other account and has no processed offers. You can use the force parameter to override this.

Parameter
Name Description
request DeleteAccountRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

getAccount(GetAccountRequest request)

public ListenableFuture<Account> getAccount(GetAccountRequest request)

Retrieves an account from your Merchant Center account. After inserting, updating, or deleting an account, it may take several minutes before changes take effect.

Parameter
Name Description
request GetAccountRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Account>

listAccounts(ListAccountsRequest request)

public ListenableFuture<ListAccountsResponse> listAccounts(ListAccountsRequest request)

Note: For the accounts.list method, quota and limits usage are charged for each user, and not for the Merchant Center ID or the advanced account ID. To list several sub-accounts, you should use the accounts.listSubaccounts method, which is more suitable for advanced accounts use case.

Parameter
Name Description
request ListAccountsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListAccountsResponse>

listSubAccounts(ListSubAccountsRequest request)

public ListenableFuture<ListSubAccountsResponse> listSubAccounts(ListSubAccountsRequest request)

List all sub-accounts for a given advanced account. This is a convenience wrapper for the more powerful accounts.list method. This method will produce the same results as calling ListsAccounts with the following filter: relationship(providerId={parent} AND service(type="ACCOUNT_AGGREGATION"))

Parameter
Name Description
request ListSubAccountsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListSubAccountsResponse>

updateAccount(UpdateAccountRequest request)

public ListenableFuture<Account> updateAccount(UpdateAccountRequest request)

Updates an account regardless of its type: standalone, advanced account or sub-account. Executing this method requires admin access.

Parameter
Name Description
request UpdateAccountRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Account>