model.pb.go 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/main/card/model/model.proto
  3. /*
  4. Package model is a generated protocol buffer package.
  5. It is generated from these files:
  6. app/service/main/card/model/model.proto
  7. It has these top-level messages:
  8. UserEquip
  9. */
  10. package model
  11. import proto "github.com/gogo/protobuf/proto"
  12. import fmt "fmt"
  13. import math "math"
  14. import _ "github.com/gogo/protobuf/gogoproto"
  15. import io "io"
  16. // Reference imports to suppress errors if they are not otherwise used.
  17. var _ = proto.Marshal
  18. var _ = fmt.Errorf
  19. var _ = math.Inf
  20. // This is a compile-time assertion to ensure that this generated file
  21. // is compatible with the proto package it is being compiled against.
  22. // A compilation error at this line likely means your copy of the
  23. // proto package needs to be updated.
  24. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  25. type UserEquip struct {
  26. Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
  27. CardID int64 `protobuf:"varint,2,opt,name=CardID,proto3" json:"card_id"`
  28. ExpireTime int64 `protobuf:"varint,3,opt,name=ExpireTime,proto3" json:"expire_time"`
  29. }
  30. func (m *UserEquip) Reset() { *m = UserEquip{} }
  31. func (m *UserEquip) String() string { return proto.CompactTextString(m) }
  32. func (*UserEquip) ProtoMessage() {}
  33. func (*UserEquip) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{0} }
  34. func init() {
  35. proto.RegisterType((*UserEquip)(nil), "account.service.card.UserEquip")
  36. }
  37. func (m *UserEquip) Marshal() (dAtA []byte, err error) {
  38. size := m.Size()
  39. dAtA = make([]byte, size)
  40. n, err := m.MarshalTo(dAtA)
  41. if err != nil {
  42. return nil, err
  43. }
  44. return dAtA[:n], nil
  45. }
  46. func (m *UserEquip) MarshalTo(dAtA []byte) (int, error) {
  47. var i int
  48. _ = i
  49. var l int
  50. _ = l
  51. if m.Mid != 0 {
  52. dAtA[i] = 0x8
  53. i++
  54. i = encodeVarintModel(dAtA, i, uint64(m.Mid))
  55. }
  56. if m.CardID != 0 {
  57. dAtA[i] = 0x10
  58. i++
  59. i = encodeVarintModel(dAtA, i, uint64(m.CardID))
  60. }
  61. if m.ExpireTime != 0 {
  62. dAtA[i] = 0x18
  63. i++
  64. i = encodeVarintModel(dAtA, i, uint64(m.ExpireTime))
  65. }
  66. return i, nil
  67. }
  68. func encodeVarintModel(dAtA []byte, offset int, v uint64) int {
  69. for v >= 1<<7 {
  70. dAtA[offset] = uint8(v&0x7f | 0x80)
  71. v >>= 7
  72. offset++
  73. }
  74. dAtA[offset] = uint8(v)
  75. return offset + 1
  76. }
  77. func (m *UserEquip) Size() (n int) {
  78. var l int
  79. _ = l
  80. if m.Mid != 0 {
  81. n += 1 + sovModel(uint64(m.Mid))
  82. }
  83. if m.CardID != 0 {
  84. n += 1 + sovModel(uint64(m.CardID))
  85. }
  86. if m.ExpireTime != 0 {
  87. n += 1 + sovModel(uint64(m.ExpireTime))
  88. }
  89. return n
  90. }
  91. func sovModel(x uint64) (n int) {
  92. for {
  93. n++
  94. x >>= 7
  95. if x == 0 {
  96. break
  97. }
  98. }
  99. return n
  100. }
  101. func sozModel(x uint64) (n int) {
  102. return sovModel(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  103. }
  104. func (m *UserEquip) Unmarshal(dAtA []byte) error {
  105. l := len(dAtA)
  106. iNdEx := 0
  107. for iNdEx < l {
  108. preIndex := iNdEx
  109. var wire uint64
  110. for shift := uint(0); ; shift += 7 {
  111. if shift >= 64 {
  112. return ErrIntOverflowModel
  113. }
  114. if iNdEx >= l {
  115. return io.ErrUnexpectedEOF
  116. }
  117. b := dAtA[iNdEx]
  118. iNdEx++
  119. wire |= (uint64(b) & 0x7F) << shift
  120. if b < 0x80 {
  121. break
  122. }
  123. }
  124. fieldNum := int32(wire >> 3)
  125. wireType := int(wire & 0x7)
  126. if wireType == 4 {
  127. return fmt.Errorf("proto: UserEquip: wiretype end group for non-group")
  128. }
  129. if fieldNum <= 0 {
  130. return fmt.Errorf("proto: UserEquip: illegal tag %d (wire type %d)", fieldNum, wire)
  131. }
  132. switch fieldNum {
  133. case 1:
  134. if wireType != 0 {
  135. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  136. }
  137. m.Mid = 0
  138. for shift := uint(0); ; shift += 7 {
  139. if shift >= 64 {
  140. return ErrIntOverflowModel
  141. }
  142. if iNdEx >= l {
  143. return io.ErrUnexpectedEOF
  144. }
  145. b := dAtA[iNdEx]
  146. iNdEx++
  147. m.Mid |= (int64(b) & 0x7F) << shift
  148. if b < 0x80 {
  149. break
  150. }
  151. }
  152. case 2:
  153. if wireType != 0 {
  154. return fmt.Errorf("proto: wrong wireType = %d for field CardID", wireType)
  155. }
  156. m.CardID = 0
  157. for shift := uint(0); ; shift += 7 {
  158. if shift >= 64 {
  159. return ErrIntOverflowModel
  160. }
  161. if iNdEx >= l {
  162. return io.ErrUnexpectedEOF
  163. }
  164. b := dAtA[iNdEx]
  165. iNdEx++
  166. m.CardID |= (int64(b) & 0x7F) << shift
  167. if b < 0x80 {
  168. break
  169. }
  170. }
  171. case 3:
  172. if wireType != 0 {
  173. return fmt.Errorf("proto: wrong wireType = %d for field ExpireTime", wireType)
  174. }
  175. m.ExpireTime = 0
  176. for shift := uint(0); ; shift += 7 {
  177. if shift >= 64 {
  178. return ErrIntOverflowModel
  179. }
  180. if iNdEx >= l {
  181. return io.ErrUnexpectedEOF
  182. }
  183. b := dAtA[iNdEx]
  184. iNdEx++
  185. m.ExpireTime |= (int64(b) & 0x7F) << shift
  186. if b < 0x80 {
  187. break
  188. }
  189. }
  190. default:
  191. iNdEx = preIndex
  192. skippy, err := skipModel(dAtA[iNdEx:])
  193. if err != nil {
  194. return err
  195. }
  196. if skippy < 0 {
  197. return ErrInvalidLengthModel
  198. }
  199. if (iNdEx + skippy) > l {
  200. return io.ErrUnexpectedEOF
  201. }
  202. iNdEx += skippy
  203. }
  204. }
  205. if iNdEx > l {
  206. return io.ErrUnexpectedEOF
  207. }
  208. return nil
  209. }
  210. func skipModel(dAtA []byte) (n int, err error) {
  211. l := len(dAtA)
  212. iNdEx := 0
  213. for iNdEx < l {
  214. var wire uint64
  215. for shift := uint(0); ; shift += 7 {
  216. if shift >= 64 {
  217. return 0, ErrIntOverflowModel
  218. }
  219. if iNdEx >= l {
  220. return 0, io.ErrUnexpectedEOF
  221. }
  222. b := dAtA[iNdEx]
  223. iNdEx++
  224. wire |= (uint64(b) & 0x7F) << shift
  225. if b < 0x80 {
  226. break
  227. }
  228. }
  229. wireType := int(wire & 0x7)
  230. switch wireType {
  231. case 0:
  232. for shift := uint(0); ; shift += 7 {
  233. if shift >= 64 {
  234. return 0, ErrIntOverflowModel
  235. }
  236. if iNdEx >= l {
  237. return 0, io.ErrUnexpectedEOF
  238. }
  239. iNdEx++
  240. if dAtA[iNdEx-1] < 0x80 {
  241. break
  242. }
  243. }
  244. return iNdEx, nil
  245. case 1:
  246. iNdEx += 8
  247. return iNdEx, nil
  248. case 2:
  249. var length int
  250. for shift := uint(0); ; shift += 7 {
  251. if shift >= 64 {
  252. return 0, ErrIntOverflowModel
  253. }
  254. if iNdEx >= l {
  255. return 0, io.ErrUnexpectedEOF
  256. }
  257. b := dAtA[iNdEx]
  258. iNdEx++
  259. length |= (int(b) & 0x7F) << shift
  260. if b < 0x80 {
  261. break
  262. }
  263. }
  264. iNdEx += length
  265. if length < 0 {
  266. return 0, ErrInvalidLengthModel
  267. }
  268. return iNdEx, nil
  269. case 3:
  270. for {
  271. var innerWire uint64
  272. var start int = iNdEx
  273. for shift := uint(0); ; shift += 7 {
  274. if shift >= 64 {
  275. return 0, ErrIntOverflowModel
  276. }
  277. if iNdEx >= l {
  278. return 0, io.ErrUnexpectedEOF
  279. }
  280. b := dAtA[iNdEx]
  281. iNdEx++
  282. innerWire |= (uint64(b) & 0x7F) << shift
  283. if b < 0x80 {
  284. break
  285. }
  286. }
  287. innerWireType := int(innerWire & 0x7)
  288. if innerWireType == 4 {
  289. break
  290. }
  291. next, err := skipModel(dAtA[start:])
  292. if err != nil {
  293. return 0, err
  294. }
  295. iNdEx = start + next
  296. }
  297. return iNdEx, nil
  298. case 4:
  299. return iNdEx, nil
  300. case 5:
  301. iNdEx += 4
  302. return iNdEx, nil
  303. default:
  304. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  305. }
  306. }
  307. panic("unreachable")
  308. }
  309. var (
  310. ErrInvalidLengthModel = fmt.Errorf("proto: negative length found during unmarshaling")
  311. ErrIntOverflowModel = fmt.Errorf("proto: integer overflow")
  312. )
  313. func init() { proto.RegisterFile("app/service/main/card/model/model.proto", fileDescriptorModel) }
  314. var fileDescriptorModel = []byte{
  315. // 238 bytes of a gzipped FileDescriptorProto
  316. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4f, 0x2c, 0x28, 0xd0,
  317. 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0xcf, 0x4d, 0xcc, 0xcc, 0xd3, 0x4f, 0x4e, 0x2c,
  318. 0x4a, 0xd1, 0xcf, 0xcd, 0x4f, 0x49, 0xcd, 0x81, 0x90, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42,
  319. 0x22, 0x89, 0xc9, 0xc9, 0xf9, 0xa5, 0x79, 0x25, 0x7a, 0x50, 0xc5, 0x7a, 0x20, 0x75, 0x52, 0xba,
  320. 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xe9, 0xf9, 0xe9, 0xf9, 0xfa,
  321. 0x60, 0xc5, 0x49, 0xa5, 0x69, 0x60, 0x1e, 0x98, 0x03, 0x66, 0x41, 0x0c, 0x51, 0xaa, 0xe1, 0xe2,
  322. 0x0c, 0x2d, 0x4e, 0x2d, 0x72, 0x2d, 0x2c, 0xcd, 0x2c, 0x10, 0x92, 0xe4, 0x62, 0xf6, 0xcd, 0x4c,
  323. 0x91, 0x60, 0x54, 0x60, 0xd4, 0x60, 0x76, 0x62, 0x7f, 0x75, 0x4f, 0x9e, 0x39, 0x37, 0x33, 0x25,
  324. 0x08, 0x24, 0x26, 0xa4, 0xcc, 0xc5, 0xe6, 0x9c, 0x58, 0x94, 0xe2, 0xe9, 0x22, 0xc1, 0x04, 0x96,
  325. 0xe5, 0x7e, 0x75, 0x4f, 0x9e, 0x1d, 0x64, 0x61, 0x7c, 0x66, 0x4a, 0x10, 0x54, 0x4a, 0x48, 0x9f,
  326. 0x8b, 0xcb, 0xb5, 0xa2, 0x20, 0xb3, 0x28, 0x35, 0x24, 0x33, 0x37, 0x55, 0x82, 0x19, 0xac, 0x90,
  327. 0xff, 0xd5, 0x3d, 0x79, 0xee, 0x54, 0xb0, 0x68, 0x7c, 0x49, 0x66, 0x6e, 0x6a, 0x10, 0x92, 0x12,
  328. 0x27, 0xe9, 0x13, 0x0f, 0xe5, 0x18, 0x2e, 0x3c, 0x94, 0x63, 0x38, 0xf1, 0x48, 0x8e, 0xf1, 0xc2,
  329. 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0xa3, 0x58, 0xc1, 0xbe, 0x4c, 0x62, 0x03, 0xbb, 0xd0,
  330. 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xe4, 0xac, 0x3c, 0x2e, 0x11, 0x01, 0x00, 0x00,
  331. }