Class HttpJsonOperationsStub
- java.lang.Object
-
- com.google.api.gax.httpjson.longrunning.stub.OperationsStub
-
- com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,java.lang.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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonOperationsStub(OperationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonOperationsStub, using the given settings.protectedHttpJsonOperationsStub(OperationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, com.google.protobuf.TypeRegistry typeRegistry)Constructs an instance of HttpJsonOperationsStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, java.util.concurrent.TimeUnit unit)com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.CancelOperationRequest,com.google.protobuf.Empty>cancelOperationCallable()voidclose()static HttpJsonOperationsStubcreate(OperationsStubSettings settings)static HttpJsonOperationsStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonOperationsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)static HttpJsonOperationsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, com.google.protobuf.TypeRegistry typeRegistry)com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.DeleteOperationRequest,com.google.protobuf.Empty>deleteOperationCallable()static java.util.List<ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.GetOperationRequest,com.google.longrunning.Operation>getOperationCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.ListOperationsRequest,com.google.longrunning.ListOperationsResponse>listOperationsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.ListOperationsRequest,OperationsClient.ListOperationsPagedResponse>listOperationsPagedCallable()com.google.api.gax.rpc.LongRunningClientlongRunningClient()voidshutdown()voidshutdownNow()
-
-
-
Constructor Detail
-
HttpJsonOperationsStub
protected HttpJsonOperationsStub(OperationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws java.io.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:
java.io.IOException
-
HttpJsonOperationsStub
protected HttpJsonOperationsStub(OperationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, com.google.protobuf.TypeRegistry typeRegistry) throws java.io.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:
java.io.IOException
-
-
Method Detail
-
create
public static final HttpJsonOperationsStub create(OperationsStubSettings settings) throws java.io.IOException
- Throws:
java.io.IOException
-
create
public static final HttpJsonOperationsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws java.io.IOException
- Throws:
java.io.IOException
-
create
public static final HttpJsonOperationsStub create(com.google.api.gax.rpc.ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws java.io.IOException
- Throws:
java.io.IOException
-
create
public static final HttpJsonOperationsStub create(com.google.api.gax.rpc.ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, com.google.protobuf.TypeRegistry typeRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
getMethodDescriptors
@InternalApi public static java.util.List<ApiMethodDescriptor> getMethodDescriptors()
-
listOperationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.ListOperationsRequest,com.google.longrunning.ListOperationsResponse> listOperationsCallable()
- Overrides:
listOperationsCallablein classOperationsStub
-
listOperationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.ListOperationsRequest,OperationsClient.ListOperationsPagedResponse> listOperationsPagedCallable()
- Overrides:
listOperationsPagedCallablein classOperationsStub
-
getOperationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.GetOperationRequest,com.google.longrunning.Operation> getOperationCallable()
- Overrides:
getOperationCallablein classOperationsStub
-
deleteOperationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.DeleteOperationRequest,com.google.protobuf.Empty> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classOperationsStub
-
cancelOperationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.CancelOperationRequest,com.google.protobuf.Empty> cancelOperationCallable()
- Overrides:
cancelOperationCallablein classOperationsStub
-
longRunningClient
public com.google.api.gax.rpc.LongRunningClient longRunningClient()
- Overrides:
longRunningClientin classOperationsStub
-
close
public final void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- 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, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
-