api.pb.go 267 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/main/archive/api/api.proto
  3. /*
  4. Package api is a generated protocol buffer package.
  5. use {app_id}.{version} as package name
  6. It is generated from these files:
  7. app/service/main/archive/api/api.proto
  8. It has these top-level messages:
  9. NoArgRequest
  10. NoReply
  11. DescriptionRequest
  12. DescriptionReply
  13. MaxAidReply
  14. ArcRequest
  15. ArcReply
  16. ArcsRequest
  17. ArcsReply
  18. ViewRequest
  19. StatRequest
  20. StatReply
  21. StatsRequest
  22. StatsReply
  23. ViewReply
  24. ViewsRequest
  25. ViewsReply
  26. TypesReply
  27. ClickRequest
  28. ClickReply
  29. PageRequest
  30. PageReply
  31. RecommendRequest
  32. RecommendReply
  33. VideoRequest
  34. VideoReply
  35. Tp
  36. AidVideos
  37. Arc
  38. StaffInfo
  39. Dimension
  40. Rights
  41. Author
  42. Stat
  43. Click
  44. Page
  45. VideoFileInfo
  46. VideoFormatFileInfo
  47. DashItem
  48. ResponseDash
  49. BvcVideoItem
  50. BvcResponseMsg
  51. ArcCacheRequest
  52. ArcFieldCacheRequest
  53. UpVideoCacheRequest
  54. DelVideoCacheRequest
  55. SetStatRequest
  56. */
  57. package api
  58. import proto "github.com/gogo/protobuf/proto"
  59. import fmt "fmt"
  60. import math "math"
  61. import _ "github.com/gogo/protobuf/gogoproto"
  62. import go_common_library_time "go-common/library/time"
  63. import (
  64. context "golang.org/x/net/context"
  65. grpc "google.golang.org/grpc"
  66. )
  67. import io "io"
  68. // Reference imports to suppress errors if they are not otherwise used.
  69. var _ = proto.Marshal
  70. var _ = fmt.Errorf
  71. var _ = math.Inf
  72. // This is a compile-time assertion to ensure that this generated file
  73. // is compatible with the proto package it is being compiled against.
  74. // A compilation error at this line likely means your copy of the
  75. // proto package needs to be updated.
  76. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  77. // NoArgReq
  78. type NoArgRequest struct {
  79. }
  80. func (m *NoArgRequest) Reset() { *m = NoArgRequest{} }
  81. func (m *NoArgRequest) String() string { return proto.CompactTextString(m) }
  82. func (*NoArgRequest) ProtoMessage() {}
  83. func (*NoArgRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} }
  84. // NoReply
  85. type NoReply struct {
  86. }
  87. func (m *NoReply) Reset() { *m = NoReply{} }
  88. func (m *NoReply) String() string { return proto.CompactTextString(m) }
  89. func (*NoReply) ProtoMessage() {}
  90. func (*NoReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} }
  91. type DescriptionRequest struct {
  92. Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
  93. }
  94. func (m *DescriptionRequest) Reset() { *m = DescriptionRequest{} }
  95. func (m *DescriptionRequest) String() string { return proto.CompactTextString(m) }
  96. func (*DescriptionRequest) ProtoMessage() {}
  97. func (*DescriptionRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} }
  98. func (m *DescriptionRequest) GetAid() int64 {
  99. if m != nil {
  100. return m.Aid
  101. }
  102. return 0
  103. }
  104. type DescriptionReply struct {
  105. Desc string `protobuf:"bytes,1,opt,name=desc,proto3" json:"desc,omitempty"`
  106. }
  107. func (m *DescriptionReply) Reset() { *m = DescriptionReply{} }
  108. func (m *DescriptionReply) String() string { return proto.CompactTextString(m) }
  109. func (*DescriptionReply) ProtoMessage() {}
  110. func (*DescriptionReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{3} }
  111. func (m *DescriptionReply) GetDesc() string {
  112. if m != nil {
  113. return m.Desc
  114. }
  115. return ""
  116. }
  117. type MaxAidReply struct {
  118. Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
  119. }
  120. func (m *MaxAidReply) Reset() { *m = MaxAidReply{} }
  121. func (m *MaxAidReply) String() string { return proto.CompactTextString(m) }
  122. func (*MaxAidReply) ProtoMessage() {}
  123. func (*MaxAidReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{4} }
  124. func (m *MaxAidReply) GetAid() int64 {
  125. if m != nil {
  126. return m.Aid
  127. }
  128. return 0
  129. }
  130. type ArcRequest struct {
  131. Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
  132. }
  133. func (m *ArcRequest) Reset() { *m = ArcRequest{} }
  134. func (m *ArcRequest) String() string { return proto.CompactTextString(m) }
  135. func (*ArcRequest) ProtoMessage() {}
  136. func (*ArcRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{5} }
  137. func (m *ArcRequest) GetAid() int64 {
  138. if m != nil {
  139. return m.Aid
  140. }
  141. return 0
  142. }
  143. type ArcReply struct {
  144. Arc *Arc `protobuf:"bytes,1,opt,name=arc" json:"arc,omitempty"`
  145. }
  146. func (m *ArcReply) Reset() { *m = ArcReply{} }
  147. func (m *ArcReply) String() string { return proto.CompactTextString(m) }
  148. func (*ArcReply) ProtoMessage() {}
  149. func (*ArcReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{6} }
  150. func (m *ArcReply) GetArc() *Arc {
  151. if m != nil {
  152. return m.Arc
  153. }
  154. return nil
  155. }
  156. type ArcsRequest struct {
  157. Aids []int64 `protobuf:"varint,1,rep,packed,name=aids" json:"aids,omitempty"`
  158. }
  159. func (m *ArcsRequest) Reset() { *m = ArcsRequest{} }
  160. func (m *ArcsRequest) String() string { return proto.CompactTextString(m) }
  161. func (*ArcsRequest) ProtoMessage() {}
  162. func (*ArcsRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{7} }
  163. func (m *ArcsRequest) GetAids() []int64 {
  164. if m != nil {
  165. return m.Aids
  166. }
  167. return nil
  168. }
  169. type ArcsReply struct {
  170. Arcs map[int64]*Arc `protobuf:"bytes,1,rep,name=arcs" json:"arcs,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  171. }
  172. func (m *ArcsReply) Reset() { *m = ArcsReply{} }
  173. func (m *ArcsReply) String() string { return proto.CompactTextString(m) }
  174. func (*ArcsReply) ProtoMessage() {}
  175. func (*ArcsReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{8} }
  176. func (m *ArcsReply) GetArcs() map[int64]*Arc {
  177. if m != nil {
  178. return m.Arcs
  179. }
  180. return nil
  181. }
  182. type ViewRequest struct {
  183. Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
  184. }
  185. func (m *ViewRequest) Reset() { *m = ViewRequest{} }
  186. func (m *ViewRequest) String() string { return proto.CompactTextString(m) }
  187. func (*ViewRequest) ProtoMessage() {}
  188. func (*ViewRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{9} }
  189. func (m *ViewRequest) GetAid() int64 {
  190. if m != nil {
  191. return m.Aid
  192. }
  193. return 0
  194. }
  195. type StatRequest struct {
  196. Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
  197. }
  198. func (m *StatRequest) Reset() { *m = StatRequest{} }
  199. func (m *StatRequest) String() string { return proto.CompactTextString(m) }
  200. func (*StatRequest) ProtoMessage() {}
  201. func (*StatRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{10} }
  202. func (m *StatRequest) GetAid() int64 {
  203. if m != nil {
  204. return m.Aid
  205. }
  206. return 0
  207. }
  208. type StatReply struct {
  209. Stat *Stat `protobuf:"bytes,1,opt,name=Stat" json:"Stat,omitempty"`
  210. }
  211. func (m *StatReply) Reset() { *m = StatReply{} }
  212. func (m *StatReply) String() string { return proto.CompactTextString(m) }
  213. func (*StatReply) ProtoMessage() {}
  214. func (*StatReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{11} }
  215. func (m *StatReply) GetStat() *Stat {
  216. if m != nil {
  217. return m.Stat
  218. }
  219. return nil
  220. }
  221. type StatsRequest struct {
  222. Aids []int64 `protobuf:"varint,1,rep,packed,name=aids" json:"aids,omitempty"`
  223. }
  224. func (m *StatsRequest) Reset() { *m = StatsRequest{} }
  225. func (m *StatsRequest) String() string { return proto.CompactTextString(m) }
  226. func (*StatsRequest) ProtoMessage() {}
  227. func (*StatsRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{12} }
  228. func (m *StatsRequest) GetAids() []int64 {
  229. if m != nil {
  230. return m.Aids
  231. }
  232. return nil
  233. }
  234. type StatsReply struct {
  235. Stats map[int64]*Stat `protobuf:"bytes,1,rep,name=Stats" json:"Stats,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  236. }
  237. func (m *StatsReply) Reset() { *m = StatsReply{} }
  238. func (m *StatsReply) String() string { return proto.CompactTextString(m) }
  239. func (*StatsReply) ProtoMessage() {}
  240. func (*StatsReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{13} }
  241. func (m *StatsReply) GetStats() map[int64]*Stat {
  242. if m != nil {
  243. return m.Stats
  244. }
  245. return nil
  246. }
  247. type ViewReply struct {
  248. *Arc `protobuf:"bytes,1,opt,name=arc,embedded=arc" json:""`
  249. Pages []*Page `protobuf:"bytes,2,rep,name=pages" json:"pages,omitempty"`
  250. }
  251. func (m *ViewReply) Reset() { *m = ViewReply{} }
  252. func (m *ViewReply) String() string { return proto.CompactTextString(m) }
  253. func (*ViewReply) ProtoMessage() {}
  254. func (*ViewReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{14} }
  255. func (m *ViewReply) GetPages() []*Page {
  256. if m != nil {
  257. return m.Pages
  258. }
  259. return nil
  260. }
  261. type ViewsRequest struct {
  262. Aids []int64 `protobuf:"varint,1,rep,packed,name=aids" json:"aids,omitempty"`
  263. }
  264. func (m *ViewsRequest) Reset() { *m = ViewsRequest{} }
  265. func (m *ViewsRequest) String() string { return proto.CompactTextString(m) }
  266. func (*ViewsRequest) ProtoMessage() {}
  267. func (*ViewsRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{15} }
  268. func (m *ViewsRequest) GetAids() []int64 {
  269. if m != nil {
  270. return m.Aids
  271. }
  272. return nil
  273. }
  274. type ViewsReply struct {
  275. Views map[int64]*ViewReply `protobuf:"bytes,1,rep,name=views" json:"views,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  276. }
  277. func (m *ViewsReply) Reset() { *m = ViewsReply{} }
  278. func (m *ViewsReply) String() string { return proto.CompactTextString(m) }
  279. func (*ViewsReply) ProtoMessage() {}
  280. func (*ViewsReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{16} }
  281. func (m *ViewsReply) GetViews() map[int64]*ViewReply {
  282. if m != nil {
  283. return m.Views
  284. }
  285. return nil
  286. }
  287. type TypesReply struct {
  288. Types map[int32]*Tp `protobuf:"bytes,1,rep,name=types" json:"types,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  289. }
  290. func (m *TypesReply) Reset() { *m = TypesReply{} }
  291. func (m *TypesReply) String() string { return proto.CompactTextString(m) }
  292. func (*TypesReply) ProtoMessage() {}
  293. func (*TypesReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{17} }
  294. func (m *TypesReply) GetTypes() map[int32]*Tp {
  295. if m != nil {
  296. return m.Types
  297. }
  298. return nil
  299. }
  300. type ClickRequest struct {
  301. Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
  302. }
  303. func (m *ClickRequest) Reset() { *m = ClickRequest{} }
  304. func (m *ClickRequest) String() string { return proto.CompactTextString(m) }
  305. func (*ClickRequest) ProtoMessage() {}
  306. func (*ClickRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{18} }
  307. func (m *ClickRequest) GetAid() int64 {
  308. if m != nil {
  309. return m.Aid
  310. }
  311. return 0
  312. }
  313. type ClickReply struct {
  314. Click *Click `protobuf:"bytes,1,opt,name=click" json:"click,omitempty"`
  315. }
  316. func (m *ClickReply) Reset() { *m = ClickReply{} }
  317. func (m *ClickReply) String() string { return proto.CompactTextString(m) }
  318. func (*ClickReply) ProtoMessage() {}
  319. func (*ClickReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{19} }
  320. func (m *ClickReply) GetClick() *Click {
  321. if m != nil {
  322. return m.Click
  323. }
  324. return nil
  325. }
  326. type PageRequest struct {
  327. Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
  328. }
  329. func (m *PageRequest) Reset() { *m = PageRequest{} }
  330. func (m *PageRequest) String() string { return proto.CompactTextString(m) }
  331. func (*PageRequest) ProtoMessage() {}
  332. func (*PageRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{20} }
  333. func (m *PageRequest) GetAid() int64 {
  334. if m != nil {
  335. return m.Aid
  336. }
  337. return 0
  338. }
  339. type PageReply struct {
  340. Pages []*Page `protobuf:"bytes,1,rep,name=pages" json:"pages,omitempty"`
  341. }
  342. func (m *PageReply) Reset() { *m = PageReply{} }
  343. func (m *PageReply) String() string { return proto.CompactTextString(m) }
  344. func (*PageReply) ProtoMessage() {}
  345. func (*PageReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{21} }
  346. func (m *PageReply) GetPages() []*Page {
  347. if m != nil {
  348. return m.Pages
  349. }
  350. return nil
  351. }
  352. type RecommendRequest struct {
  353. Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
  354. }
  355. func (m *RecommendRequest) Reset() { *m = RecommendRequest{} }
  356. func (m *RecommendRequest) String() string { return proto.CompactTextString(m) }
  357. func (*RecommendRequest) ProtoMessage() {}
  358. func (*RecommendRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{22} }
  359. func (m *RecommendRequest) GetAid() int64 {
  360. if m != nil {
  361. return m.Aid
  362. }
  363. return 0
  364. }
  365. type RecommendReply struct {
  366. Arcs []*Arc `protobuf:"bytes,1,rep,name=arcs" json:"arcs,omitempty"`
  367. }
  368. func (m *RecommendReply) Reset() { *m = RecommendReply{} }
  369. func (m *RecommendReply) String() string { return proto.CompactTextString(m) }
  370. func (*RecommendReply) ProtoMessage() {}
  371. func (*RecommendReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{23} }
  372. func (m *RecommendReply) GetArcs() []*Arc {
  373. if m != nil {
  374. return m.Arcs
  375. }
  376. return nil
  377. }
  378. type VideoRequest struct {
  379. Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
  380. Cid int64 `protobuf:"varint,2,opt,name=cid,proto3" json:"cid,omitempty"`
  381. }
  382. func (m *VideoRequest) Reset() { *m = VideoRequest{} }
  383. func (m *VideoRequest) String() string { return proto.CompactTextString(m) }
  384. func (*VideoRequest) ProtoMessage() {}
  385. func (*VideoRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{24} }
  386. func (m *VideoRequest) GetAid() int64 {
  387. if m != nil {
  388. return m.Aid
  389. }
  390. return 0
  391. }
  392. func (m *VideoRequest) GetCid() int64 {
  393. if m != nil {
  394. return m.Cid
  395. }
  396. return 0
  397. }
  398. type VideoReply struct {
  399. Page *Page `protobuf:"bytes,1,opt,name=page" json:"page,omitempty"`
  400. }
  401. func (m *VideoReply) Reset() { *m = VideoReply{} }
  402. func (m *VideoReply) String() string { return proto.CompactTextString(m) }
  403. func (*VideoReply) ProtoMessage() {}
  404. func (*VideoReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{25} }
  405. func (m *VideoReply) GetPage() *Page {
  406. if m != nil {
  407. return m.Page
  408. }
  409. return nil
  410. }
  411. type Tp struct {
  412. // 分区id
  413. ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"id"`
  414. // 该分区的父级id
  415. Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid"`
  416. // 该分区对应的名称
  417. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name"`
  418. }
  419. func (m *Tp) Reset() { *m = Tp{} }
  420. func (m *Tp) String() string { return proto.CompactTextString(m) }
  421. func (*Tp) ProtoMessage() {}
  422. func (*Tp) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{26} }
  423. func (m *Tp) GetID() int32 {
  424. if m != nil {
  425. return m.ID
  426. }
  427. return 0
  428. }
  429. func (m *Tp) GetPid() int32 {
  430. if m != nil {
  431. return m.Pid
  432. }
  433. return 0
  434. }
  435. func (m *Tp) GetName() string {
  436. if m != nil {
  437. return m.Name
  438. }
  439. return ""
  440. }
  441. type AidVideos struct {
  442. Aid int64 `protobuf:"varint,1,opt,name=Aid,proto3" json:"aid"`
  443. // 分P信息
  444. Pages []*Page `protobuf:"bytes,2,rep,name=Pages" json:"pages"`
  445. }
  446. func (m *AidVideos) Reset() { *m = AidVideos{} }
  447. func (m *AidVideos) String() string { return proto.CompactTextString(m) }
  448. func (*AidVideos) ProtoMessage() {}
  449. func (*AidVideos) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{27} }
  450. func (m *AidVideos) GetAid() int64 {
  451. if m != nil {
  452. return m.Aid
  453. }
  454. return 0
  455. }
  456. func (m *AidVideos) GetPages() []*Page {
  457. if m != nil {
  458. return m.Pages
  459. }
  460. return nil
  461. }
  462. type Arc struct {
  463. Aid int64 `protobuf:"varint,1,opt,name=Aid,proto3" json:"aid"`
  464. // 稿件一共有多少分P
  465. Videos int64 `protobuf:"varint,2,opt,name=Videos,proto3" json:"videos"`
  466. // 分区ID
  467. TypeID int32 `protobuf:"varint,3,opt,name=TypeID,proto3" json:"tid"`
  468. // 分区名
  469. TypeName string `protobuf:"bytes,4,opt,name=TypeName,proto3" json:"tname"`
  470. // 是否转载 1=原创 2=转载 0=历史上可能遗留的脏数据
  471. Copyright int32 `protobuf:"varint,5,opt,name=Copyright,proto3" json:"copyright"`
  472. // 稿件封面图地址,绝对地址 如 http://i0.hdslb.com/bfs/xxx.jpg
  473. Pic string `protobuf:"bytes,6,opt,name=Pic,proto3" json:"pic"`
  474. // 稿件标题
  475. Title string `protobuf:"bytes,7,opt,name=Title,proto3" json:"title"`
  476. // 稿件发布时间 对外展示的标准时间 时间戳格式
  477. PubDate go_common_library_time.Time `protobuf:"varint,8,opt,name=PubDate,proto3,casttype=go-common/library/time.Time" json:"pubdate"`
  478. // 用户提交稿件的时间 一般不对外展示 时间戳格式
  479. Ctime go_common_library_time.Time `protobuf:"varint,9,opt,name=Ctime,proto3,casttype=go-common/library/time.Time" json:"ctime"`
  480. // 稿件简介
  481. Desc string `protobuf:"bytes,10,opt,name=Desc,proto3" json:"desc"`
  482. // 稿件状态,>=0为前台用户可见状态,其他值详见 http://info.bilibili.co/pages/viewpage.action?pageId=3686597#id-%E7%A8%BF%E4%BB%B6%E5%AD%97%E6%AE%B5%E6%9E%9A%E4%B8%BE%E5%80%BC%E5%B1%9E%E6%80%A7%E8%AF%B4%E6%98%8E-%E7%A8%BF%E4%BB%B6%E7%8A%B6%E6%80%81state&access
  483. State int32 `protobuf:"varint,11,opt,name=State,proto3" json:"state"`
  484. // 稿件访问属性 0=全员可见 10000=登录用户可见(极少)
  485. Access int32 `protobuf:"varint,12,opt,name=Access,proto3" json:"access,omitempty"`
  486. // 稿件属性 详见State字段的文档
  487. Attribute int32 `protobuf:"varint,13,opt,name=Attribute,proto3" json:"attribute,omitempty"`
  488. // 废弃字段
  489. Tag string `protobuf:"bytes,14,opt,name=Tag,proto3" json:"-"`
  490. // 废弃字段
  491. Tags []string `protobuf:"bytes,15,rep,name=Tags" json:"tags,omitempty"`
  492. // 稿件总时长(所有分P加起来的) 单位=秒
  493. Duration int64 `protobuf:"varint,16,opt,name=Duration,proto3" json:"duration"`
  494. // 稿件绑定的活动id
  495. MissionID int64 `protobuf:"varint,17,opt,name=MissionID,proto3" json:"mission_id,omitempty"`
  496. // 稿件绑定的商单id
  497. OrderID int64 `protobuf:"varint,18,opt,name=OrderID,proto3" json:"order_id,omitempty"`
  498. // 稿件后台设置的强制跳转地址,如果该值不为空,则必须调转到它对应的页面上
  499. RedirectURL string `protobuf:"bytes,19,opt,name=RedirectURL,proto3" json:"redirect_url,omitempty"`
  500. Forward int64 `protobuf:"varint,20,opt,name=Forward,proto3" json:"forward,omitempty"`
  501. // 见Rights字段说明
  502. Rights Rights `protobuf:"bytes,21,opt,name=Rights" json:"rights"`
  503. // 稿件作者信息,详见Author字段说明
  504. Author Author `protobuf:"bytes,22,opt,name=Author" json:"owner"`
  505. // 稿件计数信息,详见Stat字段说明
  506. Stat Stat `protobuf:"bytes,23,opt,name=Stat" json:"stat"`
  507. ReportResult string `protobuf:"bytes,24,opt,name=ReportResult,proto3" json:"report_result,omitempty"`
  508. // 发布稿件时Up主设置的动态描述(仅在动态展示)
  509. Dynamic string `protobuf:"bytes,25,opt,name=Dynamic,proto3" json:"dynamic"`
  510. // 稿件第一P的cid,供秒开使用
  511. FirstCid int64 `protobuf:"varint,26,opt,name=FirstCid,proto3" json:"cid,omitempty"`
  512. // 稿件第一P的分辨率,详见Dimession字段说明
  513. Dimension Dimension `protobuf:"bytes,27,opt,name=Dimension" json:"dimension,omitempty"`
  514. // 联合投稿信息,内部使用,详见StaffInfo说明
  515. StaffInfo []*StaffInfo `protobuf:"bytes,28,rep,name=StaffInfo" json:"-"`
  516. }
  517. func (m *Arc) Reset() { *m = Arc{} }
  518. func (m *Arc) String() string { return proto.CompactTextString(m) }
  519. func (*Arc) ProtoMessage() {}
  520. func (*Arc) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{28} }
  521. func (m *Arc) GetAid() int64 {
  522. if m != nil {
  523. return m.Aid
  524. }
  525. return 0
  526. }
  527. func (m *Arc) GetVideos() int64 {
  528. if m != nil {
  529. return m.Videos
  530. }
  531. return 0
  532. }
  533. func (m *Arc) GetTypeID() int32 {
  534. if m != nil {
  535. return m.TypeID
  536. }
  537. return 0
  538. }
  539. func (m *Arc) GetTypeName() string {
  540. if m != nil {
  541. return m.TypeName
  542. }
  543. return ""
  544. }
  545. func (m *Arc) GetCopyright() int32 {
  546. if m != nil {
  547. return m.Copyright
  548. }
  549. return 0
  550. }
  551. func (m *Arc) GetPic() string {
  552. if m != nil {
  553. return m.Pic
  554. }
  555. return ""
  556. }
  557. func (m *Arc) GetTitle() string {
  558. if m != nil {
  559. return m.Title
  560. }
  561. return ""
  562. }
  563. func (m *Arc) GetPubDate() go_common_library_time.Time {
  564. if m != nil {
  565. return m.PubDate
  566. }
  567. return 0
  568. }
  569. func (m *Arc) GetCtime() go_common_library_time.Time {
  570. if m != nil {
  571. return m.Ctime
  572. }
  573. return 0
  574. }
  575. func (m *Arc) GetDesc() string {
  576. if m != nil {
  577. return m.Desc
  578. }
  579. return ""
  580. }
  581. func (m *Arc) GetState() int32 {
  582. if m != nil {
  583. return m.State
  584. }
  585. return 0
  586. }
  587. func (m *Arc) GetAccess() int32 {
  588. if m != nil {
  589. return m.Access
  590. }
  591. return 0
  592. }
  593. func (m *Arc) GetAttribute() int32 {
  594. if m != nil {
  595. return m.Attribute
  596. }
  597. return 0
  598. }
  599. func (m *Arc) GetTag() string {
  600. if m != nil {
  601. return m.Tag
  602. }
  603. return ""
  604. }
  605. func (m *Arc) GetTags() []string {
  606. if m != nil {
  607. return m.Tags
  608. }
  609. return nil
  610. }
  611. func (m *Arc) GetDuration() int64 {
  612. if m != nil {
  613. return m.Duration
  614. }
  615. return 0
  616. }
  617. func (m *Arc) GetMissionID() int64 {
  618. if m != nil {
  619. return m.MissionID
  620. }
  621. return 0
  622. }
  623. func (m *Arc) GetOrderID() int64 {
  624. if m != nil {
  625. return m.OrderID
  626. }
  627. return 0
  628. }
  629. func (m *Arc) GetRedirectURL() string {
  630. if m != nil {
  631. return m.RedirectURL
  632. }
  633. return ""
  634. }
  635. func (m *Arc) GetForward() int64 {
  636. if m != nil {
  637. return m.Forward
  638. }
  639. return 0
  640. }
  641. func (m *Arc) GetRights() Rights {
  642. if m != nil {
  643. return m.Rights
  644. }
  645. return Rights{}
  646. }
  647. func (m *Arc) GetAuthor() Author {
  648. if m != nil {
  649. return m.Author
  650. }
  651. return Author{}
  652. }
  653. func (m *Arc) GetStat() Stat {
  654. if m != nil {
  655. return m.Stat
  656. }
  657. return Stat{}
  658. }
  659. func (m *Arc) GetReportResult() string {
  660. if m != nil {
  661. return m.ReportResult
  662. }
  663. return ""
  664. }
  665. func (m *Arc) GetDynamic() string {
  666. if m != nil {
  667. return m.Dynamic
  668. }
  669. return ""
  670. }
  671. func (m *Arc) GetFirstCid() int64 {
  672. if m != nil {
  673. return m.FirstCid
  674. }
  675. return 0
  676. }
  677. func (m *Arc) GetDimension() Dimension {
  678. if m != nil {
  679. return m.Dimension
  680. }
  681. return Dimension{}
  682. }
  683. func (m *Arc) GetStaffInfo() []*StaffInfo {
  684. if m != nil {
  685. return m.StaffInfo
  686. }
  687. return nil
  688. }
  689. type StaffInfo struct {
  690. // 联合投稿的成员Up主id
  691. Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
  692. // 联合投稿的成员角色(如 声优、字幕)
  693. Title string `protobuf:"bytes,2,opt,name=Title,proto3" json:"title"`
  694. }
  695. func (m *StaffInfo) Reset() { *m = StaffInfo{} }
  696. func (m *StaffInfo) String() string { return proto.CompactTextString(m) }
  697. func (*StaffInfo) ProtoMessage() {}
  698. func (*StaffInfo) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{29} }
  699. func (m *StaffInfo) GetMid() int64 {
  700. if m != nil {
  701. return m.Mid
  702. }
  703. return 0
  704. }
  705. func (m *StaffInfo) GetTitle() string {
  706. if m != nil {
  707. return m.Title
  708. }
  709. return ""
  710. }
  711. // Dimension 视频分辨率
  712. type Dimension struct {
  713. // 宽 如 1920
  714. Width int64 `protobuf:"varint,1,opt,name=Width,proto3" json:"width"`
  715. // 高 如 1080
  716. Height int64 `protobuf:"varint,2,opt,name=Height,proto3" json:"height"`
  717. // 是否竖屏 0=否 1=是
  718. Rotate int64 `protobuf:"varint,3,opt,name=Rotate,proto3" json:"rotate"`
  719. }
  720. func (m *Dimension) Reset() { *m = Dimension{} }
  721. func (m *Dimension) String() string { return proto.CompactTextString(m) }
  722. func (*Dimension) ProtoMessage() {}
  723. func (*Dimension) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{30} }
  724. func (m *Dimension) GetWidth() int64 {
  725. if m != nil {
  726. return m.Width
  727. }
  728. return 0
  729. }
  730. func (m *Dimension) GetHeight() int64 {
  731. if m != nil {
  732. return m.Height
  733. }
  734. return 0
  735. }
  736. func (m *Dimension) GetRotate() int64 {
  737. if m != nil {
  738. return m.Rotate
  739. }
  740. return 0
  741. }
  742. // Rights 稿件各常用属性 0=否 1=是
  743. type Rights struct {
  744. // 老版是否付费
  745. Bp int32 `protobuf:"varint,1,opt,name=Bp,proto3" json:"bp"`
  746. // 是否支持充电 (不可直接使用,网关层请求业务方后才有值)
  747. Elec int32 `protobuf:"varint,2,opt,name=Elec,proto3" json:"elec"`
  748. // 是否下载(不可直接使用,网关层请求业务方后才有值)
  749. Download int32 `protobuf:"varint,3,opt,name=Download,proto3" json:"download"`
  750. // 是否电影
  751. Movie int32 `protobuf:"varint,4,opt,name=Movie,proto3" json:"movie"`
  752. // 是否PGC付费
  753. Pay int32 `protobuf:"varint,5,opt,name=Pay,proto3" json:"pay"`
  754. // 无用
  755. HD5 int32 `protobuf:"varint,6,opt,name=HD5,proto3" json:"hd5"`
  756. // 是否允许转发
  757. NoReprint int32 `protobuf:"varint,7,opt,name=NoReprint,proto3" json:"no_reprint"`
  758. // 是否可以自动播放
  759. Autoplay int32 `protobuf:"varint,8,opt,name=Autoplay,proto3" json:"autoplay"`
  760. // 是否UGC付费
  761. UGCPay int32 `protobuf:"varint,9,opt,name=UGCPay,proto3" json:"ugc_pay"`
  762. // 是否联合投稿
  763. IsCooperation int32 `protobuf:"varint,10,opt,name=IsCooperation,proto3" json:"is_cooperation"`
  764. }
  765. func (m *Rights) Reset() { *m = Rights{} }
  766. func (m *Rights) String() string { return proto.CompactTextString(m) }
  767. func (*Rights) ProtoMessage() {}
  768. func (*Rights) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{31} }
  769. func (m *Rights) GetBp() int32 {
  770. if m != nil {
  771. return m.Bp
  772. }
  773. return 0
  774. }
  775. func (m *Rights) GetElec() int32 {
  776. if m != nil {
  777. return m.Elec
  778. }
  779. return 0
  780. }
  781. func (m *Rights) GetDownload() int32 {
  782. if m != nil {
  783. return m.Download
  784. }
  785. return 0
  786. }
  787. func (m *Rights) GetMovie() int32 {
  788. if m != nil {
  789. return m.Movie
  790. }
  791. return 0
  792. }
  793. func (m *Rights) GetPay() int32 {
  794. if m != nil {
  795. return m.Pay
  796. }
  797. return 0
  798. }
  799. func (m *Rights) GetHD5() int32 {
  800. if m != nil {
  801. return m.HD5
  802. }
  803. return 0
  804. }
  805. func (m *Rights) GetNoReprint() int32 {
  806. if m != nil {
  807. return m.NoReprint
  808. }
  809. return 0
  810. }
  811. func (m *Rights) GetAutoplay() int32 {
  812. if m != nil {
  813. return m.Autoplay
  814. }
  815. return 0
  816. }
  817. func (m *Rights) GetUGCPay() int32 {
  818. if m != nil {
  819. return m.UGCPay
  820. }
  821. return 0
  822. }
  823. func (m *Rights) GetIsCooperation() int32 {
  824. if m != nil {
  825. return m.IsCooperation
  826. }
  827. return 0
  828. }
  829. // Author 稿件作者信息
  830. type Author struct {
  831. // Up主mid
  832. Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
  833. // Up主名称
  834. Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"name"`
  835. // Up主头像地址 绝对地址
  836. Face string `protobuf:"bytes,3,opt,name=Face,proto3" json:"face"`
  837. }
  838. func (m *Author) Reset() { *m = Author{} }
  839. func (m *Author) String() string { return proto.CompactTextString(m) }
  840. func (*Author) ProtoMessage() {}
  841. func (*Author) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{32} }
  842. func (m *Author) GetMid() int64 {
  843. if m != nil {
  844. return m.Mid
  845. }
  846. return 0
  847. }
  848. func (m *Author) GetName() string {
  849. if m != nil {
  850. return m.Name
  851. }
  852. return ""
  853. }
  854. func (m *Author) GetFace() string {
  855. if m != nil {
  856. return m.Face
  857. }
  858. return ""
  859. }
  860. // Stat 稿件的所有计数信息
  861. type Stat struct {
  862. Aid int64 `protobuf:"varint,1,opt,name=Aid,proto3" json:"aid"`
  863. // 播放数
  864. View int32 `protobuf:"varint,2,opt,name=View,proto3" json:"view"`
  865. // 弹幕数
  866. Danmaku int32 `protobuf:"varint,3,opt,name=Danmaku,proto3" json:"danmaku"`
  867. // 评论数
  868. Reply int32 `protobuf:"varint,4,opt,name=Reply,proto3" json:"reply"`
  869. // 收藏数
  870. Fav int32 `protobuf:"varint,5,opt,name=Fav,proto3" json:"favorite"`
  871. // 投币数
  872. Coin int32 `protobuf:"varint,6,opt,name=Coin,proto3" json:"coin"`
  873. // 分享数
  874. Share int32 `protobuf:"varint,7,opt,name=Share,proto3" json:"share"`
  875. // 当前排名
  876. NowRank int32 `protobuf:"varint,8,opt,name=NowRank,proto3" json:"now_rank"`
  877. // 历史最高排名
  878. HisRank int32 `protobuf:"varint,9,opt,name=HisRank,proto3" json:"his_rank"`
  879. // 点赞数
  880. Like int32 `protobuf:"varint,10,opt,name=Like,proto3" json:"like"`
  881. // 点踩数 已取消前台展示,现在均返回0
  882. DisLike int32 `protobuf:"varint,11,opt,name=DisLike,proto3" json:"dislike"`
  883. }
  884. func (m *Stat) Reset() { *m = Stat{} }
  885. func (m *Stat) String() string { return proto.CompactTextString(m) }
  886. func (*Stat) ProtoMessage() {}
  887. func (*Stat) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{33} }
  888. func (m *Stat) GetAid() int64 {
  889. if m != nil {
  890. return m.Aid
  891. }
  892. return 0
  893. }
  894. func (m *Stat) GetView() int32 {
  895. if m != nil {
  896. return m.View
  897. }
  898. return 0
  899. }
  900. func (m *Stat) GetDanmaku() int32 {
  901. if m != nil {
  902. return m.Danmaku
  903. }
  904. return 0
  905. }
  906. func (m *Stat) GetReply() int32 {
  907. if m != nil {
  908. return m.Reply
  909. }
  910. return 0
  911. }
  912. func (m *Stat) GetFav() int32 {
  913. if m != nil {
  914. return m.Fav
  915. }
  916. return 0
  917. }
  918. func (m *Stat) GetCoin() int32 {
  919. if m != nil {
  920. return m.Coin
  921. }
  922. return 0
  923. }
  924. func (m *Stat) GetShare() int32 {
  925. if m != nil {
  926. return m.Share
  927. }
  928. return 0
  929. }
  930. func (m *Stat) GetNowRank() int32 {
  931. if m != nil {
  932. return m.NowRank
  933. }
  934. return 0
  935. }
  936. func (m *Stat) GetHisRank() int32 {
  937. if m != nil {
  938. return m.HisRank
  939. }
  940. return 0
  941. }
  942. func (m *Stat) GetLike() int32 {
  943. if m != nil {
  944. return m.Like
  945. }
  946. return 0
  947. }
  948. func (m *Stat) GetDisLike() int32 {
  949. if m != nil {
  950. return m.DisLike
  951. }
  952. return 0
  953. }
  954. // Click 点击数详情,老版本播放器使用
  955. type Click struct {
  956. Aid int64 `protobuf:"varint,1,opt,name=Aid,proto3" json:"aid"`
  957. // web端播放数
  958. Web int32 `protobuf:"varint,2,opt,name=Web,proto3" json:"web"`
  959. // iOS端播放数
  960. Ios int32 `protobuf:"varint,3,opt,name=Ios,proto3" json:"ios"`
  961. // android端播放数
  962. Android int32 `protobuf:"varint,4,opt,name=Android,proto3" json:"android"`
  963. // h5端播放数
  964. H5 int32 `protobuf:"varint,5,opt,name=H5,proto3" json:"h5"`
  965. // 站外播放数
  966. Outter int32 `protobuf:"varint,6,opt,name=Outter,proto3" json:"outter"`
  967. }
  968. func (m *Click) Reset() { *m = Click{} }
  969. func (m *Click) String() string { return proto.CompactTextString(m) }
  970. func (*Click) ProtoMessage() {}
  971. func (*Click) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{34} }
  972. func (m *Click) GetAid() int64 {
  973. if m != nil {
  974. return m.Aid
  975. }
  976. return 0
  977. }
  978. func (m *Click) GetWeb() int32 {
  979. if m != nil {
  980. return m.Web
  981. }
  982. return 0
  983. }
  984. func (m *Click) GetIos() int32 {
  985. if m != nil {
  986. return m.Ios
  987. }
  988. return 0
  989. }
  990. func (m *Click) GetAndroid() int32 {
  991. if m != nil {
  992. return m.Android
  993. }
  994. return 0
  995. }
  996. func (m *Click) GetH5() int32 {
  997. if m != nil {
  998. return m.H5
  999. }
  1000. return 0
  1001. }
  1002. func (m *Click) GetOutter() int32 {
  1003. if m != nil {
  1004. return m.Outter
  1005. }
  1006. return 0
  1007. }
  1008. // Page 分P信息
  1009. type Page struct {
  1010. // 视频的cid
  1011. Cid int64 `protobuf:"varint,1,opt,name=Cid,proto3" json:"cid"`
  1012. // 视频的序号顺序,从小到大
  1013. Page int32 `protobuf:"varint,2,opt,name=Page,proto3" json:"page"`
  1014. // 视频的来源,99%为vupload=B站自己的,少部分为腾讯(qq)、湖南tv(hunan)
  1015. From string `protobuf:"bytes,3,opt,name=From,proto3" json:"from"`
  1016. // 视频的标题
  1017. Part string `protobuf:"bytes,4,opt,name=Part,proto3" json:"part"`
  1018. // 视频的时长 单位=秒
  1019. Duration int64 `protobuf:"varint,5,opt,name=Duration,proto3" json:"duration"`
  1020. // 站外视频才有vid属性
  1021. Vid string `protobuf:"bytes,6,opt,name=Vid,proto3" json:"vid"`
  1022. // 视频的简介,多P视频才可填写简介
  1023. Desc string `protobuf:"bytes,7,opt,name=Desc,proto3" json:"description,omitempty"`
  1024. // 站外视频跳转地址
  1025. WebLink string `protobuf:"bytes,8,opt,name=WebLink,proto3" json:"weblink"`
  1026. // 视频分辨率信息
  1027. Dimension Dimension `protobuf:"bytes,9,opt,name=Dimension" json:"dimension"`
  1028. }
  1029. func (m *Page) Reset() { *m = Page{} }
  1030. func (m *Page) String() string { return proto.CompactTextString(m) }
  1031. func (*Page) ProtoMessage() {}
  1032. func (*Page) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{35} }
  1033. func (m *Page) GetCid() int64 {
  1034. if m != nil {
  1035. return m.Cid
  1036. }
  1037. return 0
  1038. }
  1039. func (m *Page) GetPage() int32 {
  1040. if m != nil {
  1041. return m.Page
  1042. }
  1043. return 0
  1044. }
  1045. func (m *Page) GetFrom() string {
  1046. if m != nil {
  1047. return m.From
  1048. }
  1049. return ""
  1050. }
  1051. func (m *Page) GetPart() string {
  1052. if m != nil {
  1053. return m.Part
  1054. }
  1055. return ""
  1056. }
  1057. func (m *Page) GetDuration() int64 {
  1058. if m != nil {
  1059. return m.Duration
  1060. }
  1061. return 0
  1062. }
  1063. func (m *Page) GetVid() string {
  1064. if m != nil {
  1065. return m.Vid
  1066. }
  1067. return ""
  1068. }
  1069. func (m *Page) GetDesc() string {
  1070. if m != nil {
  1071. return m.Desc
  1072. }
  1073. return ""
  1074. }
  1075. func (m *Page) GetWebLink() string {
  1076. if m != nil {
  1077. return m.WebLink
  1078. }
  1079. return ""
  1080. }
  1081. func (m *Page) GetDimension() Dimension {
  1082. if m != nil {
  1083. return m.Dimension
  1084. }
  1085. return Dimension{}
  1086. }
  1087. // !!!Note: only response message defined, since we put pb into http response body
  1088. type VideoFileInfo struct {
  1089. Filesize int64 `protobuf:"varint,1,opt,name=filesize,proto3,casttype=int64" json:"filesize"`
  1090. Timelength int64 `protobuf:"varint,2,opt,name=timelength,proto3,casttype=int64" json:"timelength"`
  1091. Ahead string `protobuf:"bytes,3,opt,name=ahead,proto3" json:"ahead"`
  1092. Vhead string `protobuf:"bytes,4,opt,name=vhead,proto3" json:"vhead"`
  1093. }
  1094. func (m *VideoFileInfo) Reset() { *m = VideoFileInfo{} }
  1095. func (m *VideoFileInfo) String() string { return proto.CompactTextString(m) }
  1096. func (*VideoFileInfo) ProtoMessage() {}
  1097. func (*VideoFileInfo) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{36} }
  1098. func (m *VideoFileInfo) GetFilesize() int64 {
  1099. if m != nil {
  1100. return m.Filesize
  1101. }
  1102. return 0
  1103. }
  1104. func (m *VideoFileInfo) GetTimelength() int64 {
  1105. if m != nil {
  1106. return m.Timelength
  1107. }
  1108. return 0
  1109. }
  1110. func (m *VideoFileInfo) GetAhead() string {
  1111. if m != nil {
  1112. return m.Ahead
  1113. }
  1114. return ""
  1115. }
  1116. func (m *VideoFileInfo) GetVhead() string {
  1117. if m != nil {
  1118. return m.Vhead
  1119. }
  1120. return ""
  1121. }
  1122. type VideoFormatFileInfo struct {
  1123. Infos []*VideoFileInfo `protobuf:"bytes,1,rep,name=infos" json:"infos"`
  1124. }
  1125. func (m *VideoFormatFileInfo) Reset() { *m = VideoFormatFileInfo{} }
  1126. func (m *VideoFormatFileInfo) String() string { return proto.CompactTextString(m) }
  1127. func (*VideoFormatFileInfo) ProtoMessage() {}
  1128. func (*VideoFormatFileInfo) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{37} }
  1129. func (m *VideoFormatFileInfo) GetInfos() []*VideoFileInfo {
  1130. if m != nil {
  1131. return m.Infos
  1132. }
  1133. return nil
  1134. }
  1135. type DashItem struct {
  1136. Id int64 `protobuf:"varint,1,opt,name=id,proto3,casttype=int64" json:"id"`
  1137. BaseUrl string `protobuf:"bytes,2,opt,name=baseUrl,proto3" json:"base_url"`
  1138. Bandwidth int64 `protobuf:"varint,3,opt,name=bandwidth,proto3,casttype=int64" json:"bandwidth"`
  1139. Codecid int64 `protobuf:"varint,4,opt,name=codecid,proto3,casttype=int64" json:"codecid"`
  1140. }
  1141. func (m *DashItem) Reset() { *m = DashItem{} }
  1142. func (m *DashItem) String() string { return proto.CompactTextString(m) }
  1143. func (*DashItem) ProtoMessage() {}
  1144. func (*DashItem) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{38} }
  1145. func (m *DashItem) GetId() int64 {
  1146. if m != nil {
  1147. return m.Id
  1148. }
  1149. return 0
  1150. }
  1151. func (m *DashItem) GetBaseUrl() string {
  1152. if m != nil {
  1153. return m.BaseUrl
  1154. }
  1155. return ""
  1156. }
  1157. func (m *DashItem) GetBandwidth() int64 {
  1158. if m != nil {
  1159. return m.Bandwidth
  1160. }
  1161. return 0
  1162. }
  1163. func (m *DashItem) GetCodecid() int64 {
  1164. if m != nil {
  1165. return m.Codecid
  1166. }
  1167. return 0
  1168. }
  1169. type ResponseDash struct {
  1170. Video []*DashItem `protobuf:"bytes,1,rep,name=video" json:"video"`
  1171. Audio []*DashItem `protobuf:"bytes,2,rep,name=audio" json:"audio"`
  1172. }
  1173. func (m *ResponseDash) Reset() { *m = ResponseDash{} }
  1174. func (m *ResponseDash) String() string { return proto.CompactTextString(m) }
  1175. func (*ResponseDash) ProtoMessage() {}
  1176. func (*ResponseDash) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{39} }
  1177. func (m *ResponseDash) GetVideo() []*DashItem {
  1178. if m != nil {
  1179. return m.Video
  1180. }
  1181. return nil
  1182. }
  1183. func (m *ResponseDash) GetAudio() []*DashItem {
  1184. if m != nil {
  1185. return m.Audio
  1186. }
  1187. return nil
  1188. }
  1189. type BvcVideoItem struct {
  1190. ExpireTime int64 `protobuf:"varint,1,opt,name=expire_time,json=expireTime,proto3,casttype=int64" json:"expire_time"`
  1191. Cid int64 `protobuf:"varint,2,opt,name=cid,proto3,casttype=int64" json:"cid"`
  1192. SupportQuality []int `protobuf:"varint,3,rep,packed,name=support_quality,json=supportQuality,casttype=int" json:"support_quality"`
  1193. SupportFormats []string `protobuf:"bytes,4,rep,name=support_formats,json=supportFormats" json:"support_formats"`
  1194. SupportDescription []string `protobuf:"bytes,5,rep,name=support_description,json=supportDescription" json:"support_description"`
  1195. Quality int `protobuf:"varint,6,opt,name=quality,proto3,casttype=int" json:"quality"`
  1196. Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url"`
  1197. FileInfo map[uint32]*VideoFormatFileInfo `protobuf:"bytes,8,rep,name=file_info,json=fileInfo" json:"file_info" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  1198. VideoCodecid uint32 `protobuf:"varint,9,opt,name=video_codecid,json=videoCodecid,proto3" json:"video_codecid"`
  1199. VideoProject bool `protobuf:"varint,10,opt,name=video_project,json=videoProject,proto3" json:"video_project"`
  1200. Fnver int `protobuf:"varint,11,opt,name=fnver,proto3,casttype=int" json:"fnver"`
  1201. Fnval int `protobuf:"varint,12,opt,name=fnval,proto3,casttype=int" json:"fnval"`
  1202. Dash *ResponseDash `protobuf:"bytes,13,opt,name=dash" json:"dash"`
  1203. }
  1204. func (m *BvcVideoItem) Reset() { *m = BvcVideoItem{} }
  1205. func (m *BvcVideoItem) String() string { return proto.CompactTextString(m) }
  1206. func (*BvcVideoItem) ProtoMessage() {}
  1207. func (*BvcVideoItem) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{40} }
  1208. func (m *BvcVideoItem) GetExpireTime() int64 {
  1209. if m != nil {
  1210. return m.ExpireTime
  1211. }
  1212. return 0
  1213. }
  1214. func (m *BvcVideoItem) GetCid() int64 {
  1215. if m != nil {
  1216. return m.Cid
  1217. }
  1218. return 0
  1219. }
  1220. func (m *BvcVideoItem) GetSupportQuality() []int {
  1221. if m != nil {
  1222. return m.SupportQuality
  1223. }
  1224. return nil
  1225. }
  1226. func (m *BvcVideoItem) GetSupportFormats() []string {
  1227. if m != nil {
  1228. return m.SupportFormats
  1229. }
  1230. return nil
  1231. }
  1232. func (m *BvcVideoItem) GetSupportDescription() []string {
  1233. if m != nil {
  1234. return m.SupportDescription
  1235. }
  1236. return nil
  1237. }
  1238. func (m *BvcVideoItem) GetQuality() int {
  1239. if m != nil {
  1240. return m.Quality
  1241. }
  1242. return 0
  1243. }
  1244. func (m *BvcVideoItem) GetUrl() string {
  1245. if m != nil {
  1246. return m.Url
  1247. }
  1248. return ""
  1249. }
  1250. func (m *BvcVideoItem) GetFileInfo() map[uint32]*VideoFormatFileInfo {
  1251. if m != nil {
  1252. return m.FileInfo
  1253. }
  1254. return nil
  1255. }
  1256. func (m *BvcVideoItem) GetVideoCodecid() uint32 {
  1257. if m != nil {
  1258. return m.VideoCodecid
  1259. }
  1260. return 0
  1261. }
  1262. func (m *BvcVideoItem) GetVideoProject() bool {
  1263. if m != nil {
  1264. return m.VideoProject
  1265. }
  1266. return false
  1267. }
  1268. func (m *BvcVideoItem) GetFnver() int {
  1269. if m != nil {
  1270. return m.Fnver
  1271. }
  1272. return 0
  1273. }
  1274. func (m *BvcVideoItem) GetFnval() int {
  1275. if m != nil {
  1276. return m.Fnval
  1277. }
  1278. return 0
  1279. }
  1280. func (m *BvcVideoItem) GetDash() *ResponseDash {
  1281. if m != nil {
  1282. return m.Dash
  1283. }
  1284. return nil
  1285. }
  1286. type BvcResponseMsg struct {
  1287. Code int64 `protobuf:"varint,1,opt,name=code,proto3,casttype=int64" json:"code"`
  1288. Data map[uint32]*BvcVideoItem `protobuf:"bytes,2,rep,name=data" json:"data" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  1289. }
  1290. func (m *BvcResponseMsg) Reset() { *m = BvcResponseMsg{} }
  1291. func (m *BvcResponseMsg) String() string { return proto.CompactTextString(m) }
  1292. func (*BvcResponseMsg) ProtoMessage() {}
  1293. func (*BvcResponseMsg) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{41} }
  1294. func (m *BvcResponseMsg) GetCode() int64 {
  1295. if m != nil {
  1296. return m.Code
  1297. }
  1298. return 0
  1299. }
  1300. func (m *BvcResponseMsg) GetData() map[uint32]*BvcVideoItem {
  1301. if m != nil {
  1302. return m.Data
  1303. }
  1304. return nil
  1305. }
  1306. // 内部方法 请勿使用--------------------------------------------------------------------------------------------
  1307. type ArcCacheRequest struct {
  1308. Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
  1309. Tp string `protobuf:"bytes,2,opt,name=tp,proto3" json:"tp,omitempty"`
  1310. OldMid int64 `protobuf:"varint,3,opt,name=OldMid,proto3" json:"OldMid,omitempty"`
  1311. }
  1312. func (m *ArcCacheRequest) Reset() { *m = ArcCacheRequest{} }
  1313. func (m *ArcCacheRequest) String() string { return proto.CompactTextString(m) }
  1314. func (*ArcCacheRequest) ProtoMessage() {}
  1315. func (*ArcCacheRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{42} }
  1316. func (m *ArcCacheRequest) GetAid() int64 {
  1317. if m != nil {
  1318. return m.Aid
  1319. }
  1320. return 0
  1321. }
  1322. func (m *ArcCacheRequest) GetTp() string {
  1323. if m != nil {
  1324. return m.Tp
  1325. }
  1326. return ""
  1327. }
  1328. func (m *ArcCacheRequest) GetOldMid() int64 {
  1329. if m != nil {
  1330. return m.OldMid
  1331. }
  1332. return 0
  1333. }
  1334. type ArcFieldCacheRequest struct {
  1335. Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
  1336. TypeID int32 `protobuf:"varint,2,opt,name=typeID,proto3" json:"typeID,omitempty"`
  1337. OldTypeID int32 `protobuf:"varint,3,opt,name=oldTypeID,proto3" json:"oldTypeID,omitempty"`
  1338. }
  1339. func (m *ArcFieldCacheRequest) Reset() { *m = ArcFieldCacheRequest{} }
  1340. func (m *ArcFieldCacheRequest) String() string { return proto.CompactTextString(m) }
  1341. func (*ArcFieldCacheRequest) ProtoMessage() {}
  1342. func (*ArcFieldCacheRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{43} }
  1343. func (m *ArcFieldCacheRequest) GetAid() int64 {
  1344. if m != nil {
  1345. return m.Aid
  1346. }
  1347. return 0
  1348. }
  1349. func (m *ArcFieldCacheRequest) GetTypeID() int32 {
  1350. if m != nil {
  1351. return m.TypeID
  1352. }
  1353. return 0
  1354. }
  1355. func (m *ArcFieldCacheRequest) GetOldTypeID() int32 {
  1356. if m != nil {
  1357. return m.OldTypeID
  1358. }
  1359. return 0
  1360. }
  1361. type UpVideoCacheRequest struct {
  1362. Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
  1363. Cid int64 `protobuf:"varint,2,opt,name=cid,proto3" json:"cid,omitempty"`
  1364. }
  1365. func (m *UpVideoCacheRequest) Reset() { *m = UpVideoCacheRequest{} }
  1366. func (m *UpVideoCacheRequest) String() string { return proto.CompactTextString(m) }
  1367. func (*UpVideoCacheRequest) ProtoMessage() {}
  1368. func (*UpVideoCacheRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{44} }
  1369. func (m *UpVideoCacheRequest) GetAid() int64 {
  1370. if m != nil {
  1371. return m.Aid
  1372. }
  1373. return 0
  1374. }
  1375. func (m *UpVideoCacheRequest) GetCid() int64 {
  1376. if m != nil {
  1377. return m.Cid
  1378. }
  1379. return 0
  1380. }
  1381. type DelVideoCacheRequest struct {
  1382. Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
  1383. Cid int64 `protobuf:"varint,2,opt,name=cid,proto3" json:"cid,omitempty"`
  1384. }
  1385. func (m *DelVideoCacheRequest) Reset() { *m = DelVideoCacheRequest{} }
  1386. func (m *DelVideoCacheRequest) String() string { return proto.CompactTextString(m) }
  1387. func (*DelVideoCacheRequest) ProtoMessage() {}
  1388. func (*DelVideoCacheRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{45} }
  1389. func (m *DelVideoCacheRequest) GetAid() int64 {
  1390. if m != nil {
  1391. return m.Aid
  1392. }
  1393. return 0
  1394. }
  1395. func (m *DelVideoCacheRequest) GetCid() int64 {
  1396. if m != nil {
  1397. return m.Cid
  1398. }
  1399. return 0
  1400. }
  1401. type SetStatRequest struct {
  1402. Stat *Stat `protobuf:"bytes,1,opt,name=stat" json:"stat,omitempty"`
  1403. }
  1404. func (m *SetStatRequest) Reset() { *m = SetStatRequest{} }
  1405. func (m *SetStatRequest) String() string { return proto.CompactTextString(m) }
  1406. func (*SetStatRequest) ProtoMessage() {}
  1407. func (*SetStatRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{46} }
  1408. func (m *SetStatRequest) GetStat() *Stat {
  1409. if m != nil {
  1410. return m.Stat
  1411. }
  1412. return nil
  1413. }
  1414. func init() {
  1415. proto.RegisterType((*NoArgRequest)(nil), "archive.service.v1.NoArgRequest")
  1416. proto.RegisterType((*NoReply)(nil), "archive.service.v1.NoReply")
  1417. proto.RegisterType((*DescriptionRequest)(nil), "archive.service.v1.DescriptionRequest")
  1418. proto.RegisterType((*DescriptionReply)(nil), "archive.service.v1.DescriptionReply")
  1419. proto.RegisterType((*MaxAidReply)(nil), "archive.service.v1.MaxAidReply")
  1420. proto.RegisterType((*ArcRequest)(nil), "archive.service.v1.ArcRequest")
  1421. proto.RegisterType((*ArcReply)(nil), "archive.service.v1.ArcReply")
  1422. proto.RegisterType((*ArcsRequest)(nil), "archive.service.v1.ArcsRequest")
  1423. proto.RegisterType((*ArcsReply)(nil), "archive.service.v1.ArcsReply")
  1424. proto.RegisterType((*ViewRequest)(nil), "archive.service.v1.ViewRequest")
  1425. proto.RegisterType((*StatRequest)(nil), "archive.service.v1.StatRequest")
  1426. proto.RegisterType((*StatReply)(nil), "archive.service.v1.StatReply")
  1427. proto.RegisterType((*StatsRequest)(nil), "archive.service.v1.StatsRequest")
  1428. proto.RegisterType((*StatsReply)(nil), "archive.service.v1.StatsReply")
  1429. proto.RegisterType((*ViewReply)(nil), "archive.service.v1.ViewReply")
  1430. proto.RegisterType((*ViewsRequest)(nil), "archive.service.v1.ViewsRequest")
  1431. proto.RegisterType((*ViewsReply)(nil), "archive.service.v1.ViewsReply")
  1432. proto.RegisterType((*TypesReply)(nil), "archive.service.v1.TypesReply")
  1433. proto.RegisterType((*ClickRequest)(nil), "archive.service.v1.ClickRequest")
  1434. proto.RegisterType((*ClickReply)(nil), "archive.service.v1.ClickReply")
  1435. proto.RegisterType((*PageRequest)(nil), "archive.service.v1.PageRequest")
  1436. proto.RegisterType((*PageReply)(nil), "archive.service.v1.PageReply")
  1437. proto.RegisterType((*RecommendRequest)(nil), "archive.service.v1.RecommendRequest")
  1438. proto.RegisterType((*RecommendReply)(nil), "archive.service.v1.RecommendReply")
  1439. proto.RegisterType((*VideoRequest)(nil), "archive.service.v1.VideoRequest")
  1440. proto.RegisterType((*VideoReply)(nil), "archive.service.v1.VideoReply")
  1441. proto.RegisterType((*Tp)(nil), "archive.service.v1.Tp")
  1442. proto.RegisterType((*AidVideos)(nil), "archive.service.v1.AidVideos")
  1443. proto.RegisterType((*Arc)(nil), "archive.service.v1.Arc")
  1444. proto.RegisterType((*StaffInfo)(nil), "archive.service.v1.StaffInfo")
  1445. proto.RegisterType((*Dimension)(nil), "archive.service.v1.Dimension")
  1446. proto.RegisterType((*Rights)(nil), "archive.service.v1.Rights")
  1447. proto.RegisterType((*Author)(nil), "archive.service.v1.Author")
  1448. proto.RegisterType((*Stat)(nil), "archive.service.v1.Stat")
  1449. proto.RegisterType((*Click)(nil), "archive.service.v1.Click")
  1450. proto.RegisterType((*Page)(nil), "archive.service.v1.Page")
  1451. proto.RegisterType((*VideoFileInfo)(nil), "archive.service.v1.VideoFileInfo")
  1452. proto.RegisterType((*VideoFormatFileInfo)(nil), "archive.service.v1.VideoFormatFileInfo")
  1453. proto.RegisterType((*DashItem)(nil), "archive.service.v1.DashItem")
  1454. proto.RegisterType((*ResponseDash)(nil), "archive.service.v1.ResponseDash")
  1455. proto.RegisterType((*BvcVideoItem)(nil), "archive.service.v1.BvcVideoItem")
  1456. proto.RegisterType((*BvcResponseMsg)(nil), "archive.service.v1.BvcResponseMsg")
  1457. proto.RegisterType((*ArcCacheRequest)(nil), "archive.service.v1.ArcCacheRequest")
  1458. proto.RegisterType((*ArcFieldCacheRequest)(nil), "archive.service.v1.ArcFieldCacheRequest")
  1459. proto.RegisterType((*UpVideoCacheRequest)(nil), "archive.service.v1.UpVideoCacheRequest")
  1460. proto.RegisterType((*DelVideoCacheRequest)(nil), "archive.service.v1.DelVideoCacheRequest")
  1461. proto.RegisterType((*SetStatRequest)(nil), "archive.service.v1.SetStatRequest")
  1462. }
  1463. // Reference imports to suppress errors if they are not otherwise used.
  1464. var _ context.Context
  1465. var _ grpc.ClientConn
  1466. // This is a compile-time assertion to ensure that this generated file
  1467. // is compatible with the grpc package it is being compiled against.
  1468. const _ = grpc.SupportPackageIsVersion4
  1469. // Client API for Archive service
  1470. type ArchiveClient interface {
  1471. // Types 获取所有分区列表
  1472. Types(ctx context.Context, in *NoArgRequest, opts ...grpc.CallOption) (*TypesReply, error)
  1473. // 获取单个稿件信息
  1474. Arc(ctx context.Context, in *ArcRequest, opts ...grpc.CallOption) (*ArcReply, error)
  1475. // 批量获取稿件信息
  1476. Arcs(ctx context.Context, in *ArcsRequest, opts ...grpc.CallOption) (*ArcsReply, error)
  1477. // 获取单个稿件计数信息
  1478. Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatReply, error)
  1479. // 批量获取稿件计数信息
  1480. Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsReply, error)
  1481. // 获取单个稿件+分P信息
  1482. View(ctx context.Context, in *ViewRequest, opts ...grpc.CallOption) (*ViewReply, error)
  1483. // 批量获取稿件+分P信息
  1484. Views(ctx context.Context, in *ViewsRequest, opts ...grpc.CallOption) (*ViewsReply, error)
  1485. // 获取稿件在各平台的点击数
  1486. Click(ctx context.Context, in *ClickRequest, opts ...grpc.CallOption) (*ClickReply, error)
  1487. // 获取稿件的所有分P信息
  1488. Page(ctx context.Context, in *PageRequest, opts ...grpc.CallOption) (*PageReply, error)
  1489. // 获取Up主绑定的相关推荐 *几乎废弃
  1490. Recommend(ctx context.Context, in *RecommendRequest, opts ...grpc.CallOption) (*RecommendReply, error)
  1491. // 获取aid&cid对应的视频信息
  1492. Video(ctx context.Context, in *VideoRequest, opts ...grpc.CallOption) (*VideoReply, error)
  1493. // 获取当前最大的aid,各子业务防刷、防脏数据时使用
  1494. MaxAid(ctx context.Context, in *NoArgRequest, opts ...grpc.CallOption) (*MaxAidReply, error)
  1495. // 获取稿件的长简介信息
  1496. Description(ctx context.Context, in *DescriptionRequest, opts ...grpc.CallOption) (*DescriptionReply, error)
  1497. // 内部方法,管理稿件服务缓存,请勿使用-----------------------------------------------------------------------
  1498. ArcFieldCache(ctx context.Context, in *ArcFieldCacheRequest, opts ...grpc.CallOption) (*NoReply, error)
  1499. ArcCache(ctx context.Context, in *ArcCacheRequest, opts ...grpc.CallOption) (*NoReply, error)
  1500. UpVideoCache(ctx context.Context, in *UpVideoCacheRequest, opts ...grpc.CallOption) (*NoReply, error)
  1501. DelVideoCache(ctx context.Context, in *DelVideoCacheRequest, opts ...grpc.CallOption) (*NoReply, error)
  1502. SetStat(ctx context.Context, in *SetStatRequest, opts ...grpc.CallOption) (*NoReply, error)
  1503. }
  1504. type archiveClient struct {
  1505. cc *grpc.ClientConn
  1506. }
  1507. func NewArchiveClient(cc *grpc.ClientConn) ArchiveClient {
  1508. return &archiveClient{cc}
  1509. }
  1510. func (c *archiveClient) Types(ctx context.Context, in *NoArgRequest, opts ...grpc.CallOption) (*TypesReply, error) {
  1511. out := new(TypesReply)
  1512. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/Types", in, out, c.cc, opts...)
  1513. if err != nil {
  1514. return nil, err
  1515. }
  1516. return out, nil
  1517. }
  1518. func (c *archiveClient) Arc(ctx context.Context, in *ArcRequest, opts ...grpc.CallOption) (*ArcReply, error) {
  1519. out := new(ArcReply)
  1520. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/Arc", in, out, c.cc, opts...)
  1521. if err != nil {
  1522. return nil, err
  1523. }
  1524. return out, nil
  1525. }
  1526. func (c *archiveClient) Arcs(ctx context.Context, in *ArcsRequest, opts ...grpc.CallOption) (*ArcsReply, error) {
  1527. out := new(ArcsReply)
  1528. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/Arcs", in, out, c.cc, opts...)
  1529. if err != nil {
  1530. return nil, err
  1531. }
  1532. return out, nil
  1533. }
  1534. func (c *archiveClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatReply, error) {
  1535. out := new(StatReply)
  1536. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/Stat", in, out, c.cc, opts...)
  1537. if err != nil {
  1538. return nil, err
  1539. }
  1540. return out, nil
  1541. }
  1542. func (c *archiveClient) Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsReply, error) {
  1543. out := new(StatsReply)
  1544. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/Stats", in, out, c.cc, opts...)
  1545. if err != nil {
  1546. return nil, err
  1547. }
  1548. return out, nil
  1549. }
  1550. func (c *archiveClient) View(ctx context.Context, in *ViewRequest, opts ...grpc.CallOption) (*ViewReply, error) {
  1551. out := new(ViewReply)
  1552. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/View", in, out, c.cc, opts...)
  1553. if err != nil {
  1554. return nil, err
  1555. }
  1556. return out, nil
  1557. }
  1558. func (c *archiveClient) Views(ctx context.Context, in *ViewsRequest, opts ...grpc.CallOption) (*ViewsReply, error) {
  1559. out := new(ViewsReply)
  1560. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/Views", in, out, c.cc, opts...)
  1561. if err != nil {
  1562. return nil, err
  1563. }
  1564. return out, nil
  1565. }
  1566. func (c *archiveClient) Click(ctx context.Context, in *ClickRequest, opts ...grpc.CallOption) (*ClickReply, error) {
  1567. out := new(ClickReply)
  1568. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/Click", in, out, c.cc, opts...)
  1569. if err != nil {
  1570. return nil, err
  1571. }
  1572. return out, nil
  1573. }
  1574. func (c *archiveClient) Page(ctx context.Context, in *PageRequest, opts ...grpc.CallOption) (*PageReply, error) {
  1575. out := new(PageReply)
  1576. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/Page", in, out, c.cc, opts...)
  1577. if err != nil {
  1578. return nil, err
  1579. }
  1580. return out, nil
  1581. }
  1582. func (c *archiveClient) Recommend(ctx context.Context, in *RecommendRequest, opts ...grpc.CallOption) (*RecommendReply, error) {
  1583. out := new(RecommendReply)
  1584. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/Recommend", in, out, c.cc, opts...)
  1585. if err != nil {
  1586. return nil, err
  1587. }
  1588. return out, nil
  1589. }
  1590. func (c *archiveClient) Video(ctx context.Context, in *VideoRequest, opts ...grpc.CallOption) (*VideoReply, error) {
  1591. out := new(VideoReply)
  1592. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/Video", in, out, c.cc, opts...)
  1593. if err != nil {
  1594. return nil, err
  1595. }
  1596. return out, nil
  1597. }
  1598. func (c *archiveClient) MaxAid(ctx context.Context, in *NoArgRequest, opts ...grpc.CallOption) (*MaxAidReply, error) {
  1599. out := new(MaxAidReply)
  1600. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/MaxAid", in, out, c.cc, opts...)
  1601. if err != nil {
  1602. return nil, err
  1603. }
  1604. return out, nil
  1605. }
  1606. func (c *archiveClient) Description(ctx context.Context, in *DescriptionRequest, opts ...grpc.CallOption) (*DescriptionReply, error) {
  1607. out := new(DescriptionReply)
  1608. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/Description", in, out, c.cc, opts...)
  1609. if err != nil {
  1610. return nil, err
  1611. }
  1612. return out, nil
  1613. }
  1614. func (c *archiveClient) ArcFieldCache(ctx context.Context, in *ArcFieldCacheRequest, opts ...grpc.CallOption) (*NoReply, error) {
  1615. out := new(NoReply)
  1616. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/ArcFieldCache", in, out, c.cc, opts...)
  1617. if err != nil {
  1618. return nil, err
  1619. }
  1620. return out, nil
  1621. }
  1622. func (c *archiveClient) ArcCache(ctx context.Context, in *ArcCacheRequest, opts ...grpc.CallOption) (*NoReply, error) {
  1623. out := new(NoReply)
  1624. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/ArcCache", in, out, c.cc, opts...)
  1625. if err != nil {
  1626. return nil, err
  1627. }
  1628. return out, nil
  1629. }
  1630. func (c *archiveClient) UpVideoCache(ctx context.Context, in *UpVideoCacheRequest, opts ...grpc.CallOption) (*NoReply, error) {
  1631. out := new(NoReply)
  1632. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/UpVideoCache", in, out, c.cc, opts...)
  1633. if err != nil {
  1634. return nil, err
  1635. }
  1636. return out, nil
  1637. }
  1638. func (c *archiveClient) DelVideoCache(ctx context.Context, in *DelVideoCacheRequest, opts ...grpc.CallOption) (*NoReply, error) {
  1639. out := new(NoReply)
  1640. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/DelVideoCache", in, out, c.cc, opts...)
  1641. if err != nil {
  1642. return nil, err
  1643. }
  1644. return out, nil
  1645. }
  1646. func (c *archiveClient) SetStat(ctx context.Context, in *SetStatRequest, opts ...grpc.CallOption) (*NoReply, error) {
  1647. out := new(NoReply)
  1648. err := grpc.Invoke(ctx, "/archive.service.v1.Archive/SetStat", in, out, c.cc, opts...)
  1649. if err != nil {
  1650. return nil, err
  1651. }
  1652. return out, nil
  1653. }
  1654. // Server API for Archive service
  1655. type ArchiveServer interface {
  1656. // Types 获取所有分区列表
  1657. Types(context.Context, *NoArgRequest) (*TypesReply, error)
  1658. // 获取单个稿件信息
  1659. Arc(context.Context, *ArcRequest) (*ArcReply, error)
  1660. // 批量获取稿件信息
  1661. Arcs(context.Context, *ArcsRequest) (*ArcsReply, error)
  1662. // 获取单个稿件计数信息
  1663. Stat(context.Context, *StatRequest) (*StatReply, error)
  1664. // 批量获取稿件计数信息
  1665. Stats(context.Context, *StatsRequest) (*StatsReply, error)
  1666. // 获取单个稿件+分P信息
  1667. View(context.Context, *ViewRequest) (*ViewReply, error)
  1668. // 批量获取稿件+分P信息
  1669. Views(context.Context, *ViewsRequest) (*ViewsReply, error)
  1670. // 获取稿件在各平台的点击数
  1671. Click(context.Context, *ClickRequest) (*ClickReply, error)
  1672. // 获取稿件的所有分P信息
  1673. Page(context.Context, *PageRequest) (*PageReply, error)
  1674. // 获取Up主绑定的相关推荐 *几乎废弃
  1675. Recommend(context.Context, *RecommendRequest) (*RecommendReply, error)
  1676. // 获取aid&cid对应的视频信息
  1677. Video(context.Context, *VideoRequest) (*VideoReply, error)
  1678. // 获取当前最大的aid,各子业务防刷、防脏数据时使用
  1679. MaxAid(context.Context, *NoArgRequest) (*MaxAidReply, error)
  1680. // 获取稿件的长简介信息
  1681. Description(context.Context, *DescriptionRequest) (*DescriptionReply, error)
  1682. // 内部方法,管理稿件服务缓存,请勿使用-----------------------------------------------------------------------
  1683. ArcFieldCache(context.Context, *ArcFieldCacheRequest) (*NoReply, error)
  1684. ArcCache(context.Context, *ArcCacheRequest) (*NoReply, error)
  1685. UpVideoCache(context.Context, *UpVideoCacheRequest) (*NoReply, error)
  1686. DelVideoCache(context.Context, *DelVideoCacheRequest) (*NoReply, error)
  1687. SetStat(context.Context, *SetStatRequest) (*NoReply, error)
  1688. }
  1689. func RegisterArchiveServer(s *grpc.Server, srv ArchiveServer) {
  1690. s.RegisterService(&_Archive_serviceDesc, srv)
  1691. }
  1692. func _Archive_Types_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1693. in := new(NoArgRequest)
  1694. if err := dec(in); err != nil {
  1695. return nil, err
  1696. }
  1697. if interceptor == nil {
  1698. return srv.(ArchiveServer).Types(ctx, in)
  1699. }
  1700. info := &grpc.UnaryServerInfo{
  1701. Server: srv,
  1702. FullMethod: "/archive.service.v1.Archive/Types",
  1703. }
  1704. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1705. return srv.(ArchiveServer).Types(ctx, req.(*NoArgRequest))
  1706. }
  1707. return interceptor(ctx, in, info, handler)
  1708. }
  1709. func _Archive_Arc_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1710. in := new(ArcRequest)
  1711. if err := dec(in); err != nil {
  1712. return nil, err
  1713. }
  1714. if interceptor == nil {
  1715. return srv.(ArchiveServer).Arc(ctx, in)
  1716. }
  1717. info := &grpc.UnaryServerInfo{
  1718. Server: srv,
  1719. FullMethod: "/archive.service.v1.Archive/Arc",
  1720. }
  1721. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1722. return srv.(ArchiveServer).Arc(ctx, req.(*ArcRequest))
  1723. }
  1724. return interceptor(ctx, in, info, handler)
  1725. }
  1726. func _Archive_Arcs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1727. in := new(ArcsRequest)
  1728. if err := dec(in); err != nil {
  1729. return nil, err
  1730. }
  1731. if interceptor == nil {
  1732. return srv.(ArchiveServer).Arcs(ctx, in)
  1733. }
  1734. info := &grpc.UnaryServerInfo{
  1735. Server: srv,
  1736. FullMethod: "/archive.service.v1.Archive/Arcs",
  1737. }
  1738. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1739. return srv.(ArchiveServer).Arcs(ctx, req.(*ArcsRequest))
  1740. }
  1741. return interceptor(ctx, in, info, handler)
  1742. }
  1743. func _Archive_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1744. in := new(StatRequest)
  1745. if err := dec(in); err != nil {
  1746. return nil, err
  1747. }
  1748. if interceptor == nil {
  1749. return srv.(ArchiveServer).Stat(ctx, in)
  1750. }
  1751. info := &grpc.UnaryServerInfo{
  1752. Server: srv,
  1753. FullMethod: "/archive.service.v1.Archive/Stat",
  1754. }
  1755. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1756. return srv.(ArchiveServer).Stat(ctx, req.(*StatRequest))
  1757. }
  1758. return interceptor(ctx, in, info, handler)
  1759. }
  1760. func _Archive_Stats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1761. in := new(StatsRequest)
  1762. if err := dec(in); err != nil {
  1763. return nil, err
  1764. }
  1765. if interceptor == nil {
  1766. return srv.(ArchiveServer).Stats(ctx, in)
  1767. }
  1768. info := &grpc.UnaryServerInfo{
  1769. Server: srv,
  1770. FullMethod: "/archive.service.v1.Archive/Stats",
  1771. }
  1772. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1773. return srv.(ArchiveServer).Stats(ctx, req.(*StatsRequest))
  1774. }
  1775. return interceptor(ctx, in, info, handler)
  1776. }
  1777. func _Archive_View_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1778. in := new(ViewRequest)
  1779. if err := dec(in); err != nil {
  1780. return nil, err
  1781. }
  1782. if interceptor == nil {
  1783. return srv.(ArchiveServer).View(ctx, in)
  1784. }
  1785. info := &grpc.UnaryServerInfo{
  1786. Server: srv,
  1787. FullMethod: "/archive.service.v1.Archive/View",
  1788. }
  1789. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1790. return srv.(ArchiveServer).View(ctx, req.(*ViewRequest))
  1791. }
  1792. return interceptor(ctx, in, info, handler)
  1793. }
  1794. func _Archive_Views_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1795. in := new(ViewsRequest)
  1796. if err := dec(in); err != nil {
  1797. return nil, err
  1798. }
  1799. if interceptor == nil {
  1800. return srv.(ArchiveServer).Views(ctx, in)
  1801. }
  1802. info := &grpc.UnaryServerInfo{
  1803. Server: srv,
  1804. FullMethod: "/archive.service.v1.Archive/Views",
  1805. }
  1806. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1807. return srv.(ArchiveServer).Views(ctx, req.(*ViewsRequest))
  1808. }
  1809. return interceptor(ctx, in, info, handler)
  1810. }
  1811. func _Archive_Click_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1812. in := new(ClickRequest)
  1813. if err := dec(in); err != nil {
  1814. return nil, err
  1815. }
  1816. if interceptor == nil {
  1817. return srv.(ArchiveServer).Click(ctx, in)
  1818. }
  1819. info := &grpc.UnaryServerInfo{
  1820. Server: srv,
  1821. FullMethod: "/archive.service.v1.Archive/Click",
  1822. }
  1823. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1824. return srv.(ArchiveServer).Click(ctx, req.(*ClickRequest))
  1825. }
  1826. return interceptor(ctx, in, info, handler)
  1827. }
  1828. func _Archive_Page_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1829. in := new(PageRequest)
  1830. if err := dec(in); err != nil {
  1831. return nil, err
  1832. }
  1833. if interceptor == nil {
  1834. return srv.(ArchiveServer).Page(ctx, in)
  1835. }
  1836. info := &grpc.UnaryServerInfo{
  1837. Server: srv,
  1838. FullMethod: "/archive.service.v1.Archive/Page",
  1839. }
  1840. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1841. return srv.(ArchiveServer).Page(ctx, req.(*PageRequest))
  1842. }
  1843. return interceptor(ctx, in, info, handler)
  1844. }
  1845. func _Archive_Recommend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1846. in := new(RecommendRequest)
  1847. if err := dec(in); err != nil {
  1848. return nil, err
  1849. }
  1850. if interceptor == nil {
  1851. return srv.(ArchiveServer).Recommend(ctx, in)
  1852. }
  1853. info := &grpc.UnaryServerInfo{
  1854. Server: srv,
  1855. FullMethod: "/archive.service.v1.Archive/Recommend",
  1856. }
  1857. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1858. return srv.(ArchiveServer).Recommend(ctx, req.(*RecommendRequest))
  1859. }
  1860. return interceptor(ctx, in, info, handler)
  1861. }
  1862. func _Archive_Video_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1863. in := new(VideoRequest)
  1864. if err := dec(in); err != nil {
  1865. return nil, err
  1866. }
  1867. if interceptor == nil {
  1868. return srv.(ArchiveServer).Video(ctx, in)
  1869. }
  1870. info := &grpc.UnaryServerInfo{
  1871. Server: srv,
  1872. FullMethod: "/archive.service.v1.Archive/Video",
  1873. }
  1874. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1875. return srv.(ArchiveServer).Video(ctx, req.(*VideoRequest))
  1876. }
  1877. return interceptor(ctx, in, info, handler)
  1878. }
  1879. func _Archive_MaxAid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1880. in := new(NoArgRequest)
  1881. if err := dec(in); err != nil {
  1882. return nil, err
  1883. }
  1884. if interceptor == nil {
  1885. return srv.(ArchiveServer).MaxAid(ctx, in)
  1886. }
  1887. info := &grpc.UnaryServerInfo{
  1888. Server: srv,
  1889. FullMethod: "/archive.service.v1.Archive/MaxAid",
  1890. }
  1891. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1892. return srv.(ArchiveServer).MaxAid(ctx, req.(*NoArgRequest))
  1893. }
  1894. return interceptor(ctx, in, info, handler)
  1895. }
  1896. func _Archive_Description_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1897. in := new(DescriptionRequest)
  1898. if err := dec(in); err != nil {
  1899. return nil, err
  1900. }
  1901. if interceptor == nil {
  1902. return srv.(ArchiveServer).Description(ctx, in)
  1903. }
  1904. info := &grpc.UnaryServerInfo{
  1905. Server: srv,
  1906. FullMethod: "/archive.service.v1.Archive/Description",
  1907. }
  1908. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1909. return srv.(ArchiveServer).Description(ctx, req.(*DescriptionRequest))
  1910. }
  1911. return interceptor(ctx, in, info, handler)
  1912. }
  1913. func _Archive_ArcFieldCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1914. in := new(ArcFieldCacheRequest)
  1915. if err := dec(in); err != nil {
  1916. return nil, err
  1917. }
  1918. if interceptor == nil {
  1919. return srv.(ArchiveServer).ArcFieldCache(ctx, in)
  1920. }
  1921. info := &grpc.UnaryServerInfo{
  1922. Server: srv,
  1923. FullMethod: "/archive.service.v1.Archive/ArcFieldCache",
  1924. }
  1925. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1926. return srv.(ArchiveServer).ArcFieldCache(ctx, req.(*ArcFieldCacheRequest))
  1927. }
  1928. return interceptor(ctx, in, info, handler)
  1929. }
  1930. func _Archive_ArcCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1931. in := new(ArcCacheRequest)
  1932. if err := dec(in); err != nil {
  1933. return nil, err
  1934. }
  1935. if interceptor == nil {
  1936. return srv.(ArchiveServer).ArcCache(ctx, in)
  1937. }
  1938. info := &grpc.UnaryServerInfo{
  1939. Server: srv,
  1940. FullMethod: "/archive.service.v1.Archive/ArcCache",
  1941. }
  1942. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1943. return srv.(ArchiveServer).ArcCache(ctx, req.(*ArcCacheRequest))
  1944. }
  1945. return interceptor(ctx, in, info, handler)
  1946. }
  1947. func _Archive_UpVideoCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1948. in := new(UpVideoCacheRequest)
  1949. if err := dec(in); err != nil {
  1950. return nil, err
  1951. }
  1952. if interceptor == nil {
  1953. return srv.(ArchiveServer).UpVideoCache(ctx, in)
  1954. }
  1955. info := &grpc.UnaryServerInfo{
  1956. Server: srv,
  1957. FullMethod: "/archive.service.v1.Archive/UpVideoCache",
  1958. }
  1959. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1960. return srv.(ArchiveServer).UpVideoCache(ctx, req.(*UpVideoCacheRequest))
  1961. }
  1962. return interceptor(ctx, in, info, handler)
  1963. }
  1964. func _Archive_DelVideoCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1965. in := new(DelVideoCacheRequest)
  1966. if err := dec(in); err != nil {
  1967. return nil, err
  1968. }
  1969. if interceptor == nil {
  1970. return srv.(ArchiveServer).DelVideoCache(ctx, in)
  1971. }
  1972. info := &grpc.UnaryServerInfo{
  1973. Server: srv,
  1974. FullMethod: "/archive.service.v1.Archive/DelVideoCache",
  1975. }
  1976. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1977. return srv.(ArchiveServer).DelVideoCache(ctx, req.(*DelVideoCacheRequest))
  1978. }
  1979. return interceptor(ctx, in, info, handler)
  1980. }
  1981. func _Archive_SetStat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1982. in := new(SetStatRequest)
  1983. if err := dec(in); err != nil {
  1984. return nil, err
  1985. }
  1986. if interceptor == nil {
  1987. return srv.(ArchiveServer).SetStat(ctx, in)
  1988. }
  1989. info := &grpc.UnaryServerInfo{
  1990. Server: srv,
  1991. FullMethod: "/archive.service.v1.Archive/SetStat",
  1992. }
  1993. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1994. return srv.(ArchiveServer).SetStat(ctx, req.(*SetStatRequest))
  1995. }
  1996. return interceptor(ctx, in, info, handler)
  1997. }
  1998. var _Archive_serviceDesc = grpc.ServiceDesc{
  1999. ServiceName: "archive.service.v1.Archive",
  2000. HandlerType: (*ArchiveServer)(nil),
  2001. Methods: []grpc.MethodDesc{
  2002. {
  2003. MethodName: "Types",
  2004. Handler: _Archive_Types_Handler,
  2005. },
  2006. {
  2007. MethodName: "Arc",
  2008. Handler: _Archive_Arc_Handler,
  2009. },
  2010. {
  2011. MethodName: "Arcs",
  2012. Handler: _Archive_Arcs_Handler,
  2013. },
  2014. {
  2015. MethodName: "Stat",
  2016. Handler: _Archive_Stat_Handler,
  2017. },
  2018. {
  2019. MethodName: "Stats",
  2020. Handler: _Archive_Stats_Handler,
  2021. },
  2022. {
  2023. MethodName: "View",
  2024. Handler: _Archive_View_Handler,
  2025. },
  2026. {
  2027. MethodName: "Views",
  2028. Handler: _Archive_Views_Handler,
  2029. },
  2030. {
  2031. MethodName: "Click",
  2032. Handler: _Archive_Click_Handler,
  2033. },
  2034. {
  2035. MethodName: "Page",
  2036. Handler: _Archive_Page_Handler,
  2037. },
  2038. {
  2039. MethodName: "Recommend",
  2040. Handler: _Archive_Recommend_Handler,
  2041. },
  2042. {
  2043. MethodName: "Video",
  2044. Handler: _Archive_Video_Handler,
  2045. },
  2046. {
  2047. MethodName: "MaxAid",
  2048. Handler: _Archive_MaxAid_Handler,
  2049. },
  2050. {
  2051. MethodName: "Description",
  2052. Handler: _Archive_Description_Handler,
  2053. },
  2054. {
  2055. MethodName: "ArcFieldCache",
  2056. Handler: _Archive_ArcFieldCache_Handler,
  2057. },
  2058. {
  2059. MethodName: "ArcCache",
  2060. Handler: _Archive_ArcCache_Handler,
  2061. },
  2062. {
  2063. MethodName: "UpVideoCache",
  2064. Handler: _Archive_UpVideoCache_Handler,
  2065. },
  2066. {
  2067. MethodName: "DelVideoCache",
  2068. Handler: _Archive_DelVideoCache_Handler,
  2069. },
  2070. {
  2071. MethodName: "SetStat",
  2072. Handler: _Archive_SetStat_Handler,
  2073. },
  2074. },
  2075. Streams: []grpc.StreamDesc{},
  2076. Metadata: "app/service/main/archive/api/api.proto",
  2077. }
  2078. func (m *NoArgRequest) Marshal() (dAtA []byte, err error) {
  2079. size := m.Size()
  2080. dAtA = make([]byte, size)
  2081. n, err := m.MarshalTo(dAtA)
  2082. if err != nil {
  2083. return nil, err
  2084. }
  2085. return dAtA[:n], nil
  2086. }
  2087. func (m *NoArgRequest) MarshalTo(dAtA []byte) (int, error) {
  2088. var i int
  2089. _ = i
  2090. var l int
  2091. _ = l
  2092. return i, nil
  2093. }
  2094. func (m *NoReply) Marshal() (dAtA []byte, err error) {
  2095. size := m.Size()
  2096. dAtA = make([]byte, size)
  2097. n, err := m.MarshalTo(dAtA)
  2098. if err != nil {
  2099. return nil, err
  2100. }
  2101. return dAtA[:n], nil
  2102. }
  2103. func (m *NoReply) MarshalTo(dAtA []byte) (int, error) {
  2104. var i int
  2105. _ = i
  2106. var l int
  2107. _ = l
  2108. return i, nil
  2109. }
  2110. func (m *DescriptionRequest) Marshal() (dAtA []byte, err error) {
  2111. size := m.Size()
  2112. dAtA = make([]byte, size)
  2113. n, err := m.MarshalTo(dAtA)
  2114. if err != nil {
  2115. return nil, err
  2116. }
  2117. return dAtA[:n], nil
  2118. }
  2119. func (m *DescriptionRequest) MarshalTo(dAtA []byte) (int, error) {
  2120. var i int
  2121. _ = i
  2122. var l int
  2123. _ = l
  2124. if m.Aid != 0 {
  2125. dAtA[i] = 0x8
  2126. i++
  2127. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  2128. }
  2129. return i, nil
  2130. }
  2131. func (m *DescriptionReply) Marshal() (dAtA []byte, err error) {
  2132. size := m.Size()
  2133. dAtA = make([]byte, size)
  2134. n, err := m.MarshalTo(dAtA)
  2135. if err != nil {
  2136. return nil, err
  2137. }
  2138. return dAtA[:n], nil
  2139. }
  2140. func (m *DescriptionReply) MarshalTo(dAtA []byte) (int, error) {
  2141. var i int
  2142. _ = i
  2143. var l int
  2144. _ = l
  2145. if len(m.Desc) > 0 {
  2146. dAtA[i] = 0xa
  2147. i++
  2148. i = encodeVarintApi(dAtA, i, uint64(len(m.Desc)))
  2149. i += copy(dAtA[i:], m.Desc)
  2150. }
  2151. return i, nil
  2152. }
  2153. func (m *MaxAidReply) Marshal() (dAtA []byte, err error) {
  2154. size := m.Size()
  2155. dAtA = make([]byte, size)
  2156. n, err := m.MarshalTo(dAtA)
  2157. if err != nil {
  2158. return nil, err
  2159. }
  2160. return dAtA[:n], nil
  2161. }
  2162. func (m *MaxAidReply) MarshalTo(dAtA []byte) (int, error) {
  2163. var i int
  2164. _ = i
  2165. var l int
  2166. _ = l
  2167. if m.Aid != 0 {
  2168. dAtA[i] = 0x8
  2169. i++
  2170. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  2171. }
  2172. return i, nil
  2173. }
  2174. func (m *ArcRequest) Marshal() (dAtA []byte, err error) {
  2175. size := m.Size()
  2176. dAtA = make([]byte, size)
  2177. n, err := m.MarshalTo(dAtA)
  2178. if err != nil {
  2179. return nil, err
  2180. }
  2181. return dAtA[:n], nil
  2182. }
  2183. func (m *ArcRequest) MarshalTo(dAtA []byte) (int, error) {
  2184. var i int
  2185. _ = i
  2186. var l int
  2187. _ = l
  2188. if m.Aid != 0 {
  2189. dAtA[i] = 0x8
  2190. i++
  2191. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  2192. }
  2193. return i, nil
  2194. }
  2195. func (m *ArcReply) Marshal() (dAtA []byte, err error) {
  2196. size := m.Size()
  2197. dAtA = make([]byte, size)
  2198. n, err := m.MarshalTo(dAtA)
  2199. if err != nil {
  2200. return nil, err
  2201. }
  2202. return dAtA[:n], nil
  2203. }
  2204. func (m *ArcReply) MarshalTo(dAtA []byte) (int, error) {
  2205. var i int
  2206. _ = i
  2207. var l int
  2208. _ = l
  2209. if m.Arc != nil {
  2210. dAtA[i] = 0xa
  2211. i++
  2212. i = encodeVarintApi(dAtA, i, uint64(m.Arc.Size()))
  2213. n1, err := m.Arc.MarshalTo(dAtA[i:])
  2214. if err != nil {
  2215. return 0, err
  2216. }
  2217. i += n1
  2218. }
  2219. return i, nil
  2220. }
  2221. func (m *ArcsRequest) Marshal() (dAtA []byte, err error) {
  2222. size := m.Size()
  2223. dAtA = make([]byte, size)
  2224. n, err := m.MarshalTo(dAtA)
  2225. if err != nil {
  2226. return nil, err
  2227. }
  2228. return dAtA[:n], nil
  2229. }
  2230. func (m *ArcsRequest) MarshalTo(dAtA []byte) (int, error) {
  2231. var i int
  2232. _ = i
  2233. var l int
  2234. _ = l
  2235. if len(m.Aids) > 0 {
  2236. dAtA3 := make([]byte, len(m.Aids)*10)
  2237. var j2 int
  2238. for _, num1 := range m.Aids {
  2239. num := uint64(num1)
  2240. for num >= 1<<7 {
  2241. dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80)
  2242. num >>= 7
  2243. j2++
  2244. }
  2245. dAtA3[j2] = uint8(num)
  2246. j2++
  2247. }
  2248. dAtA[i] = 0xa
  2249. i++
  2250. i = encodeVarintApi(dAtA, i, uint64(j2))
  2251. i += copy(dAtA[i:], dAtA3[:j2])
  2252. }
  2253. return i, nil
  2254. }
  2255. func (m *ArcsReply) Marshal() (dAtA []byte, err error) {
  2256. size := m.Size()
  2257. dAtA = make([]byte, size)
  2258. n, err := m.MarshalTo(dAtA)
  2259. if err != nil {
  2260. return nil, err
  2261. }
  2262. return dAtA[:n], nil
  2263. }
  2264. func (m *ArcsReply) MarshalTo(dAtA []byte) (int, error) {
  2265. var i int
  2266. _ = i
  2267. var l int
  2268. _ = l
  2269. if len(m.Arcs) > 0 {
  2270. for k, _ := range m.Arcs {
  2271. dAtA[i] = 0xa
  2272. i++
  2273. v := m.Arcs[k]
  2274. msgSize := 0
  2275. if v != nil {
  2276. msgSize = v.Size()
  2277. msgSize += 1 + sovApi(uint64(msgSize))
  2278. }
  2279. mapSize := 1 + sovApi(uint64(k)) + msgSize
  2280. i = encodeVarintApi(dAtA, i, uint64(mapSize))
  2281. dAtA[i] = 0x8
  2282. i++
  2283. i = encodeVarintApi(dAtA, i, uint64(k))
  2284. if v != nil {
  2285. dAtA[i] = 0x12
  2286. i++
  2287. i = encodeVarintApi(dAtA, i, uint64(v.Size()))
  2288. n4, err := v.MarshalTo(dAtA[i:])
  2289. if err != nil {
  2290. return 0, err
  2291. }
  2292. i += n4
  2293. }
  2294. }
  2295. }
  2296. return i, nil
  2297. }
  2298. func (m *ViewRequest) Marshal() (dAtA []byte, err error) {
  2299. size := m.Size()
  2300. dAtA = make([]byte, size)
  2301. n, err := m.MarshalTo(dAtA)
  2302. if err != nil {
  2303. return nil, err
  2304. }
  2305. return dAtA[:n], nil
  2306. }
  2307. func (m *ViewRequest) MarshalTo(dAtA []byte) (int, error) {
  2308. var i int
  2309. _ = i
  2310. var l int
  2311. _ = l
  2312. if m.Aid != 0 {
  2313. dAtA[i] = 0x8
  2314. i++
  2315. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  2316. }
  2317. return i, nil
  2318. }
  2319. func (m *StatRequest) Marshal() (dAtA []byte, err error) {
  2320. size := m.Size()
  2321. dAtA = make([]byte, size)
  2322. n, err := m.MarshalTo(dAtA)
  2323. if err != nil {
  2324. return nil, err
  2325. }
  2326. return dAtA[:n], nil
  2327. }
  2328. func (m *StatRequest) MarshalTo(dAtA []byte) (int, error) {
  2329. var i int
  2330. _ = i
  2331. var l int
  2332. _ = l
  2333. if m.Aid != 0 {
  2334. dAtA[i] = 0x8
  2335. i++
  2336. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  2337. }
  2338. return i, nil
  2339. }
  2340. func (m *StatReply) Marshal() (dAtA []byte, err error) {
  2341. size := m.Size()
  2342. dAtA = make([]byte, size)
  2343. n, err := m.MarshalTo(dAtA)
  2344. if err != nil {
  2345. return nil, err
  2346. }
  2347. return dAtA[:n], nil
  2348. }
  2349. func (m *StatReply) MarshalTo(dAtA []byte) (int, error) {
  2350. var i int
  2351. _ = i
  2352. var l int
  2353. _ = l
  2354. if m.Stat != nil {
  2355. dAtA[i] = 0xa
  2356. i++
  2357. i = encodeVarintApi(dAtA, i, uint64(m.Stat.Size()))
  2358. n5, err := m.Stat.MarshalTo(dAtA[i:])
  2359. if err != nil {
  2360. return 0, err
  2361. }
  2362. i += n5
  2363. }
  2364. return i, nil
  2365. }
  2366. func (m *StatsRequest) Marshal() (dAtA []byte, err error) {
  2367. size := m.Size()
  2368. dAtA = make([]byte, size)
  2369. n, err := m.MarshalTo(dAtA)
  2370. if err != nil {
  2371. return nil, err
  2372. }
  2373. return dAtA[:n], nil
  2374. }
  2375. func (m *StatsRequest) MarshalTo(dAtA []byte) (int, error) {
  2376. var i int
  2377. _ = i
  2378. var l int
  2379. _ = l
  2380. if len(m.Aids) > 0 {
  2381. dAtA7 := make([]byte, len(m.Aids)*10)
  2382. var j6 int
  2383. for _, num1 := range m.Aids {
  2384. num := uint64(num1)
  2385. for num >= 1<<7 {
  2386. dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80)
  2387. num >>= 7
  2388. j6++
  2389. }
  2390. dAtA7[j6] = uint8(num)
  2391. j6++
  2392. }
  2393. dAtA[i] = 0xa
  2394. i++
  2395. i = encodeVarintApi(dAtA, i, uint64(j6))
  2396. i += copy(dAtA[i:], dAtA7[:j6])
  2397. }
  2398. return i, nil
  2399. }
  2400. func (m *StatsReply) Marshal() (dAtA []byte, err error) {
  2401. size := m.Size()
  2402. dAtA = make([]byte, size)
  2403. n, err := m.MarshalTo(dAtA)
  2404. if err != nil {
  2405. return nil, err
  2406. }
  2407. return dAtA[:n], nil
  2408. }
  2409. func (m *StatsReply) MarshalTo(dAtA []byte) (int, error) {
  2410. var i int
  2411. _ = i
  2412. var l int
  2413. _ = l
  2414. if len(m.Stats) > 0 {
  2415. for k, _ := range m.Stats {
  2416. dAtA[i] = 0xa
  2417. i++
  2418. v := m.Stats[k]
  2419. msgSize := 0
  2420. if v != nil {
  2421. msgSize = v.Size()
  2422. msgSize += 1 + sovApi(uint64(msgSize))
  2423. }
  2424. mapSize := 1 + sovApi(uint64(k)) + msgSize
  2425. i = encodeVarintApi(dAtA, i, uint64(mapSize))
  2426. dAtA[i] = 0x8
  2427. i++
  2428. i = encodeVarintApi(dAtA, i, uint64(k))
  2429. if v != nil {
  2430. dAtA[i] = 0x12
  2431. i++
  2432. i = encodeVarintApi(dAtA, i, uint64(v.Size()))
  2433. n8, err := v.MarshalTo(dAtA[i:])
  2434. if err != nil {
  2435. return 0, err
  2436. }
  2437. i += n8
  2438. }
  2439. }
  2440. }
  2441. return i, nil
  2442. }
  2443. func (m *ViewReply) Marshal() (dAtA []byte, err error) {
  2444. size := m.Size()
  2445. dAtA = make([]byte, size)
  2446. n, err := m.MarshalTo(dAtA)
  2447. if err != nil {
  2448. return nil, err
  2449. }
  2450. return dAtA[:n], nil
  2451. }
  2452. func (m *ViewReply) MarshalTo(dAtA []byte) (int, error) {
  2453. var i int
  2454. _ = i
  2455. var l int
  2456. _ = l
  2457. if m.Arc != nil {
  2458. dAtA[i] = 0xa
  2459. i++
  2460. i = encodeVarintApi(dAtA, i, uint64(m.Arc.Size()))
  2461. n9, err := m.Arc.MarshalTo(dAtA[i:])
  2462. if err != nil {
  2463. return 0, err
  2464. }
  2465. i += n9
  2466. }
  2467. if len(m.Pages) > 0 {
  2468. for _, msg := range m.Pages {
  2469. dAtA[i] = 0x12
  2470. i++
  2471. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  2472. n, err := msg.MarshalTo(dAtA[i:])
  2473. if err != nil {
  2474. return 0, err
  2475. }
  2476. i += n
  2477. }
  2478. }
  2479. return i, nil
  2480. }
  2481. func (m *ViewsRequest) Marshal() (dAtA []byte, err error) {
  2482. size := m.Size()
  2483. dAtA = make([]byte, size)
  2484. n, err := m.MarshalTo(dAtA)
  2485. if err != nil {
  2486. return nil, err
  2487. }
  2488. return dAtA[:n], nil
  2489. }
  2490. func (m *ViewsRequest) MarshalTo(dAtA []byte) (int, error) {
  2491. var i int
  2492. _ = i
  2493. var l int
  2494. _ = l
  2495. if len(m.Aids) > 0 {
  2496. dAtA11 := make([]byte, len(m.Aids)*10)
  2497. var j10 int
  2498. for _, num1 := range m.Aids {
  2499. num := uint64(num1)
  2500. for num >= 1<<7 {
  2501. dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80)
  2502. num >>= 7
  2503. j10++
  2504. }
  2505. dAtA11[j10] = uint8(num)
  2506. j10++
  2507. }
  2508. dAtA[i] = 0xa
  2509. i++
  2510. i = encodeVarintApi(dAtA, i, uint64(j10))
  2511. i += copy(dAtA[i:], dAtA11[:j10])
  2512. }
  2513. return i, nil
  2514. }
  2515. func (m *ViewsReply) Marshal() (dAtA []byte, err error) {
  2516. size := m.Size()
  2517. dAtA = make([]byte, size)
  2518. n, err := m.MarshalTo(dAtA)
  2519. if err != nil {
  2520. return nil, err
  2521. }
  2522. return dAtA[:n], nil
  2523. }
  2524. func (m *ViewsReply) MarshalTo(dAtA []byte) (int, error) {
  2525. var i int
  2526. _ = i
  2527. var l int
  2528. _ = l
  2529. if len(m.Views) > 0 {
  2530. for k, _ := range m.Views {
  2531. dAtA[i] = 0xa
  2532. i++
  2533. v := m.Views[k]
  2534. msgSize := 0
  2535. if v != nil {
  2536. msgSize = v.Size()
  2537. msgSize += 1 + sovApi(uint64(msgSize))
  2538. }
  2539. mapSize := 1 + sovApi(uint64(k)) + msgSize
  2540. i = encodeVarintApi(dAtA, i, uint64(mapSize))
  2541. dAtA[i] = 0x8
  2542. i++
  2543. i = encodeVarintApi(dAtA, i, uint64(k))
  2544. if v != nil {
  2545. dAtA[i] = 0x12
  2546. i++
  2547. i = encodeVarintApi(dAtA, i, uint64(v.Size()))
  2548. n12, err := v.MarshalTo(dAtA[i:])
  2549. if err != nil {
  2550. return 0, err
  2551. }
  2552. i += n12
  2553. }
  2554. }
  2555. }
  2556. return i, nil
  2557. }
  2558. func (m *TypesReply) Marshal() (dAtA []byte, err error) {
  2559. size := m.Size()
  2560. dAtA = make([]byte, size)
  2561. n, err := m.MarshalTo(dAtA)
  2562. if err != nil {
  2563. return nil, err
  2564. }
  2565. return dAtA[:n], nil
  2566. }
  2567. func (m *TypesReply) MarshalTo(dAtA []byte) (int, error) {
  2568. var i int
  2569. _ = i
  2570. var l int
  2571. _ = l
  2572. if len(m.Types) > 0 {
  2573. for k, _ := range m.Types {
  2574. dAtA[i] = 0xa
  2575. i++
  2576. v := m.Types[k]
  2577. msgSize := 0
  2578. if v != nil {
  2579. msgSize = v.Size()
  2580. msgSize += 1 + sovApi(uint64(msgSize))
  2581. }
  2582. mapSize := 1 + sovApi(uint64(k)) + msgSize
  2583. i = encodeVarintApi(dAtA, i, uint64(mapSize))
  2584. dAtA[i] = 0x8
  2585. i++
  2586. i = encodeVarintApi(dAtA, i, uint64(k))
  2587. if v != nil {
  2588. dAtA[i] = 0x12
  2589. i++
  2590. i = encodeVarintApi(dAtA, i, uint64(v.Size()))
  2591. n13, err := v.MarshalTo(dAtA[i:])
  2592. if err != nil {
  2593. return 0, err
  2594. }
  2595. i += n13
  2596. }
  2597. }
  2598. }
  2599. return i, nil
  2600. }
  2601. func (m *ClickRequest) Marshal() (dAtA []byte, err error) {
  2602. size := m.Size()
  2603. dAtA = make([]byte, size)
  2604. n, err := m.MarshalTo(dAtA)
  2605. if err != nil {
  2606. return nil, err
  2607. }
  2608. return dAtA[:n], nil
  2609. }
  2610. func (m *ClickRequest) MarshalTo(dAtA []byte) (int, error) {
  2611. var i int
  2612. _ = i
  2613. var l int
  2614. _ = l
  2615. if m.Aid != 0 {
  2616. dAtA[i] = 0x8
  2617. i++
  2618. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  2619. }
  2620. return i, nil
  2621. }
  2622. func (m *ClickReply) Marshal() (dAtA []byte, err error) {
  2623. size := m.Size()
  2624. dAtA = make([]byte, size)
  2625. n, err := m.MarshalTo(dAtA)
  2626. if err != nil {
  2627. return nil, err
  2628. }
  2629. return dAtA[:n], nil
  2630. }
  2631. func (m *ClickReply) MarshalTo(dAtA []byte) (int, error) {
  2632. var i int
  2633. _ = i
  2634. var l int
  2635. _ = l
  2636. if m.Click != nil {
  2637. dAtA[i] = 0xa
  2638. i++
  2639. i = encodeVarintApi(dAtA, i, uint64(m.Click.Size()))
  2640. n14, err := m.Click.MarshalTo(dAtA[i:])
  2641. if err != nil {
  2642. return 0, err
  2643. }
  2644. i += n14
  2645. }
  2646. return i, nil
  2647. }
  2648. func (m *PageRequest) Marshal() (dAtA []byte, err error) {
  2649. size := m.Size()
  2650. dAtA = make([]byte, size)
  2651. n, err := m.MarshalTo(dAtA)
  2652. if err != nil {
  2653. return nil, err
  2654. }
  2655. return dAtA[:n], nil
  2656. }
  2657. func (m *PageRequest) MarshalTo(dAtA []byte) (int, error) {
  2658. var i int
  2659. _ = i
  2660. var l int
  2661. _ = l
  2662. if m.Aid != 0 {
  2663. dAtA[i] = 0x8
  2664. i++
  2665. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  2666. }
  2667. return i, nil
  2668. }
  2669. func (m *PageReply) Marshal() (dAtA []byte, err error) {
  2670. size := m.Size()
  2671. dAtA = make([]byte, size)
  2672. n, err := m.MarshalTo(dAtA)
  2673. if err != nil {
  2674. return nil, err
  2675. }
  2676. return dAtA[:n], nil
  2677. }
  2678. func (m *PageReply) MarshalTo(dAtA []byte) (int, error) {
  2679. var i int
  2680. _ = i
  2681. var l int
  2682. _ = l
  2683. if len(m.Pages) > 0 {
  2684. for _, msg := range m.Pages {
  2685. dAtA[i] = 0xa
  2686. i++
  2687. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  2688. n, err := msg.MarshalTo(dAtA[i:])
  2689. if err != nil {
  2690. return 0, err
  2691. }
  2692. i += n
  2693. }
  2694. }
  2695. return i, nil
  2696. }
  2697. func (m *RecommendRequest) Marshal() (dAtA []byte, err error) {
  2698. size := m.Size()
  2699. dAtA = make([]byte, size)
  2700. n, err := m.MarshalTo(dAtA)
  2701. if err != nil {
  2702. return nil, err
  2703. }
  2704. return dAtA[:n], nil
  2705. }
  2706. func (m *RecommendRequest) MarshalTo(dAtA []byte) (int, error) {
  2707. var i int
  2708. _ = i
  2709. var l int
  2710. _ = l
  2711. if m.Aid != 0 {
  2712. dAtA[i] = 0x8
  2713. i++
  2714. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  2715. }
  2716. return i, nil
  2717. }
  2718. func (m *RecommendReply) Marshal() (dAtA []byte, err error) {
  2719. size := m.Size()
  2720. dAtA = make([]byte, size)
  2721. n, err := m.MarshalTo(dAtA)
  2722. if err != nil {
  2723. return nil, err
  2724. }
  2725. return dAtA[:n], nil
  2726. }
  2727. func (m *RecommendReply) MarshalTo(dAtA []byte) (int, error) {
  2728. var i int
  2729. _ = i
  2730. var l int
  2731. _ = l
  2732. if len(m.Arcs) > 0 {
  2733. for _, msg := range m.Arcs {
  2734. dAtA[i] = 0xa
  2735. i++
  2736. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  2737. n, err := msg.MarshalTo(dAtA[i:])
  2738. if err != nil {
  2739. return 0, err
  2740. }
  2741. i += n
  2742. }
  2743. }
  2744. return i, nil
  2745. }
  2746. func (m *VideoRequest) Marshal() (dAtA []byte, err error) {
  2747. size := m.Size()
  2748. dAtA = make([]byte, size)
  2749. n, err := m.MarshalTo(dAtA)
  2750. if err != nil {
  2751. return nil, err
  2752. }
  2753. return dAtA[:n], nil
  2754. }
  2755. func (m *VideoRequest) MarshalTo(dAtA []byte) (int, error) {
  2756. var i int
  2757. _ = i
  2758. var l int
  2759. _ = l
  2760. if m.Aid != 0 {
  2761. dAtA[i] = 0x8
  2762. i++
  2763. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  2764. }
  2765. if m.Cid != 0 {
  2766. dAtA[i] = 0x10
  2767. i++
  2768. i = encodeVarintApi(dAtA, i, uint64(m.Cid))
  2769. }
  2770. return i, nil
  2771. }
  2772. func (m *VideoReply) Marshal() (dAtA []byte, err error) {
  2773. size := m.Size()
  2774. dAtA = make([]byte, size)
  2775. n, err := m.MarshalTo(dAtA)
  2776. if err != nil {
  2777. return nil, err
  2778. }
  2779. return dAtA[:n], nil
  2780. }
  2781. func (m *VideoReply) MarshalTo(dAtA []byte) (int, error) {
  2782. var i int
  2783. _ = i
  2784. var l int
  2785. _ = l
  2786. if m.Page != nil {
  2787. dAtA[i] = 0xa
  2788. i++
  2789. i = encodeVarintApi(dAtA, i, uint64(m.Page.Size()))
  2790. n15, err := m.Page.MarshalTo(dAtA[i:])
  2791. if err != nil {
  2792. return 0, err
  2793. }
  2794. i += n15
  2795. }
  2796. return i, nil
  2797. }
  2798. func (m *Tp) Marshal() (dAtA []byte, err error) {
  2799. size := m.Size()
  2800. dAtA = make([]byte, size)
  2801. n, err := m.MarshalTo(dAtA)
  2802. if err != nil {
  2803. return nil, err
  2804. }
  2805. return dAtA[:n], nil
  2806. }
  2807. func (m *Tp) MarshalTo(dAtA []byte) (int, error) {
  2808. var i int
  2809. _ = i
  2810. var l int
  2811. _ = l
  2812. if m.ID != 0 {
  2813. dAtA[i] = 0x8
  2814. i++
  2815. i = encodeVarintApi(dAtA, i, uint64(m.ID))
  2816. }
  2817. if m.Pid != 0 {
  2818. dAtA[i] = 0x10
  2819. i++
  2820. i = encodeVarintApi(dAtA, i, uint64(m.Pid))
  2821. }
  2822. if len(m.Name) > 0 {
  2823. dAtA[i] = 0x1a
  2824. i++
  2825. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  2826. i += copy(dAtA[i:], m.Name)
  2827. }
  2828. return i, nil
  2829. }
  2830. func (m *AidVideos) Marshal() (dAtA []byte, err error) {
  2831. size := m.Size()
  2832. dAtA = make([]byte, size)
  2833. n, err := m.MarshalTo(dAtA)
  2834. if err != nil {
  2835. return nil, err
  2836. }
  2837. return dAtA[:n], nil
  2838. }
  2839. func (m *AidVideos) MarshalTo(dAtA []byte) (int, error) {
  2840. var i int
  2841. _ = i
  2842. var l int
  2843. _ = l
  2844. if m.Aid != 0 {
  2845. dAtA[i] = 0x8
  2846. i++
  2847. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  2848. }
  2849. if len(m.Pages) > 0 {
  2850. for _, msg := range m.Pages {
  2851. dAtA[i] = 0x12
  2852. i++
  2853. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  2854. n, err := msg.MarshalTo(dAtA[i:])
  2855. if err != nil {
  2856. return 0, err
  2857. }
  2858. i += n
  2859. }
  2860. }
  2861. return i, nil
  2862. }
  2863. func (m *Arc) Marshal() (dAtA []byte, err error) {
  2864. size := m.Size()
  2865. dAtA = make([]byte, size)
  2866. n, err := m.MarshalTo(dAtA)
  2867. if err != nil {
  2868. return nil, err
  2869. }
  2870. return dAtA[:n], nil
  2871. }
  2872. func (m *Arc) MarshalTo(dAtA []byte) (int, error) {
  2873. var i int
  2874. _ = i
  2875. var l int
  2876. _ = l
  2877. if m.Aid != 0 {
  2878. dAtA[i] = 0x8
  2879. i++
  2880. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  2881. }
  2882. if m.Videos != 0 {
  2883. dAtA[i] = 0x10
  2884. i++
  2885. i = encodeVarintApi(dAtA, i, uint64(m.Videos))
  2886. }
  2887. if m.TypeID != 0 {
  2888. dAtA[i] = 0x18
  2889. i++
  2890. i = encodeVarintApi(dAtA, i, uint64(m.TypeID))
  2891. }
  2892. if len(m.TypeName) > 0 {
  2893. dAtA[i] = 0x22
  2894. i++
  2895. i = encodeVarintApi(dAtA, i, uint64(len(m.TypeName)))
  2896. i += copy(dAtA[i:], m.TypeName)
  2897. }
  2898. if m.Copyright != 0 {
  2899. dAtA[i] = 0x28
  2900. i++
  2901. i = encodeVarintApi(dAtA, i, uint64(m.Copyright))
  2902. }
  2903. if len(m.Pic) > 0 {
  2904. dAtA[i] = 0x32
  2905. i++
  2906. i = encodeVarintApi(dAtA, i, uint64(len(m.Pic)))
  2907. i += copy(dAtA[i:], m.Pic)
  2908. }
  2909. if len(m.Title) > 0 {
  2910. dAtA[i] = 0x3a
  2911. i++
  2912. i = encodeVarintApi(dAtA, i, uint64(len(m.Title)))
  2913. i += copy(dAtA[i:], m.Title)
  2914. }
  2915. if m.PubDate != 0 {
  2916. dAtA[i] = 0x40
  2917. i++
  2918. i = encodeVarintApi(dAtA, i, uint64(m.PubDate))
  2919. }
  2920. if m.Ctime != 0 {
  2921. dAtA[i] = 0x48
  2922. i++
  2923. i = encodeVarintApi(dAtA, i, uint64(m.Ctime))
  2924. }
  2925. if len(m.Desc) > 0 {
  2926. dAtA[i] = 0x52
  2927. i++
  2928. i = encodeVarintApi(dAtA, i, uint64(len(m.Desc)))
  2929. i += copy(dAtA[i:], m.Desc)
  2930. }
  2931. if m.State != 0 {
  2932. dAtA[i] = 0x58
  2933. i++
  2934. i = encodeVarintApi(dAtA, i, uint64(m.State))
  2935. }
  2936. if m.Access != 0 {
  2937. dAtA[i] = 0x60
  2938. i++
  2939. i = encodeVarintApi(dAtA, i, uint64(m.Access))
  2940. }
  2941. if m.Attribute != 0 {
  2942. dAtA[i] = 0x68
  2943. i++
  2944. i = encodeVarintApi(dAtA, i, uint64(m.Attribute))
  2945. }
  2946. if len(m.Tag) > 0 {
  2947. dAtA[i] = 0x72
  2948. i++
  2949. i = encodeVarintApi(dAtA, i, uint64(len(m.Tag)))
  2950. i += copy(dAtA[i:], m.Tag)
  2951. }
  2952. if len(m.Tags) > 0 {
  2953. for _, s := range m.Tags {
  2954. dAtA[i] = 0x7a
  2955. i++
  2956. l = len(s)
  2957. for l >= 1<<7 {
  2958. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  2959. l >>= 7
  2960. i++
  2961. }
  2962. dAtA[i] = uint8(l)
  2963. i++
  2964. i += copy(dAtA[i:], s)
  2965. }
  2966. }
  2967. if m.Duration != 0 {
  2968. dAtA[i] = 0x80
  2969. i++
  2970. dAtA[i] = 0x1
  2971. i++
  2972. i = encodeVarintApi(dAtA, i, uint64(m.Duration))
  2973. }
  2974. if m.MissionID != 0 {
  2975. dAtA[i] = 0x88
  2976. i++
  2977. dAtA[i] = 0x1
  2978. i++
  2979. i = encodeVarintApi(dAtA, i, uint64(m.MissionID))
  2980. }
  2981. if m.OrderID != 0 {
  2982. dAtA[i] = 0x90
  2983. i++
  2984. dAtA[i] = 0x1
  2985. i++
  2986. i = encodeVarintApi(dAtA, i, uint64(m.OrderID))
  2987. }
  2988. if len(m.RedirectURL) > 0 {
  2989. dAtA[i] = 0x9a
  2990. i++
  2991. dAtA[i] = 0x1
  2992. i++
  2993. i = encodeVarintApi(dAtA, i, uint64(len(m.RedirectURL)))
  2994. i += copy(dAtA[i:], m.RedirectURL)
  2995. }
  2996. if m.Forward != 0 {
  2997. dAtA[i] = 0xa0
  2998. i++
  2999. dAtA[i] = 0x1
  3000. i++
  3001. i = encodeVarintApi(dAtA, i, uint64(m.Forward))
  3002. }
  3003. dAtA[i] = 0xaa
  3004. i++
  3005. dAtA[i] = 0x1
  3006. i++
  3007. i = encodeVarintApi(dAtA, i, uint64(m.Rights.Size()))
  3008. n16, err := m.Rights.MarshalTo(dAtA[i:])
  3009. if err != nil {
  3010. return 0, err
  3011. }
  3012. i += n16
  3013. dAtA[i] = 0xb2
  3014. i++
  3015. dAtA[i] = 0x1
  3016. i++
  3017. i = encodeVarintApi(dAtA, i, uint64(m.Author.Size()))
  3018. n17, err := m.Author.MarshalTo(dAtA[i:])
  3019. if err != nil {
  3020. return 0, err
  3021. }
  3022. i += n17
  3023. dAtA[i] = 0xba
  3024. i++
  3025. dAtA[i] = 0x1
  3026. i++
  3027. i = encodeVarintApi(dAtA, i, uint64(m.Stat.Size()))
  3028. n18, err := m.Stat.MarshalTo(dAtA[i:])
  3029. if err != nil {
  3030. return 0, err
  3031. }
  3032. i += n18
  3033. if len(m.ReportResult) > 0 {
  3034. dAtA[i] = 0xc2
  3035. i++
  3036. dAtA[i] = 0x1
  3037. i++
  3038. i = encodeVarintApi(dAtA, i, uint64(len(m.ReportResult)))
  3039. i += copy(dAtA[i:], m.ReportResult)
  3040. }
  3041. if len(m.Dynamic) > 0 {
  3042. dAtA[i] = 0xca
  3043. i++
  3044. dAtA[i] = 0x1
  3045. i++
  3046. i = encodeVarintApi(dAtA, i, uint64(len(m.Dynamic)))
  3047. i += copy(dAtA[i:], m.Dynamic)
  3048. }
  3049. if m.FirstCid != 0 {
  3050. dAtA[i] = 0xd0
  3051. i++
  3052. dAtA[i] = 0x1
  3053. i++
  3054. i = encodeVarintApi(dAtA, i, uint64(m.FirstCid))
  3055. }
  3056. dAtA[i] = 0xda
  3057. i++
  3058. dAtA[i] = 0x1
  3059. i++
  3060. i = encodeVarintApi(dAtA, i, uint64(m.Dimension.Size()))
  3061. n19, err := m.Dimension.MarshalTo(dAtA[i:])
  3062. if err != nil {
  3063. return 0, err
  3064. }
  3065. i += n19
  3066. if len(m.StaffInfo) > 0 {
  3067. for _, msg := range m.StaffInfo {
  3068. dAtA[i] = 0xe2
  3069. i++
  3070. dAtA[i] = 0x1
  3071. i++
  3072. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  3073. n, err := msg.MarshalTo(dAtA[i:])
  3074. if err != nil {
  3075. return 0, err
  3076. }
  3077. i += n
  3078. }
  3079. }
  3080. return i, nil
  3081. }
  3082. func (m *StaffInfo) Marshal() (dAtA []byte, err error) {
  3083. size := m.Size()
  3084. dAtA = make([]byte, size)
  3085. n, err := m.MarshalTo(dAtA)
  3086. if err != nil {
  3087. return nil, err
  3088. }
  3089. return dAtA[:n], nil
  3090. }
  3091. func (m *StaffInfo) MarshalTo(dAtA []byte) (int, error) {
  3092. var i int
  3093. _ = i
  3094. var l int
  3095. _ = l
  3096. if m.Mid != 0 {
  3097. dAtA[i] = 0x8
  3098. i++
  3099. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  3100. }
  3101. if len(m.Title) > 0 {
  3102. dAtA[i] = 0x12
  3103. i++
  3104. i = encodeVarintApi(dAtA, i, uint64(len(m.Title)))
  3105. i += copy(dAtA[i:], m.Title)
  3106. }
  3107. return i, nil
  3108. }
  3109. func (m *Dimension) Marshal() (dAtA []byte, err error) {
  3110. size := m.Size()
  3111. dAtA = make([]byte, size)
  3112. n, err := m.MarshalTo(dAtA)
  3113. if err != nil {
  3114. return nil, err
  3115. }
  3116. return dAtA[:n], nil
  3117. }
  3118. func (m *Dimension) MarshalTo(dAtA []byte) (int, error) {
  3119. var i int
  3120. _ = i
  3121. var l int
  3122. _ = l
  3123. if m.Width != 0 {
  3124. dAtA[i] = 0x8
  3125. i++
  3126. i = encodeVarintApi(dAtA, i, uint64(m.Width))
  3127. }
  3128. if m.Height != 0 {
  3129. dAtA[i] = 0x10
  3130. i++
  3131. i = encodeVarintApi(dAtA, i, uint64(m.Height))
  3132. }
  3133. if m.Rotate != 0 {
  3134. dAtA[i] = 0x18
  3135. i++
  3136. i = encodeVarintApi(dAtA, i, uint64(m.Rotate))
  3137. }
  3138. return i, nil
  3139. }
  3140. func (m *Rights) Marshal() (dAtA []byte, err error) {
  3141. size := m.Size()
  3142. dAtA = make([]byte, size)
  3143. n, err := m.MarshalTo(dAtA)
  3144. if err != nil {
  3145. return nil, err
  3146. }
  3147. return dAtA[:n], nil
  3148. }
  3149. func (m *Rights) MarshalTo(dAtA []byte) (int, error) {
  3150. var i int
  3151. _ = i
  3152. var l int
  3153. _ = l
  3154. if m.Bp != 0 {
  3155. dAtA[i] = 0x8
  3156. i++
  3157. i = encodeVarintApi(dAtA, i, uint64(m.Bp))
  3158. }
  3159. if m.Elec != 0 {
  3160. dAtA[i] = 0x10
  3161. i++
  3162. i = encodeVarintApi(dAtA, i, uint64(m.Elec))
  3163. }
  3164. if m.Download != 0 {
  3165. dAtA[i] = 0x18
  3166. i++
  3167. i = encodeVarintApi(dAtA, i, uint64(m.Download))
  3168. }
  3169. if m.Movie != 0 {
  3170. dAtA[i] = 0x20
  3171. i++
  3172. i = encodeVarintApi(dAtA, i, uint64(m.Movie))
  3173. }
  3174. if m.Pay != 0 {
  3175. dAtA[i] = 0x28
  3176. i++
  3177. i = encodeVarintApi(dAtA, i, uint64(m.Pay))
  3178. }
  3179. if m.HD5 != 0 {
  3180. dAtA[i] = 0x30
  3181. i++
  3182. i = encodeVarintApi(dAtA, i, uint64(m.HD5))
  3183. }
  3184. if m.NoReprint != 0 {
  3185. dAtA[i] = 0x38
  3186. i++
  3187. i = encodeVarintApi(dAtA, i, uint64(m.NoReprint))
  3188. }
  3189. if m.Autoplay != 0 {
  3190. dAtA[i] = 0x40
  3191. i++
  3192. i = encodeVarintApi(dAtA, i, uint64(m.Autoplay))
  3193. }
  3194. if m.UGCPay != 0 {
  3195. dAtA[i] = 0x48
  3196. i++
  3197. i = encodeVarintApi(dAtA, i, uint64(m.UGCPay))
  3198. }
  3199. if m.IsCooperation != 0 {
  3200. dAtA[i] = 0x50
  3201. i++
  3202. i = encodeVarintApi(dAtA, i, uint64(m.IsCooperation))
  3203. }
  3204. return i, nil
  3205. }
  3206. func (m *Author) Marshal() (dAtA []byte, err error) {
  3207. size := m.Size()
  3208. dAtA = make([]byte, size)
  3209. n, err := m.MarshalTo(dAtA)
  3210. if err != nil {
  3211. return nil, err
  3212. }
  3213. return dAtA[:n], nil
  3214. }
  3215. func (m *Author) MarshalTo(dAtA []byte) (int, error) {
  3216. var i int
  3217. _ = i
  3218. var l int
  3219. _ = l
  3220. if m.Mid != 0 {
  3221. dAtA[i] = 0x8
  3222. i++
  3223. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  3224. }
  3225. if len(m.Name) > 0 {
  3226. dAtA[i] = 0x12
  3227. i++
  3228. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  3229. i += copy(dAtA[i:], m.Name)
  3230. }
  3231. if len(m.Face) > 0 {
  3232. dAtA[i] = 0x1a
  3233. i++
  3234. i = encodeVarintApi(dAtA, i, uint64(len(m.Face)))
  3235. i += copy(dAtA[i:], m.Face)
  3236. }
  3237. return i, nil
  3238. }
  3239. func (m *Stat) Marshal() (dAtA []byte, err error) {
  3240. size := m.Size()
  3241. dAtA = make([]byte, size)
  3242. n, err := m.MarshalTo(dAtA)
  3243. if err != nil {
  3244. return nil, err
  3245. }
  3246. return dAtA[:n], nil
  3247. }
  3248. func (m *Stat) MarshalTo(dAtA []byte) (int, error) {
  3249. var i int
  3250. _ = i
  3251. var l int
  3252. _ = l
  3253. if m.Aid != 0 {
  3254. dAtA[i] = 0x8
  3255. i++
  3256. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  3257. }
  3258. if m.View != 0 {
  3259. dAtA[i] = 0x10
  3260. i++
  3261. i = encodeVarintApi(dAtA, i, uint64(m.View))
  3262. }
  3263. if m.Danmaku != 0 {
  3264. dAtA[i] = 0x18
  3265. i++
  3266. i = encodeVarintApi(dAtA, i, uint64(m.Danmaku))
  3267. }
  3268. if m.Reply != 0 {
  3269. dAtA[i] = 0x20
  3270. i++
  3271. i = encodeVarintApi(dAtA, i, uint64(m.Reply))
  3272. }
  3273. if m.Fav != 0 {
  3274. dAtA[i] = 0x28
  3275. i++
  3276. i = encodeVarintApi(dAtA, i, uint64(m.Fav))
  3277. }
  3278. if m.Coin != 0 {
  3279. dAtA[i] = 0x30
  3280. i++
  3281. i = encodeVarintApi(dAtA, i, uint64(m.Coin))
  3282. }
  3283. if m.Share != 0 {
  3284. dAtA[i] = 0x38
  3285. i++
  3286. i = encodeVarintApi(dAtA, i, uint64(m.Share))
  3287. }
  3288. if m.NowRank != 0 {
  3289. dAtA[i] = 0x40
  3290. i++
  3291. i = encodeVarintApi(dAtA, i, uint64(m.NowRank))
  3292. }
  3293. if m.HisRank != 0 {
  3294. dAtA[i] = 0x48
  3295. i++
  3296. i = encodeVarintApi(dAtA, i, uint64(m.HisRank))
  3297. }
  3298. if m.Like != 0 {
  3299. dAtA[i] = 0x50
  3300. i++
  3301. i = encodeVarintApi(dAtA, i, uint64(m.Like))
  3302. }
  3303. if m.DisLike != 0 {
  3304. dAtA[i] = 0x58
  3305. i++
  3306. i = encodeVarintApi(dAtA, i, uint64(m.DisLike))
  3307. }
  3308. return i, nil
  3309. }
  3310. func (m *Click) Marshal() (dAtA []byte, err error) {
  3311. size := m.Size()
  3312. dAtA = make([]byte, size)
  3313. n, err := m.MarshalTo(dAtA)
  3314. if err != nil {
  3315. return nil, err
  3316. }
  3317. return dAtA[:n], nil
  3318. }
  3319. func (m *Click) MarshalTo(dAtA []byte) (int, error) {
  3320. var i int
  3321. _ = i
  3322. var l int
  3323. _ = l
  3324. if m.Aid != 0 {
  3325. dAtA[i] = 0x8
  3326. i++
  3327. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  3328. }
  3329. if m.Web != 0 {
  3330. dAtA[i] = 0x10
  3331. i++
  3332. i = encodeVarintApi(dAtA, i, uint64(m.Web))
  3333. }
  3334. if m.Ios != 0 {
  3335. dAtA[i] = 0x18
  3336. i++
  3337. i = encodeVarintApi(dAtA, i, uint64(m.Ios))
  3338. }
  3339. if m.Android != 0 {
  3340. dAtA[i] = 0x20
  3341. i++
  3342. i = encodeVarintApi(dAtA, i, uint64(m.Android))
  3343. }
  3344. if m.H5 != 0 {
  3345. dAtA[i] = 0x28
  3346. i++
  3347. i = encodeVarintApi(dAtA, i, uint64(m.H5))
  3348. }
  3349. if m.Outter != 0 {
  3350. dAtA[i] = 0x30
  3351. i++
  3352. i = encodeVarintApi(dAtA, i, uint64(m.Outter))
  3353. }
  3354. return i, nil
  3355. }
  3356. func (m *Page) Marshal() (dAtA []byte, err error) {
  3357. size := m.Size()
  3358. dAtA = make([]byte, size)
  3359. n, err := m.MarshalTo(dAtA)
  3360. if err != nil {
  3361. return nil, err
  3362. }
  3363. return dAtA[:n], nil
  3364. }
  3365. func (m *Page) MarshalTo(dAtA []byte) (int, error) {
  3366. var i int
  3367. _ = i
  3368. var l int
  3369. _ = l
  3370. if m.Cid != 0 {
  3371. dAtA[i] = 0x8
  3372. i++
  3373. i = encodeVarintApi(dAtA, i, uint64(m.Cid))
  3374. }
  3375. if m.Page != 0 {
  3376. dAtA[i] = 0x10
  3377. i++
  3378. i = encodeVarintApi(dAtA, i, uint64(m.Page))
  3379. }
  3380. if len(m.From) > 0 {
  3381. dAtA[i] = 0x1a
  3382. i++
  3383. i = encodeVarintApi(dAtA, i, uint64(len(m.From)))
  3384. i += copy(dAtA[i:], m.From)
  3385. }
  3386. if len(m.Part) > 0 {
  3387. dAtA[i] = 0x22
  3388. i++
  3389. i = encodeVarintApi(dAtA, i, uint64(len(m.Part)))
  3390. i += copy(dAtA[i:], m.Part)
  3391. }
  3392. if m.Duration != 0 {
  3393. dAtA[i] = 0x28
  3394. i++
  3395. i = encodeVarintApi(dAtA, i, uint64(m.Duration))
  3396. }
  3397. if len(m.Vid) > 0 {
  3398. dAtA[i] = 0x32
  3399. i++
  3400. i = encodeVarintApi(dAtA, i, uint64(len(m.Vid)))
  3401. i += copy(dAtA[i:], m.Vid)
  3402. }
  3403. if len(m.Desc) > 0 {
  3404. dAtA[i] = 0x3a
  3405. i++
  3406. i = encodeVarintApi(dAtA, i, uint64(len(m.Desc)))
  3407. i += copy(dAtA[i:], m.Desc)
  3408. }
  3409. if len(m.WebLink) > 0 {
  3410. dAtA[i] = 0x42
  3411. i++
  3412. i = encodeVarintApi(dAtA, i, uint64(len(m.WebLink)))
  3413. i += copy(dAtA[i:], m.WebLink)
  3414. }
  3415. dAtA[i] = 0x4a
  3416. i++
  3417. i = encodeVarintApi(dAtA, i, uint64(m.Dimension.Size()))
  3418. n20, err := m.Dimension.MarshalTo(dAtA[i:])
  3419. if err != nil {
  3420. return 0, err
  3421. }
  3422. i += n20
  3423. return i, nil
  3424. }
  3425. func (m *VideoFileInfo) Marshal() (dAtA []byte, err error) {
  3426. size := m.Size()
  3427. dAtA = make([]byte, size)
  3428. n, err := m.MarshalTo(dAtA)
  3429. if err != nil {
  3430. return nil, err
  3431. }
  3432. return dAtA[:n], nil
  3433. }
  3434. func (m *VideoFileInfo) MarshalTo(dAtA []byte) (int, error) {
  3435. var i int
  3436. _ = i
  3437. var l int
  3438. _ = l
  3439. if m.Filesize != 0 {
  3440. dAtA[i] = 0x8
  3441. i++
  3442. i = encodeVarintApi(dAtA, i, uint64(m.Filesize))
  3443. }
  3444. if m.Timelength != 0 {
  3445. dAtA[i] = 0x10
  3446. i++
  3447. i = encodeVarintApi(dAtA, i, uint64(m.Timelength))
  3448. }
  3449. if len(m.Ahead) > 0 {
  3450. dAtA[i] = 0x1a
  3451. i++
  3452. i = encodeVarintApi(dAtA, i, uint64(len(m.Ahead)))
  3453. i += copy(dAtA[i:], m.Ahead)
  3454. }
  3455. if len(m.Vhead) > 0 {
  3456. dAtA[i] = 0x22
  3457. i++
  3458. i = encodeVarintApi(dAtA, i, uint64(len(m.Vhead)))
  3459. i += copy(dAtA[i:], m.Vhead)
  3460. }
  3461. return i, nil
  3462. }
  3463. func (m *VideoFormatFileInfo) Marshal() (dAtA []byte, err error) {
  3464. size := m.Size()
  3465. dAtA = make([]byte, size)
  3466. n, err := m.MarshalTo(dAtA)
  3467. if err != nil {
  3468. return nil, err
  3469. }
  3470. return dAtA[:n], nil
  3471. }
  3472. func (m *VideoFormatFileInfo) MarshalTo(dAtA []byte) (int, error) {
  3473. var i int
  3474. _ = i
  3475. var l int
  3476. _ = l
  3477. if len(m.Infos) > 0 {
  3478. for _, msg := range m.Infos {
  3479. dAtA[i] = 0xa
  3480. i++
  3481. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  3482. n, err := msg.MarshalTo(dAtA[i:])
  3483. if err != nil {
  3484. return 0, err
  3485. }
  3486. i += n
  3487. }
  3488. }
  3489. return i, nil
  3490. }
  3491. func (m *DashItem) Marshal() (dAtA []byte, err error) {
  3492. size := m.Size()
  3493. dAtA = make([]byte, size)
  3494. n, err := m.MarshalTo(dAtA)
  3495. if err != nil {
  3496. return nil, err
  3497. }
  3498. return dAtA[:n], nil
  3499. }
  3500. func (m *DashItem) MarshalTo(dAtA []byte) (int, error) {
  3501. var i int
  3502. _ = i
  3503. var l int
  3504. _ = l
  3505. if m.Id != 0 {
  3506. dAtA[i] = 0x8
  3507. i++
  3508. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  3509. }
  3510. if len(m.BaseUrl) > 0 {
  3511. dAtA[i] = 0x12
  3512. i++
  3513. i = encodeVarintApi(dAtA, i, uint64(len(m.BaseUrl)))
  3514. i += copy(dAtA[i:], m.BaseUrl)
  3515. }
  3516. if m.Bandwidth != 0 {
  3517. dAtA[i] = 0x18
  3518. i++
  3519. i = encodeVarintApi(dAtA, i, uint64(m.Bandwidth))
  3520. }
  3521. if m.Codecid != 0 {
  3522. dAtA[i] = 0x20
  3523. i++
  3524. i = encodeVarintApi(dAtA, i, uint64(m.Codecid))
  3525. }
  3526. return i, nil
  3527. }
  3528. func (m *ResponseDash) Marshal() (dAtA []byte, err error) {
  3529. size := m.Size()
  3530. dAtA = make([]byte, size)
  3531. n, err := m.MarshalTo(dAtA)
  3532. if err != nil {
  3533. return nil, err
  3534. }
  3535. return dAtA[:n], nil
  3536. }
  3537. func (m *ResponseDash) MarshalTo(dAtA []byte) (int, error) {
  3538. var i int
  3539. _ = i
  3540. var l int
  3541. _ = l
  3542. if len(m.Video) > 0 {
  3543. for _, msg := range m.Video {
  3544. dAtA[i] = 0xa
  3545. i++
  3546. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  3547. n, err := msg.MarshalTo(dAtA[i:])
  3548. if err != nil {
  3549. return 0, err
  3550. }
  3551. i += n
  3552. }
  3553. }
  3554. if len(m.Audio) > 0 {
  3555. for _, msg := range m.Audio {
  3556. dAtA[i] = 0x12
  3557. i++
  3558. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  3559. n, err := msg.MarshalTo(dAtA[i:])
  3560. if err != nil {
  3561. return 0, err
  3562. }
  3563. i += n
  3564. }
  3565. }
  3566. return i, nil
  3567. }
  3568. func (m *BvcVideoItem) Marshal() (dAtA []byte, err error) {
  3569. size := m.Size()
  3570. dAtA = make([]byte, size)
  3571. n, err := m.MarshalTo(dAtA)
  3572. if err != nil {
  3573. return nil, err
  3574. }
  3575. return dAtA[:n], nil
  3576. }
  3577. func (m *BvcVideoItem) MarshalTo(dAtA []byte) (int, error) {
  3578. var i int
  3579. _ = i
  3580. var l int
  3581. _ = l
  3582. if m.ExpireTime != 0 {
  3583. dAtA[i] = 0x8
  3584. i++
  3585. i = encodeVarintApi(dAtA, i, uint64(m.ExpireTime))
  3586. }
  3587. if m.Cid != 0 {
  3588. dAtA[i] = 0x10
  3589. i++
  3590. i = encodeVarintApi(dAtA, i, uint64(m.Cid))
  3591. }
  3592. if len(m.SupportQuality) > 0 {
  3593. dAtA22 := make([]byte, len(m.SupportQuality)*10)
  3594. var j21 int
  3595. for _, num := range m.SupportQuality {
  3596. for num >= 1<<7 {
  3597. dAtA22[j21] = uint8(uint64(num)&0x7f | 0x80)
  3598. num >>= 7
  3599. j21++
  3600. }
  3601. dAtA22[j21] = uint8(num)
  3602. j21++
  3603. }
  3604. dAtA[i] = 0x1a
  3605. i++
  3606. i = encodeVarintApi(dAtA, i, uint64(j21))
  3607. i += copy(dAtA[i:], dAtA22[:j21])
  3608. }
  3609. if len(m.SupportFormats) > 0 {
  3610. for _, s := range m.SupportFormats {
  3611. dAtA[i] = 0x22
  3612. i++
  3613. l = len(s)
  3614. for l >= 1<<7 {
  3615. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  3616. l >>= 7
  3617. i++
  3618. }
  3619. dAtA[i] = uint8(l)
  3620. i++
  3621. i += copy(dAtA[i:], s)
  3622. }
  3623. }
  3624. if len(m.SupportDescription) > 0 {
  3625. for _, s := range m.SupportDescription {
  3626. dAtA[i] = 0x2a
  3627. i++
  3628. l = len(s)
  3629. for l >= 1<<7 {
  3630. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  3631. l >>= 7
  3632. i++
  3633. }
  3634. dAtA[i] = uint8(l)
  3635. i++
  3636. i += copy(dAtA[i:], s)
  3637. }
  3638. }
  3639. if m.Quality != 0 {
  3640. dAtA[i] = 0x30
  3641. i++
  3642. i = encodeVarintApi(dAtA, i, uint64(m.Quality))
  3643. }
  3644. if len(m.Url) > 0 {
  3645. dAtA[i] = 0x3a
  3646. i++
  3647. i = encodeVarintApi(dAtA, i, uint64(len(m.Url)))
  3648. i += copy(dAtA[i:], m.Url)
  3649. }
  3650. if len(m.FileInfo) > 0 {
  3651. for k, _ := range m.FileInfo {
  3652. dAtA[i] = 0x42
  3653. i++
  3654. v := m.FileInfo[k]
  3655. msgSize := 0
  3656. if v != nil {
  3657. msgSize = v.Size()
  3658. msgSize += 1 + sovApi(uint64(msgSize))
  3659. }
  3660. mapSize := 1 + sovApi(uint64(k)) + msgSize
  3661. i = encodeVarintApi(dAtA, i, uint64(mapSize))
  3662. dAtA[i] = 0x8
  3663. i++
  3664. i = encodeVarintApi(dAtA, i, uint64(k))
  3665. if v != nil {
  3666. dAtA[i] = 0x12
  3667. i++
  3668. i = encodeVarintApi(dAtA, i, uint64(v.Size()))
  3669. n23, err := v.MarshalTo(dAtA[i:])
  3670. if err != nil {
  3671. return 0, err
  3672. }
  3673. i += n23
  3674. }
  3675. }
  3676. }
  3677. if m.VideoCodecid != 0 {
  3678. dAtA[i] = 0x48
  3679. i++
  3680. i = encodeVarintApi(dAtA, i, uint64(m.VideoCodecid))
  3681. }
  3682. if m.VideoProject {
  3683. dAtA[i] = 0x50
  3684. i++
  3685. if m.VideoProject {
  3686. dAtA[i] = 1
  3687. } else {
  3688. dAtA[i] = 0
  3689. }
  3690. i++
  3691. }
  3692. if m.Fnver != 0 {
  3693. dAtA[i] = 0x58
  3694. i++
  3695. i = encodeVarintApi(dAtA, i, uint64(m.Fnver))
  3696. }
  3697. if m.Fnval != 0 {
  3698. dAtA[i] = 0x60
  3699. i++
  3700. i = encodeVarintApi(dAtA, i, uint64(m.Fnval))
  3701. }
  3702. if m.Dash != nil {
  3703. dAtA[i] = 0x6a
  3704. i++
  3705. i = encodeVarintApi(dAtA, i, uint64(m.Dash.Size()))
  3706. n24, err := m.Dash.MarshalTo(dAtA[i:])
  3707. if err != nil {
  3708. return 0, err
  3709. }
  3710. i += n24
  3711. }
  3712. return i, nil
  3713. }
  3714. func (m *BvcResponseMsg) Marshal() (dAtA []byte, err error) {
  3715. size := m.Size()
  3716. dAtA = make([]byte, size)
  3717. n, err := m.MarshalTo(dAtA)
  3718. if err != nil {
  3719. return nil, err
  3720. }
  3721. return dAtA[:n], nil
  3722. }
  3723. func (m *BvcResponseMsg) MarshalTo(dAtA []byte) (int, error) {
  3724. var i int
  3725. _ = i
  3726. var l int
  3727. _ = l
  3728. if m.Code != 0 {
  3729. dAtA[i] = 0x8
  3730. i++
  3731. i = encodeVarintApi(dAtA, i, uint64(m.Code))
  3732. }
  3733. if len(m.Data) > 0 {
  3734. for k, _ := range m.Data {
  3735. dAtA[i] = 0x12
  3736. i++
  3737. v := m.Data[k]
  3738. msgSize := 0
  3739. if v != nil {
  3740. msgSize = v.Size()
  3741. msgSize += 1 + sovApi(uint64(msgSize))
  3742. }
  3743. mapSize := 1 + sovApi(uint64(k)) + msgSize
  3744. i = encodeVarintApi(dAtA, i, uint64(mapSize))
  3745. dAtA[i] = 0x8
  3746. i++
  3747. i = encodeVarintApi(dAtA, i, uint64(k))
  3748. if v != nil {
  3749. dAtA[i] = 0x12
  3750. i++
  3751. i = encodeVarintApi(dAtA, i, uint64(v.Size()))
  3752. n25, err := v.MarshalTo(dAtA[i:])
  3753. if err != nil {
  3754. return 0, err
  3755. }
  3756. i += n25
  3757. }
  3758. }
  3759. }
  3760. return i, nil
  3761. }
  3762. func (m *ArcCacheRequest) Marshal() (dAtA []byte, err error) {
  3763. size := m.Size()
  3764. dAtA = make([]byte, size)
  3765. n, err := m.MarshalTo(dAtA)
  3766. if err != nil {
  3767. return nil, err
  3768. }
  3769. return dAtA[:n], nil
  3770. }
  3771. func (m *ArcCacheRequest) MarshalTo(dAtA []byte) (int, error) {
  3772. var i int
  3773. _ = i
  3774. var l int
  3775. _ = l
  3776. if m.Aid != 0 {
  3777. dAtA[i] = 0x8
  3778. i++
  3779. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  3780. }
  3781. if len(m.Tp) > 0 {
  3782. dAtA[i] = 0x12
  3783. i++
  3784. i = encodeVarintApi(dAtA, i, uint64(len(m.Tp)))
  3785. i += copy(dAtA[i:], m.Tp)
  3786. }
  3787. if m.OldMid != 0 {
  3788. dAtA[i] = 0x18
  3789. i++
  3790. i = encodeVarintApi(dAtA, i, uint64(m.OldMid))
  3791. }
  3792. return i, nil
  3793. }
  3794. func (m *ArcFieldCacheRequest) Marshal() (dAtA []byte, err error) {
  3795. size := m.Size()
  3796. dAtA = make([]byte, size)
  3797. n, err := m.MarshalTo(dAtA)
  3798. if err != nil {
  3799. return nil, err
  3800. }
  3801. return dAtA[:n], nil
  3802. }
  3803. func (m *ArcFieldCacheRequest) MarshalTo(dAtA []byte) (int, error) {
  3804. var i int
  3805. _ = i
  3806. var l int
  3807. _ = l
  3808. if m.Aid != 0 {
  3809. dAtA[i] = 0x8
  3810. i++
  3811. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  3812. }
  3813. if m.TypeID != 0 {
  3814. dAtA[i] = 0x10
  3815. i++
  3816. i = encodeVarintApi(dAtA, i, uint64(m.TypeID))
  3817. }
  3818. if m.OldTypeID != 0 {
  3819. dAtA[i] = 0x18
  3820. i++
  3821. i = encodeVarintApi(dAtA, i, uint64(m.OldTypeID))
  3822. }
  3823. return i, nil
  3824. }
  3825. func (m *UpVideoCacheRequest) Marshal() (dAtA []byte, err error) {
  3826. size := m.Size()
  3827. dAtA = make([]byte, size)
  3828. n, err := m.MarshalTo(dAtA)
  3829. if err != nil {
  3830. return nil, err
  3831. }
  3832. return dAtA[:n], nil
  3833. }
  3834. func (m *UpVideoCacheRequest) MarshalTo(dAtA []byte) (int, error) {
  3835. var i int
  3836. _ = i
  3837. var l int
  3838. _ = l
  3839. if m.Aid != 0 {
  3840. dAtA[i] = 0x8
  3841. i++
  3842. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  3843. }
  3844. if m.Cid != 0 {
  3845. dAtA[i] = 0x10
  3846. i++
  3847. i = encodeVarintApi(dAtA, i, uint64(m.Cid))
  3848. }
  3849. return i, nil
  3850. }
  3851. func (m *DelVideoCacheRequest) Marshal() (dAtA []byte, err error) {
  3852. size := m.Size()
  3853. dAtA = make([]byte, size)
  3854. n, err := m.MarshalTo(dAtA)
  3855. if err != nil {
  3856. return nil, err
  3857. }
  3858. return dAtA[:n], nil
  3859. }
  3860. func (m *DelVideoCacheRequest) MarshalTo(dAtA []byte) (int, error) {
  3861. var i int
  3862. _ = i
  3863. var l int
  3864. _ = l
  3865. if m.Aid != 0 {
  3866. dAtA[i] = 0x8
  3867. i++
  3868. i = encodeVarintApi(dAtA, i, uint64(m.Aid))
  3869. }
  3870. if m.Cid != 0 {
  3871. dAtA[i] = 0x10
  3872. i++
  3873. i = encodeVarintApi(dAtA, i, uint64(m.Cid))
  3874. }
  3875. return i, nil
  3876. }
  3877. func (m *SetStatRequest) Marshal() (dAtA []byte, err error) {
  3878. size := m.Size()
  3879. dAtA = make([]byte, size)
  3880. n, err := m.MarshalTo(dAtA)
  3881. if err != nil {
  3882. return nil, err
  3883. }
  3884. return dAtA[:n], nil
  3885. }
  3886. func (m *SetStatRequest) MarshalTo(dAtA []byte) (int, error) {
  3887. var i int
  3888. _ = i
  3889. var l int
  3890. _ = l
  3891. if m.Stat != nil {
  3892. dAtA[i] = 0xa
  3893. i++
  3894. i = encodeVarintApi(dAtA, i, uint64(m.Stat.Size()))
  3895. n26, err := m.Stat.MarshalTo(dAtA[i:])
  3896. if err != nil {
  3897. return 0, err
  3898. }
  3899. i += n26
  3900. }
  3901. return i, nil
  3902. }
  3903. func encodeFixed64Api(dAtA []byte, offset int, v uint64) int {
  3904. dAtA[offset] = uint8(v)
  3905. dAtA[offset+1] = uint8(v >> 8)
  3906. dAtA[offset+2] = uint8(v >> 16)
  3907. dAtA[offset+3] = uint8(v >> 24)
  3908. dAtA[offset+4] = uint8(v >> 32)
  3909. dAtA[offset+5] = uint8(v >> 40)
  3910. dAtA[offset+6] = uint8(v >> 48)
  3911. dAtA[offset+7] = uint8(v >> 56)
  3912. return offset + 8
  3913. }
  3914. func encodeFixed32Api(dAtA []byte, offset int, v uint32) int {
  3915. dAtA[offset] = uint8(v)
  3916. dAtA[offset+1] = uint8(v >> 8)
  3917. dAtA[offset+2] = uint8(v >> 16)
  3918. dAtA[offset+3] = uint8(v >> 24)
  3919. return offset + 4
  3920. }
  3921. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  3922. for v >= 1<<7 {
  3923. dAtA[offset] = uint8(v&0x7f | 0x80)
  3924. v >>= 7
  3925. offset++
  3926. }
  3927. dAtA[offset] = uint8(v)
  3928. return offset + 1
  3929. }
  3930. func (m *NoArgRequest) Size() (n int) {
  3931. var l int
  3932. _ = l
  3933. return n
  3934. }
  3935. func (m *NoReply) Size() (n int) {
  3936. var l int
  3937. _ = l
  3938. return n
  3939. }
  3940. func (m *DescriptionRequest) Size() (n int) {
  3941. var l int
  3942. _ = l
  3943. if m.Aid != 0 {
  3944. n += 1 + sovApi(uint64(m.Aid))
  3945. }
  3946. return n
  3947. }
  3948. func (m *DescriptionReply) Size() (n int) {
  3949. var l int
  3950. _ = l
  3951. l = len(m.Desc)
  3952. if l > 0 {
  3953. n += 1 + l + sovApi(uint64(l))
  3954. }
  3955. return n
  3956. }
  3957. func (m *MaxAidReply) Size() (n int) {
  3958. var l int
  3959. _ = l
  3960. if m.Aid != 0 {
  3961. n += 1 + sovApi(uint64(m.Aid))
  3962. }
  3963. return n
  3964. }
  3965. func (m *ArcRequest) Size() (n int) {
  3966. var l int
  3967. _ = l
  3968. if m.Aid != 0 {
  3969. n += 1 + sovApi(uint64(m.Aid))
  3970. }
  3971. return n
  3972. }
  3973. func (m *ArcReply) Size() (n int) {
  3974. var l int
  3975. _ = l
  3976. if m.Arc != nil {
  3977. l = m.Arc.Size()
  3978. n += 1 + l + sovApi(uint64(l))
  3979. }
  3980. return n
  3981. }
  3982. func (m *ArcsRequest) Size() (n int) {
  3983. var l int
  3984. _ = l
  3985. if len(m.Aids) > 0 {
  3986. l = 0
  3987. for _, e := range m.Aids {
  3988. l += sovApi(uint64(e))
  3989. }
  3990. n += 1 + sovApi(uint64(l)) + l
  3991. }
  3992. return n
  3993. }
  3994. func (m *ArcsReply) Size() (n int) {
  3995. var l int
  3996. _ = l
  3997. if len(m.Arcs) > 0 {
  3998. for k, v := range m.Arcs {
  3999. _ = k
  4000. _ = v
  4001. l = 0
  4002. if v != nil {
  4003. l = v.Size()
  4004. l += 1 + sovApi(uint64(l))
  4005. }
  4006. mapEntrySize := 1 + sovApi(uint64(k)) + l
  4007. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  4008. }
  4009. }
  4010. return n
  4011. }
  4012. func (m *ViewRequest) Size() (n int) {
  4013. var l int
  4014. _ = l
  4015. if m.Aid != 0 {
  4016. n += 1 + sovApi(uint64(m.Aid))
  4017. }
  4018. return n
  4019. }
  4020. func (m *StatRequest) Size() (n int) {
  4021. var l int
  4022. _ = l
  4023. if m.Aid != 0 {
  4024. n += 1 + sovApi(uint64(m.Aid))
  4025. }
  4026. return n
  4027. }
  4028. func (m *StatReply) Size() (n int) {
  4029. var l int
  4030. _ = l
  4031. if m.Stat != nil {
  4032. l = m.Stat.Size()
  4033. n += 1 + l + sovApi(uint64(l))
  4034. }
  4035. return n
  4036. }
  4037. func (m *StatsRequest) Size() (n int) {
  4038. var l int
  4039. _ = l
  4040. if len(m.Aids) > 0 {
  4041. l = 0
  4042. for _, e := range m.Aids {
  4043. l += sovApi(uint64(e))
  4044. }
  4045. n += 1 + sovApi(uint64(l)) + l
  4046. }
  4047. return n
  4048. }
  4049. func (m *StatsReply) Size() (n int) {
  4050. var l int
  4051. _ = l
  4052. if len(m.Stats) > 0 {
  4053. for k, v := range m.Stats {
  4054. _ = k
  4055. _ = v
  4056. l = 0
  4057. if v != nil {
  4058. l = v.Size()
  4059. l += 1 + sovApi(uint64(l))
  4060. }
  4061. mapEntrySize := 1 + sovApi(uint64(k)) + l
  4062. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  4063. }
  4064. }
  4065. return n
  4066. }
  4067. func (m *ViewReply) Size() (n int) {
  4068. var l int
  4069. _ = l
  4070. if m.Arc != nil {
  4071. l = m.Arc.Size()
  4072. n += 1 + l + sovApi(uint64(l))
  4073. }
  4074. if len(m.Pages) > 0 {
  4075. for _, e := range m.Pages {
  4076. l = e.Size()
  4077. n += 1 + l + sovApi(uint64(l))
  4078. }
  4079. }
  4080. return n
  4081. }
  4082. func (m *ViewsRequest) Size() (n int) {
  4083. var l int
  4084. _ = l
  4085. if len(m.Aids) > 0 {
  4086. l = 0
  4087. for _, e := range m.Aids {
  4088. l += sovApi(uint64(e))
  4089. }
  4090. n += 1 + sovApi(uint64(l)) + l
  4091. }
  4092. return n
  4093. }
  4094. func (m *ViewsReply) Size() (n int) {
  4095. var l int
  4096. _ = l
  4097. if len(m.Views) > 0 {
  4098. for k, v := range m.Views {
  4099. _ = k
  4100. _ = v
  4101. l = 0
  4102. if v != nil {
  4103. l = v.Size()
  4104. l += 1 + sovApi(uint64(l))
  4105. }
  4106. mapEntrySize := 1 + sovApi(uint64(k)) + l
  4107. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  4108. }
  4109. }
  4110. return n
  4111. }
  4112. func (m *TypesReply) Size() (n int) {
  4113. var l int
  4114. _ = l
  4115. if len(m.Types) > 0 {
  4116. for k, v := range m.Types {
  4117. _ = k
  4118. _ = v
  4119. l = 0
  4120. if v != nil {
  4121. l = v.Size()
  4122. l += 1 + sovApi(uint64(l))
  4123. }
  4124. mapEntrySize := 1 + sovApi(uint64(k)) + l
  4125. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  4126. }
  4127. }
  4128. return n
  4129. }
  4130. func (m *ClickRequest) Size() (n int) {
  4131. var l int
  4132. _ = l
  4133. if m.Aid != 0 {
  4134. n += 1 + sovApi(uint64(m.Aid))
  4135. }
  4136. return n
  4137. }
  4138. func (m *ClickReply) Size() (n int) {
  4139. var l int
  4140. _ = l
  4141. if m.Click != nil {
  4142. l = m.Click.Size()
  4143. n += 1 + l + sovApi(uint64(l))
  4144. }
  4145. return n
  4146. }
  4147. func (m *PageRequest) Size() (n int) {
  4148. var l int
  4149. _ = l
  4150. if m.Aid != 0 {
  4151. n += 1 + sovApi(uint64(m.Aid))
  4152. }
  4153. return n
  4154. }
  4155. func (m *PageReply) Size() (n int) {
  4156. var l int
  4157. _ = l
  4158. if len(m.Pages) > 0 {
  4159. for _, e := range m.Pages {
  4160. l = e.Size()
  4161. n += 1 + l + sovApi(uint64(l))
  4162. }
  4163. }
  4164. return n
  4165. }
  4166. func (m *RecommendRequest) Size() (n int) {
  4167. var l int
  4168. _ = l
  4169. if m.Aid != 0 {
  4170. n += 1 + sovApi(uint64(m.Aid))
  4171. }
  4172. return n
  4173. }
  4174. func (m *RecommendReply) Size() (n int) {
  4175. var l int
  4176. _ = l
  4177. if len(m.Arcs) > 0 {
  4178. for _, e := range m.Arcs {
  4179. l = e.Size()
  4180. n += 1 + l + sovApi(uint64(l))
  4181. }
  4182. }
  4183. return n
  4184. }
  4185. func (m *VideoRequest) Size() (n int) {
  4186. var l int
  4187. _ = l
  4188. if m.Aid != 0 {
  4189. n += 1 + sovApi(uint64(m.Aid))
  4190. }
  4191. if m.Cid != 0 {
  4192. n += 1 + sovApi(uint64(m.Cid))
  4193. }
  4194. return n
  4195. }
  4196. func (m *VideoReply) Size() (n int) {
  4197. var l int
  4198. _ = l
  4199. if m.Page != nil {
  4200. l = m.Page.Size()
  4201. n += 1 + l + sovApi(uint64(l))
  4202. }
  4203. return n
  4204. }
  4205. func (m *Tp) Size() (n int) {
  4206. var l int
  4207. _ = l
  4208. if m.ID != 0 {
  4209. n += 1 + sovApi(uint64(m.ID))
  4210. }
  4211. if m.Pid != 0 {
  4212. n += 1 + sovApi(uint64(m.Pid))
  4213. }
  4214. l = len(m.Name)
  4215. if l > 0 {
  4216. n += 1 + l + sovApi(uint64(l))
  4217. }
  4218. return n
  4219. }
  4220. func (m *AidVideos) Size() (n int) {
  4221. var l int
  4222. _ = l
  4223. if m.Aid != 0 {
  4224. n += 1 + sovApi(uint64(m.Aid))
  4225. }
  4226. if len(m.Pages) > 0 {
  4227. for _, e := range m.Pages {
  4228. l = e.Size()
  4229. n += 1 + l + sovApi(uint64(l))
  4230. }
  4231. }
  4232. return n
  4233. }
  4234. func (m *Arc) Size() (n int) {
  4235. var l int
  4236. _ = l
  4237. if m.Aid != 0 {
  4238. n += 1 + sovApi(uint64(m.Aid))
  4239. }
  4240. if m.Videos != 0 {
  4241. n += 1 + sovApi(uint64(m.Videos))
  4242. }
  4243. if m.TypeID != 0 {
  4244. n += 1 + sovApi(uint64(m.TypeID))
  4245. }
  4246. l = len(m.TypeName)
  4247. if l > 0 {
  4248. n += 1 + l + sovApi(uint64(l))
  4249. }
  4250. if m.Copyright != 0 {
  4251. n += 1 + sovApi(uint64(m.Copyright))
  4252. }
  4253. l = len(m.Pic)
  4254. if l > 0 {
  4255. n += 1 + l + sovApi(uint64(l))
  4256. }
  4257. l = len(m.Title)
  4258. if l > 0 {
  4259. n += 1 + l + sovApi(uint64(l))
  4260. }
  4261. if m.PubDate != 0 {
  4262. n += 1 + sovApi(uint64(m.PubDate))
  4263. }
  4264. if m.Ctime != 0 {
  4265. n += 1 + sovApi(uint64(m.Ctime))
  4266. }
  4267. l = len(m.Desc)
  4268. if l > 0 {
  4269. n += 1 + l + sovApi(uint64(l))
  4270. }
  4271. if m.State != 0 {
  4272. n += 1 + sovApi(uint64(m.State))
  4273. }
  4274. if m.Access != 0 {
  4275. n += 1 + sovApi(uint64(m.Access))
  4276. }
  4277. if m.Attribute != 0 {
  4278. n += 1 + sovApi(uint64(m.Attribute))
  4279. }
  4280. l = len(m.Tag)
  4281. if l > 0 {
  4282. n += 1 + l + sovApi(uint64(l))
  4283. }
  4284. if len(m.Tags) > 0 {
  4285. for _, s := range m.Tags {
  4286. l = len(s)
  4287. n += 1 + l + sovApi(uint64(l))
  4288. }
  4289. }
  4290. if m.Duration != 0 {
  4291. n += 2 + sovApi(uint64(m.Duration))
  4292. }
  4293. if m.MissionID != 0 {
  4294. n += 2 + sovApi(uint64(m.MissionID))
  4295. }
  4296. if m.OrderID != 0 {
  4297. n += 2 + sovApi(uint64(m.OrderID))
  4298. }
  4299. l = len(m.RedirectURL)
  4300. if l > 0 {
  4301. n += 2 + l + sovApi(uint64(l))
  4302. }
  4303. if m.Forward != 0 {
  4304. n += 2 + sovApi(uint64(m.Forward))
  4305. }
  4306. l = m.Rights.Size()
  4307. n += 2 + l + sovApi(uint64(l))
  4308. l = m.Author.Size()
  4309. n += 2 + l + sovApi(uint64(l))
  4310. l = m.Stat.Size()
  4311. n += 2 + l + sovApi(uint64(l))
  4312. l = len(m.ReportResult)
  4313. if l > 0 {
  4314. n += 2 + l + sovApi(uint64(l))
  4315. }
  4316. l = len(m.Dynamic)
  4317. if l > 0 {
  4318. n += 2 + l + sovApi(uint64(l))
  4319. }
  4320. if m.FirstCid != 0 {
  4321. n += 2 + sovApi(uint64(m.FirstCid))
  4322. }
  4323. l = m.Dimension.Size()
  4324. n += 2 + l + sovApi(uint64(l))
  4325. if len(m.StaffInfo) > 0 {
  4326. for _, e := range m.StaffInfo {
  4327. l = e.Size()
  4328. n += 2 + l + sovApi(uint64(l))
  4329. }
  4330. }
  4331. return n
  4332. }
  4333. func (m *StaffInfo) Size() (n int) {
  4334. var l int
  4335. _ = l
  4336. if m.Mid != 0 {
  4337. n += 1 + sovApi(uint64(m.Mid))
  4338. }
  4339. l = len(m.Title)
  4340. if l > 0 {
  4341. n += 1 + l + sovApi(uint64(l))
  4342. }
  4343. return n
  4344. }
  4345. func (m *Dimension) Size() (n int) {
  4346. var l int
  4347. _ = l
  4348. if m.Width != 0 {
  4349. n += 1 + sovApi(uint64(m.Width))
  4350. }
  4351. if m.Height != 0 {
  4352. n += 1 + sovApi(uint64(m.Height))
  4353. }
  4354. if m.Rotate != 0 {
  4355. n += 1 + sovApi(uint64(m.Rotate))
  4356. }
  4357. return n
  4358. }
  4359. func (m *Rights) Size() (n int) {
  4360. var l int
  4361. _ = l
  4362. if m.Bp != 0 {
  4363. n += 1 + sovApi(uint64(m.Bp))
  4364. }
  4365. if m.Elec != 0 {
  4366. n += 1 + sovApi(uint64(m.Elec))
  4367. }
  4368. if m.Download != 0 {
  4369. n += 1 + sovApi(uint64(m.Download))
  4370. }
  4371. if m.Movie != 0 {
  4372. n += 1 + sovApi(uint64(m.Movie))
  4373. }
  4374. if m.Pay != 0 {
  4375. n += 1 + sovApi(uint64(m.Pay))
  4376. }
  4377. if m.HD5 != 0 {
  4378. n += 1 + sovApi(uint64(m.HD5))
  4379. }
  4380. if m.NoReprint != 0 {
  4381. n += 1 + sovApi(uint64(m.NoReprint))
  4382. }
  4383. if m.Autoplay != 0 {
  4384. n += 1 + sovApi(uint64(m.Autoplay))
  4385. }
  4386. if m.UGCPay != 0 {
  4387. n += 1 + sovApi(uint64(m.UGCPay))
  4388. }
  4389. if m.IsCooperation != 0 {
  4390. n += 1 + sovApi(uint64(m.IsCooperation))
  4391. }
  4392. return n
  4393. }
  4394. func (m *Author) Size() (n int) {
  4395. var l int
  4396. _ = l
  4397. if m.Mid != 0 {
  4398. n += 1 + sovApi(uint64(m.Mid))
  4399. }
  4400. l = len(m.Name)
  4401. if l > 0 {
  4402. n += 1 + l + sovApi(uint64(l))
  4403. }
  4404. l = len(m.Face)
  4405. if l > 0 {
  4406. n += 1 + l + sovApi(uint64(l))
  4407. }
  4408. return n
  4409. }
  4410. func (m *Stat) Size() (n int) {
  4411. var l int
  4412. _ = l
  4413. if m.Aid != 0 {
  4414. n += 1 + sovApi(uint64(m.Aid))
  4415. }
  4416. if m.View != 0 {
  4417. n += 1 + sovApi(uint64(m.View))
  4418. }
  4419. if m.Danmaku != 0 {
  4420. n += 1 + sovApi(uint64(m.Danmaku))
  4421. }
  4422. if m.Reply != 0 {
  4423. n += 1 + sovApi(uint64(m.Reply))
  4424. }
  4425. if m.Fav != 0 {
  4426. n += 1 + sovApi(uint64(m.Fav))
  4427. }
  4428. if m.Coin != 0 {
  4429. n += 1 + sovApi(uint64(m.Coin))
  4430. }
  4431. if m.Share != 0 {
  4432. n += 1 + sovApi(uint64(m.Share))
  4433. }
  4434. if m.NowRank != 0 {
  4435. n += 1 + sovApi(uint64(m.NowRank))
  4436. }
  4437. if m.HisRank != 0 {
  4438. n += 1 + sovApi(uint64(m.HisRank))
  4439. }
  4440. if m.Like != 0 {
  4441. n += 1 + sovApi(uint64(m.Like))
  4442. }
  4443. if m.DisLike != 0 {
  4444. n += 1 + sovApi(uint64(m.DisLike))
  4445. }
  4446. return n
  4447. }
  4448. func (m *Click) Size() (n int) {
  4449. var l int
  4450. _ = l
  4451. if m.Aid != 0 {
  4452. n += 1 + sovApi(uint64(m.Aid))
  4453. }
  4454. if m.Web != 0 {
  4455. n += 1 + sovApi(uint64(m.Web))
  4456. }
  4457. if m.Ios != 0 {
  4458. n += 1 + sovApi(uint64(m.Ios))
  4459. }
  4460. if m.Android != 0 {
  4461. n += 1 + sovApi(uint64(m.Android))
  4462. }
  4463. if m.H5 != 0 {
  4464. n += 1 + sovApi(uint64(m.H5))
  4465. }
  4466. if m.Outter != 0 {
  4467. n += 1 + sovApi(uint64(m.Outter))
  4468. }
  4469. return n
  4470. }
  4471. func (m *Page) Size() (n int) {
  4472. var l int
  4473. _ = l
  4474. if m.Cid != 0 {
  4475. n += 1 + sovApi(uint64(m.Cid))
  4476. }
  4477. if m.Page != 0 {
  4478. n += 1 + sovApi(uint64(m.Page))
  4479. }
  4480. l = len(m.From)
  4481. if l > 0 {
  4482. n += 1 + l + sovApi(uint64(l))
  4483. }
  4484. l = len(m.Part)
  4485. if l > 0 {
  4486. n += 1 + l + sovApi(uint64(l))
  4487. }
  4488. if m.Duration != 0 {
  4489. n += 1 + sovApi(uint64(m.Duration))
  4490. }
  4491. l = len(m.Vid)
  4492. if l > 0 {
  4493. n += 1 + l + sovApi(uint64(l))
  4494. }
  4495. l = len(m.Desc)
  4496. if l > 0 {
  4497. n += 1 + l + sovApi(uint64(l))
  4498. }
  4499. l = len(m.WebLink)
  4500. if l > 0 {
  4501. n += 1 + l + sovApi(uint64(l))
  4502. }
  4503. l = m.Dimension.Size()
  4504. n += 1 + l + sovApi(uint64(l))
  4505. return n
  4506. }
  4507. func (m *VideoFileInfo) Size() (n int) {
  4508. var l int
  4509. _ = l
  4510. if m.Filesize != 0 {
  4511. n += 1 + sovApi(uint64(m.Filesize))
  4512. }
  4513. if m.Timelength != 0 {
  4514. n += 1 + sovApi(uint64(m.Timelength))
  4515. }
  4516. l = len(m.Ahead)
  4517. if l > 0 {
  4518. n += 1 + l + sovApi(uint64(l))
  4519. }
  4520. l = len(m.Vhead)
  4521. if l > 0 {
  4522. n += 1 + l + sovApi(uint64(l))
  4523. }
  4524. return n
  4525. }
  4526. func (m *VideoFormatFileInfo) Size() (n int) {
  4527. var l int
  4528. _ = l
  4529. if len(m.Infos) > 0 {
  4530. for _, e := range m.Infos {
  4531. l = e.Size()
  4532. n += 1 + l + sovApi(uint64(l))
  4533. }
  4534. }
  4535. return n
  4536. }
  4537. func (m *DashItem) Size() (n int) {
  4538. var l int
  4539. _ = l
  4540. if m.Id != 0 {
  4541. n += 1 + sovApi(uint64(m.Id))
  4542. }
  4543. l = len(m.BaseUrl)
  4544. if l > 0 {
  4545. n += 1 + l + sovApi(uint64(l))
  4546. }
  4547. if m.Bandwidth != 0 {
  4548. n += 1 + sovApi(uint64(m.Bandwidth))
  4549. }
  4550. if m.Codecid != 0 {
  4551. n += 1 + sovApi(uint64(m.Codecid))
  4552. }
  4553. return n
  4554. }
  4555. func (m *ResponseDash) Size() (n int) {
  4556. var l int
  4557. _ = l
  4558. if len(m.Video) > 0 {
  4559. for _, e := range m.Video {
  4560. l = e.Size()
  4561. n += 1 + l + sovApi(uint64(l))
  4562. }
  4563. }
  4564. if len(m.Audio) > 0 {
  4565. for _, e := range m.Audio {
  4566. l = e.Size()
  4567. n += 1 + l + sovApi(uint64(l))
  4568. }
  4569. }
  4570. return n
  4571. }
  4572. func (m *BvcVideoItem) Size() (n int) {
  4573. var l int
  4574. _ = l
  4575. if m.ExpireTime != 0 {
  4576. n += 1 + sovApi(uint64(m.ExpireTime))
  4577. }
  4578. if m.Cid != 0 {
  4579. n += 1 + sovApi(uint64(m.Cid))
  4580. }
  4581. if len(m.SupportQuality) > 0 {
  4582. l = 0
  4583. for _, e := range m.SupportQuality {
  4584. l += sovApi(uint64(e))
  4585. }
  4586. n += 1 + sovApi(uint64(l)) + l
  4587. }
  4588. if len(m.SupportFormats) > 0 {
  4589. for _, s := range m.SupportFormats {
  4590. l = len(s)
  4591. n += 1 + l + sovApi(uint64(l))
  4592. }
  4593. }
  4594. if len(m.SupportDescription) > 0 {
  4595. for _, s := range m.SupportDescription {
  4596. l = len(s)
  4597. n += 1 + l + sovApi(uint64(l))
  4598. }
  4599. }
  4600. if m.Quality != 0 {
  4601. n += 1 + sovApi(uint64(m.Quality))
  4602. }
  4603. l = len(m.Url)
  4604. if l > 0 {
  4605. n += 1 + l + sovApi(uint64(l))
  4606. }
  4607. if len(m.FileInfo) > 0 {
  4608. for k, v := range m.FileInfo {
  4609. _ = k
  4610. _ = v
  4611. l = 0
  4612. if v != nil {
  4613. l = v.Size()
  4614. l += 1 + sovApi(uint64(l))
  4615. }
  4616. mapEntrySize := 1 + sovApi(uint64(k)) + l
  4617. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  4618. }
  4619. }
  4620. if m.VideoCodecid != 0 {
  4621. n += 1 + sovApi(uint64(m.VideoCodecid))
  4622. }
  4623. if m.VideoProject {
  4624. n += 2
  4625. }
  4626. if m.Fnver != 0 {
  4627. n += 1 + sovApi(uint64(m.Fnver))
  4628. }
  4629. if m.Fnval != 0 {
  4630. n += 1 + sovApi(uint64(m.Fnval))
  4631. }
  4632. if m.Dash != nil {
  4633. l = m.Dash.Size()
  4634. n += 1 + l + sovApi(uint64(l))
  4635. }
  4636. return n
  4637. }
  4638. func (m *BvcResponseMsg) Size() (n int) {
  4639. var l int
  4640. _ = l
  4641. if m.Code != 0 {
  4642. n += 1 + sovApi(uint64(m.Code))
  4643. }
  4644. if len(m.Data) > 0 {
  4645. for k, v := range m.Data {
  4646. _ = k
  4647. _ = v
  4648. l = 0
  4649. if v != nil {
  4650. l = v.Size()
  4651. l += 1 + sovApi(uint64(l))
  4652. }
  4653. mapEntrySize := 1 + sovApi(uint64(k)) + l
  4654. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  4655. }
  4656. }
  4657. return n
  4658. }
  4659. func (m *ArcCacheRequest) Size() (n int) {
  4660. var l int
  4661. _ = l
  4662. if m.Aid != 0 {
  4663. n += 1 + sovApi(uint64(m.Aid))
  4664. }
  4665. l = len(m.Tp)
  4666. if l > 0 {
  4667. n += 1 + l + sovApi(uint64(l))
  4668. }
  4669. if m.OldMid != 0 {
  4670. n += 1 + sovApi(uint64(m.OldMid))
  4671. }
  4672. return n
  4673. }
  4674. func (m *ArcFieldCacheRequest) Size() (n int) {
  4675. var l int
  4676. _ = l
  4677. if m.Aid != 0 {
  4678. n += 1 + sovApi(uint64(m.Aid))
  4679. }
  4680. if m.TypeID != 0 {
  4681. n += 1 + sovApi(uint64(m.TypeID))
  4682. }
  4683. if m.OldTypeID != 0 {
  4684. n += 1 + sovApi(uint64(m.OldTypeID))
  4685. }
  4686. return n
  4687. }
  4688. func (m *UpVideoCacheRequest) Size() (n int) {
  4689. var l int
  4690. _ = l
  4691. if m.Aid != 0 {
  4692. n += 1 + sovApi(uint64(m.Aid))
  4693. }
  4694. if m.Cid != 0 {
  4695. n += 1 + sovApi(uint64(m.Cid))
  4696. }
  4697. return n
  4698. }
  4699. func (m *DelVideoCacheRequest) Size() (n int) {
  4700. var l int
  4701. _ = l
  4702. if m.Aid != 0 {
  4703. n += 1 + sovApi(uint64(m.Aid))
  4704. }
  4705. if m.Cid != 0 {
  4706. n += 1 + sovApi(uint64(m.Cid))
  4707. }
  4708. return n
  4709. }
  4710. func (m *SetStatRequest) Size() (n int) {
  4711. var l int
  4712. _ = l
  4713. if m.Stat != nil {
  4714. l = m.Stat.Size()
  4715. n += 1 + l + sovApi(uint64(l))
  4716. }
  4717. return n
  4718. }
  4719. func sovApi(x uint64) (n int) {
  4720. for {
  4721. n++
  4722. x >>= 7
  4723. if x == 0 {
  4724. break
  4725. }
  4726. }
  4727. return n
  4728. }
  4729. func sozApi(x uint64) (n int) {
  4730. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  4731. }
  4732. func (m *NoArgRequest) Unmarshal(dAtA []byte) error {
  4733. l := len(dAtA)
  4734. iNdEx := 0
  4735. for iNdEx < l {
  4736. preIndex := iNdEx
  4737. var wire uint64
  4738. for shift := uint(0); ; shift += 7 {
  4739. if shift >= 64 {
  4740. return ErrIntOverflowApi
  4741. }
  4742. if iNdEx >= l {
  4743. return io.ErrUnexpectedEOF
  4744. }
  4745. b := dAtA[iNdEx]
  4746. iNdEx++
  4747. wire |= (uint64(b) & 0x7F) << shift
  4748. if b < 0x80 {
  4749. break
  4750. }
  4751. }
  4752. fieldNum := int32(wire >> 3)
  4753. wireType := int(wire & 0x7)
  4754. if wireType == 4 {
  4755. return fmt.Errorf("proto: NoArgRequest: wiretype end group for non-group")
  4756. }
  4757. if fieldNum <= 0 {
  4758. return fmt.Errorf("proto: NoArgRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4759. }
  4760. switch fieldNum {
  4761. default:
  4762. iNdEx = preIndex
  4763. skippy, err := skipApi(dAtA[iNdEx:])
  4764. if err != nil {
  4765. return err
  4766. }
  4767. if skippy < 0 {
  4768. return ErrInvalidLengthApi
  4769. }
  4770. if (iNdEx + skippy) > l {
  4771. return io.ErrUnexpectedEOF
  4772. }
  4773. iNdEx += skippy
  4774. }
  4775. }
  4776. if iNdEx > l {
  4777. return io.ErrUnexpectedEOF
  4778. }
  4779. return nil
  4780. }
  4781. func (m *NoReply) Unmarshal(dAtA []byte) error {
  4782. l := len(dAtA)
  4783. iNdEx := 0
  4784. for iNdEx < l {
  4785. preIndex := iNdEx
  4786. var wire uint64
  4787. for shift := uint(0); ; shift += 7 {
  4788. if shift >= 64 {
  4789. return ErrIntOverflowApi
  4790. }
  4791. if iNdEx >= l {
  4792. return io.ErrUnexpectedEOF
  4793. }
  4794. b := dAtA[iNdEx]
  4795. iNdEx++
  4796. wire |= (uint64(b) & 0x7F) << shift
  4797. if b < 0x80 {
  4798. break
  4799. }
  4800. }
  4801. fieldNum := int32(wire >> 3)
  4802. wireType := int(wire & 0x7)
  4803. if wireType == 4 {
  4804. return fmt.Errorf("proto: NoReply: wiretype end group for non-group")
  4805. }
  4806. if fieldNum <= 0 {
  4807. return fmt.Errorf("proto: NoReply: illegal tag %d (wire type %d)", fieldNum, wire)
  4808. }
  4809. switch fieldNum {
  4810. default:
  4811. iNdEx = preIndex
  4812. skippy, err := skipApi(dAtA[iNdEx:])
  4813. if err != nil {
  4814. return err
  4815. }
  4816. if skippy < 0 {
  4817. return ErrInvalidLengthApi
  4818. }
  4819. if (iNdEx + skippy) > l {
  4820. return io.ErrUnexpectedEOF
  4821. }
  4822. iNdEx += skippy
  4823. }
  4824. }
  4825. if iNdEx > l {
  4826. return io.ErrUnexpectedEOF
  4827. }
  4828. return nil
  4829. }
  4830. func (m *DescriptionRequest) Unmarshal(dAtA []byte) error {
  4831. l := len(dAtA)
  4832. iNdEx := 0
  4833. for iNdEx < l {
  4834. preIndex := iNdEx
  4835. var wire uint64
  4836. for shift := uint(0); ; shift += 7 {
  4837. if shift >= 64 {
  4838. return ErrIntOverflowApi
  4839. }
  4840. if iNdEx >= l {
  4841. return io.ErrUnexpectedEOF
  4842. }
  4843. b := dAtA[iNdEx]
  4844. iNdEx++
  4845. wire |= (uint64(b) & 0x7F) << shift
  4846. if b < 0x80 {
  4847. break
  4848. }
  4849. }
  4850. fieldNum := int32(wire >> 3)
  4851. wireType := int(wire & 0x7)
  4852. if wireType == 4 {
  4853. return fmt.Errorf("proto: DescriptionRequest: wiretype end group for non-group")
  4854. }
  4855. if fieldNum <= 0 {
  4856. return fmt.Errorf("proto: DescriptionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4857. }
  4858. switch fieldNum {
  4859. case 1:
  4860. if wireType != 0 {
  4861. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  4862. }
  4863. m.Aid = 0
  4864. for shift := uint(0); ; shift += 7 {
  4865. if shift >= 64 {
  4866. return ErrIntOverflowApi
  4867. }
  4868. if iNdEx >= l {
  4869. return io.ErrUnexpectedEOF
  4870. }
  4871. b := dAtA[iNdEx]
  4872. iNdEx++
  4873. m.Aid |= (int64(b) & 0x7F) << shift
  4874. if b < 0x80 {
  4875. break
  4876. }
  4877. }
  4878. default:
  4879. iNdEx = preIndex
  4880. skippy, err := skipApi(dAtA[iNdEx:])
  4881. if err != nil {
  4882. return err
  4883. }
  4884. if skippy < 0 {
  4885. return ErrInvalidLengthApi
  4886. }
  4887. if (iNdEx + skippy) > l {
  4888. return io.ErrUnexpectedEOF
  4889. }
  4890. iNdEx += skippy
  4891. }
  4892. }
  4893. if iNdEx > l {
  4894. return io.ErrUnexpectedEOF
  4895. }
  4896. return nil
  4897. }
  4898. func (m *DescriptionReply) Unmarshal(dAtA []byte) error {
  4899. l := len(dAtA)
  4900. iNdEx := 0
  4901. for iNdEx < l {
  4902. preIndex := iNdEx
  4903. var wire uint64
  4904. for shift := uint(0); ; shift += 7 {
  4905. if shift >= 64 {
  4906. return ErrIntOverflowApi
  4907. }
  4908. if iNdEx >= l {
  4909. return io.ErrUnexpectedEOF
  4910. }
  4911. b := dAtA[iNdEx]
  4912. iNdEx++
  4913. wire |= (uint64(b) & 0x7F) << shift
  4914. if b < 0x80 {
  4915. break
  4916. }
  4917. }
  4918. fieldNum := int32(wire >> 3)
  4919. wireType := int(wire & 0x7)
  4920. if wireType == 4 {
  4921. return fmt.Errorf("proto: DescriptionReply: wiretype end group for non-group")
  4922. }
  4923. if fieldNum <= 0 {
  4924. return fmt.Errorf("proto: DescriptionReply: illegal tag %d (wire type %d)", fieldNum, wire)
  4925. }
  4926. switch fieldNum {
  4927. case 1:
  4928. if wireType != 2 {
  4929. return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType)
  4930. }
  4931. var stringLen uint64
  4932. for shift := uint(0); ; shift += 7 {
  4933. if shift >= 64 {
  4934. return ErrIntOverflowApi
  4935. }
  4936. if iNdEx >= l {
  4937. return io.ErrUnexpectedEOF
  4938. }
  4939. b := dAtA[iNdEx]
  4940. iNdEx++
  4941. stringLen |= (uint64(b) & 0x7F) << shift
  4942. if b < 0x80 {
  4943. break
  4944. }
  4945. }
  4946. intStringLen := int(stringLen)
  4947. if intStringLen < 0 {
  4948. return ErrInvalidLengthApi
  4949. }
  4950. postIndex := iNdEx + intStringLen
  4951. if postIndex > l {
  4952. return io.ErrUnexpectedEOF
  4953. }
  4954. m.Desc = string(dAtA[iNdEx:postIndex])
  4955. iNdEx = postIndex
  4956. default:
  4957. iNdEx = preIndex
  4958. skippy, err := skipApi(dAtA[iNdEx:])
  4959. if err != nil {
  4960. return err
  4961. }
  4962. if skippy < 0 {
  4963. return ErrInvalidLengthApi
  4964. }
  4965. if (iNdEx + skippy) > l {
  4966. return io.ErrUnexpectedEOF
  4967. }
  4968. iNdEx += skippy
  4969. }
  4970. }
  4971. if iNdEx > l {
  4972. return io.ErrUnexpectedEOF
  4973. }
  4974. return nil
  4975. }
  4976. func (m *MaxAidReply) Unmarshal(dAtA []byte) error {
  4977. l := len(dAtA)
  4978. iNdEx := 0
  4979. for iNdEx < l {
  4980. preIndex := iNdEx
  4981. var wire uint64
  4982. for shift := uint(0); ; shift += 7 {
  4983. if shift >= 64 {
  4984. return ErrIntOverflowApi
  4985. }
  4986. if iNdEx >= l {
  4987. return io.ErrUnexpectedEOF
  4988. }
  4989. b := dAtA[iNdEx]
  4990. iNdEx++
  4991. wire |= (uint64(b) & 0x7F) << shift
  4992. if b < 0x80 {
  4993. break
  4994. }
  4995. }
  4996. fieldNum := int32(wire >> 3)
  4997. wireType := int(wire & 0x7)
  4998. if wireType == 4 {
  4999. return fmt.Errorf("proto: MaxAidReply: wiretype end group for non-group")
  5000. }
  5001. if fieldNum <= 0 {
  5002. return fmt.Errorf("proto: MaxAidReply: illegal tag %d (wire type %d)", fieldNum, wire)
  5003. }
  5004. switch fieldNum {
  5005. case 1:
  5006. if wireType != 0 {
  5007. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  5008. }
  5009. m.Aid = 0
  5010. for shift := uint(0); ; shift += 7 {
  5011. if shift >= 64 {
  5012. return ErrIntOverflowApi
  5013. }
  5014. if iNdEx >= l {
  5015. return io.ErrUnexpectedEOF
  5016. }
  5017. b := dAtA[iNdEx]
  5018. iNdEx++
  5019. m.Aid |= (int64(b) & 0x7F) << shift
  5020. if b < 0x80 {
  5021. break
  5022. }
  5023. }
  5024. default:
  5025. iNdEx = preIndex
  5026. skippy, err := skipApi(dAtA[iNdEx:])
  5027. if err != nil {
  5028. return err
  5029. }
  5030. if skippy < 0 {
  5031. return ErrInvalidLengthApi
  5032. }
  5033. if (iNdEx + skippy) > l {
  5034. return io.ErrUnexpectedEOF
  5035. }
  5036. iNdEx += skippy
  5037. }
  5038. }
  5039. if iNdEx > l {
  5040. return io.ErrUnexpectedEOF
  5041. }
  5042. return nil
  5043. }
  5044. func (m *ArcRequest) Unmarshal(dAtA []byte) error {
  5045. l := len(dAtA)
  5046. iNdEx := 0
  5047. for iNdEx < l {
  5048. preIndex := iNdEx
  5049. var wire uint64
  5050. for shift := uint(0); ; shift += 7 {
  5051. if shift >= 64 {
  5052. return ErrIntOverflowApi
  5053. }
  5054. if iNdEx >= l {
  5055. return io.ErrUnexpectedEOF
  5056. }
  5057. b := dAtA[iNdEx]
  5058. iNdEx++
  5059. wire |= (uint64(b) & 0x7F) << shift
  5060. if b < 0x80 {
  5061. break
  5062. }
  5063. }
  5064. fieldNum := int32(wire >> 3)
  5065. wireType := int(wire & 0x7)
  5066. if wireType == 4 {
  5067. return fmt.Errorf("proto: ArcRequest: wiretype end group for non-group")
  5068. }
  5069. if fieldNum <= 0 {
  5070. return fmt.Errorf("proto: ArcRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5071. }
  5072. switch fieldNum {
  5073. case 1:
  5074. if wireType != 0 {
  5075. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  5076. }
  5077. m.Aid = 0
  5078. for shift := uint(0); ; shift += 7 {
  5079. if shift >= 64 {
  5080. return ErrIntOverflowApi
  5081. }
  5082. if iNdEx >= l {
  5083. return io.ErrUnexpectedEOF
  5084. }
  5085. b := dAtA[iNdEx]
  5086. iNdEx++
  5087. m.Aid |= (int64(b) & 0x7F) << shift
  5088. if b < 0x80 {
  5089. break
  5090. }
  5091. }
  5092. default:
  5093. iNdEx = preIndex
  5094. skippy, err := skipApi(dAtA[iNdEx:])
  5095. if err != nil {
  5096. return err
  5097. }
  5098. if skippy < 0 {
  5099. return ErrInvalidLengthApi
  5100. }
  5101. if (iNdEx + skippy) > l {
  5102. return io.ErrUnexpectedEOF
  5103. }
  5104. iNdEx += skippy
  5105. }
  5106. }
  5107. if iNdEx > l {
  5108. return io.ErrUnexpectedEOF
  5109. }
  5110. return nil
  5111. }
  5112. func (m *ArcReply) Unmarshal(dAtA []byte) error {
  5113. l := len(dAtA)
  5114. iNdEx := 0
  5115. for iNdEx < l {
  5116. preIndex := iNdEx
  5117. var wire uint64
  5118. for shift := uint(0); ; shift += 7 {
  5119. if shift >= 64 {
  5120. return ErrIntOverflowApi
  5121. }
  5122. if iNdEx >= l {
  5123. return io.ErrUnexpectedEOF
  5124. }
  5125. b := dAtA[iNdEx]
  5126. iNdEx++
  5127. wire |= (uint64(b) & 0x7F) << shift
  5128. if b < 0x80 {
  5129. break
  5130. }
  5131. }
  5132. fieldNum := int32(wire >> 3)
  5133. wireType := int(wire & 0x7)
  5134. if wireType == 4 {
  5135. return fmt.Errorf("proto: ArcReply: wiretype end group for non-group")
  5136. }
  5137. if fieldNum <= 0 {
  5138. return fmt.Errorf("proto: ArcReply: illegal tag %d (wire type %d)", fieldNum, wire)
  5139. }
  5140. switch fieldNum {
  5141. case 1:
  5142. if wireType != 2 {
  5143. return fmt.Errorf("proto: wrong wireType = %d for field Arc", wireType)
  5144. }
  5145. var msglen int
  5146. for shift := uint(0); ; shift += 7 {
  5147. if shift >= 64 {
  5148. return ErrIntOverflowApi
  5149. }
  5150. if iNdEx >= l {
  5151. return io.ErrUnexpectedEOF
  5152. }
  5153. b := dAtA[iNdEx]
  5154. iNdEx++
  5155. msglen |= (int(b) & 0x7F) << shift
  5156. if b < 0x80 {
  5157. break
  5158. }
  5159. }
  5160. if msglen < 0 {
  5161. return ErrInvalidLengthApi
  5162. }
  5163. postIndex := iNdEx + msglen
  5164. if postIndex > l {
  5165. return io.ErrUnexpectedEOF
  5166. }
  5167. if m.Arc == nil {
  5168. m.Arc = &Arc{}
  5169. }
  5170. if err := m.Arc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5171. return err
  5172. }
  5173. iNdEx = postIndex
  5174. default:
  5175. iNdEx = preIndex
  5176. skippy, err := skipApi(dAtA[iNdEx:])
  5177. if err != nil {
  5178. return err
  5179. }
  5180. if skippy < 0 {
  5181. return ErrInvalidLengthApi
  5182. }
  5183. if (iNdEx + skippy) > l {
  5184. return io.ErrUnexpectedEOF
  5185. }
  5186. iNdEx += skippy
  5187. }
  5188. }
  5189. if iNdEx > l {
  5190. return io.ErrUnexpectedEOF
  5191. }
  5192. return nil
  5193. }
  5194. func (m *ArcsRequest) Unmarshal(dAtA []byte) error {
  5195. l := len(dAtA)
  5196. iNdEx := 0
  5197. for iNdEx < l {
  5198. preIndex := iNdEx
  5199. var wire uint64
  5200. for shift := uint(0); ; shift += 7 {
  5201. if shift >= 64 {
  5202. return ErrIntOverflowApi
  5203. }
  5204. if iNdEx >= l {
  5205. return io.ErrUnexpectedEOF
  5206. }
  5207. b := dAtA[iNdEx]
  5208. iNdEx++
  5209. wire |= (uint64(b) & 0x7F) << shift
  5210. if b < 0x80 {
  5211. break
  5212. }
  5213. }
  5214. fieldNum := int32(wire >> 3)
  5215. wireType := int(wire & 0x7)
  5216. if wireType == 4 {
  5217. return fmt.Errorf("proto: ArcsRequest: wiretype end group for non-group")
  5218. }
  5219. if fieldNum <= 0 {
  5220. return fmt.Errorf("proto: ArcsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5221. }
  5222. switch fieldNum {
  5223. case 1:
  5224. if wireType == 0 {
  5225. var v int64
  5226. for shift := uint(0); ; shift += 7 {
  5227. if shift >= 64 {
  5228. return ErrIntOverflowApi
  5229. }
  5230. if iNdEx >= l {
  5231. return io.ErrUnexpectedEOF
  5232. }
  5233. b := dAtA[iNdEx]
  5234. iNdEx++
  5235. v |= (int64(b) & 0x7F) << shift
  5236. if b < 0x80 {
  5237. break
  5238. }
  5239. }
  5240. m.Aids = append(m.Aids, v)
  5241. } else if wireType == 2 {
  5242. var packedLen int
  5243. for shift := uint(0); ; shift += 7 {
  5244. if shift >= 64 {
  5245. return ErrIntOverflowApi
  5246. }
  5247. if iNdEx >= l {
  5248. return io.ErrUnexpectedEOF
  5249. }
  5250. b := dAtA[iNdEx]
  5251. iNdEx++
  5252. packedLen |= (int(b) & 0x7F) << shift
  5253. if b < 0x80 {
  5254. break
  5255. }
  5256. }
  5257. if packedLen < 0 {
  5258. return ErrInvalidLengthApi
  5259. }
  5260. postIndex := iNdEx + packedLen
  5261. if postIndex > l {
  5262. return io.ErrUnexpectedEOF
  5263. }
  5264. for iNdEx < postIndex {
  5265. var v int64
  5266. for shift := uint(0); ; shift += 7 {
  5267. if shift >= 64 {
  5268. return ErrIntOverflowApi
  5269. }
  5270. if iNdEx >= l {
  5271. return io.ErrUnexpectedEOF
  5272. }
  5273. b := dAtA[iNdEx]
  5274. iNdEx++
  5275. v |= (int64(b) & 0x7F) << shift
  5276. if b < 0x80 {
  5277. break
  5278. }
  5279. }
  5280. m.Aids = append(m.Aids, v)
  5281. }
  5282. } else {
  5283. return fmt.Errorf("proto: wrong wireType = %d for field Aids", wireType)
  5284. }
  5285. default:
  5286. iNdEx = preIndex
  5287. skippy, err := skipApi(dAtA[iNdEx:])
  5288. if err != nil {
  5289. return err
  5290. }
  5291. if skippy < 0 {
  5292. return ErrInvalidLengthApi
  5293. }
  5294. if (iNdEx + skippy) > l {
  5295. return io.ErrUnexpectedEOF
  5296. }
  5297. iNdEx += skippy
  5298. }
  5299. }
  5300. if iNdEx > l {
  5301. return io.ErrUnexpectedEOF
  5302. }
  5303. return nil
  5304. }
  5305. func (m *ArcsReply) Unmarshal(dAtA []byte) error {
  5306. l := len(dAtA)
  5307. iNdEx := 0
  5308. for iNdEx < l {
  5309. preIndex := iNdEx
  5310. var wire uint64
  5311. for shift := uint(0); ; shift += 7 {
  5312. if shift >= 64 {
  5313. return ErrIntOverflowApi
  5314. }
  5315. if iNdEx >= l {
  5316. return io.ErrUnexpectedEOF
  5317. }
  5318. b := dAtA[iNdEx]
  5319. iNdEx++
  5320. wire |= (uint64(b) & 0x7F) << shift
  5321. if b < 0x80 {
  5322. break
  5323. }
  5324. }
  5325. fieldNum := int32(wire >> 3)
  5326. wireType := int(wire & 0x7)
  5327. if wireType == 4 {
  5328. return fmt.Errorf("proto: ArcsReply: wiretype end group for non-group")
  5329. }
  5330. if fieldNum <= 0 {
  5331. return fmt.Errorf("proto: ArcsReply: illegal tag %d (wire type %d)", fieldNum, wire)
  5332. }
  5333. switch fieldNum {
  5334. case 1:
  5335. if wireType != 2 {
  5336. return fmt.Errorf("proto: wrong wireType = %d for field Arcs", wireType)
  5337. }
  5338. var msglen int
  5339. for shift := uint(0); ; shift += 7 {
  5340. if shift >= 64 {
  5341. return ErrIntOverflowApi
  5342. }
  5343. if iNdEx >= l {
  5344. return io.ErrUnexpectedEOF
  5345. }
  5346. b := dAtA[iNdEx]
  5347. iNdEx++
  5348. msglen |= (int(b) & 0x7F) << shift
  5349. if b < 0x80 {
  5350. break
  5351. }
  5352. }
  5353. if msglen < 0 {
  5354. return ErrInvalidLengthApi
  5355. }
  5356. postIndex := iNdEx + msglen
  5357. if postIndex > l {
  5358. return io.ErrUnexpectedEOF
  5359. }
  5360. if m.Arcs == nil {
  5361. m.Arcs = make(map[int64]*Arc)
  5362. }
  5363. var mapkey int64
  5364. var mapvalue *Arc
  5365. for iNdEx < postIndex {
  5366. entryPreIndex := iNdEx
  5367. var wire uint64
  5368. for shift := uint(0); ; shift += 7 {
  5369. if shift >= 64 {
  5370. return ErrIntOverflowApi
  5371. }
  5372. if iNdEx >= l {
  5373. return io.ErrUnexpectedEOF
  5374. }
  5375. b := dAtA[iNdEx]
  5376. iNdEx++
  5377. wire |= (uint64(b) & 0x7F) << shift
  5378. if b < 0x80 {
  5379. break
  5380. }
  5381. }
  5382. fieldNum := int32(wire >> 3)
  5383. if fieldNum == 1 {
  5384. for shift := uint(0); ; shift += 7 {
  5385. if shift >= 64 {
  5386. return ErrIntOverflowApi
  5387. }
  5388. if iNdEx >= l {
  5389. return io.ErrUnexpectedEOF
  5390. }
  5391. b := dAtA[iNdEx]
  5392. iNdEx++
  5393. mapkey |= (int64(b) & 0x7F) << shift
  5394. if b < 0x80 {
  5395. break
  5396. }
  5397. }
  5398. } else if fieldNum == 2 {
  5399. var mapmsglen int
  5400. for shift := uint(0); ; shift += 7 {
  5401. if shift >= 64 {
  5402. return ErrIntOverflowApi
  5403. }
  5404. if iNdEx >= l {
  5405. return io.ErrUnexpectedEOF
  5406. }
  5407. b := dAtA[iNdEx]
  5408. iNdEx++
  5409. mapmsglen |= (int(b) & 0x7F) << shift
  5410. if b < 0x80 {
  5411. break
  5412. }
  5413. }
  5414. if mapmsglen < 0 {
  5415. return ErrInvalidLengthApi
  5416. }
  5417. postmsgIndex := iNdEx + mapmsglen
  5418. if mapmsglen < 0 {
  5419. return ErrInvalidLengthApi
  5420. }
  5421. if postmsgIndex > l {
  5422. return io.ErrUnexpectedEOF
  5423. }
  5424. mapvalue = &Arc{}
  5425. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  5426. return err
  5427. }
  5428. iNdEx = postmsgIndex
  5429. } else {
  5430. iNdEx = entryPreIndex
  5431. skippy, err := skipApi(dAtA[iNdEx:])
  5432. if err != nil {
  5433. return err
  5434. }
  5435. if skippy < 0 {
  5436. return ErrInvalidLengthApi
  5437. }
  5438. if (iNdEx + skippy) > postIndex {
  5439. return io.ErrUnexpectedEOF
  5440. }
  5441. iNdEx += skippy
  5442. }
  5443. }
  5444. m.Arcs[mapkey] = mapvalue
  5445. iNdEx = postIndex
  5446. default:
  5447. iNdEx = preIndex
  5448. skippy, err := skipApi(dAtA[iNdEx:])
  5449. if err != nil {
  5450. return err
  5451. }
  5452. if skippy < 0 {
  5453. return ErrInvalidLengthApi
  5454. }
  5455. if (iNdEx + skippy) > l {
  5456. return io.ErrUnexpectedEOF
  5457. }
  5458. iNdEx += skippy
  5459. }
  5460. }
  5461. if iNdEx > l {
  5462. return io.ErrUnexpectedEOF
  5463. }
  5464. return nil
  5465. }
  5466. func (m *ViewRequest) Unmarshal(dAtA []byte) error {
  5467. l := len(dAtA)
  5468. iNdEx := 0
  5469. for iNdEx < l {
  5470. preIndex := iNdEx
  5471. var wire uint64
  5472. for shift := uint(0); ; shift += 7 {
  5473. if shift >= 64 {
  5474. return ErrIntOverflowApi
  5475. }
  5476. if iNdEx >= l {
  5477. return io.ErrUnexpectedEOF
  5478. }
  5479. b := dAtA[iNdEx]
  5480. iNdEx++
  5481. wire |= (uint64(b) & 0x7F) << shift
  5482. if b < 0x80 {
  5483. break
  5484. }
  5485. }
  5486. fieldNum := int32(wire >> 3)
  5487. wireType := int(wire & 0x7)
  5488. if wireType == 4 {
  5489. return fmt.Errorf("proto: ViewRequest: wiretype end group for non-group")
  5490. }
  5491. if fieldNum <= 0 {
  5492. return fmt.Errorf("proto: ViewRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5493. }
  5494. switch fieldNum {
  5495. case 1:
  5496. if wireType != 0 {
  5497. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  5498. }
  5499. m.Aid = 0
  5500. for shift := uint(0); ; shift += 7 {
  5501. if shift >= 64 {
  5502. return ErrIntOverflowApi
  5503. }
  5504. if iNdEx >= l {
  5505. return io.ErrUnexpectedEOF
  5506. }
  5507. b := dAtA[iNdEx]
  5508. iNdEx++
  5509. m.Aid |= (int64(b) & 0x7F) << shift
  5510. if b < 0x80 {
  5511. break
  5512. }
  5513. }
  5514. default:
  5515. iNdEx = preIndex
  5516. skippy, err := skipApi(dAtA[iNdEx:])
  5517. if err != nil {
  5518. return err
  5519. }
  5520. if skippy < 0 {
  5521. return ErrInvalidLengthApi
  5522. }
  5523. if (iNdEx + skippy) > l {
  5524. return io.ErrUnexpectedEOF
  5525. }
  5526. iNdEx += skippy
  5527. }
  5528. }
  5529. if iNdEx > l {
  5530. return io.ErrUnexpectedEOF
  5531. }
  5532. return nil
  5533. }
  5534. func (m *StatRequest) Unmarshal(dAtA []byte) error {
  5535. l := len(dAtA)
  5536. iNdEx := 0
  5537. for iNdEx < l {
  5538. preIndex := iNdEx
  5539. var wire uint64
  5540. for shift := uint(0); ; shift += 7 {
  5541. if shift >= 64 {
  5542. return ErrIntOverflowApi
  5543. }
  5544. if iNdEx >= l {
  5545. return io.ErrUnexpectedEOF
  5546. }
  5547. b := dAtA[iNdEx]
  5548. iNdEx++
  5549. wire |= (uint64(b) & 0x7F) << shift
  5550. if b < 0x80 {
  5551. break
  5552. }
  5553. }
  5554. fieldNum := int32(wire >> 3)
  5555. wireType := int(wire & 0x7)
  5556. if wireType == 4 {
  5557. return fmt.Errorf("proto: StatRequest: wiretype end group for non-group")
  5558. }
  5559. if fieldNum <= 0 {
  5560. return fmt.Errorf("proto: StatRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5561. }
  5562. switch fieldNum {
  5563. case 1:
  5564. if wireType != 0 {
  5565. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  5566. }
  5567. m.Aid = 0
  5568. for shift := uint(0); ; shift += 7 {
  5569. if shift >= 64 {
  5570. return ErrIntOverflowApi
  5571. }
  5572. if iNdEx >= l {
  5573. return io.ErrUnexpectedEOF
  5574. }
  5575. b := dAtA[iNdEx]
  5576. iNdEx++
  5577. m.Aid |= (int64(b) & 0x7F) << shift
  5578. if b < 0x80 {
  5579. break
  5580. }
  5581. }
  5582. default:
  5583. iNdEx = preIndex
  5584. skippy, err := skipApi(dAtA[iNdEx:])
  5585. if err != nil {
  5586. return err
  5587. }
  5588. if skippy < 0 {
  5589. return ErrInvalidLengthApi
  5590. }
  5591. if (iNdEx + skippy) > l {
  5592. return io.ErrUnexpectedEOF
  5593. }
  5594. iNdEx += skippy
  5595. }
  5596. }
  5597. if iNdEx > l {
  5598. return io.ErrUnexpectedEOF
  5599. }
  5600. return nil
  5601. }
  5602. func (m *StatReply) Unmarshal(dAtA []byte) error {
  5603. l := len(dAtA)
  5604. iNdEx := 0
  5605. for iNdEx < l {
  5606. preIndex := iNdEx
  5607. var wire uint64
  5608. for shift := uint(0); ; shift += 7 {
  5609. if shift >= 64 {
  5610. return ErrIntOverflowApi
  5611. }
  5612. if iNdEx >= l {
  5613. return io.ErrUnexpectedEOF
  5614. }
  5615. b := dAtA[iNdEx]
  5616. iNdEx++
  5617. wire |= (uint64(b) & 0x7F) << shift
  5618. if b < 0x80 {
  5619. break
  5620. }
  5621. }
  5622. fieldNum := int32(wire >> 3)
  5623. wireType := int(wire & 0x7)
  5624. if wireType == 4 {
  5625. return fmt.Errorf("proto: StatReply: wiretype end group for non-group")
  5626. }
  5627. if fieldNum <= 0 {
  5628. return fmt.Errorf("proto: StatReply: illegal tag %d (wire type %d)", fieldNum, wire)
  5629. }
  5630. switch fieldNum {
  5631. case 1:
  5632. if wireType != 2 {
  5633. return fmt.Errorf("proto: wrong wireType = %d for field Stat", wireType)
  5634. }
  5635. var msglen int
  5636. for shift := uint(0); ; shift += 7 {
  5637. if shift >= 64 {
  5638. return ErrIntOverflowApi
  5639. }
  5640. if iNdEx >= l {
  5641. return io.ErrUnexpectedEOF
  5642. }
  5643. b := dAtA[iNdEx]
  5644. iNdEx++
  5645. msglen |= (int(b) & 0x7F) << shift
  5646. if b < 0x80 {
  5647. break
  5648. }
  5649. }
  5650. if msglen < 0 {
  5651. return ErrInvalidLengthApi
  5652. }
  5653. postIndex := iNdEx + msglen
  5654. if postIndex > l {
  5655. return io.ErrUnexpectedEOF
  5656. }
  5657. if m.Stat == nil {
  5658. m.Stat = &Stat{}
  5659. }
  5660. if err := m.Stat.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5661. return err
  5662. }
  5663. iNdEx = postIndex
  5664. default:
  5665. iNdEx = preIndex
  5666. skippy, err := skipApi(dAtA[iNdEx:])
  5667. if err != nil {
  5668. return err
  5669. }
  5670. if skippy < 0 {
  5671. return ErrInvalidLengthApi
  5672. }
  5673. if (iNdEx + skippy) > l {
  5674. return io.ErrUnexpectedEOF
  5675. }
  5676. iNdEx += skippy
  5677. }
  5678. }
  5679. if iNdEx > l {
  5680. return io.ErrUnexpectedEOF
  5681. }
  5682. return nil
  5683. }
  5684. func (m *StatsRequest) Unmarshal(dAtA []byte) error {
  5685. l := len(dAtA)
  5686. iNdEx := 0
  5687. for iNdEx < l {
  5688. preIndex := iNdEx
  5689. var wire uint64
  5690. for shift := uint(0); ; shift += 7 {
  5691. if shift >= 64 {
  5692. return ErrIntOverflowApi
  5693. }
  5694. if iNdEx >= l {
  5695. return io.ErrUnexpectedEOF
  5696. }
  5697. b := dAtA[iNdEx]
  5698. iNdEx++
  5699. wire |= (uint64(b) & 0x7F) << shift
  5700. if b < 0x80 {
  5701. break
  5702. }
  5703. }
  5704. fieldNum := int32(wire >> 3)
  5705. wireType := int(wire & 0x7)
  5706. if wireType == 4 {
  5707. return fmt.Errorf("proto: StatsRequest: wiretype end group for non-group")
  5708. }
  5709. if fieldNum <= 0 {
  5710. return fmt.Errorf("proto: StatsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5711. }
  5712. switch fieldNum {
  5713. case 1:
  5714. if wireType == 0 {
  5715. var v int64
  5716. for shift := uint(0); ; shift += 7 {
  5717. if shift >= 64 {
  5718. return ErrIntOverflowApi
  5719. }
  5720. if iNdEx >= l {
  5721. return io.ErrUnexpectedEOF
  5722. }
  5723. b := dAtA[iNdEx]
  5724. iNdEx++
  5725. v |= (int64(b) & 0x7F) << shift
  5726. if b < 0x80 {
  5727. break
  5728. }
  5729. }
  5730. m.Aids = append(m.Aids, v)
  5731. } else if wireType == 2 {
  5732. var packedLen int
  5733. for shift := uint(0); ; shift += 7 {
  5734. if shift >= 64 {
  5735. return ErrIntOverflowApi
  5736. }
  5737. if iNdEx >= l {
  5738. return io.ErrUnexpectedEOF
  5739. }
  5740. b := dAtA[iNdEx]
  5741. iNdEx++
  5742. packedLen |= (int(b) & 0x7F) << shift
  5743. if b < 0x80 {
  5744. break
  5745. }
  5746. }
  5747. if packedLen < 0 {
  5748. return ErrInvalidLengthApi
  5749. }
  5750. postIndex := iNdEx + packedLen
  5751. if postIndex > l {
  5752. return io.ErrUnexpectedEOF
  5753. }
  5754. for iNdEx < postIndex {
  5755. var v int64
  5756. for shift := uint(0); ; shift += 7 {
  5757. if shift >= 64 {
  5758. return ErrIntOverflowApi
  5759. }
  5760. if iNdEx >= l {
  5761. return io.ErrUnexpectedEOF
  5762. }
  5763. b := dAtA[iNdEx]
  5764. iNdEx++
  5765. v |= (int64(b) & 0x7F) << shift
  5766. if b < 0x80 {
  5767. break
  5768. }
  5769. }
  5770. m.Aids = append(m.Aids, v)
  5771. }
  5772. } else {
  5773. return fmt.Errorf("proto: wrong wireType = %d for field Aids", wireType)
  5774. }
  5775. default:
  5776. iNdEx = preIndex
  5777. skippy, err := skipApi(dAtA[iNdEx:])
  5778. if err != nil {
  5779. return err
  5780. }
  5781. if skippy < 0 {
  5782. return ErrInvalidLengthApi
  5783. }
  5784. if (iNdEx + skippy) > l {
  5785. return io.ErrUnexpectedEOF
  5786. }
  5787. iNdEx += skippy
  5788. }
  5789. }
  5790. if iNdEx > l {
  5791. return io.ErrUnexpectedEOF
  5792. }
  5793. return nil
  5794. }
  5795. func (m *StatsReply) Unmarshal(dAtA []byte) error {
  5796. l := len(dAtA)
  5797. iNdEx := 0
  5798. for iNdEx < l {
  5799. preIndex := iNdEx
  5800. var wire uint64
  5801. for shift := uint(0); ; shift += 7 {
  5802. if shift >= 64 {
  5803. return ErrIntOverflowApi
  5804. }
  5805. if iNdEx >= l {
  5806. return io.ErrUnexpectedEOF
  5807. }
  5808. b := dAtA[iNdEx]
  5809. iNdEx++
  5810. wire |= (uint64(b) & 0x7F) << shift
  5811. if b < 0x80 {
  5812. break
  5813. }
  5814. }
  5815. fieldNum := int32(wire >> 3)
  5816. wireType := int(wire & 0x7)
  5817. if wireType == 4 {
  5818. return fmt.Errorf("proto: StatsReply: wiretype end group for non-group")
  5819. }
  5820. if fieldNum <= 0 {
  5821. return fmt.Errorf("proto: StatsReply: illegal tag %d (wire type %d)", fieldNum, wire)
  5822. }
  5823. switch fieldNum {
  5824. case 1:
  5825. if wireType != 2 {
  5826. return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType)
  5827. }
  5828. var msglen int
  5829. for shift := uint(0); ; shift += 7 {
  5830. if shift >= 64 {
  5831. return ErrIntOverflowApi
  5832. }
  5833. if iNdEx >= l {
  5834. return io.ErrUnexpectedEOF
  5835. }
  5836. b := dAtA[iNdEx]
  5837. iNdEx++
  5838. msglen |= (int(b) & 0x7F) << shift
  5839. if b < 0x80 {
  5840. break
  5841. }
  5842. }
  5843. if msglen < 0 {
  5844. return ErrInvalidLengthApi
  5845. }
  5846. postIndex := iNdEx + msglen
  5847. if postIndex > l {
  5848. return io.ErrUnexpectedEOF
  5849. }
  5850. if m.Stats == nil {
  5851. m.Stats = make(map[int64]*Stat)
  5852. }
  5853. var mapkey int64
  5854. var mapvalue *Stat
  5855. for iNdEx < postIndex {
  5856. entryPreIndex := iNdEx
  5857. var wire uint64
  5858. for shift := uint(0); ; shift += 7 {
  5859. if shift >= 64 {
  5860. return ErrIntOverflowApi
  5861. }
  5862. if iNdEx >= l {
  5863. return io.ErrUnexpectedEOF
  5864. }
  5865. b := dAtA[iNdEx]
  5866. iNdEx++
  5867. wire |= (uint64(b) & 0x7F) << shift
  5868. if b < 0x80 {
  5869. break
  5870. }
  5871. }
  5872. fieldNum := int32(wire >> 3)
  5873. if fieldNum == 1 {
  5874. for shift := uint(0); ; shift += 7 {
  5875. if shift >= 64 {
  5876. return ErrIntOverflowApi
  5877. }
  5878. if iNdEx >= l {
  5879. return io.ErrUnexpectedEOF
  5880. }
  5881. b := dAtA[iNdEx]
  5882. iNdEx++
  5883. mapkey |= (int64(b) & 0x7F) << shift
  5884. if b < 0x80 {
  5885. break
  5886. }
  5887. }
  5888. } else if fieldNum == 2 {
  5889. var mapmsglen int
  5890. for shift := uint(0); ; shift += 7 {
  5891. if shift >= 64 {
  5892. return ErrIntOverflowApi
  5893. }
  5894. if iNdEx >= l {
  5895. return io.ErrUnexpectedEOF
  5896. }
  5897. b := dAtA[iNdEx]
  5898. iNdEx++
  5899. mapmsglen |= (int(b) & 0x7F) << shift
  5900. if b < 0x80 {
  5901. break
  5902. }
  5903. }
  5904. if mapmsglen < 0 {
  5905. return ErrInvalidLengthApi
  5906. }
  5907. postmsgIndex := iNdEx + mapmsglen
  5908. if mapmsglen < 0 {
  5909. return ErrInvalidLengthApi
  5910. }
  5911. if postmsgIndex > l {
  5912. return io.ErrUnexpectedEOF
  5913. }
  5914. mapvalue = &Stat{}
  5915. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  5916. return err
  5917. }
  5918. iNdEx = postmsgIndex
  5919. } else {
  5920. iNdEx = entryPreIndex
  5921. skippy, err := skipApi(dAtA[iNdEx:])
  5922. if err != nil {
  5923. return err
  5924. }
  5925. if skippy < 0 {
  5926. return ErrInvalidLengthApi
  5927. }
  5928. if (iNdEx + skippy) > postIndex {
  5929. return io.ErrUnexpectedEOF
  5930. }
  5931. iNdEx += skippy
  5932. }
  5933. }
  5934. m.Stats[mapkey] = mapvalue
  5935. iNdEx = postIndex
  5936. default:
  5937. iNdEx = preIndex
  5938. skippy, err := skipApi(dAtA[iNdEx:])
  5939. if err != nil {
  5940. return err
  5941. }
  5942. if skippy < 0 {
  5943. return ErrInvalidLengthApi
  5944. }
  5945. if (iNdEx + skippy) > l {
  5946. return io.ErrUnexpectedEOF
  5947. }
  5948. iNdEx += skippy
  5949. }
  5950. }
  5951. if iNdEx > l {
  5952. return io.ErrUnexpectedEOF
  5953. }
  5954. return nil
  5955. }
  5956. func (m *ViewReply) Unmarshal(dAtA []byte) error {
  5957. l := len(dAtA)
  5958. iNdEx := 0
  5959. for iNdEx < l {
  5960. preIndex := iNdEx
  5961. var wire uint64
  5962. for shift := uint(0); ; shift += 7 {
  5963. if shift >= 64 {
  5964. return ErrIntOverflowApi
  5965. }
  5966. if iNdEx >= l {
  5967. return io.ErrUnexpectedEOF
  5968. }
  5969. b := dAtA[iNdEx]
  5970. iNdEx++
  5971. wire |= (uint64(b) & 0x7F) << shift
  5972. if b < 0x80 {
  5973. break
  5974. }
  5975. }
  5976. fieldNum := int32(wire >> 3)
  5977. wireType := int(wire & 0x7)
  5978. if wireType == 4 {
  5979. return fmt.Errorf("proto: ViewReply: wiretype end group for non-group")
  5980. }
  5981. if fieldNum <= 0 {
  5982. return fmt.Errorf("proto: ViewReply: illegal tag %d (wire type %d)", fieldNum, wire)
  5983. }
  5984. switch fieldNum {
  5985. case 1:
  5986. if wireType != 2 {
  5987. return fmt.Errorf("proto: wrong wireType = %d for field Arc", wireType)
  5988. }
  5989. var msglen int
  5990. for shift := uint(0); ; shift += 7 {
  5991. if shift >= 64 {
  5992. return ErrIntOverflowApi
  5993. }
  5994. if iNdEx >= l {
  5995. return io.ErrUnexpectedEOF
  5996. }
  5997. b := dAtA[iNdEx]
  5998. iNdEx++
  5999. msglen |= (int(b) & 0x7F) << shift
  6000. if b < 0x80 {
  6001. break
  6002. }
  6003. }
  6004. if msglen < 0 {
  6005. return ErrInvalidLengthApi
  6006. }
  6007. postIndex := iNdEx + msglen
  6008. if postIndex > l {
  6009. return io.ErrUnexpectedEOF
  6010. }
  6011. if m.Arc == nil {
  6012. m.Arc = &Arc{}
  6013. }
  6014. if err := m.Arc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6015. return err
  6016. }
  6017. iNdEx = postIndex
  6018. case 2:
  6019. if wireType != 2 {
  6020. return fmt.Errorf("proto: wrong wireType = %d for field Pages", wireType)
  6021. }
  6022. var msglen int
  6023. for shift := uint(0); ; shift += 7 {
  6024. if shift >= 64 {
  6025. return ErrIntOverflowApi
  6026. }
  6027. if iNdEx >= l {
  6028. return io.ErrUnexpectedEOF
  6029. }
  6030. b := dAtA[iNdEx]
  6031. iNdEx++
  6032. msglen |= (int(b) & 0x7F) << shift
  6033. if b < 0x80 {
  6034. break
  6035. }
  6036. }
  6037. if msglen < 0 {
  6038. return ErrInvalidLengthApi
  6039. }
  6040. postIndex := iNdEx + msglen
  6041. if postIndex > l {
  6042. return io.ErrUnexpectedEOF
  6043. }
  6044. m.Pages = append(m.Pages, &Page{})
  6045. if err := m.Pages[len(m.Pages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6046. return err
  6047. }
  6048. iNdEx = postIndex
  6049. default:
  6050. iNdEx = preIndex
  6051. skippy, err := skipApi(dAtA[iNdEx:])
  6052. if err != nil {
  6053. return err
  6054. }
  6055. if skippy < 0 {
  6056. return ErrInvalidLengthApi
  6057. }
  6058. if (iNdEx + skippy) > l {
  6059. return io.ErrUnexpectedEOF
  6060. }
  6061. iNdEx += skippy
  6062. }
  6063. }
  6064. if iNdEx > l {
  6065. return io.ErrUnexpectedEOF
  6066. }
  6067. return nil
  6068. }
  6069. func (m *ViewsRequest) Unmarshal(dAtA []byte) error {
  6070. l := len(dAtA)
  6071. iNdEx := 0
  6072. for iNdEx < l {
  6073. preIndex := iNdEx
  6074. var wire uint64
  6075. for shift := uint(0); ; shift += 7 {
  6076. if shift >= 64 {
  6077. return ErrIntOverflowApi
  6078. }
  6079. if iNdEx >= l {
  6080. return io.ErrUnexpectedEOF
  6081. }
  6082. b := dAtA[iNdEx]
  6083. iNdEx++
  6084. wire |= (uint64(b) & 0x7F) << shift
  6085. if b < 0x80 {
  6086. break
  6087. }
  6088. }
  6089. fieldNum := int32(wire >> 3)
  6090. wireType := int(wire & 0x7)
  6091. if wireType == 4 {
  6092. return fmt.Errorf("proto: ViewsRequest: wiretype end group for non-group")
  6093. }
  6094. if fieldNum <= 0 {
  6095. return fmt.Errorf("proto: ViewsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6096. }
  6097. switch fieldNum {
  6098. case 1:
  6099. if wireType == 0 {
  6100. var v int64
  6101. for shift := uint(0); ; shift += 7 {
  6102. if shift >= 64 {
  6103. return ErrIntOverflowApi
  6104. }
  6105. if iNdEx >= l {
  6106. return io.ErrUnexpectedEOF
  6107. }
  6108. b := dAtA[iNdEx]
  6109. iNdEx++
  6110. v |= (int64(b) & 0x7F) << shift
  6111. if b < 0x80 {
  6112. break
  6113. }
  6114. }
  6115. m.Aids = append(m.Aids, v)
  6116. } else if wireType == 2 {
  6117. var packedLen int
  6118. for shift := uint(0); ; shift += 7 {
  6119. if shift >= 64 {
  6120. return ErrIntOverflowApi
  6121. }
  6122. if iNdEx >= l {
  6123. return io.ErrUnexpectedEOF
  6124. }
  6125. b := dAtA[iNdEx]
  6126. iNdEx++
  6127. packedLen |= (int(b) & 0x7F) << shift
  6128. if b < 0x80 {
  6129. break
  6130. }
  6131. }
  6132. if packedLen < 0 {
  6133. return ErrInvalidLengthApi
  6134. }
  6135. postIndex := iNdEx + packedLen
  6136. if postIndex > l {
  6137. return io.ErrUnexpectedEOF
  6138. }
  6139. for iNdEx < postIndex {
  6140. var v int64
  6141. for shift := uint(0); ; shift += 7 {
  6142. if shift >= 64 {
  6143. return ErrIntOverflowApi
  6144. }
  6145. if iNdEx >= l {
  6146. return io.ErrUnexpectedEOF
  6147. }
  6148. b := dAtA[iNdEx]
  6149. iNdEx++
  6150. v |= (int64(b) & 0x7F) << shift
  6151. if b < 0x80 {
  6152. break
  6153. }
  6154. }
  6155. m.Aids = append(m.Aids, v)
  6156. }
  6157. } else {
  6158. return fmt.Errorf("proto: wrong wireType = %d for field Aids", wireType)
  6159. }
  6160. default:
  6161. iNdEx = preIndex
  6162. skippy, err := skipApi(dAtA[iNdEx:])
  6163. if err != nil {
  6164. return err
  6165. }
  6166. if skippy < 0 {
  6167. return ErrInvalidLengthApi
  6168. }
  6169. if (iNdEx + skippy) > l {
  6170. return io.ErrUnexpectedEOF
  6171. }
  6172. iNdEx += skippy
  6173. }
  6174. }
  6175. if iNdEx > l {
  6176. return io.ErrUnexpectedEOF
  6177. }
  6178. return nil
  6179. }
  6180. func (m *ViewsReply) Unmarshal(dAtA []byte) error {
  6181. l := len(dAtA)
  6182. iNdEx := 0
  6183. for iNdEx < l {
  6184. preIndex := iNdEx
  6185. var wire uint64
  6186. for shift := uint(0); ; shift += 7 {
  6187. if shift >= 64 {
  6188. return ErrIntOverflowApi
  6189. }
  6190. if iNdEx >= l {
  6191. return io.ErrUnexpectedEOF
  6192. }
  6193. b := dAtA[iNdEx]
  6194. iNdEx++
  6195. wire |= (uint64(b) & 0x7F) << shift
  6196. if b < 0x80 {
  6197. break
  6198. }
  6199. }
  6200. fieldNum := int32(wire >> 3)
  6201. wireType := int(wire & 0x7)
  6202. if wireType == 4 {
  6203. return fmt.Errorf("proto: ViewsReply: wiretype end group for non-group")
  6204. }
  6205. if fieldNum <= 0 {
  6206. return fmt.Errorf("proto: ViewsReply: illegal tag %d (wire type %d)", fieldNum, wire)
  6207. }
  6208. switch fieldNum {
  6209. case 1:
  6210. if wireType != 2 {
  6211. return fmt.Errorf("proto: wrong wireType = %d for field Views", wireType)
  6212. }
  6213. var msglen int
  6214. for shift := uint(0); ; shift += 7 {
  6215. if shift >= 64 {
  6216. return ErrIntOverflowApi
  6217. }
  6218. if iNdEx >= l {
  6219. return io.ErrUnexpectedEOF
  6220. }
  6221. b := dAtA[iNdEx]
  6222. iNdEx++
  6223. msglen |= (int(b) & 0x7F) << shift
  6224. if b < 0x80 {
  6225. break
  6226. }
  6227. }
  6228. if msglen < 0 {
  6229. return ErrInvalidLengthApi
  6230. }
  6231. postIndex := iNdEx + msglen
  6232. if postIndex > l {
  6233. return io.ErrUnexpectedEOF
  6234. }
  6235. if m.Views == nil {
  6236. m.Views = make(map[int64]*ViewReply)
  6237. }
  6238. var mapkey int64
  6239. var mapvalue *ViewReply
  6240. for iNdEx < postIndex {
  6241. entryPreIndex := iNdEx
  6242. var wire uint64
  6243. for shift := uint(0); ; shift += 7 {
  6244. if shift >= 64 {
  6245. return ErrIntOverflowApi
  6246. }
  6247. if iNdEx >= l {
  6248. return io.ErrUnexpectedEOF
  6249. }
  6250. b := dAtA[iNdEx]
  6251. iNdEx++
  6252. wire |= (uint64(b) & 0x7F) << shift
  6253. if b < 0x80 {
  6254. break
  6255. }
  6256. }
  6257. fieldNum := int32(wire >> 3)
  6258. if fieldNum == 1 {
  6259. for shift := uint(0); ; shift += 7 {
  6260. if shift >= 64 {
  6261. return ErrIntOverflowApi
  6262. }
  6263. if iNdEx >= l {
  6264. return io.ErrUnexpectedEOF
  6265. }
  6266. b := dAtA[iNdEx]
  6267. iNdEx++
  6268. mapkey |= (int64(b) & 0x7F) << shift
  6269. if b < 0x80 {
  6270. break
  6271. }
  6272. }
  6273. } else if fieldNum == 2 {
  6274. var mapmsglen int
  6275. for shift := uint(0); ; shift += 7 {
  6276. if shift >= 64 {
  6277. return ErrIntOverflowApi
  6278. }
  6279. if iNdEx >= l {
  6280. return io.ErrUnexpectedEOF
  6281. }
  6282. b := dAtA[iNdEx]
  6283. iNdEx++
  6284. mapmsglen |= (int(b) & 0x7F) << shift
  6285. if b < 0x80 {
  6286. break
  6287. }
  6288. }
  6289. if mapmsglen < 0 {
  6290. return ErrInvalidLengthApi
  6291. }
  6292. postmsgIndex := iNdEx + mapmsglen
  6293. if mapmsglen < 0 {
  6294. return ErrInvalidLengthApi
  6295. }
  6296. if postmsgIndex > l {
  6297. return io.ErrUnexpectedEOF
  6298. }
  6299. mapvalue = &ViewReply{}
  6300. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  6301. return err
  6302. }
  6303. iNdEx = postmsgIndex
  6304. } else {
  6305. iNdEx = entryPreIndex
  6306. skippy, err := skipApi(dAtA[iNdEx:])
  6307. if err != nil {
  6308. return err
  6309. }
  6310. if skippy < 0 {
  6311. return ErrInvalidLengthApi
  6312. }
  6313. if (iNdEx + skippy) > postIndex {
  6314. return io.ErrUnexpectedEOF
  6315. }
  6316. iNdEx += skippy
  6317. }
  6318. }
  6319. m.Views[mapkey] = mapvalue
  6320. iNdEx = postIndex
  6321. default:
  6322. iNdEx = preIndex
  6323. skippy, err := skipApi(dAtA[iNdEx:])
  6324. if err != nil {
  6325. return err
  6326. }
  6327. if skippy < 0 {
  6328. return ErrInvalidLengthApi
  6329. }
  6330. if (iNdEx + skippy) > l {
  6331. return io.ErrUnexpectedEOF
  6332. }
  6333. iNdEx += skippy
  6334. }
  6335. }
  6336. if iNdEx > l {
  6337. return io.ErrUnexpectedEOF
  6338. }
  6339. return nil
  6340. }
  6341. func (m *TypesReply) Unmarshal(dAtA []byte) error {
  6342. l := len(dAtA)
  6343. iNdEx := 0
  6344. for iNdEx < l {
  6345. preIndex := iNdEx
  6346. var wire uint64
  6347. for shift := uint(0); ; shift += 7 {
  6348. if shift >= 64 {
  6349. return ErrIntOverflowApi
  6350. }
  6351. if iNdEx >= l {
  6352. return io.ErrUnexpectedEOF
  6353. }
  6354. b := dAtA[iNdEx]
  6355. iNdEx++
  6356. wire |= (uint64(b) & 0x7F) << shift
  6357. if b < 0x80 {
  6358. break
  6359. }
  6360. }
  6361. fieldNum := int32(wire >> 3)
  6362. wireType := int(wire & 0x7)
  6363. if wireType == 4 {
  6364. return fmt.Errorf("proto: TypesReply: wiretype end group for non-group")
  6365. }
  6366. if fieldNum <= 0 {
  6367. return fmt.Errorf("proto: TypesReply: illegal tag %d (wire type %d)", fieldNum, wire)
  6368. }
  6369. switch fieldNum {
  6370. case 1:
  6371. if wireType != 2 {
  6372. return fmt.Errorf("proto: wrong wireType = %d for field Types", wireType)
  6373. }
  6374. var msglen int
  6375. for shift := uint(0); ; shift += 7 {
  6376. if shift >= 64 {
  6377. return ErrIntOverflowApi
  6378. }
  6379. if iNdEx >= l {
  6380. return io.ErrUnexpectedEOF
  6381. }
  6382. b := dAtA[iNdEx]
  6383. iNdEx++
  6384. msglen |= (int(b) & 0x7F) << shift
  6385. if b < 0x80 {
  6386. break
  6387. }
  6388. }
  6389. if msglen < 0 {
  6390. return ErrInvalidLengthApi
  6391. }
  6392. postIndex := iNdEx + msglen
  6393. if postIndex > l {
  6394. return io.ErrUnexpectedEOF
  6395. }
  6396. if m.Types == nil {
  6397. m.Types = make(map[int32]*Tp)
  6398. }
  6399. var mapkey int32
  6400. var mapvalue *Tp
  6401. for iNdEx < postIndex {
  6402. entryPreIndex := iNdEx
  6403. var wire uint64
  6404. for shift := uint(0); ; shift += 7 {
  6405. if shift >= 64 {
  6406. return ErrIntOverflowApi
  6407. }
  6408. if iNdEx >= l {
  6409. return io.ErrUnexpectedEOF
  6410. }
  6411. b := dAtA[iNdEx]
  6412. iNdEx++
  6413. wire |= (uint64(b) & 0x7F) << shift
  6414. if b < 0x80 {
  6415. break
  6416. }
  6417. }
  6418. fieldNum := int32(wire >> 3)
  6419. if fieldNum == 1 {
  6420. for shift := uint(0); ; shift += 7 {
  6421. if shift >= 64 {
  6422. return ErrIntOverflowApi
  6423. }
  6424. if iNdEx >= l {
  6425. return io.ErrUnexpectedEOF
  6426. }
  6427. b := dAtA[iNdEx]
  6428. iNdEx++
  6429. mapkey |= (int32(b) & 0x7F) << shift
  6430. if b < 0x80 {
  6431. break
  6432. }
  6433. }
  6434. } else if fieldNum == 2 {
  6435. var mapmsglen int
  6436. for shift := uint(0); ; shift += 7 {
  6437. if shift >= 64 {
  6438. return ErrIntOverflowApi
  6439. }
  6440. if iNdEx >= l {
  6441. return io.ErrUnexpectedEOF
  6442. }
  6443. b := dAtA[iNdEx]
  6444. iNdEx++
  6445. mapmsglen |= (int(b) & 0x7F) << shift
  6446. if b < 0x80 {
  6447. break
  6448. }
  6449. }
  6450. if mapmsglen < 0 {
  6451. return ErrInvalidLengthApi
  6452. }
  6453. postmsgIndex := iNdEx + mapmsglen
  6454. if mapmsglen < 0 {
  6455. return ErrInvalidLengthApi
  6456. }
  6457. if postmsgIndex > l {
  6458. return io.ErrUnexpectedEOF
  6459. }
  6460. mapvalue = &Tp{}
  6461. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  6462. return err
  6463. }
  6464. iNdEx = postmsgIndex
  6465. } else {
  6466. iNdEx = entryPreIndex
  6467. skippy, err := skipApi(dAtA[iNdEx:])
  6468. if err != nil {
  6469. return err
  6470. }
  6471. if skippy < 0 {
  6472. return ErrInvalidLengthApi
  6473. }
  6474. if (iNdEx + skippy) > postIndex {
  6475. return io.ErrUnexpectedEOF
  6476. }
  6477. iNdEx += skippy
  6478. }
  6479. }
  6480. m.Types[mapkey] = mapvalue
  6481. iNdEx = postIndex
  6482. default:
  6483. iNdEx = preIndex
  6484. skippy, err := skipApi(dAtA[iNdEx:])
  6485. if err != nil {
  6486. return err
  6487. }
  6488. if skippy < 0 {
  6489. return ErrInvalidLengthApi
  6490. }
  6491. if (iNdEx + skippy) > l {
  6492. return io.ErrUnexpectedEOF
  6493. }
  6494. iNdEx += skippy
  6495. }
  6496. }
  6497. if iNdEx > l {
  6498. return io.ErrUnexpectedEOF
  6499. }
  6500. return nil
  6501. }
  6502. func (m *ClickRequest) Unmarshal(dAtA []byte) error {
  6503. l := len(dAtA)
  6504. iNdEx := 0
  6505. for iNdEx < l {
  6506. preIndex := iNdEx
  6507. var wire uint64
  6508. for shift := uint(0); ; shift += 7 {
  6509. if shift >= 64 {
  6510. return ErrIntOverflowApi
  6511. }
  6512. if iNdEx >= l {
  6513. return io.ErrUnexpectedEOF
  6514. }
  6515. b := dAtA[iNdEx]
  6516. iNdEx++
  6517. wire |= (uint64(b) & 0x7F) << shift
  6518. if b < 0x80 {
  6519. break
  6520. }
  6521. }
  6522. fieldNum := int32(wire >> 3)
  6523. wireType := int(wire & 0x7)
  6524. if wireType == 4 {
  6525. return fmt.Errorf("proto: ClickRequest: wiretype end group for non-group")
  6526. }
  6527. if fieldNum <= 0 {
  6528. return fmt.Errorf("proto: ClickRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6529. }
  6530. switch fieldNum {
  6531. case 1:
  6532. if wireType != 0 {
  6533. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  6534. }
  6535. m.Aid = 0
  6536. for shift := uint(0); ; shift += 7 {
  6537. if shift >= 64 {
  6538. return ErrIntOverflowApi
  6539. }
  6540. if iNdEx >= l {
  6541. return io.ErrUnexpectedEOF
  6542. }
  6543. b := dAtA[iNdEx]
  6544. iNdEx++
  6545. m.Aid |= (int64(b) & 0x7F) << shift
  6546. if b < 0x80 {
  6547. break
  6548. }
  6549. }
  6550. default:
  6551. iNdEx = preIndex
  6552. skippy, err := skipApi(dAtA[iNdEx:])
  6553. if err != nil {
  6554. return err
  6555. }
  6556. if skippy < 0 {
  6557. return ErrInvalidLengthApi
  6558. }
  6559. if (iNdEx + skippy) > l {
  6560. return io.ErrUnexpectedEOF
  6561. }
  6562. iNdEx += skippy
  6563. }
  6564. }
  6565. if iNdEx > l {
  6566. return io.ErrUnexpectedEOF
  6567. }
  6568. return nil
  6569. }
  6570. func (m *ClickReply) Unmarshal(dAtA []byte) error {
  6571. l := len(dAtA)
  6572. iNdEx := 0
  6573. for iNdEx < l {
  6574. preIndex := iNdEx
  6575. var wire uint64
  6576. for shift := uint(0); ; shift += 7 {
  6577. if shift >= 64 {
  6578. return ErrIntOverflowApi
  6579. }
  6580. if iNdEx >= l {
  6581. return io.ErrUnexpectedEOF
  6582. }
  6583. b := dAtA[iNdEx]
  6584. iNdEx++
  6585. wire |= (uint64(b) & 0x7F) << shift
  6586. if b < 0x80 {
  6587. break
  6588. }
  6589. }
  6590. fieldNum := int32(wire >> 3)
  6591. wireType := int(wire & 0x7)
  6592. if wireType == 4 {
  6593. return fmt.Errorf("proto: ClickReply: wiretype end group for non-group")
  6594. }
  6595. if fieldNum <= 0 {
  6596. return fmt.Errorf("proto: ClickReply: illegal tag %d (wire type %d)", fieldNum, wire)
  6597. }
  6598. switch fieldNum {
  6599. case 1:
  6600. if wireType != 2 {
  6601. return fmt.Errorf("proto: wrong wireType = %d for field Click", wireType)
  6602. }
  6603. var msglen int
  6604. for shift := uint(0); ; shift += 7 {
  6605. if shift >= 64 {
  6606. return ErrIntOverflowApi
  6607. }
  6608. if iNdEx >= l {
  6609. return io.ErrUnexpectedEOF
  6610. }
  6611. b := dAtA[iNdEx]
  6612. iNdEx++
  6613. msglen |= (int(b) & 0x7F) << shift
  6614. if b < 0x80 {
  6615. break
  6616. }
  6617. }
  6618. if msglen < 0 {
  6619. return ErrInvalidLengthApi
  6620. }
  6621. postIndex := iNdEx + msglen
  6622. if postIndex > l {
  6623. return io.ErrUnexpectedEOF
  6624. }
  6625. if m.Click == nil {
  6626. m.Click = &Click{}
  6627. }
  6628. if err := m.Click.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6629. return err
  6630. }
  6631. iNdEx = postIndex
  6632. default:
  6633. iNdEx = preIndex
  6634. skippy, err := skipApi(dAtA[iNdEx:])
  6635. if err != nil {
  6636. return err
  6637. }
  6638. if skippy < 0 {
  6639. return ErrInvalidLengthApi
  6640. }
  6641. if (iNdEx + skippy) > l {
  6642. return io.ErrUnexpectedEOF
  6643. }
  6644. iNdEx += skippy
  6645. }
  6646. }
  6647. if iNdEx > l {
  6648. return io.ErrUnexpectedEOF
  6649. }
  6650. return nil
  6651. }
  6652. func (m *PageRequest) Unmarshal(dAtA []byte) error {
  6653. l := len(dAtA)
  6654. iNdEx := 0
  6655. for iNdEx < l {
  6656. preIndex := iNdEx
  6657. var wire uint64
  6658. for shift := uint(0); ; shift += 7 {
  6659. if shift >= 64 {
  6660. return ErrIntOverflowApi
  6661. }
  6662. if iNdEx >= l {
  6663. return io.ErrUnexpectedEOF
  6664. }
  6665. b := dAtA[iNdEx]
  6666. iNdEx++
  6667. wire |= (uint64(b) & 0x7F) << shift
  6668. if b < 0x80 {
  6669. break
  6670. }
  6671. }
  6672. fieldNum := int32(wire >> 3)
  6673. wireType := int(wire & 0x7)
  6674. if wireType == 4 {
  6675. return fmt.Errorf("proto: PageRequest: wiretype end group for non-group")
  6676. }
  6677. if fieldNum <= 0 {
  6678. return fmt.Errorf("proto: PageRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6679. }
  6680. switch fieldNum {
  6681. case 1:
  6682. if wireType != 0 {
  6683. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  6684. }
  6685. m.Aid = 0
  6686. for shift := uint(0); ; shift += 7 {
  6687. if shift >= 64 {
  6688. return ErrIntOverflowApi
  6689. }
  6690. if iNdEx >= l {
  6691. return io.ErrUnexpectedEOF
  6692. }
  6693. b := dAtA[iNdEx]
  6694. iNdEx++
  6695. m.Aid |= (int64(b) & 0x7F) << shift
  6696. if b < 0x80 {
  6697. break
  6698. }
  6699. }
  6700. default:
  6701. iNdEx = preIndex
  6702. skippy, err := skipApi(dAtA[iNdEx:])
  6703. if err != nil {
  6704. return err
  6705. }
  6706. if skippy < 0 {
  6707. return ErrInvalidLengthApi
  6708. }
  6709. if (iNdEx + skippy) > l {
  6710. return io.ErrUnexpectedEOF
  6711. }
  6712. iNdEx += skippy
  6713. }
  6714. }
  6715. if iNdEx > l {
  6716. return io.ErrUnexpectedEOF
  6717. }
  6718. return nil
  6719. }
  6720. func (m *PageReply) Unmarshal(dAtA []byte) error {
  6721. l := len(dAtA)
  6722. iNdEx := 0
  6723. for iNdEx < l {
  6724. preIndex := iNdEx
  6725. var wire uint64
  6726. for shift := uint(0); ; shift += 7 {
  6727. if shift >= 64 {
  6728. return ErrIntOverflowApi
  6729. }
  6730. if iNdEx >= l {
  6731. return io.ErrUnexpectedEOF
  6732. }
  6733. b := dAtA[iNdEx]
  6734. iNdEx++
  6735. wire |= (uint64(b) & 0x7F) << shift
  6736. if b < 0x80 {
  6737. break
  6738. }
  6739. }
  6740. fieldNum := int32(wire >> 3)
  6741. wireType := int(wire & 0x7)
  6742. if wireType == 4 {
  6743. return fmt.Errorf("proto: PageReply: wiretype end group for non-group")
  6744. }
  6745. if fieldNum <= 0 {
  6746. return fmt.Errorf("proto: PageReply: illegal tag %d (wire type %d)", fieldNum, wire)
  6747. }
  6748. switch fieldNum {
  6749. case 1:
  6750. if wireType != 2 {
  6751. return fmt.Errorf("proto: wrong wireType = %d for field Pages", wireType)
  6752. }
  6753. var msglen int
  6754. for shift := uint(0); ; shift += 7 {
  6755. if shift >= 64 {
  6756. return ErrIntOverflowApi
  6757. }
  6758. if iNdEx >= l {
  6759. return io.ErrUnexpectedEOF
  6760. }
  6761. b := dAtA[iNdEx]
  6762. iNdEx++
  6763. msglen |= (int(b) & 0x7F) << shift
  6764. if b < 0x80 {
  6765. break
  6766. }
  6767. }
  6768. if msglen < 0 {
  6769. return ErrInvalidLengthApi
  6770. }
  6771. postIndex := iNdEx + msglen
  6772. if postIndex > l {
  6773. return io.ErrUnexpectedEOF
  6774. }
  6775. m.Pages = append(m.Pages, &Page{})
  6776. if err := m.Pages[len(m.Pages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6777. return err
  6778. }
  6779. iNdEx = postIndex
  6780. default:
  6781. iNdEx = preIndex
  6782. skippy, err := skipApi(dAtA[iNdEx:])
  6783. if err != nil {
  6784. return err
  6785. }
  6786. if skippy < 0 {
  6787. return ErrInvalidLengthApi
  6788. }
  6789. if (iNdEx + skippy) > l {
  6790. return io.ErrUnexpectedEOF
  6791. }
  6792. iNdEx += skippy
  6793. }
  6794. }
  6795. if iNdEx > l {
  6796. return io.ErrUnexpectedEOF
  6797. }
  6798. return nil
  6799. }
  6800. func (m *RecommendRequest) Unmarshal(dAtA []byte) error {
  6801. l := len(dAtA)
  6802. iNdEx := 0
  6803. for iNdEx < l {
  6804. preIndex := iNdEx
  6805. var wire uint64
  6806. for shift := uint(0); ; shift += 7 {
  6807. if shift >= 64 {
  6808. return ErrIntOverflowApi
  6809. }
  6810. if iNdEx >= l {
  6811. return io.ErrUnexpectedEOF
  6812. }
  6813. b := dAtA[iNdEx]
  6814. iNdEx++
  6815. wire |= (uint64(b) & 0x7F) << shift
  6816. if b < 0x80 {
  6817. break
  6818. }
  6819. }
  6820. fieldNum := int32(wire >> 3)
  6821. wireType := int(wire & 0x7)
  6822. if wireType == 4 {
  6823. return fmt.Errorf("proto: RecommendRequest: wiretype end group for non-group")
  6824. }
  6825. if fieldNum <= 0 {
  6826. return fmt.Errorf("proto: RecommendRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6827. }
  6828. switch fieldNum {
  6829. case 1:
  6830. if wireType != 0 {
  6831. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  6832. }
  6833. m.Aid = 0
  6834. for shift := uint(0); ; shift += 7 {
  6835. if shift >= 64 {
  6836. return ErrIntOverflowApi
  6837. }
  6838. if iNdEx >= l {
  6839. return io.ErrUnexpectedEOF
  6840. }
  6841. b := dAtA[iNdEx]
  6842. iNdEx++
  6843. m.Aid |= (int64(b) & 0x7F) << shift
  6844. if b < 0x80 {
  6845. break
  6846. }
  6847. }
  6848. default:
  6849. iNdEx = preIndex
  6850. skippy, err := skipApi(dAtA[iNdEx:])
  6851. if err != nil {
  6852. return err
  6853. }
  6854. if skippy < 0 {
  6855. return ErrInvalidLengthApi
  6856. }
  6857. if (iNdEx + skippy) > l {
  6858. return io.ErrUnexpectedEOF
  6859. }
  6860. iNdEx += skippy
  6861. }
  6862. }
  6863. if iNdEx > l {
  6864. return io.ErrUnexpectedEOF
  6865. }
  6866. return nil
  6867. }
  6868. func (m *RecommendReply) Unmarshal(dAtA []byte) error {
  6869. l := len(dAtA)
  6870. iNdEx := 0
  6871. for iNdEx < l {
  6872. preIndex := iNdEx
  6873. var wire uint64
  6874. for shift := uint(0); ; shift += 7 {
  6875. if shift >= 64 {
  6876. return ErrIntOverflowApi
  6877. }
  6878. if iNdEx >= l {
  6879. return io.ErrUnexpectedEOF
  6880. }
  6881. b := dAtA[iNdEx]
  6882. iNdEx++
  6883. wire |= (uint64(b) & 0x7F) << shift
  6884. if b < 0x80 {
  6885. break
  6886. }
  6887. }
  6888. fieldNum := int32(wire >> 3)
  6889. wireType := int(wire & 0x7)
  6890. if wireType == 4 {
  6891. return fmt.Errorf("proto: RecommendReply: wiretype end group for non-group")
  6892. }
  6893. if fieldNum <= 0 {
  6894. return fmt.Errorf("proto: RecommendReply: illegal tag %d (wire type %d)", fieldNum, wire)
  6895. }
  6896. switch fieldNum {
  6897. case 1:
  6898. if wireType != 2 {
  6899. return fmt.Errorf("proto: wrong wireType = %d for field Arcs", wireType)
  6900. }
  6901. var msglen int
  6902. for shift := uint(0); ; shift += 7 {
  6903. if shift >= 64 {
  6904. return ErrIntOverflowApi
  6905. }
  6906. if iNdEx >= l {
  6907. return io.ErrUnexpectedEOF
  6908. }
  6909. b := dAtA[iNdEx]
  6910. iNdEx++
  6911. msglen |= (int(b) & 0x7F) << shift
  6912. if b < 0x80 {
  6913. break
  6914. }
  6915. }
  6916. if msglen < 0 {
  6917. return ErrInvalidLengthApi
  6918. }
  6919. postIndex := iNdEx + msglen
  6920. if postIndex > l {
  6921. return io.ErrUnexpectedEOF
  6922. }
  6923. m.Arcs = append(m.Arcs, &Arc{})
  6924. if err := m.Arcs[len(m.Arcs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6925. return err
  6926. }
  6927. iNdEx = postIndex
  6928. default:
  6929. iNdEx = preIndex
  6930. skippy, err := skipApi(dAtA[iNdEx:])
  6931. if err != nil {
  6932. return err
  6933. }
  6934. if skippy < 0 {
  6935. return ErrInvalidLengthApi
  6936. }
  6937. if (iNdEx + skippy) > l {
  6938. return io.ErrUnexpectedEOF
  6939. }
  6940. iNdEx += skippy
  6941. }
  6942. }
  6943. if iNdEx > l {
  6944. return io.ErrUnexpectedEOF
  6945. }
  6946. return nil
  6947. }
  6948. func (m *VideoRequest) Unmarshal(dAtA []byte) error {
  6949. l := len(dAtA)
  6950. iNdEx := 0
  6951. for iNdEx < l {
  6952. preIndex := iNdEx
  6953. var wire uint64
  6954. for shift := uint(0); ; shift += 7 {
  6955. if shift >= 64 {
  6956. return ErrIntOverflowApi
  6957. }
  6958. if iNdEx >= l {
  6959. return io.ErrUnexpectedEOF
  6960. }
  6961. b := dAtA[iNdEx]
  6962. iNdEx++
  6963. wire |= (uint64(b) & 0x7F) << shift
  6964. if b < 0x80 {
  6965. break
  6966. }
  6967. }
  6968. fieldNum := int32(wire >> 3)
  6969. wireType := int(wire & 0x7)
  6970. if wireType == 4 {
  6971. return fmt.Errorf("proto: VideoRequest: wiretype end group for non-group")
  6972. }
  6973. if fieldNum <= 0 {
  6974. return fmt.Errorf("proto: VideoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6975. }
  6976. switch fieldNum {
  6977. case 1:
  6978. if wireType != 0 {
  6979. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  6980. }
  6981. m.Aid = 0
  6982. for shift := uint(0); ; shift += 7 {
  6983. if shift >= 64 {
  6984. return ErrIntOverflowApi
  6985. }
  6986. if iNdEx >= l {
  6987. return io.ErrUnexpectedEOF
  6988. }
  6989. b := dAtA[iNdEx]
  6990. iNdEx++
  6991. m.Aid |= (int64(b) & 0x7F) << shift
  6992. if b < 0x80 {
  6993. break
  6994. }
  6995. }
  6996. case 2:
  6997. if wireType != 0 {
  6998. return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
  6999. }
  7000. m.Cid = 0
  7001. for shift := uint(0); ; shift += 7 {
  7002. if shift >= 64 {
  7003. return ErrIntOverflowApi
  7004. }
  7005. if iNdEx >= l {
  7006. return io.ErrUnexpectedEOF
  7007. }
  7008. b := dAtA[iNdEx]
  7009. iNdEx++
  7010. m.Cid |= (int64(b) & 0x7F) << shift
  7011. if b < 0x80 {
  7012. break
  7013. }
  7014. }
  7015. default:
  7016. iNdEx = preIndex
  7017. skippy, err := skipApi(dAtA[iNdEx:])
  7018. if err != nil {
  7019. return err
  7020. }
  7021. if skippy < 0 {
  7022. return ErrInvalidLengthApi
  7023. }
  7024. if (iNdEx + skippy) > l {
  7025. return io.ErrUnexpectedEOF
  7026. }
  7027. iNdEx += skippy
  7028. }
  7029. }
  7030. if iNdEx > l {
  7031. return io.ErrUnexpectedEOF
  7032. }
  7033. return nil
  7034. }
  7035. func (m *VideoReply) Unmarshal(dAtA []byte) error {
  7036. l := len(dAtA)
  7037. iNdEx := 0
  7038. for iNdEx < l {
  7039. preIndex := iNdEx
  7040. var wire uint64
  7041. for shift := uint(0); ; shift += 7 {
  7042. if shift >= 64 {
  7043. return ErrIntOverflowApi
  7044. }
  7045. if iNdEx >= l {
  7046. return io.ErrUnexpectedEOF
  7047. }
  7048. b := dAtA[iNdEx]
  7049. iNdEx++
  7050. wire |= (uint64(b) & 0x7F) << shift
  7051. if b < 0x80 {
  7052. break
  7053. }
  7054. }
  7055. fieldNum := int32(wire >> 3)
  7056. wireType := int(wire & 0x7)
  7057. if wireType == 4 {
  7058. return fmt.Errorf("proto: VideoReply: wiretype end group for non-group")
  7059. }
  7060. if fieldNum <= 0 {
  7061. return fmt.Errorf("proto: VideoReply: illegal tag %d (wire type %d)", fieldNum, wire)
  7062. }
  7063. switch fieldNum {
  7064. case 1:
  7065. if wireType != 2 {
  7066. return fmt.Errorf("proto: wrong wireType = %d for field Page", wireType)
  7067. }
  7068. var msglen int
  7069. for shift := uint(0); ; shift += 7 {
  7070. if shift >= 64 {
  7071. return ErrIntOverflowApi
  7072. }
  7073. if iNdEx >= l {
  7074. return io.ErrUnexpectedEOF
  7075. }
  7076. b := dAtA[iNdEx]
  7077. iNdEx++
  7078. msglen |= (int(b) & 0x7F) << shift
  7079. if b < 0x80 {
  7080. break
  7081. }
  7082. }
  7083. if msglen < 0 {
  7084. return ErrInvalidLengthApi
  7085. }
  7086. postIndex := iNdEx + msglen
  7087. if postIndex > l {
  7088. return io.ErrUnexpectedEOF
  7089. }
  7090. if m.Page == nil {
  7091. m.Page = &Page{}
  7092. }
  7093. if err := m.Page.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7094. return err
  7095. }
  7096. iNdEx = postIndex
  7097. default:
  7098. iNdEx = preIndex
  7099. skippy, err := skipApi(dAtA[iNdEx:])
  7100. if err != nil {
  7101. return err
  7102. }
  7103. if skippy < 0 {
  7104. return ErrInvalidLengthApi
  7105. }
  7106. if (iNdEx + skippy) > l {
  7107. return io.ErrUnexpectedEOF
  7108. }
  7109. iNdEx += skippy
  7110. }
  7111. }
  7112. if iNdEx > l {
  7113. return io.ErrUnexpectedEOF
  7114. }
  7115. return nil
  7116. }
  7117. func (m *Tp) Unmarshal(dAtA []byte) error {
  7118. l := len(dAtA)
  7119. iNdEx := 0
  7120. for iNdEx < l {
  7121. preIndex := iNdEx
  7122. var wire uint64
  7123. for shift := uint(0); ; shift += 7 {
  7124. if shift >= 64 {
  7125. return ErrIntOverflowApi
  7126. }
  7127. if iNdEx >= l {
  7128. return io.ErrUnexpectedEOF
  7129. }
  7130. b := dAtA[iNdEx]
  7131. iNdEx++
  7132. wire |= (uint64(b) & 0x7F) << shift
  7133. if b < 0x80 {
  7134. break
  7135. }
  7136. }
  7137. fieldNum := int32(wire >> 3)
  7138. wireType := int(wire & 0x7)
  7139. if wireType == 4 {
  7140. return fmt.Errorf("proto: Tp: wiretype end group for non-group")
  7141. }
  7142. if fieldNum <= 0 {
  7143. return fmt.Errorf("proto: Tp: illegal tag %d (wire type %d)", fieldNum, wire)
  7144. }
  7145. switch fieldNum {
  7146. case 1:
  7147. if wireType != 0 {
  7148. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  7149. }
  7150. m.ID = 0
  7151. for shift := uint(0); ; shift += 7 {
  7152. if shift >= 64 {
  7153. return ErrIntOverflowApi
  7154. }
  7155. if iNdEx >= l {
  7156. return io.ErrUnexpectedEOF
  7157. }
  7158. b := dAtA[iNdEx]
  7159. iNdEx++
  7160. m.ID |= (int32(b) & 0x7F) << shift
  7161. if b < 0x80 {
  7162. break
  7163. }
  7164. }
  7165. case 2:
  7166. if wireType != 0 {
  7167. return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
  7168. }
  7169. m.Pid = 0
  7170. for shift := uint(0); ; shift += 7 {
  7171. if shift >= 64 {
  7172. return ErrIntOverflowApi
  7173. }
  7174. if iNdEx >= l {
  7175. return io.ErrUnexpectedEOF
  7176. }
  7177. b := dAtA[iNdEx]
  7178. iNdEx++
  7179. m.Pid |= (int32(b) & 0x7F) << shift
  7180. if b < 0x80 {
  7181. break
  7182. }
  7183. }
  7184. case 3:
  7185. if wireType != 2 {
  7186. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  7187. }
  7188. var stringLen uint64
  7189. for shift := uint(0); ; shift += 7 {
  7190. if shift >= 64 {
  7191. return ErrIntOverflowApi
  7192. }
  7193. if iNdEx >= l {
  7194. return io.ErrUnexpectedEOF
  7195. }
  7196. b := dAtA[iNdEx]
  7197. iNdEx++
  7198. stringLen |= (uint64(b) & 0x7F) << shift
  7199. if b < 0x80 {
  7200. break
  7201. }
  7202. }
  7203. intStringLen := int(stringLen)
  7204. if intStringLen < 0 {
  7205. return ErrInvalidLengthApi
  7206. }
  7207. postIndex := iNdEx + intStringLen
  7208. if postIndex > l {
  7209. return io.ErrUnexpectedEOF
  7210. }
  7211. m.Name = string(dAtA[iNdEx:postIndex])
  7212. iNdEx = postIndex
  7213. default:
  7214. iNdEx = preIndex
  7215. skippy, err := skipApi(dAtA[iNdEx:])
  7216. if err != nil {
  7217. return err
  7218. }
  7219. if skippy < 0 {
  7220. return ErrInvalidLengthApi
  7221. }
  7222. if (iNdEx + skippy) > l {
  7223. return io.ErrUnexpectedEOF
  7224. }
  7225. iNdEx += skippy
  7226. }
  7227. }
  7228. if iNdEx > l {
  7229. return io.ErrUnexpectedEOF
  7230. }
  7231. return nil
  7232. }
  7233. func (m *AidVideos) Unmarshal(dAtA []byte) error {
  7234. l := len(dAtA)
  7235. iNdEx := 0
  7236. for iNdEx < l {
  7237. preIndex := iNdEx
  7238. var wire uint64
  7239. for shift := uint(0); ; shift += 7 {
  7240. if shift >= 64 {
  7241. return ErrIntOverflowApi
  7242. }
  7243. if iNdEx >= l {
  7244. return io.ErrUnexpectedEOF
  7245. }
  7246. b := dAtA[iNdEx]
  7247. iNdEx++
  7248. wire |= (uint64(b) & 0x7F) << shift
  7249. if b < 0x80 {
  7250. break
  7251. }
  7252. }
  7253. fieldNum := int32(wire >> 3)
  7254. wireType := int(wire & 0x7)
  7255. if wireType == 4 {
  7256. return fmt.Errorf("proto: AidVideos: wiretype end group for non-group")
  7257. }
  7258. if fieldNum <= 0 {
  7259. return fmt.Errorf("proto: AidVideos: illegal tag %d (wire type %d)", fieldNum, wire)
  7260. }
  7261. switch fieldNum {
  7262. case 1:
  7263. if wireType != 0 {
  7264. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  7265. }
  7266. m.Aid = 0
  7267. for shift := uint(0); ; shift += 7 {
  7268. if shift >= 64 {
  7269. return ErrIntOverflowApi
  7270. }
  7271. if iNdEx >= l {
  7272. return io.ErrUnexpectedEOF
  7273. }
  7274. b := dAtA[iNdEx]
  7275. iNdEx++
  7276. m.Aid |= (int64(b) & 0x7F) << shift
  7277. if b < 0x80 {
  7278. break
  7279. }
  7280. }
  7281. case 2:
  7282. if wireType != 2 {
  7283. return fmt.Errorf("proto: wrong wireType = %d for field Pages", wireType)
  7284. }
  7285. var msglen int
  7286. for shift := uint(0); ; shift += 7 {
  7287. if shift >= 64 {
  7288. return ErrIntOverflowApi
  7289. }
  7290. if iNdEx >= l {
  7291. return io.ErrUnexpectedEOF
  7292. }
  7293. b := dAtA[iNdEx]
  7294. iNdEx++
  7295. msglen |= (int(b) & 0x7F) << shift
  7296. if b < 0x80 {
  7297. break
  7298. }
  7299. }
  7300. if msglen < 0 {
  7301. return ErrInvalidLengthApi
  7302. }
  7303. postIndex := iNdEx + msglen
  7304. if postIndex > l {
  7305. return io.ErrUnexpectedEOF
  7306. }
  7307. m.Pages = append(m.Pages, &Page{})
  7308. if err := m.Pages[len(m.Pages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7309. return err
  7310. }
  7311. iNdEx = postIndex
  7312. default:
  7313. iNdEx = preIndex
  7314. skippy, err := skipApi(dAtA[iNdEx:])
  7315. if err != nil {
  7316. return err
  7317. }
  7318. if skippy < 0 {
  7319. return ErrInvalidLengthApi
  7320. }
  7321. if (iNdEx + skippy) > l {
  7322. return io.ErrUnexpectedEOF
  7323. }
  7324. iNdEx += skippy
  7325. }
  7326. }
  7327. if iNdEx > l {
  7328. return io.ErrUnexpectedEOF
  7329. }
  7330. return nil
  7331. }
  7332. func (m *Arc) Unmarshal(dAtA []byte) error {
  7333. l := len(dAtA)
  7334. iNdEx := 0
  7335. for iNdEx < l {
  7336. preIndex := iNdEx
  7337. var wire uint64
  7338. for shift := uint(0); ; shift += 7 {
  7339. if shift >= 64 {
  7340. return ErrIntOverflowApi
  7341. }
  7342. if iNdEx >= l {
  7343. return io.ErrUnexpectedEOF
  7344. }
  7345. b := dAtA[iNdEx]
  7346. iNdEx++
  7347. wire |= (uint64(b) & 0x7F) << shift
  7348. if b < 0x80 {
  7349. break
  7350. }
  7351. }
  7352. fieldNum := int32(wire >> 3)
  7353. wireType := int(wire & 0x7)
  7354. if wireType == 4 {
  7355. return fmt.Errorf("proto: Arc: wiretype end group for non-group")
  7356. }
  7357. if fieldNum <= 0 {
  7358. return fmt.Errorf("proto: Arc: illegal tag %d (wire type %d)", fieldNum, wire)
  7359. }
  7360. switch fieldNum {
  7361. case 1:
  7362. if wireType != 0 {
  7363. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  7364. }
  7365. m.Aid = 0
  7366. for shift := uint(0); ; shift += 7 {
  7367. if shift >= 64 {
  7368. return ErrIntOverflowApi
  7369. }
  7370. if iNdEx >= l {
  7371. return io.ErrUnexpectedEOF
  7372. }
  7373. b := dAtA[iNdEx]
  7374. iNdEx++
  7375. m.Aid |= (int64(b) & 0x7F) << shift
  7376. if b < 0x80 {
  7377. break
  7378. }
  7379. }
  7380. case 2:
  7381. if wireType != 0 {
  7382. return fmt.Errorf("proto: wrong wireType = %d for field Videos", wireType)
  7383. }
  7384. m.Videos = 0
  7385. for shift := uint(0); ; shift += 7 {
  7386. if shift >= 64 {
  7387. return ErrIntOverflowApi
  7388. }
  7389. if iNdEx >= l {
  7390. return io.ErrUnexpectedEOF
  7391. }
  7392. b := dAtA[iNdEx]
  7393. iNdEx++
  7394. m.Videos |= (int64(b) & 0x7F) << shift
  7395. if b < 0x80 {
  7396. break
  7397. }
  7398. }
  7399. case 3:
  7400. if wireType != 0 {
  7401. return fmt.Errorf("proto: wrong wireType = %d for field TypeID", wireType)
  7402. }
  7403. m.TypeID = 0
  7404. for shift := uint(0); ; shift += 7 {
  7405. if shift >= 64 {
  7406. return ErrIntOverflowApi
  7407. }
  7408. if iNdEx >= l {
  7409. return io.ErrUnexpectedEOF
  7410. }
  7411. b := dAtA[iNdEx]
  7412. iNdEx++
  7413. m.TypeID |= (int32(b) & 0x7F) << shift
  7414. if b < 0x80 {
  7415. break
  7416. }
  7417. }
  7418. case 4:
  7419. if wireType != 2 {
  7420. return fmt.Errorf("proto: wrong wireType = %d for field TypeName", wireType)
  7421. }
  7422. var stringLen uint64
  7423. for shift := uint(0); ; shift += 7 {
  7424. if shift >= 64 {
  7425. return ErrIntOverflowApi
  7426. }
  7427. if iNdEx >= l {
  7428. return io.ErrUnexpectedEOF
  7429. }
  7430. b := dAtA[iNdEx]
  7431. iNdEx++
  7432. stringLen |= (uint64(b) & 0x7F) << shift
  7433. if b < 0x80 {
  7434. break
  7435. }
  7436. }
  7437. intStringLen := int(stringLen)
  7438. if intStringLen < 0 {
  7439. return ErrInvalidLengthApi
  7440. }
  7441. postIndex := iNdEx + intStringLen
  7442. if postIndex > l {
  7443. return io.ErrUnexpectedEOF
  7444. }
  7445. m.TypeName = string(dAtA[iNdEx:postIndex])
  7446. iNdEx = postIndex
  7447. case 5:
  7448. if wireType != 0 {
  7449. return fmt.Errorf("proto: wrong wireType = %d for field Copyright", wireType)
  7450. }
  7451. m.Copyright = 0
  7452. for shift := uint(0); ; shift += 7 {
  7453. if shift >= 64 {
  7454. return ErrIntOverflowApi
  7455. }
  7456. if iNdEx >= l {
  7457. return io.ErrUnexpectedEOF
  7458. }
  7459. b := dAtA[iNdEx]
  7460. iNdEx++
  7461. m.Copyright |= (int32(b) & 0x7F) << shift
  7462. if b < 0x80 {
  7463. break
  7464. }
  7465. }
  7466. case 6:
  7467. if wireType != 2 {
  7468. return fmt.Errorf("proto: wrong wireType = %d for field Pic", wireType)
  7469. }
  7470. var stringLen uint64
  7471. for shift := uint(0); ; shift += 7 {
  7472. if shift >= 64 {
  7473. return ErrIntOverflowApi
  7474. }
  7475. if iNdEx >= l {
  7476. return io.ErrUnexpectedEOF
  7477. }
  7478. b := dAtA[iNdEx]
  7479. iNdEx++
  7480. stringLen |= (uint64(b) & 0x7F) << shift
  7481. if b < 0x80 {
  7482. break
  7483. }
  7484. }
  7485. intStringLen := int(stringLen)
  7486. if intStringLen < 0 {
  7487. return ErrInvalidLengthApi
  7488. }
  7489. postIndex := iNdEx + intStringLen
  7490. if postIndex > l {
  7491. return io.ErrUnexpectedEOF
  7492. }
  7493. m.Pic = string(dAtA[iNdEx:postIndex])
  7494. iNdEx = postIndex
  7495. case 7:
  7496. if wireType != 2 {
  7497. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  7498. }
  7499. var stringLen uint64
  7500. for shift := uint(0); ; shift += 7 {
  7501. if shift >= 64 {
  7502. return ErrIntOverflowApi
  7503. }
  7504. if iNdEx >= l {
  7505. return io.ErrUnexpectedEOF
  7506. }
  7507. b := dAtA[iNdEx]
  7508. iNdEx++
  7509. stringLen |= (uint64(b) & 0x7F) << shift
  7510. if b < 0x80 {
  7511. break
  7512. }
  7513. }
  7514. intStringLen := int(stringLen)
  7515. if intStringLen < 0 {
  7516. return ErrInvalidLengthApi
  7517. }
  7518. postIndex := iNdEx + intStringLen
  7519. if postIndex > l {
  7520. return io.ErrUnexpectedEOF
  7521. }
  7522. m.Title = string(dAtA[iNdEx:postIndex])
  7523. iNdEx = postIndex
  7524. case 8:
  7525. if wireType != 0 {
  7526. return fmt.Errorf("proto: wrong wireType = %d for field PubDate", wireType)
  7527. }
  7528. m.PubDate = 0
  7529. for shift := uint(0); ; shift += 7 {
  7530. if shift >= 64 {
  7531. return ErrIntOverflowApi
  7532. }
  7533. if iNdEx >= l {
  7534. return io.ErrUnexpectedEOF
  7535. }
  7536. b := dAtA[iNdEx]
  7537. iNdEx++
  7538. m.PubDate |= (go_common_library_time.Time(b) & 0x7F) << shift
  7539. if b < 0x80 {
  7540. break
  7541. }
  7542. }
  7543. case 9:
  7544. if wireType != 0 {
  7545. return fmt.Errorf("proto: wrong wireType = %d for field Ctime", wireType)
  7546. }
  7547. m.Ctime = 0
  7548. for shift := uint(0); ; shift += 7 {
  7549. if shift >= 64 {
  7550. return ErrIntOverflowApi
  7551. }
  7552. if iNdEx >= l {
  7553. return io.ErrUnexpectedEOF
  7554. }
  7555. b := dAtA[iNdEx]
  7556. iNdEx++
  7557. m.Ctime |= (go_common_library_time.Time(b) & 0x7F) << shift
  7558. if b < 0x80 {
  7559. break
  7560. }
  7561. }
  7562. case 10:
  7563. if wireType != 2 {
  7564. return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType)
  7565. }
  7566. var stringLen uint64
  7567. for shift := uint(0); ; shift += 7 {
  7568. if shift >= 64 {
  7569. return ErrIntOverflowApi
  7570. }
  7571. if iNdEx >= l {
  7572. return io.ErrUnexpectedEOF
  7573. }
  7574. b := dAtA[iNdEx]
  7575. iNdEx++
  7576. stringLen |= (uint64(b) & 0x7F) << shift
  7577. if b < 0x80 {
  7578. break
  7579. }
  7580. }
  7581. intStringLen := int(stringLen)
  7582. if intStringLen < 0 {
  7583. return ErrInvalidLengthApi
  7584. }
  7585. postIndex := iNdEx + intStringLen
  7586. if postIndex > l {
  7587. return io.ErrUnexpectedEOF
  7588. }
  7589. m.Desc = string(dAtA[iNdEx:postIndex])
  7590. iNdEx = postIndex
  7591. case 11:
  7592. if wireType != 0 {
  7593. return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  7594. }
  7595. m.State = 0
  7596. for shift := uint(0); ; shift += 7 {
  7597. if shift >= 64 {
  7598. return ErrIntOverflowApi
  7599. }
  7600. if iNdEx >= l {
  7601. return io.ErrUnexpectedEOF
  7602. }
  7603. b := dAtA[iNdEx]
  7604. iNdEx++
  7605. m.State |= (int32(b) & 0x7F) << shift
  7606. if b < 0x80 {
  7607. break
  7608. }
  7609. }
  7610. case 12:
  7611. if wireType != 0 {
  7612. return fmt.Errorf("proto: wrong wireType = %d for field Access", wireType)
  7613. }
  7614. m.Access = 0
  7615. for shift := uint(0); ; shift += 7 {
  7616. if shift >= 64 {
  7617. return ErrIntOverflowApi
  7618. }
  7619. if iNdEx >= l {
  7620. return io.ErrUnexpectedEOF
  7621. }
  7622. b := dAtA[iNdEx]
  7623. iNdEx++
  7624. m.Access |= (int32(b) & 0x7F) << shift
  7625. if b < 0x80 {
  7626. break
  7627. }
  7628. }
  7629. case 13:
  7630. if wireType != 0 {
  7631. return fmt.Errorf("proto: wrong wireType = %d for field Attribute", wireType)
  7632. }
  7633. m.Attribute = 0
  7634. for shift := uint(0); ; shift += 7 {
  7635. if shift >= 64 {
  7636. return ErrIntOverflowApi
  7637. }
  7638. if iNdEx >= l {
  7639. return io.ErrUnexpectedEOF
  7640. }
  7641. b := dAtA[iNdEx]
  7642. iNdEx++
  7643. m.Attribute |= (int32(b) & 0x7F) << shift
  7644. if b < 0x80 {
  7645. break
  7646. }
  7647. }
  7648. case 14:
  7649. if wireType != 2 {
  7650. return fmt.Errorf("proto: wrong wireType = %d for field Tag", wireType)
  7651. }
  7652. var stringLen uint64
  7653. for shift := uint(0); ; shift += 7 {
  7654. if shift >= 64 {
  7655. return ErrIntOverflowApi
  7656. }
  7657. if iNdEx >= l {
  7658. return io.ErrUnexpectedEOF
  7659. }
  7660. b := dAtA[iNdEx]
  7661. iNdEx++
  7662. stringLen |= (uint64(b) & 0x7F) << shift
  7663. if b < 0x80 {
  7664. break
  7665. }
  7666. }
  7667. intStringLen := int(stringLen)
  7668. if intStringLen < 0 {
  7669. return ErrInvalidLengthApi
  7670. }
  7671. postIndex := iNdEx + intStringLen
  7672. if postIndex > l {
  7673. return io.ErrUnexpectedEOF
  7674. }
  7675. m.Tag = string(dAtA[iNdEx:postIndex])
  7676. iNdEx = postIndex
  7677. case 15:
  7678. if wireType != 2 {
  7679. return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
  7680. }
  7681. var stringLen uint64
  7682. for shift := uint(0); ; shift += 7 {
  7683. if shift >= 64 {
  7684. return ErrIntOverflowApi
  7685. }
  7686. if iNdEx >= l {
  7687. return io.ErrUnexpectedEOF
  7688. }
  7689. b := dAtA[iNdEx]
  7690. iNdEx++
  7691. stringLen |= (uint64(b) & 0x7F) << shift
  7692. if b < 0x80 {
  7693. break
  7694. }
  7695. }
  7696. intStringLen := int(stringLen)
  7697. if intStringLen < 0 {
  7698. return ErrInvalidLengthApi
  7699. }
  7700. postIndex := iNdEx + intStringLen
  7701. if postIndex > l {
  7702. return io.ErrUnexpectedEOF
  7703. }
  7704. m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex]))
  7705. iNdEx = postIndex
  7706. case 16:
  7707. if wireType != 0 {
  7708. return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType)
  7709. }
  7710. m.Duration = 0
  7711. for shift := uint(0); ; shift += 7 {
  7712. if shift >= 64 {
  7713. return ErrIntOverflowApi
  7714. }
  7715. if iNdEx >= l {
  7716. return io.ErrUnexpectedEOF
  7717. }
  7718. b := dAtA[iNdEx]
  7719. iNdEx++
  7720. m.Duration |= (int64(b) & 0x7F) << shift
  7721. if b < 0x80 {
  7722. break
  7723. }
  7724. }
  7725. case 17:
  7726. if wireType != 0 {
  7727. return fmt.Errorf("proto: wrong wireType = %d for field MissionID", wireType)
  7728. }
  7729. m.MissionID = 0
  7730. for shift := uint(0); ; shift += 7 {
  7731. if shift >= 64 {
  7732. return ErrIntOverflowApi
  7733. }
  7734. if iNdEx >= l {
  7735. return io.ErrUnexpectedEOF
  7736. }
  7737. b := dAtA[iNdEx]
  7738. iNdEx++
  7739. m.MissionID |= (int64(b) & 0x7F) << shift
  7740. if b < 0x80 {
  7741. break
  7742. }
  7743. }
  7744. case 18:
  7745. if wireType != 0 {
  7746. return fmt.Errorf("proto: wrong wireType = %d for field OrderID", wireType)
  7747. }
  7748. m.OrderID = 0
  7749. for shift := uint(0); ; shift += 7 {
  7750. if shift >= 64 {
  7751. return ErrIntOverflowApi
  7752. }
  7753. if iNdEx >= l {
  7754. return io.ErrUnexpectedEOF
  7755. }
  7756. b := dAtA[iNdEx]
  7757. iNdEx++
  7758. m.OrderID |= (int64(b) & 0x7F) << shift
  7759. if b < 0x80 {
  7760. break
  7761. }
  7762. }
  7763. case 19:
  7764. if wireType != 2 {
  7765. return fmt.Errorf("proto: wrong wireType = %d for field RedirectURL", wireType)
  7766. }
  7767. var stringLen uint64
  7768. for shift := uint(0); ; shift += 7 {
  7769. if shift >= 64 {
  7770. return ErrIntOverflowApi
  7771. }
  7772. if iNdEx >= l {
  7773. return io.ErrUnexpectedEOF
  7774. }
  7775. b := dAtA[iNdEx]
  7776. iNdEx++
  7777. stringLen |= (uint64(b) & 0x7F) << shift
  7778. if b < 0x80 {
  7779. break
  7780. }
  7781. }
  7782. intStringLen := int(stringLen)
  7783. if intStringLen < 0 {
  7784. return ErrInvalidLengthApi
  7785. }
  7786. postIndex := iNdEx + intStringLen
  7787. if postIndex > l {
  7788. return io.ErrUnexpectedEOF
  7789. }
  7790. m.RedirectURL = string(dAtA[iNdEx:postIndex])
  7791. iNdEx = postIndex
  7792. case 20:
  7793. if wireType != 0 {
  7794. return fmt.Errorf("proto: wrong wireType = %d for field Forward", wireType)
  7795. }
  7796. m.Forward = 0
  7797. for shift := uint(0); ; shift += 7 {
  7798. if shift >= 64 {
  7799. return ErrIntOverflowApi
  7800. }
  7801. if iNdEx >= l {
  7802. return io.ErrUnexpectedEOF
  7803. }
  7804. b := dAtA[iNdEx]
  7805. iNdEx++
  7806. m.Forward |= (int64(b) & 0x7F) << shift
  7807. if b < 0x80 {
  7808. break
  7809. }
  7810. }
  7811. case 21:
  7812. if wireType != 2 {
  7813. return fmt.Errorf("proto: wrong wireType = %d for field Rights", wireType)
  7814. }
  7815. var msglen int
  7816. for shift := uint(0); ; shift += 7 {
  7817. if shift >= 64 {
  7818. return ErrIntOverflowApi
  7819. }
  7820. if iNdEx >= l {
  7821. return io.ErrUnexpectedEOF
  7822. }
  7823. b := dAtA[iNdEx]
  7824. iNdEx++
  7825. msglen |= (int(b) & 0x7F) << shift
  7826. if b < 0x80 {
  7827. break
  7828. }
  7829. }
  7830. if msglen < 0 {
  7831. return ErrInvalidLengthApi
  7832. }
  7833. postIndex := iNdEx + msglen
  7834. if postIndex > l {
  7835. return io.ErrUnexpectedEOF
  7836. }
  7837. if err := m.Rights.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7838. return err
  7839. }
  7840. iNdEx = postIndex
  7841. case 22:
  7842. if wireType != 2 {
  7843. return fmt.Errorf("proto: wrong wireType = %d for field Author", wireType)
  7844. }
  7845. var msglen int
  7846. for shift := uint(0); ; shift += 7 {
  7847. if shift >= 64 {
  7848. return ErrIntOverflowApi
  7849. }
  7850. if iNdEx >= l {
  7851. return io.ErrUnexpectedEOF
  7852. }
  7853. b := dAtA[iNdEx]
  7854. iNdEx++
  7855. msglen |= (int(b) & 0x7F) << shift
  7856. if b < 0x80 {
  7857. break
  7858. }
  7859. }
  7860. if msglen < 0 {
  7861. return ErrInvalidLengthApi
  7862. }
  7863. postIndex := iNdEx + msglen
  7864. if postIndex > l {
  7865. return io.ErrUnexpectedEOF
  7866. }
  7867. if err := m.Author.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7868. return err
  7869. }
  7870. iNdEx = postIndex
  7871. case 23:
  7872. if wireType != 2 {
  7873. return fmt.Errorf("proto: wrong wireType = %d for field Stat", wireType)
  7874. }
  7875. var msglen int
  7876. for shift := uint(0); ; shift += 7 {
  7877. if shift >= 64 {
  7878. return ErrIntOverflowApi
  7879. }
  7880. if iNdEx >= l {
  7881. return io.ErrUnexpectedEOF
  7882. }
  7883. b := dAtA[iNdEx]
  7884. iNdEx++
  7885. msglen |= (int(b) & 0x7F) << shift
  7886. if b < 0x80 {
  7887. break
  7888. }
  7889. }
  7890. if msglen < 0 {
  7891. return ErrInvalidLengthApi
  7892. }
  7893. postIndex := iNdEx + msglen
  7894. if postIndex > l {
  7895. return io.ErrUnexpectedEOF
  7896. }
  7897. if err := m.Stat.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7898. return err
  7899. }
  7900. iNdEx = postIndex
  7901. case 24:
  7902. if wireType != 2 {
  7903. return fmt.Errorf("proto: wrong wireType = %d for field ReportResult", wireType)
  7904. }
  7905. var stringLen uint64
  7906. for shift := uint(0); ; shift += 7 {
  7907. if shift >= 64 {
  7908. return ErrIntOverflowApi
  7909. }
  7910. if iNdEx >= l {
  7911. return io.ErrUnexpectedEOF
  7912. }
  7913. b := dAtA[iNdEx]
  7914. iNdEx++
  7915. stringLen |= (uint64(b) & 0x7F) << shift
  7916. if b < 0x80 {
  7917. break
  7918. }
  7919. }
  7920. intStringLen := int(stringLen)
  7921. if intStringLen < 0 {
  7922. return ErrInvalidLengthApi
  7923. }
  7924. postIndex := iNdEx + intStringLen
  7925. if postIndex > l {
  7926. return io.ErrUnexpectedEOF
  7927. }
  7928. m.ReportResult = string(dAtA[iNdEx:postIndex])
  7929. iNdEx = postIndex
  7930. case 25:
  7931. if wireType != 2 {
  7932. return fmt.Errorf("proto: wrong wireType = %d for field Dynamic", wireType)
  7933. }
  7934. var stringLen uint64
  7935. for shift := uint(0); ; shift += 7 {
  7936. if shift >= 64 {
  7937. return ErrIntOverflowApi
  7938. }
  7939. if iNdEx >= l {
  7940. return io.ErrUnexpectedEOF
  7941. }
  7942. b := dAtA[iNdEx]
  7943. iNdEx++
  7944. stringLen |= (uint64(b) & 0x7F) << shift
  7945. if b < 0x80 {
  7946. break
  7947. }
  7948. }
  7949. intStringLen := int(stringLen)
  7950. if intStringLen < 0 {
  7951. return ErrInvalidLengthApi
  7952. }
  7953. postIndex := iNdEx + intStringLen
  7954. if postIndex > l {
  7955. return io.ErrUnexpectedEOF
  7956. }
  7957. m.Dynamic = string(dAtA[iNdEx:postIndex])
  7958. iNdEx = postIndex
  7959. case 26:
  7960. if wireType != 0 {
  7961. return fmt.Errorf("proto: wrong wireType = %d for field FirstCid", wireType)
  7962. }
  7963. m.FirstCid = 0
  7964. for shift := uint(0); ; shift += 7 {
  7965. if shift >= 64 {
  7966. return ErrIntOverflowApi
  7967. }
  7968. if iNdEx >= l {
  7969. return io.ErrUnexpectedEOF
  7970. }
  7971. b := dAtA[iNdEx]
  7972. iNdEx++
  7973. m.FirstCid |= (int64(b) & 0x7F) << shift
  7974. if b < 0x80 {
  7975. break
  7976. }
  7977. }
  7978. case 27:
  7979. if wireType != 2 {
  7980. return fmt.Errorf("proto: wrong wireType = %d for field Dimension", wireType)
  7981. }
  7982. var msglen int
  7983. for shift := uint(0); ; shift += 7 {
  7984. if shift >= 64 {
  7985. return ErrIntOverflowApi
  7986. }
  7987. if iNdEx >= l {
  7988. return io.ErrUnexpectedEOF
  7989. }
  7990. b := dAtA[iNdEx]
  7991. iNdEx++
  7992. msglen |= (int(b) & 0x7F) << shift
  7993. if b < 0x80 {
  7994. break
  7995. }
  7996. }
  7997. if msglen < 0 {
  7998. return ErrInvalidLengthApi
  7999. }
  8000. postIndex := iNdEx + msglen
  8001. if postIndex > l {
  8002. return io.ErrUnexpectedEOF
  8003. }
  8004. if err := m.Dimension.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8005. return err
  8006. }
  8007. iNdEx = postIndex
  8008. case 28:
  8009. if wireType != 2 {
  8010. return fmt.Errorf("proto: wrong wireType = %d for field StaffInfo", wireType)
  8011. }
  8012. var msglen int
  8013. for shift := uint(0); ; shift += 7 {
  8014. if shift >= 64 {
  8015. return ErrIntOverflowApi
  8016. }
  8017. if iNdEx >= l {
  8018. return io.ErrUnexpectedEOF
  8019. }
  8020. b := dAtA[iNdEx]
  8021. iNdEx++
  8022. msglen |= (int(b) & 0x7F) << shift
  8023. if b < 0x80 {
  8024. break
  8025. }
  8026. }
  8027. if msglen < 0 {
  8028. return ErrInvalidLengthApi
  8029. }
  8030. postIndex := iNdEx + msglen
  8031. if postIndex > l {
  8032. return io.ErrUnexpectedEOF
  8033. }
  8034. m.StaffInfo = append(m.StaffInfo, &StaffInfo{})
  8035. if err := m.StaffInfo[len(m.StaffInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8036. return err
  8037. }
  8038. iNdEx = postIndex
  8039. default:
  8040. iNdEx = preIndex
  8041. skippy, err := skipApi(dAtA[iNdEx:])
  8042. if err != nil {
  8043. return err
  8044. }
  8045. if skippy < 0 {
  8046. return ErrInvalidLengthApi
  8047. }
  8048. if (iNdEx + skippy) > l {
  8049. return io.ErrUnexpectedEOF
  8050. }
  8051. iNdEx += skippy
  8052. }
  8053. }
  8054. if iNdEx > l {
  8055. return io.ErrUnexpectedEOF
  8056. }
  8057. return nil
  8058. }
  8059. func (m *StaffInfo) Unmarshal(dAtA []byte) error {
  8060. l := len(dAtA)
  8061. iNdEx := 0
  8062. for iNdEx < l {
  8063. preIndex := iNdEx
  8064. var wire uint64
  8065. for shift := uint(0); ; shift += 7 {
  8066. if shift >= 64 {
  8067. return ErrIntOverflowApi
  8068. }
  8069. if iNdEx >= l {
  8070. return io.ErrUnexpectedEOF
  8071. }
  8072. b := dAtA[iNdEx]
  8073. iNdEx++
  8074. wire |= (uint64(b) & 0x7F) << shift
  8075. if b < 0x80 {
  8076. break
  8077. }
  8078. }
  8079. fieldNum := int32(wire >> 3)
  8080. wireType := int(wire & 0x7)
  8081. if wireType == 4 {
  8082. return fmt.Errorf("proto: StaffInfo: wiretype end group for non-group")
  8083. }
  8084. if fieldNum <= 0 {
  8085. return fmt.Errorf("proto: StaffInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  8086. }
  8087. switch fieldNum {
  8088. case 1:
  8089. if wireType != 0 {
  8090. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  8091. }
  8092. m.Mid = 0
  8093. for shift := uint(0); ; shift += 7 {
  8094. if shift >= 64 {
  8095. return ErrIntOverflowApi
  8096. }
  8097. if iNdEx >= l {
  8098. return io.ErrUnexpectedEOF
  8099. }
  8100. b := dAtA[iNdEx]
  8101. iNdEx++
  8102. m.Mid |= (int64(b) & 0x7F) << shift
  8103. if b < 0x80 {
  8104. break
  8105. }
  8106. }
  8107. case 2:
  8108. if wireType != 2 {
  8109. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  8110. }
  8111. var stringLen uint64
  8112. for shift := uint(0); ; shift += 7 {
  8113. if shift >= 64 {
  8114. return ErrIntOverflowApi
  8115. }
  8116. if iNdEx >= l {
  8117. return io.ErrUnexpectedEOF
  8118. }
  8119. b := dAtA[iNdEx]
  8120. iNdEx++
  8121. stringLen |= (uint64(b) & 0x7F) << shift
  8122. if b < 0x80 {
  8123. break
  8124. }
  8125. }
  8126. intStringLen := int(stringLen)
  8127. if intStringLen < 0 {
  8128. return ErrInvalidLengthApi
  8129. }
  8130. postIndex := iNdEx + intStringLen
  8131. if postIndex > l {
  8132. return io.ErrUnexpectedEOF
  8133. }
  8134. m.Title = string(dAtA[iNdEx:postIndex])
  8135. iNdEx = postIndex
  8136. default:
  8137. iNdEx = preIndex
  8138. skippy, err := skipApi(dAtA[iNdEx:])
  8139. if err != nil {
  8140. return err
  8141. }
  8142. if skippy < 0 {
  8143. return ErrInvalidLengthApi
  8144. }
  8145. if (iNdEx + skippy) > l {
  8146. return io.ErrUnexpectedEOF
  8147. }
  8148. iNdEx += skippy
  8149. }
  8150. }
  8151. if iNdEx > l {
  8152. return io.ErrUnexpectedEOF
  8153. }
  8154. return nil
  8155. }
  8156. func (m *Dimension) Unmarshal(dAtA []byte) error {
  8157. l := len(dAtA)
  8158. iNdEx := 0
  8159. for iNdEx < l {
  8160. preIndex := iNdEx
  8161. var wire uint64
  8162. for shift := uint(0); ; shift += 7 {
  8163. if shift >= 64 {
  8164. return ErrIntOverflowApi
  8165. }
  8166. if iNdEx >= l {
  8167. return io.ErrUnexpectedEOF
  8168. }
  8169. b := dAtA[iNdEx]
  8170. iNdEx++
  8171. wire |= (uint64(b) & 0x7F) << shift
  8172. if b < 0x80 {
  8173. break
  8174. }
  8175. }
  8176. fieldNum := int32(wire >> 3)
  8177. wireType := int(wire & 0x7)
  8178. if wireType == 4 {
  8179. return fmt.Errorf("proto: Dimension: wiretype end group for non-group")
  8180. }
  8181. if fieldNum <= 0 {
  8182. return fmt.Errorf("proto: Dimension: illegal tag %d (wire type %d)", fieldNum, wire)
  8183. }
  8184. switch fieldNum {
  8185. case 1:
  8186. if wireType != 0 {
  8187. return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType)
  8188. }
  8189. m.Width = 0
  8190. for shift := uint(0); ; shift += 7 {
  8191. if shift >= 64 {
  8192. return ErrIntOverflowApi
  8193. }
  8194. if iNdEx >= l {
  8195. return io.ErrUnexpectedEOF
  8196. }
  8197. b := dAtA[iNdEx]
  8198. iNdEx++
  8199. m.Width |= (int64(b) & 0x7F) << shift
  8200. if b < 0x80 {
  8201. break
  8202. }
  8203. }
  8204. case 2:
  8205. if wireType != 0 {
  8206. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  8207. }
  8208. m.Height = 0
  8209. for shift := uint(0); ; shift += 7 {
  8210. if shift >= 64 {
  8211. return ErrIntOverflowApi
  8212. }
  8213. if iNdEx >= l {
  8214. return io.ErrUnexpectedEOF
  8215. }
  8216. b := dAtA[iNdEx]
  8217. iNdEx++
  8218. m.Height |= (int64(b) & 0x7F) << shift
  8219. if b < 0x80 {
  8220. break
  8221. }
  8222. }
  8223. case 3:
  8224. if wireType != 0 {
  8225. return fmt.Errorf("proto: wrong wireType = %d for field Rotate", wireType)
  8226. }
  8227. m.Rotate = 0
  8228. for shift := uint(0); ; shift += 7 {
  8229. if shift >= 64 {
  8230. return ErrIntOverflowApi
  8231. }
  8232. if iNdEx >= l {
  8233. return io.ErrUnexpectedEOF
  8234. }
  8235. b := dAtA[iNdEx]
  8236. iNdEx++
  8237. m.Rotate |= (int64(b) & 0x7F) << shift
  8238. if b < 0x80 {
  8239. break
  8240. }
  8241. }
  8242. default:
  8243. iNdEx = preIndex
  8244. skippy, err := skipApi(dAtA[iNdEx:])
  8245. if err != nil {
  8246. return err
  8247. }
  8248. if skippy < 0 {
  8249. return ErrInvalidLengthApi
  8250. }
  8251. if (iNdEx + skippy) > l {
  8252. return io.ErrUnexpectedEOF
  8253. }
  8254. iNdEx += skippy
  8255. }
  8256. }
  8257. if iNdEx > l {
  8258. return io.ErrUnexpectedEOF
  8259. }
  8260. return nil
  8261. }
  8262. func (m *Rights) Unmarshal(dAtA []byte) error {
  8263. l := len(dAtA)
  8264. iNdEx := 0
  8265. for iNdEx < l {
  8266. preIndex := iNdEx
  8267. var wire uint64
  8268. for shift := uint(0); ; shift += 7 {
  8269. if shift >= 64 {
  8270. return ErrIntOverflowApi
  8271. }
  8272. if iNdEx >= l {
  8273. return io.ErrUnexpectedEOF
  8274. }
  8275. b := dAtA[iNdEx]
  8276. iNdEx++
  8277. wire |= (uint64(b) & 0x7F) << shift
  8278. if b < 0x80 {
  8279. break
  8280. }
  8281. }
  8282. fieldNum := int32(wire >> 3)
  8283. wireType := int(wire & 0x7)
  8284. if wireType == 4 {
  8285. return fmt.Errorf("proto: Rights: wiretype end group for non-group")
  8286. }
  8287. if fieldNum <= 0 {
  8288. return fmt.Errorf("proto: Rights: illegal tag %d (wire type %d)", fieldNum, wire)
  8289. }
  8290. switch fieldNum {
  8291. case 1:
  8292. if wireType != 0 {
  8293. return fmt.Errorf("proto: wrong wireType = %d for field Bp", wireType)
  8294. }
  8295. m.Bp = 0
  8296. for shift := uint(0); ; shift += 7 {
  8297. if shift >= 64 {
  8298. return ErrIntOverflowApi
  8299. }
  8300. if iNdEx >= l {
  8301. return io.ErrUnexpectedEOF
  8302. }
  8303. b := dAtA[iNdEx]
  8304. iNdEx++
  8305. m.Bp |= (int32(b) & 0x7F) << shift
  8306. if b < 0x80 {
  8307. break
  8308. }
  8309. }
  8310. case 2:
  8311. if wireType != 0 {
  8312. return fmt.Errorf("proto: wrong wireType = %d for field Elec", wireType)
  8313. }
  8314. m.Elec = 0
  8315. for shift := uint(0); ; shift += 7 {
  8316. if shift >= 64 {
  8317. return ErrIntOverflowApi
  8318. }
  8319. if iNdEx >= l {
  8320. return io.ErrUnexpectedEOF
  8321. }
  8322. b := dAtA[iNdEx]
  8323. iNdEx++
  8324. m.Elec |= (int32(b) & 0x7F) << shift
  8325. if b < 0x80 {
  8326. break
  8327. }
  8328. }
  8329. case 3:
  8330. if wireType != 0 {
  8331. return fmt.Errorf("proto: wrong wireType = %d for field Download", wireType)
  8332. }
  8333. m.Download = 0
  8334. for shift := uint(0); ; shift += 7 {
  8335. if shift >= 64 {
  8336. return ErrIntOverflowApi
  8337. }
  8338. if iNdEx >= l {
  8339. return io.ErrUnexpectedEOF
  8340. }
  8341. b := dAtA[iNdEx]
  8342. iNdEx++
  8343. m.Download |= (int32(b) & 0x7F) << shift
  8344. if b < 0x80 {
  8345. break
  8346. }
  8347. }
  8348. case 4:
  8349. if wireType != 0 {
  8350. return fmt.Errorf("proto: wrong wireType = %d for field Movie", wireType)
  8351. }
  8352. m.Movie = 0
  8353. for shift := uint(0); ; shift += 7 {
  8354. if shift >= 64 {
  8355. return ErrIntOverflowApi
  8356. }
  8357. if iNdEx >= l {
  8358. return io.ErrUnexpectedEOF
  8359. }
  8360. b := dAtA[iNdEx]
  8361. iNdEx++
  8362. m.Movie |= (int32(b) & 0x7F) << shift
  8363. if b < 0x80 {
  8364. break
  8365. }
  8366. }
  8367. case 5:
  8368. if wireType != 0 {
  8369. return fmt.Errorf("proto: wrong wireType = %d for field Pay", wireType)
  8370. }
  8371. m.Pay = 0
  8372. for shift := uint(0); ; shift += 7 {
  8373. if shift >= 64 {
  8374. return ErrIntOverflowApi
  8375. }
  8376. if iNdEx >= l {
  8377. return io.ErrUnexpectedEOF
  8378. }
  8379. b := dAtA[iNdEx]
  8380. iNdEx++
  8381. m.Pay |= (int32(b) & 0x7F) << shift
  8382. if b < 0x80 {
  8383. break
  8384. }
  8385. }
  8386. case 6:
  8387. if wireType != 0 {
  8388. return fmt.Errorf("proto: wrong wireType = %d for field HD5", wireType)
  8389. }
  8390. m.HD5 = 0
  8391. for shift := uint(0); ; shift += 7 {
  8392. if shift >= 64 {
  8393. return ErrIntOverflowApi
  8394. }
  8395. if iNdEx >= l {
  8396. return io.ErrUnexpectedEOF
  8397. }
  8398. b := dAtA[iNdEx]
  8399. iNdEx++
  8400. m.HD5 |= (int32(b) & 0x7F) << shift
  8401. if b < 0x80 {
  8402. break
  8403. }
  8404. }
  8405. case 7:
  8406. if wireType != 0 {
  8407. return fmt.Errorf("proto: wrong wireType = %d for field NoReprint", wireType)
  8408. }
  8409. m.NoReprint = 0
  8410. for shift := uint(0); ; shift += 7 {
  8411. if shift >= 64 {
  8412. return ErrIntOverflowApi
  8413. }
  8414. if iNdEx >= l {
  8415. return io.ErrUnexpectedEOF
  8416. }
  8417. b := dAtA[iNdEx]
  8418. iNdEx++
  8419. m.NoReprint |= (int32(b) & 0x7F) << shift
  8420. if b < 0x80 {
  8421. break
  8422. }
  8423. }
  8424. case 8:
  8425. if wireType != 0 {
  8426. return fmt.Errorf("proto: wrong wireType = %d for field Autoplay", wireType)
  8427. }
  8428. m.Autoplay = 0
  8429. for shift := uint(0); ; shift += 7 {
  8430. if shift >= 64 {
  8431. return ErrIntOverflowApi
  8432. }
  8433. if iNdEx >= l {
  8434. return io.ErrUnexpectedEOF
  8435. }
  8436. b := dAtA[iNdEx]
  8437. iNdEx++
  8438. m.Autoplay |= (int32(b) & 0x7F) << shift
  8439. if b < 0x80 {
  8440. break
  8441. }
  8442. }
  8443. case 9:
  8444. if wireType != 0 {
  8445. return fmt.Errorf("proto: wrong wireType = %d for field UGCPay", wireType)
  8446. }
  8447. m.UGCPay = 0
  8448. for shift := uint(0); ; shift += 7 {
  8449. if shift >= 64 {
  8450. return ErrIntOverflowApi
  8451. }
  8452. if iNdEx >= l {
  8453. return io.ErrUnexpectedEOF
  8454. }
  8455. b := dAtA[iNdEx]
  8456. iNdEx++
  8457. m.UGCPay |= (int32(b) & 0x7F) << shift
  8458. if b < 0x80 {
  8459. break
  8460. }
  8461. }
  8462. case 10:
  8463. if wireType != 0 {
  8464. return fmt.Errorf("proto: wrong wireType = %d for field IsCooperation", wireType)
  8465. }
  8466. m.IsCooperation = 0
  8467. for shift := uint(0); ; shift += 7 {
  8468. if shift >= 64 {
  8469. return ErrIntOverflowApi
  8470. }
  8471. if iNdEx >= l {
  8472. return io.ErrUnexpectedEOF
  8473. }
  8474. b := dAtA[iNdEx]
  8475. iNdEx++
  8476. m.IsCooperation |= (int32(b) & 0x7F) << shift
  8477. if b < 0x80 {
  8478. break
  8479. }
  8480. }
  8481. default:
  8482. iNdEx = preIndex
  8483. skippy, err := skipApi(dAtA[iNdEx:])
  8484. if err != nil {
  8485. return err
  8486. }
  8487. if skippy < 0 {
  8488. return ErrInvalidLengthApi
  8489. }
  8490. if (iNdEx + skippy) > l {
  8491. return io.ErrUnexpectedEOF
  8492. }
  8493. iNdEx += skippy
  8494. }
  8495. }
  8496. if iNdEx > l {
  8497. return io.ErrUnexpectedEOF
  8498. }
  8499. return nil
  8500. }
  8501. func (m *Author) Unmarshal(dAtA []byte) error {
  8502. l := len(dAtA)
  8503. iNdEx := 0
  8504. for iNdEx < l {
  8505. preIndex := iNdEx
  8506. var wire uint64
  8507. for shift := uint(0); ; shift += 7 {
  8508. if shift >= 64 {
  8509. return ErrIntOverflowApi
  8510. }
  8511. if iNdEx >= l {
  8512. return io.ErrUnexpectedEOF
  8513. }
  8514. b := dAtA[iNdEx]
  8515. iNdEx++
  8516. wire |= (uint64(b) & 0x7F) << shift
  8517. if b < 0x80 {
  8518. break
  8519. }
  8520. }
  8521. fieldNum := int32(wire >> 3)
  8522. wireType := int(wire & 0x7)
  8523. if wireType == 4 {
  8524. return fmt.Errorf("proto: Author: wiretype end group for non-group")
  8525. }
  8526. if fieldNum <= 0 {
  8527. return fmt.Errorf("proto: Author: illegal tag %d (wire type %d)", fieldNum, wire)
  8528. }
  8529. switch fieldNum {
  8530. case 1:
  8531. if wireType != 0 {
  8532. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  8533. }
  8534. m.Mid = 0
  8535. for shift := uint(0); ; shift += 7 {
  8536. if shift >= 64 {
  8537. return ErrIntOverflowApi
  8538. }
  8539. if iNdEx >= l {
  8540. return io.ErrUnexpectedEOF
  8541. }
  8542. b := dAtA[iNdEx]
  8543. iNdEx++
  8544. m.Mid |= (int64(b) & 0x7F) << shift
  8545. if b < 0x80 {
  8546. break
  8547. }
  8548. }
  8549. case 2:
  8550. if wireType != 2 {
  8551. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  8552. }
  8553. var stringLen uint64
  8554. for shift := uint(0); ; shift += 7 {
  8555. if shift >= 64 {
  8556. return ErrIntOverflowApi
  8557. }
  8558. if iNdEx >= l {
  8559. return io.ErrUnexpectedEOF
  8560. }
  8561. b := dAtA[iNdEx]
  8562. iNdEx++
  8563. stringLen |= (uint64(b) & 0x7F) << shift
  8564. if b < 0x80 {
  8565. break
  8566. }
  8567. }
  8568. intStringLen := int(stringLen)
  8569. if intStringLen < 0 {
  8570. return ErrInvalidLengthApi
  8571. }
  8572. postIndex := iNdEx + intStringLen
  8573. if postIndex > l {
  8574. return io.ErrUnexpectedEOF
  8575. }
  8576. m.Name = string(dAtA[iNdEx:postIndex])
  8577. iNdEx = postIndex
  8578. case 3:
  8579. if wireType != 2 {
  8580. return fmt.Errorf("proto: wrong wireType = %d for field Face", wireType)
  8581. }
  8582. var stringLen uint64
  8583. for shift := uint(0); ; shift += 7 {
  8584. if shift >= 64 {
  8585. return ErrIntOverflowApi
  8586. }
  8587. if iNdEx >= l {
  8588. return io.ErrUnexpectedEOF
  8589. }
  8590. b := dAtA[iNdEx]
  8591. iNdEx++
  8592. stringLen |= (uint64(b) & 0x7F) << shift
  8593. if b < 0x80 {
  8594. break
  8595. }
  8596. }
  8597. intStringLen := int(stringLen)
  8598. if intStringLen < 0 {
  8599. return ErrInvalidLengthApi
  8600. }
  8601. postIndex := iNdEx + intStringLen
  8602. if postIndex > l {
  8603. return io.ErrUnexpectedEOF
  8604. }
  8605. m.Face = string(dAtA[iNdEx:postIndex])
  8606. iNdEx = postIndex
  8607. default:
  8608. iNdEx = preIndex
  8609. skippy, err := skipApi(dAtA[iNdEx:])
  8610. if err != nil {
  8611. return err
  8612. }
  8613. if skippy < 0 {
  8614. return ErrInvalidLengthApi
  8615. }
  8616. if (iNdEx + skippy) > l {
  8617. return io.ErrUnexpectedEOF
  8618. }
  8619. iNdEx += skippy
  8620. }
  8621. }
  8622. if iNdEx > l {
  8623. return io.ErrUnexpectedEOF
  8624. }
  8625. return nil
  8626. }
  8627. func (m *Stat) Unmarshal(dAtA []byte) error {
  8628. l := len(dAtA)
  8629. iNdEx := 0
  8630. for iNdEx < l {
  8631. preIndex := iNdEx
  8632. var wire uint64
  8633. for shift := uint(0); ; shift += 7 {
  8634. if shift >= 64 {
  8635. return ErrIntOverflowApi
  8636. }
  8637. if iNdEx >= l {
  8638. return io.ErrUnexpectedEOF
  8639. }
  8640. b := dAtA[iNdEx]
  8641. iNdEx++
  8642. wire |= (uint64(b) & 0x7F) << shift
  8643. if b < 0x80 {
  8644. break
  8645. }
  8646. }
  8647. fieldNum := int32(wire >> 3)
  8648. wireType := int(wire & 0x7)
  8649. if wireType == 4 {
  8650. return fmt.Errorf("proto: Stat: wiretype end group for non-group")
  8651. }
  8652. if fieldNum <= 0 {
  8653. return fmt.Errorf("proto: Stat: illegal tag %d (wire type %d)", fieldNum, wire)
  8654. }
  8655. switch fieldNum {
  8656. case 1:
  8657. if wireType != 0 {
  8658. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  8659. }
  8660. m.Aid = 0
  8661. for shift := uint(0); ; shift += 7 {
  8662. if shift >= 64 {
  8663. return ErrIntOverflowApi
  8664. }
  8665. if iNdEx >= l {
  8666. return io.ErrUnexpectedEOF
  8667. }
  8668. b := dAtA[iNdEx]
  8669. iNdEx++
  8670. m.Aid |= (int64(b) & 0x7F) << shift
  8671. if b < 0x80 {
  8672. break
  8673. }
  8674. }
  8675. case 2:
  8676. if wireType != 0 {
  8677. return fmt.Errorf("proto: wrong wireType = %d for field View", wireType)
  8678. }
  8679. m.View = 0
  8680. for shift := uint(0); ; shift += 7 {
  8681. if shift >= 64 {
  8682. return ErrIntOverflowApi
  8683. }
  8684. if iNdEx >= l {
  8685. return io.ErrUnexpectedEOF
  8686. }
  8687. b := dAtA[iNdEx]
  8688. iNdEx++
  8689. m.View |= (int32(b) & 0x7F) << shift
  8690. if b < 0x80 {
  8691. break
  8692. }
  8693. }
  8694. case 3:
  8695. if wireType != 0 {
  8696. return fmt.Errorf("proto: wrong wireType = %d for field Danmaku", wireType)
  8697. }
  8698. m.Danmaku = 0
  8699. for shift := uint(0); ; shift += 7 {
  8700. if shift >= 64 {
  8701. return ErrIntOverflowApi
  8702. }
  8703. if iNdEx >= l {
  8704. return io.ErrUnexpectedEOF
  8705. }
  8706. b := dAtA[iNdEx]
  8707. iNdEx++
  8708. m.Danmaku |= (int32(b) & 0x7F) << shift
  8709. if b < 0x80 {
  8710. break
  8711. }
  8712. }
  8713. case 4:
  8714. if wireType != 0 {
  8715. return fmt.Errorf("proto: wrong wireType = %d for field Reply", wireType)
  8716. }
  8717. m.Reply = 0
  8718. for shift := uint(0); ; shift += 7 {
  8719. if shift >= 64 {
  8720. return ErrIntOverflowApi
  8721. }
  8722. if iNdEx >= l {
  8723. return io.ErrUnexpectedEOF
  8724. }
  8725. b := dAtA[iNdEx]
  8726. iNdEx++
  8727. m.Reply |= (int32(b) & 0x7F) << shift
  8728. if b < 0x80 {
  8729. break
  8730. }
  8731. }
  8732. case 5:
  8733. if wireType != 0 {
  8734. return fmt.Errorf("proto: wrong wireType = %d for field Fav", wireType)
  8735. }
  8736. m.Fav = 0
  8737. for shift := uint(0); ; shift += 7 {
  8738. if shift >= 64 {
  8739. return ErrIntOverflowApi
  8740. }
  8741. if iNdEx >= l {
  8742. return io.ErrUnexpectedEOF
  8743. }
  8744. b := dAtA[iNdEx]
  8745. iNdEx++
  8746. m.Fav |= (int32(b) & 0x7F) << shift
  8747. if b < 0x80 {
  8748. break
  8749. }
  8750. }
  8751. case 6:
  8752. if wireType != 0 {
  8753. return fmt.Errorf("proto: wrong wireType = %d for field Coin", wireType)
  8754. }
  8755. m.Coin = 0
  8756. for shift := uint(0); ; shift += 7 {
  8757. if shift >= 64 {
  8758. return ErrIntOverflowApi
  8759. }
  8760. if iNdEx >= l {
  8761. return io.ErrUnexpectedEOF
  8762. }
  8763. b := dAtA[iNdEx]
  8764. iNdEx++
  8765. m.Coin |= (int32(b) & 0x7F) << shift
  8766. if b < 0x80 {
  8767. break
  8768. }
  8769. }
  8770. case 7:
  8771. if wireType != 0 {
  8772. return fmt.Errorf("proto: wrong wireType = %d for field Share", wireType)
  8773. }
  8774. m.Share = 0
  8775. for shift := uint(0); ; shift += 7 {
  8776. if shift >= 64 {
  8777. return ErrIntOverflowApi
  8778. }
  8779. if iNdEx >= l {
  8780. return io.ErrUnexpectedEOF
  8781. }
  8782. b := dAtA[iNdEx]
  8783. iNdEx++
  8784. m.Share |= (int32(b) & 0x7F) << shift
  8785. if b < 0x80 {
  8786. break
  8787. }
  8788. }
  8789. case 8:
  8790. if wireType != 0 {
  8791. return fmt.Errorf("proto: wrong wireType = %d for field NowRank", wireType)
  8792. }
  8793. m.NowRank = 0
  8794. for shift := uint(0); ; shift += 7 {
  8795. if shift >= 64 {
  8796. return ErrIntOverflowApi
  8797. }
  8798. if iNdEx >= l {
  8799. return io.ErrUnexpectedEOF
  8800. }
  8801. b := dAtA[iNdEx]
  8802. iNdEx++
  8803. m.NowRank |= (int32(b) & 0x7F) << shift
  8804. if b < 0x80 {
  8805. break
  8806. }
  8807. }
  8808. case 9:
  8809. if wireType != 0 {
  8810. return fmt.Errorf("proto: wrong wireType = %d for field HisRank", wireType)
  8811. }
  8812. m.HisRank = 0
  8813. for shift := uint(0); ; shift += 7 {
  8814. if shift >= 64 {
  8815. return ErrIntOverflowApi
  8816. }
  8817. if iNdEx >= l {
  8818. return io.ErrUnexpectedEOF
  8819. }
  8820. b := dAtA[iNdEx]
  8821. iNdEx++
  8822. m.HisRank |= (int32(b) & 0x7F) << shift
  8823. if b < 0x80 {
  8824. break
  8825. }
  8826. }
  8827. case 10:
  8828. if wireType != 0 {
  8829. return fmt.Errorf("proto: wrong wireType = %d for field Like", wireType)
  8830. }
  8831. m.Like = 0
  8832. for shift := uint(0); ; shift += 7 {
  8833. if shift >= 64 {
  8834. return ErrIntOverflowApi
  8835. }
  8836. if iNdEx >= l {
  8837. return io.ErrUnexpectedEOF
  8838. }
  8839. b := dAtA[iNdEx]
  8840. iNdEx++
  8841. m.Like |= (int32(b) & 0x7F) << shift
  8842. if b < 0x80 {
  8843. break
  8844. }
  8845. }
  8846. case 11:
  8847. if wireType != 0 {
  8848. return fmt.Errorf("proto: wrong wireType = %d for field DisLike", wireType)
  8849. }
  8850. m.DisLike = 0
  8851. for shift := uint(0); ; shift += 7 {
  8852. if shift >= 64 {
  8853. return ErrIntOverflowApi
  8854. }
  8855. if iNdEx >= l {
  8856. return io.ErrUnexpectedEOF
  8857. }
  8858. b := dAtA[iNdEx]
  8859. iNdEx++
  8860. m.DisLike |= (int32(b) & 0x7F) << shift
  8861. if b < 0x80 {
  8862. break
  8863. }
  8864. }
  8865. default:
  8866. iNdEx = preIndex
  8867. skippy, err := skipApi(dAtA[iNdEx:])
  8868. if err != nil {
  8869. return err
  8870. }
  8871. if skippy < 0 {
  8872. return ErrInvalidLengthApi
  8873. }
  8874. if (iNdEx + skippy) > l {
  8875. return io.ErrUnexpectedEOF
  8876. }
  8877. iNdEx += skippy
  8878. }
  8879. }
  8880. if iNdEx > l {
  8881. return io.ErrUnexpectedEOF
  8882. }
  8883. return nil
  8884. }
  8885. func (m *Click) Unmarshal(dAtA []byte) error {
  8886. l := len(dAtA)
  8887. iNdEx := 0
  8888. for iNdEx < l {
  8889. preIndex := iNdEx
  8890. var wire uint64
  8891. for shift := uint(0); ; shift += 7 {
  8892. if shift >= 64 {
  8893. return ErrIntOverflowApi
  8894. }
  8895. if iNdEx >= l {
  8896. return io.ErrUnexpectedEOF
  8897. }
  8898. b := dAtA[iNdEx]
  8899. iNdEx++
  8900. wire |= (uint64(b) & 0x7F) << shift
  8901. if b < 0x80 {
  8902. break
  8903. }
  8904. }
  8905. fieldNum := int32(wire >> 3)
  8906. wireType := int(wire & 0x7)
  8907. if wireType == 4 {
  8908. return fmt.Errorf("proto: Click: wiretype end group for non-group")
  8909. }
  8910. if fieldNum <= 0 {
  8911. return fmt.Errorf("proto: Click: illegal tag %d (wire type %d)", fieldNum, wire)
  8912. }
  8913. switch fieldNum {
  8914. case 1:
  8915. if wireType != 0 {
  8916. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  8917. }
  8918. m.Aid = 0
  8919. for shift := uint(0); ; shift += 7 {
  8920. if shift >= 64 {
  8921. return ErrIntOverflowApi
  8922. }
  8923. if iNdEx >= l {
  8924. return io.ErrUnexpectedEOF
  8925. }
  8926. b := dAtA[iNdEx]
  8927. iNdEx++
  8928. m.Aid |= (int64(b) & 0x7F) << shift
  8929. if b < 0x80 {
  8930. break
  8931. }
  8932. }
  8933. case 2:
  8934. if wireType != 0 {
  8935. return fmt.Errorf("proto: wrong wireType = %d for field Web", wireType)
  8936. }
  8937. m.Web = 0
  8938. for shift := uint(0); ; shift += 7 {
  8939. if shift >= 64 {
  8940. return ErrIntOverflowApi
  8941. }
  8942. if iNdEx >= l {
  8943. return io.ErrUnexpectedEOF
  8944. }
  8945. b := dAtA[iNdEx]
  8946. iNdEx++
  8947. m.Web |= (int32(b) & 0x7F) << shift
  8948. if b < 0x80 {
  8949. break
  8950. }
  8951. }
  8952. case 3:
  8953. if wireType != 0 {
  8954. return fmt.Errorf("proto: wrong wireType = %d for field Ios", wireType)
  8955. }
  8956. m.Ios = 0
  8957. for shift := uint(0); ; shift += 7 {
  8958. if shift >= 64 {
  8959. return ErrIntOverflowApi
  8960. }
  8961. if iNdEx >= l {
  8962. return io.ErrUnexpectedEOF
  8963. }
  8964. b := dAtA[iNdEx]
  8965. iNdEx++
  8966. m.Ios |= (int32(b) & 0x7F) << shift
  8967. if b < 0x80 {
  8968. break
  8969. }
  8970. }
  8971. case 4:
  8972. if wireType != 0 {
  8973. return fmt.Errorf("proto: wrong wireType = %d for field Android", wireType)
  8974. }
  8975. m.Android = 0
  8976. for shift := uint(0); ; shift += 7 {
  8977. if shift >= 64 {
  8978. return ErrIntOverflowApi
  8979. }
  8980. if iNdEx >= l {
  8981. return io.ErrUnexpectedEOF
  8982. }
  8983. b := dAtA[iNdEx]
  8984. iNdEx++
  8985. m.Android |= (int32(b) & 0x7F) << shift
  8986. if b < 0x80 {
  8987. break
  8988. }
  8989. }
  8990. case 5:
  8991. if wireType != 0 {
  8992. return fmt.Errorf("proto: wrong wireType = %d for field H5", wireType)
  8993. }
  8994. m.H5 = 0
  8995. for shift := uint(0); ; shift += 7 {
  8996. if shift >= 64 {
  8997. return ErrIntOverflowApi
  8998. }
  8999. if iNdEx >= l {
  9000. return io.ErrUnexpectedEOF
  9001. }
  9002. b := dAtA[iNdEx]
  9003. iNdEx++
  9004. m.H5 |= (int32(b) & 0x7F) << shift
  9005. if b < 0x80 {
  9006. break
  9007. }
  9008. }
  9009. case 6:
  9010. if wireType != 0 {
  9011. return fmt.Errorf("proto: wrong wireType = %d for field Outter", wireType)
  9012. }
  9013. m.Outter = 0
  9014. for shift := uint(0); ; shift += 7 {
  9015. if shift >= 64 {
  9016. return ErrIntOverflowApi
  9017. }
  9018. if iNdEx >= l {
  9019. return io.ErrUnexpectedEOF
  9020. }
  9021. b := dAtA[iNdEx]
  9022. iNdEx++
  9023. m.Outter |= (int32(b) & 0x7F) << shift
  9024. if b < 0x80 {
  9025. break
  9026. }
  9027. }
  9028. default:
  9029. iNdEx = preIndex
  9030. skippy, err := skipApi(dAtA[iNdEx:])
  9031. if err != nil {
  9032. return err
  9033. }
  9034. if skippy < 0 {
  9035. return ErrInvalidLengthApi
  9036. }
  9037. if (iNdEx + skippy) > l {
  9038. return io.ErrUnexpectedEOF
  9039. }
  9040. iNdEx += skippy
  9041. }
  9042. }
  9043. if iNdEx > l {
  9044. return io.ErrUnexpectedEOF
  9045. }
  9046. return nil
  9047. }
  9048. func (m *Page) Unmarshal(dAtA []byte) error {
  9049. l := len(dAtA)
  9050. iNdEx := 0
  9051. for iNdEx < l {
  9052. preIndex := iNdEx
  9053. var wire uint64
  9054. for shift := uint(0); ; shift += 7 {
  9055. if shift >= 64 {
  9056. return ErrIntOverflowApi
  9057. }
  9058. if iNdEx >= l {
  9059. return io.ErrUnexpectedEOF
  9060. }
  9061. b := dAtA[iNdEx]
  9062. iNdEx++
  9063. wire |= (uint64(b) & 0x7F) << shift
  9064. if b < 0x80 {
  9065. break
  9066. }
  9067. }
  9068. fieldNum := int32(wire >> 3)
  9069. wireType := int(wire & 0x7)
  9070. if wireType == 4 {
  9071. return fmt.Errorf("proto: Page: wiretype end group for non-group")
  9072. }
  9073. if fieldNum <= 0 {
  9074. return fmt.Errorf("proto: Page: illegal tag %d (wire type %d)", fieldNum, wire)
  9075. }
  9076. switch fieldNum {
  9077. case 1:
  9078. if wireType != 0 {
  9079. return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
  9080. }
  9081. m.Cid = 0
  9082. for shift := uint(0); ; shift += 7 {
  9083. if shift >= 64 {
  9084. return ErrIntOverflowApi
  9085. }
  9086. if iNdEx >= l {
  9087. return io.ErrUnexpectedEOF
  9088. }
  9089. b := dAtA[iNdEx]
  9090. iNdEx++
  9091. m.Cid |= (int64(b) & 0x7F) << shift
  9092. if b < 0x80 {
  9093. break
  9094. }
  9095. }
  9096. case 2:
  9097. if wireType != 0 {
  9098. return fmt.Errorf("proto: wrong wireType = %d for field Page", wireType)
  9099. }
  9100. m.Page = 0
  9101. for shift := uint(0); ; shift += 7 {
  9102. if shift >= 64 {
  9103. return ErrIntOverflowApi
  9104. }
  9105. if iNdEx >= l {
  9106. return io.ErrUnexpectedEOF
  9107. }
  9108. b := dAtA[iNdEx]
  9109. iNdEx++
  9110. m.Page |= (int32(b) & 0x7F) << shift
  9111. if b < 0x80 {
  9112. break
  9113. }
  9114. }
  9115. case 3:
  9116. if wireType != 2 {
  9117. return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
  9118. }
  9119. var stringLen uint64
  9120. for shift := uint(0); ; shift += 7 {
  9121. if shift >= 64 {
  9122. return ErrIntOverflowApi
  9123. }
  9124. if iNdEx >= l {
  9125. return io.ErrUnexpectedEOF
  9126. }
  9127. b := dAtA[iNdEx]
  9128. iNdEx++
  9129. stringLen |= (uint64(b) & 0x7F) << shift
  9130. if b < 0x80 {
  9131. break
  9132. }
  9133. }
  9134. intStringLen := int(stringLen)
  9135. if intStringLen < 0 {
  9136. return ErrInvalidLengthApi
  9137. }
  9138. postIndex := iNdEx + intStringLen
  9139. if postIndex > l {
  9140. return io.ErrUnexpectedEOF
  9141. }
  9142. m.From = string(dAtA[iNdEx:postIndex])
  9143. iNdEx = postIndex
  9144. case 4:
  9145. if wireType != 2 {
  9146. return fmt.Errorf("proto: wrong wireType = %d for field Part", wireType)
  9147. }
  9148. var stringLen uint64
  9149. for shift := uint(0); ; shift += 7 {
  9150. if shift >= 64 {
  9151. return ErrIntOverflowApi
  9152. }
  9153. if iNdEx >= l {
  9154. return io.ErrUnexpectedEOF
  9155. }
  9156. b := dAtA[iNdEx]
  9157. iNdEx++
  9158. stringLen |= (uint64(b) & 0x7F) << shift
  9159. if b < 0x80 {
  9160. break
  9161. }
  9162. }
  9163. intStringLen := int(stringLen)
  9164. if intStringLen < 0 {
  9165. return ErrInvalidLengthApi
  9166. }
  9167. postIndex := iNdEx + intStringLen
  9168. if postIndex > l {
  9169. return io.ErrUnexpectedEOF
  9170. }
  9171. m.Part = string(dAtA[iNdEx:postIndex])
  9172. iNdEx = postIndex
  9173. case 5:
  9174. if wireType != 0 {
  9175. return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType)
  9176. }
  9177. m.Duration = 0
  9178. for shift := uint(0); ; shift += 7 {
  9179. if shift >= 64 {
  9180. return ErrIntOverflowApi
  9181. }
  9182. if iNdEx >= l {
  9183. return io.ErrUnexpectedEOF
  9184. }
  9185. b := dAtA[iNdEx]
  9186. iNdEx++
  9187. m.Duration |= (int64(b) & 0x7F) << shift
  9188. if b < 0x80 {
  9189. break
  9190. }
  9191. }
  9192. case 6:
  9193. if wireType != 2 {
  9194. return fmt.Errorf("proto: wrong wireType = %d for field Vid", wireType)
  9195. }
  9196. var stringLen uint64
  9197. for shift := uint(0); ; shift += 7 {
  9198. if shift >= 64 {
  9199. return ErrIntOverflowApi
  9200. }
  9201. if iNdEx >= l {
  9202. return io.ErrUnexpectedEOF
  9203. }
  9204. b := dAtA[iNdEx]
  9205. iNdEx++
  9206. stringLen |= (uint64(b) & 0x7F) << shift
  9207. if b < 0x80 {
  9208. break
  9209. }
  9210. }
  9211. intStringLen := int(stringLen)
  9212. if intStringLen < 0 {
  9213. return ErrInvalidLengthApi
  9214. }
  9215. postIndex := iNdEx + intStringLen
  9216. if postIndex > l {
  9217. return io.ErrUnexpectedEOF
  9218. }
  9219. m.Vid = string(dAtA[iNdEx:postIndex])
  9220. iNdEx = postIndex
  9221. case 7:
  9222. if wireType != 2 {
  9223. return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType)
  9224. }
  9225. var stringLen uint64
  9226. for shift := uint(0); ; shift += 7 {
  9227. if shift >= 64 {
  9228. return ErrIntOverflowApi
  9229. }
  9230. if iNdEx >= l {
  9231. return io.ErrUnexpectedEOF
  9232. }
  9233. b := dAtA[iNdEx]
  9234. iNdEx++
  9235. stringLen |= (uint64(b) & 0x7F) << shift
  9236. if b < 0x80 {
  9237. break
  9238. }
  9239. }
  9240. intStringLen := int(stringLen)
  9241. if intStringLen < 0 {
  9242. return ErrInvalidLengthApi
  9243. }
  9244. postIndex := iNdEx + intStringLen
  9245. if postIndex > l {
  9246. return io.ErrUnexpectedEOF
  9247. }
  9248. m.Desc = string(dAtA[iNdEx:postIndex])
  9249. iNdEx = postIndex
  9250. case 8:
  9251. if wireType != 2 {
  9252. return fmt.Errorf("proto: wrong wireType = %d for field WebLink", wireType)
  9253. }
  9254. var stringLen uint64
  9255. for shift := uint(0); ; shift += 7 {
  9256. if shift >= 64 {
  9257. return ErrIntOverflowApi
  9258. }
  9259. if iNdEx >= l {
  9260. return io.ErrUnexpectedEOF
  9261. }
  9262. b := dAtA[iNdEx]
  9263. iNdEx++
  9264. stringLen |= (uint64(b) & 0x7F) << shift
  9265. if b < 0x80 {
  9266. break
  9267. }
  9268. }
  9269. intStringLen := int(stringLen)
  9270. if intStringLen < 0 {
  9271. return ErrInvalidLengthApi
  9272. }
  9273. postIndex := iNdEx + intStringLen
  9274. if postIndex > l {
  9275. return io.ErrUnexpectedEOF
  9276. }
  9277. m.WebLink = string(dAtA[iNdEx:postIndex])
  9278. iNdEx = postIndex
  9279. case 9:
  9280. if wireType != 2 {
  9281. return fmt.Errorf("proto: wrong wireType = %d for field Dimension", wireType)
  9282. }
  9283. var msglen int
  9284. for shift := uint(0); ; shift += 7 {
  9285. if shift >= 64 {
  9286. return ErrIntOverflowApi
  9287. }
  9288. if iNdEx >= l {
  9289. return io.ErrUnexpectedEOF
  9290. }
  9291. b := dAtA[iNdEx]
  9292. iNdEx++
  9293. msglen |= (int(b) & 0x7F) << shift
  9294. if b < 0x80 {
  9295. break
  9296. }
  9297. }
  9298. if msglen < 0 {
  9299. return ErrInvalidLengthApi
  9300. }
  9301. postIndex := iNdEx + msglen
  9302. if postIndex > l {
  9303. return io.ErrUnexpectedEOF
  9304. }
  9305. if err := m.Dimension.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9306. return err
  9307. }
  9308. iNdEx = postIndex
  9309. default:
  9310. iNdEx = preIndex
  9311. skippy, err := skipApi(dAtA[iNdEx:])
  9312. if err != nil {
  9313. return err
  9314. }
  9315. if skippy < 0 {
  9316. return ErrInvalidLengthApi
  9317. }
  9318. if (iNdEx + skippy) > l {
  9319. return io.ErrUnexpectedEOF
  9320. }
  9321. iNdEx += skippy
  9322. }
  9323. }
  9324. if iNdEx > l {
  9325. return io.ErrUnexpectedEOF
  9326. }
  9327. return nil
  9328. }
  9329. func (m *VideoFileInfo) Unmarshal(dAtA []byte) error {
  9330. l := len(dAtA)
  9331. iNdEx := 0
  9332. for iNdEx < l {
  9333. preIndex := iNdEx
  9334. var wire uint64
  9335. for shift := uint(0); ; shift += 7 {
  9336. if shift >= 64 {
  9337. return ErrIntOverflowApi
  9338. }
  9339. if iNdEx >= l {
  9340. return io.ErrUnexpectedEOF
  9341. }
  9342. b := dAtA[iNdEx]
  9343. iNdEx++
  9344. wire |= (uint64(b) & 0x7F) << shift
  9345. if b < 0x80 {
  9346. break
  9347. }
  9348. }
  9349. fieldNum := int32(wire >> 3)
  9350. wireType := int(wire & 0x7)
  9351. if wireType == 4 {
  9352. return fmt.Errorf("proto: VideoFileInfo: wiretype end group for non-group")
  9353. }
  9354. if fieldNum <= 0 {
  9355. return fmt.Errorf("proto: VideoFileInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  9356. }
  9357. switch fieldNum {
  9358. case 1:
  9359. if wireType != 0 {
  9360. return fmt.Errorf("proto: wrong wireType = %d for field Filesize", wireType)
  9361. }
  9362. m.Filesize = 0
  9363. for shift := uint(0); ; shift += 7 {
  9364. if shift >= 64 {
  9365. return ErrIntOverflowApi
  9366. }
  9367. if iNdEx >= l {
  9368. return io.ErrUnexpectedEOF
  9369. }
  9370. b := dAtA[iNdEx]
  9371. iNdEx++
  9372. m.Filesize |= (int64(b) & 0x7F) << shift
  9373. if b < 0x80 {
  9374. break
  9375. }
  9376. }
  9377. case 2:
  9378. if wireType != 0 {
  9379. return fmt.Errorf("proto: wrong wireType = %d for field Timelength", wireType)
  9380. }
  9381. m.Timelength = 0
  9382. for shift := uint(0); ; shift += 7 {
  9383. if shift >= 64 {
  9384. return ErrIntOverflowApi
  9385. }
  9386. if iNdEx >= l {
  9387. return io.ErrUnexpectedEOF
  9388. }
  9389. b := dAtA[iNdEx]
  9390. iNdEx++
  9391. m.Timelength |= (int64(b) & 0x7F) << shift
  9392. if b < 0x80 {
  9393. break
  9394. }
  9395. }
  9396. case 3:
  9397. if wireType != 2 {
  9398. return fmt.Errorf("proto: wrong wireType = %d for field Ahead", wireType)
  9399. }
  9400. var stringLen uint64
  9401. for shift := uint(0); ; shift += 7 {
  9402. if shift >= 64 {
  9403. return ErrIntOverflowApi
  9404. }
  9405. if iNdEx >= l {
  9406. return io.ErrUnexpectedEOF
  9407. }
  9408. b := dAtA[iNdEx]
  9409. iNdEx++
  9410. stringLen |= (uint64(b) & 0x7F) << shift
  9411. if b < 0x80 {
  9412. break
  9413. }
  9414. }
  9415. intStringLen := int(stringLen)
  9416. if intStringLen < 0 {
  9417. return ErrInvalidLengthApi
  9418. }
  9419. postIndex := iNdEx + intStringLen
  9420. if postIndex > l {
  9421. return io.ErrUnexpectedEOF
  9422. }
  9423. m.Ahead = string(dAtA[iNdEx:postIndex])
  9424. iNdEx = postIndex
  9425. case 4:
  9426. if wireType != 2 {
  9427. return fmt.Errorf("proto: wrong wireType = %d for field Vhead", wireType)
  9428. }
  9429. var stringLen uint64
  9430. for shift := uint(0); ; shift += 7 {
  9431. if shift >= 64 {
  9432. return ErrIntOverflowApi
  9433. }
  9434. if iNdEx >= l {
  9435. return io.ErrUnexpectedEOF
  9436. }
  9437. b := dAtA[iNdEx]
  9438. iNdEx++
  9439. stringLen |= (uint64(b) & 0x7F) << shift
  9440. if b < 0x80 {
  9441. break
  9442. }
  9443. }
  9444. intStringLen := int(stringLen)
  9445. if intStringLen < 0 {
  9446. return ErrInvalidLengthApi
  9447. }
  9448. postIndex := iNdEx + intStringLen
  9449. if postIndex > l {
  9450. return io.ErrUnexpectedEOF
  9451. }
  9452. m.Vhead = string(dAtA[iNdEx:postIndex])
  9453. iNdEx = postIndex
  9454. default:
  9455. iNdEx = preIndex
  9456. skippy, err := skipApi(dAtA[iNdEx:])
  9457. if err != nil {
  9458. return err
  9459. }
  9460. if skippy < 0 {
  9461. return ErrInvalidLengthApi
  9462. }
  9463. if (iNdEx + skippy) > l {
  9464. return io.ErrUnexpectedEOF
  9465. }
  9466. iNdEx += skippy
  9467. }
  9468. }
  9469. if iNdEx > l {
  9470. return io.ErrUnexpectedEOF
  9471. }
  9472. return nil
  9473. }
  9474. func (m *VideoFormatFileInfo) Unmarshal(dAtA []byte) error {
  9475. l := len(dAtA)
  9476. iNdEx := 0
  9477. for iNdEx < l {
  9478. preIndex := iNdEx
  9479. var wire uint64
  9480. for shift := uint(0); ; shift += 7 {
  9481. if shift >= 64 {
  9482. return ErrIntOverflowApi
  9483. }
  9484. if iNdEx >= l {
  9485. return io.ErrUnexpectedEOF
  9486. }
  9487. b := dAtA[iNdEx]
  9488. iNdEx++
  9489. wire |= (uint64(b) & 0x7F) << shift
  9490. if b < 0x80 {
  9491. break
  9492. }
  9493. }
  9494. fieldNum := int32(wire >> 3)
  9495. wireType := int(wire & 0x7)
  9496. if wireType == 4 {
  9497. return fmt.Errorf("proto: VideoFormatFileInfo: wiretype end group for non-group")
  9498. }
  9499. if fieldNum <= 0 {
  9500. return fmt.Errorf("proto: VideoFormatFileInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  9501. }
  9502. switch fieldNum {
  9503. case 1:
  9504. if wireType != 2 {
  9505. return fmt.Errorf("proto: wrong wireType = %d for field Infos", wireType)
  9506. }
  9507. var msglen int
  9508. for shift := uint(0); ; shift += 7 {
  9509. if shift >= 64 {
  9510. return ErrIntOverflowApi
  9511. }
  9512. if iNdEx >= l {
  9513. return io.ErrUnexpectedEOF
  9514. }
  9515. b := dAtA[iNdEx]
  9516. iNdEx++
  9517. msglen |= (int(b) & 0x7F) << shift
  9518. if b < 0x80 {
  9519. break
  9520. }
  9521. }
  9522. if msglen < 0 {
  9523. return ErrInvalidLengthApi
  9524. }
  9525. postIndex := iNdEx + msglen
  9526. if postIndex > l {
  9527. return io.ErrUnexpectedEOF
  9528. }
  9529. m.Infos = append(m.Infos, &VideoFileInfo{})
  9530. if err := m.Infos[len(m.Infos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9531. return err
  9532. }
  9533. iNdEx = postIndex
  9534. default:
  9535. iNdEx = preIndex
  9536. skippy, err := skipApi(dAtA[iNdEx:])
  9537. if err != nil {
  9538. return err
  9539. }
  9540. if skippy < 0 {
  9541. return ErrInvalidLengthApi
  9542. }
  9543. if (iNdEx + skippy) > l {
  9544. return io.ErrUnexpectedEOF
  9545. }
  9546. iNdEx += skippy
  9547. }
  9548. }
  9549. if iNdEx > l {
  9550. return io.ErrUnexpectedEOF
  9551. }
  9552. return nil
  9553. }
  9554. func (m *DashItem) Unmarshal(dAtA []byte) error {
  9555. l := len(dAtA)
  9556. iNdEx := 0
  9557. for iNdEx < l {
  9558. preIndex := iNdEx
  9559. var wire uint64
  9560. for shift := uint(0); ; shift += 7 {
  9561. if shift >= 64 {
  9562. return ErrIntOverflowApi
  9563. }
  9564. if iNdEx >= l {
  9565. return io.ErrUnexpectedEOF
  9566. }
  9567. b := dAtA[iNdEx]
  9568. iNdEx++
  9569. wire |= (uint64(b) & 0x7F) << shift
  9570. if b < 0x80 {
  9571. break
  9572. }
  9573. }
  9574. fieldNum := int32(wire >> 3)
  9575. wireType := int(wire & 0x7)
  9576. if wireType == 4 {
  9577. return fmt.Errorf("proto: DashItem: wiretype end group for non-group")
  9578. }
  9579. if fieldNum <= 0 {
  9580. return fmt.Errorf("proto: DashItem: illegal tag %d (wire type %d)", fieldNum, wire)
  9581. }
  9582. switch fieldNum {
  9583. case 1:
  9584. if wireType != 0 {
  9585. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  9586. }
  9587. m.Id = 0
  9588. for shift := uint(0); ; shift += 7 {
  9589. if shift >= 64 {
  9590. return ErrIntOverflowApi
  9591. }
  9592. if iNdEx >= l {
  9593. return io.ErrUnexpectedEOF
  9594. }
  9595. b := dAtA[iNdEx]
  9596. iNdEx++
  9597. m.Id |= (int64(b) & 0x7F) << shift
  9598. if b < 0x80 {
  9599. break
  9600. }
  9601. }
  9602. case 2:
  9603. if wireType != 2 {
  9604. return fmt.Errorf("proto: wrong wireType = %d for field BaseUrl", wireType)
  9605. }
  9606. var stringLen uint64
  9607. for shift := uint(0); ; shift += 7 {
  9608. if shift >= 64 {
  9609. return ErrIntOverflowApi
  9610. }
  9611. if iNdEx >= l {
  9612. return io.ErrUnexpectedEOF
  9613. }
  9614. b := dAtA[iNdEx]
  9615. iNdEx++
  9616. stringLen |= (uint64(b) & 0x7F) << shift
  9617. if b < 0x80 {
  9618. break
  9619. }
  9620. }
  9621. intStringLen := int(stringLen)
  9622. if intStringLen < 0 {
  9623. return ErrInvalidLengthApi
  9624. }
  9625. postIndex := iNdEx + intStringLen
  9626. if postIndex > l {
  9627. return io.ErrUnexpectedEOF
  9628. }
  9629. m.BaseUrl = string(dAtA[iNdEx:postIndex])
  9630. iNdEx = postIndex
  9631. case 3:
  9632. if wireType != 0 {
  9633. return fmt.Errorf("proto: wrong wireType = %d for field Bandwidth", wireType)
  9634. }
  9635. m.Bandwidth = 0
  9636. for shift := uint(0); ; shift += 7 {
  9637. if shift >= 64 {
  9638. return ErrIntOverflowApi
  9639. }
  9640. if iNdEx >= l {
  9641. return io.ErrUnexpectedEOF
  9642. }
  9643. b := dAtA[iNdEx]
  9644. iNdEx++
  9645. m.Bandwidth |= (int64(b) & 0x7F) << shift
  9646. if b < 0x80 {
  9647. break
  9648. }
  9649. }
  9650. case 4:
  9651. if wireType != 0 {
  9652. return fmt.Errorf("proto: wrong wireType = %d for field Codecid", wireType)
  9653. }
  9654. m.Codecid = 0
  9655. for shift := uint(0); ; shift += 7 {
  9656. if shift >= 64 {
  9657. return ErrIntOverflowApi
  9658. }
  9659. if iNdEx >= l {
  9660. return io.ErrUnexpectedEOF
  9661. }
  9662. b := dAtA[iNdEx]
  9663. iNdEx++
  9664. m.Codecid |= (int64(b) & 0x7F) << shift
  9665. if b < 0x80 {
  9666. break
  9667. }
  9668. }
  9669. default:
  9670. iNdEx = preIndex
  9671. skippy, err := skipApi(dAtA[iNdEx:])
  9672. if err != nil {
  9673. return err
  9674. }
  9675. if skippy < 0 {
  9676. return ErrInvalidLengthApi
  9677. }
  9678. if (iNdEx + skippy) > l {
  9679. return io.ErrUnexpectedEOF
  9680. }
  9681. iNdEx += skippy
  9682. }
  9683. }
  9684. if iNdEx > l {
  9685. return io.ErrUnexpectedEOF
  9686. }
  9687. return nil
  9688. }
  9689. func (m *ResponseDash) Unmarshal(dAtA []byte) error {
  9690. l := len(dAtA)
  9691. iNdEx := 0
  9692. for iNdEx < l {
  9693. preIndex := iNdEx
  9694. var wire uint64
  9695. for shift := uint(0); ; shift += 7 {
  9696. if shift >= 64 {
  9697. return ErrIntOverflowApi
  9698. }
  9699. if iNdEx >= l {
  9700. return io.ErrUnexpectedEOF
  9701. }
  9702. b := dAtA[iNdEx]
  9703. iNdEx++
  9704. wire |= (uint64(b) & 0x7F) << shift
  9705. if b < 0x80 {
  9706. break
  9707. }
  9708. }
  9709. fieldNum := int32(wire >> 3)
  9710. wireType := int(wire & 0x7)
  9711. if wireType == 4 {
  9712. return fmt.Errorf("proto: ResponseDash: wiretype end group for non-group")
  9713. }
  9714. if fieldNum <= 0 {
  9715. return fmt.Errorf("proto: ResponseDash: illegal tag %d (wire type %d)", fieldNum, wire)
  9716. }
  9717. switch fieldNum {
  9718. case 1:
  9719. if wireType != 2 {
  9720. return fmt.Errorf("proto: wrong wireType = %d for field Video", wireType)
  9721. }
  9722. var msglen int
  9723. for shift := uint(0); ; shift += 7 {
  9724. if shift >= 64 {
  9725. return ErrIntOverflowApi
  9726. }
  9727. if iNdEx >= l {
  9728. return io.ErrUnexpectedEOF
  9729. }
  9730. b := dAtA[iNdEx]
  9731. iNdEx++
  9732. msglen |= (int(b) & 0x7F) << shift
  9733. if b < 0x80 {
  9734. break
  9735. }
  9736. }
  9737. if msglen < 0 {
  9738. return ErrInvalidLengthApi
  9739. }
  9740. postIndex := iNdEx + msglen
  9741. if postIndex > l {
  9742. return io.ErrUnexpectedEOF
  9743. }
  9744. m.Video = append(m.Video, &DashItem{})
  9745. if err := m.Video[len(m.Video)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9746. return err
  9747. }
  9748. iNdEx = postIndex
  9749. case 2:
  9750. if wireType != 2 {
  9751. return fmt.Errorf("proto: wrong wireType = %d for field Audio", wireType)
  9752. }
  9753. var msglen int
  9754. for shift := uint(0); ; shift += 7 {
  9755. if shift >= 64 {
  9756. return ErrIntOverflowApi
  9757. }
  9758. if iNdEx >= l {
  9759. return io.ErrUnexpectedEOF
  9760. }
  9761. b := dAtA[iNdEx]
  9762. iNdEx++
  9763. msglen |= (int(b) & 0x7F) << shift
  9764. if b < 0x80 {
  9765. break
  9766. }
  9767. }
  9768. if msglen < 0 {
  9769. return ErrInvalidLengthApi
  9770. }
  9771. postIndex := iNdEx + msglen
  9772. if postIndex > l {
  9773. return io.ErrUnexpectedEOF
  9774. }
  9775. m.Audio = append(m.Audio, &DashItem{})
  9776. if err := m.Audio[len(m.Audio)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9777. return err
  9778. }
  9779. iNdEx = postIndex
  9780. default:
  9781. iNdEx = preIndex
  9782. skippy, err := skipApi(dAtA[iNdEx:])
  9783. if err != nil {
  9784. return err
  9785. }
  9786. if skippy < 0 {
  9787. return ErrInvalidLengthApi
  9788. }
  9789. if (iNdEx + skippy) > l {
  9790. return io.ErrUnexpectedEOF
  9791. }
  9792. iNdEx += skippy
  9793. }
  9794. }
  9795. if iNdEx > l {
  9796. return io.ErrUnexpectedEOF
  9797. }
  9798. return nil
  9799. }
  9800. func (m *BvcVideoItem) Unmarshal(dAtA []byte) error {
  9801. l := len(dAtA)
  9802. iNdEx := 0
  9803. for iNdEx < l {
  9804. preIndex := iNdEx
  9805. var wire uint64
  9806. for shift := uint(0); ; shift += 7 {
  9807. if shift >= 64 {
  9808. return ErrIntOverflowApi
  9809. }
  9810. if iNdEx >= l {
  9811. return io.ErrUnexpectedEOF
  9812. }
  9813. b := dAtA[iNdEx]
  9814. iNdEx++
  9815. wire |= (uint64(b) & 0x7F) << shift
  9816. if b < 0x80 {
  9817. break
  9818. }
  9819. }
  9820. fieldNum := int32(wire >> 3)
  9821. wireType := int(wire & 0x7)
  9822. if wireType == 4 {
  9823. return fmt.Errorf("proto: BvcVideoItem: wiretype end group for non-group")
  9824. }
  9825. if fieldNum <= 0 {
  9826. return fmt.Errorf("proto: BvcVideoItem: illegal tag %d (wire type %d)", fieldNum, wire)
  9827. }
  9828. switch fieldNum {
  9829. case 1:
  9830. if wireType != 0 {
  9831. return fmt.Errorf("proto: wrong wireType = %d for field ExpireTime", wireType)
  9832. }
  9833. m.ExpireTime = 0
  9834. for shift := uint(0); ; shift += 7 {
  9835. if shift >= 64 {
  9836. return ErrIntOverflowApi
  9837. }
  9838. if iNdEx >= l {
  9839. return io.ErrUnexpectedEOF
  9840. }
  9841. b := dAtA[iNdEx]
  9842. iNdEx++
  9843. m.ExpireTime |= (int64(b) & 0x7F) << shift
  9844. if b < 0x80 {
  9845. break
  9846. }
  9847. }
  9848. case 2:
  9849. if wireType != 0 {
  9850. return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
  9851. }
  9852. m.Cid = 0
  9853. for shift := uint(0); ; shift += 7 {
  9854. if shift >= 64 {
  9855. return ErrIntOverflowApi
  9856. }
  9857. if iNdEx >= l {
  9858. return io.ErrUnexpectedEOF
  9859. }
  9860. b := dAtA[iNdEx]
  9861. iNdEx++
  9862. m.Cid |= (int64(b) & 0x7F) << shift
  9863. if b < 0x80 {
  9864. break
  9865. }
  9866. }
  9867. case 3:
  9868. if wireType == 0 {
  9869. var v int
  9870. for shift := uint(0); ; shift += 7 {
  9871. if shift >= 64 {
  9872. return ErrIntOverflowApi
  9873. }
  9874. if iNdEx >= l {
  9875. return io.ErrUnexpectedEOF
  9876. }
  9877. b := dAtA[iNdEx]
  9878. iNdEx++
  9879. v |= (int(b) & 0x7F) << shift
  9880. if b < 0x80 {
  9881. break
  9882. }
  9883. }
  9884. m.SupportQuality = append(m.SupportQuality, v)
  9885. } else if wireType == 2 {
  9886. var packedLen int
  9887. for shift := uint(0); ; shift += 7 {
  9888. if shift >= 64 {
  9889. return ErrIntOverflowApi
  9890. }
  9891. if iNdEx >= l {
  9892. return io.ErrUnexpectedEOF
  9893. }
  9894. b := dAtA[iNdEx]
  9895. iNdEx++
  9896. packedLen |= (int(b) & 0x7F) << shift
  9897. if b < 0x80 {
  9898. break
  9899. }
  9900. }
  9901. if packedLen < 0 {
  9902. return ErrInvalidLengthApi
  9903. }
  9904. postIndex := iNdEx + packedLen
  9905. if postIndex > l {
  9906. return io.ErrUnexpectedEOF
  9907. }
  9908. for iNdEx < postIndex {
  9909. var v int
  9910. for shift := uint(0); ; shift += 7 {
  9911. if shift >= 64 {
  9912. return ErrIntOverflowApi
  9913. }
  9914. if iNdEx >= l {
  9915. return io.ErrUnexpectedEOF
  9916. }
  9917. b := dAtA[iNdEx]
  9918. iNdEx++
  9919. v |= (int(b) & 0x7F) << shift
  9920. if b < 0x80 {
  9921. break
  9922. }
  9923. }
  9924. m.SupportQuality = append(m.SupportQuality, v)
  9925. }
  9926. } else {
  9927. return fmt.Errorf("proto: wrong wireType = %d for field SupportQuality", wireType)
  9928. }
  9929. case 4:
  9930. if wireType != 2 {
  9931. return fmt.Errorf("proto: wrong wireType = %d for field SupportFormats", wireType)
  9932. }
  9933. var stringLen uint64
  9934. for shift := uint(0); ; shift += 7 {
  9935. if shift >= 64 {
  9936. return ErrIntOverflowApi
  9937. }
  9938. if iNdEx >= l {
  9939. return io.ErrUnexpectedEOF
  9940. }
  9941. b := dAtA[iNdEx]
  9942. iNdEx++
  9943. stringLen |= (uint64(b) & 0x7F) << shift
  9944. if b < 0x80 {
  9945. break
  9946. }
  9947. }
  9948. intStringLen := int(stringLen)
  9949. if intStringLen < 0 {
  9950. return ErrInvalidLengthApi
  9951. }
  9952. postIndex := iNdEx + intStringLen
  9953. if postIndex > l {
  9954. return io.ErrUnexpectedEOF
  9955. }
  9956. m.SupportFormats = append(m.SupportFormats, string(dAtA[iNdEx:postIndex]))
  9957. iNdEx = postIndex
  9958. case 5:
  9959. if wireType != 2 {
  9960. return fmt.Errorf("proto: wrong wireType = %d for field SupportDescription", wireType)
  9961. }
  9962. var stringLen uint64
  9963. for shift := uint(0); ; shift += 7 {
  9964. if shift >= 64 {
  9965. return ErrIntOverflowApi
  9966. }
  9967. if iNdEx >= l {
  9968. return io.ErrUnexpectedEOF
  9969. }
  9970. b := dAtA[iNdEx]
  9971. iNdEx++
  9972. stringLen |= (uint64(b) & 0x7F) << shift
  9973. if b < 0x80 {
  9974. break
  9975. }
  9976. }
  9977. intStringLen := int(stringLen)
  9978. if intStringLen < 0 {
  9979. return ErrInvalidLengthApi
  9980. }
  9981. postIndex := iNdEx + intStringLen
  9982. if postIndex > l {
  9983. return io.ErrUnexpectedEOF
  9984. }
  9985. m.SupportDescription = append(m.SupportDescription, string(dAtA[iNdEx:postIndex]))
  9986. iNdEx = postIndex
  9987. case 6:
  9988. if wireType != 0 {
  9989. return fmt.Errorf("proto: wrong wireType = %d for field Quality", wireType)
  9990. }
  9991. m.Quality = 0
  9992. for shift := uint(0); ; shift += 7 {
  9993. if shift >= 64 {
  9994. return ErrIntOverflowApi
  9995. }
  9996. if iNdEx >= l {
  9997. return io.ErrUnexpectedEOF
  9998. }
  9999. b := dAtA[iNdEx]
  10000. iNdEx++
  10001. m.Quality |= (int(b) & 0x7F) << shift
  10002. if b < 0x80 {
  10003. break
  10004. }
  10005. }
  10006. case 7:
  10007. if wireType != 2 {
  10008. return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
  10009. }
  10010. var stringLen uint64
  10011. for shift := uint(0); ; shift += 7 {
  10012. if shift >= 64 {
  10013. return ErrIntOverflowApi
  10014. }
  10015. if iNdEx >= l {
  10016. return io.ErrUnexpectedEOF
  10017. }
  10018. b := dAtA[iNdEx]
  10019. iNdEx++
  10020. stringLen |= (uint64(b) & 0x7F) << shift
  10021. if b < 0x80 {
  10022. break
  10023. }
  10024. }
  10025. intStringLen := int(stringLen)
  10026. if intStringLen < 0 {
  10027. return ErrInvalidLengthApi
  10028. }
  10029. postIndex := iNdEx + intStringLen
  10030. if postIndex > l {
  10031. return io.ErrUnexpectedEOF
  10032. }
  10033. m.Url = string(dAtA[iNdEx:postIndex])
  10034. iNdEx = postIndex
  10035. case 8:
  10036. if wireType != 2 {
  10037. return fmt.Errorf("proto: wrong wireType = %d for field FileInfo", wireType)
  10038. }
  10039. var msglen int
  10040. for shift := uint(0); ; shift += 7 {
  10041. if shift >= 64 {
  10042. return ErrIntOverflowApi
  10043. }
  10044. if iNdEx >= l {
  10045. return io.ErrUnexpectedEOF
  10046. }
  10047. b := dAtA[iNdEx]
  10048. iNdEx++
  10049. msglen |= (int(b) & 0x7F) << shift
  10050. if b < 0x80 {
  10051. break
  10052. }
  10053. }
  10054. if msglen < 0 {
  10055. return ErrInvalidLengthApi
  10056. }
  10057. postIndex := iNdEx + msglen
  10058. if postIndex > l {
  10059. return io.ErrUnexpectedEOF
  10060. }
  10061. if m.FileInfo == nil {
  10062. m.FileInfo = make(map[uint32]*VideoFormatFileInfo)
  10063. }
  10064. var mapkey uint32
  10065. var mapvalue *VideoFormatFileInfo
  10066. for iNdEx < postIndex {
  10067. entryPreIndex := iNdEx
  10068. var wire uint64
  10069. for shift := uint(0); ; shift += 7 {
  10070. if shift >= 64 {
  10071. return ErrIntOverflowApi
  10072. }
  10073. if iNdEx >= l {
  10074. return io.ErrUnexpectedEOF
  10075. }
  10076. b := dAtA[iNdEx]
  10077. iNdEx++
  10078. wire |= (uint64(b) & 0x7F) << shift
  10079. if b < 0x80 {
  10080. break
  10081. }
  10082. }
  10083. fieldNum := int32(wire >> 3)
  10084. if fieldNum == 1 {
  10085. for shift := uint(0); ; shift += 7 {
  10086. if shift >= 64 {
  10087. return ErrIntOverflowApi
  10088. }
  10089. if iNdEx >= l {
  10090. return io.ErrUnexpectedEOF
  10091. }
  10092. b := dAtA[iNdEx]
  10093. iNdEx++
  10094. mapkey |= (uint32(b) & 0x7F) << shift
  10095. if b < 0x80 {
  10096. break
  10097. }
  10098. }
  10099. } else if fieldNum == 2 {
  10100. var mapmsglen int
  10101. for shift := uint(0); ; shift += 7 {
  10102. if shift >= 64 {
  10103. return ErrIntOverflowApi
  10104. }
  10105. if iNdEx >= l {
  10106. return io.ErrUnexpectedEOF
  10107. }
  10108. b := dAtA[iNdEx]
  10109. iNdEx++
  10110. mapmsglen |= (int(b) & 0x7F) << shift
  10111. if b < 0x80 {
  10112. break
  10113. }
  10114. }
  10115. if mapmsglen < 0 {
  10116. return ErrInvalidLengthApi
  10117. }
  10118. postmsgIndex := iNdEx + mapmsglen
  10119. if mapmsglen < 0 {
  10120. return ErrInvalidLengthApi
  10121. }
  10122. if postmsgIndex > l {
  10123. return io.ErrUnexpectedEOF
  10124. }
  10125. mapvalue = &VideoFormatFileInfo{}
  10126. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  10127. return err
  10128. }
  10129. iNdEx = postmsgIndex
  10130. } else {
  10131. iNdEx = entryPreIndex
  10132. skippy, err := skipApi(dAtA[iNdEx:])
  10133. if err != nil {
  10134. return err
  10135. }
  10136. if skippy < 0 {
  10137. return ErrInvalidLengthApi
  10138. }
  10139. if (iNdEx + skippy) > postIndex {
  10140. return io.ErrUnexpectedEOF
  10141. }
  10142. iNdEx += skippy
  10143. }
  10144. }
  10145. m.FileInfo[mapkey] = mapvalue
  10146. iNdEx = postIndex
  10147. case 9:
  10148. if wireType != 0 {
  10149. return fmt.Errorf("proto: wrong wireType = %d for field VideoCodecid", wireType)
  10150. }
  10151. m.VideoCodecid = 0
  10152. for shift := uint(0); ; shift += 7 {
  10153. if shift >= 64 {
  10154. return ErrIntOverflowApi
  10155. }
  10156. if iNdEx >= l {
  10157. return io.ErrUnexpectedEOF
  10158. }
  10159. b := dAtA[iNdEx]
  10160. iNdEx++
  10161. m.VideoCodecid |= (uint32(b) & 0x7F) << shift
  10162. if b < 0x80 {
  10163. break
  10164. }
  10165. }
  10166. case 10:
  10167. if wireType != 0 {
  10168. return fmt.Errorf("proto: wrong wireType = %d for field VideoProject", wireType)
  10169. }
  10170. var v int
  10171. for shift := uint(0); ; shift += 7 {
  10172. if shift >= 64 {
  10173. return ErrIntOverflowApi
  10174. }
  10175. if iNdEx >= l {
  10176. return io.ErrUnexpectedEOF
  10177. }
  10178. b := dAtA[iNdEx]
  10179. iNdEx++
  10180. v |= (int(b) & 0x7F) << shift
  10181. if b < 0x80 {
  10182. break
  10183. }
  10184. }
  10185. m.VideoProject = bool(v != 0)
  10186. case 11:
  10187. if wireType != 0 {
  10188. return fmt.Errorf("proto: wrong wireType = %d for field Fnver", wireType)
  10189. }
  10190. m.Fnver = 0
  10191. for shift := uint(0); ; shift += 7 {
  10192. if shift >= 64 {
  10193. return ErrIntOverflowApi
  10194. }
  10195. if iNdEx >= l {
  10196. return io.ErrUnexpectedEOF
  10197. }
  10198. b := dAtA[iNdEx]
  10199. iNdEx++
  10200. m.Fnver |= (int(b) & 0x7F) << shift
  10201. if b < 0x80 {
  10202. break
  10203. }
  10204. }
  10205. case 12:
  10206. if wireType != 0 {
  10207. return fmt.Errorf("proto: wrong wireType = %d for field Fnval", wireType)
  10208. }
  10209. m.Fnval = 0
  10210. for shift := uint(0); ; shift += 7 {
  10211. if shift >= 64 {
  10212. return ErrIntOverflowApi
  10213. }
  10214. if iNdEx >= l {
  10215. return io.ErrUnexpectedEOF
  10216. }
  10217. b := dAtA[iNdEx]
  10218. iNdEx++
  10219. m.Fnval |= (int(b) & 0x7F) << shift
  10220. if b < 0x80 {
  10221. break
  10222. }
  10223. }
  10224. case 13:
  10225. if wireType != 2 {
  10226. return fmt.Errorf("proto: wrong wireType = %d for field Dash", wireType)
  10227. }
  10228. var msglen int
  10229. for shift := uint(0); ; shift += 7 {
  10230. if shift >= 64 {
  10231. return ErrIntOverflowApi
  10232. }
  10233. if iNdEx >= l {
  10234. return io.ErrUnexpectedEOF
  10235. }
  10236. b := dAtA[iNdEx]
  10237. iNdEx++
  10238. msglen |= (int(b) & 0x7F) << shift
  10239. if b < 0x80 {
  10240. break
  10241. }
  10242. }
  10243. if msglen < 0 {
  10244. return ErrInvalidLengthApi
  10245. }
  10246. postIndex := iNdEx + msglen
  10247. if postIndex > l {
  10248. return io.ErrUnexpectedEOF
  10249. }
  10250. if m.Dash == nil {
  10251. m.Dash = &ResponseDash{}
  10252. }
  10253. if err := m.Dash.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10254. return err
  10255. }
  10256. iNdEx = postIndex
  10257. default:
  10258. iNdEx = preIndex
  10259. skippy, err := skipApi(dAtA[iNdEx:])
  10260. if err != nil {
  10261. return err
  10262. }
  10263. if skippy < 0 {
  10264. return ErrInvalidLengthApi
  10265. }
  10266. if (iNdEx + skippy) > l {
  10267. return io.ErrUnexpectedEOF
  10268. }
  10269. iNdEx += skippy
  10270. }
  10271. }
  10272. if iNdEx > l {
  10273. return io.ErrUnexpectedEOF
  10274. }
  10275. return nil
  10276. }
  10277. func (m *BvcResponseMsg) Unmarshal(dAtA []byte) error {
  10278. l := len(dAtA)
  10279. iNdEx := 0
  10280. for iNdEx < l {
  10281. preIndex := iNdEx
  10282. var wire uint64
  10283. for shift := uint(0); ; shift += 7 {
  10284. if shift >= 64 {
  10285. return ErrIntOverflowApi
  10286. }
  10287. if iNdEx >= l {
  10288. return io.ErrUnexpectedEOF
  10289. }
  10290. b := dAtA[iNdEx]
  10291. iNdEx++
  10292. wire |= (uint64(b) & 0x7F) << shift
  10293. if b < 0x80 {
  10294. break
  10295. }
  10296. }
  10297. fieldNum := int32(wire >> 3)
  10298. wireType := int(wire & 0x7)
  10299. if wireType == 4 {
  10300. return fmt.Errorf("proto: BvcResponseMsg: wiretype end group for non-group")
  10301. }
  10302. if fieldNum <= 0 {
  10303. return fmt.Errorf("proto: BvcResponseMsg: illegal tag %d (wire type %d)", fieldNum, wire)
  10304. }
  10305. switch fieldNum {
  10306. case 1:
  10307. if wireType != 0 {
  10308. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  10309. }
  10310. m.Code = 0
  10311. for shift := uint(0); ; shift += 7 {
  10312. if shift >= 64 {
  10313. return ErrIntOverflowApi
  10314. }
  10315. if iNdEx >= l {
  10316. return io.ErrUnexpectedEOF
  10317. }
  10318. b := dAtA[iNdEx]
  10319. iNdEx++
  10320. m.Code |= (int64(b) & 0x7F) << shift
  10321. if b < 0x80 {
  10322. break
  10323. }
  10324. }
  10325. case 2:
  10326. if wireType != 2 {
  10327. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  10328. }
  10329. var msglen int
  10330. for shift := uint(0); ; shift += 7 {
  10331. if shift >= 64 {
  10332. return ErrIntOverflowApi
  10333. }
  10334. if iNdEx >= l {
  10335. return io.ErrUnexpectedEOF
  10336. }
  10337. b := dAtA[iNdEx]
  10338. iNdEx++
  10339. msglen |= (int(b) & 0x7F) << shift
  10340. if b < 0x80 {
  10341. break
  10342. }
  10343. }
  10344. if msglen < 0 {
  10345. return ErrInvalidLengthApi
  10346. }
  10347. postIndex := iNdEx + msglen
  10348. if postIndex > l {
  10349. return io.ErrUnexpectedEOF
  10350. }
  10351. if m.Data == nil {
  10352. m.Data = make(map[uint32]*BvcVideoItem)
  10353. }
  10354. var mapkey uint32
  10355. var mapvalue *BvcVideoItem
  10356. for iNdEx < postIndex {
  10357. entryPreIndex := iNdEx
  10358. var wire uint64
  10359. for shift := uint(0); ; shift += 7 {
  10360. if shift >= 64 {
  10361. return ErrIntOverflowApi
  10362. }
  10363. if iNdEx >= l {
  10364. return io.ErrUnexpectedEOF
  10365. }
  10366. b := dAtA[iNdEx]
  10367. iNdEx++
  10368. wire |= (uint64(b) & 0x7F) << shift
  10369. if b < 0x80 {
  10370. break
  10371. }
  10372. }
  10373. fieldNum := int32(wire >> 3)
  10374. if fieldNum == 1 {
  10375. for shift := uint(0); ; shift += 7 {
  10376. if shift >= 64 {
  10377. return ErrIntOverflowApi
  10378. }
  10379. if iNdEx >= l {
  10380. return io.ErrUnexpectedEOF
  10381. }
  10382. b := dAtA[iNdEx]
  10383. iNdEx++
  10384. mapkey |= (uint32(b) & 0x7F) << shift
  10385. if b < 0x80 {
  10386. break
  10387. }
  10388. }
  10389. } else if fieldNum == 2 {
  10390. var mapmsglen int
  10391. for shift := uint(0); ; shift += 7 {
  10392. if shift >= 64 {
  10393. return ErrIntOverflowApi
  10394. }
  10395. if iNdEx >= l {
  10396. return io.ErrUnexpectedEOF
  10397. }
  10398. b := dAtA[iNdEx]
  10399. iNdEx++
  10400. mapmsglen |= (int(b) & 0x7F) << shift
  10401. if b < 0x80 {
  10402. break
  10403. }
  10404. }
  10405. if mapmsglen < 0 {
  10406. return ErrInvalidLengthApi
  10407. }
  10408. postmsgIndex := iNdEx + mapmsglen
  10409. if mapmsglen < 0 {
  10410. return ErrInvalidLengthApi
  10411. }
  10412. if postmsgIndex > l {
  10413. return io.ErrUnexpectedEOF
  10414. }
  10415. mapvalue = &BvcVideoItem{}
  10416. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  10417. return err
  10418. }
  10419. iNdEx = postmsgIndex
  10420. } else {
  10421. iNdEx = entryPreIndex
  10422. skippy, err := skipApi(dAtA[iNdEx:])
  10423. if err != nil {
  10424. return err
  10425. }
  10426. if skippy < 0 {
  10427. return ErrInvalidLengthApi
  10428. }
  10429. if (iNdEx + skippy) > postIndex {
  10430. return io.ErrUnexpectedEOF
  10431. }
  10432. iNdEx += skippy
  10433. }
  10434. }
  10435. m.Data[mapkey] = mapvalue
  10436. iNdEx = postIndex
  10437. default:
  10438. iNdEx = preIndex
  10439. skippy, err := skipApi(dAtA[iNdEx:])
  10440. if err != nil {
  10441. return err
  10442. }
  10443. if skippy < 0 {
  10444. return ErrInvalidLengthApi
  10445. }
  10446. if (iNdEx + skippy) > l {
  10447. return io.ErrUnexpectedEOF
  10448. }
  10449. iNdEx += skippy
  10450. }
  10451. }
  10452. if iNdEx > l {
  10453. return io.ErrUnexpectedEOF
  10454. }
  10455. return nil
  10456. }
  10457. func (m *ArcCacheRequest) Unmarshal(dAtA []byte) error {
  10458. l := len(dAtA)
  10459. iNdEx := 0
  10460. for iNdEx < l {
  10461. preIndex := iNdEx
  10462. var wire uint64
  10463. for shift := uint(0); ; shift += 7 {
  10464. if shift >= 64 {
  10465. return ErrIntOverflowApi
  10466. }
  10467. if iNdEx >= l {
  10468. return io.ErrUnexpectedEOF
  10469. }
  10470. b := dAtA[iNdEx]
  10471. iNdEx++
  10472. wire |= (uint64(b) & 0x7F) << shift
  10473. if b < 0x80 {
  10474. break
  10475. }
  10476. }
  10477. fieldNum := int32(wire >> 3)
  10478. wireType := int(wire & 0x7)
  10479. if wireType == 4 {
  10480. return fmt.Errorf("proto: ArcCacheRequest: wiretype end group for non-group")
  10481. }
  10482. if fieldNum <= 0 {
  10483. return fmt.Errorf("proto: ArcCacheRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  10484. }
  10485. switch fieldNum {
  10486. case 1:
  10487. if wireType != 0 {
  10488. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  10489. }
  10490. m.Aid = 0
  10491. for shift := uint(0); ; shift += 7 {
  10492. if shift >= 64 {
  10493. return ErrIntOverflowApi
  10494. }
  10495. if iNdEx >= l {
  10496. return io.ErrUnexpectedEOF
  10497. }
  10498. b := dAtA[iNdEx]
  10499. iNdEx++
  10500. m.Aid |= (int64(b) & 0x7F) << shift
  10501. if b < 0x80 {
  10502. break
  10503. }
  10504. }
  10505. case 2:
  10506. if wireType != 2 {
  10507. return fmt.Errorf("proto: wrong wireType = %d for field Tp", wireType)
  10508. }
  10509. var stringLen uint64
  10510. for shift := uint(0); ; shift += 7 {
  10511. if shift >= 64 {
  10512. return ErrIntOverflowApi
  10513. }
  10514. if iNdEx >= l {
  10515. return io.ErrUnexpectedEOF
  10516. }
  10517. b := dAtA[iNdEx]
  10518. iNdEx++
  10519. stringLen |= (uint64(b) & 0x7F) << shift
  10520. if b < 0x80 {
  10521. break
  10522. }
  10523. }
  10524. intStringLen := int(stringLen)
  10525. if intStringLen < 0 {
  10526. return ErrInvalidLengthApi
  10527. }
  10528. postIndex := iNdEx + intStringLen
  10529. if postIndex > l {
  10530. return io.ErrUnexpectedEOF
  10531. }
  10532. m.Tp = string(dAtA[iNdEx:postIndex])
  10533. iNdEx = postIndex
  10534. case 3:
  10535. if wireType != 0 {
  10536. return fmt.Errorf("proto: wrong wireType = %d for field OldMid", wireType)
  10537. }
  10538. m.OldMid = 0
  10539. for shift := uint(0); ; shift += 7 {
  10540. if shift >= 64 {
  10541. return ErrIntOverflowApi
  10542. }
  10543. if iNdEx >= l {
  10544. return io.ErrUnexpectedEOF
  10545. }
  10546. b := dAtA[iNdEx]
  10547. iNdEx++
  10548. m.OldMid |= (int64(b) & 0x7F) << shift
  10549. if b < 0x80 {
  10550. break
  10551. }
  10552. }
  10553. default:
  10554. iNdEx = preIndex
  10555. skippy, err := skipApi(dAtA[iNdEx:])
  10556. if err != nil {
  10557. return err
  10558. }
  10559. if skippy < 0 {
  10560. return ErrInvalidLengthApi
  10561. }
  10562. if (iNdEx + skippy) > l {
  10563. return io.ErrUnexpectedEOF
  10564. }
  10565. iNdEx += skippy
  10566. }
  10567. }
  10568. if iNdEx > l {
  10569. return io.ErrUnexpectedEOF
  10570. }
  10571. return nil
  10572. }
  10573. func (m *ArcFieldCacheRequest) Unmarshal(dAtA []byte) error {
  10574. l := len(dAtA)
  10575. iNdEx := 0
  10576. for iNdEx < l {
  10577. preIndex := iNdEx
  10578. var wire uint64
  10579. for shift := uint(0); ; shift += 7 {
  10580. if shift >= 64 {
  10581. return ErrIntOverflowApi
  10582. }
  10583. if iNdEx >= l {
  10584. return io.ErrUnexpectedEOF
  10585. }
  10586. b := dAtA[iNdEx]
  10587. iNdEx++
  10588. wire |= (uint64(b) & 0x7F) << shift
  10589. if b < 0x80 {
  10590. break
  10591. }
  10592. }
  10593. fieldNum := int32(wire >> 3)
  10594. wireType := int(wire & 0x7)
  10595. if wireType == 4 {
  10596. return fmt.Errorf("proto: ArcFieldCacheRequest: wiretype end group for non-group")
  10597. }
  10598. if fieldNum <= 0 {
  10599. return fmt.Errorf("proto: ArcFieldCacheRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  10600. }
  10601. switch fieldNum {
  10602. case 1:
  10603. if wireType != 0 {
  10604. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  10605. }
  10606. m.Aid = 0
  10607. for shift := uint(0); ; shift += 7 {
  10608. if shift >= 64 {
  10609. return ErrIntOverflowApi
  10610. }
  10611. if iNdEx >= l {
  10612. return io.ErrUnexpectedEOF
  10613. }
  10614. b := dAtA[iNdEx]
  10615. iNdEx++
  10616. m.Aid |= (int64(b) & 0x7F) << shift
  10617. if b < 0x80 {
  10618. break
  10619. }
  10620. }
  10621. case 2:
  10622. if wireType != 0 {
  10623. return fmt.Errorf("proto: wrong wireType = %d for field TypeID", wireType)
  10624. }
  10625. m.TypeID = 0
  10626. for shift := uint(0); ; shift += 7 {
  10627. if shift >= 64 {
  10628. return ErrIntOverflowApi
  10629. }
  10630. if iNdEx >= l {
  10631. return io.ErrUnexpectedEOF
  10632. }
  10633. b := dAtA[iNdEx]
  10634. iNdEx++
  10635. m.TypeID |= (int32(b) & 0x7F) << shift
  10636. if b < 0x80 {
  10637. break
  10638. }
  10639. }
  10640. case 3:
  10641. if wireType != 0 {
  10642. return fmt.Errorf("proto: wrong wireType = %d for field OldTypeID", wireType)
  10643. }
  10644. m.OldTypeID = 0
  10645. for shift := uint(0); ; shift += 7 {
  10646. if shift >= 64 {
  10647. return ErrIntOverflowApi
  10648. }
  10649. if iNdEx >= l {
  10650. return io.ErrUnexpectedEOF
  10651. }
  10652. b := dAtA[iNdEx]
  10653. iNdEx++
  10654. m.OldTypeID |= (int32(b) & 0x7F) << shift
  10655. if b < 0x80 {
  10656. break
  10657. }
  10658. }
  10659. default:
  10660. iNdEx = preIndex
  10661. skippy, err := skipApi(dAtA[iNdEx:])
  10662. if err != nil {
  10663. return err
  10664. }
  10665. if skippy < 0 {
  10666. return ErrInvalidLengthApi
  10667. }
  10668. if (iNdEx + skippy) > l {
  10669. return io.ErrUnexpectedEOF
  10670. }
  10671. iNdEx += skippy
  10672. }
  10673. }
  10674. if iNdEx > l {
  10675. return io.ErrUnexpectedEOF
  10676. }
  10677. return nil
  10678. }
  10679. func (m *UpVideoCacheRequest) Unmarshal(dAtA []byte) error {
  10680. l := len(dAtA)
  10681. iNdEx := 0
  10682. for iNdEx < l {
  10683. preIndex := iNdEx
  10684. var wire uint64
  10685. for shift := uint(0); ; shift += 7 {
  10686. if shift >= 64 {
  10687. return ErrIntOverflowApi
  10688. }
  10689. if iNdEx >= l {
  10690. return io.ErrUnexpectedEOF
  10691. }
  10692. b := dAtA[iNdEx]
  10693. iNdEx++
  10694. wire |= (uint64(b) & 0x7F) << shift
  10695. if b < 0x80 {
  10696. break
  10697. }
  10698. }
  10699. fieldNum := int32(wire >> 3)
  10700. wireType := int(wire & 0x7)
  10701. if wireType == 4 {
  10702. return fmt.Errorf("proto: UpVideoCacheRequest: wiretype end group for non-group")
  10703. }
  10704. if fieldNum <= 0 {
  10705. return fmt.Errorf("proto: UpVideoCacheRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  10706. }
  10707. switch fieldNum {
  10708. case 1:
  10709. if wireType != 0 {
  10710. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  10711. }
  10712. m.Aid = 0
  10713. for shift := uint(0); ; shift += 7 {
  10714. if shift >= 64 {
  10715. return ErrIntOverflowApi
  10716. }
  10717. if iNdEx >= l {
  10718. return io.ErrUnexpectedEOF
  10719. }
  10720. b := dAtA[iNdEx]
  10721. iNdEx++
  10722. m.Aid |= (int64(b) & 0x7F) << shift
  10723. if b < 0x80 {
  10724. break
  10725. }
  10726. }
  10727. case 2:
  10728. if wireType != 0 {
  10729. return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
  10730. }
  10731. m.Cid = 0
  10732. for shift := uint(0); ; shift += 7 {
  10733. if shift >= 64 {
  10734. return ErrIntOverflowApi
  10735. }
  10736. if iNdEx >= l {
  10737. return io.ErrUnexpectedEOF
  10738. }
  10739. b := dAtA[iNdEx]
  10740. iNdEx++
  10741. m.Cid |= (int64(b) & 0x7F) << shift
  10742. if b < 0x80 {
  10743. break
  10744. }
  10745. }
  10746. default:
  10747. iNdEx = preIndex
  10748. skippy, err := skipApi(dAtA[iNdEx:])
  10749. if err != nil {
  10750. return err
  10751. }
  10752. if skippy < 0 {
  10753. return ErrInvalidLengthApi
  10754. }
  10755. if (iNdEx + skippy) > l {
  10756. return io.ErrUnexpectedEOF
  10757. }
  10758. iNdEx += skippy
  10759. }
  10760. }
  10761. if iNdEx > l {
  10762. return io.ErrUnexpectedEOF
  10763. }
  10764. return nil
  10765. }
  10766. func (m *DelVideoCacheRequest) Unmarshal(dAtA []byte) error {
  10767. l := len(dAtA)
  10768. iNdEx := 0
  10769. for iNdEx < l {
  10770. preIndex := iNdEx
  10771. var wire uint64
  10772. for shift := uint(0); ; shift += 7 {
  10773. if shift >= 64 {
  10774. return ErrIntOverflowApi
  10775. }
  10776. if iNdEx >= l {
  10777. return io.ErrUnexpectedEOF
  10778. }
  10779. b := dAtA[iNdEx]
  10780. iNdEx++
  10781. wire |= (uint64(b) & 0x7F) << shift
  10782. if b < 0x80 {
  10783. break
  10784. }
  10785. }
  10786. fieldNum := int32(wire >> 3)
  10787. wireType := int(wire & 0x7)
  10788. if wireType == 4 {
  10789. return fmt.Errorf("proto: DelVideoCacheRequest: wiretype end group for non-group")
  10790. }
  10791. if fieldNum <= 0 {
  10792. return fmt.Errorf("proto: DelVideoCacheRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  10793. }
  10794. switch fieldNum {
  10795. case 1:
  10796. if wireType != 0 {
  10797. return fmt.Errorf("proto: wrong wireType = %d for field Aid", wireType)
  10798. }
  10799. m.Aid = 0
  10800. for shift := uint(0); ; shift += 7 {
  10801. if shift >= 64 {
  10802. return ErrIntOverflowApi
  10803. }
  10804. if iNdEx >= l {
  10805. return io.ErrUnexpectedEOF
  10806. }
  10807. b := dAtA[iNdEx]
  10808. iNdEx++
  10809. m.Aid |= (int64(b) & 0x7F) << shift
  10810. if b < 0x80 {
  10811. break
  10812. }
  10813. }
  10814. case 2:
  10815. if wireType != 0 {
  10816. return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
  10817. }
  10818. m.Cid = 0
  10819. for shift := uint(0); ; shift += 7 {
  10820. if shift >= 64 {
  10821. return ErrIntOverflowApi
  10822. }
  10823. if iNdEx >= l {
  10824. return io.ErrUnexpectedEOF
  10825. }
  10826. b := dAtA[iNdEx]
  10827. iNdEx++
  10828. m.Cid |= (int64(b) & 0x7F) << shift
  10829. if b < 0x80 {
  10830. break
  10831. }
  10832. }
  10833. default:
  10834. iNdEx = preIndex
  10835. skippy, err := skipApi(dAtA[iNdEx:])
  10836. if err != nil {
  10837. return err
  10838. }
  10839. if skippy < 0 {
  10840. return ErrInvalidLengthApi
  10841. }
  10842. if (iNdEx + skippy) > l {
  10843. return io.ErrUnexpectedEOF
  10844. }
  10845. iNdEx += skippy
  10846. }
  10847. }
  10848. if iNdEx > l {
  10849. return io.ErrUnexpectedEOF
  10850. }
  10851. return nil
  10852. }
  10853. func (m *SetStatRequest) Unmarshal(dAtA []byte) error {
  10854. l := len(dAtA)
  10855. iNdEx := 0
  10856. for iNdEx < l {
  10857. preIndex := iNdEx
  10858. var wire uint64
  10859. for shift := uint(0); ; shift += 7 {
  10860. if shift >= 64 {
  10861. return ErrIntOverflowApi
  10862. }
  10863. if iNdEx >= l {
  10864. return io.ErrUnexpectedEOF
  10865. }
  10866. b := dAtA[iNdEx]
  10867. iNdEx++
  10868. wire |= (uint64(b) & 0x7F) << shift
  10869. if b < 0x80 {
  10870. break
  10871. }
  10872. }
  10873. fieldNum := int32(wire >> 3)
  10874. wireType := int(wire & 0x7)
  10875. if wireType == 4 {
  10876. return fmt.Errorf("proto: SetStatRequest: wiretype end group for non-group")
  10877. }
  10878. if fieldNum <= 0 {
  10879. return fmt.Errorf("proto: SetStatRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  10880. }
  10881. switch fieldNum {
  10882. case 1:
  10883. if wireType != 2 {
  10884. return fmt.Errorf("proto: wrong wireType = %d for field Stat", wireType)
  10885. }
  10886. var msglen int
  10887. for shift := uint(0); ; shift += 7 {
  10888. if shift >= 64 {
  10889. return ErrIntOverflowApi
  10890. }
  10891. if iNdEx >= l {
  10892. return io.ErrUnexpectedEOF
  10893. }
  10894. b := dAtA[iNdEx]
  10895. iNdEx++
  10896. msglen |= (int(b) & 0x7F) << shift
  10897. if b < 0x80 {
  10898. break
  10899. }
  10900. }
  10901. if msglen < 0 {
  10902. return ErrInvalidLengthApi
  10903. }
  10904. postIndex := iNdEx + msglen
  10905. if postIndex > l {
  10906. return io.ErrUnexpectedEOF
  10907. }
  10908. if m.Stat == nil {
  10909. m.Stat = &Stat{}
  10910. }
  10911. if err := m.Stat.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10912. return err
  10913. }
  10914. iNdEx = postIndex
  10915. default:
  10916. iNdEx = preIndex
  10917. skippy, err := skipApi(dAtA[iNdEx:])
  10918. if err != nil {
  10919. return err
  10920. }
  10921. if skippy < 0 {
  10922. return ErrInvalidLengthApi
  10923. }
  10924. if (iNdEx + skippy) > l {
  10925. return io.ErrUnexpectedEOF
  10926. }
  10927. iNdEx += skippy
  10928. }
  10929. }
  10930. if iNdEx > l {
  10931. return io.ErrUnexpectedEOF
  10932. }
  10933. return nil
  10934. }
  10935. func skipApi(dAtA []byte) (n int, err error) {
  10936. l := len(dAtA)
  10937. iNdEx := 0
  10938. for iNdEx < l {
  10939. var wire uint64
  10940. for shift := uint(0); ; shift += 7 {
  10941. if shift >= 64 {
  10942. return 0, ErrIntOverflowApi
  10943. }
  10944. if iNdEx >= l {
  10945. return 0, io.ErrUnexpectedEOF
  10946. }
  10947. b := dAtA[iNdEx]
  10948. iNdEx++
  10949. wire |= (uint64(b) & 0x7F) << shift
  10950. if b < 0x80 {
  10951. break
  10952. }
  10953. }
  10954. wireType := int(wire & 0x7)
  10955. switch wireType {
  10956. case 0:
  10957. for shift := uint(0); ; shift += 7 {
  10958. if shift >= 64 {
  10959. return 0, ErrIntOverflowApi
  10960. }
  10961. if iNdEx >= l {
  10962. return 0, io.ErrUnexpectedEOF
  10963. }
  10964. iNdEx++
  10965. if dAtA[iNdEx-1] < 0x80 {
  10966. break
  10967. }
  10968. }
  10969. return iNdEx, nil
  10970. case 1:
  10971. iNdEx += 8
  10972. return iNdEx, nil
  10973. case 2:
  10974. var length int
  10975. for shift := uint(0); ; shift += 7 {
  10976. if shift >= 64 {
  10977. return 0, ErrIntOverflowApi
  10978. }
  10979. if iNdEx >= l {
  10980. return 0, io.ErrUnexpectedEOF
  10981. }
  10982. b := dAtA[iNdEx]
  10983. iNdEx++
  10984. length |= (int(b) & 0x7F) << shift
  10985. if b < 0x80 {
  10986. break
  10987. }
  10988. }
  10989. iNdEx += length
  10990. if length < 0 {
  10991. return 0, ErrInvalidLengthApi
  10992. }
  10993. return iNdEx, nil
  10994. case 3:
  10995. for {
  10996. var innerWire uint64
  10997. var start int = iNdEx
  10998. for shift := uint(0); ; shift += 7 {
  10999. if shift >= 64 {
  11000. return 0, ErrIntOverflowApi
  11001. }
  11002. if iNdEx >= l {
  11003. return 0, io.ErrUnexpectedEOF
  11004. }
  11005. b := dAtA[iNdEx]
  11006. iNdEx++
  11007. innerWire |= (uint64(b) & 0x7F) << shift
  11008. if b < 0x80 {
  11009. break
  11010. }
  11011. }
  11012. innerWireType := int(innerWire & 0x7)
  11013. if innerWireType == 4 {
  11014. break
  11015. }
  11016. next, err := skipApi(dAtA[start:])
  11017. if err != nil {
  11018. return 0, err
  11019. }
  11020. iNdEx = start + next
  11021. }
  11022. return iNdEx, nil
  11023. case 4:
  11024. return iNdEx, nil
  11025. case 5:
  11026. iNdEx += 4
  11027. return iNdEx, nil
  11028. default:
  11029. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  11030. }
  11031. }
  11032. panic("unreachable")
  11033. }
  11034. var (
  11035. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  11036. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  11037. )
  11038. func init() { proto.RegisterFile("app/service/main/archive/api/api.proto", fileDescriptorApi) }
  11039. var fileDescriptorApi = []byte{
  11040. // 2982 bytes of a gzipped FileDescriptorProto
  11041. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x5a, 0xcf, 0x72, 0x1b, 0xc7,
  11042. 0xd1, 0x37, 0xfe, 0x92, 0x68, 0x12, 0x94, 0x34, 0x92, 0xa5, 0x15, 0x44, 0x6b, 0xe9, 0xb5, 0x25,
  11043. 0xcb, 0x9f, 0x29, 0xf2, 0xb3, 0x6c, 0xe9, 0xb3, 0xfc, 0xb7, 0x00, 0xc2, 0xb4, 0x68, 0x4b, 0xb2,
  11044. 0xbe, 0xb1, 0xfe, 0xc4, 0x4e, 0x55, 0x58, 0xc3, 0xdd, 0x21, 0x31, 0x21, 0x80, 0x5d, 0xef, 0x2e,
  11045. 0x40, 0x23, 0x0f, 0x90, 0x53, 0x9e, 0x20, 0x97, 0x54, 0x2e, 0x79, 0x87, 0x54, 0x2a, 0xc7, 0x54,
  11046. 0xf9, 0xe8, 0x7b, 0xaa, 0x50, 0x29, 0x1f, 0x72, 0xc0, 0x03, 0xe4, 0xe0, 0x5c, 0x52, 0xdd, 0x33,
  11047. 0x00, 0x06, 0x16, 0x16, 0x54, 0xe5, 0x20, 0x62, 0xa7, 0xe7, 0xd7, 0x3d, 0xdd, 0x3d, 0x3d, 0x3d,
  11048. 0x3d, 0x33, 0x82, 0xeb, 0x22, 0x8a, 0xb6, 0x13, 0x19, 0xf7, 0x95, 0x2f, 0xb7, 0x3b, 0x42, 0x75,
  11049. 0xb7, 0x45, 0xec, 0xb7, 0x54, 0x5f, 0x6e, 0x8b, 0x48, 0xe1, 0xbf, 0xad, 0x28, 0x0e, 0xd3, 0x90,
  11050. 0x31, 0x43, 0xde, 0x32, 0xd8, 0xad, 0xfe, 0xdb, 0xb5, 0x9b, 0x47, 0x2a, 0x6d, 0xf5, 0x0e, 0xb6,
  11051. 0xfc, 0xb0, 0xb3, 0x7d, 0x14, 0x1e, 0x85, 0xdb, 0x04, 0x3d, 0xe8, 0x1d, 0x52, 0x8b, 0x1a, 0xf4,
  11052. 0xa5, 0x45, 0x78, 0x6b, 0xb0, 0xfa, 0x30, 0xac, 0xc7, 0x47, 0x5c, 0x7e, 0xdb, 0x93, 0x49, 0xea,
  11053. 0x55, 0x60, 0xe9, 0x61, 0xc8, 0x65, 0xd4, 0x1e, 0x78, 0xd7, 0x81, 0x35, 0x65, 0xe2, 0xc7, 0x2a,
  11054. 0x4a, 0x55, 0xd8, 0x35, 0x00, 0x76, 0x16, 0x0a, 0x42, 0x05, 0x4e, 0x6e, 0x23, 0x77, 0xa3, 0xc0,
  11055. 0xf1, 0xd3, 0xbb, 0x0e, 0x67, 0x67, 0x70, 0x51, 0x7b, 0xc0, 0x18, 0x14, 0x03, 0x99, 0xf8, 0x04,
  11056. 0xab, 0x70, 0xfa, 0xf6, 0x5c, 0x58, 0x79, 0x20, 0xbe, 0xab, 0xab, 0x40, 0x43, 0x9e, 0x17, 0x74,
  11057. 0x15, 0xa0, 0x1e, 0xfb, 0xd9, 0x03, 0xdd, 0x86, 0x65, 0xea, 0x47, 0xee, 0x37, 0xa1, 0x20, 0x62,
  11058. 0x2d, 0x7f, 0xe5, 0xd6, 0xa5, 0xad, 0xe7, 0x1d, 0xb1, 0x85, 0x50, 0xc4, 0x78, 0xaf, 0xc2, 0x4a,
  11059. 0x3d, 0xf6, 0x93, 0xb1, 0x5c, 0x06, 0x45, 0xa1, 0x82, 0xc4, 0xc9, 0x6d, 0x14, 0x6e, 0x14, 0x38,
  11060. 0x7d, 0x7b, 0xbf, 0xcf, 0x41, 0x45, 0x63, 0x50, 0xf6, 0x07, 0x50, 0x14, 0xb1, 0xaf, 0x11, 0x2b,
  11061. 0xb7, 0xde, 0xc8, 0x10, 0xae, 0xc1, 0xf4, 0xf5, 0x69, 0x37, 0x8d, 0x07, 0x9c, 0x98, 0x6a, 0x8f,
  11062. 0xb4, 0x24, 0x22, 0xa1, 0x0d, 0xc7, 0x72, 0x30, 0xb6, 0xe1, 0x58, 0x0e, 0xd8, 0x4d, 0x28, 0xf5,
  11063. 0x45, 0xbb, 0x27, 0x9d, 0xfc, 0x62, 0xcd, 0x35, 0xea, 0xfd, 0xfc, 0x7b, 0x39, 0xf4, 0xdb, 0x53,
  11064. 0x25, 0x4f, 0xb2, 0xfd, 0xe2, 0xc2, 0xca, 0x57, 0xa9, 0x48, 0xb3, 0x01, 0x77, 0xa1, 0xa2, 0x01,
  11065. 0x68, 0xdd, 0x26, 0x14, 0xb1, 0x61, 0x5c, 0xe7, 0xcc, 0x53, 0x80, 0xc0, 0x84, 0xf2, 0x3c, 0x58,
  11066. 0xc5, 0xdf, 0x85, 0xde, 0xfb, 0x63, 0x0e, 0xc0, 0x80, 0x70, 0x80, 0x4f, 0xa0, 0x44, 0x2d, 0xe3,
  11067. 0xbf, 0x37, 0xb3, 0x46, 0x30, 0x0e, 0xa4, 0x4f, 0xed, 0x41, 0xcd, 0x57, 0xe3, 0x46, 0x5c, 0x96,
  11068. 0x0f, 0xb7, 0x66, 0x7d, 0x98, 0x6d, 0x82, 0xe5, 0xc4, 0x08, 0x2a, 0xda, 0x89, 0xa8, 0xe1, 0x3b,
  11069. 0x2f, 0x12, 0x3c, 0x8d, 0xe5, 0x1f, 0x86, 0x6e, 0x6e, 0x34, 0x74, 0x5f, 0xa2, 0x30, 0xc2, 0x51,
  11070. 0x23, 0x71, 0x24, 0x13, 0x27, 0x4f, 0x66, 0xcd, 0x1d, 0xf5, 0x91, 0x38, 0x92, 0x5c, 0xc3, 0xd0,
  11071. 0x73, 0x38, 0xe2, 0x42, 0xcf, 0xfd, 0x29, 0x07, 0x60, 0x40, 0xc6, 0x73, 0x7d, 0x6c, 0x2d, 0xf2,
  11072. 0xdc, 0x14, 0xae, 0x3f, 0x8d, 0xe7, 0x88, 0xaf, 0xf6, 0xcc, 0x88, 0xcb, 0xf2, 0xdc, 0x3b, 0xb3,
  11073. 0x9e, 0x7b, 0x25, 0x6b, 0x00, 0x92, 0x6f, 0xbb, 0xef, 0x0f, 0x39, 0x80, 0xc7, 0x83, 0x48, 0x4e,
  11074. 0x15, 0x4d, 0xb1, 0xb5, 0x48, 0xd1, 0x29, 0x5c, 0x7f, 0x1a, 0x45, 0x89, 0xaf, 0xf6, 0xc8, 0x88,
  11075. 0x7b, 0x4e, 0xd1, 0x92, 0x56, 0x74, 0x73, 0x56, 0xd1, 0x8b, 0x73, 0x07, 0x88, 0x6c, 0x0d, 0x37,
  11076. 0x60, 0x75, 0xa7, 0xad, 0xfc, 0xe3, 0xec, 0x55, 0xf0, 0x11, 0x80, 0x41, 0xa0, 0x09, 0xdb, 0x50,
  11077. 0xf2, 0xb1, 0x65, 0xa2, 0xe0, 0xf2, 0xbc, 0x11, 0x34, 0x5c, 0xe3, 0x70, 0x95, 0xd1, 0xf4, 0x66,
  11078. 0xca, 0xff, 0x00, 0x2a, 0x1a, 0x80, 0xe2, 0x27, 0xd1, 0x92, 0x7b, 0xb1, 0x68, 0x79, 0x1d, 0xce,
  11079. 0x72, 0xe9, 0x87, 0x9d, 0x8e, 0xec, 0x06, 0x8b, 0x4c, 0x58, 0xb3, 0x50, 0x38, 0xce, 0x5b, 0x33,
  11080. 0xb9, 0x2a, 0x33, 0x9d, 0x10, 0xc8, 0xbb, 0x85, 0x21, 0x19, 0xc8, 0x30, 0x73, 0x00, 0xa4, 0xf8,
  11081. 0x2a, 0x20, 0xaf, 0x17, 0x38, 0x7e, 0x7a, 0xef, 0x63, 0x48, 0x11, 0x8f, 0x49, 0x1e, 0xa8, 0xef,
  11082. 0xa2, 0xe4, 0x41, 0x56, 0x11, 0xca, 0x7b, 0x02, 0xf9, 0xc7, 0x11, 0xbb, 0x08, 0xf9, 0xbd, 0xa6,
  11083. 0x9e, 0xdc, 0x46, 0x79, 0x34, 0x74, 0xf3, 0x2a, 0xe0, 0xf9, 0xbd, 0x26, 0xbb, 0x0c, 0x85, 0xc8,
  11084. 0x8c, 0x55, 0x6a, 0x2c, 0x8d, 0x86, 0x2e, 0x36, 0x39, 0xfe, 0x61, 0xeb, 0x50, 0xec, 0x8a, 0x8e,
  11085. 0x74, 0x0a, 0xb8, 0x7d, 0x34, 0x96, 0x47, 0x43, 0x97, 0xda, 0x9c, 0xfe, 0x7a, 0x02, 0x2a, 0x75,
  11086. 0x15, 0x90, 0x56, 0x09, 0x4a, 0xa9, 0x8f, 0x6d, 0xd0, 0x52, 0x04, 0x4a, 0xa9, 0xab, 0x80, 0xdd,
  11087. 0x85, 0xd2, 0xa3, 0x17, 0x59, 0xb1, 0x8d, 0xca, 0x68, 0xe8, 0xea, 0x79, 0xe0, 0x9a, 0xc3, 0xfb,
  11088. 0x3b, 0x40, 0xa1, 0x1e, 0xfb, 0x8b, 0xa4, 0x7b, 0x50, 0xd6, 0x2a, 0x68, 0x6f, 0x35, 0x60, 0x34,
  11089. 0x74, 0xcb, 0x7d, 0xa2, 0x70, 0xd3, 0xc3, 0x5c, 0x28, 0x63, 0x98, 0xef, 0x35, 0xc9, 0x12, 0x63,
  11090. 0x65, 0xaa, 0x02, 0x6e, 0xc8, 0xec, 0x1a, 0x2c, 0xe3, 0xd7, 0x43, 0x34, 0xb6, 0x48, 0xc6, 0x92,
  11091. 0x2e, 0x29, 0x59, 0x3b, 0xe9, 0x62, 0x6f, 0x41, 0x65, 0x27, 0x8c, 0x06, 0xb1, 0x3a, 0x6a, 0xa5,
  11092. 0x4e, 0x89, 0x44, 0x55, 0x47, 0x43, 0xb7, 0xe2, 0x8f, 0x89, 0x7c, 0xda, 0x8f, 0x3a, 0x3f, 0x52,
  11093. 0xbe, 0x53, 0x26, 0x71, 0xc6, 0xaf, 0x3e, 0x47, 0x1a, 0x73, 0xa1, 0xf4, 0x58, 0xa5, 0x6d, 0xe9,
  11094. 0x2c, 0x59, 0x63, 0x21, 0x81, 0x6b, 0x3a, 0x6b, 0xc2, 0xd2, 0xa3, 0xde, 0x41, 0x53, 0xa4, 0xd2,
  11095. 0x59, 0x26, 0xab, 0xfe, 0x67, 0x34, 0x74, 0x97, 0xa2, 0xde, 0x41, 0x20, 0x52, 0xf9, 0xd3, 0xd0,
  11096. 0xbd, 0x72, 0x14, 0xde, 0xc4, 0xf8, 0x0b, 0xbb, 0xdb, 0x6d, 0x75, 0x10, 0x8b, 0x78, 0xb0, 0x9d,
  11097. 0xaa, 0x8e, 0xdc, 0x7a, 0xac, 0x3a, 0x92, 0x8f, 0x59, 0xd9, 0xc7, 0x50, 0xda, 0x41, 0xb2, 0x53,
  11098. 0x21, 0x19, 0x37, 0x70, 0x18, 0x1f, 0x09, 0xa7, 0x49, 0xd0, 0x6c, 0x38, 0xfd, 0x58, 0x51, 0x38,
  11099. 0x30, 0x9d, 0x7e, 0xac, 0x20, 0x38, 0x51, 0xd1, 0x08, 0xcc, 0xee, 0xd2, 0x59, 0x21, 0x47, 0x90,
  11100. 0x11, 0x09, 0x12, 0xf4, 0xfe, 0x21, 0xd9, 0x26, 0x94, 0xeb, 0xbe, 0x2f, 0x93, 0xc4, 0x59, 0x25,
  11101. 0xc4, 0x85, 0xd1, 0xd0, 0x3d, 0x2b, 0x88, 0xb2, 0x19, 0x76, 0x54, 0x2a, 0x3b, 0x51, 0x3a, 0xe0,
  11102. 0x06, 0xc3, 0x6e, 0x43, 0xa5, 0x9e, 0xa6, 0xb1, 0x3a, 0xe8, 0xa5, 0xd2, 0xa9, 0x12, 0xc3, 0xa5,
  11103. 0xd1, 0xd0, 0x3d, 0x2f, 0xc6, 0x44, 0x8b, 0x67, 0x8a, 0x64, 0x97, 0xa0, 0xf0, 0x58, 0x1c, 0x39,
  11104. 0x6b, 0xa4, 0x62, 0x69, 0x34, 0x74, 0x73, 0x37, 0x39, 0x52, 0xd8, 0x75, 0x28, 0x3e, 0x16, 0x47,
  11105. 0x89, 0x73, 0x66, 0xa3, 0x70, 0xa3, 0xd2, 0x60, 0xa3, 0xa1, 0xbb, 0x96, 0x8a, 0x23, 0x7b, 0x64,
  11106. 0xea, 0x67, 0x37, 0x60, 0xb9, 0xd9, 0x8b, 0x05, 0xd6, 0x4c, 0xce, 0x59, 0xf2, 0xd3, 0xea, 0x68,
  11107. 0xe8, 0x2e, 0x07, 0x86, 0xc6, 0x27, 0xbd, 0xec, 0x0e, 0x54, 0x1e, 0xa8, 0x24, 0x51, 0x61, 0x77,
  11108. 0xaf, 0xe9, 0x9c, 0x23, 0xa8, 0x33, 0x1a, 0xba, 0x17, 0x3a, 0x9a, 0xb8, 0xaf, 0x02, 0x5b, 0xc5,
  11109. 0x09, 0x94, 0xfd, 0x2f, 0x2c, 0x7d, 0x19, 0x07, 0x32, 0xde, 0x6b, 0x3a, 0x8c, 0xb8, 0x2e, 0x8e,
  11110. 0x86, 0x2e, 0x0b, 0x91, 0x34, 0xcb, 0x33, 0x86, 0xb1, 0x0f, 0x61, 0x85, 0xcb, 0x40, 0xc5, 0xd2,
  11111. 0x4f, 0x9f, 0xf0, 0xfb, 0xce, 0x79, 0x32, 0xae, 0x36, 0x1a, 0xba, 0x17, 0x63, 0x43, 0xde, 0xef,
  11112. 0xc5, 0x6d, 0x8b, 0xd3, 0x86, 0xb3, 0x6d, 0x58, 0xda, 0x0d, 0xe3, 0x13, 0x11, 0x07, 0xce, 0x05,
  11113. 0x1a, 0xef, 0xe5, 0xd1, 0xd0, 0x3d, 0x77, 0xa8, 0x49, 0xf6, 0x70, 0x06, 0xc5, 0x1a, 0x50, 0xe6,
  11114. 0x18, 0xb2, 0x89, 0xf3, 0x32, 0xe5, 0x93, 0xda, 0xbc, 0x15, 0xaa, 0x11, 0x8d, 0xb5, 0xef, 0x87,
  11115. 0xee, 0x4b, 0xb8, 0xc4, 0x28, 0xc8, 0x13, 0x6e, 0x38, 0x59, 0x1d, 0xca, 0xf5, 0x5e, 0xda, 0x0a,
  11116. 0x63, 0xe7, 0x62, 0xb6, 0x0c, 0x8d, 0x68, 0x54, 0x8d, 0x8c, 0x52, 0x78, 0xd2, 0x95, 0x31, 0x37,
  11117. 0x8c, 0xec, 0x7d, 0x53, 0x11, 0x5d, 0x5a, 0x5c, 0x4e, 0x34, 0x56, 0x0d, 0x7b, 0x31, 0x99, 0xd4,
  11118. 0x47, 0xec, 0x13, 0x58, 0xe5, 0x32, 0x0a, 0xe3, 0x94, 0xcb, 0xa4, 0xd7, 0x4e, 0x1d, 0x87, 0x5c,
  11119. 0x76, 0x65, 0x34, 0x74, 0x2f, 0xc5, 0x44, 0xdf, 0x8f, 0xa9, 0xc3, 0x32, 0x7f, 0x86, 0x81, 0x5d,
  11120. 0x83, 0xa5, 0xe6, 0xa0, 0x2b, 0x3a, 0xca, 0x77, 0x2e, 0x13, 0xef, 0x0a, 0xae, 0xb8, 0x40, 0x93,
  11121. 0xf8, 0xb8, 0x8f, 0xdd, 0x84, 0xe5, 0x5d, 0x15, 0x27, 0xe9, 0x8e, 0x0a, 0x9c, 0x1a, 0x39, 0xf7,
  11122. 0xdc, 0x68, 0xe8, 0x56, 0xfd, 0x99, 0x79, 0x9c, 0x40, 0xd8, 0x2f, 0xa0, 0xd2, 0x54, 0x1d, 0xd9,
  11123. 0xc5, 0x48, 0x70, 0xae, 0x64, 0x6f, 0xf6, 0x13, 0x50, 0xe3, 0x8a, 0x31, 0xee, 0x7c, 0x30, 0x26,
  11124. 0xd9, 0x41, 0x35, 0xc1, 0xb1, 0x06, 0xd5, 0x92, 0x87, 0x87, 0x7b, 0xdd, 0xc3, 0xd0, 0x59, 0xa7,
  11125. 0xc4, 0xfa, 0x4a, 0x86, 0xc7, 0x34, 0x68, 0xbc, 0x38, 0xa6, 0x6c, 0xde, 0x67, 0x96, 0x0c, 0x4c,
  11126. 0x57, 0x0f, 0x66, 0x53, 0x6c, 0x07, 0x53, 0xec, 0x03, 0x15, 0x4c, 0xd3, 0x55, 0x7e, 0x7e, 0xba,
  11127. 0xf2, 0x52, 0xcb, 0x4c, 0x44, 0x3f, 0x53, 0x41, 0xda, 0x32, 0xa2, 0x08, 0x7d, 0x82, 0x04, 0xae,
  11128. 0xe9, 0x98, 0xb1, 0xef, 0x49, 0x4a, 0xa1, 0x56, 0xc6, 0x6e, 0x11, 0x85, 0x9b, 0x1e, 0xc4, 0xf0,
  11129. 0x90, 0xb2, 0x4b, 0x61, 0x8a, 0x89, 0x89, 0xc2, 0x4d, 0x8f, 0xf7, 0xaf, 0xfc, 0x38, 0x6e, 0x71,
  11130. 0x6f, 0x6b, 0x44, 0xf6, 0xde, 0x76, 0x10, 0xf1, 0x7c, 0x23, 0xc2, 0x0c, 0xf6, 0x69, 0x5b, 0xfa,
  11131. 0x66, 0x73, 0xa3, 0x0c, 0x26, 0xdb, 0xd2, 0xe7, 0x44, 0xa5, 0xa5, 0x1f, 0x9e, 0x74, 0xdb, 0xa1,
  11132. 0x08, 0xcc, 0xc6, 0xa0, 0x97, 0xbe, 0xa1, 0xf1, 0x49, 0x2f, 0xda, 0xf4, 0x20, 0xec, 0x2b, 0xbd,
  11133. 0x39, 0x98, 0x5c, 0xd7, 0x41, 0x02, 0xd7, 0x74, 0x4a, 0xf6, 0x62, 0x60, 0xf6, 0x04, 0x9d, 0xec,
  11134. 0xc5, 0x80, 0x23, 0x0d, 0xbb, 0xee, 0x35, 0x6f, 0xd3, 0x3e, 0x60, 0xba, 0x5a, 0xc1, 0x6d, 0x8e,
  11135. 0x34, 0xb6, 0x09, 0x15, 0x3a, 0xe5, 0xc5, 0xaa, 0x9b, 0xd2, 0x5e, 0x50, 0x6a, 0xac, 0x8d, 0x86,
  11136. 0x2e, 0x74, 0xc3, 0xfd, 0x58, 0x53, 0xf9, 0x14, 0x80, 0xea, 0xd6, 0x7b, 0x69, 0x18, 0xb5, 0xc5,
  11137. 0x80, 0x76, 0x05, 0xa3, 0xae, 0x30, 0x34, 0x3e, 0xe9, 0x65, 0xaf, 0x41, 0xf9, 0xc9, 0x67, 0x3b,
  11138. 0xa8, 0x50, 0x85, 0x70, 0x14, 0xcb, 0xbd, 0x23, 0x7f, 0x1f, 0x95, 0x32, 0x5d, 0xec, 0x3d, 0xa8,
  11139. 0xee, 0x25, 0x3b, 0x61, 0x18, 0x49, 0x93, 0xfd, 0x80, 0xb0, 0x94, 0x29, 0x55, 0xb2, 0xef, 0x4f,
  11140. 0x7b, 0xf8, 0x2c, 0xd0, 0xdb, 0x1f, 0xaf, 0xf5, 0x45, 0x41, 0xb3, 0x0e, 0x45, 0xda, 0x4e, 0xf3,
  11141. 0x3f, 0xaf, 0x1d, 0x68, 0x27, 0x5d, 0x87, 0xe2, 0xae, 0xf0, 0x67, 0x2a, 0x8b, 0x43, 0xe1, 0x4b,
  11142. 0x4e, 0x54, 0xef, 0xdf, 0x79, 0x9d, 0x0a, 0x16, 0xed, 0xfb, 0xeb, 0x50, 0xc4, 0x12, 0xd9, 0x9e,
  11143. 0x5a, 0x2c, 0xbe, 0x39, 0x51, 0x69, 0x39, 0x8b, 0x6e, 0x47, 0x1c, 0xf7, 0xcc, 0xcc, 0xea, 0xe5,
  11144. 0xac, 0x49, 0x7c, 0xdc, 0x87, 0xf3, 0x4a, 0x05, 0x95, 0x3d, 0xaf, 0xb1, 0x2e, 0xba, 0x75, 0xa1,
  11145. 0x75, 0x15, 0x0a, 0xbb, 0xa2, 0x6f, 0xe6, 0x95, 0xdc, 0x7d, 0x28, 0xfa, 0x61, 0xac, 0x52, 0xc9,
  11146. 0xb1, 0x03, 0xb5, 0xd8, 0x09, 0x55, 0xd7, 0xcc, 0x2e, 0x69, 0xe1, 0x87, 0xaa, 0xcb, 0x89, 0x4a,
  11147. 0x5b, 0x64, 0x4b, 0xc4, 0xd2, 0xcc, 0xad, 0xde, 0x22, 0x91, 0xc0, 0x35, 0x9d, 0x5d, 0xc7, 0x63,
  11148. 0xfe, 0x09, 0x17, 0xdd, 0x63, 0x7b, 0x46, 0xbb, 0xe1, 0xc9, 0x7e, 0x2c, 0xba, 0xc7, 0x7c, 0xdc,
  11149. 0x89, 0xb8, 0x7b, 0x2a, 0x21, 0x5c, 0x65, 0x8a, 0x6b, 0xa9, 0xc4, 0xe0, 0x4c, 0x27, 0xaa, 0x73,
  11150. 0x5f, 0x1d, 0x4b, 0x33, 0x95, 0xa4, 0x4e, 0x5b, 0x1d, 0x4b, 0x4e, 0x54, 0x72, 0x8a, 0x4a, 0x08,
  11151. 0xb0, 0x62, 0x39, 0x45, 0x25, 0x84, 0x19, 0xf7, 0x79, 0x7f, 0xc9, 0x41, 0x89, 0x4a, 0xee, 0x45,
  11152. 0xee, 0xbf, 0x0c, 0x85, 0x67, 0xf2, 0xc0, 0xae, 0x1a, 0x4f, 0xe4, 0x01, 0x47, 0x1a, 0x76, 0xed,
  11153. 0x85, 0x89, 0x5d, 0x6a, 0xa9, 0x30, 0xe1, 0x48, 0x43, 0x0d, 0xea, 0xdd, 0x20, 0x0e, 0x55, 0x60,
  11154. 0x3c, 0x4e, 0x1a, 0x08, 0x4d, 0xe2, 0xe3, 0x3e, 0x5c, 0xce, 0xf7, 0x6e, 0x1b, 0xa7, 0xd3, 0x72,
  11155. 0x6e, 0xdd, 0xe6, 0xf9, 0x7b, 0xb7, 0x31, 0x2b, 0x7c, 0xd9, 0x4b, 0x53, 0x19, 0x1b, 0x7f, 0x53,
  11156. 0x56, 0x08, 0x89, 0xc2, 0x4d, 0x8f, 0xf7, 0xcf, 0x3c, 0x14, 0xb1, 0x78, 0x44, 0x35, 0x76, 0x66,
  11157. 0x95, 0xf7, 0x51, 0xf9, 0x1d, 0x1d, 0x3b, 0x08, 0xb1, 0x63, 0x27, 0xa2, 0x72, 0x99, 0x18, 0x31,
  11158. 0x36, 0xe3, 0xb0, 0x33, 0x13, 0x9b, 0x71, 0xd8, 0xe1, 0x44, 0xd5, 0xbc, 0x71, 0x6a, 0xca, 0x44,
  11159. 0xc3, 0x1b, 0xa7, 0x9c, 0xa8, 0x33, 0xd5, 0x44, 0x69, 0x61, 0x35, 0x71, 0x19, 0x0a, 0x4f, 0x55,
  11160. 0x60, 0x97, 0x87, 0x7d, 0x54, 0xef, 0xa9, 0x0a, 0xd8, 0x4d, 0x53, 0x77, 0xe9, 0xea, 0xf0, 0xf2,
  11161. 0x68, 0xe8, 0xbe, 0x1c, 0x4c, 0x6f, 0x76, 0xec, 0x0a, 0x86, 0x0a, 0xb1, 0x6b, 0xb0, 0xf4, 0x4c,
  11162. 0x1e, 0xdc, 0x57, 0x26, 0x88, 0xcc, 0xd6, 0x75, 0x22, 0x0f, 0xda, 0x0a, 0x63, 0xc3, 0xf4, 0xb1,
  11163. 0x87, 0xf6, 0x5e, 0x54, 0x79, 0x91, 0xbd, 0xe8, 0x9c, 0xd9, 0x8b, 0x2a, 0x93, 0xbd, 0xc8, 0xda,
  11164. 0x81, 0xbc, 0xbf, 0xe6, 0xa0, 0x4a, 0xf5, 0xf5, 0xae, 0x6a, 0x4b, 0xda, 0x42, 0xde, 0x86, 0xe5,
  11165. 0x43, 0xd5, 0x96, 0x89, 0xfa, 0x8d, 0x3e, 0x99, 0x14, 0xa9, 0xf2, 0x98, 0xd0, 0x7e, 0x1a, 0xba,
  11166. 0x25, 0xd5, 0x4d, 0xef, 0xbc, 0xcb, 0x27, 0x24, 0xf6, 0x7f, 0x00, 0x58, 0x6a, 0xb6, 0x65, 0xf7,
  11167. 0x28, 0x6d, 0xd1, 0x7c, 0x14, 0xa9, 0xec, 0xb3, 0xa8, 0x53, 0x36, 0x8b, 0x88, 0x4b, 0x4b, 0xb4,
  11168. 0xa4, 0x49, 0xdc, 0x66, 0x4f, 0x22, 0x02, 0xd7, 0x3f, 0x08, 0xe8, 0x13, 0xc0, 0xaa, 0xe7, 0xfb,
  11169. 0x1a, 0x40, 0x3f, 0xde, 0xd7, 0x70, 0x5e, 0xab, 0x1f, 0xc6, 0x1d, 0x91, 0x4e, 0x8c, 0x68, 0x40,
  11170. 0x49, 0x75, 0x0f, 0xc3, 0xf1, 0x51, 0xee, 0xd5, 0xf9, 0x67, 0x73, 0xcb, 0x6c, 0x2d, 0x9a, 0x78,
  11171. 0xb8, 0xfe, 0xf1, 0xfe, 0x9c, 0x83, 0xe5, 0xa6, 0x48, 0x5a, 0x7b, 0xa9, 0xec, 0x30, 0x17, 0xf2,
  11172. 0x26, 0x0c, 0xab, 0x8d, 0x33, 0xfa, 0xdc, 0x35, 0x35, 0x29, 0xaf, 0x02, 0x5c, 0xdc, 0x07, 0x22,
  11173. 0x91, 0x4f, 0xe2, 0xb6, 0x49, 0x96, 0x14, 0x32, 0x48, 0xc2, 0x2a, 0x8f, 0x8f, 0x3b, 0xd9, 0xbb,
  11174. 0x50, 0x39, 0x10, 0xdd, 0x80, 0xf6, 0x52, 0x32, 0xbb, 0x4a, 0x95, 0xe4, 0x94, 0x38, 0x15, 0x3b,
  11175. 0xa5, 0xb1, 0x2d, 0x58, 0xf2, 0xc3, 0x40, 0xfa, 0x66, 0xc9, 0x55, 0xa9, 0x0c, 0x1f, 0x93, 0xa6,
  11176. 0x1c, 0x63, 0x8a, 0xf7, 0xbb, 0x1c, 0x96, 0x52, 0x49, 0x14, 0x76, 0x13, 0x89, 0x36, 0xb0, 0x8f,
  11177. 0xa0, 0x44, 0xc7, 0x29, 0xe3, 0x90, 0xf5, 0xb9, 0x31, 0x63, 0x8c, 0x35, 0x6e, 0xa6, 0x83, 0xaa,
  11178. 0xfe, 0x41, 0x76, 0xd1, 0x0b, 0x54, 0x68, 0x4e, 0x7f, 0x2f, 0xc0, 0x4e, 0x70, 0xae, 0x7f, 0xbc,
  11179. 0xbf, 0x95, 0x61, 0xb5, 0xd1, 0xf7, 0xc9, 0xe3, 0xe4, 0xce, 0xbb, 0xb0, 0x22, 0xbf, 0x8b, 0x54,
  11180. 0x2c, 0xf7, 0xe9, 0x68, 0xa3, 0xe3, 0x0c, 0xeb, 0x70, 0x9b, 0x6c, 0xc5, 0x8c, 0xa6, 0xe2, 0xb1,
  11181. 0x86, 0x79, 0xd3, 0x53, 0x75, 0xb5, 0x71, 0xd6, 0x64, 0x84, 0x29, 0x14, 0x5b, 0x6c, 0x07, 0xce,
  11182. 0x24, 0xbd, 0x88, 0x2a, 0xc6, 0x6f, 0x7b, 0xa2, 0xad, 0xd2, 0x81, 0x53, 0xd8, 0x28, 0xdc, 0xa8,
  11183. 0x52, 0xf9, 0xfd, 0xf3, 0xae, 0x9f, 0x30, 0xb7, 0x75, 0x53, 0xbe, 0x66, 0xe8, 0xff, 0xaf, 0xc9,
  11184. 0xec, 0xc3, 0xa9, 0x90, 0x43, 0x8a, 0xae, 0xc4, 0x29, 0xd2, 0x31, 0xe4, 0xbc, 0x2d, 0xc4, 0x74,
  11185. 0x4d, 0xb8, 0x75, 0x20, 0x26, 0xec, 0x1e, 0x9c, 0x1f, 0x43, 0xac, 0x65, 0xef, 0x94, 0x48, 0x02,
  11186. 0x9d, 0x89, 0xe6, 0x74, 0x73, 0x66, 0x88, 0xd6, 0x1d, 0x30, 0xdb, 0x84, 0xa5, 0xb1, 0x11, 0x65,
  11187. 0x32, 0x1a, 0x37, 0xf7, 0xa5, 0x9f, 0x29, 0x3f, 0x6e, 0x63, 0x46, 0xea, 0xc5, 0x6d, 0x93, 0x75,
  11188. 0x28, 0x23, 0x61, 0xf8, 0xe1, 0x1f, 0xf6, 0x0d, 0x54, 0x70, 0xc9, 0xee, 0x63, 0x78, 0x3b, 0xcb,
  11189. 0x34, 0x91, 0x5b, 0xf3, 0x26, 0xd2, 0x9e, 0xa9, 0xad, 0xf1, 0x02, 0xa1, 0xcb, 0x25, 0x7d, 0x50,
  11190. 0x9e, 0x08, 0xd1, 0x29, 0x80, 0x16, 0xdc, 0x1d, 0xa8, 0x52, 0xa4, 0xec, 0x8f, 0xc3, 0xb4, 0x42,
  11191. 0xaa, 0x52, 0x5d, 0x3d, 0xd3, 0xc1, 0x57, 0xa9, 0xb9, 0xa3, 0x5b, 0x53, 0xbe, 0x28, 0x0e, 0x7f,
  11192. 0x2d, 0xfd, 0x94, 0x36, 0xbd, 0x65, 0x9b, 0xcf, 0x74, 0x18, 0xbe, 0x47, 0xba, 0xc5, 0xae, 0x43,
  11193. 0xe9, 0xb0, 0xdb, 0x97, 0x31, 0xed, 0x81, 0x3a, 0x0e, 0x34, 0x61, 0xec, 0x10, 0xdd, 0x32, 0x38,
  11194. 0xd1, 0xa6, 0xd3, 0xeb, 0x14, 0x27, 0xda, 0x36, 0x4e, 0xb4, 0xd9, 0xc7, 0x50, 0x0c, 0x44, 0xd2,
  11195. 0xa2, 0x33, 0xeb, 0xca, 0xad, 0x8d, 0xb9, 0x67, 0x27, 0x6b, 0x3d, 0x99, 0x73, 0xb4, 0x48, 0x5a,
  11196. 0x9c, 0xfe, 0xd6, 0x02, 0xa8, 0xce, 0x78, 0xca, 0xbe, 0x86, 0xab, 0xea, 0x6b, 0xb8, 0x8f, 0x66,
  11197. 0xaf, 0xe1, 0xde, 0xc8, 0xce, 0x49, 0x33, 0xb9, 0xcc, 0xbe, 0x97, 0x1b, 0xe6, 0x60, 0xad, 0xd1,
  11198. 0xf7, 0xc7, 0x9a, 0x3c, 0x48, 0x8e, 0xd8, 0x35, 0x28, 0xa2, 0x67, 0x4d, 0x6a, 0x3a, 0xa7, 0x6b,
  11199. 0x97, 0xc0, 0x5a, 0x3b, 0xd4, 0x64, 0x9f, 0xa3, 0x7d, 0xa9, 0x30, 0xeb, 0x77, 0x33, 0x63, 0xda,
  11200. 0x2d, 0xc1, 0x5b, 0x4d, 0x91, 0x0a, 0x3d, 0xe9, 0xc6, 0xd6, 0x54, 0x70, 0xfa, 0x5b, 0xfb, 0x1a,
  11201. 0x2a, 0x93, 0xce, 0x39, 0x76, 0xde, 0x99, 0xb5, 0x73, 0xe3, 0xb4, 0x10, 0xb3, 0x0d, 0xfc, 0x02,
  11202. 0xce, 0xd4, 0x63, 0x7f, 0x47, 0xf8, 0xad, 0xec, 0xbb, 0x41, 0xb6, 0x06, 0xf9, 0x34, 0xd2, 0x59,
  11203. 0x96, 0xe7, 0xd3, 0x88, 0x5d, 0x84, 0xf2, 0x97, 0xed, 0x00, 0x4b, 0x58, 0x3a, 0x66, 0x70, 0xd3,
  11204. 0xf2, 0x7e, 0x05, 0x17, 0xea, 0xb1, 0xbf, 0xab, 0x64, 0x3b, 0x38, 0x45, 0xe2, 0x45, 0x28, 0xa7,
  11205. 0xfa, 0x6a, 0x89, 0x8a, 0x09, 0x6e, 0x5a, 0x6c, 0x1d, 0x2a, 0x61, 0x3b, 0xb0, 0x6f, 0x9d, 0xf8,
  11206. 0x94, 0xe0, 0xdd, 0x85, 0xf3, 0x4f, 0x22, 0x32, 0xe3, 0x14, 0xf1, 0xf3, 0x2e, 0x02, 0x2f, 0x34,
  11207. 0x65, 0xfb, 0xbf, 0xe3, 0xfd, 0x18, 0xd6, 0xbe, 0x92, 0xa9, 0xfd, 0x48, 0xb1, 0x09, 0x74, 0x8a,
  11208. 0x3e, 0xfd, 0x15, 0x02, 0x51, 0xb7, 0x7e, 0xbb, 0x02, 0x4b, 0x75, 0x8d, 0x60, 0x7b, 0x50, 0xa2,
  11209. 0xab, 0x63, 0x36, 0x77, 0x96, 0xec, 0xc7, 0xac, 0xda, 0xd5, 0xc5, 0xf7, 0xd2, 0x6c, 0x47, 0x5f,
  11210. 0xf2, 0x5d, 0xcd, 0xba, 0x35, 0x35, 0x62, 0xd6, 0x33, 0xfb, 0x51, 0xc8, 0x2e, 0x14, 0xeb, 0xb1,
  11211. 0x9f, 0x30, 0x37, 0xfb, 0x9d, 0x48, 0x8b, 0x79, 0x65, 0xe1, 0x43, 0x12, 0xca, 0xa1, 0xa3, 0x87,
  11212. 0x9b, 0xe9, 0x8b, 0x45, 0x72, 0xa6, 0xef, 0x3b, 0x7b, 0xe6, 0xf9, 0x65, 0xbe, 0x7f, 0xec, 0xc7,
  11213. 0x9c, 0xf9, 0xfe, 0xb1, 0x5e, 0x72, 0x76, 0xf5, 0x51, 0x67, 0xbe, 0x4a, 0xd6, 0x9b, 0x54, 0x6d,
  11214. 0xf1, 0x43, 0x02, 0xaa, 0x44, 0xcf, 0x12, 0xf3, 0x55, 0xb2, 0x5f, 0x49, 0xe6, 0xab, 0x64, 0x3d,
  11215. 0x91, 0xec, 0x8d, 0x8f, 0x08, 0x1b, 0xd9, 0x17, 0xf6, 0x8b, 0x44, 0x59, 0x2f, 0x00, 0xbb, 0xa6,
  11216. 0x5e, 0x77, 0x33, 0x6f, 0xb1, 0x17, 0x59, 0x37, 0xbd, 0xea, 0x7f, 0x02, 0x95, 0xc9, 0xa5, 0x3c,
  11217. 0x7b, 0x7d, 0x7e, 0x1a, 0x9e, 0xbd, 0xd9, 0xaf, 0x79, 0xa7, 0xa0, 0x26, 0x4e, 0xc3, 0x42, 0x66,
  11218. 0x23, 0x33, 0xeb, 0x9e, 0xe2, 0xb4, 0xc9, 0xad, 0xfd, 0x17, 0x50, 0xd6, 0x2f, 0xaf, 0x2f, 0xb0,
  11219. 0x66, 0xe6, 0x7a, 0xc3, 0x7e, 0xb7, 0xfd, 0x25, 0xac, 0xd8, 0x5b, 0xfd, 0xf5, 0xb9, 0x75, 0xd5,
  11220. 0x73, 0xef, 0xc6, 0xb5, 0xd7, 0x4f, 0xc5, 0xa1, 0xf0, 0xa7, 0x50, 0x9d, 0xc9, 0x7f, 0xec, 0x46,
  11221. 0xc6, 0xa2, 0x79, 0x2e, 0x45, 0xd6, 0xae, 0xcc, 0x37, 0x4d, 0xcb, 0xbd, 0x4f, 0x4f, 0xc7, 0x5a,
  11222. 0xe4, 0x6b, 0x19, 0x22, 0x5f, 0x5c, 0xda, 0x63, 0x58, 0xb5, 0xb3, 0x28, 0x9b, 0xbb, 0x2f, 0xce,
  11223. 0xc9, 0xb3, 0x8b, 0xa5, 0x3e, 0x85, 0xea, 0x4c, 0x82, 0x9d, 0x6f, 0xfb, 0xbc, 0x1c, 0xbc, 0x58,
  11224. 0xee, 0xe7, 0xb0, 0x64, 0x92, 0x2f, 0x9b, 0x1b, 0x77, 0xb3, 0x99, 0x79, 0xa1, 0xac, 0xc6, 0xb9,
  11225. 0xef, 0x7f, 0xbc, 0x9a, 0xfb, 0xe1, 0xc7, 0xab, 0xb9, 0x7f, 0xfc, 0x78, 0x35, 0xf7, 0x4d, 0x41,
  11226. 0x44, 0xea, 0xa0, 0x4c, 0xff, 0x91, 0xe0, 0x9d, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xd3, 0x14,
  11227. 0xb5, 0xc5, 0xb5, 0x20, 0x00, 0x00,
  11228. }