mtp2.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  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. var File_mtp2_proto protoreflect.FileDescriptor
  181. var file_mtp2_proto_rawDesc = []byte{
  182. 0x0a, 0x0a, 0x6d, 0x74, 0x70, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62,
  183. 0x22, 0xc7, 0x02, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x65, 0x61, 0x64,
  184. 0x12, 0x18, 0x0a, 0x07, 0x46, 0x75, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  185. 0x0d, 0x52, 0x07, 0x46, 0x75, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x52, 0x65,
  186. 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x52,
  187. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x41, 0x63, 0x63, 0x6f,
  188. 0x75, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x41, 0x63, 0x63,
  189. 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
  190. 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
  191. 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65,
  192. 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x69,
  193. 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x44, 0x18, 0x06, 0x20,
  194. 0x01, 0x28, 0x0d, 0x52, 0x07, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x44, 0x12, 0x12, 0x0a, 0x04,
  195. 0x55, 0x55, 0x49, 0x44, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x55, 0x55, 0x49, 0x44,
  196. 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x18, 0x08, 0x20, 0x01,
  197. 0x28, 0x0d, 0x52, 0x08, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06,
  198. 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x55, 0x73,
  199. 0x65, 0x72, 0x49, 0x44, 0x12, 0x24, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  200. 0x54, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x52, 0x65, 0x73,
  201. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1e, 0x0a, 0x0a, 0x41, 0x63,
  202. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x32, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a,
  203. 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x32, 0x22, 0x68, 0x0a, 0x13, 0x54, 0x48,
  204. 0x4a, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x54, 0x72, 0x61, 0x64, 0x65, 0x4e, 0x74,
  205. 0x66, 0x12, 0x27, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
  206. 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x65,
  207. 0x61, 0x64, 0x52, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x28, 0x0a, 0x0f, 0x57, 0x52,
  208. 0x54, 0x72, 0x61, 0x64, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x49, 0x44, 0x18, 0x02, 0x20,
  209. 0x01, 0x28, 0x04, 0x52, 0x0f, 0x57, 0x52, 0x54, 0x72, 0x61, 0x64, 0x65, 0x44, 0x65, 0x74, 0x61,
  210. 0x69, 0x6c, 0x49, 0x44,
  211. }
  212. var (
  213. file_mtp2_proto_rawDescOnce sync.Once
  214. file_mtp2_proto_rawDescData = file_mtp2_proto_rawDesc
  215. )
  216. func file_mtp2_proto_rawDescGZIP() []byte {
  217. file_mtp2_proto_rawDescOnce.Do(func() {
  218. file_mtp2_proto_rawDescData = protoimpl.X.CompressGZIP(file_mtp2_proto_rawDescData)
  219. })
  220. return file_mtp2_proto_rawDescData
  221. }
  222. var file_mtp2_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  223. var file_mtp2_proto_goTypes = []interface{}{
  224. (*MessageHead)(nil), // 0: pb.MessageHead
  225. (*THJPurchaseTradeNtf)(nil), // 1: pb.THJPurchaseTradeNtf
  226. }
  227. var file_mtp2_proto_depIdxs = []int32{
  228. 0, // 0: pb.THJPurchaseTradeNtf.Header:type_name -> pb.MessageHead
  229. 1, // [1:1] is the sub-list for method output_type
  230. 1, // [1:1] is the sub-list for method input_type
  231. 1, // [1:1] is the sub-list for extension type_name
  232. 1, // [1:1] is the sub-list for extension extendee
  233. 0, // [0:1] is the sub-list for field type_name
  234. }
  235. func init() { file_mtp2_proto_init() }
  236. func file_mtp2_proto_init() {
  237. if File_mtp2_proto != nil {
  238. return
  239. }
  240. if !protoimpl.UnsafeEnabled {
  241. file_mtp2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  242. switch v := v.(*MessageHead); i {
  243. case 0:
  244. return &v.state
  245. case 1:
  246. return &v.sizeCache
  247. case 2:
  248. return &v.unknownFields
  249. default:
  250. return nil
  251. }
  252. }
  253. file_mtp2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  254. switch v := v.(*THJPurchaseTradeNtf); i {
  255. case 0:
  256. return &v.state
  257. case 1:
  258. return &v.sizeCache
  259. case 2:
  260. return &v.unknownFields
  261. default:
  262. return nil
  263. }
  264. }
  265. }
  266. type x struct{}
  267. out := protoimpl.TypeBuilder{
  268. File: protoimpl.DescBuilder{
  269. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  270. RawDescriptor: file_mtp2_proto_rawDesc,
  271. NumEnums: 0,
  272. NumMessages: 2,
  273. NumExtensions: 0,
  274. NumServices: 0,
  275. },
  276. GoTypes: file_mtp2_proto_goTypes,
  277. DependencyIndexes: file_mtp2_proto_depIdxs,
  278. MessageInfos: file_mtp2_proto_msgTypes,
  279. }.Build()
  280. File_mtp2_proto = out.File
  281. file_mtp2_proto_rawDesc = nil
  282. file_mtp2_proto_goTypes = nil
  283. file_mtp2_proto_depIdxs = nil
  284. }