Class HttpJsonTagHoldsStub (1.21.0)

public class HttpJsonTagHoldsStub extends TagHoldsStub

REST stub implementation for the TagHolds service API.

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

Inheritance

java.lang.Object > TagHoldsStub > HttpJsonTagHoldsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(TagHoldsStubSettings settings)

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

getMethodDescriptors()

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

Constructors

HttpJsonTagHoldsStub(TagHoldsStubSettings settings, ClientContext clientContext)

protected HttpJsonTagHoldsStub(TagHoldsStubSettings settings, ClientContext clientContext)

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

HttpJsonTagHoldsStub(TagHoldsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonTagHoldsStub(TagHoldsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
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()