// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.0 // protoc v5.26.1 // source: prod.proto package prod import ( _ "google.golang.org/genproto/googleapis/api/annotations" 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 ProdArea int32 const ( ProdArea_A ProdArea = 0 ProdArea_B ProdArea = 1 ProdArea_C ProdArea = 2 ) // Enum value maps for ProdArea. var ( ProdArea_name = map[int32]string{ 0: "A", 1: "B", 2: "C", } ProdArea_value = map[string]int32{ "A": 0, "B": 1, "C": 2, } ) func (x ProdArea) Enum() *ProdArea { p := new(ProdArea) *p = x return p } func (x ProdArea) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (ProdArea) Descriptor() protoreflect.EnumDescriptor { return file_prod_proto_enumTypes[0].Descriptor() } func (ProdArea) Type() protoreflect.EnumType { return &file_prod_proto_enumTypes[0] } func (x ProdArea) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use ProdArea.Descriptor instead. func (ProdArea) EnumDescriptor() ([]byte, []int) { return file_prod_proto_rawDescGZIP(), []int{0} } type ProdRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ProdId int32 `protobuf:"varint,1,opt,name=prod_id,json=prodId,proto3" json:"prod_id,omitempty"` ProdArea ProdArea `protobuf:"varint,2,opt,name=prod_area,json=prodArea,proto3,enum=services.ProdArea" json:"prod_area,omitempty"` } func (x *ProdRequest) Reset() { *x = ProdRequest{} if protoimpl.UnsafeEnabled { mi := &file_prod_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ProdRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ProdRequest) ProtoMessage() {} func (x *ProdRequest) ProtoReflect() protoreflect.Message { mi := &file_prod_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 ProdRequest.ProtoReflect.Descriptor instead. func (*ProdRequest) Descriptor() ([]byte, []int) { return file_prod_proto_rawDescGZIP(), []int{0} } func (x *ProdRequest) GetProdId() int32 { if x != nil { return x.ProdId } return 0 } func (x *ProdRequest) GetProdArea() ProdArea { if x != nil { return x.ProdArea } return ProdArea_A } type ProdResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ProdStock int32 `protobuf:"varint,1,opt,name=prod_stock,json=prodStock,proto3" json:"prod_stock,omitempty"` } func (x *ProdResponse) Reset() { *x = ProdResponse{} if protoimpl.UnsafeEnabled { mi := &file_prod_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ProdResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ProdResponse) ProtoMessage() {} func (x *ProdResponse) ProtoReflect() protoreflect.Message { mi := &file_prod_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 ProdResponse.ProtoReflect.Descriptor instead. func (*ProdResponse) Descriptor() ([]byte, []int) { return file_prod_proto_rawDescGZIP(), []int{1} } func (x *ProdResponse) GetProdStock() int32 { if x != nil { return x.ProdStock } return 0 } type QueryProdStocks struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields PageNo int32 `protobuf:"varint,1,opt,name=pageNo,proto3" json:"pageNo,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` } func (x *QueryProdStocks) Reset() { *x = QueryProdStocks{} if protoimpl.UnsafeEnabled { mi := &file_prod_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *QueryProdStocks) String() string { return protoimpl.X.MessageStringOf(x) } func (*QueryProdStocks) ProtoMessage() {} func (x *QueryProdStocks) ProtoReflect() protoreflect.Message { mi := &file_prod_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 QueryProdStocks.ProtoReflect.Descriptor instead. func (*QueryProdStocks) Descriptor() ([]byte, []int) { return file_prod_proto_rawDescGZIP(), []int{2} } func (x *QueryProdStocks) GetPageNo() int32 { if x != nil { return x.PageNo } return 0 } func (x *QueryProdStocks) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } type ProdStockList struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ProdRes []*ProdResponse `protobuf:"bytes,1,rep,name=prodRes,proto3" json:"prodRes,omitempty"` } func (x *ProdStockList) Reset() { *x = ProdStockList{} if protoimpl.UnsafeEnabled { mi := &file_prod_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ProdStockList) String() string { return protoimpl.X.MessageStringOf(x) } func (*ProdStockList) ProtoMessage() {} func (x *ProdStockList) ProtoReflect() protoreflect.Message { mi := &file_prod_proto_msgTypes[3] 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 ProdStockList.ProtoReflect.Descriptor instead. func (*ProdStockList) Descriptor() ([]byte, []int) { return file_prod_proto_rawDescGZIP(), []int{3} } func (x *ProdStockList) GetProdRes() []*ProdResponse { if x != nil { return x.ProdRes } return nil } var File_prod_proto protoreflect.FileDescriptor var file_prod_proto_rawDesc = []byte{ 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x57, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x64, 0x5f, 0x61, 0x72, 0x65, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x41, 0x72, 0x65, 0x61, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x64, 0x41, 0x72, 0x65, 0x61, 0x22, 0x2d, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x64, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x22, 0x45, 0x0a, 0x0f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x64, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x6f, 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, 0x22, 0x41, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x64, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x2a, 0x1f, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x64, 0x41, 0x72, 0x65, 0x61, 0x12, 0x05, 0x0a, 0x01, 0x41, 0x10, 0x00, 0x12, 0x05, 0x0a, 0x01, 0x42, 0x10, 0x01, 0x12, 0x05, 0x0a, 0x01, 0x43, 0x10, 0x02, 0x32, 0xec, 0x01, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x59, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x64, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x12, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x45, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x64, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x64, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x73, 0x1a, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x53, 0x74, 0x6f, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0x00, 0x42, 0x07, 0x5a, 0x05, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_prod_proto_rawDescOnce sync.Once file_prod_proto_rawDescData = file_prod_proto_rawDesc ) func file_prod_proto_rawDescGZIP() []byte { file_prod_proto_rawDescOnce.Do(func() { file_prod_proto_rawDescData = protoimpl.X.CompressGZIP(file_prod_proto_rawDescData) }) return file_prod_proto_rawDescData } var file_prod_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_prod_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_prod_proto_goTypes = []interface{}{ (ProdArea)(0), // 0: services.ProdArea (*ProdRequest)(nil), // 1: services.ProdRequest (*ProdResponse)(nil), // 2: services.ProdResponse (*QueryProdStocks)(nil), // 3: services.QueryProdStocks (*ProdStockList)(nil), // 4: services.ProdStockList (*ProdModel)(nil), // 5: services.ProdModel } var file_prod_proto_depIdxs = []int32{ 0, // 0: services.ProdRequest.prod_area:type_name -> services.ProdArea 2, // 1: services.ProdStockList.prodRes:type_name -> services.ProdResponse 1, // 2: services.ProdService.GetProdStock:input_type -> services.ProdRequest 3, // 3: services.ProdService.GetProdStocks:input_type -> services.QueryProdStocks 1, // 4: services.ProdService.GetProdInfo:input_type -> services.ProdRequest 2, // 5: services.ProdService.GetProdStock:output_type -> services.ProdResponse 4, // 6: services.ProdService.GetProdStocks:output_type -> services.ProdStockList 5, // 7: services.ProdService.GetProdInfo:output_type -> services.ProdModel 5, // [5:8] is the sub-list for method output_type 2, // [2:5] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_prod_proto_init() } func file_prod_proto_init() { if File_prod_proto != nil { return } file_models_proto_init() if !protoimpl.UnsafeEnabled { file_prod_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ProdRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_prod_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ProdResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_prod_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryProdStocks); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_prod_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ProdStockList); 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_prod_proto_rawDesc, NumEnums: 1, NumMessages: 4, NumExtensions: 0, NumServices: 1, }, GoTypes: file_prod_proto_goTypes, DependencyIndexes: file_prod_proto_depIdxs, EnumInfos: file_prod_proto_enumTypes, MessageInfos: file_prod_proto_msgTypes, }.Build() File_prod_proto = out.File file_prod_proto_rawDesc = nil file_prod_proto_goTypes = nil file_prod_proto_depIdxs = nil }