Class ProductsServiceGrpc (0.9.0)

public final class ProductsServiceGrpc

Service to use Product resource. This service works for products with online channel only.

Inheritance

java.lang.Object > ProductsServiceGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
Type Description
String

Static Methods

bindService(ProductsServiceGrpc.AsyncService service)

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

getGetProductMethod()

public static MethodDescriptor<GetProductRequest,Product> getGetProductMethod()
Returns
Type Description
io.grpc.MethodDescriptor<GetProductRequest,Product>

getListProductsMethod()

public static MethodDescriptor<ListProductsRequest,ListProductsResponse> getListProductsMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ListProductsRequest,ListProductsResponse>

getServiceDescriptor()

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

newBlockingStub(Channel channel)

public static ProductsServiceGrpc.ProductsServiceBlockingStub 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
ProductsServiceGrpc.ProductsServiceBlockingStub

newFutureStub(Channel channel)

public static ProductsServiceGrpc.ProductsServiceFutureStub 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
ProductsServiceGrpc.ProductsServiceFutureStub

newStub(Channel channel)

public static ProductsServiceGrpc.ProductsServiceStub 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
ProductsServiceGrpc.ProductsServiceStub