mtp2.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.11.4
  5. // source: mtp2.proto
  6. package pb
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  21. // of the legacy proto package is being used.
  22. const _ = proto.ProtoPackageIsVersion4
  23. // 消息头
  24. type MessageHead struct {
  25. state protoimpl.MessageState
  26. sizeCache protoimpl.SizeCache
  27. unknownFields protoimpl.UnknownFields
  28. FunCode *uint32 `protobuf:"varint,1,opt,name=FunCode" json:"FunCode,omitempty"` // 功能号
  29. RequestID *uint32 `protobuf:"varint,2,opt,name=RequestID" json:"RequestID,omitempty"` // 客户端的流水ID
  30. AccountID *uint64 `protobuf:"varint,3,opt,name=AccountID" json:"AccountID,omitempty"` // 账号ID
  31. AccessID *uint32 `protobuf:"varint,4,opt,name=AccessID" json:"AccessID,omitempty"` //二级分配给客户端的接入ID
  32. ClientTime *int64 `protobuf:"varint,5,opt,name=ClientTime" json:"ClientTime,omitempty"` //消息发起时间
  33. GoodsID *uint32 `protobuf:"varint,6,opt,name=GoodsID" json:"GoodsID,omitempty"` //商品ID
  34. UUID *string `protobuf:"bytes,7,opt,name=UUID" json:"UUID,omitempty"` // 消息唯一ID
  35. MarketID *uint32 `protobuf:"varint,8,opt,name=MarketID" json:"MarketID,omitempty"` // 所属市场ID
  36. UserID *uint32 `protobuf:"varint,9,opt,name=UserID" json:"UserID,omitempty"` // 用户ID
  37. ResponseTopic *string `protobuf:"bytes,10,opt,name=ResponseTopic" json:"ResponseTopic,omitempty"` // 应答消息所属主题
  38. AccountID2 *uint64 `protobuf:"varint,11,opt,name=AccountID2" json:"AccountID2,omitempty"` // 账号ID-币币交易使用
  39. }
  40. func (x *MessageHead) Reset() {
  41. *x = MessageHead{}
  42. if protoimpl.UnsafeEnabled {
  43. mi := &file_mtp2_proto_msgTypes[0]
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. ms.StoreMessageInfo(mi)
  46. }
  47. }
  48. func (x *MessageHead) String() string {
  49. return protoimpl.X.MessageStringOf(x)
  50. }
  51. func (*MessageHead) ProtoMessage() {}
  52. func (x *MessageHead) ProtoReflect() protoreflect.Message {
  53. mi := &file_mtp2_proto_msgTypes[0]
  54. if protoimpl.UnsafeEnabled && x != nil {
  55. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  56. if ms.LoadMessageInfo() == nil {
  57. ms.StoreMessageInfo(mi)
  58. }
  59. return ms
  60. }
  61. return mi.MessageOf(x)
  62. }
  63. // Deprecated: Use MessageHead.ProtoReflect.Descriptor instead.
  64. func (*MessageHead) Descriptor() ([]byte, []int) {
  65. return file_mtp2_proto_rawDescGZIP(), []int{0}
  66. }
  67. func (x *MessageHead) GetFunCode() uint32 {
  68. if x != nil && x.FunCode != nil {
  69. return *x.FunCode
  70. }
  71. return 0
  72. }
  73. func (x *MessageHead) GetRequestID() uint32 {
  74. if x != nil && x.RequestID != nil {
  75. return *x.RequestID
  76. }
  77. return 0
  78. }
  79. func (x *MessageHead) GetAccountID() uint64 {
  80. if x != nil && x.AccountID != nil {
  81. return *x.AccountID
  82. }
  83. return 0
  84. }
  85. func (x *MessageHead) GetAccessID() uint32 {
  86. if x != nil && x.AccessID != nil {
  87. return *x.AccessID
  88. }
  89. return 0
  90. }
  91. func (x *MessageHead) GetClientTime() int64 {
  92. if x != nil && x.ClientTime != nil {
  93. return *x.ClientTime
  94. }
  95. return 0
  96. }
  97. func (x *MessageHead) GetGoodsID() uint32 {
  98. if x != nil && x.GoodsID != nil {
  99. return *x.GoodsID
  100. }
  101. return 0
  102. }
  103. func (x *MessageHead) GetUUID() string {
  104. if x != nil && x.UUID != nil {
  105. return *x.UUID
  106. }
  107. return ""
  108. }
  109. func (x *MessageHead) GetMarketID() uint32 {
  110. if x != nil && x.MarketID != nil {
  111. return *x.MarketID
  112. }
  113. return 0
  114. }
  115. func (x *MessageHead) GetUserID() uint32 {
  116. if x != nil && x.UserID != nil {
  117. return *x.UserID
  118. }
  119. return 0
  120. }
  121. func (x *MessageHead) GetResponseTopic() string {
  122. if x != nil && x.ResponseTopic != nil {
  123. return *x.ResponseTopic
  124. }
  125. return ""
  126. }
  127. func (x *MessageHead) GetAccountID2() uint64 {
  128. if x != nil && x.AccountID2 != nil {
  129. return *x.AccountID2
  130. }
  131. return 0
  132. }
  133. // 铁合金成交通知
  134. type THJPurchaseTradeNtf struct {
  135. state protoimpl.MessageState
  136. sizeCache protoimpl.SizeCache
  137. unknownFields protoimpl.UnknownFields
  138. Header *MessageHead `protobuf:"bytes,1,opt,name=Header" json:"Header,omitempty"` // 消息头
  139. WRTradeDetailID *uint64 `protobuf:"varint,2,opt,name=WRTradeDetailID" json:"WRTradeDetailID,omitempty"` // uint64 预售成交明细ID
  140. }
  141. func (x *THJPurchaseTradeNtf) Reset() {
  142. *x = THJPurchaseTradeNtf{}
  143. if protoimpl.UnsafeEnabled {
  144. mi := &file_mtp2_proto_msgTypes[1]
  145. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  146. ms.StoreMessageInfo(mi)
  147. }
  148. }
  149. func (x *THJPurchaseTradeNtf) String() string {
  150. return protoimpl.X.MessageStringOf(x)
  151. }
  152. func (*THJPurchaseTradeNtf) ProtoMessage() {}
  153. func (x *THJPurchaseTradeNtf) ProtoReflect() protoreflect.Message {
  154. mi := &file_mtp2_proto_msgTypes[1]
  155. if protoimpl.UnsafeEnabled && x != nil {
  156. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  157. if ms.LoadMessageInfo() == nil {
  158. ms.StoreMessageInfo(mi)
  159. }
  160. return ms
  161. }
  162. return mi.MessageOf(x)
  163. }
  164. // Deprecated: Use THJPurchaseTradeNtf.ProtoReflect.Descriptor instead.
  165. func (*THJPurchaseTradeNtf) Descriptor() ([]byte, []int) {
  166. return file_mtp2_proto_rawDescGZIP(), []int{1}
  167. }
  168. func (x *THJPurchaseTradeNtf) GetHeader() *MessageHead {
  169. if x != nil {
  170. return x.Header
  171. }
  172. return nil
  173. }
  174. func (x *THJPurchaseTradeNtf) GetWRTradeDetailID() uint64 {
  175. if x != nil && x.WRTradeDetailID != nil {
  176. return *x.WRTradeDetailID
  177. }
  178. return 0
  179. }
  180. // 铁合金协议转让通知
  181. type PurchaseTransferNtf struct {
  182. state protoimpl.MessageState
  183. sizeCache protoimpl.SizeCache
  184. unknownFields protoimpl.UnknownFields
  185. Header *MessageHead `protobuf:"bytes,1,opt,name=Header" json:"Header,omitempty"` // 消息头
  186. TransferID *uint64 `protobuf:"varint,2,opt,name=TransferID" json:"TransferID,omitempty"` // uint64 协议转让ID
  187. }
  188. func (x *PurchaseTransferNtf) Reset() {
  189. *x = PurchaseTransferNtf{}
  190. if protoimpl.UnsafeEnabled {
  191. mi := &file_mtp2_proto_msgTypes[2]
  192. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  193. ms.StoreMessageInfo(mi)
  194. }
  195. }
  196. func (x *PurchaseTransferNtf) String() string {
  197. return protoimpl.X.MessageStringOf(x)
  198. }
  199. func (*PurchaseTransferNtf) ProtoMessage() {}
  200. func (x *PurchaseTransferNtf) ProtoReflect() protoreflect.Message {
  201. mi := &file_mtp2_proto_msgTypes[2]
  202. if protoimpl.UnsafeEnabled && x != nil {
  203. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  204. if ms.LoadMessageInfo() == nil {
  205. ms.StoreMessageInfo(mi)
  206. }
  207. return ms
  208. }
  209. return mi.MessageOf(x)
  210. }
  211. // Deprecated: Use PurchaseTransferNtf.ProtoReflect.Descriptor instead.
  212. func (*PurchaseTransferNtf) Descriptor() ([]byte, []int) {
  213. return file_mtp2_proto_rawDescGZIP(), []int{2}
  214. }
  215. func (x *PurchaseTransferNtf) GetHeader() *MessageHead {
  216. if x != nil {
  217. return x.Header
  218. }
  219. return nil
  220. }
  221. func (x *PurchaseTransferNtf) GetTransferID() uint64 {
  222. if x != nil && x.TransferID != nil {
  223. return *x.TransferID
  224. }
  225. return 0
  226. }
  227. var File_mtp2_proto protoreflect.FileDescriptor
  228. var file_mtp2_proto_rawDesc = []byte{
  229. 0x0a, 0x0a, 0x6d, 0x74, 0x70, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62,
  230. 0x22, 0xc7, 0x02, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x65, 0x61, 0x64,
  231. 0x12, 0x18, 0x0a, 0x07, 0x46, 0x75, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  232. 0x0d, 0x52, 0x07, 0x46, 0x75, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x52, 0x65,
  233. 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x52,
  234. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x41, 0x63, 0x63, 0x6f,
  235. 0x75, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x41, 0x63, 0x63,
  236. 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
  237. 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
  238. 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65,
  239. 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x69,
  240. 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x44, 0x18, 0x06, 0x20,
  241. 0x01, 0x28, 0x0d, 0x52, 0x07, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x44, 0x12, 0x12, 0x0a, 0x04,
  242. 0x55, 0x55, 0x49, 0x44, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x55, 0x55, 0x49, 0x44,
  243. 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x18, 0x08, 0x20, 0x01,
  244. 0x28, 0x0d, 0x52, 0x08, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06,
  245. 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x55, 0x73,
  246. 0x65, 0x72, 0x49, 0x44, 0x12, 0x24, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  247. 0x54, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x52, 0x65, 0x73,
  248. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1e, 0x0a, 0x0a, 0x41, 0x63,
  249. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x32, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a,
  250. 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x32, 0x22, 0x68, 0x0a, 0x13, 0x54, 0x48,
  251. 0x4a, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x54, 0x72, 0x61, 0x64, 0x65, 0x4e, 0x74,
  252. 0x66, 0x12, 0x27, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
  253. 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x65,
  254. 0x61, 0x64, 0x52, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x28, 0x0a, 0x0f, 0x57, 0x52,
  255. 0x54, 0x72, 0x61, 0x64, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x49, 0x44, 0x18, 0x02, 0x20,
  256. 0x01, 0x28, 0x04, 0x52, 0x0f, 0x57, 0x52, 0x54, 0x72, 0x61, 0x64, 0x65, 0x44, 0x65, 0x74, 0x61,
  257. 0x69, 0x6c, 0x49, 0x44, 0x22, 0x5e, 0x0a, 0x13, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65,
  258. 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4e, 0x74, 0x66, 0x12, 0x27, 0x0a, 0x06, 0x48,
  259. 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62,
  260. 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x65, 0x61, 0x64, 0x52, 0x06, 0x48, 0x65,
  261. 0x61, 0x64, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72,
  262. 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66,
  263. 0x65, 0x72, 0x49, 0x44,
  264. }
  265. var (
  266. file_mtp2_proto_rawDescOnce sync.Once
  267. file_mtp2_proto_rawDescData = file_mtp2_proto_rawDesc
  268. )
  269. func file_mtp2_proto_rawDescGZIP() []byte {
  270. file_mtp2_proto_rawDescOnce.Do(func() {
  271. file_mtp2_proto_rawDescData = protoimpl.X.CompressGZIP(file_mtp2_proto_rawDescData)
  272. })
  273. return file_mtp2_proto_rawDescData
  274. }
  275. var file_mtp2_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  276. var file_mtp2_proto_goTypes = []interface{}{
  277. (*MessageHead)(nil), // 0: pb.MessageHead
  278. (*THJPurchaseTradeNtf)(nil), // 1: pb.THJPurchaseTradeNtf
  279. (*PurchaseTransferNtf)(nil), // 2: pb.PurchaseTransferNtf
  280. }
  281. var file_mtp2_proto_depIdxs = []int32{
  282. 0, // 0: pb.THJPurchaseTradeNtf.Header:type_name -> pb.MessageHead
  283. 0, // 1: pb.PurchaseTransferNtf.Header:type_name -> pb.MessageHead
  284. 2, // [2:2] is the sub-list for method output_type
  285. 2, // [2:2] is the sub-list for method input_type
  286. 2, // [2:2] is the sub-list for extension type_name
  287. 2, // [2:2] is the sub-list for extension extendee
  288. 0, // [0:2] is the sub-list for field type_name
  289. }
  290. func init() { file_mtp2_proto_init() }
  291. func file_mtp2_proto_init() {
  292. if File_mtp2_proto != nil {
  293. return
  294. }
  295. if !protoimpl.UnsafeEnabled {
  296. file_mtp2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  297. switch v := v.(*MessageHead); i {
  298. case 0:
  299. return &v.state
  300. case 1:
  301. return &v.sizeCache
  302. case 2:
  303. return &v.unknownFields
  304. default:
  305. return nil
  306. }
  307. }
  308. file_mtp2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  309. switch v := v.(*THJPurchaseTradeNtf); i {
  310. case 0:
  311. return &v.state
  312. case 1:
  313. return &v.sizeCache
  314. case 2:
  315. return &v.unknownFields
  316. default:
  317. return nil
  318. }
  319. }
  320. file_mtp2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  321. switch v := v.(*PurchaseTransferNtf); i {
  322. case 0:
  323. return &v.state
  324. case 1:
  325. return &v.sizeCache
  326. case 2:
  327. return &v.unknownFields
  328. default:
  329. return nil
  330. }
  331. }
  332. }
  333. type x struct{}
  334. out := protoimpl.TypeBuilder{
  335. File: protoimpl.DescBuilder{
  336. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  337. RawDescriptor: file_mtp2_proto_rawDesc,
  338. NumEnums: 0,
  339. NumMessages: 3,
  340. NumExtensions: 0,
  341. NumServices: 0,
  342. },
  343. GoTypes: file_mtp2_proto_goTypes,
  344. DependencyIndexes: file_mtp2_proto_depIdxs,
  345. MessageInfos: file_mtp2_proto_msgTypes,
  346. }.Build()
  347. File_mtp2_proto = out.File
  348. file_mtp2_proto_rawDesc = nil
  349. file_mtp2_proto_goTypes = nil
  350. file_mtp2_proto_depIdxs = nil
  351. }