api.pb.go 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/main/vipinfo/api/grpc/v1/api.proto
  3. /*
  4. Package v1 is a generated protocol buffer package.
  5. use {app_id}.{version} as package name
  6. It is generated from these files:
  7. app/service/main/vipinfo/api/grpc/v1/api.proto
  8. It has these top-level messages:
  9. InfoReply
  10. InfoReq
  11. InfosReply
  12. InfosReq
  13. ModelInfo
  14. */
  15. package v1
  16. import proto "github.com/gogo/protobuf/proto"
  17. import fmt "fmt"
  18. import math "math"
  19. import _ "github.com/gogo/protobuf/gogoproto"
  20. import context "golang.org/x/net/context"
  21. import grpc "google.golang.org/grpc"
  22. import io "io"
  23. // Reference imports to suppress errors if they are not otherwise used.
  24. var _ = proto.Marshal
  25. var _ = fmt.Errorf
  26. var _ = math.Inf
  27. // This is a compile-time assertion to ensure that this generated file
  28. // is compatible with the proto package it is being compiled against.
  29. // A compilation error at this line likely means your copy of the
  30. // proto package needs to be updated.
  31. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  32. type InfoReply struct {
  33. Res *ModelInfo `protobuf:"bytes,1,opt,name=res" json:"res,omitempty"`
  34. }
  35. func (m *InfoReply) Reset() { *m = InfoReply{} }
  36. func (m *InfoReply) String() string { return proto.CompactTextString(m) }
  37. func (*InfoReply) ProtoMessage() {}
  38. func (*InfoReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} }
  39. func (m *InfoReply) GetRes() *ModelInfo {
  40. if m != nil {
  41. return m.Res
  42. }
  43. return nil
  44. }
  45. type InfoReq struct {
  46. Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
  47. }
  48. func (m *InfoReq) Reset() { *m = InfoReq{} }
  49. func (m *InfoReq) String() string { return proto.CompactTextString(m) }
  50. func (*InfoReq) ProtoMessage() {}
  51. func (*InfoReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} }
  52. func (m *InfoReq) GetMid() int64 {
  53. if m != nil {
  54. return m.Mid
  55. }
  56. return 0
  57. }
  58. type InfosReply struct {
  59. Res map[int64]*ModelInfo `protobuf:"bytes,1,rep,name=res" json:"res,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  60. }
  61. func (m *InfosReply) Reset() { *m = InfosReply{} }
  62. func (m *InfosReply) String() string { return proto.CompactTextString(m) }
  63. func (*InfosReply) ProtoMessage() {}
  64. func (*InfosReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} }
  65. func (m *InfosReply) GetRes() map[int64]*ModelInfo {
  66. if m != nil {
  67. return m.Res
  68. }
  69. return nil
  70. }
  71. type InfosReq struct {
  72. Mids []int64 `protobuf:"varint,2,rep,packed,name=mids" json:"mids,omitempty"`
  73. }
  74. func (m *InfosReq) Reset() { *m = InfosReq{} }
  75. func (m *InfosReq) String() string { return proto.CompactTextString(m) }
  76. func (*InfosReq) ProtoMessage() {}
  77. func (*InfosReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{3} }
  78. func (m *InfosReq) GetMids() []int64 {
  79. if m != nil {
  80. return m.Mids
  81. }
  82. return nil
  83. }
  84. type ModelInfo struct {
  85. Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type"`
  86. Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status"`
  87. DueDate int64 `protobuf:"varint,3,opt,name=due_date,json=dueDate,proto3" json:"due_date"`
  88. VipPayType int32 `protobuf:"varint,4,opt,name=vip_pay_type,json=vipPayType,proto3" json:"vip_pay_type"`
  89. }
  90. func (m *ModelInfo) Reset() { *m = ModelInfo{} }
  91. func (m *ModelInfo) String() string { return proto.CompactTextString(m) }
  92. func (*ModelInfo) ProtoMessage() {}
  93. func (*ModelInfo) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{4} }
  94. func (m *ModelInfo) GetType() int32 {
  95. if m != nil {
  96. return m.Type
  97. }
  98. return 0
  99. }
  100. func (m *ModelInfo) GetStatus() int32 {
  101. if m != nil {
  102. return m.Status
  103. }
  104. return 0
  105. }
  106. func (m *ModelInfo) GetDueDate() int64 {
  107. if m != nil {
  108. return m.DueDate
  109. }
  110. return 0
  111. }
  112. func (m *ModelInfo) GetVipPayType() int32 {
  113. if m != nil {
  114. return m.VipPayType
  115. }
  116. return 0
  117. }
  118. func init() {
  119. proto.RegisterType((*InfoReply)(nil), "vipinfo.service.v1.InfoReply")
  120. proto.RegisterType((*InfoReq)(nil), "vipinfo.service.v1.InfoReq")
  121. proto.RegisterType((*InfosReply)(nil), "vipinfo.service.v1.InfosReply")
  122. proto.RegisterType((*InfosReq)(nil), "vipinfo.service.v1.InfosReq")
  123. proto.RegisterType((*ModelInfo)(nil), "vipinfo.service.v1.ModelInfo")
  124. }
  125. // Reference imports to suppress errors if they are not otherwise used.
  126. var _ context.Context
  127. var _ grpc.ClientConn
  128. // This is a compile-time assertion to ensure that this generated file
  129. // is compatible with the grpc package it is being compiled against.
  130. const _ = grpc.SupportPackageIsVersion4
  131. // Client API for VipInfo service
  132. type VipInfoClient interface {
  133. // Info get vipinfo by mid.
  134. Info(ctx context.Context, in *InfoReq, opts ...grpc.CallOption) (*InfoReply, error)
  135. // Infos get vipinfos by mids
  136. Infos(ctx context.Context, in *InfosReq, opts ...grpc.CallOption) (*InfosReply, error)
  137. }
  138. type vipInfoClient struct {
  139. cc *grpc.ClientConn
  140. }
  141. func NewVipInfoClient(cc *grpc.ClientConn) VipInfoClient {
  142. return &vipInfoClient{cc}
  143. }
  144. func (c *vipInfoClient) Info(ctx context.Context, in *InfoReq, opts ...grpc.CallOption) (*InfoReply, error) {
  145. out := new(InfoReply)
  146. err := grpc.Invoke(ctx, "/vipinfo.service.v1.VipInfo/Info", in, out, c.cc, opts...)
  147. if err != nil {
  148. return nil, err
  149. }
  150. return out, nil
  151. }
  152. func (c *vipInfoClient) Infos(ctx context.Context, in *InfosReq, opts ...grpc.CallOption) (*InfosReply, error) {
  153. out := new(InfosReply)
  154. err := grpc.Invoke(ctx, "/vipinfo.service.v1.VipInfo/Infos", in, out, c.cc, opts...)
  155. if err != nil {
  156. return nil, err
  157. }
  158. return out, nil
  159. }
  160. // Server API for VipInfo service
  161. type VipInfoServer interface {
  162. // Info get vipinfo by mid.
  163. Info(context.Context, *InfoReq) (*InfoReply, error)
  164. // Infos get vipinfos by mids
  165. Infos(context.Context, *InfosReq) (*InfosReply, error)
  166. }
  167. func RegisterVipInfoServer(s *grpc.Server, srv VipInfoServer) {
  168. s.RegisterService(&_VipInfo_serviceDesc, srv)
  169. }
  170. func _VipInfo_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  171. in := new(InfoReq)
  172. if err := dec(in); err != nil {
  173. return nil, err
  174. }
  175. if interceptor == nil {
  176. return srv.(VipInfoServer).Info(ctx, in)
  177. }
  178. info := &grpc.UnaryServerInfo{
  179. Server: srv,
  180. FullMethod: "/vipinfo.service.v1.VipInfo/Info",
  181. }
  182. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  183. return srv.(VipInfoServer).Info(ctx, req.(*InfoReq))
  184. }
  185. return interceptor(ctx, in, info, handler)
  186. }
  187. func _VipInfo_Infos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  188. in := new(InfosReq)
  189. if err := dec(in); err != nil {
  190. return nil, err
  191. }
  192. if interceptor == nil {
  193. return srv.(VipInfoServer).Infos(ctx, in)
  194. }
  195. info := &grpc.UnaryServerInfo{
  196. Server: srv,
  197. FullMethod: "/vipinfo.service.v1.VipInfo/Infos",
  198. }
  199. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  200. return srv.(VipInfoServer).Infos(ctx, req.(*InfosReq))
  201. }
  202. return interceptor(ctx, in, info, handler)
  203. }
  204. var _VipInfo_serviceDesc = grpc.ServiceDesc{
  205. ServiceName: "vipinfo.service.v1.VipInfo",
  206. HandlerType: (*VipInfoServer)(nil),
  207. Methods: []grpc.MethodDesc{
  208. {
  209. MethodName: "Info",
  210. Handler: _VipInfo_Info_Handler,
  211. },
  212. {
  213. MethodName: "Infos",
  214. Handler: _VipInfo_Infos_Handler,
  215. },
  216. },
  217. Streams: []grpc.StreamDesc{},
  218. Metadata: "app/service/main/vipinfo/api/grpc/v1/api.proto",
  219. }
  220. func (m *InfoReply) Marshal() (dAtA []byte, err error) {
  221. size := m.Size()
  222. dAtA = make([]byte, size)
  223. n, err := m.MarshalTo(dAtA)
  224. if err != nil {
  225. return nil, err
  226. }
  227. return dAtA[:n], nil
  228. }
  229. func (m *InfoReply) MarshalTo(dAtA []byte) (int, error) {
  230. var i int
  231. _ = i
  232. var l int
  233. _ = l
  234. if m.Res != nil {
  235. dAtA[i] = 0xa
  236. i++
  237. i = encodeVarintApi(dAtA, i, uint64(m.Res.Size()))
  238. n1, err := m.Res.MarshalTo(dAtA[i:])
  239. if err != nil {
  240. return 0, err
  241. }
  242. i += n1
  243. }
  244. return i, nil
  245. }
  246. func (m *InfoReq) Marshal() (dAtA []byte, err error) {
  247. size := m.Size()
  248. dAtA = make([]byte, size)
  249. n, err := m.MarshalTo(dAtA)
  250. if err != nil {
  251. return nil, err
  252. }
  253. return dAtA[:n], nil
  254. }
  255. func (m *InfoReq) MarshalTo(dAtA []byte) (int, error) {
  256. var i int
  257. _ = i
  258. var l int
  259. _ = l
  260. if m.Mid != 0 {
  261. dAtA[i] = 0x10
  262. i++
  263. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  264. }
  265. return i, nil
  266. }
  267. func (m *InfosReply) Marshal() (dAtA []byte, err error) {
  268. size := m.Size()
  269. dAtA = make([]byte, size)
  270. n, err := m.MarshalTo(dAtA)
  271. if err != nil {
  272. return nil, err
  273. }
  274. return dAtA[:n], nil
  275. }
  276. func (m *InfosReply) MarshalTo(dAtA []byte) (int, error) {
  277. var i int
  278. _ = i
  279. var l int
  280. _ = l
  281. if len(m.Res) > 0 {
  282. for k, _ := range m.Res {
  283. dAtA[i] = 0xa
  284. i++
  285. v := m.Res[k]
  286. msgSize := 0
  287. if v != nil {
  288. msgSize = v.Size()
  289. msgSize += 1 + sovApi(uint64(msgSize))
  290. }
  291. mapSize := 1 + sovApi(uint64(k)) + msgSize
  292. i = encodeVarintApi(dAtA, i, uint64(mapSize))
  293. dAtA[i] = 0x8
  294. i++
  295. i = encodeVarintApi(dAtA, i, uint64(k))
  296. if v != nil {
  297. dAtA[i] = 0x12
  298. i++
  299. i = encodeVarintApi(dAtA, i, uint64(v.Size()))
  300. n2, err := v.MarshalTo(dAtA[i:])
  301. if err != nil {
  302. return 0, err
  303. }
  304. i += n2
  305. }
  306. }
  307. }
  308. return i, nil
  309. }
  310. func (m *InfosReq) Marshal() (dAtA []byte, err error) {
  311. size := m.Size()
  312. dAtA = make([]byte, size)
  313. n, err := m.MarshalTo(dAtA)
  314. if err != nil {
  315. return nil, err
  316. }
  317. return dAtA[:n], nil
  318. }
  319. func (m *InfosReq) MarshalTo(dAtA []byte) (int, error) {
  320. var i int
  321. _ = i
  322. var l int
  323. _ = l
  324. if len(m.Mids) > 0 {
  325. dAtA4 := make([]byte, len(m.Mids)*10)
  326. var j3 int
  327. for _, num1 := range m.Mids {
  328. num := uint64(num1)
  329. for num >= 1<<7 {
  330. dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80)
  331. num >>= 7
  332. j3++
  333. }
  334. dAtA4[j3] = uint8(num)
  335. j3++
  336. }
  337. dAtA[i] = 0x12
  338. i++
  339. i = encodeVarintApi(dAtA, i, uint64(j3))
  340. i += copy(dAtA[i:], dAtA4[:j3])
  341. }
  342. return i, nil
  343. }
  344. func (m *ModelInfo) Marshal() (dAtA []byte, err error) {
  345. size := m.Size()
  346. dAtA = make([]byte, size)
  347. n, err := m.MarshalTo(dAtA)
  348. if err != nil {
  349. return nil, err
  350. }
  351. return dAtA[:n], nil
  352. }
  353. func (m *ModelInfo) MarshalTo(dAtA []byte) (int, error) {
  354. var i int
  355. _ = i
  356. var l int
  357. _ = l
  358. if m.Type != 0 {
  359. dAtA[i] = 0x8
  360. i++
  361. i = encodeVarintApi(dAtA, i, uint64(m.Type))
  362. }
  363. if m.Status != 0 {
  364. dAtA[i] = 0x10
  365. i++
  366. i = encodeVarintApi(dAtA, i, uint64(m.Status))
  367. }
  368. if m.DueDate != 0 {
  369. dAtA[i] = 0x18
  370. i++
  371. i = encodeVarintApi(dAtA, i, uint64(m.DueDate))
  372. }
  373. if m.VipPayType != 0 {
  374. dAtA[i] = 0x20
  375. i++
  376. i = encodeVarintApi(dAtA, i, uint64(m.VipPayType))
  377. }
  378. return i, nil
  379. }
  380. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  381. for v >= 1<<7 {
  382. dAtA[offset] = uint8(v&0x7f | 0x80)
  383. v >>= 7
  384. offset++
  385. }
  386. dAtA[offset] = uint8(v)
  387. return offset + 1
  388. }
  389. func (m *InfoReply) Size() (n int) {
  390. var l int
  391. _ = l
  392. if m.Res != nil {
  393. l = m.Res.Size()
  394. n += 1 + l + sovApi(uint64(l))
  395. }
  396. return n
  397. }
  398. func (m *InfoReq) Size() (n int) {
  399. var l int
  400. _ = l
  401. if m.Mid != 0 {
  402. n += 1 + sovApi(uint64(m.Mid))
  403. }
  404. return n
  405. }
  406. func (m *InfosReply) Size() (n int) {
  407. var l int
  408. _ = l
  409. if len(m.Res) > 0 {
  410. for k, v := range m.Res {
  411. _ = k
  412. _ = v
  413. l = 0
  414. if v != nil {
  415. l = v.Size()
  416. l += 1 + sovApi(uint64(l))
  417. }
  418. mapEntrySize := 1 + sovApi(uint64(k)) + l
  419. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  420. }
  421. }
  422. return n
  423. }
  424. func (m *InfosReq) Size() (n int) {
  425. var l int
  426. _ = l
  427. if len(m.Mids) > 0 {
  428. l = 0
  429. for _, e := range m.Mids {
  430. l += sovApi(uint64(e))
  431. }
  432. n += 1 + sovApi(uint64(l)) + l
  433. }
  434. return n
  435. }
  436. func (m *ModelInfo) Size() (n int) {
  437. var l int
  438. _ = l
  439. if m.Type != 0 {
  440. n += 1 + sovApi(uint64(m.Type))
  441. }
  442. if m.Status != 0 {
  443. n += 1 + sovApi(uint64(m.Status))
  444. }
  445. if m.DueDate != 0 {
  446. n += 1 + sovApi(uint64(m.DueDate))
  447. }
  448. if m.VipPayType != 0 {
  449. n += 1 + sovApi(uint64(m.VipPayType))
  450. }
  451. return n
  452. }
  453. func sovApi(x uint64) (n int) {
  454. for {
  455. n++
  456. x >>= 7
  457. if x == 0 {
  458. break
  459. }
  460. }
  461. return n
  462. }
  463. func sozApi(x uint64) (n int) {
  464. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  465. }
  466. func (m *InfoReply) Unmarshal(dAtA []byte) error {
  467. l := len(dAtA)
  468. iNdEx := 0
  469. for iNdEx < l {
  470. preIndex := iNdEx
  471. var wire uint64
  472. for shift := uint(0); ; shift += 7 {
  473. if shift >= 64 {
  474. return ErrIntOverflowApi
  475. }
  476. if iNdEx >= l {
  477. return io.ErrUnexpectedEOF
  478. }
  479. b := dAtA[iNdEx]
  480. iNdEx++
  481. wire |= (uint64(b) & 0x7F) << shift
  482. if b < 0x80 {
  483. break
  484. }
  485. }
  486. fieldNum := int32(wire >> 3)
  487. wireType := int(wire & 0x7)
  488. if wireType == 4 {
  489. return fmt.Errorf("proto: InfoReply: wiretype end group for non-group")
  490. }
  491. if fieldNum <= 0 {
  492. return fmt.Errorf("proto: InfoReply: illegal tag %d (wire type %d)", fieldNum, wire)
  493. }
  494. switch fieldNum {
  495. case 1:
  496. if wireType != 2 {
  497. return fmt.Errorf("proto: wrong wireType = %d for field Res", wireType)
  498. }
  499. var msglen int
  500. for shift := uint(0); ; shift += 7 {
  501. if shift >= 64 {
  502. return ErrIntOverflowApi
  503. }
  504. if iNdEx >= l {
  505. return io.ErrUnexpectedEOF
  506. }
  507. b := dAtA[iNdEx]
  508. iNdEx++
  509. msglen |= (int(b) & 0x7F) << shift
  510. if b < 0x80 {
  511. break
  512. }
  513. }
  514. if msglen < 0 {
  515. return ErrInvalidLengthApi
  516. }
  517. postIndex := iNdEx + msglen
  518. if postIndex > l {
  519. return io.ErrUnexpectedEOF
  520. }
  521. if m.Res == nil {
  522. m.Res = &ModelInfo{}
  523. }
  524. if err := m.Res.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  525. return err
  526. }
  527. iNdEx = postIndex
  528. default:
  529. iNdEx = preIndex
  530. skippy, err := skipApi(dAtA[iNdEx:])
  531. if err != nil {
  532. return err
  533. }
  534. if skippy < 0 {
  535. return ErrInvalidLengthApi
  536. }
  537. if (iNdEx + skippy) > l {
  538. return io.ErrUnexpectedEOF
  539. }
  540. iNdEx += skippy
  541. }
  542. }
  543. if iNdEx > l {
  544. return io.ErrUnexpectedEOF
  545. }
  546. return nil
  547. }
  548. func (m *InfoReq) Unmarshal(dAtA []byte) error {
  549. l := len(dAtA)
  550. iNdEx := 0
  551. for iNdEx < l {
  552. preIndex := iNdEx
  553. var wire uint64
  554. for shift := uint(0); ; shift += 7 {
  555. if shift >= 64 {
  556. return ErrIntOverflowApi
  557. }
  558. if iNdEx >= l {
  559. return io.ErrUnexpectedEOF
  560. }
  561. b := dAtA[iNdEx]
  562. iNdEx++
  563. wire |= (uint64(b) & 0x7F) << shift
  564. if b < 0x80 {
  565. break
  566. }
  567. }
  568. fieldNum := int32(wire >> 3)
  569. wireType := int(wire & 0x7)
  570. if wireType == 4 {
  571. return fmt.Errorf("proto: InfoReq: wiretype end group for non-group")
  572. }
  573. if fieldNum <= 0 {
  574. return fmt.Errorf("proto: InfoReq: illegal tag %d (wire type %d)", fieldNum, wire)
  575. }
  576. switch fieldNum {
  577. case 2:
  578. if wireType != 0 {
  579. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  580. }
  581. m.Mid = 0
  582. for shift := uint(0); ; shift += 7 {
  583. if shift >= 64 {
  584. return ErrIntOverflowApi
  585. }
  586. if iNdEx >= l {
  587. return io.ErrUnexpectedEOF
  588. }
  589. b := dAtA[iNdEx]
  590. iNdEx++
  591. m.Mid |= (int64(b) & 0x7F) << shift
  592. if b < 0x80 {
  593. break
  594. }
  595. }
  596. default:
  597. iNdEx = preIndex
  598. skippy, err := skipApi(dAtA[iNdEx:])
  599. if err != nil {
  600. return err
  601. }
  602. if skippy < 0 {
  603. return ErrInvalidLengthApi
  604. }
  605. if (iNdEx + skippy) > l {
  606. return io.ErrUnexpectedEOF
  607. }
  608. iNdEx += skippy
  609. }
  610. }
  611. if iNdEx > l {
  612. return io.ErrUnexpectedEOF
  613. }
  614. return nil
  615. }
  616. func (m *InfosReply) Unmarshal(dAtA []byte) error {
  617. l := len(dAtA)
  618. iNdEx := 0
  619. for iNdEx < l {
  620. preIndex := iNdEx
  621. var wire uint64
  622. for shift := uint(0); ; shift += 7 {
  623. if shift >= 64 {
  624. return ErrIntOverflowApi
  625. }
  626. if iNdEx >= l {
  627. return io.ErrUnexpectedEOF
  628. }
  629. b := dAtA[iNdEx]
  630. iNdEx++
  631. wire |= (uint64(b) & 0x7F) << shift
  632. if b < 0x80 {
  633. break
  634. }
  635. }
  636. fieldNum := int32(wire >> 3)
  637. wireType := int(wire & 0x7)
  638. if wireType == 4 {
  639. return fmt.Errorf("proto: InfosReply: wiretype end group for non-group")
  640. }
  641. if fieldNum <= 0 {
  642. return fmt.Errorf("proto: InfosReply: illegal tag %d (wire type %d)", fieldNum, wire)
  643. }
  644. switch fieldNum {
  645. case 1:
  646. if wireType != 2 {
  647. return fmt.Errorf("proto: wrong wireType = %d for field Res", wireType)
  648. }
  649. var msglen int
  650. for shift := uint(0); ; shift += 7 {
  651. if shift >= 64 {
  652. return ErrIntOverflowApi
  653. }
  654. if iNdEx >= l {
  655. return io.ErrUnexpectedEOF
  656. }
  657. b := dAtA[iNdEx]
  658. iNdEx++
  659. msglen |= (int(b) & 0x7F) << shift
  660. if b < 0x80 {
  661. break
  662. }
  663. }
  664. if msglen < 0 {
  665. return ErrInvalidLengthApi
  666. }
  667. postIndex := iNdEx + msglen
  668. if postIndex > l {
  669. return io.ErrUnexpectedEOF
  670. }
  671. if m.Res == nil {
  672. m.Res = make(map[int64]*ModelInfo)
  673. }
  674. var mapkey int64
  675. var mapvalue *ModelInfo
  676. for iNdEx < postIndex {
  677. entryPreIndex := iNdEx
  678. var wire uint64
  679. for shift := uint(0); ; shift += 7 {
  680. if shift >= 64 {
  681. return ErrIntOverflowApi
  682. }
  683. if iNdEx >= l {
  684. return io.ErrUnexpectedEOF
  685. }
  686. b := dAtA[iNdEx]
  687. iNdEx++
  688. wire |= (uint64(b) & 0x7F) << shift
  689. if b < 0x80 {
  690. break
  691. }
  692. }
  693. fieldNum := int32(wire >> 3)
  694. if fieldNum == 1 {
  695. for shift := uint(0); ; shift += 7 {
  696. if shift >= 64 {
  697. return ErrIntOverflowApi
  698. }
  699. if iNdEx >= l {
  700. return io.ErrUnexpectedEOF
  701. }
  702. b := dAtA[iNdEx]
  703. iNdEx++
  704. mapkey |= (int64(b) & 0x7F) << shift
  705. if b < 0x80 {
  706. break
  707. }
  708. }
  709. } else if fieldNum == 2 {
  710. var mapmsglen int
  711. for shift := uint(0); ; shift += 7 {
  712. if shift >= 64 {
  713. return ErrIntOverflowApi
  714. }
  715. if iNdEx >= l {
  716. return io.ErrUnexpectedEOF
  717. }
  718. b := dAtA[iNdEx]
  719. iNdEx++
  720. mapmsglen |= (int(b) & 0x7F) << shift
  721. if b < 0x80 {
  722. break
  723. }
  724. }
  725. if mapmsglen < 0 {
  726. return ErrInvalidLengthApi
  727. }
  728. postmsgIndex := iNdEx + mapmsglen
  729. if mapmsglen < 0 {
  730. return ErrInvalidLengthApi
  731. }
  732. if postmsgIndex > l {
  733. return io.ErrUnexpectedEOF
  734. }
  735. mapvalue = &ModelInfo{}
  736. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  737. return err
  738. }
  739. iNdEx = postmsgIndex
  740. } else {
  741. iNdEx = entryPreIndex
  742. skippy, err := skipApi(dAtA[iNdEx:])
  743. if err != nil {
  744. return err
  745. }
  746. if skippy < 0 {
  747. return ErrInvalidLengthApi
  748. }
  749. if (iNdEx + skippy) > postIndex {
  750. return io.ErrUnexpectedEOF
  751. }
  752. iNdEx += skippy
  753. }
  754. }
  755. m.Res[mapkey] = mapvalue
  756. iNdEx = postIndex
  757. default:
  758. iNdEx = preIndex
  759. skippy, err := skipApi(dAtA[iNdEx:])
  760. if err != nil {
  761. return err
  762. }
  763. if skippy < 0 {
  764. return ErrInvalidLengthApi
  765. }
  766. if (iNdEx + skippy) > l {
  767. return io.ErrUnexpectedEOF
  768. }
  769. iNdEx += skippy
  770. }
  771. }
  772. if iNdEx > l {
  773. return io.ErrUnexpectedEOF
  774. }
  775. return nil
  776. }
  777. func (m *InfosReq) Unmarshal(dAtA []byte) error {
  778. l := len(dAtA)
  779. iNdEx := 0
  780. for iNdEx < l {
  781. preIndex := iNdEx
  782. var wire uint64
  783. for shift := uint(0); ; shift += 7 {
  784. if shift >= 64 {
  785. return ErrIntOverflowApi
  786. }
  787. if iNdEx >= l {
  788. return io.ErrUnexpectedEOF
  789. }
  790. b := dAtA[iNdEx]
  791. iNdEx++
  792. wire |= (uint64(b) & 0x7F) << shift
  793. if b < 0x80 {
  794. break
  795. }
  796. }
  797. fieldNum := int32(wire >> 3)
  798. wireType := int(wire & 0x7)
  799. if wireType == 4 {
  800. return fmt.Errorf("proto: InfosReq: wiretype end group for non-group")
  801. }
  802. if fieldNum <= 0 {
  803. return fmt.Errorf("proto: InfosReq: illegal tag %d (wire type %d)", fieldNum, wire)
  804. }
  805. switch fieldNum {
  806. case 2:
  807. if wireType == 0 {
  808. var v int64
  809. for shift := uint(0); ; shift += 7 {
  810. if shift >= 64 {
  811. return ErrIntOverflowApi
  812. }
  813. if iNdEx >= l {
  814. return io.ErrUnexpectedEOF
  815. }
  816. b := dAtA[iNdEx]
  817. iNdEx++
  818. v |= (int64(b) & 0x7F) << shift
  819. if b < 0x80 {
  820. break
  821. }
  822. }
  823. m.Mids = append(m.Mids, v)
  824. } else if wireType == 2 {
  825. var packedLen int
  826. for shift := uint(0); ; shift += 7 {
  827. if shift >= 64 {
  828. return ErrIntOverflowApi
  829. }
  830. if iNdEx >= l {
  831. return io.ErrUnexpectedEOF
  832. }
  833. b := dAtA[iNdEx]
  834. iNdEx++
  835. packedLen |= (int(b) & 0x7F) << shift
  836. if b < 0x80 {
  837. break
  838. }
  839. }
  840. if packedLen < 0 {
  841. return ErrInvalidLengthApi
  842. }
  843. postIndex := iNdEx + packedLen
  844. if postIndex > l {
  845. return io.ErrUnexpectedEOF
  846. }
  847. for iNdEx < postIndex {
  848. var v int64
  849. for shift := uint(0); ; shift += 7 {
  850. if shift >= 64 {
  851. return ErrIntOverflowApi
  852. }
  853. if iNdEx >= l {
  854. return io.ErrUnexpectedEOF
  855. }
  856. b := dAtA[iNdEx]
  857. iNdEx++
  858. v |= (int64(b) & 0x7F) << shift
  859. if b < 0x80 {
  860. break
  861. }
  862. }
  863. m.Mids = append(m.Mids, v)
  864. }
  865. } else {
  866. return fmt.Errorf("proto: wrong wireType = %d for field Mids", wireType)
  867. }
  868. default:
  869. iNdEx = preIndex
  870. skippy, err := skipApi(dAtA[iNdEx:])
  871. if err != nil {
  872. return err
  873. }
  874. if skippy < 0 {
  875. return ErrInvalidLengthApi
  876. }
  877. if (iNdEx + skippy) > l {
  878. return io.ErrUnexpectedEOF
  879. }
  880. iNdEx += skippy
  881. }
  882. }
  883. if iNdEx > l {
  884. return io.ErrUnexpectedEOF
  885. }
  886. return nil
  887. }
  888. func (m *ModelInfo) Unmarshal(dAtA []byte) error {
  889. l := len(dAtA)
  890. iNdEx := 0
  891. for iNdEx < l {
  892. preIndex := iNdEx
  893. var wire uint64
  894. for shift := uint(0); ; shift += 7 {
  895. if shift >= 64 {
  896. return ErrIntOverflowApi
  897. }
  898. if iNdEx >= l {
  899. return io.ErrUnexpectedEOF
  900. }
  901. b := dAtA[iNdEx]
  902. iNdEx++
  903. wire |= (uint64(b) & 0x7F) << shift
  904. if b < 0x80 {
  905. break
  906. }
  907. }
  908. fieldNum := int32(wire >> 3)
  909. wireType := int(wire & 0x7)
  910. if wireType == 4 {
  911. return fmt.Errorf("proto: ModelInfo: wiretype end group for non-group")
  912. }
  913. if fieldNum <= 0 {
  914. return fmt.Errorf("proto: ModelInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  915. }
  916. switch fieldNum {
  917. case 1:
  918. if wireType != 0 {
  919. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  920. }
  921. m.Type = 0
  922. for shift := uint(0); ; shift += 7 {
  923. if shift >= 64 {
  924. return ErrIntOverflowApi
  925. }
  926. if iNdEx >= l {
  927. return io.ErrUnexpectedEOF
  928. }
  929. b := dAtA[iNdEx]
  930. iNdEx++
  931. m.Type |= (int32(b) & 0x7F) << shift
  932. if b < 0x80 {
  933. break
  934. }
  935. }
  936. case 2:
  937. if wireType != 0 {
  938. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  939. }
  940. m.Status = 0
  941. for shift := uint(0); ; shift += 7 {
  942. if shift >= 64 {
  943. return ErrIntOverflowApi
  944. }
  945. if iNdEx >= l {
  946. return io.ErrUnexpectedEOF
  947. }
  948. b := dAtA[iNdEx]
  949. iNdEx++
  950. m.Status |= (int32(b) & 0x7F) << shift
  951. if b < 0x80 {
  952. break
  953. }
  954. }
  955. case 3:
  956. if wireType != 0 {
  957. return fmt.Errorf("proto: wrong wireType = %d for field DueDate", wireType)
  958. }
  959. m.DueDate = 0
  960. for shift := uint(0); ; shift += 7 {
  961. if shift >= 64 {
  962. return ErrIntOverflowApi
  963. }
  964. if iNdEx >= l {
  965. return io.ErrUnexpectedEOF
  966. }
  967. b := dAtA[iNdEx]
  968. iNdEx++
  969. m.DueDate |= (int64(b) & 0x7F) << shift
  970. if b < 0x80 {
  971. break
  972. }
  973. }
  974. case 4:
  975. if wireType != 0 {
  976. return fmt.Errorf("proto: wrong wireType = %d for field VipPayType", wireType)
  977. }
  978. m.VipPayType = 0
  979. for shift := uint(0); ; shift += 7 {
  980. if shift >= 64 {
  981. return ErrIntOverflowApi
  982. }
  983. if iNdEx >= l {
  984. return io.ErrUnexpectedEOF
  985. }
  986. b := dAtA[iNdEx]
  987. iNdEx++
  988. m.VipPayType |= (int32(b) & 0x7F) << shift
  989. if b < 0x80 {
  990. break
  991. }
  992. }
  993. default:
  994. iNdEx = preIndex
  995. skippy, err := skipApi(dAtA[iNdEx:])
  996. if err != nil {
  997. return err
  998. }
  999. if skippy < 0 {
  1000. return ErrInvalidLengthApi
  1001. }
  1002. if (iNdEx + skippy) > l {
  1003. return io.ErrUnexpectedEOF
  1004. }
  1005. iNdEx += skippy
  1006. }
  1007. }
  1008. if iNdEx > l {
  1009. return io.ErrUnexpectedEOF
  1010. }
  1011. return nil
  1012. }
  1013. func skipApi(dAtA []byte) (n int, err error) {
  1014. l := len(dAtA)
  1015. iNdEx := 0
  1016. for iNdEx < l {
  1017. var wire uint64
  1018. for shift := uint(0); ; shift += 7 {
  1019. if shift >= 64 {
  1020. return 0, ErrIntOverflowApi
  1021. }
  1022. if iNdEx >= l {
  1023. return 0, io.ErrUnexpectedEOF
  1024. }
  1025. b := dAtA[iNdEx]
  1026. iNdEx++
  1027. wire |= (uint64(b) & 0x7F) << shift
  1028. if b < 0x80 {
  1029. break
  1030. }
  1031. }
  1032. wireType := int(wire & 0x7)
  1033. switch wireType {
  1034. case 0:
  1035. for shift := uint(0); ; shift += 7 {
  1036. if shift >= 64 {
  1037. return 0, ErrIntOverflowApi
  1038. }
  1039. if iNdEx >= l {
  1040. return 0, io.ErrUnexpectedEOF
  1041. }
  1042. iNdEx++
  1043. if dAtA[iNdEx-1] < 0x80 {
  1044. break
  1045. }
  1046. }
  1047. return iNdEx, nil
  1048. case 1:
  1049. iNdEx += 8
  1050. return iNdEx, nil
  1051. case 2:
  1052. var length int
  1053. for shift := uint(0); ; shift += 7 {
  1054. if shift >= 64 {
  1055. return 0, ErrIntOverflowApi
  1056. }
  1057. if iNdEx >= l {
  1058. return 0, io.ErrUnexpectedEOF
  1059. }
  1060. b := dAtA[iNdEx]
  1061. iNdEx++
  1062. length |= (int(b) & 0x7F) << shift
  1063. if b < 0x80 {
  1064. break
  1065. }
  1066. }
  1067. iNdEx += length
  1068. if length < 0 {
  1069. return 0, ErrInvalidLengthApi
  1070. }
  1071. return iNdEx, nil
  1072. case 3:
  1073. for {
  1074. var innerWire uint64
  1075. var start int = iNdEx
  1076. for shift := uint(0); ; shift += 7 {
  1077. if shift >= 64 {
  1078. return 0, ErrIntOverflowApi
  1079. }
  1080. if iNdEx >= l {
  1081. return 0, io.ErrUnexpectedEOF
  1082. }
  1083. b := dAtA[iNdEx]
  1084. iNdEx++
  1085. innerWire |= (uint64(b) & 0x7F) << shift
  1086. if b < 0x80 {
  1087. break
  1088. }
  1089. }
  1090. innerWireType := int(innerWire & 0x7)
  1091. if innerWireType == 4 {
  1092. break
  1093. }
  1094. next, err := skipApi(dAtA[start:])
  1095. if err != nil {
  1096. return 0, err
  1097. }
  1098. iNdEx = start + next
  1099. }
  1100. return iNdEx, nil
  1101. case 4:
  1102. return iNdEx, nil
  1103. case 5:
  1104. iNdEx += 4
  1105. return iNdEx, nil
  1106. default:
  1107. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1108. }
  1109. }
  1110. panic("unreachable")
  1111. }
  1112. var (
  1113. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  1114. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  1115. )
  1116. func init() { proto.RegisterFile("app/service/main/vipinfo/api/grpc/v1/api.proto", fileDescriptorApi) }
  1117. var fileDescriptorApi = []byte{
  1118. // 433 bytes of a gzipped FileDescriptorProto
  1119. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x3d, 0x6e, 0x13, 0x41,
  1120. 0x14, 0xd6, 0x78, 0xed, 0xd8, 0x79, 0x49, 0x61, 0x4d, 0x65, 0x39, 0xc9, 0xda, 0xda, 0x26, 0x6e,
  1121. 0x98, 0x91, 0x9d, 0x06, 0x10, 0xd5, 0x8a, 0x14, 0x14, 0x48, 0x68, 0x04, 0x14, 0x34, 0xd6, 0xd8,
  1122. 0x3b, 0x36, 0x23, 0x6c, 0xcf, 0x78, 0x77, 0x76, 0xa4, 0xbd, 0x07, 0x35, 0x07, 0xe0, 0x24, 0x94,
  1123. 0x9c, 0xc0, 0x42, 0x2e, 0x7d, 0x0a, 0x34, 0xcf, 0x9b, 0x20, 0x04, 0x49, 0x9a, 0x9d, 0xef, 0xfd,
  1124. 0x7d, 0xdf, 0xa7, 0xf7, 0x16, 0x98, 0xb4, 0x96, 0x17, 0x2a, 0xf7, 0x7a, 0xae, 0xf8, 0x5a, 0xea,
  1125. 0x0d, 0xf7, 0xda, 0xea, 0xcd, 0xc2, 0x70, 0x69, 0x35, 0x5f, 0xe6, 0x76, 0xce, 0xfd, 0x38, 0x60,
  1126. 0x66, 0x73, 0xe3, 0x0c, 0xa5, 0x75, 0x99, 0xd5, 0x33, 0xcc, 0x8f, 0xfb, 0xcf, 0x96, 0xda, 0x7d,
  1127. 0x2e, 0x67, 0x6c, 0x6e, 0xd6, 0x7c, 0x69, 0x96, 0x86, 0x63, 0xeb, 0xac, 0x5c, 0x60, 0x84, 0x01,
  1128. 0xa2, 0x23, 0x45, 0xf2, 0x0a, 0x4e, 0xdf, 0x6c, 0x16, 0x46, 0x28, 0xbb, 0xaa, 0x28, 0x87, 0x28,
  1129. 0x57, 0x45, 0x8f, 0x0c, 0xc9, 0xe8, 0x6c, 0x72, 0xc5, 0xfe, 0x65, 0x67, 0x6f, 0x4d, 0xa6, 0x56,
  1130. 0x38, 0x10, 0x3a, 0x93, 0x0b, 0x68, 0x1f, 0xa7, 0xb7, 0xb4, 0x0b, 0xd1, 0x5a, 0x67, 0xbd, 0xc6,
  1131. 0x90, 0x8c, 0x22, 0x11, 0x60, 0xf2, 0x8d, 0x00, 0x84, 0x6a, 0x71, 0x24, 0x7f, 0x71, 0x47, 0x1e,
  1132. 0x8d, 0xce, 0x26, 0xd7, 0xff, 0x23, 0xff, 0xd3, 0xcc, 0x84, 0x2a, 0x6e, 0x37, 0x2e, 0xaf, 0x50,
  1133. 0xa6, 0xff, 0x01, 0x3a, 0x77, 0x89, 0xa0, 0xf3, 0x45, 0x55, 0xe8, 0x31, 0x12, 0x01, 0xd2, 0x1b,
  1134. 0x68, 0x79, 0xb9, 0x2a, 0x15, 0x6a, 0x3f, 0xe9, 0xfb, 0xd8, 0xfb, 0xb2, 0xf1, 0x9c, 0x24, 0x31,
  1135. 0x74, 0x6a, 0xc9, 0x2d, 0xa5, 0xd0, 0x5c, 0xeb, 0xac, 0xe8, 0x35, 0x86, 0xd1, 0x28, 0x12, 0x88,
  1136. 0x93, 0xef, 0x04, 0x4e, 0xef, 0x07, 0xe9, 0x25, 0x34, 0x5d, 0x65, 0x15, 0x2a, 0xb7, 0xd2, 0xce,
  1137. 0x61, 0x37, 0xc0, 0x58, 0xe0, 0x97, 0x26, 0x70, 0x52, 0x38, 0xe9, 0xca, 0x02, 0x5d, 0xb4, 0x52,
  1138. 0x38, 0xec, 0x06, 0x75, 0x46, 0xd4, 0x2f, 0xbd, 0x86, 0x4e, 0x56, 0xaa, 0x69, 0x26, 0x9d, 0xea,
  1139. 0x45, 0xc1, 0x7f, 0x7a, 0x7e, 0xd8, 0x0d, 0xee, 0x73, 0xa2, 0x9d, 0x95, 0xea, 0xb5, 0x74, 0x8a,
  1140. 0x4e, 0xe0, 0xdc, 0x6b, 0x3b, 0xb5, 0xb2, 0x9a, 0xa2, 0x64, 0x13, 0x29, 0xbb, 0x87, 0xdd, 0xe0,
  1141. 0xaf, 0xbc, 0x00, 0xaf, 0xed, 0x3b, 0x59, 0xbd, 0xaf, 0xac, 0x9a, 0x7c, 0x25, 0xd0, 0xfe, 0xa8,
  1142. 0x2d, 0x5a, 0x4d, 0xa1, 0x89, 0xef, 0xc5, 0x43, 0x5b, 0x16, 0x6a, 0xdb, 0xbf, 0x7a, 0xb8, 0x18,
  1143. 0xce, 0x75, 0x0b, 0x2d, 0x5c, 0x0e, 0xbd, 0x7c, 0xe4, 0x54, 0xdb, 0x7e, 0xfc, 0xf8, 0x21, 0xd3,
  1144. 0xee, 0x8f, 0x7d, 0x4c, 0x7e, 0xee, 0x63, 0xf2, 0x6b, 0x1f, 0x93, 0x4f, 0x0d, 0x3f, 0x9e, 0x9d,
  1145. 0xe0, 0x8f, 0x77, 0xf3, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x5b, 0x7f, 0x11, 0xed, 0x02, 0x00,
  1146. 0x00,
  1147. }