service.pb.go 66 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/openplatform/pgc-season/api/grpc/episode/v1/service.proto
  3. package v1
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import context "golang.org/x/net/context"
  8. import grpc "google.golang.org/grpc"
  9. import io "io"
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // EpisodeInfoReq ep request param
  15. type EpisodeInfoReq struct {
  16. // episode_ids
  17. EpisodeIds []int32 `protobuf:"varint,1,rep,packed,name=episode_ids,json=episodeIds" json:"episode_ids,omitempty"`
  18. }
  19. func (m *EpisodeInfoReq) Reset() { *m = EpisodeInfoReq{} }
  20. func (m *EpisodeInfoReq) String() string { return proto.CompactTextString(m) }
  21. func (*EpisodeInfoReq) ProtoMessage() {}
  22. func (*EpisodeInfoReq) Descriptor() ([]byte, []int) { return fileDescriptorService, []int{0} }
  23. func (m *EpisodeInfoReq) GetEpisodeIds() []int32 {
  24. if m != nil {
  25. return m.EpisodeIds
  26. }
  27. return nil
  28. }
  29. // EpAidReq aids request param
  30. type EpAidReq struct {
  31. // aids
  32. Aids []int32 `protobuf:"varint,1,rep,packed,name=aids" json:"aids,omitempty"`
  33. }
  34. func (m *EpAidReq) Reset() { *m = EpAidReq{} }
  35. func (m *EpAidReq) String() string { return proto.CompactTextString(m) }
  36. func (*EpAidReq) ProtoMessage() {}
  37. func (*EpAidReq) Descriptor() ([]byte, []int) { return fileDescriptorService, []int{1} }
  38. func (m *EpAidReq) GetAids() []int32 {
  39. if m != nil {
  40. return m.Aids
  41. }
  42. return nil
  43. }
  44. // EpisodeInfoReply ep response
  45. type EpisodeInfoReply struct {
  46. // infos
  47. Infos map[int32]*EpisodeInfoProto `protobuf:"bytes,1,rep,name=infos" json:"infos,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  48. }
  49. func (m *EpisodeInfoReply) Reset() { *m = EpisodeInfoReply{} }
  50. func (m *EpisodeInfoReply) String() string { return proto.CompactTextString(m) }
  51. func (*EpisodeInfoReply) ProtoMessage() {}
  52. func (*EpisodeInfoReply) Descriptor() ([]byte, []int) { return fileDescriptorService, []int{2} }
  53. func (m *EpisodeInfoReply) GetInfos() map[int32]*EpisodeInfoProto {
  54. if m != nil {
  55. return m.Infos
  56. }
  57. return nil
  58. }
  59. // EpisodeCardsReply cards
  60. type EpisodeCardsReply struct {
  61. // cards
  62. Cards map[int32]*EpisodeCardsProto `protobuf:"bytes,1,rep,name=cards" json:"cards,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  63. }
  64. func (m *EpisodeCardsReply) Reset() { *m = EpisodeCardsReply{} }
  65. func (m *EpisodeCardsReply) String() string { return proto.CompactTextString(m) }
  66. func (*EpisodeCardsReply) ProtoMessage() {}
  67. func (*EpisodeCardsReply) Descriptor() ([]byte, []int) { return fileDescriptorService, []int{3} }
  68. func (m *EpisodeCardsReply) GetCards() map[int32]*EpisodeCardsProto {
  69. if m != nil {
  70. return m.Cards
  71. }
  72. return nil
  73. }
  74. // EpReq epids请求参数
  75. type EpReq struct {
  76. // aids
  77. Epids []int32 `protobuf:"varint,1,rep,packed,name=epids" json:"epids,omitempty"`
  78. // 是否要查出下架的 默认0
  79. NeedAll int32 `protobuf:"varint,2,opt,name=need_all,json=needAll,proto3" json:"need_all,omitempty"`
  80. }
  81. func (m *EpReq) Reset() { *m = EpReq{} }
  82. func (m *EpReq) String() string { return proto.CompactTextString(m) }
  83. func (*EpReq) ProtoMessage() {}
  84. func (*EpReq) Descriptor() ([]byte, []int) { return fileDescriptorService, []int{4} }
  85. func (m *EpReq) GetEpids() []int32 {
  86. if m != nil {
  87. return m.Epids
  88. }
  89. return nil
  90. }
  91. func (m *EpReq) GetNeedAll() int32 {
  92. if m != nil {
  93. return m.NeedAll
  94. }
  95. return 0
  96. }
  97. // SectionEeq 请求参数
  98. type SectionEpisodeReq struct {
  99. // sections
  100. Sections []int32 `protobuf:"varint,1,rep,packed,name=sections" json:"sections,omitempty"`
  101. // season_type
  102. SeasonType int32 `protobuf:"varint,2,opt,name=season_type,json=seasonType,proto3" json:"season_type,omitempty"`
  103. }
  104. func (m *SectionEpisodeReq) Reset() { *m = SectionEpisodeReq{} }
  105. func (m *SectionEpisodeReq) String() string { return proto.CompactTextString(m) }
  106. func (*SectionEpisodeReq) ProtoMessage() {}
  107. func (*SectionEpisodeReq) Descriptor() ([]byte, []int) { return fileDescriptorService, []int{5} }
  108. func (m *SectionEpisodeReq) GetSections() []int32 {
  109. if m != nil {
  110. return m.Sections
  111. }
  112. return nil
  113. }
  114. func (m *SectionEpisodeReq) GetSeasonType() int32 {
  115. if m != nil {
  116. return m.SeasonType
  117. }
  118. return 0
  119. }
  120. // SectionReply 分节eps
  121. type SectionEpisodeReply struct {
  122. // infos
  123. Episodes map[int32]*SectionEpisodeProto `protobuf:"bytes,1,rep,name=episodes" json:"episodes,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  124. }
  125. func (m *SectionEpisodeReply) Reset() { *m = SectionEpisodeReply{} }
  126. func (m *SectionEpisodeReply) String() string { return proto.CompactTextString(m) }
  127. func (*SectionEpisodeReply) ProtoMessage() {}
  128. func (*SectionEpisodeReply) Descriptor() ([]byte, []int) { return fileDescriptorService, []int{6} }
  129. func (m *SectionEpisodeReply) GetEpisodes() map[int32]*SectionEpisodeProto {
  130. if m != nil {
  131. return m.Episodes
  132. }
  133. return nil
  134. }
  135. // EpClearReq ClearCache请求参数
  136. type EpClearReq struct {
  137. // ep_id
  138. EpId int32 `protobuf:"varint,1,opt,name=ep_id,json=epId,proto3" json:"ep_id,omitempty"`
  139. // aid
  140. Aid int32 `protobuf:"varint,2,opt,name=aid,proto3" json:"aid,omitempty"`
  141. }
  142. func (m *EpClearReq) Reset() { *m = EpClearReq{} }
  143. func (m *EpClearReq) String() string { return proto.CompactTextString(m) }
  144. func (*EpClearReq) ProtoMessage() {}
  145. func (*EpClearReq) Descriptor() ([]byte, []int) { return fileDescriptorService, []int{7} }
  146. func (m *EpClearReq) GetEpId() int32 {
  147. if m != nil {
  148. return m.EpId
  149. }
  150. return 0
  151. }
  152. func (m *EpClearReq) GetAid() int32 {
  153. if m != nil {
  154. return m.Aid
  155. }
  156. return 0
  157. }
  158. // EpisodeBadgeReq 请求参数
  159. type EpisodeBadgeReq struct {
  160. // ep_id
  161. EpId int32 `protobuf:"varint,1,opt,name=ep_id,json=epId,proto3" json:"ep_id,omitempty"`
  162. // ep_status
  163. EpStatus int32 `protobuf:"varint,2,opt,name=ep_status,json=epStatus,proto3" json:"ep_status,omitempty"`
  164. // is_finished
  165. IsFinished int32 `protobuf:"varint,3,opt,name=is_finished,json=isFinished,proto3" json:"is_finished,omitempty"`
  166. }
  167. func (m *EpisodeBadgeReq) Reset() { *m = EpisodeBadgeReq{} }
  168. func (m *EpisodeBadgeReq) String() string { return proto.CompactTextString(m) }
  169. func (*EpisodeBadgeReq) ProtoMessage() {}
  170. func (*EpisodeBadgeReq) Descriptor() ([]byte, []int) { return fileDescriptorService, []int{8} }
  171. func (m *EpisodeBadgeReq) GetEpId() int32 {
  172. if m != nil {
  173. return m.EpId
  174. }
  175. return 0
  176. }
  177. func (m *EpisodeBadgeReq) GetEpStatus() int32 {
  178. if m != nil {
  179. return m.EpStatus
  180. }
  181. return 0
  182. }
  183. func (m *EpisodeBadgeReq) GetIsFinished() int32 {
  184. if m != nil {
  185. return m.IsFinished
  186. }
  187. return 0
  188. }
  189. // EpisodeBadgesReq 请求参数
  190. type EpisodeBadgesReq struct {
  191. EpisodeBadges []*EpisodeBadgeReq `protobuf:"bytes,1,rep,name=episode_badges,json=episodeBadges" json:"episode_badges,omitempty"`
  192. }
  193. func (m *EpisodeBadgesReq) Reset() { *m = EpisodeBadgesReq{} }
  194. func (m *EpisodeBadgesReq) String() string { return proto.CompactTextString(m) }
  195. func (*EpisodeBadgesReq) ProtoMessage() {}
  196. func (*EpisodeBadgesReq) Descriptor() ([]byte, []int) { return fileDescriptorService, []int{9} }
  197. func (m *EpisodeBadgesReq) GetEpisodeBadges() []*EpisodeBadgeReq {
  198. if m != nil {
  199. return m.EpisodeBadges
  200. }
  201. return nil
  202. }
  203. // EpisodeBadgesReply .
  204. type EpisodeBadgesReply struct {
  205. Badges map[int32]*EpisodeBadgeProto `protobuf:"bytes,1,rep,name=badges" json:"badges,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  206. }
  207. func (m *EpisodeBadgesReply) Reset() { *m = EpisodeBadgesReply{} }
  208. func (m *EpisodeBadgesReply) String() string { return proto.CompactTextString(m) }
  209. func (*EpisodeBadgesReply) ProtoMessage() {}
  210. func (*EpisodeBadgesReply) Descriptor() ([]byte, []int) { return fileDescriptorService, []int{10} }
  211. func (m *EpisodeBadgesReply) GetBadges() map[int32]*EpisodeBadgeProto {
  212. if m != nil {
  213. return m.Badges
  214. }
  215. return nil
  216. }
  217. func init() {
  218. proto.RegisterType((*EpisodeInfoReq)(nil), "pgc.service.season.episode.v1.EpisodeInfoReq")
  219. proto.RegisterType((*EpAidReq)(nil), "pgc.service.season.episode.v1.EpAidReq")
  220. proto.RegisterType((*EpisodeInfoReply)(nil), "pgc.service.season.episode.v1.EpisodeInfoReply")
  221. proto.RegisterType((*EpisodeCardsReply)(nil), "pgc.service.season.episode.v1.EpisodeCardsReply")
  222. proto.RegisterType((*EpReq)(nil), "pgc.service.season.episode.v1.EpReq")
  223. proto.RegisterType((*SectionEpisodeReq)(nil), "pgc.service.season.episode.v1.SectionEpisodeReq")
  224. proto.RegisterType((*SectionEpisodeReply)(nil), "pgc.service.season.episode.v1.SectionEpisodeReply")
  225. proto.RegisterType((*EpClearReq)(nil), "pgc.service.season.episode.v1.EpClearReq")
  226. proto.RegisterType((*EpisodeBadgeReq)(nil), "pgc.service.season.episode.v1.EpisodeBadgeReq")
  227. proto.RegisterType((*EpisodeBadgesReq)(nil), "pgc.service.season.episode.v1.EpisodeBadgesReq")
  228. proto.RegisterType((*EpisodeBadgesReply)(nil), "pgc.service.season.episode.v1.EpisodeBadgesReply")
  229. }
  230. // Reference imports to suppress errors if they are not otherwise used.
  231. var _ context.Context
  232. var _ grpc.ClientConn
  233. // This is a compile-time assertion to ensure that this generated file
  234. // is compatible with the grpc package it is being compiled against.
  235. const _ = grpc.SupportPackageIsVersion4
  236. // Client API for Episode service
  237. type EpisodeClient interface {
  238. // 根据ep_ids 返回ep详情
  239. List(ctx context.Context, in *EpisodeInfoReq, opts ...grpc.CallOption) (*EpisodeInfoReply, error)
  240. // 根据aids 返回ep详情
  241. ListByAids(ctx context.Context, in *EpAidReq, opts ...grpc.CallOption) (*EpisodeInfoReply, error)
  242. // 根据section返回eps
  243. ListBySection(ctx context.Context, in *SectionEpisodeReq, opts ...grpc.CallOption) (*SectionEpisodeReply, error)
  244. // 根据epid返回season,episode基本信息
  245. Cards(ctx context.Context, in *EpReq, opts ...grpc.CallOption) (*EpisodeCardsReply, error)
  246. // 根据ep_id or aid清除mc缓存
  247. ClearCache(ctx context.Context, in *EpClearReq, opts ...grpc.CallOption) (*EmptyProto, error)
  248. // 根据ep_ids 返回ep对应的badge
  249. Badges(ctx context.Context, in *EpisodeBadgesReq, opts ...grpc.CallOption) (*EpisodeBadgesReply, error)
  250. // 根据aids 返回ep对应的EpisodeCards
  251. CardsByAids(ctx context.Context, in *EpAidReq, opts ...grpc.CallOption) (*EpisodeCardsReply, error)
  252. }
  253. type episodeClient struct {
  254. cc *grpc.ClientConn
  255. }
  256. func NewEpisodeClient(cc *grpc.ClientConn) EpisodeClient {
  257. return &episodeClient{cc}
  258. }
  259. func (c *episodeClient) List(ctx context.Context, in *EpisodeInfoReq, opts ...grpc.CallOption) (*EpisodeInfoReply, error) {
  260. out := new(EpisodeInfoReply)
  261. err := grpc.Invoke(ctx, "/pgc.service.season.episode.v1.Episode/List", in, out, c.cc, opts...)
  262. if err != nil {
  263. return nil, err
  264. }
  265. return out, nil
  266. }
  267. func (c *episodeClient) ListByAids(ctx context.Context, in *EpAidReq, opts ...grpc.CallOption) (*EpisodeInfoReply, error) {
  268. out := new(EpisodeInfoReply)
  269. err := grpc.Invoke(ctx, "/pgc.service.season.episode.v1.Episode/ListByAids", in, out, c.cc, opts...)
  270. if err != nil {
  271. return nil, err
  272. }
  273. return out, nil
  274. }
  275. func (c *episodeClient) ListBySection(ctx context.Context, in *SectionEpisodeReq, opts ...grpc.CallOption) (*SectionEpisodeReply, error) {
  276. out := new(SectionEpisodeReply)
  277. err := grpc.Invoke(ctx, "/pgc.service.season.episode.v1.Episode/ListBySection", in, out, c.cc, opts...)
  278. if err != nil {
  279. return nil, err
  280. }
  281. return out, nil
  282. }
  283. func (c *episodeClient) Cards(ctx context.Context, in *EpReq, opts ...grpc.CallOption) (*EpisodeCardsReply, error) {
  284. out := new(EpisodeCardsReply)
  285. err := grpc.Invoke(ctx, "/pgc.service.season.episode.v1.Episode/Cards", in, out, c.cc, opts...)
  286. if err != nil {
  287. return nil, err
  288. }
  289. return out, nil
  290. }
  291. func (c *episodeClient) ClearCache(ctx context.Context, in *EpClearReq, opts ...grpc.CallOption) (*EmptyProto, error) {
  292. out := new(EmptyProto)
  293. err := grpc.Invoke(ctx, "/pgc.service.season.episode.v1.Episode/ClearCache", in, out, c.cc, opts...)
  294. if err != nil {
  295. return nil, err
  296. }
  297. return out, nil
  298. }
  299. func (c *episodeClient) Badges(ctx context.Context, in *EpisodeBadgesReq, opts ...grpc.CallOption) (*EpisodeBadgesReply, error) {
  300. out := new(EpisodeBadgesReply)
  301. err := grpc.Invoke(ctx, "/pgc.service.season.episode.v1.Episode/Badges", in, out, c.cc, opts...)
  302. if err != nil {
  303. return nil, err
  304. }
  305. return out, nil
  306. }
  307. func (c *episodeClient) CardsByAids(ctx context.Context, in *EpAidReq, opts ...grpc.CallOption) (*EpisodeCardsReply, error) {
  308. out := new(EpisodeCardsReply)
  309. err := grpc.Invoke(ctx, "/pgc.service.season.episode.v1.Episode/CardsByAids", in, out, c.cc, opts...)
  310. if err != nil {
  311. return nil, err
  312. }
  313. return out, nil
  314. }
  315. // Server API for Episode service
  316. type EpisodeServer interface {
  317. // 根据ep_ids 返回ep详情
  318. List(context.Context, *EpisodeInfoReq) (*EpisodeInfoReply, error)
  319. // 根据aids 返回ep详情
  320. ListByAids(context.Context, *EpAidReq) (*EpisodeInfoReply, error)
  321. // 根据section返回eps
  322. ListBySection(context.Context, *SectionEpisodeReq) (*SectionEpisodeReply, error)
  323. // 根据epid返回season,episode基本信息
  324. Cards(context.Context, *EpReq) (*EpisodeCardsReply, error)
  325. // 根据ep_id or aid清除mc缓存
  326. ClearCache(context.Context, *EpClearReq) (*EmptyProto, error)
  327. // 根据ep_ids 返回ep对应的badge
  328. Badges(context.Context, *EpisodeBadgesReq) (*EpisodeBadgesReply, error)
  329. // 根据aids 返回ep对应的EpisodeCards
  330. CardsByAids(context.Context, *EpAidReq) (*EpisodeCardsReply, error)
  331. }
  332. func RegisterEpisodeServer(s *grpc.Server, srv EpisodeServer) {
  333. s.RegisterService(&_Episode_serviceDesc, srv)
  334. }
  335. func _Episode_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  336. in := new(EpisodeInfoReq)
  337. if err := dec(in); err != nil {
  338. return nil, err
  339. }
  340. if interceptor == nil {
  341. return srv.(EpisodeServer).List(ctx, in)
  342. }
  343. info := &grpc.UnaryServerInfo{
  344. Server: srv,
  345. FullMethod: "/pgc.service.season.episode.v1.Episode/List",
  346. }
  347. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  348. return srv.(EpisodeServer).List(ctx, req.(*EpisodeInfoReq))
  349. }
  350. return interceptor(ctx, in, info, handler)
  351. }
  352. func _Episode_ListByAids_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  353. in := new(EpAidReq)
  354. if err := dec(in); err != nil {
  355. return nil, err
  356. }
  357. if interceptor == nil {
  358. return srv.(EpisodeServer).ListByAids(ctx, in)
  359. }
  360. info := &grpc.UnaryServerInfo{
  361. Server: srv,
  362. FullMethod: "/pgc.service.season.episode.v1.Episode/ListByAids",
  363. }
  364. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  365. return srv.(EpisodeServer).ListByAids(ctx, req.(*EpAidReq))
  366. }
  367. return interceptor(ctx, in, info, handler)
  368. }
  369. func _Episode_ListBySection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  370. in := new(SectionEpisodeReq)
  371. if err := dec(in); err != nil {
  372. return nil, err
  373. }
  374. if interceptor == nil {
  375. return srv.(EpisodeServer).ListBySection(ctx, in)
  376. }
  377. info := &grpc.UnaryServerInfo{
  378. Server: srv,
  379. FullMethod: "/pgc.service.season.episode.v1.Episode/ListBySection",
  380. }
  381. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  382. return srv.(EpisodeServer).ListBySection(ctx, req.(*SectionEpisodeReq))
  383. }
  384. return interceptor(ctx, in, info, handler)
  385. }
  386. func _Episode_Cards_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  387. in := new(EpReq)
  388. if err := dec(in); err != nil {
  389. return nil, err
  390. }
  391. if interceptor == nil {
  392. return srv.(EpisodeServer).Cards(ctx, in)
  393. }
  394. info := &grpc.UnaryServerInfo{
  395. Server: srv,
  396. FullMethod: "/pgc.service.season.episode.v1.Episode/Cards",
  397. }
  398. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  399. return srv.(EpisodeServer).Cards(ctx, req.(*EpReq))
  400. }
  401. return interceptor(ctx, in, info, handler)
  402. }
  403. func _Episode_ClearCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  404. in := new(EpClearReq)
  405. if err := dec(in); err != nil {
  406. return nil, err
  407. }
  408. if interceptor == nil {
  409. return srv.(EpisodeServer).ClearCache(ctx, in)
  410. }
  411. info := &grpc.UnaryServerInfo{
  412. Server: srv,
  413. FullMethod: "/pgc.service.season.episode.v1.Episode/ClearCache",
  414. }
  415. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  416. return srv.(EpisodeServer).ClearCache(ctx, req.(*EpClearReq))
  417. }
  418. return interceptor(ctx, in, info, handler)
  419. }
  420. func _Episode_Badges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  421. in := new(EpisodeBadgesReq)
  422. if err := dec(in); err != nil {
  423. return nil, err
  424. }
  425. if interceptor == nil {
  426. return srv.(EpisodeServer).Badges(ctx, in)
  427. }
  428. info := &grpc.UnaryServerInfo{
  429. Server: srv,
  430. FullMethod: "/pgc.service.season.episode.v1.Episode/Badges",
  431. }
  432. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  433. return srv.(EpisodeServer).Badges(ctx, req.(*EpisodeBadgesReq))
  434. }
  435. return interceptor(ctx, in, info, handler)
  436. }
  437. func _Episode_CardsByAids_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  438. in := new(EpAidReq)
  439. if err := dec(in); err != nil {
  440. return nil, err
  441. }
  442. if interceptor == nil {
  443. return srv.(EpisodeServer).CardsByAids(ctx, in)
  444. }
  445. info := &grpc.UnaryServerInfo{
  446. Server: srv,
  447. FullMethod: "/pgc.service.season.episode.v1.Episode/CardsByAids",
  448. }
  449. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  450. return srv.(EpisodeServer).CardsByAids(ctx, req.(*EpAidReq))
  451. }
  452. return interceptor(ctx, in, info, handler)
  453. }
  454. var _Episode_serviceDesc = grpc.ServiceDesc{
  455. ServiceName: "pgc.service.season.episode.v1.Episode",
  456. HandlerType: (*EpisodeServer)(nil),
  457. Methods: []grpc.MethodDesc{
  458. {
  459. MethodName: "List",
  460. Handler: _Episode_List_Handler,
  461. },
  462. {
  463. MethodName: "ListByAids",
  464. Handler: _Episode_ListByAids_Handler,
  465. },
  466. {
  467. MethodName: "ListBySection",
  468. Handler: _Episode_ListBySection_Handler,
  469. },
  470. {
  471. MethodName: "Cards",
  472. Handler: _Episode_Cards_Handler,
  473. },
  474. {
  475. MethodName: "ClearCache",
  476. Handler: _Episode_ClearCache_Handler,
  477. },
  478. {
  479. MethodName: "Badges",
  480. Handler: _Episode_Badges_Handler,
  481. },
  482. {
  483. MethodName: "CardsByAids",
  484. Handler: _Episode_CardsByAids_Handler,
  485. },
  486. },
  487. Streams: []grpc.StreamDesc{},
  488. Metadata: "app/service/openplatform/pgc-season/api/grpc/episode/v1/service.proto",
  489. }
  490. func (m *EpisodeInfoReq) Marshal() (dAtA []byte, err error) {
  491. size := m.Size()
  492. dAtA = make([]byte, size)
  493. n, err := m.MarshalTo(dAtA)
  494. if err != nil {
  495. return nil, err
  496. }
  497. return dAtA[:n], nil
  498. }
  499. func (m *EpisodeInfoReq) MarshalTo(dAtA []byte) (int, error) {
  500. var i int
  501. _ = i
  502. var l int
  503. _ = l
  504. if len(m.EpisodeIds) > 0 {
  505. dAtA2 := make([]byte, len(m.EpisodeIds)*10)
  506. var j1 int
  507. for _, num1 := range m.EpisodeIds {
  508. num := uint64(num1)
  509. for num >= 1<<7 {
  510. dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80)
  511. num >>= 7
  512. j1++
  513. }
  514. dAtA2[j1] = uint8(num)
  515. j1++
  516. }
  517. dAtA[i] = 0xa
  518. i++
  519. i = encodeVarintService(dAtA, i, uint64(j1))
  520. i += copy(dAtA[i:], dAtA2[:j1])
  521. }
  522. return i, nil
  523. }
  524. func (m *EpAidReq) Marshal() (dAtA []byte, err error) {
  525. size := m.Size()
  526. dAtA = make([]byte, size)
  527. n, err := m.MarshalTo(dAtA)
  528. if err != nil {
  529. return nil, err
  530. }
  531. return dAtA[:n], nil
  532. }
  533. func (m *EpAidReq) MarshalTo(dAtA []byte) (int, error) {
  534. var i int
  535. _ = i
  536. var l int
  537. _ = l
  538. if len(m.Aids) > 0 {
  539. dAtA4 := make([]byte, len(m.Aids)*10)
  540. var j3 int
  541. for _, num1 := range m.Aids {
  542. num := uint64(num1)
  543. for num >= 1<<7 {
  544. dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80)
  545. num >>= 7
  546. j3++
  547. }
  548. dAtA4[j3] = uint8(num)
  549. j3++
  550. }
  551. dAtA[i] = 0xa
  552. i++
  553. i = encodeVarintService(dAtA, i, uint64(j3))
  554. i += copy(dAtA[i:], dAtA4[:j3])
  555. }
  556. return i, nil
  557. }
  558. func (m *EpisodeInfoReply) Marshal() (dAtA []byte, err error) {
  559. size := m.Size()
  560. dAtA = make([]byte, size)
  561. n, err := m.MarshalTo(dAtA)
  562. if err != nil {
  563. return nil, err
  564. }
  565. return dAtA[:n], nil
  566. }
  567. func (m *EpisodeInfoReply) MarshalTo(dAtA []byte) (int, error) {
  568. var i int
  569. _ = i
  570. var l int
  571. _ = l
  572. if len(m.Infos) > 0 {
  573. for k, _ := range m.Infos {
  574. dAtA[i] = 0xa
  575. i++
  576. v := m.Infos[k]
  577. msgSize := 0
  578. if v != nil {
  579. msgSize = v.Size()
  580. msgSize += 1 + sovService(uint64(msgSize))
  581. }
  582. mapSize := 1 + sovService(uint64(k)) + msgSize
  583. i = encodeVarintService(dAtA, i, uint64(mapSize))
  584. dAtA[i] = 0x8
  585. i++
  586. i = encodeVarintService(dAtA, i, uint64(k))
  587. if v != nil {
  588. dAtA[i] = 0x12
  589. i++
  590. i = encodeVarintService(dAtA, i, uint64(v.Size()))
  591. n5, err := v.MarshalTo(dAtA[i:])
  592. if err != nil {
  593. return 0, err
  594. }
  595. i += n5
  596. }
  597. }
  598. }
  599. return i, nil
  600. }
  601. func (m *EpisodeCardsReply) Marshal() (dAtA []byte, err error) {
  602. size := m.Size()
  603. dAtA = make([]byte, size)
  604. n, err := m.MarshalTo(dAtA)
  605. if err != nil {
  606. return nil, err
  607. }
  608. return dAtA[:n], nil
  609. }
  610. func (m *EpisodeCardsReply) MarshalTo(dAtA []byte) (int, error) {
  611. var i int
  612. _ = i
  613. var l int
  614. _ = l
  615. if len(m.Cards) > 0 {
  616. for k, _ := range m.Cards {
  617. dAtA[i] = 0xa
  618. i++
  619. v := m.Cards[k]
  620. msgSize := 0
  621. if v != nil {
  622. msgSize = v.Size()
  623. msgSize += 1 + sovService(uint64(msgSize))
  624. }
  625. mapSize := 1 + sovService(uint64(k)) + msgSize
  626. i = encodeVarintService(dAtA, i, uint64(mapSize))
  627. dAtA[i] = 0x8
  628. i++
  629. i = encodeVarintService(dAtA, i, uint64(k))
  630. if v != nil {
  631. dAtA[i] = 0x12
  632. i++
  633. i = encodeVarintService(dAtA, i, uint64(v.Size()))
  634. n6, err := v.MarshalTo(dAtA[i:])
  635. if err != nil {
  636. return 0, err
  637. }
  638. i += n6
  639. }
  640. }
  641. }
  642. return i, nil
  643. }
  644. func (m *EpReq) Marshal() (dAtA []byte, err error) {
  645. size := m.Size()
  646. dAtA = make([]byte, size)
  647. n, err := m.MarshalTo(dAtA)
  648. if err != nil {
  649. return nil, err
  650. }
  651. return dAtA[:n], nil
  652. }
  653. func (m *EpReq) MarshalTo(dAtA []byte) (int, error) {
  654. var i int
  655. _ = i
  656. var l int
  657. _ = l
  658. if len(m.Epids) > 0 {
  659. dAtA8 := make([]byte, len(m.Epids)*10)
  660. var j7 int
  661. for _, num1 := range m.Epids {
  662. num := uint64(num1)
  663. for num >= 1<<7 {
  664. dAtA8[j7] = uint8(uint64(num)&0x7f | 0x80)
  665. num >>= 7
  666. j7++
  667. }
  668. dAtA8[j7] = uint8(num)
  669. j7++
  670. }
  671. dAtA[i] = 0xa
  672. i++
  673. i = encodeVarintService(dAtA, i, uint64(j7))
  674. i += copy(dAtA[i:], dAtA8[:j7])
  675. }
  676. if m.NeedAll != 0 {
  677. dAtA[i] = 0x10
  678. i++
  679. i = encodeVarintService(dAtA, i, uint64(m.NeedAll))
  680. }
  681. return i, nil
  682. }
  683. func (m *SectionEpisodeReq) Marshal() (dAtA []byte, err error) {
  684. size := m.Size()
  685. dAtA = make([]byte, size)
  686. n, err := m.MarshalTo(dAtA)
  687. if err != nil {
  688. return nil, err
  689. }
  690. return dAtA[:n], nil
  691. }
  692. func (m *SectionEpisodeReq) MarshalTo(dAtA []byte) (int, error) {
  693. var i int
  694. _ = i
  695. var l int
  696. _ = l
  697. if len(m.Sections) > 0 {
  698. dAtA10 := make([]byte, len(m.Sections)*10)
  699. var j9 int
  700. for _, num1 := range m.Sections {
  701. num := uint64(num1)
  702. for num >= 1<<7 {
  703. dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80)
  704. num >>= 7
  705. j9++
  706. }
  707. dAtA10[j9] = uint8(num)
  708. j9++
  709. }
  710. dAtA[i] = 0xa
  711. i++
  712. i = encodeVarintService(dAtA, i, uint64(j9))
  713. i += copy(dAtA[i:], dAtA10[:j9])
  714. }
  715. if m.SeasonType != 0 {
  716. dAtA[i] = 0x10
  717. i++
  718. i = encodeVarintService(dAtA, i, uint64(m.SeasonType))
  719. }
  720. return i, nil
  721. }
  722. func (m *SectionEpisodeReply) Marshal() (dAtA []byte, err error) {
  723. size := m.Size()
  724. dAtA = make([]byte, size)
  725. n, err := m.MarshalTo(dAtA)
  726. if err != nil {
  727. return nil, err
  728. }
  729. return dAtA[:n], nil
  730. }
  731. func (m *SectionEpisodeReply) MarshalTo(dAtA []byte) (int, error) {
  732. var i int
  733. _ = i
  734. var l int
  735. _ = l
  736. if len(m.Episodes) > 0 {
  737. for k, _ := range m.Episodes {
  738. dAtA[i] = 0xa
  739. i++
  740. v := m.Episodes[k]
  741. msgSize := 0
  742. if v != nil {
  743. msgSize = v.Size()
  744. msgSize += 1 + sovService(uint64(msgSize))
  745. }
  746. mapSize := 1 + sovService(uint64(k)) + msgSize
  747. i = encodeVarintService(dAtA, i, uint64(mapSize))
  748. dAtA[i] = 0x8
  749. i++
  750. i = encodeVarintService(dAtA, i, uint64(k))
  751. if v != nil {
  752. dAtA[i] = 0x12
  753. i++
  754. i = encodeVarintService(dAtA, i, uint64(v.Size()))
  755. n11, err := v.MarshalTo(dAtA[i:])
  756. if err != nil {
  757. return 0, err
  758. }
  759. i += n11
  760. }
  761. }
  762. }
  763. return i, nil
  764. }
  765. func (m *EpClearReq) Marshal() (dAtA []byte, err error) {
  766. size := m.Size()
  767. dAtA = make([]byte, size)
  768. n, err := m.MarshalTo(dAtA)
  769. if err != nil {
  770. return nil, err
  771. }
  772. return dAtA[:n], nil
  773. }
  774. func (m *EpClearReq) MarshalTo(dAtA []byte) (int, error) {
  775. var i int
  776. _ = i
  777. var l int
  778. _ = l
  779. if m.EpId != 0 {
  780. dAtA[i] = 0x8
  781. i++
  782. i = encodeVarintService(dAtA, i, uint64(m.EpId))
  783. }
  784. if m.Aid != 0 {
  785. dAtA[i] = 0x10
  786. i++
  787. i = encodeVarintService(dAtA, i, uint64(m.Aid))
  788. }
  789. return i, nil
  790. }
  791. func (m *EpisodeBadgeReq) Marshal() (dAtA []byte, err error) {
  792. size := m.Size()
  793. dAtA = make([]byte, size)
  794. n, err := m.MarshalTo(dAtA)
  795. if err != nil {
  796. return nil, err
  797. }
  798. return dAtA[:n], nil
  799. }
  800. func (m *EpisodeBadgeReq) MarshalTo(dAtA []byte) (int, error) {
  801. var i int
  802. _ = i
  803. var l int
  804. _ = l
  805. if m.EpId != 0 {
  806. dAtA[i] = 0x8
  807. i++
  808. i = encodeVarintService(dAtA, i, uint64(m.EpId))
  809. }
  810. if m.EpStatus != 0 {
  811. dAtA[i] = 0x10
  812. i++
  813. i = encodeVarintService(dAtA, i, uint64(m.EpStatus))
  814. }
  815. if m.IsFinished != 0 {
  816. dAtA[i] = 0x18
  817. i++
  818. i = encodeVarintService(dAtA, i, uint64(m.IsFinished))
  819. }
  820. return i, nil
  821. }
  822. func (m *EpisodeBadgesReq) Marshal() (dAtA []byte, err error) {
  823. size := m.Size()
  824. dAtA = make([]byte, size)
  825. n, err := m.MarshalTo(dAtA)
  826. if err != nil {
  827. return nil, err
  828. }
  829. return dAtA[:n], nil
  830. }
  831. func (m *EpisodeBadgesReq) MarshalTo(dAtA []byte) (int, error) {
  832. var i int
  833. _ = i
  834. var l int
  835. _ = l
  836. if len(m.EpisodeBadges) > 0 {
  837. for _, msg := range m.EpisodeBadges {
  838. dAtA[i] = 0xa
  839. i++
  840. i = encodeVarintService(dAtA, i, uint64(msg.Size()))
  841. n, err := msg.MarshalTo(dAtA[i:])
  842. if err != nil {
  843. return 0, err
  844. }
  845. i += n
  846. }
  847. }
  848. return i, nil
  849. }
  850. func (m *EpisodeBadgesReply) Marshal() (dAtA []byte, err error) {
  851. size := m.Size()
  852. dAtA = make([]byte, size)
  853. n, err := m.MarshalTo(dAtA)
  854. if err != nil {
  855. return nil, err
  856. }
  857. return dAtA[:n], nil
  858. }
  859. func (m *EpisodeBadgesReply) MarshalTo(dAtA []byte) (int, error) {
  860. var i int
  861. _ = i
  862. var l int
  863. _ = l
  864. if len(m.Badges) > 0 {
  865. for k, _ := range m.Badges {
  866. dAtA[i] = 0xa
  867. i++
  868. v := m.Badges[k]
  869. msgSize := 0
  870. if v != nil {
  871. msgSize = v.Size()
  872. msgSize += 1 + sovService(uint64(msgSize))
  873. }
  874. mapSize := 1 + sovService(uint64(k)) + msgSize
  875. i = encodeVarintService(dAtA, i, uint64(mapSize))
  876. dAtA[i] = 0x8
  877. i++
  878. i = encodeVarintService(dAtA, i, uint64(k))
  879. if v != nil {
  880. dAtA[i] = 0x12
  881. i++
  882. i = encodeVarintService(dAtA, i, uint64(v.Size()))
  883. n12, err := v.MarshalTo(dAtA[i:])
  884. if err != nil {
  885. return 0, err
  886. }
  887. i += n12
  888. }
  889. }
  890. }
  891. return i, nil
  892. }
  893. func encodeVarintService(dAtA []byte, offset int, v uint64) int {
  894. for v >= 1<<7 {
  895. dAtA[offset] = uint8(v&0x7f | 0x80)
  896. v >>= 7
  897. offset++
  898. }
  899. dAtA[offset] = uint8(v)
  900. return offset + 1
  901. }
  902. func (m *EpisodeInfoReq) Size() (n int) {
  903. var l int
  904. _ = l
  905. if len(m.EpisodeIds) > 0 {
  906. l = 0
  907. for _, e := range m.EpisodeIds {
  908. l += sovService(uint64(e))
  909. }
  910. n += 1 + sovService(uint64(l)) + l
  911. }
  912. return n
  913. }
  914. func (m *EpAidReq) Size() (n int) {
  915. var l int
  916. _ = l
  917. if len(m.Aids) > 0 {
  918. l = 0
  919. for _, e := range m.Aids {
  920. l += sovService(uint64(e))
  921. }
  922. n += 1 + sovService(uint64(l)) + l
  923. }
  924. return n
  925. }
  926. func (m *EpisodeInfoReply) Size() (n int) {
  927. var l int
  928. _ = l
  929. if len(m.Infos) > 0 {
  930. for k, v := range m.Infos {
  931. _ = k
  932. _ = v
  933. l = 0
  934. if v != nil {
  935. l = v.Size()
  936. l += 1 + sovService(uint64(l))
  937. }
  938. mapEntrySize := 1 + sovService(uint64(k)) + l
  939. n += mapEntrySize + 1 + sovService(uint64(mapEntrySize))
  940. }
  941. }
  942. return n
  943. }
  944. func (m *EpisodeCardsReply) Size() (n int) {
  945. var l int
  946. _ = l
  947. if len(m.Cards) > 0 {
  948. for k, v := range m.Cards {
  949. _ = k
  950. _ = v
  951. l = 0
  952. if v != nil {
  953. l = v.Size()
  954. l += 1 + sovService(uint64(l))
  955. }
  956. mapEntrySize := 1 + sovService(uint64(k)) + l
  957. n += mapEntrySize + 1 + sovService(uint64(mapEntrySize))
  958. }
  959. }
  960. return n
  961. }
  962. func (m *EpReq) Size() (n int) {
  963. var l int
  964. _ = l
  965. if len(m.Epids) > 0 {
  966. l = 0
  967. for _, e := range m.Epids {
  968. l += sovService(uint64(e))
  969. }
  970. n += 1 + sovService(uint64(l)) + l
  971. }
  972. if m.NeedAll != 0 {
  973. n += 1 + sovService(uint64(m.NeedAll))
  974. }
  975. return n
  976. }
  977. func (m *SectionEpisodeReq) Size() (n int) {
  978. var l int
  979. _ = l
  980. if len(m.Sections) > 0 {
  981. l = 0
  982. for _, e := range m.Sections {
  983. l += sovService(uint64(e))
  984. }
  985. n += 1 + sovService(uint64(l)) + l
  986. }
  987. if m.SeasonType != 0 {
  988. n += 1 + sovService(uint64(m.SeasonType))
  989. }
  990. return n
  991. }
  992. func (m *SectionEpisodeReply) Size() (n int) {
  993. var l int
  994. _ = l
  995. if len(m.Episodes) > 0 {
  996. for k, v := range m.Episodes {
  997. _ = k
  998. _ = v
  999. l = 0
  1000. if v != nil {
  1001. l = v.Size()
  1002. l += 1 + sovService(uint64(l))
  1003. }
  1004. mapEntrySize := 1 + sovService(uint64(k)) + l
  1005. n += mapEntrySize + 1 + sovService(uint64(mapEntrySize))
  1006. }
  1007. }
  1008. return n
  1009. }
  1010. func (m *EpClearReq) Size() (n int) {
  1011. var l int
  1012. _ = l
  1013. if m.EpId != 0 {
  1014. n += 1 + sovService(uint64(m.EpId))
  1015. }
  1016. if m.Aid != 0 {
  1017. n += 1 + sovService(uint64(m.Aid))
  1018. }
  1019. return n
  1020. }
  1021. func (m *EpisodeBadgeReq) Size() (n int) {
  1022. var l int
  1023. _ = l
  1024. if m.EpId != 0 {
  1025. n += 1 + sovService(uint64(m.EpId))
  1026. }
  1027. if m.EpStatus != 0 {
  1028. n += 1 + sovService(uint64(m.EpStatus))
  1029. }
  1030. if m.IsFinished != 0 {
  1031. n += 1 + sovService(uint64(m.IsFinished))
  1032. }
  1033. return n
  1034. }
  1035. func (m *EpisodeBadgesReq) Size() (n int) {
  1036. var l int
  1037. _ = l
  1038. if len(m.EpisodeBadges) > 0 {
  1039. for _, e := range m.EpisodeBadges {
  1040. l = e.Size()
  1041. n += 1 + l + sovService(uint64(l))
  1042. }
  1043. }
  1044. return n
  1045. }
  1046. func (m *EpisodeBadgesReply) Size() (n int) {
  1047. var l int
  1048. _ = l
  1049. if len(m.Badges) > 0 {
  1050. for k, v := range m.Badges {
  1051. _ = k
  1052. _ = v
  1053. l = 0
  1054. if v != nil {
  1055. l = v.Size()
  1056. l += 1 + sovService(uint64(l))
  1057. }
  1058. mapEntrySize := 1 + sovService(uint64(k)) + l
  1059. n += mapEntrySize + 1 + sovService(uint64(mapEntrySize))
  1060. }
  1061. }
  1062. return n
  1063. }
  1064. func sovService(x uint64) (n int) {
  1065. for {
  1066. n++
  1067. x >>= 7
  1068. if x == 0 {
  1069. break
  1070. }
  1071. }
  1072. return n
  1073. }
  1074. func sozService(x uint64) (n int) {
  1075. return sovService(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1076. }
  1077. func (m *EpisodeInfoReq) Unmarshal(dAtA []byte) error {
  1078. l := len(dAtA)
  1079. iNdEx := 0
  1080. for iNdEx < l {
  1081. preIndex := iNdEx
  1082. var wire uint64
  1083. for shift := uint(0); ; shift += 7 {
  1084. if shift >= 64 {
  1085. return ErrIntOverflowService
  1086. }
  1087. if iNdEx >= l {
  1088. return io.ErrUnexpectedEOF
  1089. }
  1090. b := dAtA[iNdEx]
  1091. iNdEx++
  1092. wire |= (uint64(b) & 0x7F) << shift
  1093. if b < 0x80 {
  1094. break
  1095. }
  1096. }
  1097. fieldNum := int32(wire >> 3)
  1098. wireType := int(wire & 0x7)
  1099. if wireType == 4 {
  1100. return fmt.Errorf("proto: EpisodeInfoReq: wiretype end group for non-group")
  1101. }
  1102. if fieldNum <= 0 {
  1103. return fmt.Errorf("proto: EpisodeInfoReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1104. }
  1105. switch fieldNum {
  1106. case 1:
  1107. if wireType == 0 {
  1108. var v int32
  1109. for shift := uint(0); ; shift += 7 {
  1110. if shift >= 64 {
  1111. return ErrIntOverflowService
  1112. }
  1113. if iNdEx >= l {
  1114. return io.ErrUnexpectedEOF
  1115. }
  1116. b := dAtA[iNdEx]
  1117. iNdEx++
  1118. v |= (int32(b) & 0x7F) << shift
  1119. if b < 0x80 {
  1120. break
  1121. }
  1122. }
  1123. m.EpisodeIds = append(m.EpisodeIds, v)
  1124. } else if wireType == 2 {
  1125. var packedLen int
  1126. for shift := uint(0); ; shift += 7 {
  1127. if shift >= 64 {
  1128. return ErrIntOverflowService
  1129. }
  1130. if iNdEx >= l {
  1131. return io.ErrUnexpectedEOF
  1132. }
  1133. b := dAtA[iNdEx]
  1134. iNdEx++
  1135. packedLen |= (int(b) & 0x7F) << shift
  1136. if b < 0x80 {
  1137. break
  1138. }
  1139. }
  1140. if packedLen < 0 {
  1141. return ErrInvalidLengthService
  1142. }
  1143. postIndex := iNdEx + packedLen
  1144. if postIndex > l {
  1145. return io.ErrUnexpectedEOF
  1146. }
  1147. for iNdEx < postIndex {
  1148. var v int32
  1149. for shift := uint(0); ; shift += 7 {
  1150. if shift >= 64 {
  1151. return ErrIntOverflowService
  1152. }
  1153. if iNdEx >= l {
  1154. return io.ErrUnexpectedEOF
  1155. }
  1156. b := dAtA[iNdEx]
  1157. iNdEx++
  1158. v |= (int32(b) & 0x7F) << shift
  1159. if b < 0x80 {
  1160. break
  1161. }
  1162. }
  1163. m.EpisodeIds = append(m.EpisodeIds, v)
  1164. }
  1165. } else {
  1166. return fmt.Errorf("proto: wrong wireType = %d for field EpisodeIds", wireType)
  1167. }
  1168. default:
  1169. iNdEx = preIndex
  1170. skippy, err := skipService(dAtA[iNdEx:])
  1171. if err != nil {
  1172. return err
  1173. }
  1174. if skippy < 0 {
  1175. return ErrInvalidLengthService
  1176. }
  1177. if (iNdEx + skippy) > l {
  1178. return io.ErrUnexpectedEOF
  1179. }
  1180. iNdEx += skippy
  1181. }
  1182. }
  1183. if iNdEx > l {
  1184. return io.ErrUnexpectedEOF
  1185. }
  1186. return nil
  1187. }
  1188. func (m *EpAidReq) Unmarshal(dAtA []byte) error {
  1189. l := len(dAtA)
  1190. iNdEx := 0
  1191. for iNdEx < l {
  1192. preIndex := iNdEx
  1193. var wire uint64
  1194. for shift := uint(0); ; shift += 7 {
  1195. if shift >= 64 {
  1196. return ErrIntOverflowService
  1197. }
  1198. if iNdEx >= l {
  1199. return io.ErrUnexpectedEOF
  1200. }
  1201. b := dAtA[iNdEx]
  1202. iNdEx++
  1203. wire |= (uint64(b) & 0x7F) << shift
  1204. if b < 0x80 {
  1205. break
  1206. }
  1207. }
  1208. fieldNum := int32(wire >> 3)
  1209. wireType := int(wire & 0x7)
  1210. if wireType == 4 {
  1211. return fmt.Errorf("proto: EpAidReq: wiretype end group for non-group")
  1212. }
  1213. if fieldNum <= 0 {
  1214. return fmt.Errorf("proto: EpAidReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1215. }
  1216. switch fieldNum {
  1217. case 1:
  1218. if wireType == 0 {
  1219. var v int32
  1220. for shift := uint(0); ; shift += 7 {
  1221. if shift >= 64 {
  1222. return ErrIntOverflowService
  1223. }
  1224. if iNdEx >= l {
  1225. return io.ErrUnexpectedEOF
  1226. }
  1227. b := dAtA[iNdEx]
  1228. iNdEx++
  1229. v |= (int32(b) & 0x7F) << shift
  1230. if b < 0x80 {
  1231. break
  1232. }
  1233. }
  1234. m.Aids = append(m.Aids, v)
  1235. } else if wireType == 2 {
  1236. var packedLen int
  1237. for shift := uint(0); ; shift += 7 {
  1238. if shift >= 64 {
  1239. return ErrIntOverflowService
  1240. }
  1241. if iNdEx >= l {
  1242. return io.ErrUnexpectedEOF
  1243. }
  1244. b := dAtA[iNdEx]
  1245. iNdEx++
  1246. packedLen |= (int(b) & 0x7F) << shift
  1247. if b < 0x80 {
  1248. break
  1249. }
  1250. }
  1251. if packedLen < 0 {
  1252. return ErrInvalidLengthService
  1253. }
  1254. postIndex := iNdEx + packedLen
  1255. if postIndex > l {
  1256. return io.ErrUnexpectedEOF
  1257. }
  1258. for iNdEx < postIndex {
  1259. var v int32
  1260. for shift := uint(0); ; shift += 7 {
  1261. if shift >= 64 {
  1262. return ErrIntOverflowService
  1263. }
  1264. if iNdEx >= l {
  1265. return io.ErrUnexpectedEOF
  1266. }
  1267. b := dAtA[iNdEx]
  1268. iNdEx++
  1269. v |= (int32(b) & 0x7F) << shift
  1270. if b < 0x80 {
  1271. break
  1272. }
  1273. }
  1274. m.Aids = append(m.Aids, v)
  1275. }
  1276. } else {
  1277. return fmt.Errorf("proto: wrong wireType = %d for field Aids", wireType)
  1278. }
  1279. default:
  1280. iNdEx = preIndex
  1281. skippy, err := skipService(dAtA[iNdEx:])
  1282. if err != nil {
  1283. return err
  1284. }
  1285. if skippy < 0 {
  1286. return ErrInvalidLengthService
  1287. }
  1288. if (iNdEx + skippy) > l {
  1289. return io.ErrUnexpectedEOF
  1290. }
  1291. iNdEx += skippy
  1292. }
  1293. }
  1294. if iNdEx > l {
  1295. return io.ErrUnexpectedEOF
  1296. }
  1297. return nil
  1298. }
  1299. func (m *EpisodeInfoReply) Unmarshal(dAtA []byte) error {
  1300. l := len(dAtA)
  1301. iNdEx := 0
  1302. for iNdEx < l {
  1303. preIndex := iNdEx
  1304. var wire uint64
  1305. for shift := uint(0); ; shift += 7 {
  1306. if shift >= 64 {
  1307. return ErrIntOverflowService
  1308. }
  1309. if iNdEx >= l {
  1310. return io.ErrUnexpectedEOF
  1311. }
  1312. b := dAtA[iNdEx]
  1313. iNdEx++
  1314. wire |= (uint64(b) & 0x7F) << shift
  1315. if b < 0x80 {
  1316. break
  1317. }
  1318. }
  1319. fieldNum := int32(wire >> 3)
  1320. wireType := int(wire & 0x7)
  1321. if wireType == 4 {
  1322. return fmt.Errorf("proto: EpisodeInfoReply: wiretype end group for non-group")
  1323. }
  1324. if fieldNum <= 0 {
  1325. return fmt.Errorf("proto: EpisodeInfoReply: illegal tag %d (wire type %d)", fieldNum, wire)
  1326. }
  1327. switch fieldNum {
  1328. case 1:
  1329. if wireType != 2 {
  1330. return fmt.Errorf("proto: wrong wireType = %d for field Infos", wireType)
  1331. }
  1332. var msglen int
  1333. for shift := uint(0); ; shift += 7 {
  1334. if shift >= 64 {
  1335. return ErrIntOverflowService
  1336. }
  1337. if iNdEx >= l {
  1338. return io.ErrUnexpectedEOF
  1339. }
  1340. b := dAtA[iNdEx]
  1341. iNdEx++
  1342. msglen |= (int(b) & 0x7F) << shift
  1343. if b < 0x80 {
  1344. break
  1345. }
  1346. }
  1347. if msglen < 0 {
  1348. return ErrInvalidLengthService
  1349. }
  1350. postIndex := iNdEx + msglen
  1351. if postIndex > l {
  1352. return io.ErrUnexpectedEOF
  1353. }
  1354. if m.Infos == nil {
  1355. m.Infos = make(map[int32]*EpisodeInfoProto)
  1356. }
  1357. var mapkey int32
  1358. var mapvalue *EpisodeInfoProto
  1359. for iNdEx < postIndex {
  1360. entryPreIndex := iNdEx
  1361. var wire uint64
  1362. for shift := uint(0); ; shift += 7 {
  1363. if shift >= 64 {
  1364. return ErrIntOverflowService
  1365. }
  1366. if iNdEx >= l {
  1367. return io.ErrUnexpectedEOF
  1368. }
  1369. b := dAtA[iNdEx]
  1370. iNdEx++
  1371. wire |= (uint64(b) & 0x7F) << shift
  1372. if b < 0x80 {
  1373. break
  1374. }
  1375. }
  1376. fieldNum := int32(wire >> 3)
  1377. if fieldNum == 1 {
  1378. for shift := uint(0); ; shift += 7 {
  1379. if shift >= 64 {
  1380. return ErrIntOverflowService
  1381. }
  1382. if iNdEx >= l {
  1383. return io.ErrUnexpectedEOF
  1384. }
  1385. b := dAtA[iNdEx]
  1386. iNdEx++
  1387. mapkey |= (int32(b) & 0x7F) << shift
  1388. if b < 0x80 {
  1389. break
  1390. }
  1391. }
  1392. } else if fieldNum == 2 {
  1393. var mapmsglen int
  1394. for shift := uint(0); ; shift += 7 {
  1395. if shift >= 64 {
  1396. return ErrIntOverflowService
  1397. }
  1398. if iNdEx >= l {
  1399. return io.ErrUnexpectedEOF
  1400. }
  1401. b := dAtA[iNdEx]
  1402. iNdEx++
  1403. mapmsglen |= (int(b) & 0x7F) << shift
  1404. if b < 0x80 {
  1405. break
  1406. }
  1407. }
  1408. if mapmsglen < 0 {
  1409. return ErrInvalidLengthService
  1410. }
  1411. postmsgIndex := iNdEx + mapmsglen
  1412. if mapmsglen < 0 {
  1413. return ErrInvalidLengthService
  1414. }
  1415. if postmsgIndex > l {
  1416. return io.ErrUnexpectedEOF
  1417. }
  1418. mapvalue = &EpisodeInfoProto{}
  1419. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  1420. return err
  1421. }
  1422. iNdEx = postmsgIndex
  1423. } else {
  1424. iNdEx = entryPreIndex
  1425. skippy, err := skipService(dAtA[iNdEx:])
  1426. if err != nil {
  1427. return err
  1428. }
  1429. if skippy < 0 {
  1430. return ErrInvalidLengthService
  1431. }
  1432. if (iNdEx + skippy) > postIndex {
  1433. return io.ErrUnexpectedEOF
  1434. }
  1435. iNdEx += skippy
  1436. }
  1437. }
  1438. m.Infos[mapkey] = mapvalue
  1439. iNdEx = postIndex
  1440. default:
  1441. iNdEx = preIndex
  1442. skippy, err := skipService(dAtA[iNdEx:])
  1443. if err != nil {
  1444. return err
  1445. }
  1446. if skippy < 0 {
  1447. return ErrInvalidLengthService
  1448. }
  1449. if (iNdEx + skippy) > l {
  1450. return io.ErrUnexpectedEOF
  1451. }
  1452. iNdEx += skippy
  1453. }
  1454. }
  1455. if iNdEx > l {
  1456. return io.ErrUnexpectedEOF
  1457. }
  1458. return nil
  1459. }
  1460. func (m *EpisodeCardsReply) Unmarshal(dAtA []byte) error {
  1461. l := len(dAtA)
  1462. iNdEx := 0
  1463. for iNdEx < l {
  1464. preIndex := iNdEx
  1465. var wire uint64
  1466. for shift := uint(0); ; shift += 7 {
  1467. if shift >= 64 {
  1468. return ErrIntOverflowService
  1469. }
  1470. if iNdEx >= l {
  1471. return io.ErrUnexpectedEOF
  1472. }
  1473. b := dAtA[iNdEx]
  1474. iNdEx++
  1475. wire |= (uint64(b) & 0x7F) << shift
  1476. if b < 0x80 {
  1477. break
  1478. }
  1479. }
  1480. fieldNum := int32(wire >> 3)
  1481. wireType := int(wire & 0x7)
  1482. if wireType == 4 {
  1483. return fmt.Errorf("proto: EpisodeCardsReply: wiretype end group for non-group")
  1484. }
  1485. if fieldNum <= 0 {
  1486. return fmt.Errorf("proto: EpisodeCardsReply: illegal tag %d (wire type %d)", fieldNum, wire)
  1487. }
  1488. switch fieldNum {
  1489. case 1:
  1490. if wireType != 2 {
  1491. return fmt.Errorf("proto: wrong wireType = %d for field Cards", wireType)
  1492. }
  1493. var msglen int
  1494. for shift := uint(0); ; shift += 7 {
  1495. if shift >= 64 {
  1496. return ErrIntOverflowService
  1497. }
  1498. if iNdEx >= l {
  1499. return io.ErrUnexpectedEOF
  1500. }
  1501. b := dAtA[iNdEx]
  1502. iNdEx++
  1503. msglen |= (int(b) & 0x7F) << shift
  1504. if b < 0x80 {
  1505. break
  1506. }
  1507. }
  1508. if msglen < 0 {
  1509. return ErrInvalidLengthService
  1510. }
  1511. postIndex := iNdEx + msglen
  1512. if postIndex > l {
  1513. return io.ErrUnexpectedEOF
  1514. }
  1515. if m.Cards == nil {
  1516. m.Cards = make(map[int32]*EpisodeCardsProto)
  1517. }
  1518. var mapkey int32
  1519. var mapvalue *EpisodeCardsProto
  1520. for iNdEx < postIndex {
  1521. entryPreIndex := iNdEx
  1522. var wire uint64
  1523. for shift := uint(0); ; shift += 7 {
  1524. if shift >= 64 {
  1525. return ErrIntOverflowService
  1526. }
  1527. if iNdEx >= l {
  1528. return io.ErrUnexpectedEOF
  1529. }
  1530. b := dAtA[iNdEx]
  1531. iNdEx++
  1532. wire |= (uint64(b) & 0x7F) << shift
  1533. if b < 0x80 {
  1534. break
  1535. }
  1536. }
  1537. fieldNum := int32(wire >> 3)
  1538. if fieldNum == 1 {
  1539. for shift := uint(0); ; shift += 7 {
  1540. if shift >= 64 {
  1541. return ErrIntOverflowService
  1542. }
  1543. if iNdEx >= l {
  1544. return io.ErrUnexpectedEOF
  1545. }
  1546. b := dAtA[iNdEx]
  1547. iNdEx++
  1548. mapkey |= (int32(b) & 0x7F) << shift
  1549. if b < 0x80 {
  1550. break
  1551. }
  1552. }
  1553. } else if fieldNum == 2 {
  1554. var mapmsglen int
  1555. for shift := uint(0); ; shift += 7 {
  1556. if shift >= 64 {
  1557. return ErrIntOverflowService
  1558. }
  1559. if iNdEx >= l {
  1560. return io.ErrUnexpectedEOF
  1561. }
  1562. b := dAtA[iNdEx]
  1563. iNdEx++
  1564. mapmsglen |= (int(b) & 0x7F) << shift
  1565. if b < 0x80 {
  1566. break
  1567. }
  1568. }
  1569. if mapmsglen < 0 {
  1570. return ErrInvalidLengthService
  1571. }
  1572. postmsgIndex := iNdEx + mapmsglen
  1573. if mapmsglen < 0 {
  1574. return ErrInvalidLengthService
  1575. }
  1576. if postmsgIndex > l {
  1577. return io.ErrUnexpectedEOF
  1578. }
  1579. mapvalue = &EpisodeCardsProto{}
  1580. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  1581. return err
  1582. }
  1583. iNdEx = postmsgIndex
  1584. } else {
  1585. iNdEx = entryPreIndex
  1586. skippy, err := skipService(dAtA[iNdEx:])
  1587. if err != nil {
  1588. return err
  1589. }
  1590. if skippy < 0 {
  1591. return ErrInvalidLengthService
  1592. }
  1593. if (iNdEx + skippy) > postIndex {
  1594. return io.ErrUnexpectedEOF
  1595. }
  1596. iNdEx += skippy
  1597. }
  1598. }
  1599. m.Cards[mapkey] = mapvalue
  1600. iNdEx = postIndex
  1601. default:
  1602. iNdEx = preIndex
  1603. skippy, err := skipService(dAtA[iNdEx:])
  1604. if err != nil {
  1605. return err
  1606. }
  1607. if skippy < 0 {
  1608. return ErrInvalidLengthService
  1609. }
  1610. if (iNdEx + skippy) > l {
  1611. return io.ErrUnexpectedEOF
  1612. }
  1613. iNdEx += skippy
  1614. }
  1615. }
  1616. if iNdEx > l {
  1617. return io.ErrUnexpectedEOF
  1618. }
  1619. return nil
  1620. }
  1621. func (m *EpReq) Unmarshal(dAtA []byte) error {
  1622. l := len(dAtA)
  1623. iNdEx := 0
  1624. for iNdEx < l {
  1625. preIndex := iNdEx
  1626. var wire uint64
  1627. for shift := uint(0); ; shift += 7 {
  1628. if shift >= 64 {
  1629. return ErrIntOverflowService
  1630. }
  1631. if iNdEx >= l {
  1632. return io.ErrUnexpectedEOF
  1633. }
  1634. b := dAtA[iNdEx]
  1635. iNdEx++
  1636. wire |= (uint64(b) & 0x7F) << shift
  1637. if b < 0x80 {
  1638. break
  1639. }
  1640. }
  1641. fieldNum := int32(wire >> 3)
  1642. wireType := int(wire & 0x7)
  1643. if wireType == 4 {
  1644. return fmt.Errorf("proto: EpReq: wiretype end group for non-group")
  1645. }
  1646. if fieldNum <= 0 {
  1647. return fmt.Errorf("proto: EpReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1648. }
  1649. switch fieldNum {
  1650. case 1:
  1651. if wireType == 0 {
  1652. var v int32
  1653. for shift := uint(0); ; shift += 7 {
  1654. if shift >= 64 {
  1655. return ErrIntOverflowService
  1656. }
  1657. if iNdEx >= l {
  1658. return io.ErrUnexpectedEOF
  1659. }
  1660. b := dAtA[iNdEx]
  1661. iNdEx++
  1662. v |= (int32(b) & 0x7F) << shift
  1663. if b < 0x80 {
  1664. break
  1665. }
  1666. }
  1667. m.Epids = append(m.Epids, v)
  1668. } else if wireType == 2 {
  1669. var packedLen int
  1670. for shift := uint(0); ; shift += 7 {
  1671. if shift >= 64 {
  1672. return ErrIntOverflowService
  1673. }
  1674. if iNdEx >= l {
  1675. return io.ErrUnexpectedEOF
  1676. }
  1677. b := dAtA[iNdEx]
  1678. iNdEx++
  1679. packedLen |= (int(b) & 0x7F) << shift
  1680. if b < 0x80 {
  1681. break
  1682. }
  1683. }
  1684. if packedLen < 0 {
  1685. return ErrInvalidLengthService
  1686. }
  1687. postIndex := iNdEx + packedLen
  1688. if postIndex > l {
  1689. return io.ErrUnexpectedEOF
  1690. }
  1691. for iNdEx < postIndex {
  1692. var v int32
  1693. for shift := uint(0); ; shift += 7 {
  1694. if shift >= 64 {
  1695. return ErrIntOverflowService
  1696. }
  1697. if iNdEx >= l {
  1698. return io.ErrUnexpectedEOF
  1699. }
  1700. b := dAtA[iNdEx]
  1701. iNdEx++
  1702. v |= (int32(b) & 0x7F) << shift
  1703. if b < 0x80 {
  1704. break
  1705. }
  1706. }
  1707. m.Epids = append(m.Epids, v)
  1708. }
  1709. } else {
  1710. return fmt.Errorf("proto: wrong wireType = %d for field Epids", wireType)
  1711. }
  1712. case 2:
  1713. if wireType != 0 {
  1714. return fmt.Errorf("proto: wrong wireType = %d for field NeedAll", wireType)
  1715. }
  1716. m.NeedAll = 0
  1717. for shift := uint(0); ; shift += 7 {
  1718. if shift >= 64 {
  1719. return ErrIntOverflowService
  1720. }
  1721. if iNdEx >= l {
  1722. return io.ErrUnexpectedEOF
  1723. }
  1724. b := dAtA[iNdEx]
  1725. iNdEx++
  1726. m.NeedAll |= (int32(b) & 0x7F) << shift
  1727. if b < 0x80 {
  1728. break
  1729. }
  1730. }
  1731. default:
  1732. iNdEx = preIndex
  1733. skippy, err := skipService(dAtA[iNdEx:])
  1734. if err != nil {
  1735. return err
  1736. }
  1737. if skippy < 0 {
  1738. return ErrInvalidLengthService
  1739. }
  1740. if (iNdEx + skippy) > l {
  1741. return io.ErrUnexpectedEOF
  1742. }
  1743. iNdEx += skippy
  1744. }
  1745. }
  1746. if iNdEx > l {
  1747. return io.ErrUnexpectedEOF
  1748. }
  1749. return nil
  1750. }
  1751. func (m *SectionEpisodeReq) Unmarshal(dAtA []byte) error {
  1752. l := len(dAtA)
  1753. iNdEx := 0
  1754. for iNdEx < l {
  1755. preIndex := iNdEx
  1756. var wire uint64
  1757. for shift := uint(0); ; shift += 7 {
  1758. if shift >= 64 {
  1759. return ErrIntOverflowService
  1760. }
  1761. if iNdEx >= l {
  1762. return io.ErrUnexpectedEOF
  1763. }
  1764. b := dAtA[iNdEx]
  1765. iNdEx++
  1766. wire |= (uint64(b) & 0x7F) << shift
  1767. if b < 0x80 {
  1768. break
  1769. }
  1770. }
  1771. fieldNum := int32(wire >> 3)
  1772. wireType := int(wire & 0x7)
  1773. if wireType == 4 {
  1774. return fmt.Errorf("proto: SectionEpisodeReq: wiretype end group for non-group")
  1775. }
  1776. if fieldNum <= 0 {
  1777. return fmt.Errorf("proto: SectionEpisodeReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1778. }
  1779. switch fieldNum {
  1780. case 1:
  1781. if wireType == 0 {
  1782. var v int32
  1783. for shift := uint(0); ; shift += 7 {
  1784. if shift >= 64 {
  1785. return ErrIntOverflowService
  1786. }
  1787. if iNdEx >= l {
  1788. return io.ErrUnexpectedEOF
  1789. }
  1790. b := dAtA[iNdEx]
  1791. iNdEx++
  1792. v |= (int32(b) & 0x7F) << shift
  1793. if b < 0x80 {
  1794. break
  1795. }
  1796. }
  1797. m.Sections = append(m.Sections, v)
  1798. } else if wireType == 2 {
  1799. var packedLen int
  1800. for shift := uint(0); ; shift += 7 {
  1801. if shift >= 64 {
  1802. return ErrIntOverflowService
  1803. }
  1804. if iNdEx >= l {
  1805. return io.ErrUnexpectedEOF
  1806. }
  1807. b := dAtA[iNdEx]
  1808. iNdEx++
  1809. packedLen |= (int(b) & 0x7F) << shift
  1810. if b < 0x80 {
  1811. break
  1812. }
  1813. }
  1814. if packedLen < 0 {
  1815. return ErrInvalidLengthService
  1816. }
  1817. postIndex := iNdEx + packedLen
  1818. if postIndex > l {
  1819. return io.ErrUnexpectedEOF
  1820. }
  1821. for iNdEx < postIndex {
  1822. var v int32
  1823. for shift := uint(0); ; shift += 7 {
  1824. if shift >= 64 {
  1825. return ErrIntOverflowService
  1826. }
  1827. if iNdEx >= l {
  1828. return io.ErrUnexpectedEOF
  1829. }
  1830. b := dAtA[iNdEx]
  1831. iNdEx++
  1832. v |= (int32(b) & 0x7F) << shift
  1833. if b < 0x80 {
  1834. break
  1835. }
  1836. }
  1837. m.Sections = append(m.Sections, v)
  1838. }
  1839. } else {
  1840. return fmt.Errorf("proto: wrong wireType = %d for field Sections", wireType)
  1841. }
  1842. case 2:
  1843. if wireType != 0 {
  1844. return fmt.Errorf("proto: wrong wireType = %d for field SeasonType", wireType)
  1845. }
  1846. m.SeasonType = 0
  1847. for shift := uint(0); ; shift += 7 {
  1848. if shift >= 64 {
  1849. return ErrIntOverflowService
  1850. }
  1851. if iNdEx >= l {
  1852. return io.ErrUnexpectedEOF
  1853. }
  1854. b := dAtA[iNdEx]
  1855. iNdEx++
  1856. m.SeasonType |= (int32(b) & 0x7F) << shift
  1857. if b < 0x80 {
  1858. break
  1859. }
  1860. }
  1861. default:
  1862. iNdEx = preIndex
  1863. skippy, err := skipService(dAtA[iNdEx:])
  1864. if err != nil {
  1865. return err
  1866. }
  1867. if skippy < 0 {
  1868. return ErrInvalidLengthService
  1869. }
  1870. if (iNdEx + skippy) > l {
  1871. return io.ErrUnexpectedEOF
  1872. }
  1873. iNdEx += skippy
  1874. }
  1875. }
  1876. if iNdEx > l {
  1877. return io.ErrUnexpectedEOF
  1878. }
  1879. return nil
  1880. }
  1881. func (m *SectionEpisodeReply) Unmarshal(dAtA []byte) error {
  1882. l := len(dAtA)
  1883. iNdEx := 0
  1884. for iNdEx < l {
  1885. preIndex := iNdEx
  1886. var wire uint64
  1887. for shift := uint(0); ; shift += 7 {
  1888. if shift >= 64 {
  1889. return ErrIntOverflowService
  1890. }
  1891. if iNdEx >= l {
  1892. return io.ErrUnexpectedEOF
  1893. }
  1894. b := dAtA[iNdEx]
  1895. iNdEx++
  1896. wire |= (uint64(b) & 0x7F) << shift
  1897. if b < 0x80 {
  1898. break
  1899. }
  1900. }
  1901. fieldNum := int32(wire >> 3)
  1902. wireType := int(wire & 0x7)
  1903. if wireType == 4 {
  1904. return fmt.Errorf("proto: SectionEpisodeReply: wiretype end group for non-group")
  1905. }
  1906. if fieldNum <= 0 {
  1907. return fmt.Errorf("proto: SectionEpisodeReply: illegal tag %d (wire type %d)", fieldNum, wire)
  1908. }
  1909. switch fieldNum {
  1910. case 1:
  1911. if wireType != 2 {
  1912. return fmt.Errorf("proto: wrong wireType = %d for field Episodes", wireType)
  1913. }
  1914. var msglen int
  1915. for shift := uint(0); ; shift += 7 {
  1916. if shift >= 64 {
  1917. return ErrIntOverflowService
  1918. }
  1919. if iNdEx >= l {
  1920. return io.ErrUnexpectedEOF
  1921. }
  1922. b := dAtA[iNdEx]
  1923. iNdEx++
  1924. msglen |= (int(b) & 0x7F) << shift
  1925. if b < 0x80 {
  1926. break
  1927. }
  1928. }
  1929. if msglen < 0 {
  1930. return ErrInvalidLengthService
  1931. }
  1932. postIndex := iNdEx + msglen
  1933. if postIndex > l {
  1934. return io.ErrUnexpectedEOF
  1935. }
  1936. if m.Episodes == nil {
  1937. m.Episodes = make(map[int32]*SectionEpisodeProto)
  1938. }
  1939. var mapkey int32
  1940. var mapvalue *SectionEpisodeProto
  1941. for iNdEx < postIndex {
  1942. entryPreIndex := iNdEx
  1943. var wire uint64
  1944. for shift := uint(0); ; shift += 7 {
  1945. if shift >= 64 {
  1946. return ErrIntOverflowService
  1947. }
  1948. if iNdEx >= l {
  1949. return io.ErrUnexpectedEOF
  1950. }
  1951. b := dAtA[iNdEx]
  1952. iNdEx++
  1953. wire |= (uint64(b) & 0x7F) << shift
  1954. if b < 0x80 {
  1955. break
  1956. }
  1957. }
  1958. fieldNum := int32(wire >> 3)
  1959. if fieldNum == 1 {
  1960. for shift := uint(0); ; shift += 7 {
  1961. if shift >= 64 {
  1962. return ErrIntOverflowService
  1963. }
  1964. if iNdEx >= l {
  1965. return io.ErrUnexpectedEOF
  1966. }
  1967. b := dAtA[iNdEx]
  1968. iNdEx++
  1969. mapkey |= (int32(b) & 0x7F) << shift
  1970. if b < 0x80 {
  1971. break
  1972. }
  1973. }
  1974. } else if fieldNum == 2 {
  1975. var mapmsglen int
  1976. for shift := uint(0); ; shift += 7 {
  1977. if shift >= 64 {
  1978. return ErrIntOverflowService
  1979. }
  1980. if iNdEx >= l {
  1981. return io.ErrUnexpectedEOF
  1982. }
  1983. b := dAtA[iNdEx]
  1984. iNdEx++
  1985. mapmsglen |= (int(b) & 0x7F) << shift
  1986. if b < 0x80 {
  1987. break
  1988. }
  1989. }
  1990. if mapmsglen < 0 {
  1991. return ErrInvalidLengthService
  1992. }
  1993. postmsgIndex := iNdEx + mapmsglen
  1994. if mapmsglen < 0 {
  1995. return ErrInvalidLengthService
  1996. }
  1997. if postmsgIndex > l {
  1998. return io.ErrUnexpectedEOF
  1999. }
  2000. mapvalue = &SectionEpisodeProto{}
  2001. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  2002. return err
  2003. }
  2004. iNdEx = postmsgIndex
  2005. } else {
  2006. iNdEx = entryPreIndex
  2007. skippy, err := skipService(dAtA[iNdEx:])
  2008. if err != nil {
  2009. return err
  2010. }
  2011. if skippy < 0 {
  2012. return ErrInvalidLengthService
  2013. }
  2014. if (iNdEx + skippy) > postIndex {
  2015. return io.ErrUnexpectedEOF
  2016. }
  2017. iNdEx += skippy
  2018. }
  2019. }
  2020. m.Episodes[mapkey] = mapvalue
  2021. iNdEx = postIndex
  2022. default:
  2023. iNdEx = preIndex
  2024. skippy, err := skipService(dAtA[iNdEx:])
  2025. if err != nil {
  2026. return err
  2027. }
  2028. if skippy < 0 {
  2029. return ErrInvalidLengthService
  2030. }
  2031. if (iNdEx + skippy) > l {
  2032. return io.ErrUnexpectedEOF
  2033. }
  2034. iNdEx += skippy
  2035. }
  2036. }
  2037. if iNdEx > l {
  2038. return io.ErrUnexpectedEOF
  2039. }
  2040. return nil
  2041. }
  2042. func (m *EpClearReq) Unmarshal(dAtA []byte) error {
  2043. l := len(dAtA)
  2044. iNdEx := 0
  2045. for iNdEx < l {
  2046. preIndex := iNdEx
  2047. var wire uint64
  2048. for shift := uint(0); ; shift += 7 {
  2049. if shift >= 64 {
  2050. return ErrIntOverflowService
  2051. }
  2052. if iNdEx >= l {
  2053. return io.ErrUnexpectedEOF
  2054. }
  2055. b := dAtA[iNdEx]
  2056. iNdEx++
  2057. wire |= (uint64(b) & 0x7F) << shift
  2058. if b < 0x80 {
  2059. break
  2060. }
  2061. }
  2062. fieldNum := int32(wire >> 3)
  2063. wireType := int(wire & 0x7)
  2064. if wireType == 4 {
  2065. return fmt.Errorf("proto: EpClearReq: wiretype end group for non-group")
  2066. }
  2067. if fieldNum <= 0 {
  2068. return fmt.Errorf("proto: EpClearReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2069. }
  2070. switch fieldNum {
  2071. case 1:
  2072. if wireType != 0 {
  2073. return fmt.Errorf("proto: wrong wireType = %d for field EpId", wireType)
  2074. }
  2075. m.EpId = 0
  2076. for shift := uint(0); ; shift += 7 {
  2077. if shift >= 64 {
  2078. return ErrIntOverflowService
  2079. }
  2080. if iNdEx >= l {
  2081. return io.ErrUnexpectedEOF
  2082. }
  2083. b := dAtA[iNdEx]
  2084. iNdEx++
  2085. m.EpId |= (int32(b) & 0x7F) << shift
  2086. if b < 0x80 {
  2087. break
  2088. }
  2089. }
  2090. case 2:
  2091. if wireType != 0 {
  2092. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  2093. }
  2094. m.Aid = 0
  2095. for shift := uint(0); ; shift += 7 {
  2096. if shift >= 64 {
  2097. return ErrIntOverflowService
  2098. }
  2099. if iNdEx >= l {
  2100. return io.ErrUnexpectedEOF
  2101. }
  2102. b := dAtA[iNdEx]
  2103. iNdEx++
  2104. m.Aid |= (int32(b) & 0x7F) << shift
  2105. if b < 0x80 {
  2106. break
  2107. }
  2108. }
  2109. default:
  2110. iNdEx = preIndex
  2111. skippy, err := skipService(dAtA[iNdEx:])
  2112. if err != nil {
  2113. return err
  2114. }
  2115. if skippy < 0 {
  2116. return ErrInvalidLengthService
  2117. }
  2118. if (iNdEx + skippy) > l {
  2119. return io.ErrUnexpectedEOF
  2120. }
  2121. iNdEx += skippy
  2122. }
  2123. }
  2124. if iNdEx > l {
  2125. return io.ErrUnexpectedEOF
  2126. }
  2127. return nil
  2128. }
  2129. func (m *EpisodeBadgeReq) Unmarshal(dAtA []byte) error {
  2130. l := len(dAtA)
  2131. iNdEx := 0
  2132. for iNdEx < l {
  2133. preIndex := iNdEx
  2134. var wire uint64
  2135. for shift := uint(0); ; shift += 7 {
  2136. if shift >= 64 {
  2137. return ErrIntOverflowService
  2138. }
  2139. if iNdEx >= l {
  2140. return io.ErrUnexpectedEOF
  2141. }
  2142. b := dAtA[iNdEx]
  2143. iNdEx++
  2144. wire |= (uint64(b) & 0x7F) << shift
  2145. if b < 0x80 {
  2146. break
  2147. }
  2148. }
  2149. fieldNum := int32(wire >> 3)
  2150. wireType := int(wire & 0x7)
  2151. if wireType == 4 {
  2152. return fmt.Errorf("proto: EpisodeBadgeReq: wiretype end group for non-group")
  2153. }
  2154. if fieldNum <= 0 {
  2155. return fmt.Errorf("proto: EpisodeBadgeReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2156. }
  2157. switch fieldNum {
  2158. case 1:
  2159. if wireType != 0 {
  2160. return fmt.Errorf("proto: wrong wireType = %d for field EpId", wireType)
  2161. }
  2162. m.EpId = 0
  2163. for shift := uint(0); ; shift += 7 {
  2164. if shift >= 64 {
  2165. return ErrIntOverflowService
  2166. }
  2167. if iNdEx >= l {
  2168. return io.ErrUnexpectedEOF
  2169. }
  2170. b := dAtA[iNdEx]
  2171. iNdEx++
  2172. m.EpId |= (int32(b) & 0x7F) << shift
  2173. if b < 0x80 {
  2174. break
  2175. }
  2176. }
  2177. case 2:
  2178. if wireType != 0 {
  2179. return fmt.Errorf("proto: wrong wireType = %d for field EpStatus", wireType)
  2180. }
  2181. m.EpStatus = 0
  2182. for shift := uint(0); ; shift += 7 {
  2183. if shift >= 64 {
  2184. return ErrIntOverflowService
  2185. }
  2186. if iNdEx >= l {
  2187. return io.ErrUnexpectedEOF
  2188. }
  2189. b := dAtA[iNdEx]
  2190. iNdEx++
  2191. m.EpStatus |= (int32(b) & 0x7F) << shift
  2192. if b < 0x80 {
  2193. break
  2194. }
  2195. }
  2196. case 3:
  2197. if wireType != 0 {
  2198. return fmt.Errorf("proto: wrong wireType = %d for field IsFinished", wireType)
  2199. }
  2200. m.IsFinished = 0
  2201. for shift := uint(0); ; shift += 7 {
  2202. if shift >= 64 {
  2203. return ErrIntOverflowService
  2204. }
  2205. if iNdEx >= l {
  2206. return io.ErrUnexpectedEOF
  2207. }
  2208. b := dAtA[iNdEx]
  2209. iNdEx++
  2210. m.IsFinished |= (int32(b) & 0x7F) << shift
  2211. if b < 0x80 {
  2212. break
  2213. }
  2214. }
  2215. default:
  2216. iNdEx = preIndex
  2217. skippy, err := skipService(dAtA[iNdEx:])
  2218. if err != nil {
  2219. return err
  2220. }
  2221. if skippy < 0 {
  2222. return ErrInvalidLengthService
  2223. }
  2224. if (iNdEx + skippy) > l {
  2225. return io.ErrUnexpectedEOF
  2226. }
  2227. iNdEx += skippy
  2228. }
  2229. }
  2230. if iNdEx > l {
  2231. return io.ErrUnexpectedEOF
  2232. }
  2233. return nil
  2234. }
  2235. func (m *EpisodeBadgesReq) Unmarshal(dAtA []byte) error {
  2236. l := len(dAtA)
  2237. iNdEx := 0
  2238. for iNdEx < l {
  2239. preIndex := iNdEx
  2240. var wire uint64
  2241. for shift := uint(0); ; shift += 7 {
  2242. if shift >= 64 {
  2243. return ErrIntOverflowService
  2244. }
  2245. if iNdEx >= l {
  2246. return io.ErrUnexpectedEOF
  2247. }
  2248. b := dAtA[iNdEx]
  2249. iNdEx++
  2250. wire |= (uint64(b) & 0x7F) << shift
  2251. if b < 0x80 {
  2252. break
  2253. }
  2254. }
  2255. fieldNum := int32(wire >> 3)
  2256. wireType := int(wire & 0x7)
  2257. if wireType == 4 {
  2258. return fmt.Errorf("proto: EpisodeBadgesReq: wiretype end group for non-group")
  2259. }
  2260. if fieldNum <= 0 {
  2261. return fmt.Errorf("proto: EpisodeBadgesReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2262. }
  2263. switch fieldNum {
  2264. case 1:
  2265. if wireType != 2 {
  2266. return fmt.Errorf("proto: wrong wireType = %d for field EpisodeBadges", wireType)
  2267. }
  2268. var msglen int
  2269. for shift := uint(0); ; shift += 7 {
  2270. if shift >= 64 {
  2271. return ErrIntOverflowService
  2272. }
  2273. if iNdEx >= l {
  2274. return io.ErrUnexpectedEOF
  2275. }
  2276. b := dAtA[iNdEx]
  2277. iNdEx++
  2278. msglen |= (int(b) & 0x7F) << shift
  2279. if b < 0x80 {
  2280. break
  2281. }
  2282. }
  2283. if msglen < 0 {
  2284. return ErrInvalidLengthService
  2285. }
  2286. postIndex := iNdEx + msglen
  2287. if postIndex > l {
  2288. return io.ErrUnexpectedEOF
  2289. }
  2290. m.EpisodeBadges = append(m.EpisodeBadges, &EpisodeBadgeReq{})
  2291. if err := m.EpisodeBadges[len(m.EpisodeBadges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2292. return err
  2293. }
  2294. iNdEx = postIndex
  2295. default:
  2296. iNdEx = preIndex
  2297. skippy, err := skipService(dAtA[iNdEx:])
  2298. if err != nil {
  2299. return err
  2300. }
  2301. if skippy < 0 {
  2302. return ErrInvalidLengthService
  2303. }
  2304. if (iNdEx + skippy) > l {
  2305. return io.ErrUnexpectedEOF
  2306. }
  2307. iNdEx += skippy
  2308. }
  2309. }
  2310. if iNdEx > l {
  2311. return io.ErrUnexpectedEOF
  2312. }
  2313. return nil
  2314. }
  2315. func (m *EpisodeBadgesReply) Unmarshal(dAtA []byte) error {
  2316. l := len(dAtA)
  2317. iNdEx := 0
  2318. for iNdEx < l {
  2319. preIndex := iNdEx
  2320. var wire uint64
  2321. for shift := uint(0); ; shift += 7 {
  2322. if shift >= 64 {
  2323. return ErrIntOverflowService
  2324. }
  2325. if iNdEx >= l {
  2326. return io.ErrUnexpectedEOF
  2327. }
  2328. b := dAtA[iNdEx]
  2329. iNdEx++
  2330. wire |= (uint64(b) & 0x7F) << shift
  2331. if b < 0x80 {
  2332. break
  2333. }
  2334. }
  2335. fieldNum := int32(wire >> 3)
  2336. wireType := int(wire & 0x7)
  2337. if wireType == 4 {
  2338. return fmt.Errorf("proto: EpisodeBadgesReply: wiretype end group for non-group")
  2339. }
  2340. if fieldNum <= 0 {
  2341. return fmt.Errorf("proto: EpisodeBadgesReply: illegal tag %d (wire type %d)", fieldNum, wire)
  2342. }
  2343. switch fieldNum {
  2344. case 1:
  2345. if wireType != 2 {
  2346. return fmt.Errorf("proto: wrong wireType = %d for field Badges", wireType)
  2347. }
  2348. var msglen int
  2349. for shift := uint(0); ; shift += 7 {
  2350. if shift >= 64 {
  2351. return ErrIntOverflowService
  2352. }
  2353. if iNdEx >= l {
  2354. return io.ErrUnexpectedEOF
  2355. }
  2356. b := dAtA[iNdEx]
  2357. iNdEx++
  2358. msglen |= (int(b) & 0x7F) << shift
  2359. if b < 0x80 {
  2360. break
  2361. }
  2362. }
  2363. if msglen < 0 {
  2364. return ErrInvalidLengthService
  2365. }
  2366. postIndex := iNdEx + msglen
  2367. if postIndex > l {
  2368. return io.ErrUnexpectedEOF
  2369. }
  2370. if m.Badges == nil {
  2371. m.Badges = make(map[int32]*EpisodeBadgeProto)
  2372. }
  2373. var mapkey int32
  2374. var mapvalue *EpisodeBadgeProto
  2375. for iNdEx < postIndex {
  2376. entryPreIndex := iNdEx
  2377. var wire uint64
  2378. for shift := uint(0); ; shift += 7 {
  2379. if shift >= 64 {
  2380. return ErrIntOverflowService
  2381. }
  2382. if iNdEx >= l {
  2383. return io.ErrUnexpectedEOF
  2384. }
  2385. b := dAtA[iNdEx]
  2386. iNdEx++
  2387. wire |= (uint64(b) & 0x7F) << shift
  2388. if b < 0x80 {
  2389. break
  2390. }
  2391. }
  2392. fieldNum := int32(wire >> 3)
  2393. if fieldNum == 1 {
  2394. for shift := uint(0); ; shift += 7 {
  2395. if shift >= 64 {
  2396. return ErrIntOverflowService
  2397. }
  2398. if iNdEx >= l {
  2399. return io.ErrUnexpectedEOF
  2400. }
  2401. b := dAtA[iNdEx]
  2402. iNdEx++
  2403. mapkey |= (int32(b) & 0x7F) << shift
  2404. if b < 0x80 {
  2405. break
  2406. }
  2407. }
  2408. } else if fieldNum == 2 {
  2409. var mapmsglen int
  2410. for shift := uint(0); ; shift += 7 {
  2411. if shift >= 64 {
  2412. return ErrIntOverflowService
  2413. }
  2414. if iNdEx >= l {
  2415. return io.ErrUnexpectedEOF
  2416. }
  2417. b := dAtA[iNdEx]
  2418. iNdEx++
  2419. mapmsglen |= (int(b) & 0x7F) << shift
  2420. if b < 0x80 {
  2421. break
  2422. }
  2423. }
  2424. if mapmsglen < 0 {
  2425. return ErrInvalidLengthService
  2426. }
  2427. postmsgIndex := iNdEx + mapmsglen
  2428. if mapmsglen < 0 {
  2429. return ErrInvalidLengthService
  2430. }
  2431. if postmsgIndex > l {
  2432. return io.ErrUnexpectedEOF
  2433. }
  2434. mapvalue = &EpisodeBadgeProto{}
  2435. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  2436. return err
  2437. }
  2438. iNdEx = postmsgIndex
  2439. } else {
  2440. iNdEx = entryPreIndex
  2441. skippy, err := skipService(dAtA[iNdEx:])
  2442. if err != nil {
  2443. return err
  2444. }
  2445. if skippy < 0 {
  2446. return ErrInvalidLengthService
  2447. }
  2448. if (iNdEx + skippy) > postIndex {
  2449. return io.ErrUnexpectedEOF
  2450. }
  2451. iNdEx += skippy
  2452. }
  2453. }
  2454. m.Badges[mapkey] = mapvalue
  2455. iNdEx = postIndex
  2456. default:
  2457. iNdEx = preIndex
  2458. skippy, err := skipService(dAtA[iNdEx:])
  2459. if err != nil {
  2460. return err
  2461. }
  2462. if skippy < 0 {
  2463. return ErrInvalidLengthService
  2464. }
  2465. if (iNdEx + skippy) > l {
  2466. return io.ErrUnexpectedEOF
  2467. }
  2468. iNdEx += skippy
  2469. }
  2470. }
  2471. if iNdEx > l {
  2472. return io.ErrUnexpectedEOF
  2473. }
  2474. return nil
  2475. }
  2476. func skipService(dAtA []byte) (n int, err error) {
  2477. l := len(dAtA)
  2478. iNdEx := 0
  2479. for iNdEx < l {
  2480. var wire uint64
  2481. for shift := uint(0); ; shift += 7 {
  2482. if shift >= 64 {
  2483. return 0, ErrIntOverflowService
  2484. }
  2485. if iNdEx >= l {
  2486. return 0, io.ErrUnexpectedEOF
  2487. }
  2488. b := dAtA[iNdEx]
  2489. iNdEx++
  2490. wire |= (uint64(b) & 0x7F) << shift
  2491. if b < 0x80 {
  2492. break
  2493. }
  2494. }
  2495. wireType := int(wire & 0x7)
  2496. switch wireType {
  2497. case 0:
  2498. for shift := uint(0); ; shift += 7 {
  2499. if shift >= 64 {
  2500. return 0, ErrIntOverflowService
  2501. }
  2502. if iNdEx >= l {
  2503. return 0, io.ErrUnexpectedEOF
  2504. }
  2505. iNdEx++
  2506. if dAtA[iNdEx-1] < 0x80 {
  2507. break
  2508. }
  2509. }
  2510. return iNdEx, nil
  2511. case 1:
  2512. iNdEx += 8
  2513. return iNdEx, nil
  2514. case 2:
  2515. var length int
  2516. for shift := uint(0); ; shift += 7 {
  2517. if shift >= 64 {
  2518. return 0, ErrIntOverflowService
  2519. }
  2520. if iNdEx >= l {
  2521. return 0, io.ErrUnexpectedEOF
  2522. }
  2523. b := dAtA[iNdEx]
  2524. iNdEx++
  2525. length |= (int(b) & 0x7F) << shift
  2526. if b < 0x80 {
  2527. break
  2528. }
  2529. }
  2530. iNdEx += length
  2531. if length < 0 {
  2532. return 0, ErrInvalidLengthService
  2533. }
  2534. return iNdEx, nil
  2535. case 3:
  2536. for {
  2537. var innerWire uint64
  2538. var start int = iNdEx
  2539. for shift := uint(0); ; shift += 7 {
  2540. if shift >= 64 {
  2541. return 0, ErrIntOverflowService
  2542. }
  2543. if iNdEx >= l {
  2544. return 0, io.ErrUnexpectedEOF
  2545. }
  2546. b := dAtA[iNdEx]
  2547. iNdEx++
  2548. innerWire |= (uint64(b) & 0x7F) << shift
  2549. if b < 0x80 {
  2550. break
  2551. }
  2552. }
  2553. innerWireType := int(innerWire & 0x7)
  2554. if innerWireType == 4 {
  2555. break
  2556. }
  2557. next, err := skipService(dAtA[start:])
  2558. if err != nil {
  2559. return 0, err
  2560. }
  2561. iNdEx = start + next
  2562. }
  2563. return iNdEx, nil
  2564. case 4:
  2565. return iNdEx, nil
  2566. case 5:
  2567. iNdEx += 4
  2568. return iNdEx, nil
  2569. default:
  2570. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2571. }
  2572. }
  2573. panic("unreachable")
  2574. }
  2575. var (
  2576. ErrInvalidLengthService = fmt.Errorf("proto: negative length found during unmarshaling")
  2577. ErrIntOverflowService = fmt.Errorf("proto: integer overflow")
  2578. )
  2579. func init() {
  2580. proto.RegisterFile("app/service/openplatform/pgc-season/api/grpc/episode/v1/service.proto", fileDescriptorService)
  2581. }
  2582. var fileDescriptorService = []byte{
  2583. // 728 bytes of a gzipped FileDescriptorProto
  2584. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x4f, 0xd4, 0x40,
  2585. 0x14, 0x4e, 0x81, 0xc2, 0xfa, 0x36, 0x20, 0x0c, 0x1e, 0xd6, 0x1a, 0x57, 0xd2, 0x98, 0x88, 0x31,
  2586. 0xb4, 0xec, 0x72, 0x21, 0x18, 0xa3, 0xb0, 0x59, 0x22, 0x89, 0x87, 0xb5, 0xc8, 0xc5, 0x98, 0x34,
  2587. 0xb3, 0x9d, 0xd9, 0x65, 0xa4, 0xb4, 0xb3, 0x9d, 0xee, 0x26, 0xfd, 0x0f, 0xbd, 0x69, 0x3c, 0x79,
  2588. 0x34, 0xc4, 0xab, 0xff, 0x83, 0x99, 0xce, 0x94, 0x65, 0x17, 0x70, 0xa9, 0xf1, 0x36, 0xf3, 0xfa,
  2589. 0xde, 0xf7, 0xcd, 0xfb, 0xde, 0x8f, 0x14, 0xda, 0x98, 0x73, 0x57, 0xd0, 0x64, 0xc4, 0x02, 0xea,
  2590. 0xc6, 0x9c, 0x46, 0x3c, 0xc4, 0x69, 0x2f, 0x4e, 0xce, 0x5d, 0xde, 0x0f, 0xb6, 0x04, 0xc5, 0x22,
  2591. 0x8e, 0x5c, 0xcc, 0x99, 0xdb, 0x4f, 0x78, 0xe0, 0x52, 0xce, 0x44, 0x4c, 0xa8, 0x3b, 0x6a, 0x14,
  2592. 0x31, 0x0e, 0x4f, 0xe2, 0x34, 0x46, 0x8f, 0x79, 0x3f, 0x70, 0x0a, 0x93, 0x8a, 0x72, 0xb4, 0xb3,
  2593. 0x33, 0x6a, 0x58, 0xad, 0x7f, 0x65, 0x39, 0x8f, 0x09, 0x0d, 0x15, 0x87, 0xdd, 0x80, 0x95, 0xb6,
  2594. 0xfa, 0x72, 0x14, 0xf5, 0x62, 0x8f, 0x0e, 0xd0, 0x13, 0xa8, 0x6a, 0x5f, 0x9f, 0x11, 0x51, 0x33,
  2595. 0x36, 0xe6, 0x37, 0x4d, 0x0f, 0xb4, 0xe9, 0x88, 0x08, 0xbb, 0x0e, 0x95, 0x36, 0xdf, 0x67, 0x44,
  2596. 0x3a, 0x23, 0x58, 0xc0, 0x63, 0xaf, 0xfc, 0x6c, 0x7f, 0x35, 0x60, 0x75, 0x02, 0x93, 0x87, 0x19,
  2597. 0xea, 0x80, 0xc9, 0xa2, 0x5e, 0xac, 0x3c, 0xab, 0xcd, 0x3d, 0xe7, 0xaf, 0xb9, 0x39, 0xd3, 0xf1,
  2598. 0x8e, 0x3c, 0x89, 0x76, 0x94, 0x26, 0x99, 0xa7, 0x80, 0x2c, 0x06, 0x30, 0x36, 0xa2, 0x55, 0x98,
  2599. 0x3f, 0xa3, 0x59, 0xcd, 0xd8, 0x30, 0x36, 0x4d, 0x4f, 0x1e, 0x51, 0x1b, 0xcc, 0x11, 0x0e, 0x87,
  2600. 0xb4, 0x36, 0xb7, 0x61, 0x6c, 0x56, 0x9b, 0xee, 0xdd, 0x19, 0x3b, 0x52, 0x19, 0x4f, 0x45, 0xef,
  2601. 0xcd, 0xed, 0x1a, 0xf6, 0x77, 0x03, 0xd6, 0xf4, 0xf7, 0x16, 0x4e, 0x88, 0x50, 0x29, 0xbd, 0x07,
  2602. 0x33, 0x90, 0x37, 0x9d, 0xd2, 0xcb, 0xbb, 0x11, 0x8c, 0x01, 0x9c, 0xfc, 0xa8, 0x73, 0xca, 0x91,
  2603. 0xac, 0xcf, 0x00, 0x63, 0xe3, 0x0d, 0x39, 0x1d, 0x4e, 0xe6, 0xb4, 0x5d, 0x82, 0xf2, 0x5a, 0x52,
  2604. 0xbb, 0x60, 0xb6, 0xb9, 0xac, 0xe1, 0x03, 0x30, 0x29, 0x1f, 0x17, 0x51, 0x5d, 0xd0, 0x43, 0xa8,
  2605. 0x44, 0x94, 0x12, 0x1f, 0x87, 0x61, 0xce, 0x66, 0x7a, 0x4b, 0xf2, 0xbe, 0x1f, 0x86, 0x76, 0x07,
  2606. 0xd6, 0x8e, 0x69, 0x90, 0xb2, 0x38, 0xd2, 0x04, 0x12, 0xc5, 0x82, 0x8a, 0x50, 0xc6, 0x02, 0xe8,
  2607. 0xf2, 0x2e, 0x5b, 0x4a, 0x3d, 0xce, 0x4f, 0x33, 0x4e, 0x35, 0x1c, 0x28, 0xd3, 0x87, 0x8c, 0x53,
  2608. 0xfb, 0x97, 0x01, 0xeb, 0xd3, 0x90, 0x52, 0xe2, 0x4f, 0x50, 0xd1, 0xe9, 0x14, 0x2a, 0xbf, 0x99,
  2609. 0x91, 0xf2, 0x0d, 0x28, 0x85, 0x0c, 0x5a, 0xea, 0x4b, 0x44, 0x2b, 0x86, 0xe5, 0x89, 0x4f, 0x37,
  2610. 0x08, 0xfe, 0x76, 0x52, 0xf0, 0x66, 0x29, 0xf6, 0x6b, 0x92, 0xef, 0x00, 0xb4, 0x79, 0x2b, 0xa4,
  2611. 0x38, 0x91, 0x8a, 0xad, 0x4b, 0xdd, 0x7d, 0x46, 0x34, 0xdf, 0x02, 0xe5, 0x47, 0x44, 0x3e, 0x01,
  2612. 0x33, 0xa2, 0x25, 0x92, 0x47, 0x9b, 0xc0, 0x7d, 0x8d, 0x77, 0x80, 0x49, 0x9f, 0xde, 0x1a, 0xf9,
  2613. 0x08, 0xee, 0x51, 0xee, 0x8b, 0x14, 0xa7, 0x43, 0xa1, 0xe3, 0x2b, 0x94, 0x1f, 0xe7, 0x77, 0x59,
  2614. 0x01, 0x26, 0xfc, 0x1e, 0x8b, 0x98, 0x38, 0xa5, 0xa4, 0x36, 0xaf, 0x2a, 0xc0, 0xc4, 0xa1, 0xb6,
  2615. 0xd8, 0xec, 0x72, 0x66, 0x73, 0x16, 0x21, 0x69, 0x4e, 0x60, 0xa5, 0xd8, 0x04, 0xdd, 0xdc, 0xa8,
  2616. 0x6b, 0xe0, 0xdc, 0xad, 0xed, 0x8a, 0xe7, 0x7a, 0xcb, 0xf4, 0x2a, 0xb2, 0xfd, 0xc3, 0x00, 0x34,
  2617. 0xc5, 0x25, 0x6b, 0x7d, 0x02, 0x8b, 0x13, 0x2c, 0xaf, 0x4a, 0xb0, 0xe8, 0x81, 0x52, 0x67, 0x55,
  2618. 0x66, 0x0d, 0x66, 0x9d, 0x41, 0xf5, 0x8a, 0xf9, 0xbf, 0xcd, 0x54, 0x8e, 0x39, 0x5d, 0xe0, 0xe6,
  2619. 0x6f, 0x13, 0x96, 0xb4, 0x03, 0xea, 0xc1, 0xc2, 0x3b, 0x26, 0x52, 0xb4, 0x55, 0x66, 0xd5, 0x0d,
  2620. 0x2c, 0xb7, 0xe4, 0x66, 0x44, 0x3d, 0x00, 0xc9, 0x73, 0x90, 0xed, 0xcb, 0xb1, 0x7d, 0x36, 0x33,
  2621. 0x5c, 0x6d, 0xee, 0xf2, 0x3c, 0x43, 0x58, 0x56, 0x3c, 0xba, 0xc9, 0xd1, 0x76, 0xc9, 0x51, 0x1c,
  2622. 0x58, 0xcd, 0xf2, 0xc3, 0x8b, 0x7c, 0x30, 0xf3, 0xfd, 0x85, 0x9e, 0xce, 0x7c, 0xb0, 0xa4, 0xd8,
  2623. 0x2e, 0xbb, 0x85, 0x51, 0x17, 0x20, 0x1f, 0xc9, 0x16, 0x0e, 0x4e, 0x29, 0x7a, 0x3e, 0x33, 0xbe,
  2624. 0x98, 0x5f, 0x6b, 0xa6, 0xeb, 0x39, 0x4f, 0xb3, 0xbc, 0x45, 0x50, 0x08, 0x8b, 0xaa, 0x09, 0x91,
  2625. 0x5b, 0xae, 0xab, 0x07, 0x56, 0xa3, 0xf4, 0x18, 0xa0, 0x53, 0xa8, 0xe6, 0xf9, 0x95, 0x6d, 0x89,
  2626. 0xd2, 0xda, 0x1d, 0xbc, 0xfe, 0x72, 0x51, 0x37, 0xbe, 0x5d, 0xd4, 0x8d, 0x9f, 0x17, 0x75, 0x03,
  2627. 0x5e, 0xf0, 0x90, 0x32, 0x4c, 0xa8, 0x70, 0xba, 0x43, 0xc1, 0x22, 0x2a, 0xc4, 0xed, 0x60, 0x1d,
  2628. 0xe3, 0xe3, 0xdc, 0xa8, 0xd1, 0x5d, 0xcc, 0xff, 0x42, 0x76, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff,
  2629. 0x77, 0xc1, 0x16, 0x76, 0x32, 0x09, 0x00, 0x00,
  2630. }