Class HttpJsonOperationsStub
- java.lang.Object
-
- com.google.api.gax.httpjson.longrunning.stub.OperationsStub
-
- com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
-
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonOperationsStub(OperationsStubSettings settings, ClientContext clientContext)Constructs an instance of HttpJsonOperationsStub, using the given settings.protectedHttpJsonOperationsStub(OperationsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, com.google.protobuf.TypeRegistry typeRegistry)Constructs an instance of HttpJsonOperationsStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonOperationsStub
protected HttpJsonOperationsStub(OperationsStubSettings settings, ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
HttpJsonOperationsStub
protected HttpJsonOperationsStub(OperationsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, com.google.protobuf.TypeRegistry typeRegistry) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonOperationsStub create(OperationsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonOperationsStub create(ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonOperationsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonOperationsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, com.google.protobuf.TypeRegistry typeRegistry) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonOperationsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, com.google.protobuf.TypeRegistry typeRegistry, Map<String,HttpRule> customHttpBindings) throws IOException
- Throws:
IOException
-
getAllMethodDescriptors
@InternalApi public List<ApiMethodDescriptor> getAllMethodDescriptors()
-
getMethodDescriptors
@InternalApi public static List<ApiMethodDescriptor> getMethodDescriptors()
-
listOperationsCallable
public UnaryCallable<ListOperationsRequest,ListOperationsResponse> listOperationsCallable()
- Overrides:
listOperationsCallablein classOperationsStub
-
listOperationsPagedCallable
public UnaryCallable<ListOperationsRequest,OperationsClient.ListOperationsPagedResponse> listOperationsPagedCallable()
- Overrides:
listOperationsPagedCallablein classOperationsStub
-
getOperationCallable
public UnaryCallable<GetOperationRequest,Operation> getOperationCallable()
- Overrides:
getOperationCallablein classOperationsStub
-
deleteOperationCallable
public UnaryCallable<DeleteOperationRequest,com.google.protobuf.Empty> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classOperationsStub
-
cancelOperationCallable
public UnaryCallable<CancelOperationRequest,com.google.protobuf.Empty> cancelOperationCallable()
- Overrides:
cancelOperationCallablein classOperationsStub
-
longRunningClient
public LongRunningClient longRunningClient()
- Overrides:
longRunningClientin classOperationsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classOperationsStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-