Class GrpcTagHoldsStub (1.21.0)

public class GrpcTagHoldsStub extends TagHoldsStub

gRPC stub implementation for the TagHolds service API.

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

Inheritance

java.lang.Object > TagHoldsStub > GrpcTagHoldsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(TagHoldsStubSettings settings)

public static final GrpcTagHoldsStub create(TagHoldsStubSettings settings)
Parameter
NameDescription
settingsTagHoldsStubSettings
Returns
TypeDescription
GrpcTagHoldsStub
Exceptions
TypeDescription
IOException

Constructors

GrpcTagHoldsStub(TagHoldsStubSettings settings, ClientContext clientContext)

protected GrpcTagHoldsStub(TagHoldsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcTagHoldsStub, 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
settingsTagHoldsStubSettings
clientContextClientContext

GrpcTagHoldsStub(TagHoldsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcTagHoldsStub(TagHoldsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

createTagHoldCallable()

public UnaryCallable<CreateTagHoldRequest,Operation> createTagHoldCallable()
Returns
TypeDescription
UnaryCallable<CreateTagHoldRequest,Operation>
Overrides

createTagHoldOperationCallable()

public OperationCallable<CreateTagHoldRequest,TagHold,CreateTagHoldMetadata> createTagHoldOperationCallable()
Returns
TypeDescription
OperationCallable<CreateTagHoldRequest,TagHold,CreateTagHoldMetadata>
Overrides

deleteTagHoldCallable()

public UnaryCallable<DeleteTagHoldRequest,Operation> deleteTagHoldCallable()
Returns
TypeDescription
UnaryCallable<DeleteTagHoldRequest,Operation>
Overrides

deleteTagHoldOperationCallable()

public OperationCallable<DeleteTagHoldRequest,Empty,DeleteTagHoldMetadata> deleteTagHoldOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteTagHoldRequest,Empty,DeleteTagHoldMetadata>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listTagHoldsCallable()

public UnaryCallable<ListTagHoldsRequest,ListTagHoldsResponse> listTagHoldsCallable()
Returns
TypeDescription
UnaryCallable<ListTagHoldsRequest,ListTagHoldsResponse>
Overrides

listTagHoldsPagedCallable()

public UnaryCallable<ListTagHoldsRequest,TagHoldsClient.ListTagHoldsPagedResponse> listTagHoldsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListTagHoldsRequest,ListTagHoldsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()