vip.pb.go 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/live/xuser/api/grpc/v1/vip.proto
  3. package v1
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import grpc1 "go-common/app/service/live/xuser/api/grpc"
  8. import _ "github.com/gogo/protobuf/gogoproto"
  9. import (
  10. context "golang.org/x/net/context"
  11. grpc "google.golang.org/grpc"
  12. )
  13. import io "io"
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var _ = proto.Marshal
  16. var _ = fmt.Errorf
  17. var _ = math.Inf
  18. // This is a compile-time assertion to ensure that this generated file
  19. // is compatible with the proto package it is being compiled against.
  20. // A compilation error at this line likely means your copy of the
  21. // proto package needs to be updated.
  22. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  23. type UidReq struct {
  24. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty" validate:"gt=0,required"`
  25. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  26. XXX_unrecognized []byte `json:"-"`
  27. XXX_sizecache int32 `json:"-"`
  28. }
  29. func (m *UidReq) Reset() { *m = UidReq{} }
  30. func (m *UidReq) String() string { return proto.CompactTextString(m) }
  31. func (*UidReq) ProtoMessage() {}
  32. func (*UidReq) Descriptor() ([]byte, []int) {
  33. return fileDescriptor_vip_104e2dab5f0482b7, []int{0}
  34. }
  35. func (m *UidReq) XXX_Unmarshal(b []byte) error {
  36. return m.Unmarshal(b)
  37. }
  38. func (m *UidReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  39. if deterministic {
  40. return xxx_messageInfo_UidReq.Marshal(b, m, deterministic)
  41. } else {
  42. b = b[:cap(b)]
  43. n, err := m.MarshalTo(b)
  44. if err != nil {
  45. return nil, err
  46. }
  47. return b[:n], nil
  48. }
  49. }
  50. func (dst *UidReq) XXX_Merge(src proto.Message) {
  51. xxx_messageInfo_UidReq.Merge(dst, src)
  52. }
  53. func (m *UidReq) XXX_Size() int {
  54. return m.Size()
  55. }
  56. func (m *UidReq) XXX_DiscardUnknown() {
  57. xxx_messageInfo_UidReq.DiscardUnknown(m)
  58. }
  59. var xxx_messageInfo_UidReq proto.InternalMessageInfo
  60. func (m *UidReq) GetUid() int64 {
  61. if m != nil {
  62. return m.Uid
  63. }
  64. return 0
  65. }
  66. type Info struct {
  67. Vip int `protobuf:"varint,1,opt,name=vip,proto3,casttype=int" json:"vip"`
  68. Svip int `protobuf:"varint,2,opt,name=svip,proto3,casttype=int" json:"svip"`
  69. VipTime string `protobuf:"bytes,3,opt,name=vip_time,json=vipTime,proto3" json:"vip_time"`
  70. SvipTime string `protobuf:"bytes,4,opt,name=svip_time,json=svipTime,proto3" json:"svip_time"`
  71. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  72. XXX_unrecognized []byte `json:"-"`
  73. XXX_sizecache int32 `json:"-"`
  74. }
  75. func (m *Info) Reset() { *m = Info{} }
  76. func (m *Info) String() string { return proto.CompactTextString(m) }
  77. func (*Info) ProtoMessage() {}
  78. func (*Info) Descriptor() ([]byte, []int) {
  79. return fileDescriptor_vip_104e2dab5f0482b7, []int{1}
  80. }
  81. func (m *Info) XXX_Unmarshal(b []byte) error {
  82. return m.Unmarshal(b)
  83. }
  84. func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  85. if deterministic {
  86. return xxx_messageInfo_Info.Marshal(b, m, deterministic)
  87. } else {
  88. b = b[:cap(b)]
  89. n, err := m.MarshalTo(b)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return b[:n], nil
  94. }
  95. }
  96. func (dst *Info) XXX_Merge(src proto.Message) {
  97. xxx_messageInfo_Info.Merge(dst, src)
  98. }
  99. func (m *Info) XXX_Size() int {
  100. return m.Size()
  101. }
  102. func (m *Info) XXX_DiscardUnknown() {
  103. xxx_messageInfo_Info.DiscardUnknown(m)
  104. }
  105. var xxx_messageInfo_Info proto.InternalMessageInfo
  106. func (m *Info) GetVip() int {
  107. if m != nil {
  108. return m.Vip
  109. }
  110. return 0
  111. }
  112. func (m *Info) GetSvip() int {
  113. if m != nil {
  114. return m.Svip
  115. }
  116. return 0
  117. }
  118. func (m *Info) GetVipTime() string {
  119. if m != nil {
  120. return m.VipTime
  121. }
  122. return ""
  123. }
  124. func (m *Info) GetSvipTime() string {
  125. if m != nil {
  126. return m.SvipTime
  127. }
  128. return ""
  129. }
  130. type InfoReply struct {
  131. Info *Info `protobuf:"bytes,1,opt,name=info" json:"info,omitempty"`
  132. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  133. XXX_unrecognized []byte `json:"-"`
  134. XXX_sizecache int32 `json:"-"`
  135. }
  136. func (m *InfoReply) Reset() { *m = InfoReply{} }
  137. func (m *InfoReply) String() string { return proto.CompactTextString(m) }
  138. func (*InfoReply) ProtoMessage() {}
  139. func (*InfoReply) Descriptor() ([]byte, []int) {
  140. return fileDescriptor_vip_104e2dab5f0482b7, []int{2}
  141. }
  142. func (m *InfoReply) XXX_Unmarshal(b []byte) error {
  143. return m.Unmarshal(b)
  144. }
  145. func (m *InfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  146. if deterministic {
  147. return xxx_messageInfo_InfoReply.Marshal(b, m, deterministic)
  148. } else {
  149. b = b[:cap(b)]
  150. n, err := m.MarshalTo(b)
  151. if err != nil {
  152. return nil, err
  153. }
  154. return b[:n], nil
  155. }
  156. }
  157. func (dst *InfoReply) XXX_Merge(src proto.Message) {
  158. xxx_messageInfo_InfoReply.Merge(dst, src)
  159. }
  160. func (m *InfoReply) XXX_Size() int {
  161. return m.Size()
  162. }
  163. func (m *InfoReply) XXX_DiscardUnknown() {
  164. xxx_messageInfo_InfoReply.DiscardUnknown(m)
  165. }
  166. var xxx_messageInfo_InfoReply proto.InternalMessageInfo
  167. func (m *InfoReply) GetInfo() *Info {
  168. if m != nil {
  169. return m.Info
  170. }
  171. return nil
  172. }
  173. type BuyReq struct {
  174. OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty" validate:"required"`
  175. Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty" validate:"gt=0,required"`
  176. GoodId int `protobuf:"varint,3,opt,name=good_id,json=goodId,proto3,casttype=int" json:"good_id,omitempty" validate:"gt=0,required"`
  177. GoodNum int `protobuf:"varint,4,opt,name=good_num,json=goodNum,proto3,casttype=int" json:"good_num,omitempty" validate:"gt=0,required"`
  178. Platform grpc1.Platform `protobuf:"varint,5,opt,name=platform,proto3,enum=live.xuser.Platform" json:"platform,omitempty" validate:"required"`
  179. Source string `protobuf:"bytes,6,opt,name=source,proto3" json:"source,omitempty" validate:"required"`
  180. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  181. XXX_unrecognized []byte `json:"-"`
  182. XXX_sizecache int32 `json:"-"`
  183. }
  184. func (m *BuyReq) Reset() { *m = BuyReq{} }
  185. func (m *BuyReq) String() string { return proto.CompactTextString(m) }
  186. func (*BuyReq) ProtoMessage() {}
  187. func (*BuyReq) Descriptor() ([]byte, []int) {
  188. return fileDescriptor_vip_104e2dab5f0482b7, []int{3}
  189. }
  190. func (m *BuyReq) XXX_Unmarshal(b []byte) error {
  191. return m.Unmarshal(b)
  192. }
  193. func (m *BuyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  194. if deterministic {
  195. return xxx_messageInfo_BuyReq.Marshal(b, m, deterministic)
  196. } else {
  197. b = b[:cap(b)]
  198. n, err := m.MarshalTo(b)
  199. if err != nil {
  200. return nil, err
  201. }
  202. return b[:n], nil
  203. }
  204. }
  205. func (dst *BuyReq) XXX_Merge(src proto.Message) {
  206. xxx_messageInfo_BuyReq.Merge(dst, src)
  207. }
  208. func (m *BuyReq) XXX_Size() int {
  209. return m.Size()
  210. }
  211. func (m *BuyReq) XXX_DiscardUnknown() {
  212. xxx_messageInfo_BuyReq.DiscardUnknown(m)
  213. }
  214. var xxx_messageInfo_BuyReq proto.InternalMessageInfo
  215. func (m *BuyReq) GetOrderId() string {
  216. if m != nil {
  217. return m.OrderId
  218. }
  219. return ""
  220. }
  221. func (m *BuyReq) GetUid() int64 {
  222. if m != nil {
  223. return m.Uid
  224. }
  225. return 0
  226. }
  227. func (m *BuyReq) GetGoodId() int {
  228. if m != nil {
  229. return m.GoodId
  230. }
  231. return 0
  232. }
  233. func (m *BuyReq) GetGoodNum() int {
  234. if m != nil {
  235. return m.GoodNum
  236. }
  237. return 0
  238. }
  239. func (m *BuyReq) GetPlatform() grpc1.Platform {
  240. if m != nil {
  241. return m.Platform
  242. }
  243. return grpc1.Platform_UNKNOWN
  244. }
  245. func (m *BuyReq) GetSource() string {
  246. if m != nil {
  247. return m.Source
  248. }
  249. return ""
  250. }
  251. type BuyReply struct {
  252. Status int `protobuf:"varint,1,opt,name=status,proto3,casttype=int" json:"status"`
  253. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  254. XXX_unrecognized []byte `json:"-"`
  255. XXX_sizecache int32 `json:"-"`
  256. }
  257. func (m *BuyReply) Reset() { *m = BuyReply{} }
  258. func (m *BuyReply) String() string { return proto.CompactTextString(m) }
  259. func (*BuyReply) ProtoMessage() {}
  260. func (*BuyReply) Descriptor() ([]byte, []int) {
  261. return fileDescriptor_vip_104e2dab5f0482b7, []int{4}
  262. }
  263. func (m *BuyReply) XXX_Unmarshal(b []byte) error {
  264. return m.Unmarshal(b)
  265. }
  266. func (m *BuyReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  267. if deterministic {
  268. return xxx_messageInfo_BuyReply.Marshal(b, m, deterministic)
  269. } else {
  270. b = b[:cap(b)]
  271. n, err := m.MarshalTo(b)
  272. if err != nil {
  273. return nil, err
  274. }
  275. return b[:n], nil
  276. }
  277. }
  278. func (dst *BuyReply) XXX_Merge(src proto.Message) {
  279. xxx_messageInfo_BuyReply.Merge(dst, src)
  280. }
  281. func (m *BuyReply) XXX_Size() int {
  282. return m.Size()
  283. }
  284. func (m *BuyReply) XXX_DiscardUnknown() {
  285. xxx_messageInfo_BuyReply.DiscardUnknown(m)
  286. }
  287. var xxx_messageInfo_BuyReply proto.InternalMessageInfo
  288. func (m *BuyReply) GetStatus() int {
  289. if m != nil {
  290. return m.Status
  291. }
  292. return 0
  293. }
  294. func init() {
  295. proto.RegisterType((*UidReq)(nil), "live.xuser.v1.UidReq")
  296. proto.RegisterType((*Info)(nil), "live.xuser.v1.Info")
  297. proto.RegisterType((*InfoReply)(nil), "live.xuser.v1.InfoReply")
  298. proto.RegisterType((*BuyReq)(nil), "live.xuser.v1.BuyReq")
  299. proto.RegisterType((*BuyReply)(nil), "live.xuser.v1.BuyReply")
  300. }
  301. // Reference imports to suppress errors if they are not otherwise used.
  302. var _ context.Context
  303. var _ grpc.ClientConn
  304. // This is a compile-time assertion to ensure that this generated file
  305. // is compatible with the grpc package it is being compiled against.
  306. const _ = grpc.SupportPackageIsVersion4
  307. // VipClient is the client API for Vip service.
  308. //
  309. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  310. type VipClient interface {
  311. // Info 返回用户vip信息
  312. Info(ctx context.Context, in *UidReq, opts ...grpc.CallOption) (*InfoReply, error)
  313. // Buy 购买月费/年费姥爷
  314. Buy(ctx context.Context, in *BuyReq, opts ...grpc.CallOption) (*BuyReply, error)
  315. }
  316. type vipClient struct {
  317. cc *grpc.ClientConn
  318. }
  319. func NewVipClient(cc *grpc.ClientConn) VipClient {
  320. return &vipClient{cc}
  321. }
  322. func (c *vipClient) Info(ctx context.Context, in *UidReq, opts ...grpc.CallOption) (*InfoReply, error) {
  323. out := new(InfoReply)
  324. err := c.cc.Invoke(ctx, "/live.xuser.v1.Vip/Info", in, out, opts...)
  325. if err != nil {
  326. return nil, err
  327. }
  328. return out, nil
  329. }
  330. func (c *vipClient) Buy(ctx context.Context, in *BuyReq, opts ...grpc.CallOption) (*BuyReply, error) {
  331. out := new(BuyReply)
  332. err := c.cc.Invoke(ctx, "/live.xuser.v1.Vip/Buy", in, out, opts...)
  333. if err != nil {
  334. return nil, err
  335. }
  336. return out, nil
  337. }
  338. // VipServer is the server API for Vip service.
  339. type VipServer interface {
  340. // Info 返回用户vip信息
  341. Info(context.Context, *UidReq) (*InfoReply, error)
  342. // Buy 购买月费/年费姥爷
  343. Buy(context.Context, *BuyReq) (*BuyReply, error)
  344. }
  345. func RegisterVipServer(s *grpc.Server, srv VipServer) {
  346. s.RegisterService(&_Vip_serviceDesc, srv)
  347. }
  348. func _Vip_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  349. in := new(UidReq)
  350. if err := dec(in); err != nil {
  351. return nil, err
  352. }
  353. if interceptor == nil {
  354. return srv.(VipServer).Info(ctx, in)
  355. }
  356. info := &grpc.UnaryServerInfo{
  357. Server: srv,
  358. FullMethod: "/live.xuser.v1.Vip/Info",
  359. }
  360. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  361. return srv.(VipServer).Info(ctx, req.(*UidReq))
  362. }
  363. return interceptor(ctx, in, info, handler)
  364. }
  365. func _Vip_Buy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  366. in := new(BuyReq)
  367. if err := dec(in); err != nil {
  368. return nil, err
  369. }
  370. if interceptor == nil {
  371. return srv.(VipServer).Buy(ctx, in)
  372. }
  373. info := &grpc.UnaryServerInfo{
  374. Server: srv,
  375. FullMethod: "/live.xuser.v1.Vip/Buy",
  376. }
  377. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  378. return srv.(VipServer).Buy(ctx, req.(*BuyReq))
  379. }
  380. return interceptor(ctx, in, info, handler)
  381. }
  382. var _Vip_serviceDesc = grpc.ServiceDesc{
  383. ServiceName: "live.xuser.v1.Vip",
  384. HandlerType: (*VipServer)(nil),
  385. Methods: []grpc.MethodDesc{
  386. {
  387. MethodName: "Info",
  388. Handler: _Vip_Info_Handler,
  389. },
  390. {
  391. MethodName: "Buy",
  392. Handler: _Vip_Buy_Handler,
  393. },
  394. },
  395. Streams: []grpc.StreamDesc{},
  396. Metadata: "app/service/live/xuser/api/grpc/v1/vip.proto",
  397. }
  398. func (m *UidReq) Marshal() (dAtA []byte, err error) {
  399. size := m.Size()
  400. dAtA = make([]byte, size)
  401. n, err := m.MarshalTo(dAtA)
  402. if err != nil {
  403. return nil, err
  404. }
  405. return dAtA[:n], nil
  406. }
  407. func (m *UidReq) MarshalTo(dAtA []byte) (int, error) {
  408. var i int
  409. _ = i
  410. var l int
  411. _ = l
  412. if m.Uid != 0 {
  413. dAtA[i] = 0x8
  414. i++
  415. i = encodeVarintVip(dAtA, i, uint64(m.Uid))
  416. }
  417. if m.XXX_unrecognized != nil {
  418. i += copy(dAtA[i:], m.XXX_unrecognized)
  419. }
  420. return i, nil
  421. }
  422. func (m *Info) Marshal() (dAtA []byte, err error) {
  423. size := m.Size()
  424. dAtA = make([]byte, size)
  425. n, err := m.MarshalTo(dAtA)
  426. if err != nil {
  427. return nil, err
  428. }
  429. return dAtA[:n], nil
  430. }
  431. func (m *Info) MarshalTo(dAtA []byte) (int, error) {
  432. var i int
  433. _ = i
  434. var l int
  435. _ = l
  436. if m.Vip != 0 {
  437. dAtA[i] = 0x8
  438. i++
  439. i = encodeVarintVip(dAtA, i, uint64(m.Vip))
  440. }
  441. if m.Svip != 0 {
  442. dAtA[i] = 0x10
  443. i++
  444. i = encodeVarintVip(dAtA, i, uint64(m.Svip))
  445. }
  446. if len(m.VipTime) > 0 {
  447. dAtA[i] = 0x1a
  448. i++
  449. i = encodeVarintVip(dAtA, i, uint64(len(m.VipTime)))
  450. i += copy(dAtA[i:], m.VipTime)
  451. }
  452. if len(m.SvipTime) > 0 {
  453. dAtA[i] = 0x22
  454. i++
  455. i = encodeVarintVip(dAtA, i, uint64(len(m.SvipTime)))
  456. i += copy(dAtA[i:], m.SvipTime)
  457. }
  458. if m.XXX_unrecognized != nil {
  459. i += copy(dAtA[i:], m.XXX_unrecognized)
  460. }
  461. return i, nil
  462. }
  463. func (m *InfoReply) Marshal() (dAtA []byte, err error) {
  464. size := m.Size()
  465. dAtA = make([]byte, size)
  466. n, err := m.MarshalTo(dAtA)
  467. if err != nil {
  468. return nil, err
  469. }
  470. return dAtA[:n], nil
  471. }
  472. func (m *InfoReply) MarshalTo(dAtA []byte) (int, error) {
  473. var i int
  474. _ = i
  475. var l int
  476. _ = l
  477. if m.Info != nil {
  478. dAtA[i] = 0xa
  479. i++
  480. i = encodeVarintVip(dAtA, i, uint64(m.Info.Size()))
  481. n1, err := m.Info.MarshalTo(dAtA[i:])
  482. if err != nil {
  483. return 0, err
  484. }
  485. i += n1
  486. }
  487. if m.XXX_unrecognized != nil {
  488. i += copy(dAtA[i:], m.XXX_unrecognized)
  489. }
  490. return i, nil
  491. }
  492. func (m *BuyReq) Marshal() (dAtA []byte, err error) {
  493. size := m.Size()
  494. dAtA = make([]byte, size)
  495. n, err := m.MarshalTo(dAtA)
  496. if err != nil {
  497. return nil, err
  498. }
  499. return dAtA[:n], nil
  500. }
  501. func (m *BuyReq) MarshalTo(dAtA []byte) (int, error) {
  502. var i int
  503. _ = i
  504. var l int
  505. _ = l
  506. if len(m.OrderId) > 0 {
  507. dAtA[i] = 0xa
  508. i++
  509. i = encodeVarintVip(dAtA, i, uint64(len(m.OrderId)))
  510. i += copy(dAtA[i:], m.OrderId)
  511. }
  512. if m.Uid != 0 {
  513. dAtA[i] = 0x10
  514. i++
  515. i = encodeVarintVip(dAtA, i, uint64(m.Uid))
  516. }
  517. if m.GoodId != 0 {
  518. dAtA[i] = 0x18
  519. i++
  520. i = encodeVarintVip(dAtA, i, uint64(m.GoodId))
  521. }
  522. if m.GoodNum != 0 {
  523. dAtA[i] = 0x20
  524. i++
  525. i = encodeVarintVip(dAtA, i, uint64(m.GoodNum))
  526. }
  527. if m.Platform != 0 {
  528. dAtA[i] = 0x28
  529. i++
  530. i = encodeVarintVip(dAtA, i, uint64(m.Platform))
  531. }
  532. if len(m.Source) > 0 {
  533. dAtA[i] = 0x32
  534. i++
  535. i = encodeVarintVip(dAtA, i, uint64(len(m.Source)))
  536. i += copy(dAtA[i:], m.Source)
  537. }
  538. if m.XXX_unrecognized != nil {
  539. i += copy(dAtA[i:], m.XXX_unrecognized)
  540. }
  541. return i, nil
  542. }
  543. func (m *BuyReply) Marshal() (dAtA []byte, err error) {
  544. size := m.Size()
  545. dAtA = make([]byte, size)
  546. n, err := m.MarshalTo(dAtA)
  547. if err != nil {
  548. return nil, err
  549. }
  550. return dAtA[:n], nil
  551. }
  552. func (m *BuyReply) MarshalTo(dAtA []byte) (int, error) {
  553. var i int
  554. _ = i
  555. var l int
  556. _ = l
  557. if m.Status != 0 {
  558. dAtA[i] = 0x8
  559. i++
  560. i = encodeVarintVip(dAtA, i, uint64(m.Status))
  561. }
  562. if m.XXX_unrecognized != nil {
  563. i += copy(dAtA[i:], m.XXX_unrecognized)
  564. }
  565. return i, nil
  566. }
  567. func encodeVarintVip(dAtA []byte, offset int, v uint64) int {
  568. for v >= 1<<7 {
  569. dAtA[offset] = uint8(v&0x7f | 0x80)
  570. v >>= 7
  571. offset++
  572. }
  573. dAtA[offset] = uint8(v)
  574. return offset + 1
  575. }
  576. func (m *UidReq) Size() (n int) {
  577. if m == nil {
  578. return 0
  579. }
  580. var l int
  581. _ = l
  582. if m.Uid != 0 {
  583. n += 1 + sovVip(uint64(m.Uid))
  584. }
  585. if m.XXX_unrecognized != nil {
  586. n += len(m.XXX_unrecognized)
  587. }
  588. return n
  589. }
  590. func (m *Info) Size() (n int) {
  591. if m == nil {
  592. return 0
  593. }
  594. var l int
  595. _ = l
  596. if m.Vip != 0 {
  597. n += 1 + sovVip(uint64(m.Vip))
  598. }
  599. if m.Svip != 0 {
  600. n += 1 + sovVip(uint64(m.Svip))
  601. }
  602. l = len(m.VipTime)
  603. if l > 0 {
  604. n += 1 + l + sovVip(uint64(l))
  605. }
  606. l = len(m.SvipTime)
  607. if l > 0 {
  608. n += 1 + l + sovVip(uint64(l))
  609. }
  610. if m.XXX_unrecognized != nil {
  611. n += len(m.XXX_unrecognized)
  612. }
  613. return n
  614. }
  615. func (m *InfoReply) Size() (n int) {
  616. if m == nil {
  617. return 0
  618. }
  619. var l int
  620. _ = l
  621. if m.Info != nil {
  622. l = m.Info.Size()
  623. n += 1 + l + sovVip(uint64(l))
  624. }
  625. if m.XXX_unrecognized != nil {
  626. n += len(m.XXX_unrecognized)
  627. }
  628. return n
  629. }
  630. func (m *BuyReq) Size() (n int) {
  631. if m == nil {
  632. return 0
  633. }
  634. var l int
  635. _ = l
  636. l = len(m.OrderId)
  637. if l > 0 {
  638. n += 1 + l + sovVip(uint64(l))
  639. }
  640. if m.Uid != 0 {
  641. n += 1 + sovVip(uint64(m.Uid))
  642. }
  643. if m.GoodId != 0 {
  644. n += 1 + sovVip(uint64(m.GoodId))
  645. }
  646. if m.GoodNum != 0 {
  647. n += 1 + sovVip(uint64(m.GoodNum))
  648. }
  649. if m.Platform != 0 {
  650. n += 1 + sovVip(uint64(m.Platform))
  651. }
  652. l = len(m.Source)
  653. if l > 0 {
  654. n += 1 + l + sovVip(uint64(l))
  655. }
  656. if m.XXX_unrecognized != nil {
  657. n += len(m.XXX_unrecognized)
  658. }
  659. return n
  660. }
  661. func (m *BuyReply) Size() (n int) {
  662. if m == nil {
  663. return 0
  664. }
  665. var l int
  666. _ = l
  667. if m.Status != 0 {
  668. n += 1 + sovVip(uint64(m.Status))
  669. }
  670. if m.XXX_unrecognized != nil {
  671. n += len(m.XXX_unrecognized)
  672. }
  673. return n
  674. }
  675. func sovVip(x uint64) (n int) {
  676. for {
  677. n++
  678. x >>= 7
  679. if x == 0 {
  680. break
  681. }
  682. }
  683. return n
  684. }
  685. func sozVip(x uint64) (n int) {
  686. return sovVip(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  687. }
  688. func (m *UidReq) Unmarshal(dAtA []byte) error {
  689. l := len(dAtA)
  690. iNdEx := 0
  691. for iNdEx < l {
  692. preIndex := iNdEx
  693. var wire uint64
  694. for shift := uint(0); ; shift += 7 {
  695. if shift >= 64 {
  696. return ErrIntOverflowVip
  697. }
  698. if iNdEx >= l {
  699. return io.ErrUnexpectedEOF
  700. }
  701. b := dAtA[iNdEx]
  702. iNdEx++
  703. wire |= (uint64(b) & 0x7F) << shift
  704. if b < 0x80 {
  705. break
  706. }
  707. }
  708. fieldNum := int32(wire >> 3)
  709. wireType := int(wire & 0x7)
  710. if wireType == 4 {
  711. return fmt.Errorf("proto: UidReq: wiretype end group for non-group")
  712. }
  713. if fieldNum <= 0 {
  714. return fmt.Errorf("proto: UidReq: illegal tag %d (wire type %d)", fieldNum, wire)
  715. }
  716. switch fieldNum {
  717. case 1:
  718. if wireType != 0 {
  719. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  720. }
  721. m.Uid = 0
  722. for shift := uint(0); ; shift += 7 {
  723. if shift >= 64 {
  724. return ErrIntOverflowVip
  725. }
  726. if iNdEx >= l {
  727. return io.ErrUnexpectedEOF
  728. }
  729. b := dAtA[iNdEx]
  730. iNdEx++
  731. m.Uid |= (int64(b) & 0x7F) << shift
  732. if b < 0x80 {
  733. break
  734. }
  735. }
  736. default:
  737. iNdEx = preIndex
  738. skippy, err := skipVip(dAtA[iNdEx:])
  739. if err != nil {
  740. return err
  741. }
  742. if skippy < 0 {
  743. return ErrInvalidLengthVip
  744. }
  745. if (iNdEx + skippy) > l {
  746. return io.ErrUnexpectedEOF
  747. }
  748. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  749. iNdEx += skippy
  750. }
  751. }
  752. if iNdEx > l {
  753. return io.ErrUnexpectedEOF
  754. }
  755. return nil
  756. }
  757. func (m *Info) Unmarshal(dAtA []byte) error {
  758. l := len(dAtA)
  759. iNdEx := 0
  760. for iNdEx < l {
  761. preIndex := iNdEx
  762. var wire uint64
  763. for shift := uint(0); ; shift += 7 {
  764. if shift >= 64 {
  765. return ErrIntOverflowVip
  766. }
  767. if iNdEx >= l {
  768. return io.ErrUnexpectedEOF
  769. }
  770. b := dAtA[iNdEx]
  771. iNdEx++
  772. wire |= (uint64(b) & 0x7F) << shift
  773. if b < 0x80 {
  774. break
  775. }
  776. }
  777. fieldNum := int32(wire >> 3)
  778. wireType := int(wire & 0x7)
  779. if wireType == 4 {
  780. return fmt.Errorf("proto: Info: wiretype end group for non-group")
  781. }
  782. if fieldNum <= 0 {
  783. return fmt.Errorf("proto: Info: illegal tag %d (wire type %d)", fieldNum, wire)
  784. }
  785. switch fieldNum {
  786. case 1:
  787. if wireType != 0 {
  788. return fmt.Errorf("proto: wrong wireType = %d for field Vip", wireType)
  789. }
  790. m.Vip = 0
  791. for shift := uint(0); ; shift += 7 {
  792. if shift >= 64 {
  793. return ErrIntOverflowVip
  794. }
  795. if iNdEx >= l {
  796. return io.ErrUnexpectedEOF
  797. }
  798. b := dAtA[iNdEx]
  799. iNdEx++
  800. m.Vip |= (int(b) & 0x7F) << shift
  801. if b < 0x80 {
  802. break
  803. }
  804. }
  805. case 2:
  806. if wireType != 0 {
  807. return fmt.Errorf("proto: wrong wireType = %d for field Svip", wireType)
  808. }
  809. m.Svip = 0
  810. for shift := uint(0); ; shift += 7 {
  811. if shift >= 64 {
  812. return ErrIntOverflowVip
  813. }
  814. if iNdEx >= l {
  815. return io.ErrUnexpectedEOF
  816. }
  817. b := dAtA[iNdEx]
  818. iNdEx++
  819. m.Svip |= (int(b) & 0x7F) << shift
  820. if b < 0x80 {
  821. break
  822. }
  823. }
  824. case 3:
  825. if wireType != 2 {
  826. return fmt.Errorf("proto: wrong wireType = %d for field VipTime", wireType)
  827. }
  828. var stringLen uint64
  829. for shift := uint(0); ; shift += 7 {
  830. if shift >= 64 {
  831. return ErrIntOverflowVip
  832. }
  833. if iNdEx >= l {
  834. return io.ErrUnexpectedEOF
  835. }
  836. b := dAtA[iNdEx]
  837. iNdEx++
  838. stringLen |= (uint64(b) & 0x7F) << shift
  839. if b < 0x80 {
  840. break
  841. }
  842. }
  843. intStringLen := int(stringLen)
  844. if intStringLen < 0 {
  845. return ErrInvalidLengthVip
  846. }
  847. postIndex := iNdEx + intStringLen
  848. if postIndex > l {
  849. return io.ErrUnexpectedEOF
  850. }
  851. m.VipTime = string(dAtA[iNdEx:postIndex])
  852. iNdEx = postIndex
  853. case 4:
  854. if wireType != 2 {
  855. return fmt.Errorf("proto: wrong wireType = %d for field SvipTime", wireType)
  856. }
  857. var stringLen uint64
  858. for shift := uint(0); ; shift += 7 {
  859. if shift >= 64 {
  860. return ErrIntOverflowVip
  861. }
  862. if iNdEx >= l {
  863. return io.ErrUnexpectedEOF
  864. }
  865. b := dAtA[iNdEx]
  866. iNdEx++
  867. stringLen |= (uint64(b) & 0x7F) << shift
  868. if b < 0x80 {
  869. break
  870. }
  871. }
  872. intStringLen := int(stringLen)
  873. if intStringLen < 0 {
  874. return ErrInvalidLengthVip
  875. }
  876. postIndex := iNdEx + intStringLen
  877. if postIndex > l {
  878. return io.ErrUnexpectedEOF
  879. }
  880. m.SvipTime = string(dAtA[iNdEx:postIndex])
  881. iNdEx = postIndex
  882. default:
  883. iNdEx = preIndex
  884. skippy, err := skipVip(dAtA[iNdEx:])
  885. if err != nil {
  886. return err
  887. }
  888. if skippy < 0 {
  889. return ErrInvalidLengthVip
  890. }
  891. if (iNdEx + skippy) > l {
  892. return io.ErrUnexpectedEOF
  893. }
  894. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  895. iNdEx += skippy
  896. }
  897. }
  898. if iNdEx > l {
  899. return io.ErrUnexpectedEOF
  900. }
  901. return nil
  902. }
  903. func (m *InfoReply) Unmarshal(dAtA []byte) error {
  904. l := len(dAtA)
  905. iNdEx := 0
  906. for iNdEx < l {
  907. preIndex := iNdEx
  908. var wire uint64
  909. for shift := uint(0); ; shift += 7 {
  910. if shift >= 64 {
  911. return ErrIntOverflowVip
  912. }
  913. if iNdEx >= l {
  914. return io.ErrUnexpectedEOF
  915. }
  916. b := dAtA[iNdEx]
  917. iNdEx++
  918. wire |= (uint64(b) & 0x7F) << shift
  919. if b < 0x80 {
  920. break
  921. }
  922. }
  923. fieldNum := int32(wire >> 3)
  924. wireType := int(wire & 0x7)
  925. if wireType == 4 {
  926. return fmt.Errorf("proto: InfoReply: wiretype end group for non-group")
  927. }
  928. if fieldNum <= 0 {
  929. return fmt.Errorf("proto: InfoReply: illegal tag %d (wire type %d)", fieldNum, wire)
  930. }
  931. switch fieldNum {
  932. case 1:
  933. if wireType != 2 {
  934. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  935. }
  936. var msglen int
  937. for shift := uint(0); ; shift += 7 {
  938. if shift >= 64 {
  939. return ErrIntOverflowVip
  940. }
  941. if iNdEx >= l {
  942. return io.ErrUnexpectedEOF
  943. }
  944. b := dAtA[iNdEx]
  945. iNdEx++
  946. msglen |= (int(b) & 0x7F) << shift
  947. if b < 0x80 {
  948. break
  949. }
  950. }
  951. if msglen < 0 {
  952. return ErrInvalidLengthVip
  953. }
  954. postIndex := iNdEx + msglen
  955. if postIndex > l {
  956. return io.ErrUnexpectedEOF
  957. }
  958. if m.Info == nil {
  959. m.Info = &Info{}
  960. }
  961. if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  962. return err
  963. }
  964. iNdEx = postIndex
  965. default:
  966. iNdEx = preIndex
  967. skippy, err := skipVip(dAtA[iNdEx:])
  968. if err != nil {
  969. return err
  970. }
  971. if skippy < 0 {
  972. return ErrInvalidLengthVip
  973. }
  974. if (iNdEx + skippy) > l {
  975. return io.ErrUnexpectedEOF
  976. }
  977. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  978. iNdEx += skippy
  979. }
  980. }
  981. if iNdEx > l {
  982. return io.ErrUnexpectedEOF
  983. }
  984. return nil
  985. }
  986. func (m *BuyReq) Unmarshal(dAtA []byte) error {
  987. l := len(dAtA)
  988. iNdEx := 0
  989. for iNdEx < l {
  990. preIndex := iNdEx
  991. var wire uint64
  992. for shift := uint(0); ; shift += 7 {
  993. if shift >= 64 {
  994. return ErrIntOverflowVip
  995. }
  996. if iNdEx >= l {
  997. return io.ErrUnexpectedEOF
  998. }
  999. b := dAtA[iNdEx]
  1000. iNdEx++
  1001. wire |= (uint64(b) & 0x7F) << shift
  1002. if b < 0x80 {
  1003. break
  1004. }
  1005. }
  1006. fieldNum := int32(wire >> 3)
  1007. wireType := int(wire & 0x7)
  1008. if wireType == 4 {
  1009. return fmt.Errorf("proto: BuyReq: wiretype end group for non-group")
  1010. }
  1011. if fieldNum <= 0 {
  1012. return fmt.Errorf("proto: BuyReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1013. }
  1014. switch fieldNum {
  1015. case 1:
  1016. if wireType != 2 {
  1017. return fmt.Errorf("proto: wrong wireType = %d for field OrderId", wireType)
  1018. }
  1019. var stringLen uint64
  1020. for shift := uint(0); ; shift += 7 {
  1021. if shift >= 64 {
  1022. return ErrIntOverflowVip
  1023. }
  1024. if iNdEx >= l {
  1025. return io.ErrUnexpectedEOF
  1026. }
  1027. b := dAtA[iNdEx]
  1028. iNdEx++
  1029. stringLen |= (uint64(b) & 0x7F) << shift
  1030. if b < 0x80 {
  1031. break
  1032. }
  1033. }
  1034. intStringLen := int(stringLen)
  1035. if intStringLen < 0 {
  1036. return ErrInvalidLengthVip
  1037. }
  1038. postIndex := iNdEx + intStringLen
  1039. if postIndex > l {
  1040. return io.ErrUnexpectedEOF
  1041. }
  1042. m.OrderId = string(dAtA[iNdEx:postIndex])
  1043. iNdEx = postIndex
  1044. case 2:
  1045. if wireType != 0 {
  1046. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  1047. }
  1048. m.Uid = 0
  1049. for shift := uint(0); ; shift += 7 {
  1050. if shift >= 64 {
  1051. return ErrIntOverflowVip
  1052. }
  1053. if iNdEx >= l {
  1054. return io.ErrUnexpectedEOF
  1055. }
  1056. b := dAtA[iNdEx]
  1057. iNdEx++
  1058. m.Uid |= (int64(b) & 0x7F) << shift
  1059. if b < 0x80 {
  1060. break
  1061. }
  1062. }
  1063. case 3:
  1064. if wireType != 0 {
  1065. return fmt.Errorf("proto: wrong wireType = %d for field GoodId", wireType)
  1066. }
  1067. m.GoodId = 0
  1068. for shift := uint(0); ; shift += 7 {
  1069. if shift >= 64 {
  1070. return ErrIntOverflowVip
  1071. }
  1072. if iNdEx >= l {
  1073. return io.ErrUnexpectedEOF
  1074. }
  1075. b := dAtA[iNdEx]
  1076. iNdEx++
  1077. m.GoodId |= (int(b) & 0x7F) << shift
  1078. if b < 0x80 {
  1079. break
  1080. }
  1081. }
  1082. case 4:
  1083. if wireType != 0 {
  1084. return fmt.Errorf("proto: wrong wireType = %d for field GoodNum", wireType)
  1085. }
  1086. m.GoodNum = 0
  1087. for shift := uint(0); ; shift += 7 {
  1088. if shift >= 64 {
  1089. return ErrIntOverflowVip
  1090. }
  1091. if iNdEx >= l {
  1092. return io.ErrUnexpectedEOF
  1093. }
  1094. b := dAtA[iNdEx]
  1095. iNdEx++
  1096. m.GoodNum |= (int(b) & 0x7F) << shift
  1097. if b < 0x80 {
  1098. break
  1099. }
  1100. }
  1101. case 5:
  1102. if wireType != 0 {
  1103. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  1104. }
  1105. m.Platform = 0
  1106. for shift := uint(0); ; shift += 7 {
  1107. if shift >= 64 {
  1108. return ErrIntOverflowVip
  1109. }
  1110. if iNdEx >= l {
  1111. return io.ErrUnexpectedEOF
  1112. }
  1113. b := dAtA[iNdEx]
  1114. iNdEx++
  1115. m.Platform |= (grpc1.Platform(b) & 0x7F) << shift
  1116. if b < 0x80 {
  1117. break
  1118. }
  1119. }
  1120. case 6:
  1121. if wireType != 2 {
  1122. return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
  1123. }
  1124. var stringLen uint64
  1125. for shift := uint(0); ; shift += 7 {
  1126. if shift >= 64 {
  1127. return ErrIntOverflowVip
  1128. }
  1129. if iNdEx >= l {
  1130. return io.ErrUnexpectedEOF
  1131. }
  1132. b := dAtA[iNdEx]
  1133. iNdEx++
  1134. stringLen |= (uint64(b) & 0x7F) << shift
  1135. if b < 0x80 {
  1136. break
  1137. }
  1138. }
  1139. intStringLen := int(stringLen)
  1140. if intStringLen < 0 {
  1141. return ErrInvalidLengthVip
  1142. }
  1143. postIndex := iNdEx + intStringLen
  1144. if postIndex > l {
  1145. return io.ErrUnexpectedEOF
  1146. }
  1147. m.Source = string(dAtA[iNdEx:postIndex])
  1148. iNdEx = postIndex
  1149. default:
  1150. iNdEx = preIndex
  1151. skippy, err := skipVip(dAtA[iNdEx:])
  1152. if err != nil {
  1153. return err
  1154. }
  1155. if skippy < 0 {
  1156. return ErrInvalidLengthVip
  1157. }
  1158. if (iNdEx + skippy) > l {
  1159. return io.ErrUnexpectedEOF
  1160. }
  1161. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1162. iNdEx += skippy
  1163. }
  1164. }
  1165. if iNdEx > l {
  1166. return io.ErrUnexpectedEOF
  1167. }
  1168. return nil
  1169. }
  1170. func (m *BuyReply) Unmarshal(dAtA []byte) error {
  1171. l := len(dAtA)
  1172. iNdEx := 0
  1173. for iNdEx < l {
  1174. preIndex := iNdEx
  1175. var wire uint64
  1176. for shift := uint(0); ; shift += 7 {
  1177. if shift >= 64 {
  1178. return ErrIntOverflowVip
  1179. }
  1180. if iNdEx >= l {
  1181. return io.ErrUnexpectedEOF
  1182. }
  1183. b := dAtA[iNdEx]
  1184. iNdEx++
  1185. wire |= (uint64(b) & 0x7F) << shift
  1186. if b < 0x80 {
  1187. break
  1188. }
  1189. }
  1190. fieldNum := int32(wire >> 3)
  1191. wireType := int(wire & 0x7)
  1192. if wireType == 4 {
  1193. return fmt.Errorf("proto: BuyReply: wiretype end group for non-group")
  1194. }
  1195. if fieldNum <= 0 {
  1196. return fmt.Errorf("proto: BuyReply: illegal tag %d (wire type %d)", fieldNum, wire)
  1197. }
  1198. switch fieldNum {
  1199. case 1:
  1200. if wireType != 0 {
  1201. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  1202. }
  1203. m.Status = 0
  1204. for shift := uint(0); ; shift += 7 {
  1205. if shift >= 64 {
  1206. return ErrIntOverflowVip
  1207. }
  1208. if iNdEx >= l {
  1209. return io.ErrUnexpectedEOF
  1210. }
  1211. b := dAtA[iNdEx]
  1212. iNdEx++
  1213. m.Status |= (int(b) & 0x7F) << shift
  1214. if b < 0x80 {
  1215. break
  1216. }
  1217. }
  1218. default:
  1219. iNdEx = preIndex
  1220. skippy, err := skipVip(dAtA[iNdEx:])
  1221. if err != nil {
  1222. return err
  1223. }
  1224. if skippy < 0 {
  1225. return ErrInvalidLengthVip
  1226. }
  1227. if (iNdEx + skippy) > l {
  1228. return io.ErrUnexpectedEOF
  1229. }
  1230. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1231. iNdEx += skippy
  1232. }
  1233. }
  1234. if iNdEx > l {
  1235. return io.ErrUnexpectedEOF
  1236. }
  1237. return nil
  1238. }
  1239. func skipVip(dAtA []byte) (n int, err error) {
  1240. l := len(dAtA)
  1241. iNdEx := 0
  1242. for iNdEx < l {
  1243. var wire uint64
  1244. for shift := uint(0); ; shift += 7 {
  1245. if shift >= 64 {
  1246. return 0, ErrIntOverflowVip
  1247. }
  1248. if iNdEx >= l {
  1249. return 0, io.ErrUnexpectedEOF
  1250. }
  1251. b := dAtA[iNdEx]
  1252. iNdEx++
  1253. wire |= (uint64(b) & 0x7F) << shift
  1254. if b < 0x80 {
  1255. break
  1256. }
  1257. }
  1258. wireType := int(wire & 0x7)
  1259. switch wireType {
  1260. case 0:
  1261. for shift := uint(0); ; shift += 7 {
  1262. if shift >= 64 {
  1263. return 0, ErrIntOverflowVip
  1264. }
  1265. if iNdEx >= l {
  1266. return 0, io.ErrUnexpectedEOF
  1267. }
  1268. iNdEx++
  1269. if dAtA[iNdEx-1] < 0x80 {
  1270. break
  1271. }
  1272. }
  1273. return iNdEx, nil
  1274. case 1:
  1275. iNdEx += 8
  1276. return iNdEx, nil
  1277. case 2:
  1278. var length int
  1279. for shift := uint(0); ; shift += 7 {
  1280. if shift >= 64 {
  1281. return 0, ErrIntOverflowVip
  1282. }
  1283. if iNdEx >= l {
  1284. return 0, io.ErrUnexpectedEOF
  1285. }
  1286. b := dAtA[iNdEx]
  1287. iNdEx++
  1288. length |= (int(b) & 0x7F) << shift
  1289. if b < 0x80 {
  1290. break
  1291. }
  1292. }
  1293. iNdEx += length
  1294. if length < 0 {
  1295. return 0, ErrInvalidLengthVip
  1296. }
  1297. return iNdEx, nil
  1298. case 3:
  1299. for {
  1300. var innerWire uint64
  1301. var start int = iNdEx
  1302. for shift := uint(0); ; shift += 7 {
  1303. if shift >= 64 {
  1304. return 0, ErrIntOverflowVip
  1305. }
  1306. if iNdEx >= l {
  1307. return 0, io.ErrUnexpectedEOF
  1308. }
  1309. b := dAtA[iNdEx]
  1310. iNdEx++
  1311. innerWire |= (uint64(b) & 0x7F) << shift
  1312. if b < 0x80 {
  1313. break
  1314. }
  1315. }
  1316. innerWireType := int(innerWire & 0x7)
  1317. if innerWireType == 4 {
  1318. break
  1319. }
  1320. next, err := skipVip(dAtA[start:])
  1321. if err != nil {
  1322. return 0, err
  1323. }
  1324. iNdEx = start + next
  1325. }
  1326. return iNdEx, nil
  1327. case 4:
  1328. return iNdEx, nil
  1329. case 5:
  1330. iNdEx += 4
  1331. return iNdEx, nil
  1332. default:
  1333. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1334. }
  1335. }
  1336. panic("unreachable")
  1337. }
  1338. var (
  1339. ErrInvalidLengthVip = fmt.Errorf("proto: negative length found during unmarshaling")
  1340. ErrIntOverflowVip = fmt.Errorf("proto: integer overflow")
  1341. )
  1342. func init() {
  1343. proto.RegisterFile("app/service/live/xuser/api/grpc/v1/vip.proto", fileDescriptor_vip_104e2dab5f0482b7)
  1344. }
  1345. var fileDescriptor_vip_104e2dab5f0482b7 = []byte{
  1346. // 517 bytes of a gzipped FileDescriptorProto
  1347. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcf, 0x6e, 0xd3, 0x40,
  1348. 0x10, 0x87, 0xe5, 0x38, 0x75, 0x9c, 0x81, 0x16, 0xd8, 0x82, 0x6a, 0x45, 0x28, 0x8e, 0xdc, 0x43,
  1349. 0x03, 0x14, 0x9b, 0x04, 0x2a, 0x10, 0x02, 0x0e, 0xbe, 0xe5, 0x82, 0x90, 0x05, 0x1c, 0xb8, 0x54,
  1350. 0x4e, 0xbc, 0x31, 0x2b, 0xc5, 0xd9, 0xad, 0xed, 0xb5, 0xc8, 0xeb, 0xf0, 0x34, 0x1c, 0x79, 0x02,
  1351. 0x0b, 0xe5, 0xc0, 0x21, 0xc7, 0x1e, 0x39, 0xa1, 0x1d, 0x3b, 0x09, 0x7f, 0x4a, 0xe9, 0xcd, 0x33,
  1352. 0xf9, 0x7e, 0x19, 0xef, 0x37, 0x6b, 0x38, 0x0e, 0x85, 0xf0, 0x32, 0x9a, 0x16, 0x6c, 0x42, 0xbd,
  1353. 0x19, 0x2b, 0xa8, 0xf7, 0x49, 0x66, 0x34, 0xf5, 0x42, 0xc1, 0xbc, 0x38, 0x15, 0x13, 0xaf, 0x18,
  1354. 0x78, 0x05, 0x13, 0xae, 0x48, 0x79, 0xce, 0xc9, 0xae, 0x22, 0x5c, 0x24, 0xdc, 0x62, 0xd0, 0x79,
  1355. 0x18, 0xb3, 0xfc, 0xa3, 0x1c, 0xbb, 0x13, 0x9e, 0x78, 0x31, 0x8f, 0xb9, 0x87, 0xd4, 0x58, 0x4e,
  1356. 0xb1, 0xc2, 0x02, 0x9f, 0xaa, 0x74, 0xe7, 0xc1, 0xff, 0x66, 0x55, 0x7f, 0x8c, 0xb0, 0xf3, 0x0c,
  1357. 0x8c, 0x77, 0x2c, 0x0a, 0xe8, 0x19, 0x71, 0x41, 0x97, 0x2c, 0xb2, 0xb4, 0x9e, 0xd6, 0xd7, 0xfd,
  1358. 0xbb, 0xe7, 0xa5, 0x6d, 0x15, 0xe1, 0x8c, 0x45, 0x61, 0x4e, 0x9f, 0x3b, 0x71, 0xfe, 0xf2, 0xd1,
  1359. 0x71, 0x4a, 0xcf, 0x24, 0x4b, 0x69, 0xe4, 0x04, 0x0a, 0x74, 0x3e, 0x6b, 0xd0, 0x1c, 0xcd, 0xa7,
  1360. 0x9c, 0xf4, 0x40, 0x2f, 0x98, 0xc0, 0xe0, 0x8e, 0xbf, 0xb7, 0x2a, 0x6d, 0x55, 0xfe, 0x28, 0x6d,
  1361. 0x9d, 0xcd, 0xf3, 0x40, 0x3d, 0x93, 0x43, 0x68, 0x66, 0x0a, 0x69, 0x20, 0x72, 0x63, 0x55, 0xda,
  1362. 0x58, 0xaf, 0x19, 0x2c, 0xc8, 0x11, 0x98, 0x05, 0x13, 0xa7, 0x39, 0x4b, 0xa8, 0xa5, 0xf7, 0xb4,
  1363. 0x7e, 0xdb, 0xbf, 0xbe, 0x2a, 0xed, 0x4d, 0x2f, 0x68, 0x15, 0x4c, 0xbc, 0x65, 0x09, 0x25, 0xf7,
  1364. 0xa1, 0x9d, 0x6d, 0xc8, 0x26, 0x92, 0xbb, 0xab, 0xd2, 0xde, 0x36, 0x03, 0x33, 0xab, 0x59, 0xe7,
  1365. 0x09, 0xb4, 0xd5, 0x3b, 0x06, 0x54, 0xcc, 0x16, 0xe4, 0x08, 0x9a, 0x6c, 0x3e, 0xe5, 0xf8, 0xa6,
  1366. 0xd7, 0x86, 0xfb, 0xee, 0x6f, 0x96, 0x5d, 0xe4, 0x10, 0x70, 0xbe, 0x37, 0xc0, 0xf0, 0xe5, 0x42,
  1367. 0x59, 0x19, 0x82, 0xc9, 0xd3, 0x88, 0xa6, 0xa7, 0xb5, 0x9a, 0xb6, 0x7f, 0x70, 0x5e, 0xda, 0xfb,
  1368. 0x5b, 0x35, 0x5b, 0x2b, 0x2d, 0x04, 0x47, 0xd1, 0xda, 0x64, 0xe3, 0x8a, 0x26, 0xc9, 0x0b, 0x68,
  1369. 0xc5, 0x9c, 0x47, 0x6a, 0x84, 0x8e, 0x86, 0x0e, 0x2f, 0xcb, 0xac, 0xad, 0x19, 0x2a, 0x33, 0x8a,
  1370. 0xc8, 0x2b, 0x30, 0x31, 0x3d, 0x97, 0x09, 0xda, 0xb8, 0x62, 0x1c, 0x47, 0xbe, 0x96, 0x09, 0x19,
  1371. 0x81, 0x29, 0x66, 0x61, 0x3e, 0xe5, 0x69, 0x62, 0xed, 0xf4, 0xb4, 0xfe, 0xde, 0xf0, 0xf6, 0xaf,
  1372. 0x66, 0xde, 0xd4, 0xbf, 0xfd, 0xfb, 0xdc, 0x9b, 0x38, 0xf1, 0xc0, 0xc8, 0xb8, 0x4c, 0x27, 0xd4,
  1373. 0x32, 0x2e, 0x57, 0x55, 0x63, 0xce, 0x09, 0x98, 0xe8, 0x59, 0x6d, 0xe7, 0x1e, 0x18, 0x59, 0x1e,
  1374. 0xe6, 0x32, 0xab, 0x6f, 0xd2, 0xad, 0x55, 0x69, 0xd7, 0x9d, 0xcd, 0x91, 0xab, 0x72, 0x28, 0x41,
  1375. 0x7f, 0xcf, 0x04, 0x79, 0x5a, 0x5f, 0xc0, 0x3b, 0x7f, 0x6c, 0xb2, 0xba, 0xd0, 0x1d, 0xeb, 0xa2,
  1376. 0x05, 0xe3, 0xa8, 0x13, 0xd0, 0x7d, 0xb9, 0xf8, 0x2b, 0x57, 0xad, 0xbc, 0x73, 0x70, 0x51, 0x5b,
  1377. 0xcc, 0x16, 0xfe, 0xcd, 0x2f, 0xcb, 0xae, 0xf6, 0x75, 0xd9, 0xd5, 0xbe, 0x2d, 0xbb, 0xda, 0x87,
  1378. 0x46, 0x31, 0x18, 0x1b, 0xf8, 0x11, 0x3d, 0xfe, 0x19, 0x00, 0x00, 0xff, 0xff, 0x1a, 0xc3, 0xe4,
  1379. 0x45, 0xdf, 0x03, 0x00, 0x00,
  1380. }