Class GrpcAccountLabelsServiceStub (0.16.0)

public class GrpcAccountLabelsServiceStub extends AccountLabelsServiceStub

gRPC stub implementation for the AccountLabelsService service API.

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

Inheritance

java.lang.Object > AccountLabelsServiceStub > GrpcAccountLabelsServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcAccountLabelsServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcAccountLabelsServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(AccountLabelsServiceStubSettings settings)

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

Constructors

GrpcAccountLabelsServiceStub(AccountLabelsServiceStubSettings settings, ClientContext clientContext)

protected GrpcAccountLabelsServiceStub(AccountLabelsServiceStubSettings settings, ClientContext clientContext)

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

GrpcAccountLabelsServiceStub(AccountLabelsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcAccountLabelsServiceStub(AccountLabelsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

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