Class HttpJsonAccountsServiceStub (0.1.0)

public class HttpJsonAccountsServiceStub extends AccountsServiceStub

REST stub implementation for the AccountsService service API.

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

Inheritance

java.lang.Object > AccountsServiceStub > HttpJsonAccountsServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonAccountsServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonAccountsServiceStub
Exceptions
TypeDescription
IOException

create(AccountsServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonAccountsServiceStub(AccountsServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonAccountsServiceStub(AccountsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonAccountsServiceStub, 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

HttpJsonAccountsServiceStub(AccountsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAccountsServiceStub(AccountsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonAccountsServiceStub, 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
callableFactoryHttpJsonStubCallableFactory

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

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