Class OperationsGrpc (2.39.1)

public final class 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 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 Google Cloud 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.

Inheritance

java.lang.Object > OperationsGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
Type Description
String

Static Methods

bindService(OperationsGrpc.AsyncService service)

public static final ServerServiceDefinition bindService(OperationsGrpc.AsyncService service)
Parameter
Name Description
service OperationsGrpc.AsyncService
Returns
Type Description
io.grpc.ServerServiceDefinition

getCancelOperationMethod()

public static MethodDescriptor<CancelOperationRequest,Empty> getCancelOperationMethod()
Returns
Type Description
io.grpc.MethodDescriptor<CancelOperationRequest,Empty>

getDeleteOperationMethod()

public static MethodDescriptor<DeleteOperationRequest,Empty> getDeleteOperationMethod()
Returns
Type Description
io.grpc.MethodDescriptor<DeleteOperationRequest,Empty>

getGetOperationMethod()

public static MethodDescriptor<GetOperationRequest,Operation> getGetOperationMethod()
Returns
Type Description
io.grpc.MethodDescriptor<GetOperationRequest,Operation>

getListOperationsMethod()

public static MethodDescriptor<ListOperationsRequest,ListOperationsResponse> getListOperationsMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ListOperationsRequest,ListOperationsResponse>

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
Type Description
io.grpc.ServiceDescriptor

getWaitOperationMethod()

public static MethodDescriptor<WaitOperationRequest,Operation> getWaitOperationMethod()
Returns
Type Description
io.grpc.MethodDescriptor<WaitOperationRequest,Operation>

newBlockingStub(Channel channel)

public static OperationsGrpc.OperationsBlockingStub newBlockingStub(Channel channel)

Creates a new blocking-style stub that supports unary and streaming output calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
OperationsGrpc.OperationsBlockingStub

newFutureStub(Channel channel)

public static OperationsGrpc.OperationsFutureStub newFutureStub(Channel channel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
OperationsGrpc.OperationsFutureStub

newStub(Channel channel)

public static OperationsGrpc.OperationsStub newStub(Channel channel)

Creates a new async stub that supports all call types for the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
OperationsGrpc.OperationsStub