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
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
ConstructorsModifierConstructorDescriptionprotectedHttpJsonOperationsStub(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
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) UnaryCallable<CancelOperationRequest,com.google.protobuf.Empty> final voidclose()static final HttpJsonOperationsStubcreate(OperationsStubSettings settings) static final HttpJsonOperationsStubcreate(ClientContext clientContext) static final HttpJsonOperationsStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonOperationsStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, com.google.protobuf.TypeRegistry typeRegistry) static final HttpJsonOperationsStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, com.google.protobuf.TypeRegistry typeRegistry, Map<String, HttpRule> customHttpBindings) UnaryCallable<DeleteOperationRequest,com.google.protobuf.Empty> static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()void
-
Constructor Details
-
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 Details
-
create
public static final HttpJsonOperationsStub create(OperationsStubSettings settings) throws IOException - Throws:
IOException
-
create
- 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
-
getMethodDescriptors
-
listOperationsCallable
- Overrides:
listOperationsCallablein classOperationsStub
-
listOperationsPagedCallable
public UnaryCallable<ListOperationsRequest,OperationsClient.ListOperationsPagedResponse> listOperationsPagedCallable()- Overrides:
listOperationsPagedCallablein classOperationsStub
-
getOperationCallable
- Overrides:
getOperationCallablein classOperationsStub
-
deleteOperationCallable
- Overrides:
deleteOperationCallablein classOperationsStub
-
cancelOperationCallable
- Overrides:
cancelOperationCallablein classOperationsStub
-
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
- Throws:
InterruptedException
-