// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 // protoc v3.19.0 // source: supplier.proto package supplier 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 SupplierListRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Status int32 `protobuf:"varint,1,opt,name=Status,proto3" json:"Status,omitempty"` } func (x *SupplierListRequest) Reset() { *x = SupplierListRequest{} if protoimpl.UnsafeEnabled { mi := &file_supplier_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SupplierListRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SupplierListRequest) ProtoMessage() {} func (x *SupplierListRequest) ProtoReflect() protoreflect.Message { mi := &file_supplier_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 SupplierListRequest.ProtoReflect.Descriptor instead. func (*SupplierListRequest) Descriptor() ([]byte, []int) { return file_supplier_proto_rawDescGZIP(), []int{0} } func (x *SupplierListRequest) GetStatus() int32 { if x != nil { return x.Status } return 0 } type SupplierInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields SupplierId int32 `protobuf:"varint,1,opt,name=SupplierId,proto3" json:"SupplierId,omitempty"` SupplierName string `protobuf:"bytes,2,opt,name=SupplierName,proto3" json:"SupplierName,omitempty"` } func (x *SupplierInfo) Reset() { *x = SupplierInfo{} if protoimpl.UnsafeEnabled { mi := &file_supplier_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SupplierInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*SupplierInfo) ProtoMessage() {} func (x *SupplierInfo) ProtoReflect() protoreflect.Message { mi := &file_supplier_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 SupplierInfo.ProtoReflect.Descriptor instead. func (*SupplierInfo) Descriptor() ([]byte, []int) { return file_supplier_proto_rawDescGZIP(), []int{1} } func (x *SupplierInfo) GetSupplierId() int32 { if x != nil { return x.SupplierId } return 0 } func (x *SupplierInfo) GetSupplierName() string { if x != nil { return x.SupplierName } return "" } type SupplierListResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields List []*SupplierInfo `protobuf:"bytes,1,rep,name=List,proto3" json:"List,omitempty"` } func (x *SupplierListResponse) Reset() { *x = SupplierListResponse{} if protoimpl.UnsafeEnabled { mi := &file_supplier_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SupplierListResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SupplierListResponse) ProtoMessage() {} func (x *SupplierListResponse) ProtoReflect() protoreflect.Message { mi := &file_supplier_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 SupplierListResponse.ProtoReflect.Descriptor instead. func (*SupplierListResponse) Descriptor() ([]byte, []int) { return file_supplier_proto_rawDescGZIP(), []int{2} } func (x *SupplierListResponse) GetList() []*SupplierInfo { if x != nil { return x.List } return nil } var File_supplier_proto protoreflect.FileDescriptor var file_supplier_proto_rawDesc = []byte{ 0x0a, 0x0e, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2d, 0x0a, 0x13, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x52, 0x0a, 0x0c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x39, 0x0a, 0x14, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x32, 0x51, 0x0a, 0x0f, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3e, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0c, 0x5a, 0x0a, 0x2e, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_supplier_proto_rawDescOnce sync.Once file_supplier_proto_rawDescData = file_supplier_proto_rawDesc ) func file_supplier_proto_rawDescGZIP() []byte { file_supplier_proto_rawDescOnce.Do(func() { file_supplier_proto_rawDescData = protoimpl.X.CompressGZIP(file_supplier_proto_rawDescData) }) return file_supplier_proto_rawDescData } var file_supplier_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_supplier_proto_goTypes = []interface{}{ (*SupplierListRequest)(nil), // 0: SupplierListRequest (*SupplierInfo)(nil), // 1: SupplierInfo (*SupplierListResponse)(nil), // 2: SupplierListResponse } var file_supplier_proto_depIdxs = []int32{ 1, // 0: SupplierListResponse.List:type_name -> SupplierInfo 0, // 1: SupplierService.GetSupplierList:input_type -> SupplierListRequest 2, // 2: SupplierService.GetSupplierList:output_type -> SupplierListResponse 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_supplier_proto_init() } func file_supplier_proto_init() { if File_supplier_proto != nil { return } if !protoimpl.UnsafeEnabled { file_supplier_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SupplierListRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_supplier_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SupplierInfo); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_supplier_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SupplierListResponse); 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_supplier_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 1, }, GoTypes: file_supplier_proto_goTypes, DependencyIndexes: file_supplier_proto_depIdxs, MessageInfos: file_supplier_proto_msgTypes, }.Build() File_supplier_proto = out.File file_supplier_proto_rawDesc = nil file_supplier_proto_goTypes = nil file_supplier_proto_depIdxs = nil }