Package com.google.longrunning
Class OperationsGrpc
java.lang.Object
com.google.longrunning.OperationsGrpc
Manages long-running operations with an API service. When an API method normally takes long time to complete, it can be designed to return [Operation][google.longrunning.Operation] to the client, and the client can use this interface to receive the real response asynchronously by polling the operation resource, or pass the operation resource to another API (such as Pub/Sub API) to receive the response. Any API service that returns long-running operations should implement the `Operations` interface so developers can have a consistent client experience.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Manages long-running operations with an API service.static final class
A stub to allow clients to do synchronous rpc calls to service Operations.static final class
A stub to allow clients to do ListenableFuture-style rpc calls to service Operations.static class
Base class for the server implementation of the service Operations.static final class
A stub to allow clients to do asynchronous rpc calls to service Operations. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final io.grpc.ServerServiceDefinition
bindService
(OperationsGrpc.AsyncService service) static io.grpc.MethodDescriptor<CancelOperationRequest,
com.google.protobuf.Empty> static io.grpc.MethodDescriptor<DeleteOperationRequest,
com.google.protobuf.Empty> static io.grpc.MethodDescriptor<GetOperationRequest,
Operation> static io.grpc.MethodDescriptor<ListOperationsRequest,
ListOperationsResponse> static io.grpc.ServiceDescriptor
static io.grpc.MethodDescriptor<WaitOperationRequest,
Operation> newBlockingStub
(io.grpc.Channel channel) Creates a new blocking-style stub that supports unary and streaming output calls on the servicenewFutureStub
(io.grpc.Channel channel) Creates a new ListenableFuture-style stub that supports unary calls on the servicenewStub
(io.grpc.Channel channel) Creates a new async stub that supports all call types for the service
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
getListOperationsMethod
public static io.grpc.MethodDescriptor<ListOperationsRequest,ListOperationsResponse> getListOperationsMethod() -
getGetOperationMethod
-
getDeleteOperationMethod
public static io.grpc.MethodDescriptor<DeleteOperationRequest,com.google.protobuf.Empty> getDeleteOperationMethod() -
getCancelOperationMethod
public static io.grpc.MethodDescriptor<CancelOperationRequest,com.google.protobuf.Empty> getCancelOperationMethod() -
getWaitOperationMethod
-
newStub
Creates a new async stub that supports all call types for the service -
newBlockingStub
Creates a new blocking-style stub that supports unary and streaming output calls on the service -
newFutureStub
Creates a new ListenableFuture-style stub that supports unary calls on the service -
bindService
public static final io.grpc.ServerServiceDefinition bindService(OperationsGrpc.AsyncService service) -
getServiceDescriptor
public static io.grpc.ServiceDescriptor getServiceDescriptor()
-