BaseInfo.pb.go 37 KB

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