Class HttpJsonAccountLabelsServiceStub (0.21.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonAccountLabelsServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonAccountLabelsServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonAccountLabelsServiceStub
Exceptions
Type Description
IOException

create(AccountLabelsServiceStubSettings settings)

public static final HttpJsonAccountLabelsServiceStub create(AccountLabelsServiceStubSettings settings)
Parameter
Name Description
settings AccountLabelsServiceStubSettings
Returns
Type Description
HttpJsonAccountLabelsServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings AccountLabelsServiceStubSettings
clientContext ClientContext

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
Name Description
settings AccountLabelsServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createAccountLabelCallable()

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

deleteAccountLabelCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listAccountLabelsCallable()

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

listAccountLabelsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAccountLabelCallable()

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