Class HttpJsonOperationsStub (2.58.0)

public class HttpJsonOperationsStub extends OperationsStub

REST stub implementation for the Operations service API.

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

Note: This OperationsClient was originally auto-generated by the generator. There has been a few handwritten changes since then and has not been regenerated.

Inheritance

OperationsStub > java.lang.Object > HttpJsonOperationsStub

Static Methods

create(OperationsStubSettings settings)

public static final HttpJsonOperationsStub create(OperationsStubSettings settings)
Parameter
Name Description
settings OperationsStubSettings
Returns
Type Description
HttpJsonOperationsStub
Exceptions
Type Description
IOException

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, TypeRegistry typeRegistry)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, TypeRegistry typeRegistry, Map<String,HttpRule> customHttpBindings)

public static final HttpJsonOperationsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, TypeRegistry typeRegistry, Map<String,HttpRule> customHttpBindings)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
typeRegistry TypeRegistry
customHttpBindings Map<String,HttpRule>
Returns
Type Description
HttpJsonOperationsStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonOperationsStub(OperationsStubSettings settings, ClientContext clientContext)

protected HttpJsonOperationsStub(OperationsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonOperationsStub, 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 OperationsStubSettings
clientContext ClientContext

HttpJsonOperationsStub(OperationsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, TypeRegistry typeRegistry)

protected HttpJsonOperationsStub(OperationsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, TypeRegistry typeRegistry)

Constructs an instance of HttpJsonOperationsStub, 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 OperationsStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
typeRegistry TypeRegistry

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

cancelOperationCallable()

public UnaryCallable<CancelOperationRequest,Empty> cancelOperationCallable()
Returns
Type Description
UnaryCallable<CancelOperationRequest,Empty>
Overrides

close()

public final void close()
Overrides

deleteOperationCallable()

public UnaryCallable<DeleteOperationRequest,Empty> deleteOperationCallable()
Returns
Type Description
UnaryCallable<DeleteOperationRequest,Empty>
Overrides

getAllMethodDescriptors()

public List<ApiMethodDescriptor> getAllMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

getOperationCallable()

public UnaryCallable<GetOperationRequest,Operation> getOperationCallable()
Returns
Type Description
UnaryCallable<GetOperationRequest,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listOperationsCallable()

public UnaryCallable<ListOperationsRequest,ListOperationsResponse> listOperationsCallable()
Returns
Type Description
UnaryCallable<ListOperationsRequest,ListOperationsResponse>
Overrides

listOperationsPagedCallable()

public UnaryCallable<ListOperationsRequest,OperationsClient.ListOperationsPagedResponse> listOperationsPagedCallable()
Returns
Type Description
UnaryCallable<ListOperationsRequest,ListOperationsPagedResponse>
Overrides

longRunningClient()

public LongRunningClient longRunningClient()
Returns
Type Description
LongRunningClient
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()