// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v3.19.0 // source: supplier.proto package supplier 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 const ( SupplierService_GetSupplierList_FullMethodName = "/SupplierService/GetSupplierList" ) // SupplierServiceClient is the client API for SupplierService 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 SupplierServiceClient interface { GetSupplierList(ctx context.Context, in *SupplierListRequest, opts ...grpc.CallOption) (*SupplierListResponse, error) } type supplierServiceClient struct { cc grpc.ClientConnInterface } func NewSupplierServiceClient(cc grpc.ClientConnInterface) SupplierServiceClient { return &supplierServiceClient{cc} } func (c *supplierServiceClient) GetSupplierList(ctx context.Context, in *SupplierListRequest, opts ...grpc.CallOption) (*SupplierListResponse, error) { out := new(SupplierListResponse) err := c.cc.Invoke(ctx, SupplierService_GetSupplierList_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // SupplierServiceServer is the server API for SupplierService service. // All implementations must embed UnimplementedSupplierServiceServer // for forward compatibility type SupplierServiceServer interface { GetSupplierList(context.Context, *SupplierListRequest) (*SupplierListResponse, error) mustEmbedUnimplementedSupplierServiceServer() } // UnimplementedSupplierServiceServer must be embedded to have forward compatible implementations. type UnimplementedSupplierServiceServer struct { } func (UnimplementedSupplierServiceServer) GetSupplierList(context.Context, *SupplierListRequest) (*SupplierListResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSupplierList not implemented") } func (UnimplementedSupplierServiceServer) mustEmbedUnimplementedSupplierServiceServer() {} // UnsafeSupplierServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to SupplierServiceServer will // result in compilation errors. type UnsafeSupplierServiceServer interface { mustEmbedUnimplementedSupplierServiceServer() } func RegisterSupplierServiceServer(s grpc.ServiceRegistrar, srv SupplierServiceServer) { s.RegisterService(&SupplierService_ServiceDesc, srv) } func _SupplierService_GetSupplierList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SupplierListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SupplierServiceServer).GetSupplierList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SupplierService_GetSupplierList_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SupplierServiceServer).GetSupplierList(ctx, req.(*SupplierListRequest)) } return interceptor(ctx, in, info, handler) } // SupplierService_ServiceDesc is the grpc.ServiceDesc for SupplierService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var SupplierService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "SupplierService", HandlerType: (*SupplierServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSupplierList", Handler: _SupplierService_GetSupplierList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "supplier.proto", }