Class PromotionsServiceGrpc (0.1.0)

public final class PromotionsServiceGrpc

Service to manage promotions for products.

Inheritance

java.lang.Object > PromotionsServiceGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
Type Description
String

Static Methods

bindService(PromotionsServiceGrpc.AsyncService service)

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

getGetPromotionMethod()

public static MethodDescriptor<GetPromotionRequest,Promotion> getGetPromotionMethod()
Returns
Type Description
io.grpc.MethodDescriptor<GetPromotionRequest,Promotion>

getInsertPromotionMethod()

public static MethodDescriptor<InsertPromotionRequest,Promotion> getInsertPromotionMethod()
Returns
Type Description
io.grpc.MethodDescriptor<InsertPromotionRequest,Promotion>

getListPromotionsMethod()

public static MethodDescriptor<ListPromotionsRequest,ListPromotionsResponse> getListPromotionsMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ListPromotionsRequest,ListPromotionsResponse>

getServiceDescriptor()

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

newBlockingStub(Channel channel)

public static PromotionsServiceGrpc.PromotionsServiceBlockingStub 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
PromotionsServiceGrpc.PromotionsServiceBlockingStub

newFutureStub(Channel channel)

public static PromotionsServiceGrpc.PromotionsServiceFutureStub 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
PromotionsServiceGrpc.PromotionsServiceFutureStub

newStub(Channel channel)

public static PromotionsServiceGrpc.PromotionsServiceStub 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
PromotionsServiceGrpc.PromotionsServiceStub