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 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class OperationsGrpc (2.60.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.60.0 (latest)](/java/docs/reference/proto-google-common-protos/latest/com.google.longrunning.OperationsGrpc)\n- [2.59.2](/java/docs/reference/proto-google-common-protos/2.59.2/com.google.longrunning.OperationsGrpc)\n- [2.58.0](/java/docs/reference/proto-google-common-protos/2.58.0/com.google.longrunning.OperationsGrpc)\n- [2.57.0](/java/docs/reference/proto-google-common-protos/2.57.0/com.google.longrunning.OperationsGrpc)\n- [2.56.0](/java/docs/reference/proto-google-common-protos/2.56.0/com.google.longrunning.OperationsGrpc)\n- [2.54.1](/java/docs/reference/proto-google-common-protos/2.54.1/com.google.longrunning.OperationsGrpc)\n- [2.53.0](/java/docs/reference/proto-google-common-protos/2.53.0/com.google.longrunning.OperationsGrpc)\n- [2.52.0](/java/docs/reference/proto-google-common-protos/2.52.0/com.google.longrunning.OperationsGrpc)\n- [2.51.0](/java/docs/reference/proto-google-common-protos/2.51.0/com.google.longrunning.OperationsGrpc)\n- [2.50.1](/java/docs/reference/proto-google-common-protos/2.50.1/com.google.longrunning.OperationsGrpc)\n- [2.49.0](/java/docs/reference/proto-google-common-protos/2.49.0/com.google.longrunning.OperationsGrpc)\n- [2.48.0](/java/docs/reference/proto-google-common-protos/2.48.0/com.google.longrunning.OperationsGrpc)\n- [2.46.0](/java/docs/reference/proto-google-common-protos/2.46.0/com.google.longrunning.OperationsGrpc)\n- [2.45.1](/java/docs/reference/proto-google-common-protos/2.45.1/com.google.longrunning.OperationsGrpc)\n- [2.44.0](/java/docs/reference/proto-google-common-protos/2.44.0/com.google.longrunning.OperationsGrpc)\n- [2.43.0](/java/docs/reference/proto-google-common-protos/2.43.0/com.google.longrunning.OperationsGrpc)\n- [2.42.0](/java/docs/reference/proto-google-common-protos/2.42.0/com.google.longrunning.OperationsGrpc)\n- [2.41.0](/java/docs/reference/proto-google-common-protos/2.41.0/com.google.longrunning.OperationsGrpc)\n- [2.40.0](/java/docs/reference/proto-google-common-protos/2.40.0/com.google.longrunning.OperationsGrpc)\n- [2.39.1](/java/docs/reference/proto-google-common-protos/2.39.1/com.google.longrunning.OperationsGrpc)\n- [2.38.0](/java/docs/reference/proto-google-common-protos/2.38.0/com.google.longrunning.OperationsGrpc)\n- [2.37.1](/java/docs/reference/proto-google-common-protos/2.37.1/com.google.longrunning.OperationsGrpc)\n- [2.36.0](/java/docs/reference/proto-google-common-protos/2.36.0/com.google.longrunning.OperationsGrpc)\n- [2.34.0](/java/docs/reference/proto-google-common-protos/2.34.0/com.google.longrunning.OperationsGrpc)\n- [2.33.0](/java/docs/reference/proto-google-common-protos/2.33.0/com.google.longrunning.OperationsGrpc)\n- [2.32.0](/java/docs/reference/proto-google-common-protos/2.32.0/com.google.longrunning.OperationsGrpc)\n- [2.30.0](/java/docs/reference/proto-google-common-protos/2.30.0/com.google.longrunning.OperationsGrpc)\n- [2.29.0](/java/docs/reference/proto-google-common-protos/2.29.0/com.google.longrunning.OperationsGrpc)\n- [2.28.0](/java/docs/reference/proto-google-common-protos/2.28.0/com.google.longrunning.OperationsGrpc)\n- [2.27.0](/java/docs/reference/proto-google-common-protos/2.27.0/com.google.longrunning.OperationsGrpc)\n- [2.26.0](/java/docs/reference/proto-google-common-protos/2.26.0/com.google.longrunning.OperationsGrpc)\n- [2.25.1](/java/docs/reference/proto-google-common-protos/2.25.1/com.google.longrunning.OperationsGrpc)\n- [2.24.0](/java/docs/reference/proto-google-common-protos/2.24.0/com.google.longrunning.OperationsGrpc)\n- [2.23.1](/java/docs/reference/proto-google-common-protos/2.23.1/com.google.longrunning.OperationsGrpc)\n- [2.22.1](/java/docs/reference/proto-google-common-protos/2.22.1/com.google.longrunning.OperationsGrpc)\n- [2.21.1](/java/docs/reference/proto-google-common-protos/2.21.1/com.google.longrunning.OperationsGrpc)\n- [2.15.0](/java/docs/reference/proto-google-common-protos/2.15.0/com.google.longrunning.OperationsGrpc)\n- [2.14.3](/java/docs/reference/proto-google-common-protos/2.14.3/com.google.longrunning.OperationsGrpc)\n- [2.13.0](/java/docs/reference/proto-google-common-protos/2.13.0/com.google.longrunning.OperationsGrpc)\n- [2.12.0](/java/docs/reference/proto-google-common-protos/2.12.0/com.google.longrunning.OperationsGrpc)\n- [2.11.0](/java/docs/reference/proto-google-common-protos/2.11.0/com.google.longrunning.OperationsGrpc)\n- [2.10.0](/java/docs/reference/proto-google-common-protos/2.10.0/com.google.longrunning.OperationsGrpc)\n- [2.9.6](/java/docs/reference/proto-google-common-protos/2.9.6/com.google.longrunning.OperationsGrpc)\n- [2.8.4](/java/docs/reference/proto-google-common-protos/2.8.4/com.google.longrunning.OperationsGrpc)\n- [2.7.4](/java/docs/reference/proto-google-common-protos/2.7.4/com.google.longrunning.OperationsGrpc) \n\n public final class OperationsGrpc\n\nManages long-running operations with an API service.\nWhen an API method normally takes long time to complete, it can be designed\nto return Operation to the client, and the\nclient can use this interface to receive the real response asynchronously by\npolling the operation resource, or pass the operation resource to another API\n(such as Pub/Sub API) to receive the response. Any API service that returns\nlong-running operations should implement the `Operations` interface so\ndevelopers can have a consistent client experience. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e OperationsGrpc \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Fields\n-------------\n\n### SERVICE_NAME\n\n public static final String SERVICE_NAME\n\nStatic Methods\n--------------\n\n### bindService(OperationsGrpc.AsyncService service)\n\n public static final ServerServiceDefinition bindService(OperationsGrpc.AsyncService service)\n\n### getCancelOperationMethod()\n\n public static MethodDescriptor\u003cCancelOperationRequest,Empty\u003e getCancelOperationMethod()\n\n### getDeleteOperationMethod()\n\n public static MethodDescriptor\u003cDeleteOperationRequest,Empty\u003e getDeleteOperationMethod()\n\n### getGetOperationMethod()\n\n public static MethodDescriptor\u003cGetOperationRequest,Operation\u003e getGetOperationMethod()\n\n### getListOperationsMethod()\n\n public static MethodDescriptor\u003cListOperationsRequest,ListOperationsResponse\u003e getListOperationsMethod()\n\n### getServiceDescriptor()\n\n public static ServiceDescriptor getServiceDescriptor()\n\n### getWaitOperationMethod()\n\n public static MethodDescriptor\u003cWaitOperationRequest,Operation\u003e getWaitOperationMethod()\n\n### newBlockingStub(Channel channel)\n\n public static OperationsGrpc.OperationsBlockingStub newBlockingStub(Channel channel)\n\nCreates a new blocking-style stub that supports unary and streaming output calls on the service\n\n### newBlockingV2Stub(Channel channel)\n\n public static OperationsGrpc.OperationsBlockingV2Stub newBlockingV2Stub(Channel channel)\n\nCreates a new blocking-style stub that supports all types of calls on the service\n\n### newFutureStub(Channel channel)\n\n public static OperationsGrpc.OperationsFutureStub newFutureStub(Channel channel)\n\nCreates a new ListenableFuture-style stub that supports unary calls on the service\n\n### newStub(Channel channel)\n\n public static OperationsGrpc.OperationsStub newStub(Channel channel)\n\nCreates a new async stub that supports all call types for the service"]]