// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.12.4 // source: winnerpredict.proto //声明 包名 package proto import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // This is a compile-time assertion that a sufficiently up-to-date version // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 //请求参数 type PredictReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ProjectName string `protobuf:"bytes,1,opt,name=ProjectName,proto3" json:"ProjectName,omitempty"` //项目名称 Mount float32 `protobuf:"fixed32,2,opt,name=Mount,proto3" json:"Mount,omitempty"` //金额 BidUnit string `protobuf:"bytes,3,opt,name=BidUnit,proto3" json:"BidUnit,omitempty"` //招标单位 Area string `protobuf:"bytes,4,opt,name=Area,proto3" json:"Area,omitempty"` //地域 City string `protobuf:"bytes,5,opt,name=City,proto3" json:"City,omitempty"` //城市 Goods []string `protobuf:"bytes,6,rep,name=Goods,proto3" json:"Goods,omitempty"` //物品清单 Winner string `protobuf:"bytes,7,opt,name=Winner,proto3" json:"Winner,omitempty"` //中标人 WinnerOrder []string `protobuf:"bytes,8,rep,name=WinnerOrder,proto3" json:"WinnerOrder,omitempty"` //中标候选人 } func (x *PredictReq) Reset() { *x = PredictReq{} if protoimpl.UnsafeEnabled { mi := &file_winnerpredict_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *PredictReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*PredictReq) ProtoMessage() {} func (x *PredictReq) ProtoReflect() protoreflect.Message { mi := &file_winnerpredict_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use PredictReq.ProtoReflect.Descriptor instead. func (*PredictReq) Descriptor() ([]byte, []int) { return file_winnerpredict_proto_rawDescGZIP(), []int{0} } func (x *PredictReq) GetProjectName() string { if x != nil { return x.ProjectName } return "" } func (x *PredictReq) GetMount() float32 { if x != nil { return x.Mount } return 0 } func (x *PredictReq) GetBidUnit() string { if x != nil { return x.BidUnit } return "" } func (x *PredictReq) GetArea() string { if x != nil { return x.Area } return "" } func (x *PredictReq) GetCity() string { if x != nil { return x.City } return "" } func (x *PredictReq) GetGoods() []string { if x != nil { return x.Goods } return nil } func (x *PredictReq) GetWinner() string { if x != nil { return x.Winner } return "" } func (x *PredictReq) GetWinnerOrder() []string { if x != nil { return x.WinnerOrder } return nil } //返回结果 type PredictResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Item []*ResultEntiry `protobuf:"bytes,1,rep,name=Item,proto3" json:"Item,omitempty"` } func (x *PredictResp) Reset() { *x = PredictResp{} if protoimpl.UnsafeEnabled { mi := &file_winnerpredict_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *PredictResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*PredictResp) ProtoMessage() {} func (x *PredictResp) ProtoReflect() protoreflect.Message { mi := &file_winnerpredict_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use PredictResp.ProtoReflect.Descriptor instead. func (*PredictResp) Descriptor() ([]byte, []int) { return file_winnerpredict_proto_rawDescGZIP(), []int{1} } func (x *PredictResp) GetItem() []*ResultEntiry { if x != nil { return x.Item } return nil } // type ResultEntiry struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields EntName string `protobuf:"bytes,1,opt,name=EntName,proto3" json:"EntName,omitempty"` // Score float32 `protobuf:"fixed32,2,opt,name=Score,proto3" json:"Score,omitempty"` Weight float32 `protobuf:"fixed32,3,opt,name=Weight,proto3" json:"Weight,omitempty"` } func (x *ResultEntiry) Reset() { *x = ResultEntiry{} if protoimpl.UnsafeEnabled { mi := &file_winnerpredict_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ResultEntiry) String() string { return protoimpl.X.MessageStringOf(x) } func (*ResultEntiry) ProtoMessage() {} func (x *ResultEntiry) ProtoReflect() protoreflect.Message { mi := &file_winnerpredict_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ResultEntiry.ProtoReflect.Descriptor instead. func (*ResultEntiry) Descriptor() ([]byte, []int) { return file_winnerpredict_proto_rawDescGZIP(), []int{2} } func (x *ResultEntiry) GetEntName() string { if x != nil { return x.EntName } return "" } func (x *ResultEntiry) GetScore() float32 { if x != nil { return x.Score } return 0 } func (x *ResultEntiry) GetWeight() float32 { if x != nil { return x.Weight } return 0 } var File_winnerpredict_proto protoreflect.FileDescriptor var file_winnerpredict_proto_rawDesc = []byte{ 0x0a, 0x13, 0x77, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd6, 0x01, 0x0a, 0x0a, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x71, 0x12, 0x20, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x42, 0x69, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x42, 0x69, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x41, 0x72, 0x65, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x41, 0x72, 0x65, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x43, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x43, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x57, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x57, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x57, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x57, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x36, 0x0a, 0x0b, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x72, 0x79, 0x52, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x22, 0x56, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x45, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x45, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x32, 0x4a, 0x0a, 0x14, 0x57, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x07, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x12, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_winnerpredict_proto_rawDescOnce sync.Once file_winnerpredict_proto_rawDescData = file_winnerpredict_proto_rawDesc ) func file_winnerpredict_proto_rawDescGZIP() []byte { file_winnerpredict_proto_rawDescOnce.Do(func() { file_winnerpredict_proto_rawDescData = protoimpl.X.CompressGZIP(file_winnerpredict_proto_rawDescData) }) return file_winnerpredict_proto_rawDescData } var file_winnerpredict_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_winnerpredict_proto_goTypes = []interface{}{ (*PredictReq)(nil), // 0: proto.PredictReq (*PredictResp)(nil), // 1: proto.PredictResp (*ResultEntiry)(nil), // 2: proto.ResultEntiry } var file_winnerpredict_proto_depIdxs = []int32{ 2, // 0: proto.PredictResp.Item:type_name -> proto.ResultEntiry 0, // 1: proto.WinnerPredictService.Predict:input_type -> proto.PredictReq 1, // 2: proto.WinnerPredictService.Predict:output_type -> proto.PredictResp 2, // [2:3] is the sub-list for method output_type 1, // [1:2] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name } func init() { file_winnerpredict_proto_init() } func file_winnerpredict_proto_init() { if File_winnerpredict_proto != nil { return } if !protoimpl.UnsafeEnabled { file_winnerpredict_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PredictReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_winnerpredict_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PredictResp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_winnerpredict_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResultEntiry); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_winnerpredict_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 1, }, GoTypes: file_winnerpredict_proto_goTypes, DependencyIndexes: file_winnerpredict_proto_depIdxs, MessageInfos: file_winnerpredict_proto_msgTypes, }.Build() File_winnerpredict_proto = out.File file_winnerpredict_proto_rawDesc = nil file_winnerpredict_proto_goTypes = nil file_winnerpredict_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion6 // WinnerPredictServiceClient is the client API for WinnerPredictService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type WinnerPredictServiceClient interface { Predict(ctx context.Context, in *PredictReq, opts ...grpc.CallOption) (*PredictResp, error) } type winnerPredictServiceClient struct { cc grpc.ClientConnInterface } func NewWinnerPredictServiceClient(cc grpc.ClientConnInterface) WinnerPredictServiceClient { return &winnerPredictServiceClient{cc} } func (c *winnerPredictServiceClient) Predict(ctx context.Context, in *PredictReq, opts ...grpc.CallOption) (*PredictResp, error) { out := new(PredictResp) err := c.cc.Invoke(ctx, "/proto.WinnerPredictService/Predict", in, out, opts...) if err != nil { return nil, err } return out, nil } // WinnerPredictServiceServer is the server API for WinnerPredictService service. type WinnerPredictServiceServer interface { Predict(context.Context, *PredictReq) (*PredictResp, error) } // UnimplementedWinnerPredictServiceServer can be embedded to have forward compatible implementations. type UnimplementedWinnerPredictServiceServer struct { } func (*UnimplementedWinnerPredictServiceServer) Predict(context.Context, *PredictReq) (*PredictResp, error) { return nil, status.Errorf(codes.Unimplemented, "method Predict not implemented") } func RegisterWinnerPredictServiceServer(s *grpc.Server, srv WinnerPredictServiceServer) { s.RegisterService(&_WinnerPredictService_serviceDesc, srv) } func _WinnerPredictService_Predict_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PredictReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WinnerPredictServiceServer).Predict(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/proto.WinnerPredictService/Predict", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WinnerPredictServiceServer).Predict(ctx, req.(*PredictReq)) } return interceptor(ctx, in, info, handler) } var _WinnerPredictService_serviceDesc = grpc.ServiceDesc{ ServiceName: "proto.WinnerPredictService", HandlerType: (*WinnerPredictServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Predict", Handler: _WinnerPredictService_Predict_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "winnerpredict.proto", }