model.pb.go 65 KB

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