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
Inherited Members
io.grpc.stub.AbstractFutureStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractFutureStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withOnReadyThreshold(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
protected AccountsServiceGrpc.AccountsServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters |
Name |
Description |
channel |
io.grpc.Channel
|
callOptions |
io.grpc.CallOptions
|
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
public ListenableFuture<Account> createAndConfigureAccount(CreateAndConfigureAccountRequest request)
Creates a standalone Merchant Center account with additional configuration.
Adds the user that makes the request as an admin for the new account.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Account> |
|
public ListenableFuture<Empty> deleteAccount(DeleteAccountRequest request)
Deletes the specified account regardless of its type: standalone, MCA or
sub-account. Deleting an MCA 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.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Empty> |
|
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.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Account> |
|
public ListenableFuture<ListAccountsResponse> listAccounts(ListAccountsRequest request)
Lists accounts accessible to the calling user and matching the
constraints of the request such as page size or filters.
This is not just listing the sub-accounts of an MCA, but all accounts the
calling user has access to including other MCAs, linked accounts,
standalone accounts and so on. If no filter is provided, then it returns
accounts the user is directly added to.
public ListenableFuture<ListSubAccountsResponse> listSubAccounts(ListSubAccountsRequest request)
List all sub-accounts for a given multi client account. This is a
convenience wrapper for the more powerful ListAccounts
method. This
method will produce the same results as calling ListsAccounts
with the
following filter:
relationship(providerId={parent} AND service(type="ACCOUNT_AGGREGATION"))
public ListenableFuture<Account> updateAccount(UpdateAccountRequest request)
Updates an account regardless of its type: standalone, MCA or sub-account.
Executing this method requires admin access.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Account> |
|