models.pb.go 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.0
  4. // protoc v5.26.1
  5. // source: models.proto
  6. package prod
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type ProdModel struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. ProdId int32 `protobuf:"varint,1,opt,name=prod_id,json=prodId,proto3" json:"prod_id,omitempty"`
  25. ProdName string `protobuf:"bytes,2,opt,name=prod_name,json=prodName,proto3" json:"prod_name,omitempty"`
  26. ProdPrice float32 `protobuf:"fixed32,3,opt,name=prod_price,json=prodPrice,proto3" json:"prod_price,omitempty"`
  27. }
  28. func (x *ProdModel) Reset() {
  29. *x = ProdModel{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_models_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *ProdModel) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*ProdModel) ProtoMessage() {}
  40. func (x *ProdModel) ProtoReflect() protoreflect.Message {
  41. mi := &file_models_proto_msgTypes[0]
  42. if protoimpl.UnsafeEnabled && x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use ProdModel.ProtoReflect.Descriptor instead.
  52. func (*ProdModel) Descriptor() ([]byte, []int) {
  53. return file_models_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *ProdModel) GetProdId() int32 {
  56. if x != nil {
  57. return x.ProdId
  58. }
  59. return 0
  60. }
  61. func (x *ProdModel) GetProdName() string {
  62. if x != nil {
  63. return x.ProdName
  64. }
  65. return ""
  66. }
  67. func (x *ProdModel) GetProdPrice() float32 {
  68. if x != nil {
  69. return x.ProdPrice
  70. }
  71. return 0
  72. }
  73. type ProdMain struct {
  74. state protoimpl.MessageState
  75. sizeCache protoimpl.SizeCache
  76. unknownFields protoimpl.UnknownFields
  77. OrderId int32 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
  78. OrderNo string `protobuf:"bytes,2,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
  79. UserId int32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  80. OrderMoney float32 `protobuf:"fixed32,4,opt,name=order_money,json=orderMoney,proto3" json:"order_money,omitempty"`
  81. OrderTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=order_time,json=orderTime,proto3" json:"order_time,omitempty"`
  82. }
  83. func (x *ProdMain) Reset() {
  84. *x = ProdMain{}
  85. if protoimpl.UnsafeEnabled {
  86. mi := &file_models_proto_msgTypes[1]
  87. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  88. ms.StoreMessageInfo(mi)
  89. }
  90. }
  91. func (x *ProdMain) String() string {
  92. return protoimpl.X.MessageStringOf(x)
  93. }
  94. func (*ProdMain) ProtoMessage() {}
  95. func (x *ProdMain) ProtoReflect() protoreflect.Message {
  96. mi := &file_models_proto_msgTypes[1]
  97. if protoimpl.UnsafeEnabled && x != nil {
  98. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  99. if ms.LoadMessageInfo() == nil {
  100. ms.StoreMessageInfo(mi)
  101. }
  102. return ms
  103. }
  104. return mi.MessageOf(x)
  105. }
  106. // Deprecated: Use ProdMain.ProtoReflect.Descriptor instead.
  107. func (*ProdMain) Descriptor() ([]byte, []int) {
  108. return file_models_proto_rawDescGZIP(), []int{1}
  109. }
  110. func (x *ProdMain) GetOrderId() int32 {
  111. if x != nil {
  112. return x.OrderId
  113. }
  114. return 0
  115. }
  116. func (x *ProdMain) GetOrderNo() string {
  117. if x != nil {
  118. return x.OrderNo
  119. }
  120. return ""
  121. }
  122. func (x *ProdMain) GetUserId() int32 {
  123. if x != nil {
  124. return x.UserId
  125. }
  126. return 0
  127. }
  128. func (x *ProdMain) GetOrderMoney() float32 {
  129. if x != nil {
  130. return x.OrderMoney
  131. }
  132. return 0
  133. }
  134. func (x *ProdMain) GetOrderTime() *timestamppb.Timestamp {
  135. if x != nil {
  136. return x.OrderTime
  137. }
  138. return nil
  139. }
  140. var File_models_proto protoreflect.FileDescriptor
  141. var file_models_proto_rawDesc = []byte{
  142. 0x0a, 0x0c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08,
  143. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  144. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
  145. 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x60, 0x0a, 0x09, 0x50, 0x72, 0x6f,
  146. 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x5f, 0x69,
  147. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x64, 0x49, 0x64, 0x12,
  148. 0x1b, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
  149. 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a,
  150. 0x70, 0x72, 0x6f, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02,
  151. 0x52, 0x09, 0x70, 0x72, 0x6f, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0xb5, 0x01, 0x0a, 0x08,
  152. 0x50, 0x72, 0x6f, 0x64, 0x4d, 0x61, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65,
  153. 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65,
  154. 0x72, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x6e, 0x6f, 0x18,
  155. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x12, 0x17,
  156. 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
  157. 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x72, 0x64, 0x65, 0x72,
  158. 0x5f, 0x6d, 0x6f, 0x6e, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x6f, 0x72,
  159. 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x6e, 0x65, 0x79, 0x12, 0x39, 0x0a, 0x0a, 0x6f, 0x72, 0x64, 0x65,
  160. 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
  161. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
  162. 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x54,
  163. 0x69, 0x6d, 0x65, 0x42, 0x07, 0x5a, 0x05, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x62, 0x06, 0x70, 0x72,
  164. 0x6f, 0x74, 0x6f, 0x33,
  165. }
  166. var (
  167. file_models_proto_rawDescOnce sync.Once
  168. file_models_proto_rawDescData = file_models_proto_rawDesc
  169. )
  170. func file_models_proto_rawDescGZIP() []byte {
  171. file_models_proto_rawDescOnce.Do(func() {
  172. file_models_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_proto_rawDescData)
  173. })
  174. return file_models_proto_rawDescData
  175. }
  176. var file_models_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  177. var file_models_proto_goTypes = []interface{}{
  178. (*ProdModel)(nil), // 0: services.ProdModel
  179. (*ProdMain)(nil), // 1: services.ProdMain
  180. (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
  181. }
  182. var file_models_proto_depIdxs = []int32{
  183. 2, // 0: services.ProdMain.order_time:type_name -> google.protobuf.Timestamp
  184. 1, // [1:1] is the sub-list for method output_type
  185. 1, // [1:1] is the sub-list for method input_type
  186. 1, // [1:1] is the sub-list for extension type_name
  187. 1, // [1:1] is the sub-list for extension extendee
  188. 0, // [0:1] is the sub-list for field type_name
  189. }
  190. func init() { file_models_proto_init() }
  191. func file_models_proto_init() {
  192. if File_models_proto != nil {
  193. return
  194. }
  195. if !protoimpl.UnsafeEnabled {
  196. file_models_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  197. switch v := v.(*ProdModel); i {
  198. case 0:
  199. return &v.state
  200. case 1:
  201. return &v.sizeCache
  202. case 2:
  203. return &v.unknownFields
  204. default:
  205. return nil
  206. }
  207. }
  208. file_models_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  209. switch v := v.(*ProdMain); i {
  210. case 0:
  211. return &v.state
  212. case 1:
  213. return &v.sizeCache
  214. case 2:
  215. return &v.unknownFields
  216. default:
  217. return nil
  218. }
  219. }
  220. }
  221. type x struct{}
  222. out := protoimpl.TypeBuilder{
  223. File: protoimpl.DescBuilder{
  224. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  225. RawDescriptor: file_models_proto_rawDesc,
  226. NumEnums: 0,
  227. NumMessages: 2,
  228. NumExtensions: 0,
  229. NumServices: 0,
  230. },
  231. GoTypes: file_models_proto_goTypes,
  232. DependencyIndexes: file_models_proto_depIdxs,
  233. MessageInfos: file_models_proto_msgTypes,
  234. }.Build()
  235. File_models_proto = out.File
  236. file_models_proto_rawDesc = nil
  237. file_models_proto_goTypes = nil
  238. file_models_proto_depIdxs = nil
  239. }