You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: org/eclipse/jgit/storage/dht/git_store.proto
  3. package org.eclipse.jgit.generated.storage.dht.proto;
  4. public final class GitStore {
  5. private GitStore() {}
  6. public static void registerAllExtensions(
  7. com.google.protobuf.ExtensionRegistry registry) {
  8. }
  9. public interface RefDataOrBuilder
  10. extends com.google.protobuf.MessageOrBuilder {
  11. // required uint32 sequence = 5 [default = 0];
  12. boolean hasSequence();
  13. int getSequence();
  14. // optional string symref = 1;
  15. boolean hasSymref();
  16. String getSymref();
  17. // optional .org.eclipse.jgit.storage.dht.RefData.Id target = 2;
  18. boolean hasTarget();
  19. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id getTarget();
  20. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.IdOrBuilder getTargetOrBuilder();
  21. // optional bool is_peeled = 3;
  22. boolean hasIsPeeled();
  23. boolean getIsPeeled();
  24. // optional .org.eclipse.jgit.storage.dht.RefData.Id peeled = 4;
  25. boolean hasPeeled();
  26. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id getPeeled();
  27. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.IdOrBuilder getPeeledOrBuilder();
  28. }
  29. public static final class RefData extends
  30. com.google.protobuf.GeneratedMessage
  31. implements RefDataOrBuilder {
  32. // Use RefData.newBuilder() to construct.
  33. private RefData(Builder builder) {
  34. super(builder);
  35. }
  36. private RefData(boolean noInit) {}
  37. private static final RefData defaultInstance;
  38. public static RefData getDefaultInstance() {
  39. return defaultInstance;
  40. }
  41. public RefData getDefaultInstanceForType() {
  42. return defaultInstance;
  43. }
  44. public static final com.google.protobuf.Descriptors.Descriptor
  45. getDescriptor() {
  46. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_RefData_descriptor;
  47. }
  48. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  49. internalGetFieldAccessorTable() {
  50. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_RefData_fieldAccessorTable;
  51. }
  52. public interface IdOrBuilder
  53. extends com.google.protobuf.MessageOrBuilder {
  54. // required string object_name = 1;
  55. boolean hasObjectName();
  56. String getObjectName();
  57. // optional string chunk_key = 2;
  58. boolean hasChunkKey();
  59. String getChunkKey();
  60. }
  61. public static final class Id extends
  62. com.google.protobuf.GeneratedMessage
  63. implements IdOrBuilder {
  64. // Use Id.newBuilder() to construct.
  65. private Id(Builder builder) {
  66. super(builder);
  67. }
  68. private Id(boolean noInit) {}
  69. private static final Id defaultInstance;
  70. public static Id getDefaultInstance() {
  71. return defaultInstance;
  72. }
  73. public Id getDefaultInstanceForType() {
  74. return defaultInstance;
  75. }
  76. public static final com.google.protobuf.Descriptors.Descriptor
  77. getDescriptor() {
  78. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_RefData_Id_descriptor;
  79. }
  80. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  81. internalGetFieldAccessorTable() {
  82. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_RefData_Id_fieldAccessorTable;
  83. }
  84. private int bitField0_;
  85. // required string object_name = 1;
  86. public static final int OBJECT_NAME_FIELD_NUMBER = 1;
  87. private Object objectName_;
  88. public boolean hasObjectName() {
  89. return ((bitField0_ & 0x00000001) == 0x00000001);
  90. }
  91. public String getObjectName() {
  92. Object ref = objectName_;
  93. if (ref instanceof String) {
  94. return (String) ref;
  95. } else {
  96. com.google.protobuf.ByteString bs =
  97. (com.google.protobuf.ByteString) ref;
  98. String s = bs.toStringUtf8();
  99. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  100. objectName_ = s;
  101. }
  102. return s;
  103. }
  104. }
  105. private com.google.protobuf.ByteString getObjectNameBytes() {
  106. Object ref = objectName_;
  107. if (ref instanceof String) {
  108. com.google.protobuf.ByteString b =
  109. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  110. objectName_ = b;
  111. return b;
  112. } else {
  113. return (com.google.protobuf.ByteString) ref;
  114. }
  115. }
  116. // optional string chunk_key = 2;
  117. public static final int CHUNK_KEY_FIELD_NUMBER = 2;
  118. private Object chunkKey_;
  119. public boolean hasChunkKey() {
  120. return ((bitField0_ & 0x00000002) == 0x00000002);
  121. }
  122. public String getChunkKey() {
  123. Object ref = chunkKey_;
  124. if (ref instanceof String) {
  125. return (String) ref;
  126. } else {
  127. com.google.protobuf.ByteString bs =
  128. (com.google.protobuf.ByteString) ref;
  129. String s = bs.toStringUtf8();
  130. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  131. chunkKey_ = s;
  132. }
  133. return s;
  134. }
  135. }
  136. private com.google.protobuf.ByteString getChunkKeyBytes() {
  137. Object ref = chunkKey_;
  138. if (ref instanceof String) {
  139. com.google.protobuf.ByteString b =
  140. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  141. chunkKey_ = b;
  142. return b;
  143. } else {
  144. return (com.google.protobuf.ByteString) ref;
  145. }
  146. }
  147. private void initFields() {
  148. objectName_ = "";
  149. chunkKey_ = "";
  150. }
  151. private byte memoizedIsInitialized = -1;
  152. public final boolean isInitialized() {
  153. byte isInitialized = memoizedIsInitialized;
  154. if (isInitialized != -1) return isInitialized == 1;
  155. if (!hasObjectName()) {
  156. memoizedIsInitialized = 0;
  157. return false;
  158. }
  159. memoizedIsInitialized = 1;
  160. return true;
  161. }
  162. public void writeTo(com.google.protobuf.CodedOutputStream output)
  163. throws java.io.IOException {
  164. getSerializedSize();
  165. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  166. output.writeBytes(1, getObjectNameBytes());
  167. }
  168. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  169. output.writeBytes(2, getChunkKeyBytes());
  170. }
  171. getUnknownFields().writeTo(output);
  172. }
  173. private int memoizedSerializedSize = -1;
  174. public int getSerializedSize() {
  175. int size = memoizedSerializedSize;
  176. if (size != -1) return size;
  177. size = 0;
  178. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  179. size += com.google.protobuf.CodedOutputStream
  180. .computeBytesSize(1, getObjectNameBytes());
  181. }
  182. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  183. size += com.google.protobuf.CodedOutputStream
  184. .computeBytesSize(2, getChunkKeyBytes());
  185. }
  186. size += getUnknownFields().getSerializedSize();
  187. memoizedSerializedSize = size;
  188. return size;
  189. }
  190. @java.lang.Override
  191. protected Object writeReplace() throws java.io.ObjectStreamException {
  192. return super.writeReplace();
  193. }
  194. @java.lang.Override
  195. public boolean equals(final Object obj) {
  196. if (obj == this) {
  197. return true;
  198. }
  199. if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id)) {
  200. return super.equals(obj);
  201. }
  202. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id) obj;
  203. boolean result = true;
  204. result = result && (hasObjectName() == other.hasObjectName());
  205. if (hasObjectName()) {
  206. result = result && getObjectName()
  207. .equals(other.getObjectName());
  208. }
  209. result = result && (hasChunkKey() == other.hasChunkKey());
  210. if (hasChunkKey()) {
  211. result = result && getChunkKey()
  212. .equals(other.getChunkKey());
  213. }
  214. result = result &&
  215. getUnknownFields().equals(other.getUnknownFields());
  216. return result;
  217. }
  218. @java.lang.Override
  219. public int hashCode() {
  220. int hash = 41;
  221. hash = (19 * hash) + getDescriptorForType().hashCode();
  222. if (hasObjectName()) {
  223. hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER;
  224. hash = (53 * hash) + getObjectName().hashCode();
  225. }
  226. if (hasChunkKey()) {
  227. hash = (37 * hash) + CHUNK_KEY_FIELD_NUMBER;
  228. hash = (53 * hash) + getChunkKey().hashCode();
  229. }
  230. hash = (29 * hash) + getUnknownFields().hashCode();
  231. return hash;
  232. }
  233. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id parseFrom(
  234. com.google.protobuf.ByteString data)
  235. throws com.google.protobuf.InvalidProtocolBufferException {
  236. return newBuilder().mergeFrom(data).buildParsed();
  237. }
  238. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id parseFrom(
  239. com.google.protobuf.ByteString data,
  240. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  241. throws com.google.protobuf.InvalidProtocolBufferException {
  242. return newBuilder().mergeFrom(data, extensionRegistry)
  243. .buildParsed();
  244. }
  245. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id parseFrom(byte[] data)
  246. throws com.google.protobuf.InvalidProtocolBufferException {
  247. return newBuilder().mergeFrom(data).buildParsed();
  248. }
  249. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id parseFrom(
  250. byte[] data,
  251. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  252. throws com.google.protobuf.InvalidProtocolBufferException {
  253. return newBuilder().mergeFrom(data, extensionRegistry)
  254. .buildParsed();
  255. }
  256. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id parseFrom(java.io.InputStream input)
  257. throws java.io.IOException {
  258. return newBuilder().mergeFrom(input).buildParsed();
  259. }
  260. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id parseFrom(
  261. java.io.InputStream input,
  262. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  263. throws java.io.IOException {
  264. return newBuilder().mergeFrom(input, extensionRegistry)
  265. .buildParsed();
  266. }
  267. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id parseDelimitedFrom(java.io.InputStream input)
  268. throws java.io.IOException {
  269. Builder builder = newBuilder();
  270. if (builder.mergeDelimitedFrom(input)) {
  271. return builder.buildParsed();
  272. } else {
  273. return null;
  274. }
  275. }
  276. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id parseDelimitedFrom(
  277. java.io.InputStream input,
  278. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  279. throws java.io.IOException {
  280. Builder builder = newBuilder();
  281. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  282. return builder.buildParsed();
  283. } else {
  284. return null;
  285. }
  286. }
  287. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id parseFrom(
  288. com.google.protobuf.CodedInputStream input)
  289. throws java.io.IOException {
  290. return newBuilder().mergeFrom(input).buildParsed();
  291. }
  292. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id parseFrom(
  293. com.google.protobuf.CodedInputStream input,
  294. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  295. throws java.io.IOException {
  296. return newBuilder().mergeFrom(input, extensionRegistry)
  297. .buildParsed();
  298. }
  299. public static Builder newBuilder() { return Builder.create(); }
  300. public Builder newBuilderForType() { return newBuilder(); }
  301. public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id prototype) {
  302. return newBuilder().mergeFrom(prototype);
  303. }
  304. public Builder toBuilder() { return newBuilder(this); }
  305. @java.lang.Override
  306. protected Builder newBuilderForType(
  307. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  308. Builder builder = new Builder(parent);
  309. return builder;
  310. }
  311. public static final class Builder extends
  312. com.google.protobuf.GeneratedMessage.Builder<Builder>
  313. implements org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.IdOrBuilder {
  314. public static final com.google.protobuf.Descriptors.Descriptor
  315. getDescriptor() {
  316. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_RefData_Id_descriptor;
  317. }
  318. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  319. internalGetFieldAccessorTable() {
  320. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_RefData_Id_fieldAccessorTable;
  321. }
  322. // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.newBuilder()
  323. private Builder() {
  324. maybeForceBuilderInitialization();
  325. }
  326. private Builder(BuilderParent parent) {
  327. super(parent);
  328. maybeForceBuilderInitialization();
  329. }
  330. private void maybeForceBuilderInitialization() {
  331. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  332. }
  333. }
  334. private static Builder create() {
  335. return new Builder();
  336. }
  337. public Builder clear() {
  338. super.clear();
  339. objectName_ = "";
  340. bitField0_ = (bitField0_ & ~0x00000001);
  341. chunkKey_ = "";
  342. bitField0_ = (bitField0_ & ~0x00000002);
  343. return this;
  344. }
  345. public Builder clone() {
  346. return create().mergeFrom(buildPartial());
  347. }
  348. public com.google.protobuf.Descriptors.Descriptor
  349. getDescriptorForType() {
  350. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDescriptor();
  351. }
  352. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id getDefaultInstanceForType() {
  353. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDefaultInstance();
  354. }
  355. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id build() {
  356. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id result = buildPartial();
  357. if (!result.isInitialized()) {
  358. throw newUninitializedMessageException(result);
  359. }
  360. return result;
  361. }
  362. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id buildParsed()
  363. throws com.google.protobuf.InvalidProtocolBufferException {
  364. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id result = buildPartial();
  365. if (!result.isInitialized()) {
  366. throw newUninitializedMessageException(
  367. result).asInvalidProtocolBufferException();
  368. }
  369. return result;
  370. }
  371. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id buildPartial() {
  372. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id(this);
  373. int from_bitField0_ = bitField0_;
  374. int to_bitField0_ = 0;
  375. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  376. to_bitField0_ |= 0x00000001;
  377. }
  378. result.objectName_ = objectName_;
  379. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  380. to_bitField0_ |= 0x00000002;
  381. }
  382. result.chunkKey_ = chunkKey_;
  383. result.bitField0_ = to_bitField0_;
  384. onBuilt();
  385. return result;
  386. }
  387. public Builder mergeFrom(com.google.protobuf.Message other) {
  388. if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id) {
  389. return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id)other);
  390. } else {
  391. super.mergeFrom(other);
  392. return this;
  393. }
  394. }
  395. public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id other) {
  396. if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDefaultInstance()) return this;
  397. if (other.hasObjectName()) {
  398. setObjectName(other.getObjectName());
  399. }
  400. if (other.hasChunkKey()) {
  401. setChunkKey(other.getChunkKey());
  402. }
  403. this.mergeUnknownFields(other.getUnknownFields());
  404. return this;
  405. }
  406. public final boolean isInitialized() {
  407. if (!hasObjectName()) {
  408. return false;
  409. }
  410. return true;
  411. }
  412. public Builder mergeFrom(
  413. com.google.protobuf.CodedInputStream input,
  414. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  415. throws java.io.IOException {
  416. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  417. com.google.protobuf.UnknownFieldSet.newBuilder(
  418. this.getUnknownFields());
  419. while (true) {
  420. int tag = input.readTag();
  421. switch (tag) {
  422. case 0:
  423. this.setUnknownFields(unknownFields.build());
  424. onChanged();
  425. return this;
  426. default: {
  427. if (!parseUnknownField(input, unknownFields,
  428. extensionRegistry, tag)) {
  429. this.setUnknownFields(unknownFields.build());
  430. onChanged();
  431. return this;
  432. }
  433. break;
  434. }
  435. case 10: {
  436. bitField0_ |= 0x00000001;
  437. objectName_ = input.readBytes();
  438. break;
  439. }
  440. case 18: {
  441. bitField0_ |= 0x00000002;
  442. chunkKey_ = input.readBytes();
  443. break;
  444. }
  445. }
  446. }
  447. }
  448. private int bitField0_;
  449. // required string object_name = 1;
  450. private Object objectName_ = "";
  451. public boolean hasObjectName() {
  452. return ((bitField0_ & 0x00000001) == 0x00000001);
  453. }
  454. public String getObjectName() {
  455. Object ref = objectName_;
  456. if (!(ref instanceof String)) {
  457. String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
  458. objectName_ = s;
  459. return s;
  460. } else {
  461. return (String) ref;
  462. }
  463. }
  464. public Builder setObjectName(String value) {
  465. if (value == null) {
  466. throw new NullPointerException();
  467. }
  468. bitField0_ |= 0x00000001;
  469. objectName_ = value;
  470. onChanged();
  471. return this;
  472. }
  473. public Builder clearObjectName() {
  474. bitField0_ = (bitField0_ & ~0x00000001);
  475. objectName_ = getDefaultInstance().getObjectName();
  476. onChanged();
  477. return this;
  478. }
  479. void setObjectName(com.google.protobuf.ByteString value) {
  480. bitField0_ |= 0x00000001;
  481. objectName_ = value;
  482. onChanged();
  483. }
  484. // optional string chunk_key = 2;
  485. private Object chunkKey_ = "";
  486. public boolean hasChunkKey() {
  487. return ((bitField0_ & 0x00000002) == 0x00000002);
  488. }
  489. public String getChunkKey() {
  490. Object ref = chunkKey_;
  491. if (!(ref instanceof String)) {
  492. String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
  493. chunkKey_ = s;
  494. return s;
  495. } else {
  496. return (String) ref;
  497. }
  498. }
  499. public Builder setChunkKey(String value) {
  500. if (value == null) {
  501. throw new NullPointerException();
  502. }
  503. bitField0_ |= 0x00000002;
  504. chunkKey_ = value;
  505. onChanged();
  506. return this;
  507. }
  508. public Builder clearChunkKey() {
  509. bitField0_ = (bitField0_ & ~0x00000002);
  510. chunkKey_ = getDefaultInstance().getChunkKey();
  511. onChanged();
  512. return this;
  513. }
  514. void setChunkKey(com.google.protobuf.ByteString value) {
  515. bitField0_ |= 0x00000002;
  516. chunkKey_ = value;
  517. onChanged();
  518. }
  519. // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.RefData.Id)
  520. }
  521. static {
  522. defaultInstance = new Id(true);
  523. defaultInstance.initFields();
  524. }
  525. // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.RefData.Id)
  526. }
  527. private int bitField0_;
  528. // required uint32 sequence = 5 [default = 0];
  529. public static final int SEQUENCE_FIELD_NUMBER = 5;
  530. private int sequence_;
  531. public boolean hasSequence() {
  532. return ((bitField0_ & 0x00000001) == 0x00000001);
  533. }
  534. public int getSequence() {
  535. return sequence_;
  536. }
  537. // optional string symref = 1;
  538. public static final int SYMREF_FIELD_NUMBER = 1;
  539. private Object symref_;
  540. public boolean hasSymref() {
  541. return ((bitField0_ & 0x00000002) == 0x00000002);
  542. }
  543. public String getSymref() {
  544. Object ref = symref_;
  545. if (ref instanceof String) {
  546. return (String) ref;
  547. } else {
  548. com.google.protobuf.ByteString bs =
  549. (com.google.protobuf.ByteString) ref;
  550. String s = bs.toStringUtf8();
  551. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  552. symref_ = s;
  553. }
  554. return s;
  555. }
  556. }
  557. private com.google.protobuf.ByteString getSymrefBytes() {
  558. Object ref = symref_;
  559. if (ref instanceof String) {
  560. com.google.protobuf.ByteString b =
  561. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  562. symref_ = b;
  563. return b;
  564. } else {
  565. return (com.google.protobuf.ByteString) ref;
  566. }
  567. }
  568. // optional .org.eclipse.jgit.storage.dht.RefData.Id target = 2;
  569. public static final int TARGET_FIELD_NUMBER = 2;
  570. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id target_;
  571. public boolean hasTarget() {
  572. return ((bitField0_ & 0x00000004) == 0x00000004);
  573. }
  574. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id getTarget() {
  575. return target_;
  576. }
  577. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.IdOrBuilder getTargetOrBuilder() {
  578. return target_;
  579. }
  580. // optional bool is_peeled = 3;
  581. public static final int IS_PEELED_FIELD_NUMBER = 3;
  582. private boolean isPeeled_;
  583. public boolean hasIsPeeled() {
  584. return ((bitField0_ & 0x00000008) == 0x00000008);
  585. }
  586. public boolean getIsPeeled() {
  587. return isPeeled_;
  588. }
  589. // optional .org.eclipse.jgit.storage.dht.RefData.Id peeled = 4;
  590. public static final int PEELED_FIELD_NUMBER = 4;
  591. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id peeled_;
  592. public boolean hasPeeled() {
  593. return ((bitField0_ & 0x00000010) == 0x00000010);
  594. }
  595. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id getPeeled() {
  596. return peeled_;
  597. }
  598. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.IdOrBuilder getPeeledOrBuilder() {
  599. return peeled_;
  600. }
  601. private void initFields() {
  602. sequence_ = 0;
  603. symref_ = "";
  604. target_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDefaultInstance();
  605. isPeeled_ = false;
  606. peeled_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDefaultInstance();
  607. }
  608. private byte memoizedIsInitialized = -1;
  609. public final boolean isInitialized() {
  610. byte isInitialized = memoizedIsInitialized;
  611. if (isInitialized != -1) return isInitialized == 1;
  612. if (!hasSequence()) {
  613. memoizedIsInitialized = 0;
  614. return false;
  615. }
  616. if (hasTarget()) {
  617. if (!getTarget().isInitialized()) {
  618. memoizedIsInitialized = 0;
  619. return false;
  620. }
  621. }
  622. if (hasPeeled()) {
  623. if (!getPeeled().isInitialized()) {
  624. memoizedIsInitialized = 0;
  625. return false;
  626. }
  627. }
  628. memoizedIsInitialized = 1;
  629. return true;
  630. }
  631. public void writeTo(com.google.protobuf.CodedOutputStream output)
  632. throws java.io.IOException {
  633. getSerializedSize();
  634. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  635. output.writeBytes(1, getSymrefBytes());
  636. }
  637. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  638. output.writeMessage(2, target_);
  639. }
  640. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  641. output.writeBool(3, isPeeled_);
  642. }
  643. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  644. output.writeMessage(4, peeled_);
  645. }
  646. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  647. output.writeUInt32(5, sequence_);
  648. }
  649. getUnknownFields().writeTo(output);
  650. }
  651. private int memoizedSerializedSize = -1;
  652. public int getSerializedSize() {
  653. int size = memoizedSerializedSize;
  654. if (size != -1) return size;
  655. size = 0;
  656. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  657. size += com.google.protobuf.CodedOutputStream
  658. .computeBytesSize(1, getSymrefBytes());
  659. }
  660. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  661. size += com.google.protobuf.CodedOutputStream
  662. .computeMessageSize(2, target_);
  663. }
  664. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  665. size += com.google.protobuf.CodedOutputStream
  666. .computeBoolSize(3, isPeeled_);
  667. }
  668. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  669. size += com.google.protobuf.CodedOutputStream
  670. .computeMessageSize(4, peeled_);
  671. }
  672. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  673. size += com.google.protobuf.CodedOutputStream
  674. .computeUInt32Size(5, sequence_);
  675. }
  676. size += getUnknownFields().getSerializedSize();
  677. memoizedSerializedSize = size;
  678. return size;
  679. }
  680. @java.lang.Override
  681. protected Object writeReplace() throws java.io.ObjectStreamException {
  682. return super.writeReplace();
  683. }
  684. @java.lang.Override
  685. public boolean equals(final Object obj) {
  686. if (obj == this) {
  687. return true;
  688. }
  689. if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData)) {
  690. return super.equals(obj);
  691. }
  692. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData) obj;
  693. boolean result = true;
  694. result = result && (hasSequence() == other.hasSequence());
  695. if (hasSequence()) {
  696. result = result && (getSequence()
  697. == other.getSequence());
  698. }
  699. result = result && (hasSymref() == other.hasSymref());
  700. if (hasSymref()) {
  701. result = result && getSymref()
  702. .equals(other.getSymref());
  703. }
  704. result = result && (hasTarget() == other.hasTarget());
  705. if (hasTarget()) {
  706. result = result && getTarget()
  707. .equals(other.getTarget());
  708. }
  709. result = result && (hasIsPeeled() == other.hasIsPeeled());
  710. if (hasIsPeeled()) {
  711. result = result && (getIsPeeled()
  712. == other.getIsPeeled());
  713. }
  714. result = result && (hasPeeled() == other.hasPeeled());
  715. if (hasPeeled()) {
  716. result = result && getPeeled()
  717. .equals(other.getPeeled());
  718. }
  719. result = result &&
  720. getUnknownFields().equals(other.getUnknownFields());
  721. return result;
  722. }
  723. @java.lang.Override
  724. public int hashCode() {
  725. int hash = 41;
  726. hash = (19 * hash) + getDescriptorForType().hashCode();
  727. if (hasSequence()) {
  728. hash = (37 * hash) + SEQUENCE_FIELD_NUMBER;
  729. hash = (53 * hash) + getSequence();
  730. }
  731. if (hasSymref()) {
  732. hash = (37 * hash) + SYMREF_FIELD_NUMBER;
  733. hash = (53 * hash) + getSymref().hashCode();
  734. }
  735. if (hasTarget()) {
  736. hash = (37 * hash) + TARGET_FIELD_NUMBER;
  737. hash = (53 * hash) + getTarget().hashCode();
  738. }
  739. if (hasIsPeeled()) {
  740. hash = (37 * hash) + IS_PEELED_FIELD_NUMBER;
  741. hash = (53 * hash) + hashBoolean(getIsPeeled());
  742. }
  743. if (hasPeeled()) {
  744. hash = (37 * hash) + PEELED_FIELD_NUMBER;
  745. hash = (53 * hash) + getPeeled().hashCode();
  746. }
  747. hash = (29 * hash) + getUnknownFields().hashCode();
  748. return hash;
  749. }
  750. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData parseFrom(
  751. com.google.protobuf.ByteString data)
  752. throws com.google.protobuf.InvalidProtocolBufferException {
  753. return newBuilder().mergeFrom(data).buildParsed();
  754. }
  755. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData parseFrom(
  756. com.google.protobuf.ByteString data,
  757. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  758. throws com.google.protobuf.InvalidProtocolBufferException {
  759. return newBuilder().mergeFrom(data, extensionRegistry)
  760. .buildParsed();
  761. }
  762. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData parseFrom(byte[] data)
  763. throws com.google.protobuf.InvalidProtocolBufferException {
  764. return newBuilder().mergeFrom(data).buildParsed();
  765. }
  766. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData parseFrom(
  767. byte[] data,
  768. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  769. throws com.google.protobuf.InvalidProtocolBufferException {
  770. return newBuilder().mergeFrom(data, extensionRegistry)
  771. .buildParsed();
  772. }
  773. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData parseFrom(java.io.InputStream input)
  774. throws java.io.IOException {
  775. return newBuilder().mergeFrom(input).buildParsed();
  776. }
  777. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData parseFrom(
  778. java.io.InputStream input,
  779. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  780. throws java.io.IOException {
  781. return newBuilder().mergeFrom(input, extensionRegistry)
  782. .buildParsed();
  783. }
  784. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData parseDelimitedFrom(java.io.InputStream input)
  785. throws java.io.IOException {
  786. Builder builder = newBuilder();
  787. if (builder.mergeDelimitedFrom(input)) {
  788. return builder.buildParsed();
  789. } else {
  790. return null;
  791. }
  792. }
  793. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData parseDelimitedFrom(
  794. java.io.InputStream input,
  795. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  796. throws java.io.IOException {
  797. Builder builder = newBuilder();
  798. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  799. return builder.buildParsed();
  800. } else {
  801. return null;
  802. }
  803. }
  804. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData parseFrom(
  805. com.google.protobuf.CodedInputStream input)
  806. throws java.io.IOException {
  807. return newBuilder().mergeFrom(input).buildParsed();
  808. }
  809. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData parseFrom(
  810. com.google.protobuf.CodedInputStream input,
  811. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  812. throws java.io.IOException {
  813. return newBuilder().mergeFrom(input, extensionRegistry)
  814. .buildParsed();
  815. }
  816. public static Builder newBuilder() { return Builder.create(); }
  817. public Builder newBuilderForType() { return newBuilder(); }
  818. public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData prototype) {
  819. return newBuilder().mergeFrom(prototype);
  820. }
  821. public Builder toBuilder() { return newBuilder(this); }
  822. @java.lang.Override
  823. protected Builder newBuilderForType(
  824. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  825. Builder builder = new Builder(parent);
  826. return builder;
  827. }
  828. public static final class Builder extends
  829. com.google.protobuf.GeneratedMessage.Builder<Builder>
  830. implements org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefDataOrBuilder {
  831. public static final com.google.protobuf.Descriptors.Descriptor
  832. getDescriptor() {
  833. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_RefData_descriptor;
  834. }
  835. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  836. internalGetFieldAccessorTable() {
  837. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_RefData_fieldAccessorTable;
  838. }
  839. // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.newBuilder()
  840. private Builder() {
  841. maybeForceBuilderInitialization();
  842. }
  843. private Builder(BuilderParent parent) {
  844. super(parent);
  845. maybeForceBuilderInitialization();
  846. }
  847. private void maybeForceBuilderInitialization() {
  848. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  849. getTargetFieldBuilder();
  850. getPeeledFieldBuilder();
  851. }
  852. }
  853. private static Builder create() {
  854. return new Builder();
  855. }
  856. public Builder clear() {
  857. super.clear();
  858. sequence_ = 0;
  859. bitField0_ = (bitField0_ & ~0x00000001);
  860. symref_ = "";
  861. bitField0_ = (bitField0_ & ~0x00000002);
  862. if (targetBuilder_ == null) {
  863. target_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDefaultInstance();
  864. } else {
  865. targetBuilder_.clear();
  866. }
  867. bitField0_ = (bitField0_ & ~0x00000004);
  868. isPeeled_ = false;
  869. bitField0_ = (bitField0_ & ~0x00000008);
  870. if (peeledBuilder_ == null) {
  871. peeled_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDefaultInstance();
  872. } else {
  873. peeledBuilder_.clear();
  874. }
  875. bitField0_ = (bitField0_ & ~0x00000010);
  876. return this;
  877. }
  878. public Builder clone() {
  879. return create().mergeFrom(buildPartial());
  880. }
  881. public com.google.protobuf.Descriptors.Descriptor
  882. getDescriptorForType() {
  883. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.getDescriptor();
  884. }
  885. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData getDefaultInstanceForType() {
  886. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.getDefaultInstance();
  887. }
  888. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData build() {
  889. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData result = buildPartial();
  890. if (!result.isInitialized()) {
  891. throw newUninitializedMessageException(result);
  892. }
  893. return result;
  894. }
  895. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData buildParsed()
  896. throws com.google.protobuf.InvalidProtocolBufferException {
  897. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData result = buildPartial();
  898. if (!result.isInitialized()) {
  899. throw newUninitializedMessageException(
  900. result).asInvalidProtocolBufferException();
  901. }
  902. return result;
  903. }
  904. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData buildPartial() {
  905. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData(this);
  906. int from_bitField0_ = bitField0_;
  907. int to_bitField0_ = 0;
  908. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  909. to_bitField0_ |= 0x00000001;
  910. }
  911. result.sequence_ = sequence_;
  912. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  913. to_bitField0_ |= 0x00000002;
  914. }
  915. result.symref_ = symref_;
  916. if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  917. to_bitField0_ |= 0x00000004;
  918. }
  919. if (targetBuilder_ == null) {
  920. result.target_ = target_;
  921. } else {
  922. result.target_ = targetBuilder_.build();
  923. }
  924. if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
  925. to_bitField0_ |= 0x00000008;
  926. }
  927. result.isPeeled_ = isPeeled_;
  928. if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
  929. to_bitField0_ |= 0x00000010;
  930. }
  931. if (peeledBuilder_ == null) {
  932. result.peeled_ = peeled_;
  933. } else {
  934. result.peeled_ = peeledBuilder_.build();
  935. }
  936. result.bitField0_ = to_bitField0_;
  937. onBuilt();
  938. return result;
  939. }
  940. public Builder mergeFrom(com.google.protobuf.Message other) {
  941. if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData) {
  942. return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData)other);
  943. } else {
  944. super.mergeFrom(other);
  945. return this;
  946. }
  947. }
  948. public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData other) {
  949. if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.getDefaultInstance()) return this;
  950. if (other.hasSequence()) {
  951. setSequence(other.getSequence());
  952. }
  953. if (other.hasSymref()) {
  954. setSymref(other.getSymref());
  955. }
  956. if (other.hasTarget()) {
  957. mergeTarget(other.getTarget());
  958. }
  959. if (other.hasIsPeeled()) {
  960. setIsPeeled(other.getIsPeeled());
  961. }
  962. if (other.hasPeeled()) {
  963. mergePeeled(other.getPeeled());
  964. }
  965. this.mergeUnknownFields(other.getUnknownFields());
  966. return this;
  967. }
  968. public final boolean isInitialized() {
  969. if (!hasSequence()) {
  970. return false;
  971. }
  972. if (hasTarget()) {
  973. if (!getTarget().isInitialized()) {
  974. return false;
  975. }
  976. }
  977. if (hasPeeled()) {
  978. if (!getPeeled().isInitialized()) {
  979. return false;
  980. }
  981. }
  982. return true;
  983. }
  984. public Builder mergeFrom(
  985. com.google.protobuf.CodedInputStream input,
  986. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  987. throws java.io.IOException {
  988. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  989. com.google.protobuf.UnknownFieldSet.newBuilder(
  990. this.getUnknownFields());
  991. while (true) {
  992. int tag = input.readTag();
  993. switch (tag) {
  994. case 0:
  995. this.setUnknownFields(unknownFields.build());
  996. onChanged();
  997. return this;
  998. default: {
  999. if (!parseUnknownField(input, unknownFields,
  1000. extensionRegistry, tag)) {
  1001. this.setUnknownFields(unknownFields.build());
  1002. onChanged();
  1003. return this;
  1004. }
  1005. break;
  1006. }
  1007. case 10: {
  1008. bitField0_ |= 0x00000002;
  1009. symref_ = input.readBytes();
  1010. break;
  1011. }
  1012. case 18: {
  1013. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.newBuilder();
  1014. if (hasTarget()) {
  1015. subBuilder.mergeFrom(getTarget());
  1016. }
  1017. input.readMessage(subBuilder, extensionRegistry);
  1018. setTarget(subBuilder.buildPartial());
  1019. break;
  1020. }
  1021. case 24: {
  1022. bitField0_ |= 0x00000008;
  1023. isPeeled_ = input.readBool();
  1024. break;
  1025. }
  1026. case 34: {
  1027. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.newBuilder();
  1028. if (hasPeeled()) {
  1029. subBuilder.mergeFrom(getPeeled());
  1030. }
  1031. input.readMessage(subBuilder, extensionRegistry);
  1032. setPeeled(subBuilder.buildPartial());
  1033. break;
  1034. }
  1035. case 40: {
  1036. bitField0_ |= 0x00000001;
  1037. sequence_ = input.readUInt32();
  1038. break;
  1039. }
  1040. }
  1041. }
  1042. }
  1043. private int bitField0_;
  1044. // required uint32 sequence = 5 [default = 0];
  1045. private int sequence_ ;
  1046. public boolean hasSequence() {
  1047. return ((bitField0_ & 0x00000001) == 0x00000001);
  1048. }
  1049. public int getSequence() {
  1050. return sequence_;
  1051. }
  1052. public Builder setSequence(int value) {
  1053. bitField0_ |= 0x00000001;
  1054. sequence_ = value;
  1055. onChanged();
  1056. return this;
  1057. }
  1058. public Builder clearSequence() {
  1059. bitField0_ = (bitField0_ & ~0x00000001);
  1060. sequence_ = 0;
  1061. onChanged();
  1062. return this;
  1063. }
  1064. // optional string symref = 1;
  1065. private Object symref_ = "";
  1066. public boolean hasSymref() {
  1067. return ((bitField0_ & 0x00000002) == 0x00000002);
  1068. }
  1069. public String getSymref() {
  1070. Object ref = symref_;
  1071. if (!(ref instanceof String)) {
  1072. String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
  1073. symref_ = s;
  1074. return s;
  1075. } else {
  1076. return (String) ref;
  1077. }
  1078. }
  1079. public Builder setSymref(String value) {
  1080. if (value == null) {
  1081. throw new NullPointerException();
  1082. }
  1083. bitField0_ |= 0x00000002;
  1084. symref_ = value;
  1085. onChanged();
  1086. return this;
  1087. }
  1088. public Builder clearSymref() {
  1089. bitField0_ = (bitField0_ & ~0x00000002);
  1090. symref_ = getDefaultInstance().getSymref();
  1091. onChanged();
  1092. return this;
  1093. }
  1094. void setSymref(com.google.protobuf.ByteString value) {
  1095. bitField0_ |= 0x00000002;
  1096. symref_ = value;
  1097. onChanged();
  1098. }
  1099. // optional .org.eclipse.jgit.storage.dht.RefData.Id target = 2;
  1100. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id target_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDefaultInstance();
  1101. private com.google.protobuf.SingleFieldBuilder<
  1102. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id, org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.IdOrBuilder> targetBuilder_;
  1103. public boolean hasTarget() {
  1104. return ((bitField0_ & 0x00000004) == 0x00000004);
  1105. }
  1106. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id getTarget() {
  1107. if (targetBuilder_ == null) {
  1108. return target_;
  1109. } else {
  1110. return targetBuilder_.getMessage();
  1111. }
  1112. }
  1113. public Builder setTarget(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id value) {
  1114. if (targetBuilder_ == null) {
  1115. if (value == null) {
  1116. throw new NullPointerException();
  1117. }
  1118. target_ = value;
  1119. onChanged();
  1120. } else {
  1121. targetBuilder_.setMessage(value);
  1122. }
  1123. bitField0_ |= 0x00000004;
  1124. return this;
  1125. }
  1126. public Builder setTarget(
  1127. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.Builder builderForValue) {
  1128. if (targetBuilder_ == null) {
  1129. target_ = builderForValue.build();
  1130. onChanged();
  1131. } else {
  1132. targetBuilder_.setMessage(builderForValue.build());
  1133. }
  1134. bitField0_ |= 0x00000004;
  1135. return this;
  1136. }
  1137. public Builder mergeTarget(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id value) {
  1138. if (targetBuilder_ == null) {
  1139. if (((bitField0_ & 0x00000004) == 0x00000004) &&
  1140. target_ != org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDefaultInstance()) {
  1141. target_ =
  1142. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.newBuilder(target_).mergeFrom(value).buildPartial();
  1143. } else {
  1144. target_ = value;
  1145. }
  1146. onChanged();
  1147. } else {
  1148. targetBuilder_.mergeFrom(value);
  1149. }
  1150. bitField0_ |= 0x00000004;
  1151. return this;
  1152. }
  1153. public Builder clearTarget() {
  1154. if (targetBuilder_ == null) {
  1155. target_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDefaultInstance();
  1156. onChanged();
  1157. } else {
  1158. targetBuilder_.clear();
  1159. }
  1160. bitField0_ = (bitField0_ & ~0x00000004);
  1161. return this;
  1162. }
  1163. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.Builder getTargetBuilder() {
  1164. bitField0_ |= 0x00000004;
  1165. onChanged();
  1166. return getTargetFieldBuilder().getBuilder();
  1167. }
  1168. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.IdOrBuilder getTargetOrBuilder() {
  1169. if (targetBuilder_ != null) {
  1170. return targetBuilder_.getMessageOrBuilder();
  1171. } else {
  1172. return target_;
  1173. }
  1174. }
  1175. private com.google.protobuf.SingleFieldBuilder<
  1176. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id, org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.IdOrBuilder>
  1177. getTargetFieldBuilder() {
  1178. if (targetBuilder_ == null) {
  1179. targetBuilder_ = new com.google.protobuf.SingleFieldBuilder<
  1180. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id, org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.IdOrBuilder>(
  1181. target_,
  1182. getParentForChildren(),
  1183. isClean());
  1184. target_ = null;
  1185. }
  1186. return targetBuilder_;
  1187. }
  1188. // optional bool is_peeled = 3;
  1189. private boolean isPeeled_ ;
  1190. public boolean hasIsPeeled() {
  1191. return ((bitField0_ & 0x00000008) == 0x00000008);
  1192. }
  1193. public boolean getIsPeeled() {
  1194. return isPeeled_;
  1195. }
  1196. public Builder setIsPeeled(boolean value) {
  1197. bitField0_ |= 0x00000008;
  1198. isPeeled_ = value;
  1199. onChanged();
  1200. return this;
  1201. }
  1202. public Builder clearIsPeeled() {
  1203. bitField0_ = (bitField0_ & ~0x00000008);
  1204. isPeeled_ = false;
  1205. onChanged();
  1206. return this;
  1207. }
  1208. // optional .org.eclipse.jgit.storage.dht.RefData.Id peeled = 4;
  1209. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id peeled_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDefaultInstance();
  1210. private com.google.protobuf.SingleFieldBuilder<
  1211. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id, org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.IdOrBuilder> peeledBuilder_;
  1212. public boolean hasPeeled() {
  1213. return ((bitField0_ & 0x00000010) == 0x00000010);
  1214. }
  1215. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id getPeeled() {
  1216. if (peeledBuilder_ == null) {
  1217. return peeled_;
  1218. } else {
  1219. return peeledBuilder_.getMessage();
  1220. }
  1221. }
  1222. public Builder setPeeled(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id value) {
  1223. if (peeledBuilder_ == null) {
  1224. if (value == null) {
  1225. throw new NullPointerException();
  1226. }
  1227. peeled_ = value;
  1228. onChanged();
  1229. } else {
  1230. peeledBuilder_.setMessage(value);
  1231. }
  1232. bitField0_ |= 0x00000010;
  1233. return this;
  1234. }
  1235. public Builder setPeeled(
  1236. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.Builder builderForValue) {
  1237. if (peeledBuilder_ == null) {
  1238. peeled_ = builderForValue.build();
  1239. onChanged();
  1240. } else {
  1241. peeledBuilder_.setMessage(builderForValue.build());
  1242. }
  1243. bitField0_ |= 0x00000010;
  1244. return this;
  1245. }
  1246. public Builder mergePeeled(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id value) {
  1247. if (peeledBuilder_ == null) {
  1248. if (((bitField0_ & 0x00000010) == 0x00000010) &&
  1249. peeled_ != org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDefaultInstance()) {
  1250. peeled_ =
  1251. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.newBuilder(peeled_).mergeFrom(value).buildPartial();
  1252. } else {
  1253. peeled_ = value;
  1254. }
  1255. onChanged();
  1256. } else {
  1257. peeledBuilder_.mergeFrom(value);
  1258. }
  1259. bitField0_ |= 0x00000010;
  1260. return this;
  1261. }
  1262. public Builder clearPeeled() {
  1263. if (peeledBuilder_ == null) {
  1264. peeled_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.getDefaultInstance();
  1265. onChanged();
  1266. } else {
  1267. peeledBuilder_.clear();
  1268. }
  1269. bitField0_ = (bitField0_ & ~0x00000010);
  1270. return this;
  1271. }
  1272. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.Builder getPeeledBuilder() {
  1273. bitField0_ |= 0x00000010;
  1274. onChanged();
  1275. return getPeeledFieldBuilder().getBuilder();
  1276. }
  1277. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.IdOrBuilder getPeeledOrBuilder() {
  1278. if (peeledBuilder_ != null) {
  1279. return peeledBuilder_.getMessageOrBuilder();
  1280. } else {
  1281. return peeled_;
  1282. }
  1283. }
  1284. private com.google.protobuf.SingleFieldBuilder<
  1285. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id, org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.IdOrBuilder>
  1286. getPeeledFieldBuilder() {
  1287. if (peeledBuilder_ == null) {
  1288. peeledBuilder_ = new com.google.protobuf.SingleFieldBuilder<
  1289. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id, org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.IdOrBuilder>(
  1290. peeled_,
  1291. getParentForChildren(),
  1292. isClean());
  1293. peeled_ = null;
  1294. }
  1295. return peeledBuilder_;
  1296. }
  1297. // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.RefData)
  1298. }
  1299. static {
  1300. defaultInstance = new RefData(true);
  1301. defaultInstance.initFields();
  1302. }
  1303. // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.RefData)
  1304. }
  1305. public interface ObjectInfoOrBuilder
  1306. extends com.google.protobuf.MessageOrBuilder {
  1307. // optional .org.eclipse.jgit.storage.dht.ObjectInfo.ObjectType object_type = 1;
  1308. boolean hasObjectType();
  1309. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType getObjectType();
  1310. // required int32 offset = 2;
  1311. boolean hasOffset();
  1312. int getOffset();
  1313. // required int64 packed_size = 3;
  1314. boolean hasPackedSize();
  1315. long getPackedSize();
  1316. // required int64 inflated_size = 4;
  1317. boolean hasInflatedSize();
  1318. long getInflatedSize();
  1319. // optional bytes delta_base = 5;
  1320. boolean hasDeltaBase();
  1321. com.google.protobuf.ByteString getDeltaBase();
  1322. // optional bool is_fragmented = 6;
  1323. boolean hasIsFragmented();
  1324. boolean getIsFragmented();
  1325. }
  1326. public static final class ObjectInfo extends
  1327. com.google.protobuf.GeneratedMessage
  1328. implements ObjectInfoOrBuilder {
  1329. // Use ObjectInfo.newBuilder() to construct.
  1330. private ObjectInfo(Builder builder) {
  1331. super(builder);
  1332. }
  1333. private ObjectInfo(boolean noInit) {}
  1334. private static final ObjectInfo defaultInstance;
  1335. public static ObjectInfo getDefaultInstance() {
  1336. return defaultInstance;
  1337. }
  1338. public ObjectInfo getDefaultInstanceForType() {
  1339. return defaultInstance;
  1340. }
  1341. public static final com.google.protobuf.Descriptors.Descriptor
  1342. getDescriptor() {
  1343. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ObjectInfo_descriptor;
  1344. }
  1345. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1346. internalGetFieldAccessorTable() {
  1347. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ObjectInfo_fieldAccessorTable;
  1348. }
  1349. public enum ObjectType
  1350. implements com.google.protobuf.ProtocolMessageEnum {
  1351. COMMIT(0, 1),
  1352. TREE(1, 2),
  1353. BLOB(2, 3),
  1354. TAG(3, 4),
  1355. ;
  1356. public static final int COMMIT_VALUE = 1;
  1357. public static final int TREE_VALUE = 2;
  1358. public static final int BLOB_VALUE = 3;
  1359. public static final int TAG_VALUE = 4;
  1360. public final int getNumber() { return value; }
  1361. public static ObjectType valueOf(int value) {
  1362. switch (value) {
  1363. case 1: return COMMIT;
  1364. case 2: return TREE;
  1365. case 3: return BLOB;
  1366. case 4: return TAG;
  1367. default: return null;
  1368. }
  1369. }
  1370. public static com.google.protobuf.Internal.EnumLiteMap<ObjectType>
  1371. internalGetValueMap() {
  1372. return internalValueMap;
  1373. }
  1374. private static com.google.protobuf.Internal.EnumLiteMap<ObjectType>
  1375. internalValueMap =
  1376. new com.google.protobuf.Internal.EnumLiteMap<ObjectType>() {
  1377. public ObjectType findValueByNumber(int number) {
  1378. return ObjectType.valueOf(number);
  1379. }
  1380. };
  1381. public final com.google.protobuf.Descriptors.EnumValueDescriptor
  1382. getValueDescriptor() {
  1383. return getDescriptor().getValues().get(index);
  1384. }
  1385. public final com.google.protobuf.Descriptors.EnumDescriptor
  1386. getDescriptorForType() {
  1387. return getDescriptor();
  1388. }
  1389. public static final com.google.protobuf.Descriptors.EnumDescriptor
  1390. getDescriptor() {
  1391. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.getDescriptor().getEnumTypes().get(0);
  1392. }
  1393. private static final ObjectType[] VALUES = {
  1394. COMMIT, TREE, BLOB, TAG,
  1395. };
  1396. public static ObjectType valueOf(
  1397. com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
  1398. if (desc.getType() != getDescriptor()) {
  1399. throw new java.lang.IllegalArgumentException(
  1400. "EnumValueDescriptor is not for this type.");
  1401. }
  1402. return VALUES[desc.getIndex()];
  1403. }
  1404. private final int index;
  1405. private final int value;
  1406. private ObjectType(int index, int value) {
  1407. this.index = index;
  1408. this.value = value;
  1409. }
  1410. // @@protoc_insertion_point(enum_scope:org.eclipse.jgit.storage.dht.ObjectInfo.ObjectType)
  1411. }
  1412. private int bitField0_;
  1413. // optional .org.eclipse.jgit.storage.dht.ObjectInfo.ObjectType object_type = 1;
  1414. public static final int OBJECT_TYPE_FIELD_NUMBER = 1;
  1415. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType objectType_;
  1416. public boolean hasObjectType() {
  1417. return ((bitField0_ & 0x00000001) == 0x00000001);
  1418. }
  1419. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType getObjectType() {
  1420. return objectType_;
  1421. }
  1422. // required int32 offset = 2;
  1423. public static final int OFFSET_FIELD_NUMBER = 2;
  1424. private int offset_;
  1425. public boolean hasOffset() {
  1426. return ((bitField0_ & 0x00000002) == 0x00000002);
  1427. }
  1428. public int getOffset() {
  1429. return offset_;
  1430. }
  1431. // required int64 packed_size = 3;
  1432. public static final int PACKED_SIZE_FIELD_NUMBER = 3;
  1433. private long packedSize_;
  1434. public boolean hasPackedSize() {
  1435. return ((bitField0_ & 0x00000004) == 0x00000004);
  1436. }
  1437. public long getPackedSize() {
  1438. return packedSize_;
  1439. }
  1440. // required int64 inflated_size = 4;
  1441. public static final int INFLATED_SIZE_FIELD_NUMBER = 4;
  1442. private long inflatedSize_;
  1443. public boolean hasInflatedSize() {
  1444. return ((bitField0_ & 0x00000008) == 0x00000008);
  1445. }
  1446. public long getInflatedSize() {
  1447. return inflatedSize_;
  1448. }
  1449. // optional bytes delta_base = 5;
  1450. public static final int DELTA_BASE_FIELD_NUMBER = 5;
  1451. private com.google.protobuf.ByteString deltaBase_;
  1452. public boolean hasDeltaBase() {
  1453. return ((bitField0_ & 0x00000010) == 0x00000010);
  1454. }
  1455. public com.google.protobuf.ByteString getDeltaBase() {
  1456. return deltaBase_;
  1457. }
  1458. // optional bool is_fragmented = 6;
  1459. public static final int IS_FRAGMENTED_FIELD_NUMBER = 6;
  1460. private boolean isFragmented_;
  1461. public boolean hasIsFragmented() {
  1462. return ((bitField0_ & 0x00000020) == 0x00000020);
  1463. }
  1464. public boolean getIsFragmented() {
  1465. return isFragmented_;
  1466. }
  1467. private void initFields() {
  1468. objectType_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType.COMMIT;
  1469. offset_ = 0;
  1470. packedSize_ = 0L;
  1471. inflatedSize_ = 0L;
  1472. deltaBase_ = com.google.protobuf.ByteString.EMPTY;
  1473. isFragmented_ = false;
  1474. }
  1475. private byte memoizedIsInitialized = -1;
  1476. public final boolean isInitialized() {
  1477. byte isInitialized = memoizedIsInitialized;
  1478. if (isInitialized != -1) return isInitialized == 1;
  1479. if (!hasOffset()) {
  1480. memoizedIsInitialized = 0;
  1481. return false;
  1482. }
  1483. if (!hasPackedSize()) {
  1484. memoizedIsInitialized = 0;
  1485. return false;
  1486. }
  1487. if (!hasInflatedSize()) {
  1488. memoizedIsInitialized = 0;
  1489. return false;
  1490. }
  1491. memoizedIsInitialized = 1;
  1492. return true;
  1493. }
  1494. public void writeTo(com.google.protobuf.CodedOutputStream output)
  1495. throws java.io.IOException {
  1496. getSerializedSize();
  1497. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  1498. output.writeEnum(1, objectType_.getNumber());
  1499. }
  1500. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  1501. output.writeInt32(2, offset_);
  1502. }
  1503. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  1504. output.writeInt64(3, packedSize_);
  1505. }
  1506. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  1507. output.writeInt64(4, inflatedSize_);
  1508. }
  1509. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  1510. output.writeBytes(5, deltaBase_);
  1511. }
  1512. if (((bitField0_ & 0x00000020) == 0x00000020)) {
  1513. output.writeBool(6, isFragmented_);
  1514. }
  1515. getUnknownFields().writeTo(output);
  1516. }
  1517. private int memoizedSerializedSize = -1;
  1518. public int getSerializedSize() {
  1519. int size = memoizedSerializedSize;
  1520. if (size != -1) return size;
  1521. size = 0;
  1522. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  1523. size += com.google.protobuf.CodedOutputStream
  1524. .computeEnumSize(1, objectType_.getNumber());
  1525. }
  1526. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  1527. size += com.google.protobuf.CodedOutputStream
  1528. .computeInt32Size(2, offset_);
  1529. }
  1530. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  1531. size += com.google.protobuf.CodedOutputStream
  1532. .computeInt64Size(3, packedSize_);
  1533. }
  1534. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  1535. size += com.google.protobuf.CodedOutputStream
  1536. .computeInt64Size(4, inflatedSize_);
  1537. }
  1538. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  1539. size += com.google.protobuf.CodedOutputStream
  1540. .computeBytesSize(5, deltaBase_);
  1541. }
  1542. if (((bitField0_ & 0x00000020) == 0x00000020)) {
  1543. size += com.google.protobuf.CodedOutputStream
  1544. .computeBoolSize(6, isFragmented_);
  1545. }
  1546. size += getUnknownFields().getSerializedSize();
  1547. memoizedSerializedSize = size;
  1548. return size;
  1549. }
  1550. @java.lang.Override
  1551. protected Object writeReplace() throws java.io.ObjectStreamException {
  1552. return super.writeReplace();
  1553. }
  1554. @java.lang.Override
  1555. public boolean equals(final Object obj) {
  1556. if (obj == this) {
  1557. return true;
  1558. }
  1559. if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo)) {
  1560. return super.equals(obj);
  1561. }
  1562. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo) obj;
  1563. boolean result = true;
  1564. result = result && (hasObjectType() == other.hasObjectType());
  1565. if (hasObjectType()) {
  1566. result = result &&
  1567. (getObjectType() == other.getObjectType());
  1568. }
  1569. result = result && (hasOffset() == other.hasOffset());
  1570. if (hasOffset()) {
  1571. result = result && (getOffset()
  1572. == other.getOffset());
  1573. }
  1574. result = result && (hasPackedSize() == other.hasPackedSize());
  1575. if (hasPackedSize()) {
  1576. result = result && (getPackedSize()
  1577. == other.getPackedSize());
  1578. }
  1579. result = result && (hasInflatedSize() == other.hasInflatedSize());
  1580. if (hasInflatedSize()) {
  1581. result = result && (getInflatedSize()
  1582. == other.getInflatedSize());
  1583. }
  1584. result = result && (hasDeltaBase() == other.hasDeltaBase());
  1585. if (hasDeltaBase()) {
  1586. result = result && getDeltaBase()
  1587. .equals(other.getDeltaBase());
  1588. }
  1589. result = result && (hasIsFragmented() == other.hasIsFragmented());
  1590. if (hasIsFragmented()) {
  1591. result = result && (getIsFragmented()
  1592. == other.getIsFragmented());
  1593. }
  1594. result = result &&
  1595. getUnknownFields().equals(other.getUnknownFields());
  1596. return result;
  1597. }
  1598. @java.lang.Override
  1599. public int hashCode() {
  1600. int hash = 41;
  1601. hash = (19 * hash) + getDescriptorForType().hashCode();
  1602. if (hasObjectType()) {
  1603. hash = (37 * hash) + OBJECT_TYPE_FIELD_NUMBER;
  1604. hash = (53 * hash) + hashEnum(getObjectType());
  1605. }
  1606. if (hasOffset()) {
  1607. hash = (37 * hash) + OFFSET_FIELD_NUMBER;
  1608. hash = (53 * hash) + getOffset();
  1609. }
  1610. if (hasPackedSize()) {
  1611. hash = (37 * hash) + PACKED_SIZE_FIELD_NUMBER;
  1612. hash = (53 * hash) + hashLong(getPackedSize());
  1613. }
  1614. if (hasInflatedSize()) {
  1615. hash = (37 * hash) + INFLATED_SIZE_FIELD_NUMBER;
  1616. hash = (53 * hash) + hashLong(getInflatedSize());
  1617. }
  1618. if (hasDeltaBase()) {
  1619. hash = (37 * hash) + DELTA_BASE_FIELD_NUMBER;
  1620. hash = (53 * hash) + getDeltaBase().hashCode();
  1621. }
  1622. if (hasIsFragmented()) {
  1623. hash = (37 * hash) + IS_FRAGMENTED_FIELD_NUMBER;
  1624. hash = (53 * hash) + hashBoolean(getIsFragmented());
  1625. }
  1626. hash = (29 * hash) + getUnknownFields().hashCode();
  1627. return hash;
  1628. }
  1629. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo parseFrom(
  1630. com.google.protobuf.ByteString data)
  1631. throws com.google.protobuf.InvalidProtocolBufferException {
  1632. return newBuilder().mergeFrom(data).buildParsed();
  1633. }
  1634. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo parseFrom(
  1635. com.google.protobuf.ByteString data,
  1636. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1637. throws com.google.protobuf.InvalidProtocolBufferException {
  1638. return newBuilder().mergeFrom(data, extensionRegistry)
  1639. .buildParsed();
  1640. }
  1641. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo parseFrom(byte[] data)
  1642. throws com.google.protobuf.InvalidProtocolBufferException {
  1643. return newBuilder().mergeFrom(data).buildParsed();
  1644. }
  1645. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo parseFrom(
  1646. byte[] data,
  1647. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1648. throws com.google.protobuf.InvalidProtocolBufferException {
  1649. return newBuilder().mergeFrom(data, extensionRegistry)
  1650. .buildParsed();
  1651. }
  1652. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo parseFrom(java.io.InputStream input)
  1653. throws java.io.IOException {
  1654. return newBuilder().mergeFrom(input).buildParsed();
  1655. }
  1656. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo parseFrom(
  1657. java.io.InputStream input,
  1658. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1659. throws java.io.IOException {
  1660. return newBuilder().mergeFrom(input, extensionRegistry)
  1661. .buildParsed();
  1662. }
  1663. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo parseDelimitedFrom(java.io.InputStream input)
  1664. throws java.io.IOException {
  1665. Builder builder = newBuilder();
  1666. if (builder.mergeDelimitedFrom(input)) {
  1667. return builder.buildParsed();
  1668. } else {
  1669. return null;
  1670. }
  1671. }
  1672. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo parseDelimitedFrom(
  1673. java.io.InputStream input,
  1674. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1675. throws java.io.IOException {
  1676. Builder builder = newBuilder();
  1677. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  1678. return builder.buildParsed();
  1679. } else {
  1680. return null;
  1681. }
  1682. }
  1683. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo parseFrom(
  1684. com.google.protobuf.CodedInputStream input)
  1685. throws java.io.IOException {
  1686. return newBuilder().mergeFrom(input).buildParsed();
  1687. }
  1688. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo parseFrom(
  1689. com.google.protobuf.CodedInputStream input,
  1690. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1691. throws java.io.IOException {
  1692. return newBuilder().mergeFrom(input, extensionRegistry)
  1693. .buildParsed();
  1694. }
  1695. public static Builder newBuilder() { return Builder.create(); }
  1696. public Builder newBuilderForType() { return newBuilder(); }
  1697. public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo prototype) {
  1698. return newBuilder().mergeFrom(prototype);
  1699. }
  1700. public Builder toBuilder() { return newBuilder(this); }
  1701. @java.lang.Override
  1702. protected Builder newBuilderForType(
  1703. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  1704. Builder builder = new Builder(parent);
  1705. return builder;
  1706. }
  1707. public static final class Builder extends
  1708. com.google.protobuf.GeneratedMessage.Builder<Builder>
  1709. implements org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfoOrBuilder {
  1710. public static final com.google.protobuf.Descriptors.Descriptor
  1711. getDescriptor() {
  1712. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ObjectInfo_descriptor;
  1713. }
  1714. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1715. internalGetFieldAccessorTable() {
  1716. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ObjectInfo_fieldAccessorTable;
  1717. }
  1718. // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.newBuilder()
  1719. private Builder() {
  1720. maybeForceBuilderInitialization();
  1721. }
  1722. private Builder(BuilderParent parent) {
  1723. super(parent);
  1724. maybeForceBuilderInitialization();
  1725. }
  1726. private void maybeForceBuilderInitialization() {
  1727. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  1728. }
  1729. }
  1730. private static Builder create() {
  1731. return new Builder();
  1732. }
  1733. public Builder clear() {
  1734. super.clear();
  1735. objectType_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType.COMMIT;
  1736. bitField0_ = (bitField0_ & ~0x00000001);
  1737. offset_ = 0;
  1738. bitField0_ = (bitField0_ & ~0x00000002);
  1739. packedSize_ = 0L;
  1740. bitField0_ = (bitField0_ & ~0x00000004);
  1741. inflatedSize_ = 0L;
  1742. bitField0_ = (bitField0_ & ~0x00000008);
  1743. deltaBase_ = com.google.protobuf.ByteString.EMPTY;
  1744. bitField0_ = (bitField0_ & ~0x00000010);
  1745. isFragmented_ = false;
  1746. bitField0_ = (bitField0_ & ~0x00000020);
  1747. return this;
  1748. }
  1749. public Builder clone() {
  1750. return create().mergeFrom(buildPartial());
  1751. }
  1752. public com.google.protobuf.Descriptors.Descriptor
  1753. getDescriptorForType() {
  1754. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.getDescriptor();
  1755. }
  1756. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo getDefaultInstanceForType() {
  1757. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.getDefaultInstance();
  1758. }
  1759. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo build() {
  1760. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo result = buildPartial();
  1761. if (!result.isInitialized()) {
  1762. throw newUninitializedMessageException(result);
  1763. }
  1764. return result;
  1765. }
  1766. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo buildParsed()
  1767. throws com.google.protobuf.InvalidProtocolBufferException {
  1768. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo result = buildPartial();
  1769. if (!result.isInitialized()) {
  1770. throw newUninitializedMessageException(
  1771. result).asInvalidProtocolBufferException();
  1772. }
  1773. return result;
  1774. }
  1775. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo buildPartial() {
  1776. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo(this);
  1777. int from_bitField0_ = bitField0_;
  1778. int to_bitField0_ = 0;
  1779. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  1780. to_bitField0_ |= 0x00000001;
  1781. }
  1782. result.objectType_ = objectType_;
  1783. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  1784. to_bitField0_ |= 0x00000002;
  1785. }
  1786. result.offset_ = offset_;
  1787. if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  1788. to_bitField0_ |= 0x00000004;
  1789. }
  1790. result.packedSize_ = packedSize_;
  1791. if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
  1792. to_bitField0_ |= 0x00000008;
  1793. }
  1794. result.inflatedSize_ = inflatedSize_;
  1795. if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
  1796. to_bitField0_ |= 0x00000010;
  1797. }
  1798. result.deltaBase_ = deltaBase_;
  1799. if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
  1800. to_bitField0_ |= 0x00000020;
  1801. }
  1802. result.isFragmented_ = isFragmented_;
  1803. result.bitField0_ = to_bitField0_;
  1804. onBuilt();
  1805. return result;
  1806. }
  1807. public Builder mergeFrom(com.google.protobuf.Message other) {
  1808. if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo) {
  1809. return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo)other);
  1810. } else {
  1811. super.mergeFrom(other);
  1812. return this;
  1813. }
  1814. }
  1815. public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo other) {
  1816. if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.getDefaultInstance()) return this;
  1817. if (other.hasObjectType()) {
  1818. setObjectType(other.getObjectType());
  1819. }
  1820. if (other.hasOffset()) {
  1821. setOffset(other.getOffset());
  1822. }
  1823. if (other.hasPackedSize()) {
  1824. setPackedSize(other.getPackedSize());
  1825. }
  1826. if (other.hasInflatedSize()) {
  1827. setInflatedSize(other.getInflatedSize());
  1828. }
  1829. if (other.hasDeltaBase()) {
  1830. setDeltaBase(other.getDeltaBase());
  1831. }
  1832. if (other.hasIsFragmented()) {
  1833. setIsFragmented(other.getIsFragmented());
  1834. }
  1835. this.mergeUnknownFields(other.getUnknownFields());
  1836. return this;
  1837. }
  1838. public final boolean isInitialized() {
  1839. if (!hasOffset()) {
  1840. return false;
  1841. }
  1842. if (!hasPackedSize()) {
  1843. return false;
  1844. }
  1845. if (!hasInflatedSize()) {
  1846. return false;
  1847. }
  1848. return true;
  1849. }
  1850. public Builder mergeFrom(
  1851. com.google.protobuf.CodedInputStream input,
  1852. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1853. throws java.io.IOException {
  1854. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  1855. com.google.protobuf.UnknownFieldSet.newBuilder(
  1856. this.getUnknownFields());
  1857. while (true) {
  1858. int tag = input.readTag();
  1859. switch (tag) {
  1860. case 0:
  1861. this.setUnknownFields(unknownFields.build());
  1862. onChanged();
  1863. return this;
  1864. default: {
  1865. if (!parseUnknownField(input, unknownFields,
  1866. extensionRegistry, tag)) {
  1867. this.setUnknownFields(unknownFields.build());
  1868. onChanged();
  1869. return this;
  1870. }
  1871. break;
  1872. }
  1873. case 8: {
  1874. int rawValue = input.readEnum();
  1875. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType value = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType.valueOf(rawValue);
  1876. if (value == null) {
  1877. unknownFields.mergeVarintField(1, rawValue);
  1878. } else {
  1879. bitField0_ |= 0x00000001;
  1880. objectType_ = value;
  1881. }
  1882. break;
  1883. }
  1884. case 16: {
  1885. bitField0_ |= 0x00000002;
  1886. offset_ = input.readInt32();
  1887. break;
  1888. }
  1889. case 24: {
  1890. bitField0_ |= 0x00000004;
  1891. packedSize_ = input.readInt64();
  1892. break;
  1893. }
  1894. case 32: {
  1895. bitField0_ |= 0x00000008;
  1896. inflatedSize_ = input.readInt64();
  1897. break;
  1898. }
  1899. case 42: {
  1900. bitField0_ |= 0x00000010;
  1901. deltaBase_ = input.readBytes();
  1902. break;
  1903. }
  1904. case 48: {
  1905. bitField0_ |= 0x00000020;
  1906. isFragmented_ = input.readBool();
  1907. break;
  1908. }
  1909. }
  1910. }
  1911. }
  1912. private int bitField0_;
  1913. // optional .org.eclipse.jgit.storage.dht.ObjectInfo.ObjectType object_type = 1;
  1914. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType objectType_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType.COMMIT;
  1915. public boolean hasObjectType() {
  1916. return ((bitField0_ & 0x00000001) == 0x00000001);
  1917. }
  1918. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType getObjectType() {
  1919. return objectType_;
  1920. }
  1921. public Builder setObjectType(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType value) {
  1922. if (value == null) {
  1923. throw new NullPointerException();
  1924. }
  1925. bitField0_ |= 0x00000001;
  1926. objectType_ = value;
  1927. onChanged();
  1928. return this;
  1929. }
  1930. public Builder clearObjectType() {
  1931. bitField0_ = (bitField0_ & ~0x00000001);
  1932. objectType_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.ObjectType.COMMIT;
  1933. onChanged();
  1934. return this;
  1935. }
  1936. // required int32 offset = 2;
  1937. private int offset_ ;
  1938. public boolean hasOffset() {
  1939. return ((bitField0_ & 0x00000002) == 0x00000002);
  1940. }
  1941. public int getOffset() {
  1942. return offset_;
  1943. }
  1944. public Builder setOffset(int value) {
  1945. bitField0_ |= 0x00000002;
  1946. offset_ = value;
  1947. onChanged();
  1948. return this;
  1949. }
  1950. public Builder clearOffset() {
  1951. bitField0_ = (bitField0_ & ~0x00000002);
  1952. offset_ = 0;
  1953. onChanged();
  1954. return this;
  1955. }
  1956. // required int64 packed_size = 3;
  1957. private long packedSize_ ;
  1958. public boolean hasPackedSize() {
  1959. return ((bitField0_ & 0x00000004) == 0x00000004);
  1960. }
  1961. public long getPackedSize() {
  1962. return packedSize_;
  1963. }
  1964. public Builder setPackedSize(long value) {
  1965. bitField0_ |= 0x00000004;
  1966. packedSize_ = value;
  1967. onChanged();
  1968. return this;
  1969. }
  1970. public Builder clearPackedSize() {
  1971. bitField0_ = (bitField0_ & ~0x00000004);
  1972. packedSize_ = 0L;
  1973. onChanged();
  1974. return this;
  1975. }
  1976. // required int64 inflated_size = 4;
  1977. private long inflatedSize_ ;
  1978. public boolean hasInflatedSize() {
  1979. return ((bitField0_ & 0x00000008) == 0x00000008);
  1980. }
  1981. public long getInflatedSize() {
  1982. return inflatedSize_;
  1983. }
  1984. public Builder setInflatedSize(long value) {
  1985. bitField0_ |= 0x00000008;
  1986. inflatedSize_ = value;
  1987. onChanged();
  1988. return this;
  1989. }
  1990. public Builder clearInflatedSize() {
  1991. bitField0_ = (bitField0_ & ~0x00000008);
  1992. inflatedSize_ = 0L;
  1993. onChanged();
  1994. return this;
  1995. }
  1996. // optional bytes delta_base = 5;
  1997. private com.google.protobuf.ByteString deltaBase_ = com.google.protobuf.ByteString.EMPTY;
  1998. public boolean hasDeltaBase() {
  1999. return ((bitField0_ & 0x00000010) == 0x00000010);
  2000. }
  2001. public com.google.protobuf.ByteString getDeltaBase() {
  2002. return deltaBase_;
  2003. }
  2004. public Builder setDeltaBase(com.google.protobuf.ByteString value) {
  2005. if (value == null) {
  2006. throw new NullPointerException();
  2007. }
  2008. bitField0_ |= 0x00000010;
  2009. deltaBase_ = value;
  2010. onChanged();
  2011. return this;
  2012. }
  2013. public Builder clearDeltaBase() {
  2014. bitField0_ = (bitField0_ & ~0x00000010);
  2015. deltaBase_ = getDefaultInstance().getDeltaBase();
  2016. onChanged();
  2017. return this;
  2018. }
  2019. // optional bool is_fragmented = 6;
  2020. private boolean isFragmented_ ;
  2021. public boolean hasIsFragmented() {
  2022. return ((bitField0_ & 0x00000020) == 0x00000020);
  2023. }
  2024. public boolean getIsFragmented() {
  2025. return isFragmented_;
  2026. }
  2027. public Builder setIsFragmented(boolean value) {
  2028. bitField0_ |= 0x00000020;
  2029. isFragmented_ = value;
  2030. onChanged();
  2031. return this;
  2032. }
  2033. public Builder clearIsFragmented() {
  2034. bitField0_ = (bitField0_ & ~0x00000020);
  2035. isFragmented_ = false;
  2036. onChanged();
  2037. return this;
  2038. }
  2039. // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.ObjectInfo)
  2040. }
  2041. static {
  2042. defaultInstance = new ObjectInfo(true);
  2043. defaultInstance.initFields();
  2044. }
  2045. // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.ObjectInfo)
  2046. }
  2047. public interface ChunkInfoOrBuilder
  2048. extends com.google.protobuf.MessageOrBuilder {
  2049. // optional .org.eclipse.jgit.storage.dht.ChunkInfo.Source source = 1;
  2050. boolean hasSource();
  2051. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.Source getSource();
  2052. // optional .org.eclipse.jgit.storage.dht.ChunkInfo.ObjectType object_type = 2;
  2053. boolean hasObjectType();
  2054. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectType getObjectType();
  2055. // optional bool is_fragment = 3;
  2056. boolean hasIsFragment();
  2057. boolean getIsFragment();
  2058. // optional string cached_pack_key = 4;
  2059. boolean hasCachedPackKey();
  2060. String getCachedPackKey();
  2061. // optional .org.eclipse.jgit.storage.dht.ChunkInfo.ObjectCounts object_counts = 5;
  2062. boolean hasObjectCounts();
  2063. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts getObjectCounts();
  2064. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCountsOrBuilder getObjectCountsOrBuilder();
  2065. // optional int32 chunk_size = 6;
  2066. boolean hasChunkSize();
  2067. int getChunkSize();
  2068. // optional int32 index_size = 7;
  2069. boolean hasIndexSize();
  2070. int getIndexSize();
  2071. // optional int32 meta_size = 8;
  2072. boolean hasMetaSize();
  2073. int getMetaSize();
  2074. }
  2075. public static final class ChunkInfo extends
  2076. com.google.protobuf.GeneratedMessage
  2077. implements ChunkInfoOrBuilder {
  2078. // Use ChunkInfo.newBuilder() to construct.
  2079. private ChunkInfo(Builder builder) {
  2080. super(builder);
  2081. }
  2082. private ChunkInfo(boolean noInit) {}
  2083. private static final ChunkInfo defaultInstance;
  2084. public static ChunkInfo getDefaultInstance() {
  2085. return defaultInstance;
  2086. }
  2087. public ChunkInfo getDefaultInstanceForType() {
  2088. return defaultInstance;
  2089. }
  2090. public static final com.google.protobuf.Descriptors.Descriptor
  2091. getDescriptor() {
  2092. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_descriptor;
  2093. }
  2094. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  2095. internalGetFieldAccessorTable() {
  2096. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_fieldAccessorTable;
  2097. }
  2098. public enum Source
  2099. implements com.google.protobuf.ProtocolMessageEnum {
  2100. RECEIVE(0, 1),
  2101. INSERT(1, 2),
  2102. REPACK(2, 3),
  2103. ;
  2104. public static final int RECEIVE_VALUE = 1;
  2105. public static final int INSERT_VALUE = 2;
  2106. public static final int REPACK_VALUE = 3;
  2107. public final int getNumber() { return value; }
  2108. public static Source valueOf(int value) {
  2109. switch (value) {
  2110. case 1: return RECEIVE;
  2111. case 2: return INSERT;
  2112. case 3: return REPACK;
  2113. default: return null;
  2114. }
  2115. }
  2116. public static com.google.protobuf.Internal.EnumLiteMap<Source>
  2117. internalGetValueMap() {
  2118. return internalValueMap;
  2119. }
  2120. private static com.google.protobuf.Internal.EnumLiteMap<Source>
  2121. internalValueMap =
  2122. new com.google.protobuf.Internal.EnumLiteMap<Source>() {
  2123. public Source findValueByNumber(int number) {
  2124. return Source.valueOf(number);
  2125. }
  2126. };
  2127. public final com.google.protobuf.Descriptors.EnumValueDescriptor
  2128. getValueDescriptor() {
  2129. return getDescriptor().getValues().get(index);
  2130. }
  2131. public final com.google.protobuf.Descriptors.EnumDescriptor
  2132. getDescriptorForType() {
  2133. return getDescriptor();
  2134. }
  2135. public static final com.google.protobuf.Descriptors.EnumDescriptor
  2136. getDescriptor() {
  2137. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.getDescriptor().getEnumTypes().get(0);
  2138. }
  2139. private static final Source[] VALUES = {
  2140. RECEIVE, INSERT, REPACK,
  2141. };
  2142. public static Source valueOf(
  2143. com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
  2144. if (desc.getType() != getDescriptor()) {
  2145. throw new java.lang.IllegalArgumentException(
  2146. "EnumValueDescriptor is not for this type.");
  2147. }
  2148. return VALUES[desc.getIndex()];
  2149. }
  2150. private final int index;
  2151. private final int value;
  2152. private Source(int index, int value) {
  2153. this.index = index;
  2154. this.value = value;
  2155. }
  2156. // @@protoc_insertion_point(enum_scope:org.eclipse.jgit.storage.dht.ChunkInfo.Source)
  2157. }
  2158. public enum ObjectType
  2159. implements com.google.protobuf.ProtocolMessageEnum {
  2160. MIXED(0, 0),
  2161. COMMIT(1, 1),
  2162. TREE(2, 2),
  2163. BLOB(3, 3),
  2164. TAG(4, 4),
  2165. ;
  2166. public static final int MIXED_VALUE = 0;
  2167. public static final int COMMIT_VALUE = 1;
  2168. public static final int TREE_VALUE = 2;
  2169. public static final int BLOB_VALUE = 3;
  2170. public static final int TAG_VALUE = 4;
  2171. public final int getNumber() { return value; }
  2172. public static ObjectType valueOf(int value) {
  2173. switch (value) {
  2174. case 0: return MIXED;
  2175. case 1: return COMMIT;
  2176. case 2: return TREE;
  2177. case 3: return BLOB;
  2178. case 4: return TAG;
  2179. default: return null;
  2180. }
  2181. }
  2182. public static com.google.protobuf.Internal.EnumLiteMap<ObjectType>
  2183. internalGetValueMap() {
  2184. return internalValueMap;
  2185. }
  2186. private static com.google.protobuf.Internal.EnumLiteMap<ObjectType>
  2187. internalValueMap =
  2188. new com.google.protobuf.Internal.EnumLiteMap<ObjectType>() {
  2189. public ObjectType findValueByNumber(int number) {
  2190. return ObjectType.valueOf(number);
  2191. }
  2192. };
  2193. public final com.google.protobuf.Descriptors.EnumValueDescriptor
  2194. getValueDescriptor() {
  2195. return getDescriptor().getValues().get(index);
  2196. }
  2197. public final com.google.protobuf.Descriptors.EnumDescriptor
  2198. getDescriptorForType() {
  2199. return getDescriptor();
  2200. }
  2201. public static final com.google.protobuf.Descriptors.EnumDescriptor
  2202. getDescriptor() {
  2203. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.getDescriptor().getEnumTypes().get(1);
  2204. }
  2205. private static final ObjectType[] VALUES = {
  2206. MIXED, COMMIT, TREE, BLOB, TAG,
  2207. };
  2208. public static ObjectType valueOf(
  2209. com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
  2210. if (desc.getType() != getDescriptor()) {
  2211. throw new java.lang.IllegalArgumentException(
  2212. "EnumValueDescriptor is not for this type.");
  2213. }
  2214. return VALUES[desc.getIndex()];
  2215. }
  2216. private final int index;
  2217. private final int value;
  2218. private ObjectType(int index, int value) {
  2219. this.index = index;
  2220. this.value = value;
  2221. }
  2222. // @@protoc_insertion_point(enum_scope:org.eclipse.jgit.storage.dht.ChunkInfo.ObjectType)
  2223. }
  2224. public interface ObjectCountsOrBuilder
  2225. extends com.google.protobuf.MessageOrBuilder {
  2226. // optional int32 total = 1;
  2227. boolean hasTotal();
  2228. int getTotal();
  2229. // optional int32 whole = 2;
  2230. boolean hasWhole();
  2231. int getWhole();
  2232. // optional int32 ofs_delta = 3;
  2233. boolean hasOfsDelta();
  2234. int getOfsDelta();
  2235. // optional int32 ref_delta = 4;
  2236. boolean hasRefDelta();
  2237. int getRefDelta();
  2238. }
  2239. public static final class ObjectCounts extends
  2240. com.google.protobuf.GeneratedMessage
  2241. implements ObjectCountsOrBuilder {
  2242. // Use ObjectCounts.newBuilder() to construct.
  2243. private ObjectCounts(Builder builder) {
  2244. super(builder);
  2245. }
  2246. private ObjectCounts(boolean noInit) {}
  2247. private static final ObjectCounts defaultInstance;
  2248. public static ObjectCounts getDefaultInstance() {
  2249. return defaultInstance;
  2250. }
  2251. public ObjectCounts getDefaultInstanceForType() {
  2252. return defaultInstance;
  2253. }
  2254. public static final com.google.protobuf.Descriptors.Descriptor
  2255. getDescriptor() {
  2256. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_ObjectCounts_descriptor;
  2257. }
  2258. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  2259. internalGetFieldAccessorTable() {
  2260. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_ObjectCounts_fieldAccessorTable;
  2261. }
  2262. private int bitField0_;
  2263. // optional int32 total = 1;
  2264. public static final int TOTAL_FIELD_NUMBER = 1;
  2265. private int total_;
  2266. public boolean hasTotal() {
  2267. return ((bitField0_ & 0x00000001) == 0x00000001);
  2268. }
  2269. public int getTotal() {
  2270. return total_;
  2271. }
  2272. // optional int32 whole = 2;
  2273. public static final int WHOLE_FIELD_NUMBER = 2;
  2274. private int whole_;
  2275. public boolean hasWhole() {
  2276. return ((bitField0_ & 0x00000002) == 0x00000002);
  2277. }
  2278. public int getWhole() {
  2279. return whole_;
  2280. }
  2281. // optional int32 ofs_delta = 3;
  2282. public static final int OFS_DELTA_FIELD_NUMBER = 3;
  2283. private int ofsDelta_;
  2284. public boolean hasOfsDelta() {
  2285. return ((bitField0_ & 0x00000004) == 0x00000004);
  2286. }
  2287. public int getOfsDelta() {
  2288. return ofsDelta_;
  2289. }
  2290. // optional int32 ref_delta = 4;
  2291. public static final int REF_DELTA_FIELD_NUMBER = 4;
  2292. private int refDelta_;
  2293. public boolean hasRefDelta() {
  2294. return ((bitField0_ & 0x00000008) == 0x00000008);
  2295. }
  2296. public int getRefDelta() {
  2297. return refDelta_;
  2298. }
  2299. private void initFields() {
  2300. total_ = 0;
  2301. whole_ = 0;
  2302. ofsDelta_ = 0;
  2303. refDelta_ = 0;
  2304. }
  2305. private byte memoizedIsInitialized = -1;
  2306. public final boolean isInitialized() {
  2307. byte isInitialized = memoizedIsInitialized;
  2308. if (isInitialized != -1) return isInitialized == 1;
  2309. memoizedIsInitialized = 1;
  2310. return true;
  2311. }
  2312. public void writeTo(com.google.protobuf.CodedOutputStream output)
  2313. throws java.io.IOException {
  2314. getSerializedSize();
  2315. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  2316. output.writeInt32(1, total_);
  2317. }
  2318. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  2319. output.writeInt32(2, whole_);
  2320. }
  2321. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  2322. output.writeInt32(3, ofsDelta_);
  2323. }
  2324. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  2325. output.writeInt32(4, refDelta_);
  2326. }
  2327. getUnknownFields().writeTo(output);
  2328. }
  2329. private int memoizedSerializedSize = -1;
  2330. public int getSerializedSize() {
  2331. int size = memoizedSerializedSize;
  2332. if (size != -1) return size;
  2333. size = 0;
  2334. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  2335. size += com.google.protobuf.CodedOutputStream
  2336. .computeInt32Size(1, total_);
  2337. }
  2338. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  2339. size += com.google.protobuf.CodedOutputStream
  2340. .computeInt32Size(2, whole_);
  2341. }
  2342. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  2343. size += com.google.protobuf.CodedOutputStream
  2344. .computeInt32Size(3, ofsDelta_);
  2345. }
  2346. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  2347. size += com.google.protobuf.CodedOutputStream
  2348. .computeInt32Size(4, refDelta_);
  2349. }
  2350. size += getUnknownFields().getSerializedSize();
  2351. memoizedSerializedSize = size;
  2352. return size;
  2353. }
  2354. @java.lang.Override
  2355. protected Object writeReplace() throws java.io.ObjectStreamException {
  2356. return super.writeReplace();
  2357. }
  2358. @java.lang.Override
  2359. public boolean equals(final Object obj) {
  2360. if (obj == this) {
  2361. return true;
  2362. }
  2363. if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts)) {
  2364. return super.equals(obj);
  2365. }
  2366. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts) obj;
  2367. boolean result = true;
  2368. result = result && (hasTotal() == other.hasTotal());
  2369. if (hasTotal()) {
  2370. result = result && (getTotal()
  2371. == other.getTotal());
  2372. }
  2373. result = result && (hasWhole() == other.hasWhole());
  2374. if (hasWhole()) {
  2375. result = result && (getWhole()
  2376. == other.getWhole());
  2377. }
  2378. result = result && (hasOfsDelta() == other.hasOfsDelta());
  2379. if (hasOfsDelta()) {
  2380. result = result && (getOfsDelta()
  2381. == other.getOfsDelta());
  2382. }
  2383. result = result && (hasRefDelta() == other.hasRefDelta());
  2384. if (hasRefDelta()) {
  2385. result = result && (getRefDelta()
  2386. == other.getRefDelta());
  2387. }
  2388. result = result &&
  2389. getUnknownFields().equals(other.getUnknownFields());
  2390. return result;
  2391. }
  2392. @java.lang.Override
  2393. public int hashCode() {
  2394. int hash = 41;
  2395. hash = (19 * hash) + getDescriptorForType().hashCode();
  2396. if (hasTotal()) {
  2397. hash = (37 * hash) + TOTAL_FIELD_NUMBER;
  2398. hash = (53 * hash) + getTotal();
  2399. }
  2400. if (hasWhole()) {
  2401. hash = (37 * hash) + WHOLE_FIELD_NUMBER;
  2402. hash = (53 * hash) + getWhole();
  2403. }
  2404. if (hasOfsDelta()) {
  2405. hash = (37 * hash) + OFS_DELTA_FIELD_NUMBER;
  2406. hash = (53 * hash) + getOfsDelta();
  2407. }
  2408. if (hasRefDelta()) {
  2409. hash = (37 * hash) + REF_DELTA_FIELD_NUMBER;
  2410. hash = (53 * hash) + getRefDelta();
  2411. }
  2412. hash = (29 * hash) + getUnknownFields().hashCode();
  2413. return hash;
  2414. }
  2415. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts parseFrom(
  2416. com.google.protobuf.ByteString data)
  2417. throws com.google.protobuf.InvalidProtocolBufferException {
  2418. return newBuilder().mergeFrom(data).buildParsed();
  2419. }
  2420. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts parseFrom(
  2421. com.google.protobuf.ByteString data,
  2422. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2423. throws com.google.protobuf.InvalidProtocolBufferException {
  2424. return newBuilder().mergeFrom(data, extensionRegistry)
  2425. .buildParsed();
  2426. }
  2427. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts parseFrom(byte[] data)
  2428. throws com.google.protobuf.InvalidProtocolBufferException {
  2429. return newBuilder().mergeFrom(data).buildParsed();
  2430. }
  2431. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts parseFrom(
  2432. byte[] data,
  2433. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2434. throws com.google.protobuf.InvalidProtocolBufferException {
  2435. return newBuilder().mergeFrom(data, extensionRegistry)
  2436. .buildParsed();
  2437. }
  2438. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts parseFrom(java.io.InputStream input)
  2439. throws java.io.IOException {
  2440. return newBuilder().mergeFrom(input).buildParsed();
  2441. }
  2442. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts parseFrom(
  2443. java.io.InputStream input,
  2444. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2445. throws java.io.IOException {
  2446. return newBuilder().mergeFrom(input, extensionRegistry)
  2447. .buildParsed();
  2448. }
  2449. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts parseDelimitedFrom(java.io.InputStream input)
  2450. throws java.io.IOException {
  2451. Builder builder = newBuilder();
  2452. if (builder.mergeDelimitedFrom(input)) {
  2453. return builder.buildParsed();
  2454. } else {
  2455. return null;
  2456. }
  2457. }
  2458. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts parseDelimitedFrom(
  2459. java.io.InputStream input,
  2460. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2461. throws java.io.IOException {
  2462. Builder builder = newBuilder();
  2463. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  2464. return builder.buildParsed();
  2465. } else {
  2466. return null;
  2467. }
  2468. }
  2469. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts parseFrom(
  2470. com.google.protobuf.CodedInputStream input)
  2471. throws java.io.IOException {
  2472. return newBuilder().mergeFrom(input).buildParsed();
  2473. }
  2474. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts parseFrom(
  2475. com.google.protobuf.CodedInputStream input,
  2476. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2477. throws java.io.IOException {
  2478. return newBuilder().mergeFrom(input, extensionRegistry)
  2479. .buildParsed();
  2480. }
  2481. public static Builder newBuilder() { return Builder.create(); }
  2482. public Builder newBuilderForType() { return newBuilder(); }
  2483. public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts prototype) {
  2484. return newBuilder().mergeFrom(prototype);
  2485. }
  2486. public Builder toBuilder() { return newBuilder(this); }
  2487. @java.lang.Override
  2488. protected Builder newBuilderForType(
  2489. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  2490. Builder builder = new Builder(parent);
  2491. return builder;
  2492. }
  2493. public static final class Builder extends
  2494. com.google.protobuf.GeneratedMessage.Builder<Builder>
  2495. implements org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCountsOrBuilder {
  2496. public static final com.google.protobuf.Descriptors.Descriptor
  2497. getDescriptor() {
  2498. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_ObjectCounts_descriptor;
  2499. }
  2500. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  2501. internalGetFieldAccessorTable() {
  2502. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_ObjectCounts_fieldAccessorTable;
  2503. }
  2504. // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.newBuilder()
  2505. private Builder() {
  2506. maybeForceBuilderInitialization();
  2507. }
  2508. private Builder(BuilderParent parent) {
  2509. super(parent);
  2510. maybeForceBuilderInitialization();
  2511. }
  2512. private void maybeForceBuilderInitialization() {
  2513. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  2514. }
  2515. }
  2516. private static Builder create() {
  2517. return new Builder();
  2518. }
  2519. public Builder clear() {
  2520. super.clear();
  2521. total_ = 0;
  2522. bitField0_ = (bitField0_ & ~0x00000001);
  2523. whole_ = 0;
  2524. bitField0_ = (bitField0_ & ~0x00000002);
  2525. ofsDelta_ = 0;
  2526. bitField0_ = (bitField0_ & ~0x00000004);
  2527. refDelta_ = 0;
  2528. bitField0_ = (bitField0_ & ~0x00000008);
  2529. return this;
  2530. }
  2531. public Builder clone() {
  2532. return create().mergeFrom(buildPartial());
  2533. }
  2534. public com.google.protobuf.Descriptors.Descriptor
  2535. getDescriptorForType() {
  2536. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.getDescriptor();
  2537. }
  2538. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts getDefaultInstanceForType() {
  2539. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.getDefaultInstance();
  2540. }
  2541. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts build() {
  2542. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts result = buildPartial();
  2543. if (!result.isInitialized()) {
  2544. throw newUninitializedMessageException(result);
  2545. }
  2546. return result;
  2547. }
  2548. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts buildParsed()
  2549. throws com.google.protobuf.InvalidProtocolBufferException {
  2550. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts result = buildPartial();
  2551. if (!result.isInitialized()) {
  2552. throw newUninitializedMessageException(
  2553. result).asInvalidProtocolBufferException();
  2554. }
  2555. return result;
  2556. }
  2557. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts buildPartial() {
  2558. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts(this);
  2559. int from_bitField0_ = bitField0_;
  2560. int to_bitField0_ = 0;
  2561. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  2562. to_bitField0_ |= 0x00000001;
  2563. }
  2564. result.total_ = total_;
  2565. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  2566. to_bitField0_ |= 0x00000002;
  2567. }
  2568. result.whole_ = whole_;
  2569. if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  2570. to_bitField0_ |= 0x00000004;
  2571. }
  2572. result.ofsDelta_ = ofsDelta_;
  2573. if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
  2574. to_bitField0_ |= 0x00000008;
  2575. }
  2576. result.refDelta_ = refDelta_;
  2577. result.bitField0_ = to_bitField0_;
  2578. onBuilt();
  2579. return result;
  2580. }
  2581. public Builder mergeFrom(com.google.protobuf.Message other) {
  2582. if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts) {
  2583. return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts)other);
  2584. } else {
  2585. super.mergeFrom(other);
  2586. return this;
  2587. }
  2588. }
  2589. public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts other) {
  2590. if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.getDefaultInstance()) return this;
  2591. if (other.hasTotal()) {
  2592. setTotal(other.getTotal());
  2593. }
  2594. if (other.hasWhole()) {
  2595. setWhole(other.getWhole());
  2596. }
  2597. if (other.hasOfsDelta()) {
  2598. setOfsDelta(other.getOfsDelta());
  2599. }
  2600. if (other.hasRefDelta()) {
  2601. setRefDelta(other.getRefDelta());
  2602. }
  2603. this.mergeUnknownFields(other.getUnknownFields());
  2604. return this;
  2605. }
  2606. public final boolean isInitialized() {
  2607. return true;
  2608. }
  2609. public Builder mergeFrom(
  2610. com.google.protobuf.CodedInputStream input,
  2611. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2612. throws java.io.IOException {
  2613. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  2614. com.google.protobuf.UnknownFieldSet.newBuilder(
  2615. this.getUnknownFields());
  2616. while (true) {
  2617. int tag = input.readTag();
  2618. switch (tag) {
  2619. case 0:
  2620. this.setUnknownFields(unknownFields.build());
  2621. onChanged();
  2622. return this;
  2623. default: {
  2624. if (!parseUnknownField(input, unknownFields,
  2625. extensionRegistry, tag)) {
  2626. this.setUnknownFields(unknownFields.build());
  2627. onChanged();
  2628. return this;
  2629. }
  2630. break;
  2631. }
  2632. case 8: {
  2633. bitField0_ |= 0x00000001;
  2634. total_ = input.readInt32();
  2635. break;
  2636. }
  2637. case 16: {
  2638. bitField0_ |= 0x00000002;
  2639. whole_ = input.readInt32();
  2640. break;
  2641. }
  2642. case 24: {
  2643. bitField0_ |= 0x00000004;
  2644. ofsDelta_ = input.readInt32();
  2645. break;
  2646. }
  2647. case 32: {
  2648. bitField0_ |= 0x00000008;
  2649. refDelta_ = input.readInt32();
  2650. break;
  2651. }
  2652. }
  2653. }
  2654. }
  2655. private int bitField0_;
  2656. // optional int32 total = 1;
  2657. private int total_ ;
  2658. public boolean hasTotal() {
  2659. return ((bitField0_ & 0x00000001) == 0x00000001);
  2660. }
  2661. public int getTotal() {
  2662. return total_;
  2663. }
  2664. public Builder setTotal(int value) {
  2665. bitField0_ |= 0x00000001;
  2666. total_ = value;
  2667. onChanged();
  2668. return this;
  2669. }
  2670. public Builder clearTotal() {
  2671. bitField0_ = (bitField0_ & ~0x00000001);
  2672. total_ = 0;
  2673. onChanged();
  2674. return this;
  2675. }
  2676. // optional int32 whole = 2;
  2677. private int whole_ ;
  2678. public boolean hasWhole() {
  2679. return ((bitField0_ & 0x00000002) == 0x00000002);
  2680. }
  2681. public int getWhole() {
  2682. return whole_;
  2683. }
  2684. public Builder setWhole(int value) {
  2685. bitField0_ |= 0x00000002;
  2686. whole_ = value;
  2687. onChanged();
  2688. return this;
  2689. }
  2690. public Builder clearWhole() {
  2691. bitField0_ = (bitField0_ & ~0x00000002);
  2692. whole_ = 0;
  2693. onChanged();
  2694. return this;
  2695. }
  2696. // optional int32 ofs_delta = 3;
  2697. private int ofsDelta_ ;
  2698. public boolean hasOfsDelta() {
  2699. return ((bitField0_ & 0x00000004) == 0x00000004);
  2700. }
  2701. public int getOfsDelta() {
  2702. return ofsDelta_;
  2703. }
  2704. public Builder setOfsDelta(int value) {
  2705. bitField0_ |= 0x00000004;
  2706. ofsDelta_ = value;
  2707. onChanged();
  2708. return this;
  2709. }
  2710. public Builder clearOfsDelta() {
  2711. bitField0_ = (bitField0_ & ~0x00000004);
  2712. ofsDelta_ = 0;
  2713. onChanged();
  2714. return this;
  2715. }
  2716. // optional int32 ref_delta = 4;
  2717. private int refDelta_ ;
  2718. public boolean hasRefDelta() {
  2719. return ((bitField0_ & 0x00000008) == 0x00000008);
  2720. }
  2721. public int getRefDelta() {
  2722. return refDelta_;
  2723. }
  2724. public Builder setRefDelta(int value) {
  2725. bitField0_ |= 0x00000008;
  2726. refDelta_ = value;
  2727. onChanged();
  2728. return this;
  2729. }
  2730. public Builder clearRefDelta() {
  2731. bitField0_ = (bitField0_ & ~0x00000008);
  2732. refDelta_ = 0;
  2733. onChanged();
  2734. return this;
  2735. }
  2736. // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.ChunkInfo.ObjectCounts)
  2737. }
  2738. static {
  2739. defaultInstance = new ObjectCounts(true);
  2740. defaultInstance.initFields();
  2741. }
  2742. // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.ChunkInfo.ObjectCounts)
  2743. }
  2744. private int bitField0_;
  2745. // optional .org.eclipse.jgit.storage.dht.ChunkInfo.Source source = 1;
  2746. public static final int SOURCE_FIELD_NUMBER = 1;
  2747. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.Source source_;
  2748. public boolean hasSource() {
  2749. return ((bitField0_ & 0x00000001) == 0x00000001);
  2750. }
  2751. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.Source getSource() {
  2752. return source_;
  2753. }
  2754. // optional .org.eclipse.jgit.storage.dht.ChunkInfo.ObjectType object_type = 2;
  2755. public static final int OBJECT_TYPE_FIELD_NUMBER = 2;
  2756. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectType objectType_;
  2757. public boolean hasObjectType() {
  2758. return ((bitField0_ & 0x00000002) == 0x00000002);
  2759. }
  2760. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectType getObjectType() {
  2761. return objectType_;
  2762. }
  2763. // optional bool is_fragment = 3;
  2764. public static final int IS_FRAGMENT_FIELD_NUMBER = 3;
  2765. private boolean isFragment_;
  2766. public boolean hasIsFragment() {
  2767. return ((bitField0_ & 0x00000004) == 0x00000004);
  2768. }
  2769. public boolean getIsFragment() {
  2770. return isFragment_;
  2771. }
  2772. // optional string cached_pack_key = 4;
  2773. public static final int CACHED_PACK_KEY_FIELD_NUMBER = 4;
  2774. private Object cachedPackKey_;
  2775. public boolean hasCachedPackKey() {
  2776. return ((bitField0_ & 0x00000008) == 0x00000008);
  2777. }
  2778. public String getCachedPackKey() {
  2779. Object ref = cachedPackKey_;
  2780. if (ref instanceof String) {
  2781. return (String) ref;
  2782. } else {
  2783. com.google.protobuf.ByteString bs =
  2784. (com.google.protobuf.ByteString) ref;
  2785. String s = bs.toStringUtf8();
  2786. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  2787. cachedPackKey_ = s;
  2788. }
  2789. return s;
  2790. }
  2791. }
  2792. private com.google.protobuf.ByteString getCachedPackKeyBytes() {
  2793. Object ref = cachedPackKey_;
  2794. if (ref instanceof String) {
  2795. com.google.protobuf.ByteString b =
  2796. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  2797. cachedPackKey_ = b;
  2798. return b;
  2799. } else {
  2800. return (com.google.protobuf.ByteString) ref;
  2801. }
  2802. }
  2803. // optional .org.eclipse.jgit.storage.dht.ChunkInfo.ObjectCounts object_counts = 5;
  2804. public static final int OBJECT_COUNTS_FIELD_NUMBER = 5;
  2805. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts objectCounts_;
  2806. public boolean hasObjectCounts() {
  2807. return ((bitField0_ & 0x00000010) == 0x00000010);
  2808. }
  2809. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts getObjectCounts() {
  2810. return objectCounts_;
  2811. }
  2812. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCountsOrBuilder getObjectCountsOrBuilder() {
  2813. return objectCounts_;
  2814. }
  2815. // optional int32 chunk_size = 6;
  2816. public static final int CHUNK_SIZE_FIELD_NUMBER = 6;
  2817. private int chunkSize_;
  2818. public boolean hasChunkSize() {
  2819. return ((bitField0_ & 0x00000020) == 0x00000020);
  2820. }
  2821. public int getChunkSize() {
  2822. return chunkSize_;
  2823. }
  2824. // optional int32 index_size = 7;
  2825. public static final int INDEX_SIZE_FIELD_NUMBER = 7;
  2826. private int indexSize_;
  2827. public boolean hasIndexSize() {
  2828. return ((bitField0_ & 0x00000040) == 0x00000040);
  2829. }
  2830. public int getIndexSize() {
  2831. return indexSize_;
  2832. }
  2833. // optional int32 meta_size = 8;
  2834. public static final int META_SIZE_FIELD_NUMBER = 8;
  2835. private int metaSize_;
  2836. public boolean hasMetaSize() {
  2837. return ((bitField0_ & 0x00000080) == 0x00000080);
  2838. }
  2839. public int getMetaSize() {
  2840. return metaSize_;
  2841. }
  2842. private void initFields() {
  2843. source_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.Source.RECEIVE;
  2844. objectType_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectType.MIXED;
  2845. isFragment_ = false;
  2846. cachedPackKey_ = "";
  2847. objectCounts_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.getDefaultInstance();
  2848. chunkSize_ = 0;
  2849. indexSize_ = 0;
  2850. metaSize_ = 0;
  2851. }
  2852. private byte memoizedIsInitialized = -1;
  2853. public final boolean isInitialized() {
  2854. byte isInitialized = memoizedIsInitialized;
  2855. if (isInitialized != -1) return isInitialized == 1;
  2856. memoizedIsInitialized = 1;
  2857. return true;
  2858. }
  2859. public void writeTo(com.google.protobuf.CodedOutputStream output)
  2860. throws java.io.IOException {
  2861. getSerializedSize();
  2862. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  2863. output.writeEnum(1, source_.getNumber());
  2864. }
  2865. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  2866. output.writeEnum(2, objectType_.getNumber());
  2867. }
  2868. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  2869. output.writeBool(3, isFragment_);
  2870. }
  2871. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  2872. output.writeBytes(4, getCachedPackKeyBytes());
  2873. }
  2874. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  2875. output.writeMessage(5, objectCounts_);
  2876. }
  2877. if (((bitField0_ & 0x00000020) == 0x00000020)) {
  2878. output.writeInt32(6, chunkSize_);
  2879. }
  2880. if (((bitField0_ & 0x00000040) == 0x00000040)) {
  2881. output.writeInt32(7, indexSize_);
  2882. }
  2883. if (((bitField0_ & 0x00000080) == 0x00000080)) {
  2884. output.writeInt32(8, metaSize_);
  2885. }
  2886. getUnknownFields().writeTo(output);
  2887. }
  2888. private int memoizedSerializedSize = -1;
  2889. public int getSerializedSize() {
  2890. int size = memoizedSerializedSize;
  2891. if (size != -1) return size;
  2892. size = 0;
  2893. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  2894. size += com.google.protobuf.CodedOutputStream
  2895. .computeEnumSize(1, source_.getNumber());
  2896. }
  2897. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  2898. size += com.google.protobuf.CodedOutputStream
  2899. .computeEnumSize(2, objectType_.getNumber());
  2900. }
  2901. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  2902. size += com.google.protobuf.CodedOutputStream
  2903. .computeBoolSize(3, isFragment_);
  2904. }
  2905. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  2906. size += com.google.protobuf.CodedOutputStream
  2907. .computeBytesSize(4, getCachedPackKeyBytes());
  2908. }
  2909. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  2910. size += com.google.protobuf.CodedOutputStream
  2911. .computeMessageSize(5, objectCounts_);
  2912. }
  2913. if (((bitField0_ & 0x00000020) == 0x00000020)) {
  2914. size += com.google.protobuf.CodedOutputStream
  2915. .computeInt32Size(6, chunkSize_);
  2916. }
  2917. if (((bitField0_ & 0x00000040) == 0x00000040)) {
  2918. size += com.google.protobuf.CodedOutputStream
  2919. .computeInt32Size(7, indexSize_);
  2920. }
  2921. if (((bitField0_ & 0x00000080) == 0x00000080)) {
  2922. size += com.google.protobuf.CodedOutputStream
  2923. .computeInt32Size(8, metaSize_);
  2924. }
  2925. size += getUnknownFields().getSerializedSize();
  2926. memoizedSerializedSize = size;
  2927. return size;
  2928. }
  2929. @java.lang.Override
  2930. protected Object writeReplace() throws java.io.ObjectStreamException {
  2931. return super.writeReplace();
  2932. }
  2933. @java.lang.Override
  2934. public boolean equals(final Object obj) {
  2935. if (obj == this) {
  2936. return true;
  2937. }
  2938. if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo)) {
  2939. return super.equals(obj);
  2940. }
  2941. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo) obj;
  2942. boolean result = true;
  2943. result = result && (hasSource() == other.hasSource());
  2944. if (hasSource()) {
  2945. result = result &&
  2946. (getSource() == other.getSource());
  2947. }
  2948. result = result && (hasObjectType() == other.hasObjectType());
  2949. if (hasObjectType()) {
  2950. result = result &&
  2951. (getObjectType() == other.getObjectType());
  2952. }
  2953. result = result && (hasIsFragment() == other.hasIsFragment());
  2954. if (hasIsFragment()) {
  2955. result = result && (getIsFragment()
  2956. == other.getIsFragment());
  2957. }
  2958. result = result && (hasCachedPackKey() == other.hasCachedPackKey());
  2959. if (hasCachedPackKey()) {
  2960. result = result && getCachedPackKey()
  2961. .equals(other.getCachedPackKey());
  2962. }
  2963. result = result && (hasObjectCounts() == other.hasObjectCounts());
  2964. if (hasObjectCounts()) {
  2965. result = result && getObjectCounts()
  2966. .equals(other.getObjectCounts());
  2967. }
  2968. result = result && (hasChunkSize() == other.hasChunkSize());
  2969. if (hasChunkSize()) {
  2970. result = result && (getChunkSize()
  2971. == other.getChunkSize());
  2972. }
  2973. result = result && (hasIndexSize() == other.hasIndexSize());
  2974. if (hasIndexSize()) {
  2975. result = result && (getIndexSize()
  2976. == other.getIndexSize());
  2977. }
  2978. result = result && (hasMetaSize() == other.hasMetaSize());
  2979. if (hasMetaSize()) {
  2980. result = result && (getMetaSize()
  2981. == other.getMetaSize());
  2982. }
  2983. result = result &&
  2984. getUnknownFields().equals(other.getUnknownFields());
  2985. return result;
  2986. }
  2987. @java.lang.Override
  2988. public int hashCode() {
  2989. int hash = 41;
  2990. hash = (19 * hash) + getDescriptorForType().hashCode();
  2991. if (hasSource()) {
  2992. hash = (37 * hash) + SOURCE_FIELD_NUMBER;
  2993. hash = (53 * hash) + hashEnum(getSource());
  2994. }
  2995. if (hasObjectType()) {
  2996. hash = (37 * hash) + OBJECT_TYPE_FIELD_NUMBER;
  2997. hash = (53 * hash) + hashEnum(getObjectType());
  2998. }
  2999. if (hasIsFragment()) {
  3000. hash = (37 * hash) + IS_FRAGMENT_FIELD_NUMBER;
  3001. hash = (53 * hash) + hashBoolean(getIsFragment());
  3002. }
  3003. if (hasCachedPackKey()) {
  3004. hash = (37 * hash) + CACHED_PACK_KEY_FIELD_NUMBER;
  3005. hash = (53 * hash) + getCachedPackKey().hashCode();
  3006. }
  3007. if (hasObjectCounts()) {
  3008. hash = (37 * hash) + OBJECT_COUNTS_FIELD_NUMBER;
  3009. hash = (53 * hash) + getObjectCounts().hashCode();
  3010. }
  3011. if (hasChunkSize()) {
  3012. hash = (37 * hash) + CHUNK_SIZE_FIELD_NUMBER;
  3013. hash = (53 * hash) + getChunkSize();
  3014. }
  3015. if (hasIndexSize()) {
  3016. hash = (37 * hash) + INDEX_SIZE_FIELD_NUMBER;
  3017. hash = (53 * hash) + getIndexSize();
  3018. }
  3019. if (hasMetaSize()) {
  3020. hash = (37 * hash) + META_SIZE_FIELD_NUMBER;
  3021. hash = (53 * hash) + getMetaSize();
  3022. }
  3023. hash = (29 * hash) + getUnknownFields().hashCode();
  3024. return hash;
  3025. }
  3026. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo parseFrom(
  3027. com.google.protobuf.ByteString data)
  3028. throws com.google.protobuf.InvalidProtocolBufferException {
  3029. return newBuilder().mergeFrom(data).buildParsed();
  3030. }
  3031. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo parseFrom(
  3032. com.google.protobuf.ByteString data,
  3033. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3034. throws com.google.protobuf.InvalidProtocolBufferException {
  3035. return newBuilder().mergeFrom(data, extensionRegistry)
  3036. .buildParsed();
  3037. }
  3038. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo parseFrom(byte[] data)
  3039. throws com.google.protobuf.InvalidProtocolBufferException {
  3040. return newBuilder().mergeFrom(data).buildParsed();
  3041. }
  3042. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo parseFrom(
  3043. byte[] data,
  3044. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3045. throws com.google.protobuf.InvalidProtocolBufferException {
  3046. return newBuilder().mergeFrom(data, extensionRegistry)
  3047. .buildParsed();
  3048. }
  3049. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo parseFrom(java.io.InputStream input)
  3050. throws java.io.IOException {
  3051. return newBuilder().mergeFrom(input).buildParsed();
  3052. }
  3053. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo parseFrom(
  3054. java.io.InputStream input,
  3055. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3056. throws java.io.IOException {
  3057. return newBuilder().mergeFrom(input, extensionRegistry)
  3058. .buildParsed();
  3059. }
  3060. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo parseDelimitedFrom(java.io.InputStream input)
  3061. throws java.io.IOException {
  3062. Builder builder = newBuilder();
  3063. if (builder.mergeDelimitedFrom(input)) {
  3064. return builder.buildParsed();
  3065. } else {
  3066. return null;
  3067. }
  3068. }
  3069. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo parseDelimitedFrom(
  3070. java.io.InputStream input,
  3071. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3072. throws java.io.IOException {
  3073. Builder builder = newBuilder();
  3074. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  3075. return builder.buildParsed();
  3076. } else {
  3077. return null;
  3078. }
  3079. }
  3080. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo parseFrom(
  3081. com.google.protobuf.CodedInputStream input)
  3082. throws java.io.IOException {
  3083. return newBuilder().mergeFrom(input).buildParsed();
  3084. }
  3085. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo parseFrom(
  3086. com.google.protobuf.CodedInputStream input,
  3087. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3088. throws java.io.IOException {
  3089. return newBuilder().mergeFrom(input, extensionRegistry)
  3090. .buildParsed();
  3091. }
  3092. public static Builder newBuilder() { return Builder.create(); }
  3093. public Builder newBuilderForType() { return newBuilder(); }
  3094. public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo prototype) {
  3095. return newBuilder().mergeFrom(prototype);
  3096. }
  3097. public Builder toBuilder() { return newBuilder(this); }
  3098. @java.lang.Override
  3099. protected Builder newBuilderForType(
  3100. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  3101. Builder builder = new Builder(parent);
  3102. return builder;
  3103. }
  3104. public static final class Builder extends
  3105. com.google.protobuf.GeneratedMessage.Builder<Builder>
  3106. implements org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfoOrBuilder {
  3107. public static final com.google.protobuf.Descriptors.Descriptor
  3108. getDescriptor() {
  3109. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_descriptor;
  3110. }
  3111. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  3112. internalGetFieldAccessorTable() {
  3113. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_fieldAccessorTable;
  3114. }
  3115. // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.newBuilder()
  3116. private Builder() {
  3117. maybeForceBuilderInitialization();
  3118. }
  3119. private Builder(BuilderParent parent) {
  3120. super(parent);
  3121. maybeForceBuilderInitialization();
  3122. }
  3123. private void maybeForceBuilderInitialization() {
  3124. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  3125. getObjectCountsFieldBuilder();
  3126. }
  3127. }
  3128. private static Builder create() {
  3129. return new Builder();
  3130. }
  3131. public Builder clear() {
  3132. super.clear();
  3133. source_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.Source.RECEIVE;
  3134. bitField0_ = (bitField0_ & ~0x00000001);
  3135. objectType_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectType.MIXED;
  3136. bitField0_ = (bitField0_ & ~0x00000002);
  3137. isFragment_ = false;
  3138. bitField0_ = (bitField0_ & ~0x00000004);
  3139. cachedPackKey_ = "";
  3140. bitField0_ = (bitField0_ & ~0x00000008);
  3141. if (objectCountsBuilder_ == null) {
  3142. objectCounts_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.getDefaultInstance();
  3143. } else {
  3144. objectCountsBuilder_.clear();
  3145. }
  3146. bitField0_ = (bitField0_ & ~0x00000010);
  3147. chunkSize_ = 0;
  3148. bitField0_ = (bitField0_ & ~0x00000020);
  3149. indexSize_ = 0;
  3150. bitField0_ = (bitField0_ & ~0x00000040);
  3151. metaSize_ = 0;
  3152. bitField0_ = (bitField0_ & ~0x00000080);
  3153. return this;
  3154. }
  3155. public Builder clone() {
  3156. return create().mergeFrom(buildPartial());
  3157. }
  3158. public com.google.protobuf.Descriptors.Descriptor
  3159. getDescriptorForType() {
  3160. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.getDescriptor();
  3161. }
  3162. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo getDefaultInstanceForType() {
  3163. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.getDefaultInstance();
  3164. }
  3165. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo build() {
  3166. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo result = buildPartial();
  3167. if (!result.isInitialized()) {
  3168. throw newUninitializedMessageException(result);
  3169. }
  3170. return result;
  3171. }
  3172. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo buildParsed()
  3173. throws com.google.protobuf.InvalidProtocolBufferException {
  3174. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo result = buildPartial();
  3175. if (!result.isInitialized()) {
  3176. throw newUninitializedMessageException(
  3177. result).asInvalidProtocolBufferException();
  3178. }
  3179. return result;
  3180. }
  3181. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo buildPartial() {
  3182. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo(this);
  3183. int from_bitField0_ = bitField0_;
  3184. int to_bitField0_ = 0;
  3185. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  3186. to_bitField0_ |= 0x00000001;
  3187. }
  3188. result.source_ = source_;
  3189. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  3190. to_bitField0_ |= 0x00000002;
  3191. }
  3192. result.objectType_ = objectType_;
  3193. if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  3194. to_bitField0_ |= 0x00000004;
  3195. }
  3196. result.isFragment_ = isFragment_;
  3197. if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
  3198. to_bitField0_ |= 0x00000008;
  3199. }
  3200. result.cachedPackKey_ = cachedPackKey_;
  3201. if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
  3202. to_bitField0_ |= 0x00000010;
  3203. }
  3204. if (objectCountsBuilder_ == null) {
  3205. result.objectCounts_ = objectCounts_;
  3206. } else {
  3207. result.objectCounts_ = objectCountsBuilder_.build();
  3208. }
  3209. if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
  3210. to_bitField0_ |= 0x00000020;
  3211. }
  3212. result.chunkSize_ = chunkSize_;
  3213. if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
  3214. to_bitField0_ |= 0x00000040;
  3215. }
  3216. result.indexSize_ = indexSize_;
  3217. if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
  3218. to_bitField0_ |= 0x00000080;
  3219. }
  3220. result.metaSize_ = metaSize_;
  3221. result.bitField0_ = to_bitField0_;
  3222. onBuilt();
  3223. return result;
  3224. }
  3225. public Builder mergeFrom(com.google.protobuf.Message other) {
  3226. if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo) {
  3227. return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo)other);
  3228. } else {
  3229. super.mergeFrom(other);
  3230. return this;
  3231. }
  3232. }
  3233. public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo other) {
  3234. if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.getDefaultInstance()) return this;
  3235. if (other.hasSource()) {
  3236. setSource(other.getSource());
  3237. }
  3238. if (other.hasObjectType()) {
  3239. setObjectType(other.getObjectType());
  3240. }
  3241. if (other.hasIsFragment()) {
  3242. setIsFragment(other.getIsFragment());
  3243. }
  3244. if (other.hasCachedPackKey()) {
  3245. setCachedPackKey(other.getCachedPackKey());
  3246. }
  3247. if (other.hasObjectCounts()) {
  3248. mergeObjectCounts(other.getObjectCounts());
  3249. }
  3250. if (other.hasChunkSize()) {
  3251. setChunkSize(other.getChunkSize());
  3252. }
  3253. if (other.hasIndexSize()) {
  3254. setIndexSize(other.getIndexSize());
  3255. }
  3256. if (other.hasMetaSize()) {
  3257. setMetaSize(other.getMetaSize());
  3258. }
  3259. this.mergeUnknownFields(other.getUnknownFields());
  3260. return this;
  3261. }
  3262. public final boolean isInitialized() {
  3263. return true;
  3264. }
  3265. public Builder mergeFrom(
  3266. com.google.protobuf.CodedInputStream input,
  3267. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3268. throws java.io.IOException {
  3269. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  3270. com.google.protobuf.UnknownFieldSet.newBuilder(
  3271. this.getUnknownFields());
  3272. while (true) {
  3273. int tag = input.readTag();
  3274. switch (tag) {
  3275. case 0:
  3276. this.setUnknownFields(unknownFields.build());
  3277. onChanged();
  3278. return this;
  3279. default: {
  3280. if (!parseUnknownField(input, unknownFields,
  3281. extensionRegistry, tag)) {
  3282. this.setUnknownFields(unknownFields.build());
  3283. onChanged();
  3284. return this;
  3285. }
  3286. break;
  3287. }
  3288. case 8: {
  3289. int rawValue = input.readEnum();
  3290. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.Source value = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.Source.valueOf(rawValue);
  3291. if (value == null) {
  3292. unknownFields.mergeVarintField(1, rawValue);
  3293. } else {
  3294. bitField0_ |= 0x00000001;
  3295. source_ = value;
  3296. }
  3297. break;
  3298. }
  3299. case 16: {
  3300. int rawValue = input.readEnum();
  3301. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectType value = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectType.valueOf(rawValue);
  3302. if (value == null) {
  3303. unknownFields.mergeVarintField(2, rawValue);
  3304. } else {
  3305. bitField0_ |= 0x00000002;
  3306. objectType_ = value;
  3307. }
  3308. break;
  3309. }
  3310. case 24: {
  3311. bitField0_ |= 0x00000004;
  3312. isFragment_ = input.readBool();
  3313. break;
  3314. }
  3315. case 34: {
  3316. bitField0_ |= 0x00000008;
  3317. cachedPackKey_ = input.readBytes();
  3318. break;
  3319. }
  3320. case 42: {
  3321. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.newBuilder();
  3322. if (hasObjectCounts()) {
  3323. subBuilder.mergeFrom(getObjectCounts());
  3324. }
  3325. input.readMessage(subBuilder, extensionRegistry);
  3326. setObjectCounts(subBuilder.buildPartial());
  3327. break;
  3328. }
  3329. case 48: {
  3330. bitField0_ |= 0x00000020;
  3331. chunkSize_ = input.readInt32();
  3332. break;
  3333. }
  3334. case 56: {
  3335. bitField0_ |= 0x00000040;
  3336. indexSize_ = input.readInt32();
  3337. break;
  3338. }
  3339. case 64: {
  3340. bitField0_ |= 0x00000080;
  3341. metaSize_ = input.readInt32();
  3342. break;
  3343. }
  3344. }
  3345. }
  3346. }
  3347. private int bitField0_;
  3348. // optional .org.eclipse.jgit.storage.dht.ChunkInfo.Source source = 1;
  3349. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.Source source_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.Source.RECEIVE;
  3350. public boolean hasSource() {
  3351. return ((bitField0_ & 0x00000001) == 0x00000001);
  3352. }
  3353. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.Source getSource() {
  3354. return source_;
  3355. }
  3356. public Builder setSource(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.Source value) {
  3357. if (value == null) {
  3358. throw new NullPointerException();
  3359. }
  3360. bitField0_ |= 0x00000001;
  3361. source_ = value;
  3362. onChanged();
  3363. return this;
  3364. }
  3365. public Builder clearSource() {
  3366. bitField0_ = (bitField0_ & ~0x00000001);
  3367. source_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.Source.RECEIVE;
  3368. onChanged();
  3369. return this;
  3370. }
  3371. // optional .org.eclipse.jgit.storage.dht.ChunkInfo.ObjectType object_type = 2;
  3372. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectType objectType_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectType.MIXED;
  3373. public boolean hasObjectType() {
  3374. return ((bitField0_ & 0x00000002) == 0x00000002);
  3375. }
  3376. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectType getObjectType() {
  3377. return objectType_;
  3378. }
  3379. public Builder setObjectType(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectType value) {
  3380. if (value == null) {
  3381. throw new NullPointerException();
  3382. }
  3383. bitField0_ |= 0x00000002;
  3384. objectType_ = value;
  3385. onChanged();
  3386. return this;
  3387. }
  3388. public Builder clearObjectType() {
  3389. bitField0_ = (bitField0_ & ~0x00000002);
  3390. objectType_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectType.MIXED;
  3391. onChanged();
  3392. return this;
  3393. }
  3394. // optional bool is_fragment = 3;
  3395. private boolean isFragment_ ;
  3396. public boolean hasIsFragment() {
  3397. return ((bitField0_ & 0x00000004) == 0x00000004);
  3398. }
  3399. public boolean getIsFragment() {
  3400. return isFragment_;
  3401. }
  3402. public Builder setIsFragment(boolean value) {
  3403. bitField0_ |= 0x00000004;
  3404. isFragment_ = value;
  3405. onChanged();
  3406. return this;
  3407. }
  3408. public Builder clearIsFragment() {
  3409. bitField0_ = (bitField0_ & ~0x00000004);
  3410. isFragment_ = false;
  3411. onChanged();
  3412. return this;
  3413. }
  3414. // optional string cached_pack_key = 4;
  3415. private Object cachedPackKey_ = "";
  3416. public boolean hasCachedPackKey() {
  3417. return ((bitField0_ & 0x00000008) == 0x00000008);
  3418. }
  3419. public String getCachedPackKey() {
  3420. Object ref = cachedPackKey_;
  3421. if (!(ref instanceof String)) {
  3422. String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
  3423. cachedPackKey_ = s;
  3424. return s;
  3425. } else {
  3426. return (String) ref;
  3427. }
  3428. }
  3429. public Builder setCachedPackKey(String value) {
  3430. if (value == null) {
  3431. throw new NullPointerException();
  3432. }
  3433. bitField0_ |= 0x00000008;
  3434. cachedPackKey_ = value;
  3435. onChanged();
  3436. return this;
  3437. }
  3438. public Builder clearCachedPackKey() {
  3439. bitField0_ = (bitField0_ & ~0x00000008);
  3440. cachedPackKey_ = getDefaultInstance().getCachedPackKey();
  3441. onChanged();
  3442. return this;
  3443. }
  3444. void setCachedPackKey(com.google.protobuf.ByteString value) {
  3445. bitField0_ |= 0x00000008;
  3446. cachedPackKey_ = value;
  3447. onChanged();
  3448. }
  3449. // optional .org.eclipse.jgit.storage.dht.ChunkInfo.ObjectCounts object_counts = 5;
  3450. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts objectCounts_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.getDefaultInstance();
  3451. private com.google.protobuf.SingleFieldBuilder<
  3452. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCountsOrBuilder> objectCountsBuilder_;
  3453. public boolean hasObjectCounts() {
  3454. return ((bitField0_ & 0x00000010) == 0x00000010);
  3455. }
  3456. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts getObjectCounts() {
  3457. if (objectCountsBuilder_ == null) {
  3458. return objectCounts_;
  3459. } else {
  3460. return objectCountsBuilder_.getMessage();
  3461. }
  3462. }
  3463. public Builder setObjectCounts(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts value) {
  3464. if (objectCountsBuilder_ == null) {
  3465. if (value == null) {
  3466. throw new NullPointerException();
  3467. }
  3468. objectCounts_ = value;
  3469. onChanged();
  3470. } else {
  3471. objectCountsBuilder_.setMessage(value);
  3472. }
  3473. bitField0_ |= 0x00000010;
  3474. return this;
  3475. }
  3476. public Builder setObjectCounts(
  3477. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.Builder builderForValue) {
  3478. if (objectCountsBuilder_ == null) {
  3479. objectCounts_ = builderForValue.build();
  3480. onChanged();
  3481. } else {
  3482. objectCountsBuilder_.setMessage(builderForValue.build());
  3483. }
  3484. bitField0_ |= 0x00000010;
  3485. return this;
  3486. }
  3487. public Builder mergeObjectCounts(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts value) {
  3488. if (objectCountsBuilder_ == null) {
  3489. if (((bitField0_ & 0x00000010) == 0x00000010) &&
  3490. objectCounts_ != org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.getDefaultInstance()) {
  3491. objectCounts_ =
  3492. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.newBuilder(objectCounts_).mergeFrom(value).buildPartial();
  3493. } else {
  3494. objectCounts_ = value;
  3495. }
  3496. onChanged();
  3497. } else {
  3498. objectCountsBuilder_.mergeFrom(value);
  3499. }
  3500. bitField0_ |= 0x00000010;
  3501. return this;
  3502. }
  3503. public Builder clearObjectCounts() {
  3504. if (objectCountsBuilder_ == null) {
  3505. objectCounts_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.getDefaultInstance();
  3506. onChanged();
  3507. } else {
  3508. objectCountsBuilder_.clear();
  3509. }
  3510. bitField0_ = (bitField0_ & ~0x00000010);
  3511. return this;
  3512. }
  3513. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.Builder getObjectCountsBuilder() {
  3514. bitField0_ |= 0x00000010;
  3515. onChanged();
  3516. return getObjectCountsFieldBuilder().getBuilder();
  3517. }
  3518. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCountsOrBuilder getObjectCountsOrBuilder() {
  3519. if (objectCountsBuilder_ != null) {
  3520. return objectCountsBuilder_.getMessageOrBuilder();
  3521. } else {
  3522. return objectCounts_;
  3523. }
  3524. }
  3525. private com.google.protobuf.SingleFieldBuilder<
  3526. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCountsOrBuilder>
  3527. getObjectCountsFieldBuilder() {
  3528. if (objectCountsBuilder_ == null) {
  3529. objectCountsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
  3530. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCountsOrBuilder>(
  3531. objectCounts_,
  3532. getParentForChildren(),
  3533. isClean());
  3534. objectCounts_ = null;
  3535. }
  3536. return objectCountsBuilder_;
  3537. }
  3538. // optional int32 chunk_size = 6;
  3539. private int chunkSize_ ;
  3540. public boolean hasChunkSize() {
  3541. return ((bitField0_ & 0x00000020) == 0x00000020);
  3542. }
  3543. public int getChunkSize() {
  3544. return chunkSize_;
  3545. }
  3546. public Builder setChunkSize(int value) {
  3547. bitField0_ |= 0x00000020;
  3548. chunkSize_ = value;
  3549. onChanged();
  3550. return this;
  3551. }
  3552. public Builder clearChunkSize() {
  3553. bitField0_ = (bitField0_ & ~0x00000020);
  3554. chunkSize_ = 0;
  3555. onChanged();
  3556. return this;
  3557. }
  3558. // optional int32 index_size = 7;
  3559. private int indexSize_ ;
  3560. public boolean hasIndexSize() {
  3561. return ((bitField0_ & 0x00000040) == 0x00000040);
  3562. }
  3563. public int getIndexSize() {
  3564. return indexSize_;
  3565. }
  3566. public Builder setIndexSize(int value) {
  3567. bitField0_ |= 0x00000040;
  3568. indexSize_ = value;
  3569. onChanged();
  3570. return this;
  3571. }
  3572. public Builder clearIndexSize() {
  3573. bitField0_ = (bitField0_ & ~0x00000040);
  3574. indexSize_ = 0;
  3575. onChanged();
  3576. return this;
  3577. }
  3578. // optional int32 meta_size = 8;
  3579. private int metaSize_ ;
  3580. public boolean hasMetaSize() {
  3581. return ((bitField0_ & 0x00000080) == 0x00000080);
  3582. }
  3583. public int getMetaSize() {
  3584. return metaSize_;
  3585. }
  3586. public Builder setMetaSize(int value) {
  3587. bitField0_ |= 0x00000080;
  3588. metaSize_ = value;
  3589. onChanged();
  3590. return this;
  3591. }
  3592. public Builder clearMetaSize() {
  3593. bitField0_ = (bitField0_ & ~0x00000080);
  3594. metaSize_ = 0;
  3595. onChanged();
  3596. return this;
  3597. }
  3598. // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.ChunkInfo)
  3599. }
  3600. static {
  3601. defaultInstance = new ChunkInfo(true);
  3602. defaultInstance.initFields();
  3603. }
  3604. // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.ChunkInfo)
  3605. }
  3606. public interface ChunkMetaOrBuilder
  3607. extends com.google.protobuf.MessageOrBuilder {
  3608. // repeated .org.eclipse.jgit.storage.dht.ChunkMeta.BaseChunk base_chunk = 1;
  3609. java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk>
  3610. getBaseChunkList();
  3611. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk getBaseChunk(int index);
  3612. int getBaseChunkCount();
  3613. java.util.List<? extends org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunkOrBuilder>
  3614. getBaseChunkOrBuilderList();
  3615. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunkOrBuilder getBaseChunkOrBuilder(
  3616. int index);
  3617. // repeated string fragment = 2;
  3618. java.util.List<String> getFragmentList();
  3619. int getFragmentCount();
  3620. String getFragment(int index);
  3621. // optional .org.eclipse.jgit.storage.dht.ChunkMeta.PrefetchHint commit_prefetch = 51;
  3622. boolean hasCommitPrefetch();
  3623. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint getCommitPrefetch();
  3624. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHintOrBuilder getCommitPrefetchOrBuilder();
  3625. // optional .org.eclipse.jgit.storage.dht.ChunkMeta.PrefetchHint tree_prefetch = 52;
  3626. boolean hasTreePrefetch();
  3627. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint getTreePrefetch();
  3628. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHintOrBuilder getTreePrefetchOrBuilder();
  3629. }
  3630. public static final class ChunkMeta extends
  3631. com.google.protobuf.GeneratedMessage
  3632. implements ChunkMetaOrBuilder {
  3633. // Use ChunkMeta.newBuilder() to construct.
  3634. private ChunkMeta(Builder builder) {
  3635. super(builder);
  3636. }
  3637. private ChunkMeta(boolean noInit) {}
  3638. private static final ChunkMeta defaultInstance;
  3639. public static ChunkMeta getDefaultInstance() {
  3640. return defaultInstance;
  3641. }
  3642. public ChunkMeta getDefaultInstanceForType() {
  3643. return defaultInstance;
  3644. }
  3645. public static final com.google.protobuf.Descriptors.Descriptor
  3646. getDescriptor() {
  3647. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_descriptor;
  3648. }
  3649. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  3650. internalGetFieldAccessorTable() {
  3651. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_fieldAccessorTable;
  3652. }
  3653. public interface BaseChunkOrBuilder
  3654. extends com.google.protobuf.MessageOrBuilder {
  3655. // required int64 relative_start = 1;
  3656. boolean hasRelativeStart();
  3657. long getRelativeStart();
  3658. // required string chunk_key = 2;
  3659. boolean hasChunkKey();
  3660. String getChunkKey();
  3661. }
  3662. public static final class BaseChunk extends
  3663. com.google.protobuf.GeneratedMessage
  3664. implements BaseChunkOrBuilder {
  3665. // Use BaseChunk.newBuilder() to construct.
  3666. private BaseChunk(Builder builder) {
  3667. super(builder);
  3668. }
  3669. private BaseChunk(boolean noInit) {}
  3670. private static final BaseChunk defaultInstance;
  3671. public static BaseChunk getDefaultInstance() {
  3672. return defaultInstance;
  3673. }
  3674. public BaseChunk getDefaultInstanceForType() {
  3675. return defaultInstance;
  3676. }
  3677. public static final com.google.protobuf.Descriptors.Descriptor
  3678. getDescriptor() {
  3679. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_BaseChunk_descriptor;
  3680. }
  3681. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  3682. internalGetFieldAccessorTable() {
  3683. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_BaseChunk_fieldAccessorTable;
  3684. }
  3685. private int bitField0_;
  3686. // required int64 relative_start = 1;
  3687. public static final int RELATIVE_START_FIELD_NUMBER = 1;
  3688. private long relativeStart_;
  3689. public boolean hasRelativeStart() {
  3690. return ((bitField0_ & 0x00000001) == 0x00000001);
  3691. }
  3692. public long getRelativeStart() {
  3693. return relativeStart_;
  3694. }
  3695. // required string chunk_key = 2;
  3696. public static final int CHUNK_KEY_FIELD_NUMBER = 2;
  3697. private Object chunkKey_;
  3698. public boolean hasChunkKey() {
  3699. return ((bitField0_ & 0x00000002) == 0x00000002);
  3700. }
  3701. public String getChunkKey() {
  3702. Object ref = chunkKey_;
  3703. if (ref instanceof String) {
  3704. return (String) ref;
  3705. } else {
  3706. com.google.protobuf.ByteString bs =
  3707. (com.google.protobuf.ByteString) ref;
  3708. String s = bs.toStringUtf8();
  3709. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  3710. chunkKey_ = s;
  3711. }
  3712. return s;
  3713. }
  3714. }
  3715. private com.google.protobuf.ByteString getChunkKeyBytes() {
  3716. Object ref = chunkKey_;
  3717. if (ref instanceof String) {
  3718. com.google.protobuf.ByteString b =
  3719. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  3720. chunkKey_ = b;
  3721. return b;
  3722. } else {
  3723. return (com.google.protobuf.ByteString) ref;
  3724. }
  3725. }
  3726. private void initFields() {
  3727. relativeStart_ = 0L;
  3728. chunkKey_ = "";
  3729. }
  3730. private byte memoizedIsInitialized = -1;
  3731. public final boolean isInitialized() {
  3732. byte isInitialized = memoizedIsInitialized;
  3733. if (isInitialized != -1) return isInitialized == 1;
  3734. if (!hasRelativeStart()) {
  3735. memoizedIsInitialized = 0;
  3736. return false;
  3737. }
  3738. if (!hasChunkKey()) {
  3739. memoizedIsInitialized = 0;
  3740. return false;
  3741. }
  3742. memoizedIsInitialized = 1;
  3743. return true;
  3744. }
  3745. public void writeTo(com.google.protobuf.CodedOutputStream output)
  3746. throws java.io.IOException {
  3747. getSerializedSize();
  3748. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  3749. output.writeInt64(1, relativeStart_);
  3750. }
  3751. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  3752. output.writeBytes(2, getChunkKeyBytes());
  3753. }
  3754. getUnknownFields().writeTo(output);
  3755. }
  3756. private int memoizedSerializedSize = -1;
  3757. public int getSerializedSize() {
  3758. int size = memoizedSerializedSize;
  3759. if (size != -1) return size;
  3760. size = 0;
  3761. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  3762. size += com.google.protobuf.CodedOutputStream
  3763. .computeInt64Size(1, relativeStart_);
  3764. }
  3765. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  3766. size += com.google.protobuf.CodedOutputStream
  3767. .computeBytesSize(2, getChunkKeyBytes());
  3768. }
  3769. size += getUnknownFields().getSerializedSize();
  3770. memoizedSerializedSize = size;
  3771. return size;
  3772. }
  3773. @java.lang.Override
  3774. protected Object writeReplace() throws java.io.ObjectStreamException {
  3775. return super.writeReplace();
  3776. }
  3777. @java.lang.Override
  3778. public boolean equals(final Object obj) {
  3779. if (obj == this) {
  3780. return true;
  3781. }
  3782. if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk)) {
  3783. return super.equals(obj);
  3784. }
  3785. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk) obj;
  3786. boolean result = true;
  3787. result = result && (hasRelativeStart() == other.hasRelativeStart());
  3788. if (hasRelativeStart()) {
  3789. result = result && (getRelativeStart()
  3790. == other.getRelativeStart());
  3791. }
  3792. result = result && (hasChunkKey() == other.hasChunkKey());
  3793. if (hasChunkKey()) {
  3794. result = result && getChunkKey()
  3795. .equals(other.getChunkKey());
  3796. }
  3797. result = result &&
  3798. getUnknownFields().equals(other.getUnknownFields());
  3799. return result;
  3800. }
  3801. @java.lang.Override
  3802. public int hashCode() {
  3803. int hash = 41;
  3804. hash = (19 * hash) + getDescriptorForType().hashCode();
  3805. if (hasRelativeStart()) {
  3806. hash = (37 * hash) + RELATIVE_START_FIELD_NUMBER;
  3807. hash = (53 * hash) + hashLong(getRelativeStart());
  3808. }
  3809. if (hasChunkKey()) {
  3810. hash = (37 * hash) + CHUNK_KEY_FIELD_NUMBER;
  3811. hash = (53 * hash) + getChunkKey().hashCode();
  3812. }
  3813. hash = (29 * hash) + getUnknownFields().hashCode();
  3814. return hash;
  3815. }
  3816. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk parseFrom(
  3817. com.google.protobuf.ByteString data)
  3818. throws com.google.protobuf.InvalidProtocolBufferException {
  3819. return newBuilder().mergeFrom(data).buildParsed();
  3820. }
  3821. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk parseFrom(
  3822. com.google.protobuf.ByteString data,
  3823. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3824. throws com.google.protobuf.InvalidProtocolBufferException {
  3825. return newBuilder().mergeFrom(data, extensionRegistry)
  3826. .buildParsed();
  3827. }
  3828. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk parseFrom(byte[] data)
  3829. throws com.google.protobuf.InvalidProtocolBufferException {
  3830. return newBuilder().mergeFrom(data).buildParsed();
  3831. }
  3832. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk parseFrom(
  3833. byte[] data,
  3834. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3835. throws com.google.protobuf.InvalidProtocolBufferException {
  3836. return newBuilder().mergeFrom(data, extensionRegistry)
  3837. .buildParsed();
  3838. }
  3839. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk parseFrom(java.io.InputStream input)
  3840. throws java.io.IOException {
  3841. return newBuilder().mergeFrom(input).buildParsed();
  3842. }
  3843. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk parseFrom(
  3844. java.io.InputStream input,
  3845. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3846. throws java.io.IOException {
  3847. return newBuilder().mergeFrom(input, extensionRegistry)
  3848. .buildParsed();
  3849. }
  3850. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk parseDelimitedFrom(java.io.InputStream input)
  3851. throws java.io.IOException {
  3852. Builder builder = newBuilder();
  3853. if (builder.mergeDelimitedFrom(input)) {
  3854. return builder.buildParsed();
  3855. } else {
  3856. return null;
  3857. }
  3858. }
  3859. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk parseDelimitedFrom(
  3860. java.io.InputStream input,
  3861. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3862. throws java.io.IOException {
  3863. Builder builder = newBuilder();
  3864. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  3865. return builder.buildParsed();
  3866. } else {
  3867. return null;
  3868. }
  3869. }
  3870. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk parseFrom(
  3871. com.google.protobuf.CodedInputStream input)
  3872. throws java.io.IOException {
  3873. return newBuilder().mergeFrom(input).buildParsed();
  3874. }
  3875. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk parseFrom(
  3876. com.google.protobuf.CodedInputStream input,
  3877. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3878. throws java.io.IOException {
  3879. return newBuilder().mergeFrom(input, extensionRegistry)
  3880. .buildParsed();
  3881. }
  3882. public static Builder newBuilder() { return Builder.create(); }
  3883. public Builder newBuilderForType() { return newBuilder(); }
  3884. public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk prototype) {
  3885. return newBuilder().mergeFrom(prototype);
  3886. }
  3887. public Builder toBuilder() { return newBuilder(this); }
  3888. @java.lang.Override
  3889. protected Builder newBuilderForType(
  3890. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  3891. Builder builder = new Builder(parent);
  3892. return builder;
  3893. }
  3894. public static final class Builder extends
  3895. com.google.protobuf.GeneratedMessage.Builder<Builder>
  3896. implements org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunkOrBuilder {
  3897. public static final com.google.protobuf.Descriptors.Descriptor
  3898. getDescriptor() {
  3899. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_BaseChunk_descriptor;
  3900. }
  3901. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  3902. internalGetFieldAccessorTable() {
  3903. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_BaseChunk_fieldAccessorTable;
  3904. }
  3905. // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.newBuilder()
  3906. private Builder() {
  3907. maybeForceBuilderInitialization();
  3908. }
  3909. private Builder(BuilderParent parent) {
  3910. super(parent);
  3911. maybeForceBuilderInitialization();
  3912. }
  3913. private void maybeForceBuilderInitialization() {
  3914. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  3915. }
  3916. }
  3917. private static Builder create() {
  3918. return new Builder();
  3919. }
  3920. public Builder clear() {
  3921. super.clear();
  3922. relativeStart_ = 0L;
  3923. bitField0_ = (bitField0_ & ~0x00000001);
  3924. chunkKey_ = "";
  3925. bitField0_ = (bitField0_ & ~0x00000002);
  3926. return this;
  3927. }
  3928. public Builder clone() {
  3929. return create().mergeFrom(buildPartial());
  3930. }
  3931. public com.google.protobuf.Descriptors.Descriptor
  3932. getDescriptorForType() {
  3933. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.getDescriptor();
  3934. }
  3935. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk getDefaultInstanceForType() {
  3936. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.getDefaultInstance();
  3937. }
  3938. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk build() {
  3939. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk result = buildPartial();
  3940. if (!result.isInitialized()) {
  3941. throw newUninitializedMessageException(result);
  3942. }
  3943. return result;
  3944. }
  3945. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk buildParsed()
  3946. throws com.google.protobuf.InvalidProtocolBufferException {
  3947. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk result = buildPartial();
  3948. if (!result.isInitialized()) {
  3949. throw newUninitializedMessageException(
  3950. result).asInvalidProtocolBufferException();
  3951. }
  3952. return result;
  3953. }
  3954. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk buildPartial() {
  3955. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk(this);
  3956. int from_bitField0_ = bitField0_;
  3957. int to_bitField0_ = 0;
  3958. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  3959. to_bitField0_ |= 0x00000001;
  3960. }
  3961. result.relativeStart_ = relativeStart_;
  3962. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  3963. to_bitField0_ |= 0x00000002;
  3964. }
  3965. result.chunkKey_ = chunkKey_;
  3966. result.bitField0_ = to_bitField0_;
  3967. onBuilt();
  3968. return result;
  3969. }
  3970. public Builder mergeFrom(com.google.protobuf.Message other) {
  3971. if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk) {
  3972. return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk)other);
  3973. } else {
  3974. super.mergeFrom(other);
  3975. return this;
  3976. }
  3977. }
  3978. public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk other) {
  3979. if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.getDefaultInstance()) return this;
  3980. if (other.hasRelativeStart()) {
  3981. setRelativeStart(other.getRelativeStart());
  3982. }
  3983. if (other.hasChunkKey()) {
  3984. setChunkKey(other.getChunkKey());
  3985. }
  3986. this.mergeUnknownFields(other.getUnknownFields());
  3987. return this;
  3988. }
  3989. public final boolean isInitialized() {
  3990. if (!hasRelativeStart()) {
  3991. return false;
  3992. }
  3993. if (!hasChunkKey()) {
  3994. return false;
  3995. }
  3996. return true;
  3997. }
  3998. public Builder mergeFrom(
  3999. com.google.protobuf.CodedInputStream input,
  4000. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4001. throws java.io.IOException {
  4002. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  4003. com.google.protobuf.UnknownFieldSet.newBuilder(
  4004. this.getUnknownFields());
  4005. while (true) {
  4006. int tag = input.readTag();
  4007. switch (tag) {
  4008. case 0:
  4009. this.setUnknownFields(unknownFields.build());
  4010. onChanged();
  4011. return this;
  4012. default: {
  4013. if (!parseUnknownField(input, unknownFields,
  4014. extensionRegistry, tag)) {
  4015. this.setUnknownFields(unknownFields.build());
  4016. onChanged();
  4017. return this;
  4018. }
  4019. break;
  4020. }
  4021. case 8: {
  4022. bitField0_ |= 0x00000001;
  4023. relativeStart_ = input.readInt64();
  4024. break;
  4025. }
  4026. case 18: {
  4027. bitField0_ |= 0x00000002;
  4028. chunkKey_ = input.readBytes();
  4029. break;
  4030. }
  4031. }
  4032. }
  4033. }
  4034. private int bitField0_;
  4035. // required int64 relative_start = 1;
  4036. private long relativeStart_ ;
  4037. public boolean hasRelativeStart() {
  4038. return ((bitField0_ & 0x00000001) == 0x00000001);
  4039. }
  4040. public long getRelativeStart() {
  4041. return relativeStart_;
  4042. }
  4043. public Builder setRelativeStart(long value) {
  4044. bitField0_ |= 0x00000001;
  4045. relativeStart_ = value;
  4046. onChanged();
  4047. return this;
  4048. }
  4049. public Builder clearRelativeStart() {
  4050. bitField0_ = (bitField0_ & ~0x00000001);
  4051. relativeStart_ = 0L;
  4052. onChanged();
  4053. return this;
  4054. }
  4055. // required string chunk_key = 2;
  4056. private Object chunkKey_ = "";
  4057. public boolean hasChunkKey() {
  4058. return ((bitField0_ & 0x00000002) == 0x00000002);
  4059. }
  4060. public String getChunkKey() {
  4061. Object ref = chunkKey_;
  4062. if (!(ref instanceof String)) {
  4063. String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
  4064. chunkKey_ = s;
  4065. return s;
  4066. } else {
  4067. return (String) ref;
  4068. }
  4069. }
  4070. public Builder setChunkKey(String value) {
  4071. if (value == null) {
  4072. throw new NullPointerException();
  4073. }
  4074. bitField0_ |= 0x00000002;
  4075. chunkKey_ = value;
  4076. onChanged();
  4077. return this;
  4078. }
  4079. public Builder clearChunkKey() {
  4080. bitField0_ = (bitField0_ & ~0x00000002);
  4081. chunkKey_ = getDefaultInstance().getChunkKey();
  4082. onChanged();
  4083. return this;
  4084. }
  4085. void setChunkKey(com.google.protobuf.ByteString value) {
  4086. bitField0_ |= 0x00000002;
  4087. chunkKey_ = value;
  4088. onChanged();
  4089. }
  4090. // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.ChunkMeta.BaseChunk)
  4091. }
  4092. static {
  4093. defaultInstance = new BaseChunk(true);
  4094. defaultInstance.initFields();
  4095. }
  4096. // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.ChunkMeta.BaseChunk)
  4097. }
  4098. public interface PrefetchHintOrBuilder
  4099. extends com.google.protobuf.MessageOrBuilder {
  4100. // repeated string edge = 1;
  4101. java.util.List<String> getEdgeList();
  4102. int getEdgeCount();
  4103. String getEdge(int index);
  4104. // repeated string sequential = 2;
  4105. java.util.List<String> getSequentialList();
  4106. int getSequentialCount();
  4107. String getSequential(int index);
  4108. }
  4109. public static final class PrefetchHint extends
  4110. com.google.protobuf.GeneratedMessage
  4111. implements PrefetchHintOrBuilder {
  4112. // Use PrefetchHint.newBuilder() to construct.
  4113. private PrefetchHint(Builder builder) {
  4114. super(builder);
  4115. }
  4116. private PrefetchHint(boolean noInit) {}
  4117. private static final PrefetchHint defaultInstance;
  4118. public static PrefetchHint getDefaultInstance() {
  4119. return defaultInstance;
  4120. }
  4121. public PrefetchHint getDefaultInstanceForType() {
  4122. return defaultInstance;
  4123. }
  4124. public static final com.google.protobuf.Descriptors.Descriptor
  4125. getDescriptor() {
  4126. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_PrefetchHint_descriptor;
  4127. }
  4128. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4129. internalGetFieldAccessorTable() {
  4130. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_PrefetchHint_fieldAccessorTable;
  4131. }
  4132. // repeated string edge = 1;
  4133. public static final int EDGE_FIELD_NUMBER = 1;
  4134. private com.google.protobuf.LazyStringList edge_;
  4135. public java.util.List<String>
  4136. getEdgeList() {
  4137. return edge_;
  4138. }
  4139. public int getEdgeCount() {
  4140. return edge_.size();
  4141. }
  4142. public String getEdge(int index) {
  4143. return edge_.get(index);
  4144. }
  4145. // repeated string sequential = 2;
  4146. public static final int SEQUENTIAL_FIELD_NUMBER = 2;
  4147. private com.google.protobuf.LazyStringList sequential_;
  4148. public java.util.List<String>
  4149. getSequentialList() {
  4150. return sequential_;
  4151. }
  4152. public int getSequentialCount() {
  4153. return sequential_.size();
  4154. }
  4155. public String getSequential(int index) {
  4156. return sequential_.get(index);
  4157. }
  4158. private void initFields() {
  4159. edge_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  4160. sequential_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  4161. }
  4162. private byte memoizedIsInitialized = -1;
  4163. public final boolean isInitialized() {
  4164. byte isInitialized = memoizedIsInitialized;
  4165. if (isInitialized != -1) return isInitialized == 1;
  4166. memoizedIsInitialized = 1;
  4167. return true;
  4168. }
  4169. public void writeTo(com.google.protobuf.CodedOutputStream output)
  4170. throws java.io.IOException {
  4171. getSerializedSize();
  4172. for (int i = 0; i < edge_.size(); i++) {
  4173. output.writeBytes(1, edge_.getByteString(i));
  4174. }
  4175. for (int i = 0; i < sequential_.size(); i++) {
  4176. output.writeBytes(2, sequential_.getByteString(i));
  4177. }
  4178. getUnknownFields().writeTo(output);
  4179. }
  4180. private int memoizedSerializedSize = -1;
  4181. public int getSerializedSize() {
  4182. int size = memoizedSerializedSize;
  4183. if (size != -1) return size;
  4184. size = 0;
  4185. {
  4186. int dataSize = 0;
  4187. for (int i = 0; i < edge_.size(); i++) {
  4188. dataSize += com.google.protobuf.CodedOutputStream
  4189. .computeBytesSizeNoTag(edge_.getByteString(i));
  4190. }
  4191. size += dataSize;
  4192. size += 1 * getEdgeList().size();
  4193. }
  4194. {
  4195. int dataSize = 0;
  4196. for (int i = 0; i < sequential_.size(); i++) {
  4197. dataSize += com.google.protobuf.CodedOutputStream
  4198. .computeBytesSizeNoTag(sequential_.getByteString(i));
  4199. }
  4200. size += dataSize;
  4201. size += 1 * getSequentialList().size();
  4202. }
  4203. size += getUnknownFields().getSerializedSize();
  4204. memoizedSerializedSize = size;
  4205. return size;
  4206. }
  4207. @java.lang.Override
  4208. protected Object writeReplace() throws java.io.ObjectStreamException {
  4209. return super.writeReplace();
  4210. }
  4211. @java.lang.Override
  4212. public boolean equals(final Object obj) {
  4213. if (obj == this) {
  4214. return true;
  4215. }
  4216. if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint)) {
  4217. return super.equals(obj);
  4218. }
  4219. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint) obj;
  4220. boolean result = true;
  4221. result = result && getEdgeList()
  4222. .equals(other.getEdgeList());
  4223. result = result && getSequentialList()
  4224. .equals(other.getSequentialList());
  4225. result = result &&
  4226. getUnknownFields().equals(other.getUnknownFields());
  4227. return result;
  4228. }
  4229. @java.lang.Override
  4230. public int hashCode() {
  4231. int hash = 41;
  4232. hash = (19 * hash) + getDescriptorForType().hashCode();
  4233. if (getEdgeCount() > 0) {
  4234. hash = (37 * hash) + EDGE_FIELD_NUMBER;
  4235. hash = (53 * hash) + getEdgeList().hashCode();
  4236. }
  4237. if (getSequentialCount() > 0) {
  4238. hash = (37 * hash) + SEQUENTIAL_FIELD_NUMBER;
  4239. hash = (53 * hash) + getSequentialList().hashCode();
  4240. }
  4241. hash = (29 * hash) + getUnknownFields().hashCode();
  4242. return hash;
  4243. }
  4244. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint parseFrom(
  4245. com.google.protobuf.ByteString data)
  4246. throws com.google.protobuf.InvalidProtocolBufferException {
  4247. return newBuilder().mergeFrom(data).buildParsed();
  4248. }
  4249. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint parseFrom(
  4250. com.google.protobuf.ByteString data,
  4251. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4252. throws com.google.protobuf.InvalidProtocolBufferException {
  4253. return newBuilder().mergeFrom(data, extensionRegistry)
  4254. .buildParsed();
  4255. }
  4256. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint parseFrom(byte[] data)
  4257. throws com.google.protobuf.InvalidProtocolBufferException {
  4258. return newBuilder().mergeFrom(data).buildParsed();
  4259. }
  4260. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint parseFrom(
  4261. byte[] data,
  4262. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4263. throws com.google.protobuf.InvalidProtocolBufferException {
  4264. return newBuilder().mergeFrom(data, extensionRegistry)
  4265. .buildParsed();
  4266. }
  4267. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint parseFrom(java.io.InputStream input)
  4268. throws java.io.IOException {
  4269. return newBuilder().mergeFrom(input).buildParsed();
  4270. }
  4271. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint parseFrom(
  4272. java.io.InputStream input,
  4273. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4274. throws java.io.IOException {
  4275. return newBuilder().mergeFrom(input, extensionRegistry)
  4276. .buildParsed();
  4277. }
  4278. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint parseDelimitedFrom(java.io.InputStream input)
  4279. throws java.io.IOException {
  4280. Builder builder = newBuilder();
  4281. if (builder.mergeDelimitedFrom(input)) {
  4282. return builder.buildParsed();
  4283. } else {
  4284. return null;
  4285. }
  4286. }
  4287. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint parseDelimitedFrom(
  4288. java.io.InputStream input,
  4289. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4290. throws java.io.IOException {
  4291. Builder builder = newBuilder();
  4292. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  4293. return builder.buildParsed();
  4294. } else {
  4295. return null;
  4296. }
  4297. }
  4298. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint parseFrom(
  4299. com.google.protobuf.CodedInputStream input)
  4300. throws java.io.IOException {
  4301. return newBuilder().mergeFrom(input).buildParsed();
  4302. }
  4303. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint parseFrom(
  4304. com.google.protobuf.CodedInputStream input,
  4305. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4306. throws java.io.IOException {
  4307. return newBuilder().mergeFrom(input, extensionRegistry)
  4308. .buildParsed();
  4309. }
  4310. public static Builder newBuilder() { return Builder.create(); }
  4311. public Builder newBuilderForType() { return newBuilder(); }
  4312. public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint prototype) {
  4313. return newBuilder().mergeFrom(prototype);
  4314. }
  4315. public Builder toBuilder() { return newBuilder(this); }
  4316. @java.lang.Override
  4317. protected Builder newBuilderForType(
  4318. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  4319. Builder builder = new Builder(parent);
  4320. return builder;
  4321. }
  4322. public static final class Builder extends
  4323. com.google.protobuf.GeneratedMessage.Builder<Builder>
  4324. implements org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHintOrBuilder {
  4325. public static final com.google.protobuf.Descriptors.Descriptor
  4326. getDescriptor() {
  4327. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_PrefetchHint_descriptor;
  4328. }
  4329. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4330. internalGetFieldAccessorTable() {
  4331. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_PrefetchHint_fieldAccessorTable;
  4332. }
  4333. // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.newBuilder()
  4334. private Builder() {
  4335. maybeForceBuilderInitialization();
  4336. }
  4337. private Builder(BuilderParent parent) {
  4338. super(parent);
  4339. maybeForceBuilderInitialization();
  4340. }
  4341. private void maybeForceBuilderInitialization() {
  4342. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  4343. }
  4344. }
  4345. private static Builder create() {
  4346. return new Builder();
  4347. }
  4348. public Builder clear() {
  4349. super.clear();
  4350. edge_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  4351. bitField0_ = (bitField0_ & ~0x00000001);
  4352. sequential_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  4353. bitField0_ = (bitField0_ & ~0x00000002);
  4354. return this;
  4355. }
  4356. public Builder clone() {
  4357. return create().mergeFrom(buildPartial());
  4358. }
  4359. public com.google.protobuf.Descriptors.Descriptor
  4360. getDescriptorForType() {
  4361. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDescriptor();
  4362. }
  4363. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint getDefaultInstanceForType() {
  4364. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDefaultInstance();
  4365. }
  4366. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint build() {
  4367. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint result = buildPartial();
  4368. if (!result.isInitialized()) {
  4369. throw newUninitializedMessageException(result);
  4370. }
  4371. return result;
  4372. }
  4373. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint buildParsed()
  4374. throws com.google.protobuf.InvalidProtocolBufferException {
  4375. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint result = buildPartial();
  4376. if (!result.isInitialized()) {
  4377. throw newUninitializedMessageException(
  4378. result).asInvalidProtocolBufferException();
  4379. }
  4380. return result;
  4381. }
  4382. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint buildPartial() {
  4383. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint(this);
  4384. int from_bitField0_ = bitField0_;
  4385. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  4386. edge_ = new com.google.protobuf.UnmodifiableLazyStringList(
  4387. edge_);
  4388. bitField0_ = (bitField0_ & ~0x00000001);
  4389. }
  4390. result.edge_ = edge_;
  4391. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  4392. sequential_ = new com.google.protobuf.UnmodifiableLazyStringList(
  4393. sequential_);
  4394. bitField0_ = (bitField0_ & ~0x00000002);
  4395. }
  4396. result.sequential_ = sequential_;
  4397. onBuilt();
  4398. return result;
  4399. }
  4400. public Builder mergeFrom(com.google.protobuf.Message other) {
  4401. if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint) {
  4402. return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint)other);
  4403. } else {
  4404. super.mergeFrom(other);
  4405. return this;
  4406. }
  4407. }
  4408. public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint other) {
  4409. if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDefaultInstance()) return this;
  4410. if (!other.edge_.isEmpty()) {
  4411. if (edge_.isEmpty()) {
  4412. edge_ = other.edge_;
  4413. bitField0_ = (bitField0_ & ~0x00000001);
  4414. } else {
  4415. ensureEdgeIsMutable();
  4416. edge_.addAll(other.edge_);
  4417. }
  4418. onChanged();
  4419. }
  4420. if (!other.sequential_.isEmpty()) {
  4421. if (sequential_.isEmpty()) {
  4422. sequential_ = other.sequential_;
  4423. bitField0_ = (bitField0_ & ~0x00000002);
  4424. } else {
  4425. ensureSequentialIsMutable();
  4426. sequential_.addAll(other.sequential_);
  4427. }
  4428. onChanged();
  4429. }
  4430. this.mergeUnknownFields(other.getUnknownFields());
  4431. return this;
  4432. }
  4433. public final boolean isInitialized() {
  4434. return true;
  4435. }
  4436. public Builder mergeFrom(
  4437. com.google.protobuf.CodedInputStream input,
  4438. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4439. throws java.io.IOException {
  4440. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  4441. com.google.protobuf.UnknownFieldSet.newBuilder(
  4442. this.getUnknownFields());
  4443. while (true) {
  4444. int tag = input.readTag();
  4445. switch (tag) {
  4446. case 0:
  4447. this.setUnknownFields(unknownFields.build());
  4448. onChanged();
  4449. return this;
  4450. default: {
  4451. if (!parseUnknownField(input, unknownFields,
  4452. extensionRegistry, tag)) {
  4453. this.setUnknownFields(unknownFields.build());
  4454. onChanged();
  4455. return this;
  4456. }
  4457. break;
  4458. }
  4459. case 10: {
  4460. ensureEdgeIsMutable();
  4461. edge_.add(input.readBytes());
  4462. break;
  4463. }
  4464. case 18: {
  4465. ensureSequentialIsMutable();
  4466. sequential_.add(input.readBytes());
  4467. break;
  4468. }
  4469. }
  4470. }
  4471. }
  4472. private int bitField0_;
  4473. // repeated string edge = 1;
  4474. private com.google.protobuf.LazyStringList edge_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  4475. private void ensureEdgeIsMutable() {
  4476. if (!((bitField0_ & 0x00000001) == 0x00000001)) {
  4477. edge_ = new com.google.protobuf.LazyStringArrayList(edge_);
  4478. bitField0_ |= 0x00000001;
  4479. }
  4480. }
  4481. public java.util.List<String>
  4482. getEdgeList() {
  4483. return java.util.Collections.unmodifiableList(edge_);
  4484. }
  4485. public int getEdgeCount() {
  4486. return edge_.size();
  4487. }
  4488. public String getEdge(int index) {
  4489. return edge_.get(index);
  4490. }
  4491. public Builder setEdge(
  4492. int index, String value) {
  4493. if (value == null) {
  4494. throw new NullPointerException();
  4495. }
  4496. ensureEdgeIsMutable();
  4497. edge_.set(index, value);
  4498. onChanged();
  4499. return this;
  4500. }
  4501. public Builder addEdge(String value) {
  4502. if (value == null) {
  4503. throw new NullPointerException();
  4504. }
  4505. ensureEdgeIsMutable();
  4506. edge_.add(value);
  4507. onChanged();
  4508. return this;
  4509. }
  4510. public Builder addAllEdge(
  4511. java.lang.Iterable<String> values) {
  4512. ensureEdgeIsMutable();
  4513. super.addAll(values, edge_);
  4514. onChanged();
  4515. return this;
  4516. }
  4517. public Builder clearEdge() {
  4518. edge_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  4519. bitField0_ = (bitField0_ & ~0x00000001);
  4520. onChanged();
  4521. return this;
  4522. }
  4523. void addEdge(com.google.protobuf.ByteString value) {
  4524. ensureEdgeIsMutable();
  4525. edge_.add(value);
  4526. onChanged();
  4527. }
  4528. // repeated string sequential = 2;
  4529. private com.google.protobuf.LazyStringList sequential_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  4530. private void ensureSequentialIsMutable() {
  4531. if (!((bitField0_ & 0x00000002) == 0x00000002)) {
  4532. sequential_ = new com.google.protobuf.LazyStringArrayList(sequential_);
  4533. bitField0_ |= 0x00000002;
  4534. }
  4535. }
  4536. public java.util.List<String>
  4537. getSequentialList() {
  4538. return java.util.Collections.unmodifiableList(sequential_);
  4539. }
  4540. public int getSequentialCount() {
  4541. return sequential_.size();
  4542. }
  4543. public String getSequential(int index) {
  4544. return sequential_.get(index);
  4545. }
  4546. public Builder setSequential(
  4547. int index, String value) {
  4548. if (value == null) {
  4549. throw new NullPointerException();
  4550. }
  4551. ensureSequentialIsMutable();
  4552. sequential_.set(index, value);
  4553. onChanged();
  4554. return this;
  4555. }
  4556. public Builder addSequential(String value) {
  4557. if (value == null) {
  4558. throw new NullPointerException();
  4559. }
  4560. ensureSequentialIsMutable();
  4561. sequential_.add(value);
  4562. onChanged();
  4563. return this;
  4564. }
  4565. public Builder addAllSequential(
  4566. java.lang.Iterable<String> values) {
  4567. ensureSequentialIsMutable();
  4568. super.addAll(values, sequential_);
  4569. onChanged();
  4570. return this;
  4571. }
  4572. public Builder clearSequential() {
  4573. sequential_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  4574. bitField0_ = (bitField0_ & ~0x00000002);
  4575. onChanged();
  4576. return this;
  4577. }
  4578. void addSequential(com.google.protobuf.ByteString value) {
  4579. ensureSequentialIsMutable();
  4580. sequential_.add(value);
  4581. onChanged();
  4582. }
  4583. // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.ChunkMeta.PrefetchHint)
  4584. }
  4585. static {
  4586. defaultInstance = new PrefetchHint(true);
  4587. defaultInstance.initFields();
  4588. }
  4589. // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.ChunkMeta.PrefetchHint)
  4590. }
  4591. private int bitField0_;
  4592. // repeated .org.eclipse.jgit.storage.dht.ChunkMeta.BaseChunk base_chunk = 1;
  4593. public static final int BASE_CHUNK_FIELD_NUMBER = 1;
  4594. private java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk> baseChunk_;
  4595. public java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk> getBaseChunkList() {
  4596. return baseChunk_;
  4597. }
  4598. public java.util.List<? extends org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunkOrBuilder>
  4599. getBaseChunkOrBuilderList() {
  4600. return baseChunk_;
  4601. }
  4602. public int getBaseChunkCount() {
  4603. return baseChunk_.size();
  4604. }
  4605. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk getBaseChunk(int index) {
  4606. return baseChunk_.get(index);
  4607. }
  4608. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunkOrBuilder getBaseChunkOrBuilder(
  4609. int index) {
  4610. return baseChunk_.get(index);
  4611. }
  4612. // repeated string fragment = 2;
  4613. public static final int FRAGMENT_FIELD_NUMBER = 2;
  4614. private com.google.protobuf.LazyStringList fragment_;
  4615. public java.util.List<String>
  4616. getFragmentList() {
  4617. return fragment_;
  4618. }
  4619. public int getFragmentCount() {
  4620. return fragment_.size();
  4621. }
  4622. public String getFragment(int index) {
  4623. return fragment_.get(index);
  4624. }
  4625. // optional .org.eclipse.jgit.storage.dht.ChunkMeta.PrefetchHint commit_prefetch = 51;
  4626. public static final int COMMIT_PREFETCH_FIELD_NUMBER = 51;
  4627. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint commitPrefetch_;
  4628. public boolean hasCommitPrefetch() {
  4629. return ((bitField0_ & 0x00000001) == 0x00000001);
  4630. }
  4631. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint getCommitPrefetch() {
  4632. return commitPrefetch_;
  4633. }
  4634. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHintOrBuilder getCommitPrefetchOrBuilder() {
  4635. return commitPrefetch_;
  4636. }
  4637. // optional .org.eclipse.jgit.storage.dht.ChunkMeta.PrefetchHint tree_prefetch = 52;
  4638. public static final int TREE_PREFETCH_FIELD_NUMBER = 52;
  4639. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint treePrefetch_;
  4640. public boolean hasTreePrefetch() {
  4641. return ((bitField0_ & 0x00000002) == 0x00000002);
  4642. }
  4643. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint getTreePrefetch() {
  4644. return treePrefetch_;
  4645. }
  4646. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHintOrBuilder getTreePrefetchOrBuilder() {
  4647. return treePrefetch_;
  4648. }
  4649. private void initFields() {
  4650. baseChunk_ = java.util.Collections.emptyList();
  4651. fragment_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  4652. commitPrefetch_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDefaultInstance();
  4653. treePrefetch_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDefaultInstance();
  4654. }
  4655. private byte memoizedIsInitialized = -1;
  4656. public final boolean isInitialized() {
  4657. byte isInitialized = memoizedIsInitialized;
  4658. if (isInitialized != -1) return isInitialized == 1;
  4659. for (int i = 0; i < getBaseChunkCount(); i++) {
  4660. if (!getBaseChunk(i).isInitialized()) {
  4661. memoizedIsInitialized = 0;
  4662. return false;
  4663. }
  4664. }
  4665. memoizedIsInitialized = 1;
  4666. return true;
  4667. }
  4668. public void writeTo(com.google.protobuf.CodedOutputStream output)
  4669. throws java.io.IOException {
  4670. getSerializedSize();
  4671. for (int i = 0; i < baseChunk_.size(); i++) {
  4672. output.writeMessage(1, baseChunk_.get(i));
  4673. }
  4674. for (int i = 0; i < fragment_.size(); i++) {
  4675. output.writeBytes(2, fragment_.getByteString(i));
  4676. }
  4677. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  4678. output.writeMessage(51, commitPrefetch_);
  4679. }
  4680. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  4681. output.writeMessage(52, treePrefetch_);
  4682. }
  4683. getUnknownFields().writeTo(output);
  4684. }
  4685. private int memoizedSerializedSize = -1;
  4686. public int getSerializedSize() {
  4687. int size = memoizedSerializedSize;
  4688. if (size != -1) return size;
  4689. size = 0;
  4690. for (int i = 0; i < baseChunk_.size(); i++) {
  4691. size += com.google.protobuf.CodedOutputStream
  4692. .computeMessageSize(1, baseChunk_.get(i));
  4693. }
  4694. {
  4695. int dataSize = 0;
  4696. for (int i = 0; i < fragment_.size(); i++) {
  4697. dataSize += com.google.protobuf.CodedOutputStream
  4698. .computeBytesSizeNoTag(fragment_.getByteString(i));
  4699. }
  4700. size += dataSize;
  4701. size += 1 * getFragmentList().size();
  4702. }
  4703. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  4704. size += com.google.protobuf.CodedOutputStream
  4705. .computeMessageSize(51, commitPrefetch_);
  4706. }
  4707. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  4708. size += com.google.protobuf.CodedOutputStream
  4709. .computeMessageSize(52, treePrefetch_);
  4710. }
  4711. size += getUnknownFields().getSerializedSize();
  4712. memoizedSerializedSize = size;
  4713. return size;
  4714. }
  4715. @java.lang.Override
  4716. protected Object writeReplace() throws java.io.ObjectStreamException {
  4717. return super.writeReplace();
  4718. }
  4719. @java.lang.Override
  4720. public boolean equals(final Object obj) {
  4721. if (obj == this) {
  4722. return true;
  4723. }
  4724. if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta)) {
  4725. return super.equals(obj);
  4726. }
  4727. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta) obj;
  4728. boolean result = true;
  4729. result = result && getBaseChunkList()
  4730. .equals(other.getBaseChunkList());
  4731. result = result && getFragmentList()
  4732. .equals(other.getFragmentList());
  4733. result = result && (hasCommitPrefetch() == other.hasCommitPrefetch());
  4734. if (hasCommitPrefetch()) {
  4735. result = result && getCommitPrefetch()
  4736. .equals(other.getCommitPrefetch());
  4737. }
  4738. result = result && (hasTreePrefetch() == other.hasTreePrefetch());
  4739. if (hasTreePrefetch()) {
  4740. result = result && getTreePrefetch()
  4741. .equals(other.getTreePrefetch());
  4742. }
  4743. result = result &&
  4744. getUnknownFields().equals(other.getUnknownFields());
  4745. return result;
  4746. }
  4747. @java.lang.Override
  4748. public int hashCode() {
  4749. int hash = 41;
  4750. hash = (19 * hash) + getDescriptorForType().hashCode();
  4751. if (getBaseChunkCount() > 0) {
  4752. hash = (37 * hash) + BASE_CHUNK_FIELD_NUMBER;
  4753. hash = (53 * hash) + getBaseChunkList().hashCode();
  4754. }
  4755. if (getFragmentCount() > 0) {
  4756. hash = (37 * hash) + FRAGMENT_FIELD_NUMBER;
  4757. hash = (53 * hash) + getFragmentList().hashCode();
  4758. }
  4759. if (hasCommitPrefetch()) {
  4760. hash = (37 * hash) + COMMIT_PREFETCH_FIELD_NUMBER;
  4761. hash = (53 * hash) + getCommitPrefetch().hashCode();
  4762. }
  4763. if (hasTreePrefetch()) {
  4764. hash = (37 * hash) + TREE_PREFETCH_FIELD_NUMBER;
  4765. hash = (53 * hash) + getTreePrefetch().hashCode();
  4766. }
  4767. hash = (29 * hash) + getUnknownFields().hashCode();
  4768. return hash;
  4769. }
  4770. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta parseFrom(
  4771. com.google.protobuf.ByteString data)
  4772. throws com.google.protobuf.InvalidProtocolBufferException {
  4773. return newBuilder().mergeFrom(data).buildParsed();
  4774. }
  4775. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta parseFrom(
  4776. com.google.protobuf.ByteString data,
  4777. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4778. throws com.google.protobuf.InvalidProtocolBufferException {
  4779. return newBuilder().mergeFrom(data, extensionRegistry)
  4780. .buildParsed();
  4781. }
  4782. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta parseFrom(byte[] data)
  4783. throws com.google.protobuf.InvalidProtocolBufferException {
  4784. return newBuilder().mergeFrom(data).buildParsed();
  4785. }
  4786. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta parseFrom(
  4787. byte[] data,
  4788. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4789. throws com.google.protobuf.InvalidProtocolBufferException {
  4790. return newBuilder().mergeFrom(data, extensionRegistry)
  4791. .buildParsed();
  4792. }
  4793. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta parseFrom(java.io.InputStream input)
  4794. throws java.io.IOException {
  4795. return newBuilder().mergeFrom(input).buildParsed();
  4796. }
  4797. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta parseFrom(
  4798. java.io.InputStream input,
  4799. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4800. throws java.io.IOException {
  4801. return newBuilder().mergeFrom(input, extensionRegistry)
  4802. .buildParsed();
  4803. }
  4804. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta parseDelimitedFrom(java.io.InputStream input)
  4805. throws java.io.IOException {
  4806. Builder builder = newBuilder();
  4807. if (builder.mergeDelimitedFrom(input)) {
  4808. return builder.buildParsed();
  4809. } else {
  4810. return null;
  4811. }
  4812. }
  4813. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta parseDelimitedFrom(
  4814. java.io.InputStream input,
  4815. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4816. throws java.io.IOException {
  4817. Builder builder = newBuilder();
  4818. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  4819. return builder.buildParsed();
  4820. } else {
  4821. return null;
  4822. }
  4823. }
  4824. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta parseFrom(
  4825. com.google.protobuf.CodedInputStream input)
  4826. throws java.io.IOException {
  4827. return newBuilder().mergeFrom(input).buildParsed();
  4828. }
  4829. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta parseFrom(
  4830. com.google.protobuf.CodedInputStream input,
  4831. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4832. throws java.io.IOException {
  4833. return newBuilder().mergeFrom(input, extensionRegistry)
  4834. .buildParsed();
  4835. }
  4836. public static Builder newBuilder() { return Builder.create(); }
  4837. public Builder newBuilderForType() { return newBuilder(); }
  4838. public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta prototype) {
  4839. return newBuilder().mergeFrom(prototype);
  4840. }
  4841. public Builder toBuilder() { return newBuilder(this); }
  4842. @java.lang.Override
  4843. protected Builder newBuilderForType(
  4844. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  4845. Builder builder = new Builder(parent);
  4846. return builder;
  4847. }
  4848. public static final class Builder extends
  4849. com.google.protobuf.GeneratedMessage.Builder<Builder>
  4850. implements org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMetaOrBuilder {
  4851. public static final com.google.protobuf.Descriptors.Descriptor
  4852. getDescriptor() {
  4853. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_descriptor;
  4854. }
  4855. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4856. internalGetFieldAccessorTable() {
  4857. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_fieldAccessorTable;
  4858. }
  4859. // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.newBuilder()
  4860. private Builder() {
  4861. maybeForceBuilderInitialization();
  4862. }
  4863. private Builder(BuilderParent parent) {
  4864. super(parent);
  4865. maybeForceBuilderInitialization();
  4866. }
  4867. private void maybeForceBuilderInitialization() {
  4868. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  4869. getBaseChunkFieldBuilder();
  4870. getCommitPrefetchFieldBuilder();
  4871. getTreePrefetchFieldBuilder();
  4872. }
  4873. }
  4874. private static Builder create() {
  4875. return new Builder();
  4876. }
  4877. public Builder clear() {
  4878. super.clear();
  4879. if (baseChunkBuilder_ == null) {
  4880. baseChunk_ = java.util.Collections.emptyList();
  4881. bitField0_ = (bitField0_ & ~0x00000001);
  4882. } else {
  4883. baseChunkBuilder_.clear();
  4884. }
  4885. fragment_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  4886. bitField0_ = (bitField0_ & ~0x00000002);
  4887. if (commitPrefetchBuilder_ == null) {
  4888. commitPrefetch_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDefaultInstance();
  4889. } else {
  4890. commitPrefetchBuilder_.clear();
  4891. }
  4892. bitField0_ = (bitField0_ & ~0x00000004);
  4893. if (treePrefetchBuilder_ == null) {
  4894. treePrefetch_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDefaultInstance();
  4895. } else {
  4896. treePrefetchBuilder_.clear();
  4897. }
  4898. bitField0_ = (bitField0_ & ~0x00000008);
  4899. return this;
  4900. }
  4901. public Builder clone() {
  4902. return create().mergeFrom(buildPartial());
  4903. }
  4904. public com.google.protobuf.Descriptors.Descriptor
  4905. getDescriptorForType() {
  4906. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.getDescriptor();
  4907. }
  4908. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta getDefaultInstanceForType() {
  4909. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.getDefaultInstance();
  4910. }
  4911. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta build() {
  4912. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta result = buildPartial();
  4913. if (!result.isInitialized()) {
  4914. throw newUninitializedMessageException(result);
  4915. }
  4916. return result;
  4917. }
  4918. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta buildParsed()
  4919. throws com.google.protobuf.InvalidProtocolBufferException {
  4920. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta result = buildPartial();
  4921. if (!result.isInitialized()) {
  4922. throw newUninitializedMessageException(
  4923. result).asInvalidProtocolBufferException();
  4924. }
  4925. return result;
  4926. }
  4927. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta buildPartial() {
  4928. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta(this);
  4929. int from_bitField0_ = bitField0_;
  4930. int to_bitField0_ = 0;
  4931. if (baseChunkBuilder_ == null) {
  4932. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  4933. baseChunk_ = java.util.Collections.unmodifiableList(baseChunk_);
  4934. bitField0_ = (bitField0_ & ~0x00000001);
  4935. }
  4936. result.baseChunk_ = baseChunk_;
  4937. } else {
  4938. result.baseChunk_ = baseChunkBuilder_.build();
  4939. }
  4940. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  4941. fragment_ = new com.google.protobuf.UnmodifiableLazyStringList(
  4942. fragment_);
  4943. bitField0_ = (bitField0_ & ~0x00000002);
  4944. }
  4945. result.fragment_ = fragment_;
  4946. if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  4947. to_bitField0_ |= 0x00000001;
  4948. }
  4949. if (commitPrefetchBuilder_ == null) {
  4950. result.commitPrefetch_ = commitPrefetch_;
  4951. } else {
  4952. result.commitPrefetch_ = commitPrefetchBuilder_.build();
  4953. }
  4954. if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
  4955. to_bitField0_ |= 0x00000002;
  4956. }
  4957. if (treePrefetchBuilder_ == null) {
  4958. result.treePrefetch_ = treePrefetch_;
  4959. } else {
  4960. result.treePrefetch_ = treePrefetchBuilder_.build();
  4961. }
  4962. result.bitField0_ = to_bitField0_;
  4963. onBuilt();
  4964. return result;
  4965. }
  4966. public Builder mergeFrom(com.google.protobuf.Message other) {
  4967. if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta) {
  4968. return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta)other);
  4969. } else {
  4970. super.mergeFrom(other);
  4971. return this;
  4972. }
  4973. }
  4974. public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta other) {
  4975. if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.getDefaultInstance()) return this;
  4976. if (baseChunkBuilder_ == null) {
  4977. if (!other.baseChunk_.isEmpty()) {
  4978. if (baseChunk_.isEmpty()) {
  4979. baseChunk_ = other.baseChunk_;
  4980. bitField0_ = (bitField0_ & ~0x00000001);
  4981. } else {
  4982. ensureBaseChunkIsMutable();
  4983. baseChunk_.addAll(other.baseChunk_);
  4984. }
  4985. onChanged();
  4986. }
  4987. } else {
  4988. if (!other.baseChunk_.isEmpty()) {
  4989. if (baseChunkBuilder_.isEmpty()) {
  4990. baseChunkBuilder_.dispose();
  4991. baseChunkBuilder_ = null;
  4992. baseChunk_ = other.baseChunk_;
  4993. bitField0_ = (bitField0_ & ~0x00000001);
  4994. baseChunkBuilder_ =
  4995. com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
  4996. getBaseChunkFieldBuilder() : null;
  4997. } else {
  4998. baseChunkBuilder_.addAllMessages(other.baseChunk_);
  4999. }
  5000. }
  5001. }
  5002. if (!other.fragment_.isEmpty()) {
  5003. if (fragment_.isEmpty()) {
  5004. fragment_ = other.fragment_;
  5005. bitField0_ = (bitField0_ & ~0x00000002);
  5006. } else {
  5007. ensureFragmentIsMutable();
  5008. fragment_.addAll(other.fragment_);
  5009. }
  5010. onChanged();
  5011. }
  5012. if (other.hasCommitPrefetch()) {
  5013. mergeCommitPrefetch(other.getCommitPrefetch());
  5014. }
  5015. if (other.hasTreePrefetch()) {
  5016. mergeTreePrefetch(other.getTreePrefetch());
  5017. }
  5018. this.mergeUnknownFields(other.getUnknownFields());
  5019. return this;
  5020. }
  5021. public final boolean isInitialized() {
  5022. for (int i = 0; i < getBaseChunkCount(); i++) {
  5023. if (!getBaseChunk(i).isInitialized()) {
  5024. return false;
  5025. }
  5026. }
  5027. return true;
  5028. }
  5029. public Builder mergeFrom(
  5030. com.google.protobuf.CodedInputStream input,
  5031. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5032. throws java.io.IOException {
  5033. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  5034. com.google.protobuf.UnknownFieldSet.newBuilder(
  5035. this.getUnknownFields());
  5036. while (true) {
  5037. int tag = input.readTag();
  5038. switch (tag) {
  5039. case 0:
  5040. this.setUnknownFields(unknownFields.build());
  5041. onChanged();
  5042. return this;
  5043. default: {
  5044. if (!parseUnknownField(input, unknownFields,
  5045. extensionRegistry, tag)) {
  5046. this.setUnknownFields(unknownFields.build());
  5047. onChanged();
  5048. return this;
  5049. }
  5050. break;
  5051. }
  5052. case 10: {
  5053. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.newBuilder();
  5054. input.readMessage(subBuilder, extensionRegistry);
  5055. addBaseChunk(subBuilder.buildPartial());
  5056. break;
  5057. }
  5058. case 18: {
  5059. ensureFragmentIsMutable();
  5060. fragment_.add(input.readBytes());
  5061. break;
  5062. }
  5063. case 410: {
  5064. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.newBuilder();
  5065. if (hasCommitPrefetch()) {
  5066. subBuilder.mergeFrom(getCommitPrefetch());
  5067. }
  5068. input.readMessage(subBuilder, extensionRegistry);
  5069. setCommitPrefetch(subBuilder.buildPartial());
  5070. break;
  5071. }
  5072. case 418: {
  5073. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.newBuilder();
  5074. if (hasTreePrefetch()) {
  5075. subBuilder.mergeFrom(getTreePrefetch());
  5076. }
  5077. input.readMessage(subBuilder, extensionRegistry);
  5078. setTreePrefetch(subBuilder.buildPartial());
  5079. break;
  5080. }
  5081. }
  5082. }
  5083. }
  5084. private int bitField0_;
  5085. // repeated .org.eclipse.jgit.storage.dht.ChunkMeta.BaseChunk base_chunk = 1;
  5086. private java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk> baseChunk_ =
  5087. java.util.Collections.emptyList();
  5088. private void ensureBaseChunkIsMutable() {
  5089. if (!((bitField0_ & 0x00000001) == 0x00000001)) {
  5090. baseChunk_ = new java.util.ArrayList<org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk>(baseChunk_);
  5091. bitField0_ |= 0x00000001;
  5092. }
  5093. }
  5094. private com.google.protobuf.RepeatedFieldBuilder<
  5095. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunkOrBuilder> baseChunkBuilder_;
  5096. public java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk> getBaseChunkList() {
  5097. if (baseChunkBuilder_ == null) {
  5098. return java.util.Collections.unmodifiableList(baseChunk_);
  5099. } else {
  5100. return baseChunkBuilder_.getMessageList();
  5101. }
  5102. }
  5103. public int getBaseChunkCount() {
  5104. if (baseChunkBuilder_ == null) {
  5105. return baseChunk_.size();
  5106. } else {
  5107. return baseChunkBuilder_.getCount();
  5108. }
  5109. }
  5110. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk getBaseChunk(int index) {
  5111. if (baseChunkBuilder_ == null) {
  5112. return baseChunk_.get(index);
  5113. } else {
  5114. return baseChunkBuilder_.getMessage(index);
  5115. }
  5116. }
  5117. public Builder setBaseChunk(
  5118. int index, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk value) {
  5119. if (baseChunkBuilder_ == null) {
  5120. if (value == null) {
  5121. throw new NullPointerException();
  5122. }
  5123. ensureBaseChunkIsMutable();
  5124. baseChunk_.set(index, value);
  5125. onChanged();
  5126. } else {
  5127. baseChunkBuilder_.setMessage(index, value);
  5128. }
  5129. return this;
  5130. }
  5131. public Builder setBaseChunk(
  5132. int index, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.Builder builderForValue) {
  5133. if (baseChunkBuilder_ == null) {
  5134. ensureBaseChunkIsMutable();
  5135. baseChunk_.set(index, builderForValue.build());
  5136. onChanged();
  5137. } else {
  5138. baseChunkBuilder_.setMessage(index, builderForValue.build());
  5139. }
  5140. return this;
  5141. }
  5142. public Builder addBaseChunk(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk value) {
  5143. if (baseChunkBuilder_ == null) {
  5144. if (value == null) {
  5145. throw new NullPointerException();
  5146. }
  5147. ensureBaseChunkIsMutable();
  5148. baseChunk_.add(value);
  5149. onChanged();
  5150. } else {
  5151. baseChunkBuilder_.addMessage(value);
  5152. }
  5153. return this;
  5154. }
  5155. public Builder addBaseChunk(
  5156. int index, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk value) {
  5157. if (baseChunkBuilder_ == null) {
  5158. if (value == null) {
  5159. throw new NullPointerException();
  5160. }
  5161. ensureBaseChunkIsMutable();
  5162. baseChunk_.add(index, value);
  5163. onChanged();
  5164. } else {
  5165. baseChunkBuilder_.addMessage(index, value);
  5166. }
  5167. return this;
  5168. }
  5169. public Builder addBaseChunk(
  5170. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.Builder builderForValue) {
  5171. if (baseChunkBuilder_ == null) {
  5172. ensureBaseChunkIsMutable();
  5173. baseChunk_.add(builderForValue.build());
  5174. onChanged();
  5175. } else {
  5176. baseChunkBuilder_.addMessage(builderForValue.build());
  5177. }
  5178. return this;
  5179. }
  5180. public Builder addBaseChunk(
  5181. int index, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.Builder builderForValue) {
  5182. if (baseChunkBuilder_ == null) {
  5183. ensureBaseChunkIsMutable();
  5184. baseChunk_.add(index, builderForValue.build());
  5185. onChanged();
  5186. } else {
  5187. baseChunkBuilder_.addMessage(index, builderForValue.build());
  5188. }
  5189. return this;
  5190. }
  5191. public Builder addAllBaseChunk(
  5192. java.lang.Iterable<? extends org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk> values) {
  5193. if (baseChunkBuilder_ == null) {
  5194. ensureBaseChunkIsMutable();
  5195. super.addAll(values, baseChunk_);
  5196. onChanged();
  5197. } else {
  5198. baseChunkBuilder_.addAllMessages(values);
  5199. }
  5200. return this;
  5201. }
  5202. public Builder clearBaseChunk() {
  5203. if (baseChunkBuilder_ == null) {
  5204. baseChunk_ = java.util.Collections.emptyList();
  5205. bitField0_ = (bitField0_ & ~0x00000001);
  5206. onChanged();
  5207. } else {
  5208. baseChunkBuilder_.clear();
  5209. }
  5210. return this;
  5211. }
  5212. public Builder removeBaseChunk(int index) {
  5213. if (baseChunkBuilder_ == null) {
  5214. ensureBaseChunkIsMutable();
  5215. baseChunk_.remove(index);
  5216. onChanged();
  5217. } else {
  5218. baseChunkBuilder_.remove(index);
  5219. }
  5220. return this;
  5221. }
  5222. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.Builder getBaseChunkBuilder(
  5223. int index) {
  5224. return getBaseChunkFieldBuilder().getBuilder(index);
  5225. }
  5226. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunkOrBuilder getBaseChunkOrBuilder(
  5227. int index) {
  5228. if (baseChunkBuilder_ == null) {
  5229. return baseChunk_.get(index); } else {
  5230. return baseChunkBuilder_.getMessageOrBuilder(index);
  5231. }
  5232. }
  5233. public java.util.List<? extends org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunkOrBuilder>
  5234. getBaseChunkOrBuilderList() {
  5235. if (baseChunkBuilder_ != null) {
  5236. return baseChunkBuilder_.getMessageOrBuilderList();
  5237. } else {
  5238. return java.util.Collections.unmodifiableList(baseChunk_);
  5239. }
  5240. }
  5241. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.Builder addBaseChunkBuilder() {
  5242. return getBaseChunkFieldBuilder().addBuilder(
  5243. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.getDefaultInstance());
  5244. }
  5245. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.Builder addBaseChunkBuilder(
  5246. int index) {
  5247. return getBaseChunkFieldBuilder().addBuilder(
  5248. index, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.getDefaultInstance());
  5249. }
  5250. public java.util.List<org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.Builder>
  5251. getBaseChunkBuilderList() {
  5252. return getBaseChunkFieldBuilder().getBuilderList();
  5253. }
  5254. private com.google.protobuf.RepeatedFieldBuilder<
  5255. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunkOrBuilder>
  5256. getBaseChunkFieldBuilder() {
  5257. if (baseChunkBuilder_ == null) {
  5258. baseChunkBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
  5259. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunkOrBuilder>(
  5260. baseChunk_,
  5261. ((bitField0_ & 0x00000001) == 0x00000001),
  5262. getParentForChildren(),
  5263. isClean());
  5264. baseChunk_ = null;
  5265. }
  5266. return baseChunkBuilder_;
  5267. }
  5268. // repeated string fragment = 2;
  5269. private com.google.protobuf.LazyStringList fragment_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  5270. private void ensureFragmentIsMutable() {
  5271. if (!((bitField0_ & 0x00000002) == 0x00000002)) {
  5272. fragment_ = new com.google.protobuf.LazyStringArrayList(fragment_);
  5273. bitField0_ |= 0x00000002;
  5274. }
  5275. }
  5276. public java.util.List<String>
  5277. getFragmentList() {
  5278. return java.util.Collections.unmodifiableList(fragment_);
  5279. }
  5280. public int getFragmentCount() {
  5281. return fragment_.size();
  5282. }
  5283. public String getFragment(int index) {
  5284. return fragment_.get(index);
  5285. }
  5286. public Builder setFragment(
  5287. int index, String value) {
  5288. if (value == null) {
  5289. throw new NullPointerException();
  5290. }
  5291. ensureFragmentIsMutable();
  5292. fragment_.set(index, value);
  5293. onChanged();
  5294. return this;
  5295. }
  5296. public Builder addFragment(String value) {
  5297. if (value == null) {
  5298. throw new NullPointerException();
  5299. }
  5300. ensureFragmentIsMutable();
  5301. fragment_.add(value);
  5302. onChanged();
  5303. return this;
  5304. }
  5305. public Builder addAllFragment(
  5306. java.lang.Iterable<String> values) {
  5307. ensureFragmentIsMutable();
  5308. super.addAll(values, fragment_);
  5309. onChanged();
  5310. return this;
  5311. }
  5312. public Builder clearFragment() {
  5313. fragment_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  5314. bitField0_ = (bitField0_ & ~0x00000002);
  5315. onChanged();
  5316. return this;
  5317. }
  5318. void addFragment(com.google.protobuf.ByteString value) {
  5319. ensureFragmentIsMutable();
  5320. fragment_.add(value);
  5321. onChanged();
  5322. }
  5323. // optional .org.eclipse.jgit.storage.dht.ChunkMeta.PrefetchHint commit_prefetch = 51;
  5324. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint commitPrefetch_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDefaultInstance();
  5325. private com.google.protobuf.SingleFieldBuilder<
  5326. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHintOrBuilder> commitPrefetchBuilder_;
  5327. public boolean hasCommitPrefetch() {
  5328. return ((bitField0_ & 0x00000004) == 0x00000004);
  5329. }
  5330. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint getCommitPrefetch() {
  5331. if (commitPrefetchBuilder_ == null) {
  5332. return commitPrefetch_;
  5333. } else {
  5334. return commitPrefetchBuilder_.getMessage();
  5335. }
  5336. }
  5337. public Builder setCommitPrefetch(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint value) {
  5338. if (commitPrefetchBuilder_ == null) {
  5339. if (value == null) {
  5340. throw new NullPointerException();
  5341. }
  5342. commitPrefetch_ = value;
  5343. onChanged();
  5344. } else {
  5345. commitPrefetchBuilder_.setMessage(value);
  5346. }
  5347. bitField0_ |= 0x00000004;
  5348. return this;
  5349. }
  5350. public Builder setCommitPrefetch(
  5351. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.Builder builderForValue) {
  5352. if (commitPrefetchBuilder_ == null) {
  5353. commitPrefetch_ = builderForValue.build();
  5354. onChanged();
  5355. } else {
  5356. commitPrefetchBuilder_.setMessage(builderForValue.build());
  5357. }
  5358. bitField0_ |= 0x00000004;
  5359. return this;
  5360. }
  5361. public Builder mergeCommitPrefetch(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint value) {
  5362. if (commitPrefetchBuilder_ == null) {
  5363. if (((bitField0_ & 0x00000004) == 0x00000004) &&
  5364. commitPrefetch_ != org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDefaultInstance()) {
  5365. commitPrefetch_ =
  5366. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.newBuilder(commitPrefetch_).mergeFrom(value).buildPartial();
  5367. } else {
  5368. commitPrefetch_ = value;
  5369. }
  5370. onChanged();
  5371. } else {
  5372. commitPrefetchBuilder_.mergeFrom(value);
  5373. }
  5374. bitField0_ |= 0x00000004;
  5375. return this;
  5376. }
  5377. public Builder clearCommitPrefetch() {
  5378. if (commitPrefetchBuilder_ == null) {
  5379. commitPrefetch_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDefaultInstance();
  5380. onChanged();
  5381. } else {
  5382. commitPrefetchBuilder_.clear();
  5383. }
  5384. bitField0_ = (bitField0_ & ~0x00000004);
  5385. return this;
  5386. }
  5387. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.Builder getCommitPrefetchBuilder() {
  5388. bitField0_ |= 0x00000004;
  5389. onChanged();
  5390. return getCommitPrefetchFieldBuilder().getBuilder();
  5391. }
  5392. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHintOrBuilder getCommitPrefetchOrBuilder() {
  5393. if (commitPrefetchBuilder_ != null) {
  5394. return commitPrefetchBuilder_.getMessageOrBuilder();
  5395. } else {
  5396. return commitPrefetch_;
  5397. }
  5398. }
  5399. private com.google.protobuf.SingleFieldBuilder<
  5400. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHintOrBuilder>
  5401. getCommitPrefetchFieldBuilder() {
  5402. if (commitPrefetchBuilder_ == null) {
  5403. commitPrefetchBuilder_ = new com.google.protobuf.SingleFieldBuilder<
  5404. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHintOrBuilder>(
  5405. commitPrefetch_,
  5406. getParentForChildren(),
  5407. isClean());
  5408. commitPrefetch_ = null;
  5409. }
  5410. return commitPrefetchBuilder_;
  5411. }
  5412. // optional .org.eclipse.jgit.storage.dht.ChunkMeta.PrefetchHint tree_prefetch = 52;
  5413. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint treePrefetch_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDefaultInstance();
  5414. private com.google.protobuf.SingleFieldBuilder<
  5415. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHintOrBuilder> treePrefetchBuilder_;
  5416. public boolean hasTreePrefetch() {
  5417. return ((bitField0_ & 0x00000008) == 0x00000008);
  5418. }
  5419. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint getTreePrefetch() {
  5420. if (treePrefetchBuilder_ == null) {
  5421. return treePrefetch_;
  5422. } else {
  5423. return treePrefetchBuilder_.getMessage();
  5424. }
  5425. }
  5426. public Builder setTreePrefetch(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint value) {
  5427. if (treePrefetchBuilder_ == null) {
  5428. if (value == null) {
  5429. throw new NullPointerException();
  5430. }
  5431. treePrefetch_ = value;
  5432. onChanged();
  5433. } else {
  5434. treePrefetchBuilder_.setMessage(value);
  5435. }
  5436. bitField0_ |= 0x00000008;
  5437. return this;
  5438. }
  5439. public Builder setTreePrefetch(
  5440. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.Builder builderForValue) {
  5441. if (treePrefetchBuilder_ == null) {
  5442. treePrefetch_ = builderForValue.build();
  5443. onChanged();
  5444. } else {
  5445. treePrefetchBuilder_.setMessage(builderForValue.build());
  5446. }
  5447. bitField0_ |= 0x00000008;
  5448. return this;
  5449. }
  5450. public Builder mergeTreePrefetch(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint value) {
  5451. if (treePrefetchBuilder_ == null) {
  5452. if (((bitField0_ & 0x00000008) == 0x00000008) &&
  5453. treePrefetch_ != org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDefaultInstance()) {
  5454. treePrefetch_ =
  5455. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.newBuilder(treePrefetch_).mergeFrom(value).buildPartial();
  5456. } else {
  5457. treePrefetch_ = value;
  5458. }
  5459. onChanged();
  5460. } else {
  5461. treePrefetchBuilder_.mergeFrom(value);
  5462. }
  5463. bitField0_ |= 0x00000008;
  5464. return this;
  5465. }
  5466. public Builder clearTreePrefetch() {
  5467. if (treePrefetchBuilder_ == null) {
  5468. treePrefetch_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.getDefaultInstance();
  5469. onChanged();
  5470. } else {
  5471. treePrefetchBuilder_.clear();
  5472. }
  5473. bitField0_ = (bitField0_ & ~0x00000008);
  5474. return this;
  5475. }
  5476. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.Builder getTreePrefetchBuilder() {
  5477. bitField0_ |= 0x00000008;
  5478. onChanged();
  5479. return getTreePrefetchFieldBuilder().getBuilder();
  5480. }
  5481. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHintOrBuilder getTreePrefetchOrBuilder() {
  5482. if (treePrefetchBuilder_ != null) {
  5483. return treePrefetchBuilder_.getMessageOrBuilder();
  5484. } else {
  5485. return treePrefetch_;
  5486. }
  5487. }
  5488. private com.google.protobuf.SingleFieldBuilder<
  5489. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHintOrBuilder>
  5490. getTreePrefetchFieldBuilder() {
  5491. if (treePrefetchBuilder_ == null) {
  5492. treePrefetchBuilder_ = new com.google.protobuf.SingleFieldBuilder<
  5493. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHintOrBuilder>(
  5494. treePrefetch_,
  5495. getParentForChildren(),
  5496. isClean());
  5497. treePrefetch_ = null;
  5498. }
  5499. return treePrefetchBuilder_;
  5500. }
  5501. // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.ChunkMeta)
  5502. }
  5503. static {
  5504. defaultInstance = new ChunkMeta(true);
  5505. defaultInstance.initFields();
  5506. }
  5507. // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.ChunkMeta)
  5508. }
  5509. public interface CachedPackInfoOrBuilder
  5510. extends com.google.protobuf.MessageOrBuilder {
  5511. // required string name = 1;
  5512. boolean hasName();
  5513. String getName();
  5514. // required string version = 2;
  5515. boolean hasVersion();
  5516. String getVersion();
  5517. // required int64 objects_total = 3;
  5518. boolean hasObjectsTotal();
  5519. long getObjectsTotal();
  5520. // optional int64 objects_delta = 4;
  5521. boolean hasObjectsDelta();
  5522. long getObjectsDelta();
  5523. // optional int64 bytes_total = 5;
  5524. boolean hasBytesTotal();
  5525. long getBytesTotal();
  5526. // required .org.eclipse.jgit.storage.dht.CachedPackInfo.TipObjectList tip_list = 6;
  5527. boolean hasTipList();
  5528. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList getTipList();
  5529. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectListOrBuilder getTipListOrBuilder();
  5530. // required .org.eclipse.jgit.storage.dht.CachedPackInfo.ChunkList chunk_list = 7;
  5531. boolean hasChunkList();
  5532. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList getChunkList();
  5533. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkListOrBuilder getChunkListOrBuilder();
  5534. }
  5535. public static final class CachedPackInfo extends
  5536. com.google.protobuf.GeneratedMessage
  5537. implements CachedPackInfoOrBuilder {
  5538. // Use CachedPackInfo.newBuilder() to construct.
  5539. private CachedPackInfo(Builder builder) {
  5540. super(builder);
  5541. }
  5542. private CachedPackInfo(boolean noInit) {}
  5543. private static final CachedPackInfo defaultInstance;
  5544. public static CachedPackInfo getDefaultInstance() {
  5545. return defaultInstance;
  5546. }
  5547. public CachedPackInfo getDefaultInstanceForType() {
  5548. return defaultInstance;
  5549. }
  5550. public static final com.google.protobuf.Descriptors.Descriptor
  5551. getDescriptor() {
  5552. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_descriptor;
  5553. }
  5554. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  5555. internalGetFieldAccessorTable() {
  5556. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_fieldAccessorTable;
  5557. }
  5558. public interface TipObjectListOrBuilder
  5559. extends com.google.protobuf.MessageOrBuilder {
  5560. // repeated string object_name = 1;
  5561. java.util.List<String> getObjectNameList();
  5562. int getObjectNameCount();
  5563. String getObjectName(int index);
  5564. }
  5565. public static final class TipObjectList extends
  5566. com.google.protobuf.GeneratedMessage
  5567. implements TipObjectListOrBuilder {
  5568. // Use TipObjectList.newBuilder() to construct.
  5569. private TipObjectList(Builder builder) {
  5570. super(builder);
  5571. }
  5572. private TipObjectList(boolean noInit) {}
  5573. private static final TipObjectList defaultInstance;
  5574. public static TipObjectList getDefaultInstance() {
  5575. return defaultInstance;
  5576. }
  5577. public TipObjectList getDefaultInstanceForType() {
  5578. return defaultInstance;
  5579. }
  5580. public static final com.google.protobuf.Descriptors.Descriptor
  5581. getDescriptor() {
  5582. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_TipObjectList_descriptor;
  5583. }
  5584. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  5585. internalGetFieldAccessorTable() {
  5586. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_TipObjectList_fieldAccessorTable;
  5587. }
  5588. // repeated string object_name = 1;
  5589. public static final int OBJECT_NAME_FIELD_NUMBER = 1;
  5590. private com.google.protobuf.LazyStringList objectName_;
  5591. public java.util.List<String>
  5592. getObjectNameList() {
  5593. return objectName_;
  5594. }
  5595. public int getObjectNameCount() {
  5596. return objectName_.size();
  5597. }
  5598. public String getObjectName(int index) {
  5599. return objectName_.get(index);
  5600. }
  5601. private void initFields() {
  5602. objectName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  5603. }
  5604. private byte memoizedIsInitialized = -1;
  5605. public final boolean isInitialized() {
  5606. byte isInitialized = memoizedIsInitialized;
  5607. if (isInitialized != -1) return isInitialized == 1;
  5608. memoizedIsInitialized = 1;
  5609. return true;
  5610. }
  5611. public void writeTo(com.google.protobuf.CodedOutputStream output)
  5612. throws java.io.IOException {
  5613. getSerializedSize();
  5614. for (int i = 0; i < objectName_.size(); i++) {
  5615. output.writeBytes(1, objectName_.getByteString(i));
  5616. }
  5617. getUnknownFields().writeTo(output);
  5618. }
  5619. private int memoizedSerializedSize = -1;
  5620. public int getSerializedSize() {
  5621. int size = memoizedSerializedSize;
  5622. if (size != -1) return size;
  5623. size = 0;
  5624. {
  5625. int dataSize = 0;
  5626. for (int i = 0; i < objectName_.size(); i++) {
  5627. dataSize += com.google.protobuf.CodedOutputStream
  5628. .computeBytesSizeNoTag(objectName_.getByteString(i));
  5629. }
  5630. size += dataSize;
  5631. size += 1 * getObjectNameList().size();
  5632. }
  5633. size += getUnknownFields().getSerializedSize();
  5634. memoizedSerializedSize = size;
  5635. return size;
  5636. }
  5637. @java.lang.Override
  5638. protected Object writeReplace() throws java.io.ObjectStreamException {
  5639. return super.writeReplace();
  5640. }
  5641. @java.lang.Override
  5642. public boolean equals(final Object obj) {
  5643. if (obj == this) {
  5644. return true;
  5645. }
  5646. if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList)) {
  5647. return super.equals(obj);
  5648. }
  5649. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList) obj;
  5650. boolean result = true;
  5651. result = result && getObjectNameList()
  5652. .equals(other.getObjectNameList());
  5653. result = result &&
  5654. getUnknownFields().equals(other.getUnknownFields());
  5655. return result;
  5656. }
  5657. @java.lang.Override
  5658. public int hashCode() {
  5659. int hash = 41;
  5660. hash = (19 * hash) + getDescriptorForType().hashCode();
  5661. if (getObjectNameCount() > 0) {
  5662. hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER;
  5663. hash = (53 * hash) + getObjectNameList().hashCode();
  5664. }
  5665. hash = (29 * hash) + getUnknownFields().hashCode();
  5666. return hash;
  5667. }
  5668. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList parseFrom(
  5669. com.google.protobuf.ByteString data)
  5670. throws com.google.protobuf.InvalidProtocolBufferException {
  5671. return newBuilder().mergeFrom(data).buildParsed();
  5672. }
  5673. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList parseFrom(
  5674. com.google.protobuf.ByteString data,
  5675. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5676. throws com.google.protobuf.InvalidProtocolBufferException {
  5677. return newBuilder().mergeFrom(data, extensionRegistry)
  5678. .buildParsed();
  5679. }
  5680. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList parseFrom(byte[] data)
  5681. throws com.google.protobuf.InvalidProtocolBufferException {
  5682. return newBuilder().mergeFrom(data).buildParsed();
  5683. }
  5684. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList parseFrom(
  5685. byte[] data,
  5686. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5687. throws com.google.protobuf.InvalidProtocolBufferException {
  5688. return newBuilder().mergeFrom(data, extensionRegistry)
  5689. .buildParsed();
  5690. }
  5691. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList parseFrom(java.io.InputStream input)
  5692. throws java.io.IOException {
  5693. return newBuilder().mergeFrom(input).buildParsed();
  5694. }
  5695. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList parseFrom(
  5696. java.io.InputStream input,
  5697. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5698. throws java.io.IOException {
  5699. return newBuilder().mergeFrom(input, extensionRegistry)
  5700. .buildParsed();
  5701. }
  5702. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList parseDelimitedFrom(java.io.InputStream input)
  5703. throws java.io.IOException {
  5704. Builder builder = newBuilder();
  5705. if (builder.mergeDelimitedFrom(input)) {
  5706. return builder.buildParsed();
  5707. } else {
  5708. return null;
  5709. }
  5710. }
  5711. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList parseDelimitedFrom(
  5712. java.io.InputStream input,
  5713. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5714. throws java.io.IOException {
  5715. Builder builder = newBuilder();
  5716. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  5717. return builder.buildParsed();
  5718. } else {
  5719. return null;
  5720. }
  5721. }
  5722. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList parseFrom(
  5723. com.google.protobuf.CodedInputStream input)
  5724. throws java.io.IOException {
  5725. return newBuilder().mergeFrom(input).buildParsed();
  5726. }
  5727. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList parseFrom(
  5728. com.google.protobuf.CodedInputStream input,
  5729. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5730. throws java.io.IOException {
  5731. return newBuilder().mergeFrom(input, extensionRegistry)
  5732. .buildParsed();
  5733. }
  5734. public static Builder newBuilder() { return Builder.create(); }
  5735. public Builder newBuilderForType() { return newBuilder(); }
  5736. public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList prototype) {
  5737. return newBuilder().mergeFrom(prototype);
  5738. }
  5739. public Builder toBuilder() { return newBuilder(this); }
  5740. @java.lang.Override
  5741. protected Builder newBuilderForType(
  5742. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  5743. Builder builder = new Builder(parent);
  5744. return builder;
  5745. }
  5746. public static final class Builder extends
  5747. com.google.protobuf.GeneratedMessage.Builder<Builder>
  5748. implements org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectListOrBuilder {
  5749. public static final com.google.protobuf.Descriptors.Descriptor
  5750. getDescriptor() {
  5751. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_TipObjectList_descriptor;
  5752. }
  5753. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  5754. internalGetFieldAccessorTable() {
  5755. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_TipObjectList_fieldAccessorTable;
  5756. }
  5757. // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.newBuilder()
  5758. private Builder() {
  5759. maybeForceBuilderInitialization();
  5760. }
  5761. private Builder(BuilderParent parent) {
  5762. super(parent);
  5763. maybeForceBuilderInitialization();
  5764. }
  5765. private void maybeForceBuilderInitialization() {
  5766. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  5767. }
  5768. }
  5769. private static Builder create() {
  5770. return new Builder();
  5771. }
  5772. public Builder clear() {
  5773. super.clear();
  5774. objectName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  5775. bitField0_ = (bitField0_ & ~0x00000001);
  5776. return this;
  5777. }
  5778. public Builder clone() {
  5779. return create().mergeFrom(buildPartial());
  5780. }
  5781. public com.google.protobuf.Descriptors.Descriptor
  5782. getDescriptorForType() {
  5783. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.getDescriptor();
  5784. }
  5785. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList getDefaultInstanceForType() {
  5786. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.getDefaultInstance();
  5787. }
  5788. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList build() {
  5789. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList result = buildPartial();
  5790. if (!result.isInitialized()) {
  5791. throw newUninitializedMessageException(result);
  5792. }
  5793. return result;
  5794. }
  5795. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList buildParsed()
  5796. throws com.google.protobuf.InvalidProtocolBufferException {
  5797. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList result = buildPartial();
  5798. if (!result.isInitialized()) {
  5799. throw newUninitializedMessageException(
  5800. result).asInvalidProtocolBufferException();
  5801. }
  5802. return result;
  5803. }
  5804. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList buildPartial() {
  5805. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList(this);
  5806. int from_bitField0_ = bitField0_;
  5807. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  5808. objectName_ = new com.google.protobuf.UnmodifiableLazyStringList(
  5809. objectName_);
  5810. bitField0_ = (bitField0_ & ~0x00000001);
  5811. }
  5812. result.objectName_ = objectName_;
  5813. onBuilt();
  5814. return result;
  5815. }
  5816. public Builder mergeFrom(com.google.protobuf.Message other) {
  5817. if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList) {
  5818. return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList)other);
  5819. } else {
  5820. super.mergeFrom(other);
  5821. return this;
  5822. }
  5823. }
  5824. public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList other) {
  5825. if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.getDefaultInstance()) return this;
  5826. if (!other.objectName_.isEmpty()) {
  5827. if (objectName_.isEmpty()) {
  5828. objectName_ = other.objectName_;
  5829. bitField0_ = (bitField0_ & ~0x00000001);
  5830. } else {
  5831. ensureObjectNameIsMutable();
  5832. objectName_.addAll(other.objectName_);
  5833. }
  5834. onChanged();
  5835. }
  5836. this.mergeUnknownFields(other.getUnknownFields());
  5837. return this;
  5838. }
  5839. public final boolean isInitialized() {
  5840. return true;
  5841. }
  5842. public Builder mergeFrom(
  5843. com.google.protobuf.CodedInputStream input,
  5844. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  5845. throws java.io.IOException {
  5846. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  5847. com.google.protobuf.UnknownFieldSet.newBuilder(
  5848. this.getUnknownFields());
  5849. while (true) {
  5850. int tag = input.readTag();
  5851. switch (tag) {
  5852. case 0:
  5853. this.setUnknownFields(unknownFields.build());
  5854. onChanged();
  5855. return this;
  5856. default: {
  5857. if (!parseUnknownField(input, unknownFields,
  5858. extensionRegistry, tag)) {
  5859. this.setUnknownFields(unknownFields.build());
  5860. onChanged();
  5861. return this;
  5862. }
  5863. break;
  5864. }
  5865. case 10: {
  5866. ensureObjectNameIsMutable();
  5867. objectName_.add(input.readBytes());
  5868. break;
  5869. }
  5870. }
  5871. }
  5872. }
  5873. private int bitField0_;
  5874. // repeated string object_name = 1;
  5875. private com.google.protobuf.LazyStringList objectName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  5876. private void ensureObjectNameIsMutable() {
  5877. if (!((bitField0_ & 0x00000001) == 0x00000001)) {
  5878. objectName_ = new com.google.protobuf.LazyStringArrayList(objectName_);
  5879. bitField0_ |= 0x00000001;
  5880. }
  5881. }
  5882. public java.util.List<String>
  5883. getObjectNameList() {
  5884. return java.util.Collections.unmodifiableList(objectName_);
  5885. }
  5886. public int getObjectNameCount() {
  5887. return objectName_.size();
  5888. }
  5889. public String getObjectName(int index) {
  5890. return objectName_.get(index);
  5891. }
  5892. public Builder setObjectName(
  5893. int index, String value) {
  5894. if (value == null) {
  5895. throw new NullPointerException();
  5896. }
  5897. ensureObjectNameIsMutable();
  5898. objectName_.set(index, value);
  5899. onChanged();
  5900. return this;
  5901. }
  5902. public Builder addObjectName(String value) {
  5903. if (value == null) {
  5904. throw new NullPointerException();
  5905. }
  5906. ensureObjectNameIsMutable();
  5907. objectName_.add(value);
  5908. onChanged();
  5909. return this;
  5910. }
  5911. public Builder addAllObjectName(
  5912. java.lang.Iterable<String> values) {
  5913. ensureObjectNameIsMutable();
  5914. super.addAll(values, objectName_);
  5915. onChanged();
  5916. return this;
  5917. }
  5918. public Builder clearObjectName() {
  5919. objectName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  5920. bitField0_ = (bitField0_ & ~0x00000001);
  5921. onChanged();
  5922. return this;
  5923. }
  5924. void addObjectName(com.google.protobuf.ByteString value) {
  5925. ensureObjectNameIsMutable();
  5926. objectName_.add(value);
  5927. onChanged();
  5928. }
  5929. // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.CachedPackInfo.TipObjectList)
  5930. }
  5931. static {
  5932. defaultInstance = new TipObjectList(true);
  5933. defaultInstance.initFields();
  5934. }
  5935. // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.CachedPackInfo.TipObjectList)
  5936. }
  5937. public interface ChunkListOrBuilder
  5938. extends com.google.protobuf.MessageOrBuilder {
  5939. // repeated string chunk_key = 1;
  5940. java.util.List<String> getChunkKeyList();
  5941. int getChunkKeyCount();
  5942. String getChunkKey(int index);
  5943. }
  5944. public static final class ChunkList extends
  5945. com.google.protobuf.GeneratedMessage
  5946. implements ChunkListOrBuilder {
  5947. // Use ChunkList.newBuilder() to construct.
  5948. private ChunkList(Builder builder) {
  5949. super(builder);
  5950. }
  5951. private ChunkList(boolean noInit) {}
  5952. private static final ChunkList defaultInstance;
  5953. public static ChunkList getDefaultInstance() {
  5954. return defaultInstance;
  5955. }
  5956. public ChunkList getDefaultInstanceForType() {
  5957. return defaultInstance;
  5958. }
  5959. public static final com.google.protobuf.Descriptors.Descriptor
  5960. getDescriptor() {
  5961. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_ChunkList_descriptor;
  5962. }
  5963. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  5964. internalGetFieldAccessorTable() {
  5965. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_ChunkList_fieldAccessorTable;
  5966. }
  5967. // repeated string chunk_key = 1;
  5968. public static final int CHUNK_KEY_FIELD_NUMBER = 1;
  5969. private com.google.protobuf.LazyStringList chunkKey_;
  5970. public java.util.List<String>
  5971. getChunkKeyList() {
  5972. return chunkKey_;
  5973. }
  5974. public int getChunkKeyCount() {
  5975. return chunkKey_.size();
  5976. }
  5977. public String getChunkKey(int index) {
  5978. return chunkKey_.get(index);
  5979. }
  5980. private void initFields() {
  5981. chunkKey_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  5982. }
  5983. private byte memoizedIsInitialized = -1;
  5984. public final boolean isInitialized() {
  5985. byte isInitialized = memoizedIsInitialized;
  5986. if (isInitialized != -1) return isInitialized == 1;
  5987. memoizedIsInitialized = 1;
  5988. return true;
  5989. }
  5990. public void writeTo(com.google.protobuf.CodedOutputStream output)
  5991. throws java.io.IOException {
  5992. getSerializedSize();
  5993. for (int i = 0; i < chunkKey_.size(); i++) {
  5994. output.writeBytes(1, chunkKey_.getByteString(i));
  5995. }
  5996. getUnknownFields().writeTo(output);
  5997. }
  5998. private int memoizedSerializedSize = -1;
  5999. public int getSerializedSize() {
  6000. int size = memoizedSerializedSize;
  6001. if (size != -1) return size;
  6002. size = 0;
  6003. {
  6004. int dataSize = 0;
  6005. for (int i = 0; i < chunkKey_.size(); i++) {
  6006. dataSize += com.google.protobuf.CodedOutputStream
  6007. .computeBytesSizeNoTag(chunkKey_.getByteString(i));
  6008. }
  6009. size += dataSize;
  6010. size += 1 * getChunkKeyList().size();
  6011. }
  6012. size += getUnknownFields().getSerializedSize();
  6013. memoizedSerializedSize = size;
  6014. return size;
  6015. }
  6016. @java.lang.Override
  6017. protected Object writeReplace() throws java.io.ObjectStreamException {
  6018. return super.writeReplace();
  6019. }
  6020. @java.lang.Override
  6021. public boolean equals(final Object obj) {
  6022. if (obj == this) {
  6023. return true;
  6024. }
  6025. if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList)) {
  6026. return super.equals(obj);
  6027. }
  6028. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList) obj;
  6029. boolean result = true;
  6030. result = result && getChunkKeyList()
  6031. .equals(other.getChunkKeyList());
  6032. result = result &&
  6033. getUnknownFields().equals(other.getUnknownFields());
  6034. return result;
  6035. }
  6036. @java.lang.Override
  6037. public int hashCode() {
  6038. int hash = 41;
  6039. hash = (19 * hash) + getDescriptorForType().hashCode();
  6040. if (getChunkKeyCount() > 0) {
  6041. hash = (37 * hash) + CHUNK_KEY_FIELD_NUMBER;
  6042. hash = (53 * hash) + getChunkKeyList().hashCode();
  6043. }
  6044. hash = (29 * hash) + getUnknownFields().hashCode();
  6045. return hash;
  6046. }
  6047. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList parseFrom(
  6048. com.google.protobuf.ByteString data)
  6049. throws com.google.protobuf.InvalidProtocolBufferException {
  6050. return newBuilder().mergeFrom(data).buildParsed();
  6051. }
  6052. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList parseFrom(
  6053. com.google.protobuf.ByteString data,
  6054. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  6055. throws com.google.protobuf.InvalidProtocolBufferException {
  6056. return newBuilder().mergeFrom(data, extensionRegistry)
  6057. .buildParsed();
  6058. }
  6059. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList parseFrom(byte[] data)
  6060. throws com.google.protobuf.InvalidProtocolBufferException {
  6061. return newBuilder().mergeFrom(data).buildParsed();
  6062. }
  6063. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList parseFrom(
  6064. byte[] data,
  6065. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  6066. throws com.google.protobuf.InvalidProtocolBufferException {
  6067. return newBuilder().mergeFrom(data, extensionRegistry)
  6068. .buildParsed();
  6069. }
  6070. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList parseFrom(java.io.InputStream input)
  6071. throws java.io.IOException {
  6072. return newBuilder().mergeFrom(input).buildParsed();
  6073. }
  6074. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList parseFrom(
  6075. java.io.InputStream input,
  6076. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  6077. throws java.io.IOException {
  6078. return newBuilder().mergeFrom(input, extensionRegistry)
  6079. .buildParsed();
  6080. }
  6081. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList parseDelimitedFrom(java.io.InputStream input)
  6082. throws java.io.IOException {
  6083. Builder builder = newBuilder();
  6084. if (builder.mergeDelimitedFrom(input)) {
  6085. return builder.buildParsed();
  6086. } else {
  6087. return null;
  6088. }
  6089. }
  6090. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList parseDelimitedFrom(
  6091. java.io.InputStream input,
  6092. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  6093. throws java.io.IOException {
  6094. Builder builder = newBuilder();
  6095. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  6096. return builder.buildParsed();
  6097. } else {
  6098. return null;
  6099. }
  6100. }
  6101. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList parseFrom(
  6102. com.google.protobuf.CodedInputStream input)
  6103. throws java.io.IOException {
  6104. return newBuilder().mergeFrom(input).buildParsed();
  6105. }
  6106. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList parseFrom(
  6107. com.google.protobuf.CodedInputStream input,
  6108. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  6109. throws java.io.IOException {
  6110. return newBuilder().mergeFrom(input, extensionRegistry)
  6111. .buildParsed();
  6112. }
  6113. public static Builder newBuilder() { return Builder.create(); }
  6114. public Builder newBuilderForType() { return newBuilder(); }
  6115. public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList prototype) {
  6116. return newBuilder().mergeFrom(prototype);
  6117. }
  6118. public Builder toBuilder() { return newBuilder(this); }
  6119. @java.lang.Override
  6120. protected Builder newBuilderForType(
  6121. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  6122. Builder builder = new Builder(parent);
  6123. return builder;
  6124. }
  6125. public static final class Builder extends
  6126. com.google.protobuf.GeneratedMessage.Builder<Builder>
  6127. implements org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkListOrBuilder {
  6128. public static final com.google.protobuf.Descriptors.Descriptor
  6129. getDescriptor() {
  6130. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_ChunkList_descriptor;
  6131. }
  6132. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6133. internalGetFieldAccessorTable() {
  6134. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_ChunkList_fieldAccessorTable;
  6135. }
  6136. // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.newBuilder()
  6137. private Builder() {
  6138. maybeForceBuilderInitialization();
  6139. }
  6140. private Builder(BuilderParent parent) {
  6141. super(parent);
  6142. maybeForceBuilderInitialization();
  6143. }
  6144. private void maybeForceBuilderInitialization() {
  6145. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  6146. }
  6147. }
  6148. private static Builder create() {
  6149. return new Builder();
  6150. }
  6151. public Builder clear() {
  6152. super.clear();
  6153. chunkKey_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  6154. bitField0_ = (bitField0_ & ~0x00000001);
  6155. return this;
  6156. }
  6157. public Builder clone() {
  6158. return create().mergeFrom(buildPartial());
  6159. }
  6160. public com.google.protobuf.Descriptors.Descriptor
  6161. getDescriptorForType() {
  6162. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.getDescriptor();
  6163. }
  6164. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList getDefaultInstanceForType() {
  6165. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.getDefaultInstance();
  6166. }
  6167. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList build() {
  6168. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList result = buildPartial();
  6169. if (!result.isInitialized()) {
  6170. throw newUninitializedMessageException(result);
  6171. }
  6172. return result;
  6173. }
  6174. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList buildParsed()
  6175. throws com.google.protobuf.InvalidProtocolBufferException {
  6176. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList result = buildPartial();
  6177. if (!result.isInitialized()) {
  6178. throw newUninitializedMessageException(
  6179. result).asInvalidProtocolBufferException();
  6180. }
  6181. return result;
  6182. }
  6183. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList buildPartial() {
  6184. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList(this);
  6185. int from_bitField0_ = bitField0_;
  6186. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  6187. chunkKey_ = new com.google.protobuf.UnmodifiableLazyStringList(
  6188. chunkKey_);
  6189. bitField0_ = (bitField0_ & ~0x00000001);
  6190. }
  6191. result.chunkKey_ = chunkKey_;
  6192. onBuilt();
  6193. return result;
  6194. }
  6195. public Builder mergeFrom(com.google.protobuf.Message other) {
  6196. if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList) {
  6197. return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList)other);
  6198. } else {
  6199. super.mergeFrom(other);
  6200. return this;
  6201. }
  6202. }
  6203. public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList other) {
  6204. if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.getDefaultInstance()) return this;
  6205. if (!other.chunkKey_.isEmpty()) {
  6206. if (chunkKey_.isEmpty()) {
  6207. chunkKey_ = other.chunkKey_;
  6208. bitField0_ = (bitField0_ & ~0x00000001);
  6209. } else {
  6210. ensureChunkKeyIsMutable();
  6211. chunkKey_.addAll(other.chunkKey_);
  6212. }
  6213. onChanged();
  6214. }
  6215. this.mergeUnknownFields(other.getUnknownFields());
  6216. return this;
  6217. }
  6218. public final boolean isInitialized() {
  6219. return true;
  6220. }
  6221. public Builder mergeFrom(
  6222. com.google.protobuf.CodedInputStream input,
  6223. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  6224. throws java.io.IOException {
  6225. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  6226. com.google.protobuf.UnknownFieldSet.newBuilder(
  6227. this.getUnknownFields());
  6228. while (true) {
  6229. int tag = input.readTag();
  6230. switch (tag) {
  6231. case 0:
  6232. this.setUnknownFields(unknownFields.build());
  6233. onChanged();
  6234. return this;
  6235. default: {
  6236. if (!parseUnknownField(input, unknownFields,
  6237. extensionRegistry, tag)) {
  6238. this.setUnknownFields(unknownFields.build());
  6239. onChanged();
  6240. return this;
  6241. }
  6242. break;
  6243. }
  6244. case 10: {
  6245. ensureChunkKeyIsMutable();
  6246. chunkKey_.add(input.readBytes());
  6247. break;
  6248. }
  6249. }
  6250. }
  6251. }
  6252. private int bitField0_;
  6253. // repeated string chunk_key = 1;
  6254. private com.google.protobuf.LazyStringList chunkKey_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  6255. private void ensureChunkKeyIsMutable() {
  6256. if (!((bitField0_ & 0x00000001) == 0x00000001)) {
  6257. chunkKey_ = new com.google.protobuf.LazyStringArrayList(chunkKey_);
  6258. bitField0_ |= 0x00000001;
  6259. }
  6260. }
  6261. public java.util.List<String>
  6262. getChunkKeyList() {
  6263. return java.util.Collections.unmodifiableList(chunkKey_);
  6264. }
  6265. public int getChunkKeyCount() {
  6266. return chunkKey_.size();
  6267. }
  6268. public String getChunkKey(int index) {
  6269. return chunkKey_.get(index);
  6270. }
  6271. public Builder setChunkKey(
  6272. int index, String value) {
  6273. if (value == null) {
  6274. throw new NullPointerException();
  6275. }
  6276. ensureChunkKeyIsMutable();
  6277. chunkKey_.set(index, value);
  6278. onChanged();
  6279. return this;
  6280. }
  6281. public Builder addChunkKey(String value) {
  6282. if (value == null) {
  6283. throw new NullPointerException();
  6284. }
  6285. ensureChunkKeyIsMutable();
  6286. chunkKey_.add(value);
  6287. onChanged();
  6288. return this;
  6289. }
  6290. public Builder addAllChunkKey(
  6291. java.lang.Iterable<String> values) {
  6292. ensureChunkKeyIsMutable();
  6293. super.addAll(values, chunkKey_);
  6294. onChanged();
  6295. return this;
  6296. }
  6297. public Builder clearChunkKey() {
  6298. chunkKey_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  6299. bitField0_ = (bitField0_ & ~0x00000001);
  6300. onChanged();
  6301. return this;
  6302. }
  6303. void addChunkKey(com.google.protobuf.ByteString value) {
  6304. ensureChunkKeyIsMutable();
  6305. chunkKey_.add(value);
  6306. onChanged();
  6307. }
  6308. // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.CachedPackInfo.ChunkList)
  6309. }
  6310. static {
  6311. defaultInstance = new ChunkList(true);
  6312. defaultInstance.initFields();
  6313. }
  6314. // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.CachedPackInfo.ChunkList)
  6315. }
  6316. private int bitField0_;
  6317. // required string name = 1;
  6318. public static final int NAME_FIELD_NUMBER = 1;
  6319. private Object name_;
  6320. public boolean hasName() {
  6321. return ((bitField0_ & 0x00000001) == 0x00000001);
  6322. }
  6323. public String getName() {
  6324. Object ref = name_;
  6325. if (ref instanceof String) {
  6326. return (String) ref;
  6327. } else {
  6328. com.google.protobuf.ByteString bs =
  6329. (com.google.protobuf.ByteString) ref;
  6330. String s = bs.toStringUtf8();
  6331. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  6332. name_ = s;
  6333. }
  6334. return s;
  6335. }
  6336. }
  6337. private com.google.protobuf.ByteString getNameBytes() {
  6338. Object ref = name_;
  6339. if (ref instanceof String) {
  6340. com.google.protobuf.ByteString b =
  6341. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  6342. name_ = b;
  6343. return b;
  6344. } else {
  6345. return (com.google.protobuf.ByteString) ref;
  6346. }
  6347. }
  6348. // required string version = 2;
  6349. public static final int VERSION_FIELD_NUMBER = 2;
  6350. private Object version_;
  6351. public boolean hasVersion() {
  6352. return ((bitField0_ & 0x00000002) == 0x00000002);
  6353. }
  6354. public String getVersion() {
  6355. Object ref = version_;
  6356. if (ref instanceof String) {
  6357. return (String) ref;
  6358. } else {
  6359. com.google.protobuf.ByteString bs =
  6360. (com.google.protobuf.ByteString) ref;
  6361. String s = bs.toStringUtf8();
  6362. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  6363. version_ = s;
  6364. }
  6365. return s;
  6366. }
  6367. }
  6368. private com.google.protobuf.ByteString getVersionBytes() {
  6369. Object ref = version_;
  6370. if (ref instanceof String) {
  6371. com.google.protobuf.ByteString b =
  6372. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  6373. version_ = b;
  6374. return b;
  6375. } else {
  6376. return (com.google.protobuf.ByteString) ref;
  6377. }
  6378. }
  6379. // required int64 objects_total = 3;
  6380. public static final int OBJECTS_TOTAL_FIELD_NUMBER = 3;
  6381. private long objectsTotal_;
  6382. public boolean hasObjectsTotal() {
  6383. return ((bitField0_ & 0x00000004) == 0x00000004);
  6384. }
  6385. public long getObjectsTotal() {
  6386. return objectsTotal_;
  6387. }
  6388. // optional int64 objects_delta = 4;
  6389. public static final int OBJECTS_DELTA_FIELD_NUMBER = 4;
  6390. private long objectsDelta_;
  6391. public boolean hasObjectsDelta() {
  6392. return ((bitField0_ & 0x00000008) == 0x00000008);
  6393. }
  6394. public long getObjectsDelta() {
  6395. return objectsDelta_;
  6396. }
  6397. // optional int64 bytes_total = 5;
  6398. public static final int BYTES_TOTAL_FIELD_NUMBER = 5;
  6399. private long bytesTotal_;
  6400. public boolean hasBytesTotal() {
  6401. return ((bitField0_ & 0x00000010) == 0x00000010);
  6402. }
  6403. public long getBytesTotal() {
  6404. return bytesTotal_;
  6405. }
  6406. // required .org.eclipse.jgit.storage.dht.CachedPackInfo.TipObjectList tip_list = 6;
  6407. public static final int TIP_LIST_FIELD_NUMBER = 6;
  6408. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList tipList_;
  6409. public boolean hasTipList() {
  6410. return ((bitField0_ & 0x00000020) == 0x00000020);
  6411. }
  6412. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList getTipList() {
  6413. return tipList_;
  6414. }
  6415. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectListOrBuilder getTipListOrBuilder() {
  6416. return tipList_;
  6417. }
  6418. // required .org.eclipse.jgit.storage.dht.CachedPackInfo.ChunkList chunk_list = 7;
  6419. public static final int CHUNK_LIST_FIELD_NUMBER = 7;
  6420. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList chunkList_;
  6421. public boolean hasChunkList() {
  6422. return ((bitField0_ & 0x00000040) == 0x00000040);
  6423. }
  6424. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList getChunkList() {
  6425. return chunkList_;
  6426. }
  6427. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkListOrBuilder getChunkListOrBuilder() {
  6428. return chunkList_;
  6429. }
  6430. private void initFields() {
  6431. name_ = "";
  6432. version_ = "";
  6433. objectsTotal_ = 0L;
  6434. objectsDelta_ = 0L;
  6435. bytesTotal_ = 0L;
  6436. tipList_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.getDefaultInstance();
  6437. chunkList_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.getDefaultInstance();
  6438. }
  6439. private byte memoizedIsInitialized = -1;
  6440. public final boolean isInitialized() {
  6441. byte isInitialized = memoizedIsInitialized;
  6442. if (isInitialized != -1) return isInitialized == 1;
  6443. if (!hasName()) {
  6444. memoizedIsInitialized = 0;
  6445. return false;
  6446. }
  6447. if (!hasVersion()) {
  6448. memoizedIsInitialized = 0;
  6449. return false;
  6450. }
  6451. if (!hasObjectsTotal()) {
  6452. memoizedIsInitialized = 0;
  6453. return false;
  6454. }
  6455. if (!hasTipList()) {
  6456. memoizedIsInitialized = 0;
  6457. return false;
  6458. }
  6459. if (!hasChunkList()) {
  6460. memoizedIsInitialized = 0;
  6461. return false;
  6462. }
  6463. memoizedIsInitialized = 1;
  6464. return true;
  6465. }
  6466. public void writeTo(com.google.protobuf.CodedOutputStream output)
  6467. throws java.io.IOException {
  6468. getSerializedSize();
  6469. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  6470. output.writeBytes(1, getNameBytes());
  6471. }
  6472. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  6473. output.writeBytes(2, getVersionBytes());
  6474. }
  6475. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  6476. output.writeInt64(3, objectsTotal_);
  6477. }
  6478. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  6479. output.writeInt64(4, objectsDelta_);
  6480. }
  6481. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  6482. output.writeInt64(5, bytesTotal_);
  6483. }
  6484. if (((bitField0_ & 0x00000020) == 0x00000020)) {
  6485. output.writeMessage(6, tipList_);
  6486. }
  6487. if (((bitField0_ & 0x00000040) == 0x00000040)) {
  6488. output.writeMessage(7, chunkList_);
  6489. }
  6490. getUnknownFields().writeTo(output);
  6491. }
  6492. private int memoizedSerializedSize = -1;
  6493. public int getSerializedSize() {
  6494. int size = memoizedSerializedSize;
  6495. if (size != -1) return size;
  6496. size = 0;
  6497. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  6498. size += com.google.protobuf.CodedOutputStream
  6499. .computeBytesSize(1, getNameBytes());
  6500. }
  6501. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  6502. size += com.google.protobuf.CodedOutputStream
  6503. .computeBytesSize(2, getVersionBytes());
  6504. }
  6505. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  6506. size += com.google.protobuf.CodedOutputStream
  6507. .computeInt64Size(3, objectsTotal_);
  6508. }
  6509. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  6510. size += com.google.protobuf.CodedOutputStream
  6511. .computeInt64Size(4, objectsDelta_);
  6512. }
  6513. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  6514. size += com.google.protobuf.CodedOutputStream
  6515. .computeInt64Size(5, bytesTotal_);
  6516. }
  6517. if (((bitField0_ & 0x00000020) == 0x00000020)) {
  6518. size += com.google.protobuf.CodedOutputStream
  6519. .computeMessageSize(6, tipList_);
  6520. }
  6521. if (((bitField0_ & 0x00000040) == 0x00000040)) {
  6522. size += com.google.protobuf.CodedOutputStream
  6523. .computeMessageSize(7, chunkList_);
  6524. }
  6525. size += getUnknownFields().getSerializedSize();
  6526. memoizedSerializedSize = size;
  6527. return size;
  6528. }
  6529. @java.lang.Override
  6530. protected Object writeReplace() throws java.io.ObjectStreamException {
  6531. return super.writeReplace();
  6532. }
  6533. @java.lang.Override
  6534. public boolean equals(final Object obj) {
  6535. if (obj == this) {
  6536. return true;
  6537. }
  6538. if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo)) {
  6539. return super.equals(obj);
  6540. }
  6541. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo) obj;
  6542. boolean result = true;
  6543. result = result && (hasName() == other.hasName());
  6544. if (hasName()) {
  6545. result = result && getName()
  6546. .equals(other.getName());
  6547. }
  6548. result = result && (hasVersion() == other.hasVersion());
  6549. if (hasVersion()) {
  6550. result = result && getVersion()
  6551. .equals(other.getVersion());
  6552. }
  6553. result = result && (hasObjectsTotal() == other.hasObjectsTotal());
  6554. if (hasObjectsTotal()) {
  6555. result = result && (getObjectsTotal()
  6556. == other.getObjectsTotal());
  6557. }
  6558. result = result && (hasObjectsDelta() == other.hasObjectsDelta());
  6559. if (hasObjectsDelta()) {
  6560. result = result && (getObjectsDelta()
  6561. == other.getObjectsDelta());
  6562. }
  6563. result = result && (hasBytesTotal() == other.hasBytesTotal());
  6564. if (hasBytesTotal()) {
  6565. result = result && (getBytesTotal()
  6566. == other.getBytesTotal());
  6567. }
  6568. result = result && (hasTipList() == other.hasTipList());
  6569. if (hasTipList()) {
  6570. result = result && getTipList()
  6571. .equals(other.getTipList());
  6572. }
  6573. result = result && (hasChunkList() == other.hasChunkList());
  6574. if (hasChunkList()) {
  6575. result = result && getChunkList()
  6576. .equals(other.getChunkList());
  6577. }
  6578. result = result &&
  6579. getUnknownFields().equals(other.getUnknownFields());
  6580. return result;
  6581. }
  6582. @java.lang.Override
  6583. public int hashCode() {
  6584. int hash = 41;
  6585. hash = (19 * hash) + getDescriptorForType().hashCode();
  6586. if (hasName()) {
  6587. hash = (37 * hash) + NAME_FIELD_NUMBER;
  6588. hash = (53 * hash) + getName().hashCode();
  6589. }
  6590. if (hasVersion()) {
  6591. hash = (37 * hash) + VERSION_FIELD_NUMBER;
  6592. hash = (53 * hash) + getVersion().hashCode();
  6593. }
  6594. if (hasObjectsTotal()) {
  6595. hash = (37 * hash) + OBJECTS_TOTAL_FIELD_NUMBER;
  6596. hash = (53 * hash) + hashLong(getObjectsTotal());
  6597. }
  6598. if (hasObjectsDelta()) {
  6599. hash = (37 * hash) + OBJECTS_DELTA_FIELD_NUMBER;
  6600. hash = (53 * hash) + hashLong(getObjectsDelta());
  6601. }
  6602. if (hasBytesTotal()) {
  6603. hash = (37 * hash) + BYTES_TOTAL_FIELD_NUMBER;
  6604. hash = (53 * hash) + hashLong(getBytesTotal());
  6605. }
  6606. if (hasTipList()) {
  6607. hash = (37 * hash) + TIP_LIST_FIELD_NUMBER;
  6608. hash = (53 * hash) + getTipList().hashCode();
  6609. }
  6610. if (hasChunkList()) {
  6611. hash = (37 * hash) + CHUNK_LIST_FIELD_NUMBER;
  6612. hash = (53 * hash) + getChunkList().hashCode();
  6613. }
  6614. hash = (29 * hash) + getUnknownFields().hashCode();
  6615. return hash;
  6616. }
  6617. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo parseFrom(
  6618. com.google.protobuf.ByteString data)
  6619. throws com.google.protobuf.InvalidProtocolBufferException {
  6620. return newBuilder().mergeFrom(data).buildParsed();
  6621. }
  6622. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo parseFrom(
  6623. com.google.protobuf.ByteString data,
  6624. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  6625. throws com.google.protobuf.InvalidProtocolBufferException {
  6626. return newBuilder().mergeFrom(data, extensionRegistry)
  6627. .buildParsed();
  6628. }
  6629. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo parseFrom(byte[] data)
  6630. throws com.google.protobuf.InvalidProtocolBufferException {
  6631. return newBuilder().mergeFrom(data).buildParsed();
  6632. }
  6633. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo parseFrom(
  6634. byte[] data,
  6635. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  6636. throws com.google.protobuf.InvalidProtocolBufferException {
  6637. return newBuilder().mergeFrom(data, extensionRegistry)
  6638. .buildParsed();
  6639. }
  6640. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo parseFrom(java.io.InputStream input)
  6641. throws java.io.IOException {
  6642. return newBuilder().mergeFrom(input).buildParsed();
  6643. }
  6644. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo parseFrom(
  6645. java.io.InputStream input,
  6646. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  6647. throws java.io.IOException {
  6648. return newBuilder().mergeFrom(input, extensionRegistry)
  6649. .buildParsed();
  6650. }
  6651. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo parseDelimitedFrom(java.io.InputStream input)
  6652. throws java.io.IOException {
  6653. Builder builder = newBuilder();
  6654. if (builder.mergeDelimitedFrom(input)) {
  6655. return builder.buildParsed();
  6656. } else {
  6657. return null;
  6658. }
  6659. }
  6660. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo parseDelimitedFrom(
  6661. java.io.InputStream input,
  6662. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  6663. throws java.io.IOException {
  6664. Builder builder = newBuilder();
  6665. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  6666. return builder.buildParsed();
  6667. } else {
  6668. return null;
  6669. }
  6670. }
  6671. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo parseFrom(
  6672. com.google.protobuf.CodedInputStream input)
  6673. throws java.io.IOException {
  6674. return newBuilder().mergeFrom(input).buildParsed();
  6675. }
  6676. public static org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo parseFrom(
  6677. com.google.protobuf.CodedInputStream input,
  6678. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  6679. throws java.io.IOException {
  6680. return newBuilder().mergeFrom(input, extensionRegistry)
  6681. .buildParsed();
  6682. }
  6683. public static Builder newBuilder() { return Builder.create(); }
  6684. public Builder newBuilderForType() { return newBuilder(); }
  6685. public static Builder newBuilder(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo prototype) {
  6686. return newBuilder().mergeFrom(prototype);
  6687. }
  6688. public Builder toBuilder() { return newBuilder(this); }
  6689. @java.lang.Override
  6690. protected Builder newBuilderForType(
  6691. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  6692. Builder builder = new Builder(parent);
  6693. return builder;
  6694. }
  6695. public static final class Builder extends
  6696. com.google.protobuf.GeneratedMessage.Builder<Builder>
  6697. implements org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfoOrBuilder {
  6698. public static final com.google.protobuf.Descriptors.Descriptor
  6699. getDescriptor() {
  6700. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_descriptor;
  6701. }
  6702. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  6703. internalGetFieldAccessorTable() {
  6704. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_fieldAccessorTable;
  6705. }
  6706. // Construct using org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.newBuilder()
  6707. private Builder() {
  6708. maybeForceBuilderInitialization();
  6709. }
  6710. private Builder(BuilderParent parent) {
  6711. super(parent);
  6712. maybeForceBuilderInitialization();
  6713. }
  6714. private void maybeForceBuilderInitialization() {
  6715. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  6716. getTipListFieldBuilder();
  6717. getChunkListFieldBuilder();
  6718. }
  6719. }
  6720. private static Builder create() {
  6721. return new Builder();
  6722. }
  6723. public Builder clear() {
  6724. super.clear();
  6725. name_ = "";
  6726. bitField0_ = (bitField0_ & ~0x00000001);
  6727. version_ = "";
  6728. bitField0_ = (bitField0_ & ~0x00000002);
  6729. objectsTotal_ = 0L;
  6730. bitField0_ = (bitField0_ & ~0x00000004);
  6731. objectsDelta_ = 0L;
  6732. bitField0_ = (bitField0_ & ~0x00000008);
  6733. bytesTotal_ = 0L;
  6734. bitField0_ = (bitField0_ & ~0x00000010);
  6735. if (tipListBuilder_ == null) {
  6736. tipList_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.getDefaultInstance();
  6737. } else {
  6738. tipListBuilder_.clear();
  6739. }
  6740. bitField0_ = (bitField0_ & ~0x00000020);
  6741. if (chunkListBuilder_ == null) {
  6742. chunkList_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.getDefaultInstance();
  6743. } else {
  6744. chunkListBuilder_.clear();
  6745. }
  6746. bitField0_ = (bitField0_ & ~0x00000040);
  6747. return this;
  6748. }
  6749. public Builder clone() {
  6750. return create().mergeFrom(buildPartial());
  6751. }
  6752. public com.google.protobuf.Descriptors.Descriptor
  6753. getDescriptorForType() {
  6754. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.getDescriptor();
  6755. }
  6756. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo getDefaultInstanceForType() {
  6757. return org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.getDefaultInstance();
  6758. }
  6759. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo build() {
  6760. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo result = buildPartial();
  6761. if (!result.isInitialized()) {
  6762. throw newUninitializedMessageException(result);
  6763. }
  6764. return result;
  6765. }
  6766. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo buildParsed()
  6767. throws com.google.protobuf.InvalidProtocolBufferException {
  6768. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo result = buildPartial();
  6769. if (!result.isInitialized()) {
  6770. throw newUninitializedMessageException(
  6771. result).asInvalidProtocolBufferException();
  6772. }
  6773. return result;
  6774. }
  6775. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo buildPartial() {
  6776. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo result = new org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo(this);
  6777. int from_bitField0_ = bitField0_;
  6778. int to_bitField0_ = 0;
  6779. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  6780. to_bitField0_ |= 0x00000001;
  6781. }
  6782. result.name_ = name_;
  6783. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  6784. to_bitField0_ |= 0x00000002;
  6785. }
  6786. result.version_ = version_;
  6787. if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  6788. to_bitField0_ |= 0x00000004;
  6789. }
  6790. result.objectsTotal_ = objectsTotal_;
  6791. if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
  6792. to_bitField0_ |= 0x00000008;
  6793. }
  6794. result.objectsDelta_ = objectsDelta_;
  6795. if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
  6796. to_bitField0_ |= 0x00000010;
  6797. }
  6798. result.bytesTotal_ = bytesTotal_;
  6799. if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
  6800. to_bitField0_ |= 0x00000020;
  6801. }
  6802. if (tipListBuilder_ == null) {
  6803. result.tipList_ = tipList_;
  6804. } else {
  6805. result.tipList_ = tipListBuilder_.build();
  6806. }
  6807. if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
  6808. to_bitField0_ |= 0x00000040;
  6809. }
  6810. if (chunkListBuilder_ == null) {
  6811. result.chunkList_ = chunkList_;
  6812. } else {
  6813. result.chunkList_ = chunkListBuilder_.build();
  6814. }
  6815. result.bitField0_ = to_bitField0_;
  6816. onBuilt();
  6817. return result;
  6818. }
  6819. public Builder mergeFrom(com.google.protobuf.Message other) {
  6820. if (other instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo) {
  6821. return mergeFrom((org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo)other);
  6822. } else {
  6823. super.mergeFrom(other);
  6824. return this;
  6825. }
  6826. }
  6827. public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo other) {
  6828. if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.getDefaultInstance()) return this;
  6829. if (other.hasName()) {
  6830. setName(other.getName());
  6831. }
  6832. if (other.hasVersion()) {
  6833. setVersion(other.getVersion());
  6834. }
  6835. if (other.hasObjectsTotal()) {
  6836. setObjectsTotal(other.getObjectsTotal());
  6837. }
  6838. if (other.hasObjectsDelta()) {
  6839. setObjectsDelta(other.getObjectsDelta());
  6840. }
  6841. if (other.hasBytesTotal()) {
  6842. setBytesTotal(other.getBytesTotal());
  6843. }
  6844. if (other.hasTipList()) {
  6845. mergeTipList(other.getTipList());
  6846. }
  6847. if (other.hasChunkList()) {
  6848. mergeChunkList(other.getChunkList());
  6849. }
  6850. this.mergeUnknownFields(other.getUnknownFields());
  6851. return this;
  6852. }
  6853. public final boolean isInitialized() {
  6854. if (!hasName()) {
  6855. return false;
  6856. }
  6857. if (!hasVersion()) {
  6858. return false;
  6859. }
  6860. if (!hasObjectsTotal()) {
  6861. return false;
  6862. }
  6863. if (!hasTipList()) {
  6864. return false;
  6865. }
  6866. if (!hasChunkList()) {
  6867. return false;
  6868. }
  6869. return true;
  6870. }
  6871. public Builder mergeFrom(
  6872. com.google.protobuf.CodedInputStream input,
  6873. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  6874. throws java.io.IOException {
  6875. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  6876. com.google.protobuf.UnknownFieldSet.newBuilder(
  6877. this.getUnknownFields());
  6878. while (true) {
  6879. int tag = input.readTag();
  6880. switch (tag) {
  6881. case 0:
  6882. this.setUnknownFields(unknownFields.build());
  6883. onChanged();
  6884. return this;
  6885. default: {
  6886. if (!parseUnknownField(input, unknownFields,
  6887. extensionRegistry, tag)) {
  6888. this.setUnknownFields(unknownFields.build());
  6889. onChanged();
  6890. return this;
  6891. }
  6892. break;
  6893. }
  6894. case 10: {
  6895. bitField0_ |= 0x00000001;
  6896. name_ = input.readBytes();
  6897. break;
  6898. }
  6899. case 18: {
  6900. bitField0_ |= 0x00000002;
  6901. version_ = input.readBytes();
  6902. break;
  6903. }
  6904. case 24: {
  6905. bitField0_ |= 0x00000004;
  6906. objectsTotal_ = input.readInt64();
  6907. break;
  6908. }
  6909. case 32: {
  6910. bitField0_ |= 0x00000008;
  6911. objectsDelta_ = input.readInt64();
  6912. break;
  6913. }
  6914. case 40: {
  6915. bitField0_ |= 0x00000010;
  6916. bytesTotal_ = input.readInt64();
  6917. break;
  6918. }
  6919. case 50: {
  6920. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.newBuilder();
  6921. if (hasTipList()) {
  6922. subBuilder.mergeFrom(getTipList());
  6923. }
  6924. input.readMessage(subBuilder, extensionRegistry);
  6925. setTipList(subBuilder.buildPartial());
  6926. break;
  6927. }
  6928. case 58: {
  6929. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.Builder subBuilder = org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.newBuilder();
  6930. if (hasChunkList()) {
  6931. subBuilder.mergeFrom(getChunkList());
  6932. }
  6933. input.readMessage(subBuilder, extensionRegistry);
  6934. setChunkList(subBuilder.buildPartial());
  6935. break;
  6936. }
  6937. }
  6938. }
  6939. }
  6940. private int bitField0_;
  6941. // required string name = 1;
  6942. private Object name_ = "";
  6943. public boolean hasName() {
  6944. return ((bitField0_ & 0x00000001) == 0x00000001);
  6945. }
  6946. public String getName() {
  6947. Object ref = name_;
  6948. if (!(ref instanceof String)) {
  6949. String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
  6950. name_ = s;
  6951. return s;
  6952. } else {
  6953. return (String) ref;
  6954. }
  6955. }
  6956. public Builder setName(String value) {
  6957. if (value == null) {
  6958. throw new NullPointerException();
  6959. }
  6960. bitField0_ |= 0x00000001;
  6961. name_ = value;
  6962. onChanged();
  6963. return this;
  6964. }
  6965. public Builder clearName() {
  6966. bitField0_ = (bitField0_ & ~0x00000001);
  6967. name_ = getDefaultInstance().getName();
  6968. onChanged();
  6969. return this;
  6970. }
  6971. void setName(com.google.protobuf.ByteString value) {
  6972. bitField0_ |= 0x00000001;
  6973. name_ = value;
  6974. onChanged();
  6975. }
  6976. // required string version = 2;
  6977. private Object version_ = "";
  6978. public boolean hasVersion() {
  6979. return ((bitField0_ & 0x00000002) == 0x00000002);
  6980. }
  6981. public String getVersion() {
  6982. Object ref = version_;
  6983. if (!(ref instanceof String)) {
  6984. String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
  6985. version_ = s;
  6986. return s;
  6987. } else {
  6988. return (String) ref;
  6989. }
  6990. }
  6991. public Builder setVersion(String value) {
  6992. if (value == null) {
  6993. throw new NullPointerException();
  6994. }
  6995. bitField0_ |= 0x00000002;
  6996. version_ = value;
  6997. onChanged();
  6998. return this;
  6999. }
  7000. public Builder clearVersion() {
  7001. bitField0_ = (bitField0_ & ~0x00000002);
  7002. version_ = getDefaultInstance().getVersion();
  7003. onChanged();
  7004. return this;
  7005. }
  7006. void setVersion(com.google.protobuf.ByteString value) {
  7007. bitField0_ |= 0x00000002;
  7008. version_ = value;
  7009. onChanged();
  7010. }
  7011. // required int64 objects_total = 3;
  7012. private long objectsTotal_ ;
  7013. public boolean hasObjectsTotal() {
  7014. return ((bitField0_ & 0x00000004) == 0x00000004);
  7015. }
  7016. public long getObjectsTotal() {
  7017. return objectsTotal_;
  7018. }
  7019. public Builder setObjectsTotal(long value) {
  7020. bitField0_ |= 0x00000004;
  7021. objectsTotal_ = value;
  7022. onChanged();
  7023. return this;
  7024. }
  7025. public Builder clearObjectsTotal() {
  7026. bitField0_ = (bitField0_ & ~0x00000004);
  7027. objectsTotal_ = 0L;
  7028. onChanged();
  7029. return this;
  7030. }
  7031. // optional int64 objects_delta = 4;
  7032. private long objectsDelta_ ;
  7033. public boolean hasObjectsDelta() {
  7034. return ((bitField0_ & 0x00000008) == 0x00000008);
  7035. }
  7036. public long getObjectsDelta() {
  7037. return objectsDelta_;
  7038. }
  7039. public Builder setObjectsDelta(long value) {
  7040. bitField0_ |= 0x00000008;
  7041. objectsDelta_ = value;
  7042. onChanged();
  7043. return this;
  7044. }
  7045. public Builder clearObjectsDelta() {
  7046. bitField0_ = (bitField0_ & ~0x00000008);
  7047. objectsDelta_ = 0L;
  7048. onChanged();
  7049. return this;
  7050. }
  7051. // optional int64 bytes_total = 5;
  7052. private long bytesTotal_ ;
  7053. public boolean hasBytesTotal() {
  7054. return ((bitField0_ & 0x00000010) == 0x00000010);
  7055. }
  7056. public long getBytesTotal() {
  7057. return bytesTotal_;
  7058. }
  7059. public Builder setBytesTotal(long value) {
  7060. bitField0_ |= 0x00000010;
  7061. bytesTotal_ = value;
  7062. onChanged();
  7063. return this;
  7064. }
  7065. public Builder clearBytesTotal() {
  7066. bitField0_ = (bitField0_ & ~0x00000010);
  7067. bytesTotal_ = 0L;
  7068. onChanged();
  7069. return this;
  7070. }
  7071. // required .org.eclipse.jgit.storage.dht.CachedPackInfo.TipObjectList tip_list = 6;
  7072. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList tipList_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.getDefaultInstance();
  7073. private com.google.protobuf.SingleFieldBuilder<
  7074. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectListOrBuilder> tipListBuilder_;
  7075. public boolean hasTipList() {
  7076. return ((bitField0_ & 0x00000020) == 0x00000020);
  7077. }
  7078. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList getTipList() {
  7079. if (tipListBuilder_ == null) {
  7080. return tipList_;
  7081. } else {
  7082. return tipListBuilder_.getMessage();
  7083. }
  7084. }
  7085. public Builder setTipList(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList value) {
  7086. if (tipListBuilder_ == null) {
  7087. if (value == null) {
  7088. throw new NullPointerException();
  7089. }
  7090. tipList_ = value;
  7091. onChanged();
  7092. } else {
  7093. tipListBuilder_.setMessage(value);
  7094. }
  7095. bitField0_ |= 0x00000020;
  7096. return this;
  7097. }
  7098. public Builder setTipList(
  7099. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.Builder builderForValue) {
  7100. if (tipListBuilder_ == null) {
  7101. tipList_ = builderForValue.build();
  7102. onChanged();
  7103. } else {
  7104. tipListBuilder_.setMessage(builderForValue.build());
  7105. }
  7106. bitField0_ |= 0x00000020;
  7107. return this;
  7108. }
  7109. public Builder mergeTipList(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList value) {
  7110. if (tipListBuilder_ == null) {
  7111. if (((bitField0_ & 0x00000020) == 0x00000020) &&
  7112. tipList_ != org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.getDefaultInstance()) {
  7113. tipList_ =
  7114. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.newBuilder(tipList_).mergeFrom(value).buildPartial();
  7115. } else {
  7116. tipList_ = value;
  7117. }
  7118. onChanged();
  7119. } else {
  7120. tipListBuilder_.mergeFrom(value);
  7121. }
  7122. bitField0_ |= 0x00000020;
  7123. return this;
  7124. }
  7125. public Builder clearTipList() {
  7126. if (tipListBuilder_ == null) {
  7127. tipList_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.getDefaultInstance();
  7128. onChanged();
  7129. } else {
  7130. tipListBuilder_.clear();
  7131. }
  7132. bitField0_ = (bitField0_ & ~0x00000020);
  7133. return this;
  7134. }
  7135. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.Builder getTipListBuilder() {
  7136. bitField0_ |= 0x00000020;
  7137. onChanged();
  7138. return getTipListFieldBuilder().getBuilder();
  7139. }
  7140. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectListOrBuilder getTipListOrBuilder() {
  7141. if (tipListBuilder_ != null) {
  7142. return tipListBuilder_.getMessageOrBuilder();
  7143. } else {
  7144. return tipList_;
  7145. }
  7146. }
  7147. private com.google.protobuf.SingleFieldBuilder<
  7148. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectListOrBuilder>
  7149. getTipListFieldBuilder() {
  7150. if (tipListBuilder_ == null) {
  7151. tipListBuilder_ = new com.google.protobuf.SingleFieldBuilder<
  7152. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectListOrBuilder>(
  7153. tipList_,
  7154. getParentForChildren(),
  7155. isClean());
  7156. tipList_ = null;
  7157. }
  7158. return tipListBuilder_;
  7159. }
  7160. // required .org.eclipse.jgit.storage.dht.CachedPackInfo.ChunkList chunk_list = 7;
  7161. private org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList chunkList_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.getDefaultInstance();
  7162. private com.google.protobuf.SingleFieldBuilder<
  7163. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkListOrBuilder> chunkListBuilder_;
  7164. public boolean hasChunkList() {
  7165. return ((bitField0_ & 0x00000040) == 0x00000040);
  7166. }
  7167. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList getChunkList() {
  7168. if (chunkListBuilder_ == null) {
  7169. return chunkList_;
  7170. } else {
  7171. return chunkListBuilder_.getMessage();
  7172. }
  7173. }
  7174. public Builder setChunkList(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList value) {
  7175. if (chunkListBuilder_ == null) {
  7176. if (value == null) {
  7177. throw new NullPointerException();
  7178. }
  7179. chunkList_ = value;
  7180. onChanged();
  7181. } else {
  7182. chunkListBuilder_.setMessage(value);
  7183. }
  7184. bitField0_ |= 0x00000040;
  7185. return this;
  7186. }
  7187. public Builder setChunkList(
  7188. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.Builder builderForValue) {
  7189. if (chunkListBuilder_ == null) {
  7190. chunkList_ = builderForValue.build();
  7191. onChanged();
  7192. } else {
  7193. chunkListBuilder_.setMessage(builderForValue.build());
  7194. }
  7195. bitField0_ |= 0x00000040;
  7196. return this;
  7197. }
  7198. public Builder mergeChunkList(org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList value) {
  7199. if (chunkListBuilder_ == null) {
  7200. if (((bitField0_ & 0x00000040) == 0x00000040) &&
  7201. chunkList_ != org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.getDefaultInstance()) {
  7202. chunkList_ =
  7203. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.newBuilder(chunkList_).mergeFrom(value).buildPartial();
  7204. } else {
  7205. chunkList_ = value;
  7206. }
  7207. onChanged();
  7208. } else {
  7209. chunkListBuilder_.mergeFrom(value);
  7210. }
  7211. bitField0_ |= 0x00000040;
  7212. return this;
  7213. }
  7214. public Builder clearChunkList() {
  7215. if (chunkListBuilder_ == null) {
  7216. chunkList_ = org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.getDefaultInstance();
  7217. onChanged();
  7218. } else {
  7219. chunkListBuilder_.clear();
  7220. }
  7221. bitField0_ = (bitField0_ & ~0x00000040);
  7222. return this;
  7223. }
  7224. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.Builder getChunkListBuilder() {
  7225. bitField0_ |= 0x00000040;
  7226. onChanged();
  7227. return getChunkListFieldBuilder().getBuilder();
  7228. }
  7229. public org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkListOrBuilder getChunkListOrBuilder() {
  7230. if (chunkListBuilder_ != null) {
  7231. return chunkListBuilder_.getMessageOrBuilder();
  7232. } else {
  7233. return chunkList_;
  7234. }
  7235. }
  7236. private com.google.protobuf.SingleFieldBuilder<
  7237. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkListOrBuilder>
  7238. getChunkListFieldBuilder() {
  7239. if (chunkListBuilder_ == null) {
  7240. chunkListBuilder_ = new com.google.protobuf.SingleFieldBuilder<
  7241. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.Builder, org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkListOrBuilder>(
  7242. chunkList_,
  7243. getParentForChildren(),
  7244. isClean());
  7245. chunkList_ = null;
  7246. }
  7247. return chunkListBuilder_;
  7248. }
  7249. // @@protoc_insertion_point(builder_scope:org.eclipse.jgit.storage.dht.CachedPackInfo)
  7250. }
  7251. static {
  7252. defaultInstance = new CachedPackInfo(true);
  7253. defaultInstance.initFields();
  7254. }
  7255. // @@protoc_insertion_point(class_scope:org.eclipse.jgit.storage.dht.CachedPackInfo)
  7256. }
  7257. private static com.google.protobuf.Descriptors.Descriptor
  7258. internal_static_org_eclipse_jgit_storage_dht_RefData_descriptor;
  7259. private static
  7260. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  7261. internal_static_org_eclipse_jgit_storage_dht_RefData_fieldAccessorTable;
  7262. private static com.google.protobuf.Descriptors.Descriptor
  7263. internal_static_org_eclipse_jgit_storage_dht_RefData_Id_descriptor;
  7264. private static
  7265. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  7266. internal_static_org_eclipse_jgit_storage_dht_RefData_Id_fieldAccessorTable;
  7267. private static com.google.protobuf.Descriptors.Descriptor
  7268. internal_static_org_eclipse_jgit_storage_dht_ObjectInfo_descriptor;
  7269. private static
  7270. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  7271. internal_static_org_eclipse_jgit_storage_dht_ObjectInfo_fieldAccessorTable;
  7272. private static com.google.protobuf.Descriptors.Descriptor
  7273. internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_descriptor;
  7274. private static
  7275. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  7276. internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_fieldAccessorTable;
  7277. private static com.google.protobuf.Descriptors.Descriptor
  7278. internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_ObjectCounts_descriptor;
  7279. private static
  7280. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  7281. internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_ObjectCounts_fieldAccessorTable;
  7282. private static com.google.protobuf.Descriptors.Descriptor
  7283. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_descriptor;
  7284. private static
  7285. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  7286. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_fieldAccessorTable;
  7287. private static com.google.protobuf.Descriptors.Descriptor
  7288. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_BaseChunk_descriptor;
  7289. private static
  7290. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  7291. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_BaseChunk_fieldAccessorTable;
  7292. private static com.google.protobuf.Descriptors.Descriptor
  7293. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_PrefetchHint_descriptor;
  7294. private static
  7295. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  7296. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_PrefetchHint_fieldAccessorTable;
  7297. private static com.google.protobuf.Descriptors.Descriptor
  7298. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_descriptor;
  7299. private static
  7300. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  7301. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_fieldAccessorTable;
  7302. private static com.google.protobuf.Descriptors.Descriptor
  7303. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_TipObjectList_descriptor;
  7304. private static
  7305. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  7306. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_TipObjectList_fieldAccessorTable;
  7307. private static com.google.protobuf.Descriptors.Descriptor
  7308. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_ChunkList_descriptor;
  7309. private static
  7310. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  7311. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_ChunkList_fieldAccessorTable;
  7312. public static com.google.protobuf.Descriptors.FileDescriptor
  7313. getDescriptor() {
  7314. return descriptor;
  7315. }
  7316. private static com.google.protobuf.Descriptors.FileDescriptor
  7317. descriptor;
  7318. static {
  7319. java.lang.String[] descriptorData = {
  7320. "\n,org/eclipse/jgit/storage/dht/git_store" +
  7321. ".proto\022\034org.eclipse.jgit.storage.dht\"\343\001\n" +
  7322. "\007RefData\022\023\n\010sequence\030\005 \002(\r:\0010\022\016\n\006symref\030" +
  7323. "\001 \001(\t\0228\n\006target\030\002 \001(\0132(.org.eclipse.jgit" +
  7324. ".storage.dht.RefData.Id\022\021\n\tis_peeled\030\003 \001" +
  7325. "(\010\0228\n\006peeled\030\004 \001(\0132(.org.eclipse.jgit.st" +
  7326. "orage.dht.RefData.Id\032,\n\002Id\022\023\n\013object_nam" +
  7327. "e\030\001 \002(\t\022\021\n\tchunk_key\030\002 \001(\t\"\364\001\n\nObjectInf" +
  7328. "o\022H\n\013object_type\030\001 \001(\01623.org.eclipse.jgi" +
  7329. "t.storage.dht.ObjectInfo.ObjectType\022\016\n\006o",
  7330. "ffset\030\002 \002(\005\022\023\n\013packed_size\030\003 \002(\003\022\025\n\rinfl" +
  7331. "ated_size\030\004 \002(\003\022\022\n\ndelta_base\030\005 \001(\014\022\025\n\ri" +
  7332. "s_fragmented\030\006 \001(\010\"5\n\nObjectType\022\n\n\006COMM" +
  7333. "IT\020\001\022\010\n\004TREE\020\002\022\010\n\004BLOB\020\003\022\007\n\003TAG\020\004\"\217\004\n\tCh" +
  7334. "unkInfo\022>\n\006source\030\001 \001(\0162..org.eclipse.jg" +
  7335. "it.storage.dht.ChunkInfo.Source\022G\n\013objec" +
  7336. "t_type\030\002 \001(\01622.org.eclipse.jgit.storage." +
  7337. "dht.ChunkInfo.ObjectType\022\023\n\013is_fragment\030" +
  7338. "\003 \001(\010\022\027\n\017cached_pack_key\030\004 \001(\t\022K\n\robject" +
  7339. "_counts\030\005 \001(\01324.org.eclipse.jgit.storage",
  7340. ".dht.ChunkInfo.ObjectCounts\022\022\n\nchunk_siz" +
  7341. "e\030\006 \001(\005\022\022\n\nindex_size\030\007 \001(\005\022\021\n\tmeta_size" +
  7342. "\030\010 \001(\005\032R\n\014ObjectCounts\022\r\n\005total\030\001 \001(\005\022\r\n" +
  7343. "\005whole\030\002 \001(\005\022\021\n\tofs_delta\030\003 \001(\005\022\021\n\tref_d" +
  7344. "elta\030\004 \001(\005\"-\n\006Source\022\013\n\007RECEIVE\020\001\022\n\n\006INS" +
  7345. "ERT\020\002\022\n\n\006REPACK\020\003\"@\n\nObjectType\022\t\n\005MIXED" +
  7346. "\020\000\022\n\n\006COMMIT\020\001\022\010\n\004TREE\020\002\022\010\n\004BLOB\020\003\022\007\n\003TA" +
  7347. "G\020\004\"\352\002\n\tChunkMeta\022E\n\nbase_chunk\030\001 \003(\01321." +
  7348. "org.eclipse.jgit.storage.dht.ChunkMeta.B" +
  7349. "aseChunk\022\020\n\010fragment\030\002 \003(\t\022M\n\017commit_pre",
  7350. "fetch\0303 \001(\01324.org.eclipse.jgit.storage.d" +
  7351. "ht.ChunkMeta.PrefetchHint\022K\n\rtree_prefet" +
  7352. "ch\0304 \001(\01324.org.eclipse.jgit.storage.dht." +
  7353. "ChunkMeta.PrefetchHint\0326\n\tBaseChunk\022\026\n\016r" +
  7354. "elative_start\030\001 \002(\003\022\021\n\tchunk_key\030\002 \002(\t\0320" +
  7355. "\n\014PrefetchHint\022\014\n\004edge\030\001 \003(\t\022\022\n\nsequenti" +
  7356. "al\030\002 \003(\t\"\322\002\n\016CachedPackInfo\022\014\n\004name\030\001 \002(" +
  7357. "\t\022\017\n\007version\030\002 \002(\t\022\025\n\robjects_total\030\003 \002(" +
  7358. "\003\022\025\n\robjects_delta\030\004 \001(\003\022\023\n\013bytes_total\030" +
  7359. "\005 \001(\003\022L\n\010tip_list\030\006 \002(\0132:.org.eclipse.jg",
  7360. "it.storage.dht.CachedPackInfo.TipObjectL" +
  7361. "ist\022J\n\nchunk_list\030\007 \002(\01326.org.eclipse.jg" +
  7362. "it.storage.dht.CachedPackInfo.ChunkList\032" +
  7363. "$\n\rTipObjectList\022\023\n\013object_name\030\001 \003(\t\032\036\n" +
  7364. "\tChunkList\022\021\n\tchunk_key\030\001 \003(\tB1\n,org.ecl" +
  7365. "ipse.jgit.generated.storage.dht.proto\240\001\001"
  7366. };
  7367. com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
  7368. new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
  7369. public com.google.protobuf.ExtensionRegistry assignDescriptors(
  7370. com.google.protobuf.Descriptors.FileDescriptor root) {
  7371. descriptor = root;
  7372. internal_static_org_eclipse_jgit_storage_dht_RefData_descriptor =
  7373. getDescriptor().getMessageTypes().get(0);
  7374. internal_static_org_eclipse_jgit_storage_dht_RefData_fieldAccessorTable = new
  7375. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  7376. internal_static_org_eclipse_jgit_storage_dht_RefData_descriptor,
  7377. new java.lang.String[] { "Sequence", "Symref", "Target", "IsPeeled", "Peeled", },
  7378. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.class,
  7379. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Builder.class);
  7380. internal_static_org_eclipse_jgit_storage_dht_RefData_Id_descriptor =
  7381. internal_static_org_eclipse_jgit_storage_dht_RefData_descriptor.getNestedTypes().get(0);
  7382. internal_static_org_eclipse_jgit_storage_dht_RefData_Id_fieldAccessorTable = new
  7383. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  7384. internal_static_org_eclipse_jgit_storage_dht_RefData_Id_descriptor,
  7385. new java.lang.String[] { "ObjectName", "ChunkKey", },
  7386. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.class,
  7387. org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.Id.Builder.class);
  7388. internal_static_org_eclipse_jgit_storage_dht_ObjectInfo_descriptor =
  7389. getDescriptor().getMessageTypes().get(1);
  7390. internal_static_org_eclipse_jgit_storage_dht_ObjectInfo_fieldAccessorTable = new
  7391. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  7392. internal_static_org_eclipse_jgit_storage_dht_ObjectInfo_descriptor,
  7393. new java.lang.String[] { "ObjectType", "Offset", "PackedSize", "InflatedSize", "DeltaBase", "IsFragmented", },
  7394. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.class,
  7395. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ObjectInfo.Builder.class);
  7396. internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_descriptor =
  7397. getDescriptor().getMessageTypes().get(2);
  7398. internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_fieldAccessorTable = new
  7399. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  7400. internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_descriptor,
  7401. new java.lang.String[] { "Source", "ObjectType", "IsFragment", "CachedPackKey", "ObjectCounts", "ChunkSize", "IndexSize", "MetaSize", },
  7402. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.class,
  7403. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.Builder.class);
  7404. internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_ObjectCounts_descriptor =
  7405. internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_descriptor.getNestedTypes().get(0);
  7406. internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_ObjectCounts_fieldAccessorTable = new
  7407. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  7408. internal_static_org_eclipse_jgit_storage_dht_ChunkInfo_ObjectCounts_descriptor,
  7409. new java.lang.String[] { "Total", "Whole", "OfsDelta", "RefDelta", },
  7410. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.class,
  7411. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkInfo.ObjectCounts.Builder.class);
  7412. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_descriptor =
  7413. getDescriptor().getMessageTypes().get(3);
  7414. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_fieldAccessorTable = new
  7415. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  7416. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_descriptor,
  7417. new java.lang.String[] { "BaseChunk", "Fragment", "CommitPrefetch", "TreePrefetch", },
  7418. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.class,
  7419. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.Builder.class);
  7420. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_BaseChunk_descriptor =
  7421. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_descriptor.getNestedTypes().get(0);
  7422. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_BaseChunk_fieldAccessorTable = new
  7423. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  7424. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_BaseChunk_descriptor,
  7425. new java.lang.String[] { "RelativeStart", "ChunkKey", },
  7426. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.class,
  7427. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.Builder.class);
  7428. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_PrefetchHint_descriptor =
  7429. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_descriptor.getNestedTypes().get(1);
  7430. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_PrefetchHint_fieldAccessorTable = new
  7431. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  7432. internal_static_org_eclipse_jgit_storage_dht_ChunkMeta_PrefetchHint_descriptor,
  7433. new java.lang.String[] { "Edge", "Sequential", },
  7434. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.class,
  7435. org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint.Builder.class);
  7436. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_descriptor =
  7437. getDescriptor().getMessageTypes().get(4);
  7438. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_fieldAccessorTable = new
  7439. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  7440. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_descriptor,
  7441. new java.lang.String[] { "Name", "Version", "ObjectsTotal", "ObjectsDelta", "BytesTotal", "TipList", "ChunkList", },
  7442. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.class,
  7443. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.Builder.class);
  7444. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_TipObjectList_descriptor =
  7445. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_descriptor.getNestedTypes().get(0);
  7446. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_TipObjectList_fieldAccessorTable = new
  7447. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  7448. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_TipObjectList_descriptor,
  7449. new java.lang.String[] { "ObjectName", },
  7450. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.class,
  7451. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.TipObjectList.Builder.class);
  7452. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_ChunkList_descriptor =
  7453. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_descriptor.getNestedTypes().get(1);
  7454. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_ChunkList_fieldAccessorTable = new
  7455. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  7456. internal_static_org_eclipse_jgit_storage_dht_CachedPackInfo_ChunkList_descriptor,
  7457. new java.lang.String[] { "ChunkKey", },
  7458. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.class,
  7459. org.eclipse.jgit.generated.storage.dht.proto.GitStore.CachedPackInfo.ChunkList.Builder.class);
  7460. return null;
  7461. }
  7462. };
  7463. com.google.protobuf.Descriptors.FileDescriptor
  7464. .internalBuildGeneratedFileFrom(descriptorData,
  7465. new com.google.protobuf.Descriptors.FileDescriptor[] {
  7466. }, assigner);
  7467. }
  7468. // @@protoc_insertion_point(outer_class_scope)
  7469. }