UnionFans.pb.go 40 KB

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