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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(TagHoldsStubSettings settings)

public static final HttpJsonTagHoldsStub create(TagHoldsStubSettings settings)
Parameter
Name Description
settings TagHoldsStubSettings
Returns
Type Description
HttpJsonTagHoldsStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

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

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

getHttpJsonOperationsStub()

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