// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
package product_inventory
|
|
import (
|
context "context"
|
grpc "google.golang.org/grpc"
|
codes "google.golang.org/grpc/codes"
|
status "google.golang.org/grpc/status"
|
)
|
|
// This is a compile-time assertion to ensure that this generated file
|
// is compatible with the grpc package it is being compiled against.
|
// Requires gRPC-Go v1.32.0 or later.
|
const _ = grpc.SupportPackageIsVersion7
|
|
// ProductInventoryServiceClient is the client API for ProductInventoryService service.
|
//
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
type ProductInventoryServiceClient interface {
|
CreateOperation(ctx context.Context, in *CreateOperationRequest, opts ...grpc.CallOption) (*CreateOperationResponse, error)
|
GetInventoryProductInfo(ctx context.Context, in *GetInventoryProductInfoRequest, opts ...grpc.CallOption) (*GetInventoryProductInfoResponse, error)
|
UpdateSalesDetailStatus(ctx context.Context, in *UpdateSalesDetailStatusRequest, opts ...grpc.CallOption) (*UpdateSalesDetailStatusResponse, error)
|
}
|
|
type productInventoryServiceClient struct {
|
cc grpc.ClientConnInterface
|
}
|
|
func NewProductInventoryServiceClient(cc grpc.ClientConnInterface) ProductInventoryServiceClient {
|
return &productInventoryServiceClient{cc}
|
}
|
|
func (c *productInventoryServiceClient) CreateOperation(ctx context.Context, in *CreateOperationRequest, opts ...grpc.CallOption) (*CreateOperationResponse, error) {
|
out := new(CreateOperationResponse)
|
err := c.cc.Invoke(ctx, "/productInventoryService/CreateOperation", in, out, opts...)
|
if err != nil {
|
return nil, err
|
}
|
return out, nil
|
}
|
|
func (c *productInventoryServiceClient) GetInventoryProductInfo(ctx context.Context, in *GetInventoryProductInfoRequest, opts ...grpc.CallOption) (*GetInventoryProductInfoResponse, error) {
|
out := new(GetInventoryProductInfoResponse)
|
err := c.cc.Invoke(ctx, "/productInventoryService/GetInventoryProductInfo", in, out, opts...)
|
if err != nil {
|
return nil, err
|
}
|
return out, nil
|
}
|
|
func (c *productInventoryServiceClient) UpdateSalesDetailStatus(ctx context.Context, in *UpdateSalesDetailStatusRequest, opts ...grpc.CallOption) (*UpdateSalesDetailStatusResponse, error) {
|
out := new(UpdateSalesDetailStatusResponse)
|
err := c.cc.Invoke(ctx, "/productInventoryService/UpdateSalesDetailStatus", in, out, opts...)
|
if err != nil {
|
return nil, err
|
}
|
return out, nil
|
}
|
|
// ProductInventoryServiceServer is the server API for ProductInventoryService service.
|
// All implementations must embed UnimplementedProductInventoryServiceServer
|
// for forward compatibility
|
type ProductInventoryServiceServer interface {
|
CreateOperation(context.Context, *CreateOperationRequest) (*CreateOperationResponse, error)
|
GetInventoryProductInfo(context.Context, *GetInventoryProductInfoRequest) (*GetInventoryProductInfoResponse, error)
|
UpdateSalesDetailStatus(context.Context, *UpdateSalesDetailStatusRequest) (*UpdateSalesDetailStatusResponse, error)
|
mustEmbedUnimplementedProductInventoryServiceServer()
|
}
|
|
// UnimplementedProductInventoryServiceServer must be embedded to have forward compatible implementations.
|
type UnimplementedProductInventoryServiceServer struct {
|
}
|
|
func (UnimplementedProductInventoryServiceServer) CreateOperation(context.Context, *CreateOperationRequest) (*CreateOperationResponse, error) {
|
return nil, status.Errorf(codes.Unimplemented, "method CreateOperation not implemented")
|
}
|
func (UnimplementedProductInventoryServiceServer) GetInventoryProductInfo(context.Context, *GetInventoryProductInfoRequest) (*GetInventoryProductInfoResponse, error) {
|
return nil, status.Errorf(codes.Unimplemented, "method GetInventoryProductInfo not implemented")
|
}
|
func (UnimplementedProductInventoryServiceServer) UpdateSalesDetailStatus(context.Context, *UpdateSalesDetailStatusRequest) (*UpdateSalesDetailStatusResponse, error) {
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateSalesDetailStatus not implemented")
|
}
|
func (UnimplementedProductInventoryServiceServer) mustEmbedUnimplementedProductInventoryServiceServer() {
|
}
|
|
// UnsafeProductInventoryServiceServer may be embedded to opt out of forward compatibility for this service.
|
// Use of this interface is not recommended, as added methods to ProductInventoryServiceServer will
|
// result in compilation errors.
|
type UnsafeProductInventoryServiceServer interface {
|
mustEmbedUnimplementedProductInventoryServiceServer()
|
}
|
|
func RegisterProductInventoryServiceServer(s grpc.ServiceRegistrar, srv ProductInventoryServiceServer) {
|
s.RegisterService(&ProductInventoryService_ServiceDesc, srv)
|
}
|
|
func _ProductInventoryService_CreateOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
in := new(CreateOperationRequest)
|
if err := dec(in); err != nil {
|
return nil, err
|
}
|
if interceptor == nil {
|
return srv.(ProductInventoryServiceServer).CreateOperation(ctx, in)
|
}
|
info := &grpc.UnaryServerInfo{
|
Server: srv,
|
FullMethod: "/productInventoryService/CreateOperation",
|
}
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
return srv.(ProductInventoryServiceServer).CreateOperation(ctx, req.(*CreateOperationRequest))
|
}
|
return interceptor(ctx, in, info, handler)
|
}
|
|
func _ProductInventoryService_GetInventoryProductInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
in := new(GetInventoryProductInfoRequest)
|
if err := dec(in); err != nil {
|
return nil, err
|
}
|
if interceptor == nil {
|
return srv.(ProductInventoryServiceServer).GetInventoryProductInfo(ctx, in)
|
}
|
info := &grpc.UnaryServerInfo{
|
Server: srv,
|
FullMethod: "/productInventoryService/GetInventoryProductInfo",
|
}
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
return srv.(ProductInventoryServiceServer).GetInventoryProductInfo(ctx, req.(*GetInventoryProductInfoRequest))
|
}
|
return interceptor(ctx, in, info, handler)
|
}
|
|
func _ProductInventoryService_UpdateSalesDetailStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
in := new(UpdateSalesDetailStatusRequest)
|
if err := dec(in); err != nil {
|
return nil, err
|
}
|
if interceptor == nil {
|
return srv.(ProductInventoryServiceServer).UpdateSalesDetailStatus(ctx, in)
|
}
|
info := &grpc.UnaryServerInfo{
|
Server: srv,
|
FullMethod: "/productInventoryService/UpdateSalesDetailStatus",
|
}
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
return srv.(ProductInventoryServiceServer).UpdateSalesDetailStatus(ctx, req.(*UpdateSalesDetailStatusRequest))
|
}
|
return interceptor(ctx, in, info, handler)
|
}
|
|
// ProductInventoryService_ServiceDesc is the grpc.ServiceDesc for ProductInventoryService service.
|
// It's only intended for direct use with grpc.RegisterService,
|
// and not to be introspected or modified (even as a copy)
|
var ProductInventoryService_ServiceDesc = grpc.ServiceDesc{
|
ServiceName: "productInventoryService",
|
HandlerType: (*ProductInventoryServiceServer)(nil),
|
Methods: []grpc.MethodDesc{
|
{
|
MethodName: "CreateOperation",
|
Handler: _ProductInventoryService_CreateOperation_Handler,
|
},
|
{
|
MethodName: "GetInventoryProductInfo",
|
Handler: _ProductInventoryService_GetInventoryProductInfo_Handler,
|
},
|
{
|
MethodName: "UpdateSalesDetailStatus",
|
Handler: _ProductInventoryService_UpdateSalesDetailStatus_Handler,
|
},
|
},
|
Streams: []grpc.StreamDesc{},
|
Metadata: "product_inventory.proto",
|
}
|