// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 // protoc v3.19.0 // source: outsourcing.proto package outsourcing import ( 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) ) type Material struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` //编号 Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` //名称 Unit string `protobuf:"bytes,3,opt,name=Unit,proto3" json:"Unit,omitempty"` //单位 Specs string `protobuf:"bytes,4,opt,name=Specs,proto3" json:"Specs,omitempty"` // 规格 Type string `protobuf:"bytes,5,opt,name=Type,proto3" json:"Type,omitempty"` // 型号 } func (x *Material) Reset() { *x = Material{} if protoimpl.UnsafeEnabled { mi := &file_outsourcing_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Material) String() string { return protoimpl.X.MessageStringOf(x) } func (*Material) ProtoMessage() {} func (x *Material) ProtoReflect() protoreflect.Message { mi := &file_outsourcing_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 Material.ProtoReflect.Descriptor instead. func (*Material) Descriptor() ([]byte, []int) { return file_outsourcing_proto_rawDescGZIP(), []int{0} } func (x *Material) GetID() string { if x != nil { return x.ID } return "" } func (x *Material) GetName() string { if x != nil { return x.Name } return "" } func (x *Material) GetUnit() string { if x != nil { return x.Unit } return "" } func (x *Material) GetSpecs() string { if x != nil { return x.Specs } return "" } func (x *Material) GetType() string { if x != nil { return x.Type } return "" } type GetMaterialListRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` Keyword string `protobuf:"bytes,3,opt,name=Keyword,proto3" json:"Keyword,omitempty"` } func (x *GetMaterialListRequest) Reset() { *x = GetMaterialListRequest{} if protoimpl.UnsafeEnabled { mi := &file_outsourcing_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetMaterialListRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetMaterialListRequest) ProtoMessage() {} func (x *GetMaterialListRequest) ProtoReflect() protoreflect.Message { mi := &file_outsourcing_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 GetMaterialListRequest.ProtoReflect.Descriptor instead. func (*GetMaterialListRequest) Descriptor() ([]byte, []int) { return file_outsourcing_proto_rawDescGZIP(), []int{1} } func (x *GetMaterialListRequest) GetPage() int32 { if x != nil { return x.Page } return 0 } func (x *GetMaterialListRequest) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } func (x *GetMaterialListRequest) GetKeyword() string { if x != nil { return x.Keyword } return "" } type GetMaterialListResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code int32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"` List []*Material `protobuf:"bytes,3,rep,name=List,proto3" json:"List,omitempty"` Total int64 `protobuf:"varint,4,opt,name=Total,proto3" json:"Total,omitempty"` } func (x *GetMaterialListResponse) Reset() { *x = GetMaterialListResponse{} if protoimpl.UnsafeEnabled { mi := &file_outsourcing_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetMaterialListResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetMaterialListResponse) ProtoMessage() {} func (x *GetMaterialListResponse) ProtoReflect() protoreflect.Message { mi := &file_outsourcing_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 GetMaterialListResponse.ProtoReflect.Descriptor instead. func (*GetMaterialListResponse) Descriptor() ([]byte, []int) { return file_outsourcing_proto_rawDescGZIP(), []int{2} } func (x *GetMaterialListResponse) GetCode() int32 { if x != nil { return x.Code } return 0 } func (x *GetMaterialListResponse) GetMsg() string { if x != nil { return x.Msg } return "" } func (x *GetMaterialListResponse) GetList() []*Material { if x != nil { return x.List } return nil } func (x *GetMaterialListResponse) GetTotal() int64 { if x != nil { return x.Total } return 0 } var File_outsourcing_proto protoreflect.FileDescriptor var file_outsourcing_proto_rawDesc = []byte{ 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6c, 0x0a, 0x08, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x44, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x70, 0x65, 0x63, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x53, 0x70, 0x65, 0x63, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x54, 0x79, 0x70, 0x65, 0x22, 0x62, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x74, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x52, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x32, 0x5c, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x46, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x17, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x3b, 0x6f, 0x75, 0x74, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_outsourcing_proto_rawDescOnce sync.Once file_outsourcing_proto_rawDescData = file_outsourcing_proto_rawDesc ) func file_outsourcing_proto_rawDescGZIP() []byte { file_outsourcing_proto_rawDescOnce.Do(func() { file_outsourcing_proto_rawDescData = protoimpl.X.CompressGZIP(file_outsourcing_proto_rawDescData) }) return file_outsourcing_proto_rawDescData } var file_outsourcing_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_outsourcing_proto_goTypes = []interface{}{ (*Material)(nil), // 0: Material (*GetMaterialListRequest)(nil), // 1: GetMaterialListRequest (*GetMaterialListResponse)(nil), // 2: GetMaterialListResponse } var file_outsourcing_proto_depIdxs = []int32{ 0, // 0: GetMaterialListResponse.List:type_name -> Material 1, // 1: outsourcingService.GetMaterialList:input_type -> GetMaterialListRequest 2, // 2: outsourcingService.GetMaterialList:output_type -> GetMaterialListResponse 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_outsourcing_proto_init() } func file_outsourcing_proto_init() { if File_outsourcing_proto != nil { return } if !protoimpl.UnsafeEnabled { file_outsourcing_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Material); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_outsourcing_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetMaterialListRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_outsourcing_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetMaterialListResponse); 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_outsourcing_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 1, }, GoTypes: file_outsourcing_proto_goTypes, DependencyIndexes: file_outsourcing_proto_depIdxs, MessageInfos: file_outsourcing_proto_msgTypes, }.Build() File_outsourcing_proto = out.File file_outsourcing_proto_rawDesc = nil file_outsourcing_proto_goTypes = nil file_outsourcing_proto_depIdxs = nil }