@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class HttpJsonOperationsStub extends OperationsStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
HttpJsonOperationsStub(OperationsStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonOperationsStub, using the given settings.
|
protected |
HttpJsonOperationsStub(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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.CancelOperationRequest,com.google.protobuf.Empty> |
cancelOperationCallable() |
void |
close() |
static HttpJsonOperationsStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static HttpJsonOperationsStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
HttpJsonStubCallableFactory callableFactory) |
static HttpJsonOperationsStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
HttpJsonStubCallableFactory callableFactory,
com.google.protobuf.TypeRegistry typeRegistry) |
static HttpJsonOperationsStub |
create(OperationsStubSettings settings) |
com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.DeleteOperationRequest,com.google.protobuf.Empty> |
deleteOperationCallable() |
static List<ApiMethodDescriptor> |
getMethodDescriptors() |
com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.GetOperationRequest,com.google.longrunning.Operation> |
getOperationCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
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.LongRunningClient |
longRunningClient() |
void |
shutdown() |
void |
shutdownNow() |
protected HttpJsonOperationsStub(OperationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected HttpJsonOperationsStub(OperationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, com.google.protobuf.TypeRegistry typeRegistry) throws IOException
IOExceptionpublic static final HttpJsonOperationsStub create(OperationsStubSettings settings) throws IOException
IOExceptionpublic static final HttpJsonOperationsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final HttpJsonOperationsStub create(com.google.api.gax.rpc.ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final HttpJsonOperationsStub create(com.google.api.gax.rpc.ClientContext clientContext, HttpJsonStubCallableFactory callableFactory, com.google.protobuf.TypeRegistry typeRegistry) throws IOException
IOException@InternalApi public static List<ApiMethodDescriptor> getMethodDescriptors()
public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.ListOperationsRequest,com.google.longrunning.ListOperationsResponse> listOperationsCallable()
listOperationsCallable in class OperationsStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.ListOperationsRequest,OperationsClient.ListOperationsPagedResponse> listOperationsPagedCallable()
listOperationsPagedCallable in class OperationsStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.GetOperationRequest,com.google.longrunning.Operation> getOperationCallable()
getOperationCallable in class OperationsStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.DeleteOperationRequest,com.google.protobuf.Empty> deleteOperationCallable()
deleteOperationCallable in class OperationsStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.CancelOperationRequest,com.google.protobuf.Empty> cancelOperationCallable()
cancelOperationCallable in class OperationsStubpublic com.google.api.gax.rpc.LongRunningClient longRunningClient()
longRunningClient in class OperationsStubpublic final void close()
close in interface AutoCloseableclose in class OperationsStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedException