Class HttpJsonOperationsStub (2.19.2)

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.

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
typeRegistrycom.google.protobuf.TypeRegistry
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
typeRegistrycom.google.protobuf.TypeRegistry

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,com.google.protobuf.Empty>
Overrides

close()

public final void close()
Overrides

deleteOperationCallable()

public UnaryCallable<DeleteOperationRequest,Empty> deleteOperationCallable()
Returns
TypeDescription
UnaryCallable<DeleteOperationRequest,com.google.protobuf.Empty>
Overrides

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()