service.pb.go 64 KB

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