Class OperationsGrpc (2.8.4)

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
TypeDescription
String

Static Methods

getCancelOperationMethod()

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

getDeleteOperationMethod()

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

getGetOperationMethod()

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

getListOperationsMethod()

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

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
TypeDescription
io.grpc.ServiceDescriptor

getWaitOperationMethod()

public static MethodDescriptor<WaitOperationRequest,Operation> getWaitOperationMethod()
Returns
TypeDescription
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
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
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
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
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
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
OperationsGrpc.OperationsStub