Class GrpcAccountsServiceStub (0.9.0)

public class GrpcAccountsServiceStub extends AccountsServiceStub

gRPC stub implementation for the AccountsService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > AccountsServiceStub > GrpcAccountsServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcAccountsServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcAccountsServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcAccountsServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcAccountsServiceStub
Exceptions
TypeDescription
IOException

create(AccountsServiceStubSettings settings)

public static final GrpcAccountsServiceStub create(AccountsServiceStubSettings settings)
Parameter
NameDescription
settingsAccountsServiceStubSettings
Returns
TypeDescription
GrpcAccountsServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcAccountsServiceStub(AccountsServiceStubSettings settings, ClientContext clientContext)

protected GrpcAccountsServiceStub(AccountsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcAccountsServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsAccountsServiceStubSettings
clientContextClientContext

GrpcAccountsServiceStub(AccountsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcAccountsServiceStub(AccountsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcAccountsServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsAccountsServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

getAccountCallable()

public UnaryCallable<GetAccountRequest,Account> getAccountCallable()
Returns
TypeDescription
UnaryCallable<GetAccountRequest,Account>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listChildAccountsCallable()

public UnaryCallable<ListChildAccountsRequest,ListChildAccountsResponse> listChildAccountsCallable()
Returns
TypeDescription
UnaryCallable<ListChildAccountsRequest,ListChildAccountsResponse>
Overrides

listChildAccountsPagedCallable()

public UnaryCallable<ListChildAccountsRequest,AccountsServiceClient.ListChildAccountsPagedResponse> listChildAccountsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListChildAccountsRequest,ListChildAccountsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateLabelsCallable()

public UnaryCallable<UpdateAccountLabelsRequest,Account> updateLabelsCallable()
Returns
TypeDescription
UnaryCallable<UpdateAccountLabelsRequest,Account>
Overrides