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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(TagHoldsStubSettings settings)

public static final GrpcTagHoldsStub create(TagHoldsStubSettings settings)
Parameter
Name Description
settings TagHoldsStubSettings
Returns
Type Description
GrpcTagHoldsStub
Exceptions
Type Description
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
Name Description
settings TagHoldsStubSettings
clientContext ClientContext

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
Name Description
settings TagHoldsStubSettings
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

createTagHoldCallable()

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

createTagHoldOperationCallable()

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

deleteTagHoldCallable()

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

deleteTagHoldOperationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listTagHoldsCallable()

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

listTagHoldsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()