123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435 |
- // 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
- }
|