Class HttpJsonOperationsStub (2.33.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

java.lang.Object > OperationsStub > HttpJsonOperationsStub

Static Methods

create(OperationsStubSettings settings)

public static final HttpJsonOperationsStub create(OperationsStubSettings settings)
Parameter
NameDescription
settingsOperationsStubSettings
Returns
TypeDescription
HttpJsonOperationsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, TypeRegistry typeRegistry)

public static final HttpJsonOperationsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, TypeRegistry typeRegistry)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
typeRegistryTypeRegistry
Returns
TypeDescription
HttpJsonOperationsStub
Exceptions
TypeDescription
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
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
typeRegistryTypeRegistry
customHttpBindingsMap<String,HttpRule>
Returns
TypeDescription
HttpJsonOperationsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsOperationsStubSettings
clientContextClientContext

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
NameDescription
settingsOperationsStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
typeRegistryTypeRegistry

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

cancelOperationCallable()

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

close()

public final void close()
Overrides

deleteOperationCallable()

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

getAllMethodDescriptors()

public List<ApiMethodDescriptor> getAllMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

getOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listOperationsCallable()

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

listOperationsPagedCallable()

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

longRunningClient()

public LongRunningClient longRunningClient()
Returns
TypeDescription
LongRunningClient
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()