// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.11.2 // source: barcode-mapping-v1.proto package barcodemappingpb_v1 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 // BarcodeMappingServiceClient is the client API for BarcodeMappingService 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 BarcodeMappingServiceClient interface { GetByMaster(ctx context.Context, in *GetProductVariationsIDsRequest, opts ...grpc.CallOption) (*GetProductVariationsIDsResponse, error) GetByVendor(ctx context.Context, in *GetProductVariationsIDsRequest, opts ...grpc.CallOption) (*GetProductVariationsIDsResponse, error) } type barcodeMappingServiceClient struct { cc grpc.ClientConnInterface } func NewBarcodeMappingServiceClient(cc grpc.ClientConnInterface) BarcodeMappingServiceClient { return &barcodeMappingServiceClient{cc} } func (c *barcodeMappingServiceClient) GetByMaster(ctx context.Context, in *GetProductVariationsIDsRequest, opts ...grpc.CallOption) (*GetProductVariationsIDsResponse, error) { out := new(GetProductVariationsIDsResponse) err := c.cc.Invoke(ctx, "/barcodemappingpb_v1.BarcodeMappingService/GetByMaster", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *barcodeMappingServiceClient) GetByVendor(ctx context.Context, in *GetProductVariationsIDsRequest, opts ...grpc.CallOption) (*GetProductVariationsIDsResponse, error) { out := new(GetProductVariationsIDsResponse) err := c.cc.Invoke(ctx, "/barcodemappingpb_v1.BarcodeMappingService/GetByVendor", in, out, opts...) if err != nil { return nil, err } return out, nil } // BarcodeMappingServiceServer is the server API for BarcodeMappingService service. // All implementations must embed UnimplementedBarcodeMappingServiceServer // for forward compatibility type BarcodeMappingServiceServer interface { GetByMaster(context.Context, *GetProductVariationsIDsRequest) (*GetProductVariationsIDsResponse, error) GetByVendor(context.Context, *GetProductVariationsIDsRequest) (*GetProductVariationsIDsResponse, error) mustEmbedUnimplementedBarcodeMappingServiceServer() } // UnimplementedBarcodeMappingServiceServer must be embedded to have forward compatible implementations. type UnimplementedBarcodeMappingServiceServer struct { } func (UnimplementedBarcodeMappingServiceServer) GetByMaster(context.Context, *GetProductVariationsIDsRequest) (*GetProductVariationsIDsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetByMaster not implemented") } func (UnimplementedBarcodeMappingServiceServer) GetByVendor(context.Context, *GetProductVariationsIDsRequest) (*GetProductVariationsIDsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetByVendor not implemented") } func (UnimplementedBarcodeMappingServiceServer) mustEmbedUnimplementedBarcodeMappingServiceServer() {} // UnsafeBarcodeMappingServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to BarcodeMappingServiceServer will // result in compilation errors. type UnsafeBarcodeMappingServiceServer interface { mustEmbedUnimplementedBarcodeMappingServiceServer() } func RegisterBarcodeMappingServiceServer(s grpc.ServiceRegistrar, srv BarcodeMappingServiceServer) { s.RegisterService(&BarcodeMappingService_ServiceDesc, srv) } func _BarcodeMappingService_GetByMaster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetProductVariationsIDsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(BarcodeMappingServiceServer).GetByMaster(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/barcodemappingpb_v1.BarcodeMappingService/GetByMaster", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BarcodeMappingServiceServer).GetByMaster(ctx, req.(*GetProductVariationsIDsRequest)) } return interceptor(ctx, in, info, handler) } func _BarcodeMappingService_GetByVendor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetProductVariationsIDsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(BarcodeMappingServiceServer).GetByVendor(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/barcodemappingpb_v1.BarcodeMappingService/GetByVendor", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BarcodeMappingServiceServer).GetByVendor(ctx, req.(*GetProductVariationsIDsRequest)) } return interceptor(ctx, in, info, handler) } // BarcodeMappingService_ServiceDesc is the grpc.ServiceDesc for BarcodeMappingService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var BarcodeMappingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "barcodemappingpb_v1.BarcodeMappingService", HandlerType: (*BarcodeMappingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetByMaster", Handler: _BarcodeMappingService_GetByMaster_Handler, }, { MethodName: "GetByVendor", Handler: _BarcodeMappingService_GetByVendor_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "barcode-mapping-v1.proto", }