Class HttpJsonAccountLabelsServiceStub (0.4.0)

public class HttpJsonAccountLabelsServiceStub extends AccountLabelsServiceStub

REST stub implementation for the AccountLabelsService service API.

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

Inheritance

java.lang.Object > AccountLabelsServiceStub > HttpJsonAccountLabelsServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(AccountLabelsServiceStubSettings settings)

public static final HttpJsonAccountLabelsServiceStub create(AccountLabelsServiceStubSettings settings)
Parameter
NameDescription
settingsAccountLabelsServiceStubSettings
Returns
TypeDescription
HttpJsonAccountLabelsServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonAccountLabelsServiceStub(AccountLabelsServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonAccountLabelsServiceStub(AccountLabelsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonAccountLabelsServiceStub, 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
settingsAccountLabelsServiceStubSettings
clientContextClientContext

HttpJsonAccountLabelsServiceStub(AccountLabelsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAccountLabelsServiceStub(AccountLabelsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

createAccountLabelCallable()

public UnaryCallable<CreateAccountLabelRequest,AccountLabel> createAccountLabelCallable()
Returns
TypeDescription
UnaryCallable<CreateAccountLabelRequest,AccountLabel>
Overrides

deleteAccountLabelCallable()

public UnaryCallable<DeleteAccountLabelRequest,Empty> deleteAccountLabelCallable()
Returns
TypeDescription
UnaryCallable<DeleteAccountLabelRequest,Empty>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listAccountLabelsCallable()

public UnaryCallable<ListAccountLabelsRequest,ListAccountLabelsResponse> listAccountLabelsCallable()
Returns
TypeDescription
UnaryCallable<ListAccountLabelsRequest,ListAccountLabelsResponse>
Overrides

listAccountLabelsPagedCallable()

public UnaryCallable<ListAccountLabelsRequest,AccountLabelsServiceClient.ListAccountLabelsPagedResponse> listAccountLabelsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListAccountLabelsRequest,ListAccountLabelsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAccountLabelCallable()

public UnaryCallable<UpdateAccountLabelRequest,AccountLabel> updateAccountLabelCallable()
Returns
TypeDescription
UnaryCallable<UpdateAccountLabelRequest,AccountLabel>
Overrides