opencv-onnx.pb.h 283 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: opencv-onnx.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_opencv_2donnx_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_opencv_2donnx_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3019000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3019001 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/metadata_lite.h>
  25. #include <google/protobuf/generated_message_reflection.h>
  26. #include <google/protobuf/message.h>
  27. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  28. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  29. #include <google/protobuf/generated_enum_reflection.h>
  30. #include <google/protobuf/unknown_field_set.h>
  31. // @@protoc_insertion_point(includes)
  32. #include <google/protobuf/port_def.inc>
  33. #define PROTOBUF_INTERNAL_EXPORT_opencv_2donnx_2eproto
  34. PROTOBUF_NAMESPACE_OPEN
  35. namespace internal {
  36. class AnyMetadata;
  37. } // namespace internal
  38. PROTOBUF_NAMESPACE_CLOSE
  39. // Internal implementation detail -- do not use these members.
  40. struct TableStruct_opencv_2donnx_2eproto {
  41. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  42. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  43. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  44. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  45. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[13]
  46. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  47. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  49. static const uint32_t offsets[];
  50. };
  51. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_opencv_2donnx_2eproto;
  52. namespace opencv_onnx {
  53. class AttributeProto;
  54. struct AttributeProtoDefaultTypeInternal;
  55. extern AttributeProtoDefaultTypeInternal _AttributeProto_default_instance_;
  56. class GraphProto;
  57. struct GraphProtoDefaultTypeInternal;
  58. extern GraphProtoDefaultTypeInternal _GraphProto_default_instance_;
  59. class ModelProto;
  60. struct ModelProtoDefaultTypeInternal;
  61. extern ModelProtoDefaultTypeInternal _ModelProto_default_instance_;
  62. class NodeProto;
  63. struct NodeProtoDefaultTypeInternal;
  64. extern NodeProtoDefaultTypeInternal _NodeProto_default_instance_;
  65. class OperatorSetIdProto;
  66. struct OperatorSetIdProtoDefaultTypeInternal;
  67. extern OperatorSetIdProtoDefaultTypeInternal _OperatorSetIdProto_default_instance_;
  68. class StringStringEntryProto;
  69. struct StringStringEntryProtoDefaultTypeInternal;
  70. extern StringStringEntryProtoDefaultTypeInternal _StringStringEntryProto_default_instance_;
  71. class TensorProto;
  72. struct TensorProtoDefaultTypeInternal;
  73. extern TensorProtoDefaultTypeInternal _TensorProto_default_instance_;
  74. class TensorProto_Segment;
  75. struct TensorProto_SegmentDefaultTypeInternal;
  76. extern TensorProto_SegmentDefaultTypeInternal _TensorProto_Segment_default_instance_;
  77. class TensorShapeProto;
  78. struct TensorShapeProtoDefaultTypeInternal;
  79. extern TensorShapeProtoDefaultTypeInternal _TensorShapeProto_default_instance_;
  80. class TensorShapeProto_Dimension;
  81. struct TensorShapeProto_DimensionDefaultTypeInternal;
  82. extern TensorShapeProto_DimensionDefaultTypeInternal _TensorShapeProto_Dimension_default_instance_;
  83. class TypeProto;
  84. struct TypeProtoDefaultTypeInternal;
  85. extern TypeProtoDefaultTypeInternal _TypeProto_default_instance_;
  86. class TypeProto_Tensor;
  87. struct TypeProto_TensorDefaultTypeInternal;
  88. extern TypeProto_TensorDefaultTypeInternal _TypeProto_Tensor_default_instance_;
  89. class ValueInfoProto;
  90. struct ValueInfoProtoDefaultTypeInternal;
  91. extern ValueInfoProtoDefaultTypeInternal _ValueInfoProto_default_instance_;
  92. } // namespace opencv_onnx
  93. PROTOBUF_NAMESPACE_OPEN
  94. template<> ::opencv_onnx::AttributeProto* Arena::CreateMaybeMessage<::opencv_onnx::AttributeProto>(Arena*);
  95. template<> ::opencv_onnx::GraphProto* Arena::CreateMaybeMessage<::opencv_onnx::GraphProto>(Arena*);
  96. template<> ::opencv_onnx::ModelProto* Arena::CreateMaybeMessage<::opencv_onnx::ModelProto>(Arena*);
  97. template<> ::opencv_onnx::NodeProto* Arena::CreateMaybeMessage<::opencv_onnx::NodeProto>(Arena*);
  98. template<> ::opencv_onnx::OperatorSetIdProto* Arena::CreateMaybeMessage<::opencv_onnx::OperatorSetIdProto>(Arena*);
  99. template<> ::opencv_onnx::StringStringEntryProto* Arena::CreateMaybeMessage<::opencv_onnx::StringStringEntryProto>(Arena*);
  100. template<> ::opencv_onnx::TensorProto* Arena::CreateMaybeMessage<::opencv_onnx::TensorProto>(Arena*);
  101. template<> ::opencv_onnx::TensorProto_Segment* Arena::CreateMaybeMessage<::opencv_onnx::TensorProto_Segment>(Arena*);
  102. template<> ::opencv_onnx::TensorShapeProto* Arena::CreateMaybeMessage<::opencv_onnx::TensorShapeProto>(Arena*);
  103. template<> ::opencv_onnx::TensorShapeProto_Dimension* Arena::CreateMaybeMessage<::opencv_onnx::TensorShapeProto_Dimension>(Arena*);
  104. template<> ::opencv_onnx::TypeProto* Arena::CreateMaybeMessage<::opencv_onnx::TypeProto>(Arena*);
  105. template<> ::opencv_onnx::TypeProto_Tensor* Arena::CreateMaybeMessage<::opencv_onnx::TypeProto_Tensor>(Arena*);
  106. template<> ::opencv_onnx::ValueInfoProto* Arena::CreateMaybeMessage<::opencv_onnx::ValueInfoProto>(Arena*);
  107. PROTOBUF_NAMESPACE_CLOSE
  108. namespace opencv_onnx {
  109. enum AttributeProto_AttributeType : int {
  110. AttributeProto_AttributeType_UNDEFINED = 0,
  111. AttributeProto_AttributeType_FLOAT = 1,
  112. AttributeProto_AttributeType_INT = 2,
  113. AttributeProto_AttributeType_STRING = 3,
  114. AttributeProto_AttributeType_TENSOR = 4,
  115. AttributeProto_AttributeType_GRAPH = 5,
  116. AttributeProto_AttributeType_FLOATS = 6,
  117. AttributeProto_AttributeType_INTS = 7,
  118. AttributeProto_AttributeType_STRINGS = 8,
  119. AttributeProto_AttributeType_TENSORS = 9,
  120. AttributeProto_AttributeType_GRAPHS = 10
  121. };
  122. bool AttributeProto_AttributeType_IsValid(int value);
  123. constexpr AttributeProto_AttributeType AttributeProto_AttributeType_AttributeType_MIN = AttributeProto_AttributeType_UNDEFINED;
  124. constexpr AttributeProto_AttributeType AttributeProto_AttributeType_AttributeType_MAX = AttributeProto_AttributeType_GRAPHS;
  125. constexpr int AttributeProto_AttributeType_AttributeType_ARRAYSIZE = AttributeProto_AttributeType_AttributeType_MAX + 1;
  126. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AttributeProto_AttributeType_descriptor();
  127. template<typename T>
  128. inline const std::string& AttributeProto_AttributeType_Name(T enum_t_value) {
  129. static_assert(::std::is_same<T, AttributeProto_AttributeType>::value ||
  130. ::std::is_integral<T>::value,
  131. "Incorrect type passed to function AttributeProto_AttributeType_Name.");
  132. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  133. AttributeProto_AttributeType_descriptor(), enum_t_value);
  134. }
  135. inline bool AttributeProto_AttributeType_Parse(
  136. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AttributeProto_AttributeType* value) {
  137. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AttributeProto_AttributeType>(
  138. AttributeProto_AttributeType_descriptor(), name, value);
  139. }
  140. enum TensorProto_DataType : int {
  141. TensorProto_DataType_UNDEFINED = 0,
  142. TensorProto_DataType_FLOAT = 1,
  143. TensorProto_DataType_UINT8 = 2,
  144. TensorProto_DataType_INT8 = 3,
  145. TensorProto_DataType_UINT16 = 4,
  146. TensorProto_DataType_INT16 = 5,
  147. TensorProto_DataType_INT32 = 6,
  148. TensorProto_DataType_INT64 = 7,
  149. TensorProto_DataType_STRING = 8,
  150. TensorProto_DataType_BOOL = 9,
  151. TensorProto_DataType_FLOAT16 = 10,
  152. TensorProto_DataType_DOUBLE = 11,
  153. TensorProto_DataType_UINT32 = 12,
  154. TensorProto_DataType_UINT64 = 13,
  155. TensorProto_DataType_COMPLEX64 = 14,
  156. TensorProto_DataType_COMPLEX128 = 15
  157. };
  158. bool TensorProto_DataType_IsValid(int value);
  159. constexpr TensorProto_DataType TensorProto_DataType_DataType_MIN = TensorProto_DataType_UNDEFINED;
  160. constexpr TensorProto_DataType TensorProto_DataType_DataType_MAX = TensorProto_DataType_COMPLEX128;
  161. constexpr int TensorProto_DataType_DataType_ARRAYSIZE = TensorProto_DataType_DataType_MAX + 1;
  162. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TensorProto_DataType_descriptor();
  163. template<typename T>
  164. inline const std::string& TensorProto_DataType_Name(T enum_t_value) {
  165. static_assert(::std::is_same<T, TensorProto_DataType>::value ||
  166. ::std::is_integral<T>::value,
  167. "Incorrect type passed to function TensorProto_DataType_Name.");
  168. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  169. TensorProto_DataType_descriptor(), enum_t_value);
  170. }
  171. inline bool TensorProto_DataType_Parse(
  172. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TensorProto_DataType* value) {
  173. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TensorProto_DataType>(
  174. TensorProto_DataType_descriptor(), name, value);
  175. }
  176. enum Version : int {
  177. _START_VERSION = 0,
  178. IR_VERSION_2017_10_10 = 1,
  179. IR_VERSION_2017_10_30 = 2,
  180. IR_VERSION = 3
  181. };
  182. bool Version_IsValid(int value);
  183. constexpr Version Version_MIN = _START_VERSION;
  184. constexpr Version Version_MAX = IR_VERSION;
  185. constexpr int Version_ARRAYSIZE = Version_MAX + 1;
  186. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Version_descriptor();
  187. template<typename T>
  188. inline const std::string& Version_Name(T enum_t_value) {
  189. static_assert(::std::is_same<T, Version>::value ||
  190. ::std::is_integral<T>::value,
  191. "Incorrect type passed to function Version_Name.");
  192. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  193. Version_descriptor(), enum_t_value);
  194. }
  195. inline bool Version_Parse(
  196. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Version* value) {
  197. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Version>(
  198. Version_descriptor(), name, value);
  199. }
  200. // ===================================================================
  201. class AttributeProto final :
  202. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.AttributeProto) */ {
  203. public:
  204. inline AttributeProto() : AttributeProto(nullptr) {}
  205. ~AttributeProto() override;
  206. explicit constexpr AttributeProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  207. AttributeProto(const AttributeProto& from);
  208. AttributeProto(AttributeProto&& from) noexcept
  209. : AttributeProto() {
  210. *this = ::std::move(from);
  211. }
  212. inline AttributeProto& operator=(const AttributeProto& from) {
  213. CopyFrom(from);
  214. return *this;
  215. }
  216. inline AttributeProto& operator=(AttributeProto&& from) noexcept {
  217. if (this == &from) return *this;
  218. if (GetOwningArena() == from.GetOwningArena()
  219. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  220. && GetOwningArena() != nullptr
  221. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  222. ) {
  223. InternalSwap(&from);
  224. } else {
  225. CopyFrom(from);
  226. }
  227. return *this;
  228. }
  229. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  230. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  231. }
  232. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  233. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  234. }
  235. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  236. return GetDescriptor();
  237. }
  238. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  239. return default_instance().GetMetadata().descriptor;
  240. }
  241. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  242. return default_instance().GetMetadata().reflection;
  243. }
  244. static const AttributeProto& default_instance() {
  245. return *internal_default_instance();
  246. }
  247. static inline const AttributeProto* internal_default_instance() {
  248. return reinterpret_cast<const AttributeProto*>(
  249. &_AttributeProto_default_instance_);
  250. }
  251. static constexpr int kIndexInFileMessages =
  252. 0;
  253. friend void swap(AttributeProto& a, AttributeProto& b) {
  254. a.Swap(&b);
  255. }
  256. inline void Swap(AttributeProto* other) {
  257. if (other == this) return;
  258. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  259. if (GetOwningArena() != nullptr &&
  260. GetOwningArena() == other->GetOwningArena()) {
  261. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  262. if (GetOwningArena() == other->GetOwningArena()) {
  263. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  264. InternalSwap(other);
  265. } else {
  266. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  267. }
  268. }
  269. void UnsafeArenaSwap(AttributeProto* other) {
  270. if (other == this) return;
  271. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  272. InternalSwap(other);
  273. }
  274. // implements Message ----------------------------------------------
  275. AttributeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  276. return CreateMaybeMessage<AttributeProto>(arena);
  277. }
  278. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  279. void CopyFrom(const AttributeProto& from);
  280. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  281. void MergeFrom(const AttributeProto& from);
  282. private:
  283. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  284. public:
  285. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  286. bool IsInitialized() const final;
  287. size_t ByteSizeLong() const final;
  288. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  289. uint8_t* _InternalSerialize(
  290. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  291. int GetCachedSize() const final { return _cached_size_.Get(); }
  292. private:
  293. void SharedCtor();
  294. void SharedDtor();
  295. void SetCachedSize(int size) const final;
  296. void InternalSwap(AttributeProto* other);
  297. private:
  298. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  299. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  300. return "opencv_onnx.AttributeProto";
  301. }
  302. protected:
  303. explicit AttributeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  304. bool is_message_owned = false);
  305. private:
  306. static void ArenaDtor(void* object);
  307. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  308. public:
  309. static const ClassData _class_data_;
  310. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  311. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  312. // nested types ----------------------------------------------------
  313. typedef AttributeProto_AttributeType AttributeType;
  314. static constexpr AttributeType UNDEFINED =
  315. AttributeProto_AttributeType_UNDEFINED;
  316. static constexpr AttributeType FLOAT =
  317. AttributeProto_AttributeType_FLOAT;
  318. static constexpr AttributeType INT =
  319. AttributeProto_AttributeType_INT;
  320. static constexpr AttributeType STRING =
  321. AttributeProto_AttributeType_STRING;
  322. static constexpr AttributeType TENSOR =
  323. AttributeProto_AttributeType_TENSOR;
  324. static constexpr AttributeType GRAPH =
  325. AttributeProto_AttributeType_GRAPH;
  326. static constexpr AttributeType FLOATS =
  327. AttributeProto_AttributeType_FLOATS;
  328. static constexpr AttributeType INTS =
  329. AttributeProto_AttributeType_INTS;
  330. static constexpr AttributeType STRINGS =
  331. AttributeProto_AttributeType_STRINGS;
  332. static constexpr AttributeType TENSORS =
  333. AttributeProto_AttributeType_TENSORS;
  334. static constexpr AttributeType GRAPHS =
  335. AttributeProto_AttributeType_GRAPHS;
  336. static inline bool AttributeType_IsValid(int value) {
  337. return AttributeProto_AttributeType_IsValid(value);
  338. }
  339. static constexpr AttributeType AttributeType_MIN =
  340. AttributeProto_AttributeType_AttributeType_MIN;
  341. static constexpr AttributeType AttributeType_MAX =
  342. AttributeProto_AttributeType_AttributeType_MAX;
  343. static constexpr int AttributeType_ARRAYSIZE =
  344. AttributeProto_AttributeType_AttributeType_ARRAYSIZE;
  345. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  346. AttributeType_descriptor() {
  347. return AttributeProto_AttributeType_descriptor();
  348. }
  349. template<typename T>
  350. static inline const std::string& AttributeType_Name(T enum_t_value) {
  351. static_assert(::std::is_same<T, AttributeType>::value ||
  352. ::std::is_integral<T>::value,
  353. "Incorrect type passed to function AttributeType_Name.");
  354. return AttributeProto_AttributeType_Name(enum_t_value);
  355. }
  356. static inline bool AttributeType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  357. AttributeType* value) {
  358. return AttributeProto_AttributeType_Parse(name, value);
  359. }
  360. // accessors -------------------------------------------------------
  361. enum : int {
  362. kFloatsFieldNumber = 7,
  363. kIntsFieldNumber = 8,
  364. kStringsFieldNumber = 9,
  365. kTensorsFieldNumber = 10,
  366. kGraphsFieldNumber = 11,
  367. kNameFieldNumber = 1,
  368. kSFieldNumber = 4,
  369. kDocStringFieldNumber = 13,
  370. kRefAttrNameFieldNumber = 21,
  371. kTFieldNumber = 5,
  372. kGFieldNumber = 6,
  373. kIFieldNumber = 3,
  374. kFFieldNumber = 2,
  375. kTypeFieldNumber = 20,
  376. };
  377. // repeated float floats = 7;
  378. int floats_size() const;
  379. private:
  380. int _internal_floats_size() const;
  381. public:
  382. void clear_floats();
  383. private:
  384. float _internal_floats(int index) const;
  385. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  386. _internal_floats() const;
  387. void _internal_add_floats(float value);
  388. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  389. _internal_mutable_floats();
  390. public:
  391. float floats(int index) const;
  392. void set_floats(int index, float value);
  393. void add_floats(float value);
  394. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  395. floats() const;
  396. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  397. mutable_floats();
  398. // repeated int64 ints = 8;
  399. int ints_size() const;
  400. private:
  401. int _internal_ints_size() const;
  402. public:
  403. void clear_ints();
  404. private:
  405. int64_t _internal_ints(int index) const;
  406. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  407. _internal_ints() const;
  408. void _internal_add_ints(int64_t value);
  409. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  410. _internal_mutable_ints();
  411. public:
  412. int64_t ints(int index) const;
  413. void set_ints(int index, int64_t value);
  414. void add_ints(int64_t value);
  415. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  416. ints() const;
  417. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  418. mutable_ints();
  419. // repeated bytes strings = 9;
  420. int strings_size() const;
  421. private:
  422. int _internal_strings_size() const;
  423. public:
  424. void clear_strings();
  425. const std::string& strings(int index) const;
  426. std::string* mutable_strings(int index);
  427. void set_strings(int index, const std::string& value);
  428. void set_strings(int index, std::string&& value);
  429. void set_strings(int index, const char* value);
  430. void set_strings(int index, const void* value, size_t size);
  431. std::string* add_strings();
  432. void add_strings(const std::string& value);
  433. void add_strings(std::string&& value);
  434. void add_strings(const char* value);
  435. void add_strings(const void* value, size_t size);
  436. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& strings() const;
  437. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_strings();
  438. private:
  439. const std::string& _internal_strings(int index) const;
  440. std::string* _internal_add_strings();
  441. public:
  442. // repeated .opencv_onnx.TensorProto tensors = 10;
  443. int tensors_size() const;
  444. private:
  445. int _internal_tensors_size() const;
  446. public:
  447. void clear_tensors();
  448. ::opencv_onnx::TensorProto* mutable_tensors(int index);
  449. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >*
  450. mutable_tensors();
  451. private:
  452. const ::opencv_onnx::TensorProto& _internal_tensors(int index) const;
  453. ::opencv_onnx::TensorProto* _internal_add_tensors();
  454. public:
  455. const ::opencv_onnx::TensorProto& tensors(int index) const;
  456. ::opencv_onnx::TensorProto* add_tensors();
  457. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >&
  458. tensors() const;
  459. // repeated .opencv_onnx.GraphProto graphs = 11;
  460. int graphs_size() const;
  461. private:
  462. int _internal_graphs_size() const;
  463. public:
  464. void clear_graphs();
  465. ::opencv_onnx::GraphProto* mutable_graphs(int index);
  466. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::GraphProto >*
  467. mutable_graphs();
  468. private:
  469. const ::opencv_onnx::GraphProto& _internal_graphs(int index) const;
  470. ::opencv_onnx::GraphProto* _internal_add_graphs();
  471. public:
  472. const ::opencv_onnx::GraphProto& graphs(int index) const;
  473. ::opencv_onnx::GraphProto* add_graphs();
  474. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::GraphProto >&
  475. graphs() const;
  476. // optional string name = 1;
  477. bool has_name() const;
  478. private:
  479. bool _internal_has_name() const;
  480. public:
  481. void clear_name();
  482. const std::string& name() const;
  483. template <typename ArgT0 = const std::string&, typename... ArgT>
  484. void set_name(ArgT0&& arg0, ArgT... args);
  485. std::string* mutable_name();
  486. PROTOBUF_NODISCARD std::string* release_name();
  487. void set_allocated_name(std::string* name);
  488. private:
  489. const std::string& _internal_name() const;
  490. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  491. std::string* _internal_mutable_name();
  492. public:
  493. // optional bytes s = 4;
  494. bool has_s() const;
  495. private:
  496. bool _internal_has_s() const;
  497. public:
  498. void clear_s();
  499. const std::string& s() const;
  500. template <typename ArgT0 = const std::string&, typename... ArgT>
  501. void set_s(ArgT0&& arg0, ArgT... args);
  502. std::string* mutable_s();
  503. PROTOBUF_NODISCARD std::string* release_s();
  504. void set_allocated_s(std::string* s);
  505. private:
  506. const std::string& _internal_s() const;
  507. inline PROTOBUF_ALWAYS_INLINE void _internal_set_s(const std::string& value);
  508. std::string* _internal_mutable_s();
  509. public:
  510. // optional string doc_string = 13;
  511. bool has_doc_string() const;
  512. private:
  513. bool _internal_has_doc_string() const;
  514. public:
  515. void clear_doc_string();
  516. const std::string& doc_string() const;
  517. template <typename ArgT0 = const std::string&, typename... ArgT>
  518. void set_doc_string(ArgT0&& arg0, ArgT... args);
  519. std::string* mutable_doc_string();
  520. PROTOBUF_NODISCARD std::string* release_doc_string();
  521. void set_allocated_doc_string(std::string* doc_string);
  522. private:
  523. const std::string& _internal_doc_string() const;
  524. inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc_string(const std::string& value);
  525. std::string* _internal_mutable_doc_string();
  526. public:
  527. // optional string ref_attr_name = 21;
  528. bool has_ref_attr_name() const;
  529. private:
  530. bool _internal_has_ref_attr_name() const;
  531. public:
  532. void clear_ref_attr_name();
  533. const std::string& ref_attr_name() const;
  534. template <typename ArgT0 = const std::string&, typename... ArgT>
  535. void set_ref_attr_name(ArgT0&& arg0, ArgT... args);
  536. std::string* mutable_ref_attr_name();
  537. PROTOBUF_NODISCARD std::string* release_ref_attr_name();
  538. void set_allocated_ref_attr_name(std::string* ref_attr_name);
  539. private:
  540. const std::string& _internal_ref_attr_name() const;
  541. inline PROTOBUF_ALWAYS_INLINE void _internal_set_ref_attr_name(const std::string& value);
  542. std::string* _internal_mutable_ref_attr_name();
  543. public:
  544. // optional .opencv_onnx.TensorProto t = 5;
  545. bool has_t() const;
  546. private:
  547. bool _internal_has_t() const;
  548. public:
  549. void clear_t();
  550. const ::opencv_onnx::TensorProto& t() const;
  551. PROTOBUF_NODISCARD ::opencv_onnx::TensorProto* release_t();
  552. ::opencv_onnx::TensorProto* mutable_t();
  553. void set_allocated_t(::opencv_onnx::TensorProto* t);
  554. private:
  555. const ::opencv_onnx::TensorProto& _internal_t() const;
  556. ::opencv_onnx::TensorProto* _internal_mutable_t();
  557. public:
  558. void unsafe_arena_set_allocated_t(
  559. ::opencv_onnx::TensorProto* t);
  560. ::opencv_onnx::TensorProto* unsafe_arena_release_t();
  561. // optional .opencv_onnx.GraphProto g = 6;
  562. bool has_g() const;
  563. private:
  564. bool _internal_has_g() const;
  565. public:
  566. void clear_g();
  567. const ::opencv_onnx::GraphProto& g() const;
  568. PROTOBUF_NODISCARD ::opencv_onnx::GraphProto* release_g();
  569. ::opencv_onnx::GraphProto* mutable_g();
  570. void set_allocated_g(::opencv_onnx::GraphProto* g);
  571. private:
  572. const ::opencv_onnx::GraphProto& _internal_g() const;
  573. ::opencv_onnx::GraphProto* _internal_mutable_g();
  574. public:
  575. void unsafe_arena_set_allocated_g(
  576. ::opencv_onnx::GraphProto* g);
  577. ::opencv_onnx::GraphProto* unsafe_arena_release_g();
  578. // optional int64 i = 3;
  579. bool has_i() const;
  580. private:
  581. bool _internal_has_i() const;
  582. public:
  583. void clear_i();
  584. int64_t i() const;
  585. void set_i(int64_t value);
  586. private:
  587. int64_t _internal_i() const;
  588. void _internal_set_i(int64_t value);
  589. public:
  590. // optional float f = 2;
  591. bool has_f() const;
  592. private:
  593. bool _internal_has_f() const;
  594. public:
  595. void clear_f();
  596. float f() const;
  597. void set_f(float value);
  598. private:
  599. float _internal_f() const;
  600. void _internal_set_f(float value);
  601. public:
  602. // optional .opencv_onnx.AttributeProto.AttributeType type = 20;
  603. bool has_type() const;
  604. private:
  605. bool _internal_has_type() const;
  606. public:
  607. void clear_type();
  608. ::opencv_onnx::AttributeProto_AttributeType type() const;
  609. void set_type(::opencv_onnx::AttributeProto_AttributeType value);
  610. private:
  611. ::opencv_onnx::AttributeProto_AttributeType _internal_type() const;
  612. void _internal_set_type(::opencv_onnx::AttributeProto_AttributeType value);
  613. public:
  614. // @@protoc_insertion_point(class_scope:opencv_onnx.AttributeProto)
  615. private:
  616. class _Internal;
  617. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  618. typedef void InternalArenaConstructable_;
  619. typedef void DestructorSkippable_;
  620. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  621. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  622. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > floats_;
  623. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > ints_;
  624. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> strings_;
  625. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto > tensors_;
  626. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::GraphProto > graphs_;
  627. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  628. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr s_;
  629. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
  630. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ref_attr_name_;
  631. ::opencv_onnx::TensorProto* t_;
  632. ::opencv_onnx::GraphProto* g_;
  633. int64_t i_;
  634. float f_;
  635. int type_;
  636. friend struct ::TableStruct_opencv_2donnx_2eproto;
  637. };
  638. // -------------------------------------------------------------------
  639. class ValueInfoProto final :
  640. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.ValueInfoProto) */ {
  641. public:
  642. inline ValueInfoProto() : ValueInfoProto(nullptr) {}
  643. ~ValueInfoProto() override;
  644. explicit constexpr ValueInfoProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  645. ValueInfoProto(const ValueInfoProto& from);
  646. ValueInfoProto(ValueInfoProto&& from) noexcept
  647. : ValueInfoProto() {
  648. *this = ::std::move(from);
  649. }
  650. inline ValueInfoProto& operator=(const ValueInfoProto& from) {
  651. CopyFrom(from);
  652. return *this;
  653. }
  654. inline ValueInfoProto& operator=(ValueInfoProto&& from) noexcept {
  655. if (this == &from) return *this;
  656. if (GetOwningArena() == from.GetOwningArena()
  657. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  658. && GetOwningArena() != nullptr
  659. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  660. ) {
  661. InternalSwap(&from);
  662. } else {
  663. CopyFrom(from);
  664. }
  665. return *this;
  666. }
  667. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  668. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  669. }
  670. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  671. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  672. }
  673. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  674. return GetDescriptor();
  675. }
  676. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  677. return default_instance().GetMetadata().descriptor;
  678. }
  679. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  680. return default_instance().GetMetadata().reflection;
  681. }
  682. static const ValueInfoProto& default_instance() {
  683. return *internal_default_instance();
  684. }
  685. static inline const ValueInfoProto* internal_default_instance() {
  686. return reinterpret_cast<const ValueInfoProto*>(
  687. &_ValueInfoProto_default_instance_);
  688. }
  689. static constexpr int kIndexInFileMessages =
  690. 1;
  691. friend void swap(ValueInfoProto& a, ValueInfoProto& b) {
  692. a.Swap(&b);
  693. }
  694. inline void Swap(ValueInfoProto* other) {
  695. if (other == this) return;
  696. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  697. if (GetOwningArena() != nullptr &&
  698. GetOwningArena() == other->GetOwningArena()) {
  699. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  700. if (GetOwningArena() == other->GetOwningArena()) {
  701. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  702. InternalSwap(other);
  703. } else {
  704. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  705. }
  706. }
  707. void UnsafeArenaSwap(ValueInfoProto* other) {
  708. if (other == this) return;
  709. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  710. InternalSwap(other);
  711. }
  712. // implements Message ----------------------------------------------
  713. ValueInfoProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  714. return CreateMaybeMessage<ValueInfoProto>(arena);
  715. }
  716. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  717. void CopyFrom(const ValueInfoProto& from);
  718. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  719. void MergeFrom(const ValueInfoProto& from);
  720. private:
  721. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  722. public:
  723. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  724. bool IsInitialized() const final;
  725. size_t ByteSizeLong() const final;
  726. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  727. uint8_t* _InternalSerialize(
  728. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  729. int GetCachedSize() const final { return _cached_size_.Get(); }
  730. private:
  731. void SharedCtor();
  732. void SharedDtor();
  733. void SetCachedSize(int size) const final;
  734. void InternalSwap(ValueInfoProto* other);
  735. private:
  736. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  737. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  738. return "opencv_onnx.ValueInfoProto";
  739. }
  740. protected:
  741. explicit ValueInfoProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  742. bool is_message_owned = false);
  743. private:
  744. static void ArenaDtor(void* object);
  745. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  746. public:
  747. static const ClassData _class_data_;
  748. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  749. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  750. // nested types ----------------------------------------------------
  751. // accessors -------------------------------------------------------
  752. enum : int {
  753. kNameFieldNumber = 1,
  754. kDocStringFieldNumber = 3,
  755. kTypeFieldNumber = 2,
  756. };
  757. // optional string name = 1;
  758. bool has_name() const;
  759. private:
  760. bool _internal_has_name() const;
  761. public:
  762. void clear_name();
  763. const std::string& name() const;
  764. template <typename ArgT0 = const std::string&, typename... ArgT>
  765. void set_name(ArgT0&& arg0, ArgT... args);
  766. std::string* mutable_name();
  767. PROTOBUF_NODISCARD std::string* release_name();
  768. void set_allocated_name(std::string* name);
  769. private:
  770. const std::string& _internal_name() const;
  771. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  772. std::string* _internal_mutable_name();
  773. public:
  774. // optional string doc_string = 3;
  775. bool has_doc_string() const;
  776. private:
  777. bool _internal_has_doc_string() const;
  778. public:
  779. void clear_doc_string();
  780. const std::string& doc_string() const;
  781. template <typename ArgT0 = const std::string&, typename... ArgT>
  782. void set_doc_string(ArgT0&& arg0, ArgT... args);
  783. std::string* mutable_doc_string();
  784. PROTOBUF_NODISCARD std::string* release_doc_string();
  785. void set_allocated_doc_string(std::string* doc_string);
  786. private:
  787. const std::string& _internal_doc_string() const;
  788. inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc_string(const std::string& value);
  789. std::string* _internal_mutable_doc_string();
  790. public:
  791. // optional .opencv_onnx.TypeProto type = 2;
  792. bool has_type() const;
  793. private:
  794. bool _internal_has_type() const;
  795. public:
  796. void clear_type();
  797. const ::opencv_onnx::TypeProto& type() const;
  798. PROTOBUF_NODISCARD ::opencv_onnx::TypeProto* release_type();
  799. ::opencv_onnx::TypeProto* mutable_type();
  800. void set_allocated_type(::opencv_onnx::TypeProto* type);
  801. private:
  802. const ::opencv_onnx::TypeProto& _internal_type() const;
  803. ::opencv_onnx::TypeProto* _internal_mutable_type();
  804. public:
  805. void unsafe_arena_set_allocated_type(
  806. ::opencv_onnx::TypeProto* type);
  807. ::opencv_onnx::TypeProto* unsafe_arena_release_type();
  808. // @@protoc_insertion_point(class_scope:opencv_onnx.ValueInfoProto)
  809. private:
  810. class _Internal;
  811. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  812. typedef void InternalArenaConstructable_;
  813. typedef void DestructorSkippable_;
  814. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  815. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  816. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  817. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
  818. ::opencv_onnx::TypeProto* type_;
  819. friend struct ::TableStruct_opencv_2donnx_2eproto;
  820. };
  821. // -------------------------------------------------------------------
  822. class NodeProto final :
  823. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.NodeProto) */ {
  824. public:
  825. inline NodeProto() : NodeProto(nullptr) {}
  826. ~NodeProto() override;
  827. explicit constexpr NodeProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  828. NodeProto(const NodeProto& from);
  829. NodeProto(NodeProto&& from) noexcept
  830. : NodeProto() {
  831. *this = ::std::move(from);
  832. }
  833. inline NodeProto& operator=(const NodeProto& from) {
  834. CopyFrom(from);
  835. return *this;
  836. }
  837. inline NodeProto& operator=(NodeProto&& from) noexcept {
  838. if (this == &from) return *this;
  839. if (GetOwningArena() == from.GetOwningArena()
  840. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  841. && GetOwningArena() != nullptr
  842. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  843. ) {
  844. InternalSwap(&from);
  845. } else {
  846. CopyFrom(from);
  847. }
  848. return *this;
  849. }
  850. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  851. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  852. }
  853. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  854. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  855. }
  856. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  857. return GetDescriptor();
  858. }
  859. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  860. return default_instance().GetMetadata().descriptor;
  861. }
  862. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  863. return default_instance().GetMetadata().reflection;
  864. }
  865. static const NodeProto& default_instance() {
  866. return *internal_default_instance();
  867. }
  868. static inline const NodeProto* internal_default_instance() {
  869. return reinterpret_cast<const NodeProto*>(
  870. &_NodeProto_default_instance_);
  871. }
  872. static constexpr int kIndexInFileMessages =
  873. 2;
  874. friend void swap(NodeProto& a, NodeProto& b) {
  875. a.Swap(&b);
  876. }
  877. inline void Swap(NodeProto* other) {
  878. if (other == this) return;
  879. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  880. if (GetOwningArena() != nullptr &&
  881. GetOwningArena() == other->GetOwningArena()) {
  882. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  883. if (GetOwningArena() == other->GetOwningArena()) {
  884. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  885. InternalSwap(other);
  886. } else {
  887. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  888. }
  889. }
  890. void UnsafeArenaSwap(NodeProto* other) {
  891. if (other == this) return;
  892. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  893. InternalSwap(other);
  894. }
  895. // implements Message ----------------------------------------------
  896. NodeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  897. return CreateMaybeMessage<NodeProto>(arena);
  898. }
  899. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  900. void CopyFrom(const NodeProto& from);
  901. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  902. void MergeFrom(const NodeProto& from);
  903. private:
  904. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  905. public:
  906. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  907. bool IsInitialized() const final;
  908. size_t ByteSizeLong() const final;
  909. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  910. uint8_t* _InternalSerialize(
  911. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  912. int GetCachedSize() const final { return _cached_size_.Get(); }
  913. private:
  914. void SharedCtor();
  915. void SharedDtor();
  916. void SetCachedSize(int size) const final;
  917. void InternalSwap(NodeProto* other);
  918. private:
  919. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  920. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  921. return "opencv_onnx.NodeProto";
  922. }
  923. protected:
  924. explicit NodeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  925. bool is_message_owned = false);
  926. private:
  927. static void ArenaDtor(void* object);
  928. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  929. public:
  930. static const ClassData _class_data_;
  931. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  932. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  933. // nested types ----------------------------------------------------
  934. // accessors -------------------------------------------------------
  935. enum : int {
  936. kInputFieldNumber = 1,
  937. kOutputFieldNumber = 2,
  938. kAttributeFieldNumber = 5,
  939. kNameFieldNumber = 3,
  940. kOpTypeFieldNumber = 4,
  941. kDocStringFieldNumber = 6,
  942. kDomainFieldNumber = 7,
  943. };
  944. // repeated string input = 1;
  945. int input_size() const;
  946. private:
  947. int _internal_input_size() const;
  948. public:
  949. void clear_input();
  950. const std::string& input(int index) const;
  951. std::string* mutable_input(int index);
  952. void set_input(int index, const std::string& value);
  953. void set_input(int index, std::string&& value);
  954. void set_input(int index, const char* value);
  955. void set_input(int index, const char* value, size_t size);
  956. std::string* add_input();
  957. void add_input(const std::string& value);
  958. void add_input(std::string&& value);
  959. void add_input(const char* value);
  960. void add_input(const char* value, size_t size);
  961. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& input() const;
  962. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_input();
  963. private:
  964. const std::string& _internal_input(int index) const;
  965. std::string* _internal_add_input();
  966. public:
  967. // repeated string output = 2;
  968. int output_size() const;
  969. private:
  970. int _internal_output_size() const;
  971. public:
  972. void clear_output();
  973. const std::string& output(int index) const;
  974. std::string* mutable_output(int index);
  975. void set_output(int index, const std::string& value);
  976. void set_output(int index, std::string&& value);
  977. void set_output(int index, const char* value);
  978. void set_output(int index, const char* value, size_t size);
  979. std::string* add_output();
  980. void add_output(const std::string& value);
  981. void add_output(std::string&& value);
  982. void add_output(const char* value);
  983. void add_output(const char* value, size_t size);
  984. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& output() const;
  985. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_output();
  986. private:
  987. const std::string& _internal_output(int index) const;
  988. std::string* _internal_add_output();
  989. public:
  990. // repeated .opencv_onnx.AttributeProto attribute = 5;
  991. int attribute_size() const;
  992. private:
  993. int _internal_attribute_size() const;
  994. public:
  995. void clear_attribute();
  996. ::opencv_onnx::AttributeProto* mutable_attribute(int index);
  997. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::AttributeProto >*
  998. mutable_attribute();
  999. private:
  1000. const ::opencv_onnx::AttributeProto& _internal_attribute(int index) const;
  1001. ::opencv_onnx::AttributeProto* _internal_add_attribute();
  1002. public:
  1003. const ::opencv_onnx::AttributeProto& attribute(int index) const;
  1004. ::opencv_onnx::AttributeProto* add_attribute();
  1005. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::AttributeProto >&
  1006. attribute() const;
  1007. // optional string name = 3;
  1008. bool has_name() const;
  1009. private:
  1010. bool _internal_has_name() const;
  1011. public:
  1012. void clear_name();
  1013. const std::string& name() const;
  1014. template <typename ArgT0 = const std::string&, typename... ArgT>
  1015. void set_name(ArgT0&& arg0, ArgT... args);
  1016. std::string* mutable_name();
  1017. PROTOBUF_NODISCARD std::string* release_name();
  1018. void set_allocated_name(std::string* name);
  1019. private:
  1020. const std::string& _internal_name() const;
  1021. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  1022. std::string* _internal_mutable_name();
  1023. public:
  1024. // optional string op_type = 4;
  1025. bool has_op_type() const;
  1026. private:
  1027. bool _internal_has_op_type() const;
  1028. public:
  1029. void clear_op_type();
  1030. const std::string& op_type() const;
  1031. template <typename ArgT0 = const std::string&, typename... ArgT>
  1032. void set_op_type(ArgT0&& arg0, ArgT... args);
  1033. std::string* mutable_op_type();
  1034. PROTOBUF_NODISCARD std::string* release_op_type();
  1035. void set_allocated_op_type(std::string* op_type);
  1036. private:
  1037. const std::string& _internal_op_type() const;
  1038. inline PROTOBUF_ALWAYS_INLINE void _internal_set_op_type(const std::string& value);
  1039. std::string* _internal_mutable_op_type();
  1040. public:
  1041. // optional string doc_string = 6;
  1042. bool has_doc_string() const;
  1043. private:
  1044. bool _internal_has_doc_string() const;
  1045. public:
  1046. void clear_doc_string();
  1047. const std::string& doc_string() const;
  1048. template <typename ArgT0 = const std::string&, typename... ArgT>
  1049. void set_doc_string(ArgT0&& arg0, ArgT... args);
  1050. std::string* mutable_doc_string();
  1051. PROTOBUF_NODISCARD std::string* release_doc_string();
  1052. void set_allocated_doc_string(std::string* doc_string);
  1053. private:
  1054. const std::string& _internal_doc_string() const;
  1055. inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc_string(const std::string& value);
  1056. std::string* _internal_mutable_doc_string();
  1057. public:
  1058. // optional string domain = 7;
  1059. bool has_domain() const;
  1060. private:
  1061. bool _internal_has_domain() const;
  1062. public:
  1063. void clear_domain();
  1064. const std::string& domain() const;
  1065. template <typename ArgT0 = const std::string&, typename... ArgT>
  1066. void set_domain(ArgT0&& arg0, ArgT... args);
  1067. std::string* mutable_domain();
  1068. PROTOBUF_NODISCARD std::string* release_domain();
  1069. void set_allocated_domain(std::string* domain);
  1070. private:
  1071. const std::string& _internal_domain() const;
  1072. inline PROTOBUF_ALWAYS_INLINE void _internal_set_domain(const std::string& value);
  1073. std::string* _internal_mutable_domain();
  1074. public:
  1075. // @@protoc_insertion_point(class_scope:opencv_onnx.NodeProto)
  1076. private:
  1077. class _Internal;
  1078. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1079. typedef void InternalArenaConstructable_;
  1080. typedef void DestructorSkippable_;
  1081. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1082. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1083. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> input_;
  1084. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> output_;
  1085. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::AttributeProto > attribute_;
  1086. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  1087. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr op_type_;
  1088. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
  1089. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domain_;
  1090. friend struct ::TableStruct_opencv_2donnx_2eproto;
  1091. };
  1092. // -------------------------------------------------------------------
  1093. class ModelProto final :
  1094. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.ModelProto) */ {
  1095. public:
  1096. inline ModelProto() : ModelProto(nullptr) {}
  1097. ~ModelProto() override;
  1098. explicit constexpr ModelProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1099. ModelProto(const ModelProto& from);
  1100. ModelProto(ModelProto&& from) noexcept
  1101. : ModelProto() {
  1102. *this = ::std::move(from);
  1103. }
  1104. inline ModelProto& operator=(const ModelProto& from) {
  1105. CopyFrom(from);
  1106. return *this;
  1107. }
  1108. inline ModelProto& operator=(ModelProto&& from) noexcept {
  1109. if (this == &from) return *this;
  1110. if (GetOwningArena() == from.GetOwningArena()
  1111. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1112. && GetOwningArena() != nullptr
  1113. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1114. ) {
  1115. InternalSwap(&from);
  1116. } else {
  1117. CopyFrom(from);
  1118. }
  1119. return *this;
  1120. }
  1121. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1122. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1123. }
  1124. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1125. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1126. }
  1127. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1128. return GetDescriptor();
  1129. }
  1130. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1131. return default_instance().GetMetadata().descriptor;
  1132. }
  1133. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1134. return default_instance().GetMetadata().reflection;
  1135. }
  1136. static const ModelProto& default_instance() {
  1137. return *internal_default_instance();
  1138. }
  1139. static inline const ModelProto* internal_default_instance() {
  1140. return reinterpret_cast<const ModelProto*>(
  1141. &_ModelProto_default_instance_);
  1142. }
  1143. static constexpr int kIndexInFileMessages =
  1144. 3;
  1145. friend void swap(ModelProto& a, ModelProto& b) {
  1146. a.Swap(&b);
  1147. }
  1148. inline void Swap(ModelProto* other) {
  1149. if (other == this) return;
  1150. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1151. if (GetOwningArena() != nullptr &&
  1152. GetOwningArena() == other->GetOwningArena()) {
  1153. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1154. if (GetOwningArena() == other->GetOwningArena()) {
  1155. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1156. InternalSwap(other);
  1157. } else {
  1158. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1159. }
  1160. }
  1161. void UnsafeArenaSwap(ModelProto* other) {
  1162. if (other == this) return;
  1163. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1164. InternalSwap(other);
  1165. }
  1166. // implements Message ----------------------------------------------
  1167. ModelProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1168. return CreateMaybeMessage<ModelProto>(arena);
  1169. }
  1170. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1171. void CopyFrom(const ModelProto& from);
  1172. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1173. void MergeFrom(const ModelProto& from);
  1174. private:
  1175. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  1176. public:
  1177. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1178. bool IsInitialized() const final;
  1179. size_t ByteSizeLong() const final;
  1180. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1181. uint8_t* _InternalSerialize(
  1182. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1183. int GetCachedSize() const final { return _cached_size_.Get(); }
  1184. private:
  1185. void SharedCtor();
  1186. void SharedDtor();
  1187. void SetCachedSize(int size) const final;
  1188. void InternalSwap(ModelProto* other);
  1189. private:
  1190. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1191. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1192. return "opencv_onnx.ModelProto";
  1193. }
  1194. protected:
  1195. explicit ModelProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1196. bool is_message_owned = false);
  1197. private:
  1198. static void ArenaDtor(void* object);
  1199. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1200. public:
  1201. static const ClassData _class_data_;
  1202. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1203. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1204. // nested types ----------------------------------------------------
  1205. // accessors -------------------------------------------------------
  1206. enum : int {
  1207. kOpsetImportFieldNumber = 8,
  1208. kMetadataPropsFieldNumber = 14,
  1209. kProducerNameFieldNumber = 2,
  1210. kProducerVersionFieldNumber = 3,
  1211. kDomainFieldNumber = 4,
  1212. kDocStringFieldNumber = 6,
  1213. kGraphFieldNumber = 7,
  1214. kIrVersionFieldNumber = 1,
  1215. kModelVersionFieldNumber = 5,
  1216. };
  1217. // repeated .opencv_onnx.OperatorSetIdProto opset_import = 8;
  1218. int opset_import_size() const;
  1219. private:
  1220. int _internal_opset_import_size() const;
  1221. public:
  1222. void clear_opset_import();
  1223. ::opencv_onnx::OperatorSetIdProto* mutable_opset_import(int index);
  1224. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::OperatorSetIdProto >*
  1225. mutable_opset_import();
  1226. private:
  1227. const ::opencv_onnx::OperatorSetIdProto& _internal_opset_import(int index) const;
  1228. ::opencv_onnx::OperatorSetIdProto* _internal_add_opset_import();
  1229. public:
  1230. const ::opencv_onnx::OperatorSetIdProto& opset_import(int index) const;
  1231. ::opencv_onnx::OperatorSetIdProto* add_opset_import();
  1232. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::OperatorSetIdProto >&
  1233. opset_import() const;
  1234. // repeated .opencv_onnx.StringStringEntryProto metadata_props = 14;
  1235. int metadata_props_size() const;
  1236. private:
  1237. int _internal_metadata_props_size() const;
  1238. public:
  1239. void clear_metadata_props();
  1240. ::opencv_onnx::StringStringEntryProto* mutable_metadata_props(int index);
  1241. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::StringStringEntryProto >*
  1242. mutable_metadata_props();
  1243. private:
  1244. const ::opencv_onnx::StringStringEntryProto& _internal_metadata_props(int index) const;
  1245. ::opencv_onnx::StringStringEntryProto* _internal_add_metadata_props();
  1246. public:
  1247. const ::opencv_onnx::StringStringEntryProto& metadata_props(int index) const;
  1248. ::opencv_onnx::StringStringEntryProto* add_metadata_props();
  1249. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::StringStringEntryProto >&
  1250. metadata_props() const;
  1251. // optional string producer_name = 2;
  1252. bool has_producer_name() const;
  1253. private:
  1254. bool _internal_has_producer_name() const;
  1255. public:
  1256. void clear_producer_name();
  1257. const std::string& producer_name() const;
  1258. template <typename ArgT0 = const std::string&, typename... ArgT>
  1259. void set_producer_name(ArgT0&& arg0, ArgT... args);
  1260. std::string* mutable_producer_name();
  1261. PROTOBUF_NODISCARD std::string* release_producer_name();
  1262. void set_allocated_producer_name(std::string* producer_name);
  1263. private:
  1264. const std::string& _internal_producer_name() const;
  1265. inline PROTOBUF_ALWAYS_INLINE void _internal_set_producer_name(const std::string& value);
  1266. std::string* _internal_mutable_producer_name();
  1267. public:
  1268. // optional string producer_version = 3;
  1269. bool has_producer_version() const;
  1270. private:
  1271. bool _internal_has_producer_version() const;
  1272. public:
  1273. void clear_producer_version();
  1274. const std::string& producer_version() const;
  1275. template <typename ArgT0 = const std::string&, typename... ArgT>
  1276. void set_producer_version(ArgT0&& arg0, ArgT... args);
  1277. std::string* mutable_producer_version();
  1278. PROTOBUF_NODISCARD std::string* release_producer_version();
  1279. void set_allocated_producer_version(std::string* producer_version);
  1280. private:
  1281. const std::string& _internal_producer_version() const;
  1282. inline PROTOBUF_ALWAYS_INLINE void _internal_set_producer_version(const std::string& value);
  1283. std::string* _internal_mutable_producer_version();
  1284. public:
  1285. // optional string domain = 4;
  1286. bool has_domain() const;
  1287. private:
  1288. bool _internal_has_domain() const;
  1289. public:
  1290. void clear_domain();
  1291. const std::string& domain() const;
  1292. template <typename ArgT0 = const std::string&, typename... ArgT>
  1293. void set_domain(ArgT0&& arg0, ArgT... args);
  1294. std::string* mutable_domain();
  1295. PROTOBUF_NODISCARD std::string* release_domain();
  1296. void set_allocated_domain(std::string* domain);
  1297. private:
  1298. const std::string& _internal_domain() const;
  1299. inline PROTOBUF_ALWAYS_INLINE void _internal_set_domain(const std::string& value);
  1300. std::string* _internal_mutable_domain();
  1301. public:
  1302. // optional string doc_string = 6;
  1303. bool has_doc_string() const;
  1304. private:
  1305. bool _internal_has_doc_string() const;
  1306. public:
  1307. void clear_doc_string();
  1308. const std::string& doc_string() const;
  1309. template <typename ArgT0 = const std::string&, typename... ArgT>
  1310. void set_doc_string(ArgT0&& arg0, ArgT... args);
  1311. std::string* mutable_doc_string();
  1312. PROTOBUF_NODISCARD std::string* release_doc_string();
  1313. void set_allocated_doc_string(std::string* doc_string);
  1314. private:
  1315. const std::string& _internal_doc_string() const;
  1316. inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc_string(const std::string& value);
  1317. std::string* _internal_mutable_doc_string();
  1318. public:
  1319. // optional .opencv_onnx.GraphProto graph = 7;
  1320. bool has_graph() const;
  1321. private:
  1322. bool _internal_has_graph() const;
  1323. public:
  1324. void clear_graph();
  1325. const ::opencv_onnx::GraphProto& graph() const;
  1326. PROTOBUF_NODISCARD ::opencv_onnx::GraphProto* release_graph();
  1327. ::opencv_onnx::GraphProto* mutable_graph();
  1328. void set_allocated_graph(::opencv_onnx::GraphProto* graph);
  1329. private:
  1330. const ::opencv_onnx::GraphProto& _internal_graph() const;
  1331. ::opencv_onnx::GraphProto* _internal_mutable_graph();
  1332. public:
  1333. void unsafe_arena_set_allocated_graph(
  1334. ::opencv_onnx::GraphProto* graph);
  1335. ::opencv_onnx::GraphProto* unsafe_arena_release_graph();
  1336. // optional int64 ir_version = 1;
  1337. bool has_ir_version() const;
  1338. private:
  1339. bool _internal_has_ir_version() const;
  1340. public:
  1341. void clear_ir_version();
  1342. int64_t ir_version() const;
  1343. void set_ir_version(int64_t value);
  1344. private:
  1345. int64_t _internal_ir_version() const;
  1346. void _internal_set_ir_version(int64_t value);
  1347. public:
  1348. // optional int64 model_version = 5;
  1349. bool has_model_version() const;
  1350. private:
  1351. bool _internal_has_model_version() const;
  1352. public:
  1353. void clear_model_version();
  1354. int64_t model_version() const;
  1355. void set_model_version(int64_t value);
  1356. private:
  1357. int64_t _internal_model_version() const;
  1358. void _internal_set_model_version(int64_t value);
  1359. public:
  1360. // @@protoc_insertion_point(class_scope:opencv_onnx.ModelProto)
  1361. private:
  1362. class _Internal;
  1363. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1364. typedef void InternalArenaConstructable_;
  1365. typedef void DestructorSkippable_;
  1366. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1367. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1368. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::OperatorSetIdProto > opset_import_;
  1369. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::StringStringEntryProto > metadata_props_;
  1370. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr producer_name_;
  1371. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr producer_version_;
  1372. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domain_;
  1373. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
  1374. ::opencv_onnx::GraphProto* graph_;
  1375. int64_t ir_version_;
  1376. int64_t model_version_;
  1377. friend struct ::TableStruct_opencv_2donnx_2eproto;
  1378. };
  1379. // -------------------------------------------------------------------
  1380. class StringStringEntryProto final :
  1381. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.StringStringEntryProto) */ {
  1382. public:
  1383. inline StringStringEntryProto() : StringStringEntryProto(nullptr) {}
  1384. ~StringStringEntryProto() override;
  1385. explicit constexpr StringStringEntryProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1386. StringStringEntryProto(const StringStringEntryProto& from);
  1387. StringStringEntryProto(StringStringEntryProto&& from) noexcept
  1388. : StringStringEntryProto() {
  1389. *this = ::std::move(from);
  1390. }
  1391. inline StringStringEntryProto& operator=(const StringStringEntryProto& from) {
  1392. CopyFrom(from);
  1393. return *this;
  1394. }
  1395. inline StringStringEntryProto& operator=(StringStringEntryProto&& from) noexcept {
  1396. if (this == &from) return *this;
  1397. if (GetOwningArena() == from.GetOwningArena()
  1398. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1399. && GetOwningArena() != nullptr
  1400. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1401. ) {
  1402. InternalSwap(&from);
  1403. } else {
  1404. CopyFrom(from);
  1405. }
  1406. return *this;
  1407. }
  1408. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1409. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1410. }
  1411. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1412. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1413. }
  1414. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1415. return GetDescriptor();
  1416. }
  1417. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1418. return default_instance().GetMetadata().descriptor;
  1419. }
  1420. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1421. return default_instance().GetMetadata().reflection;
  1422. }
  1423. static const StringStringEntryProto& default_instance() {
  1424. return *internal_default_instance();
  1425. }
  1426. static inline const StringStringEntryProto* internal_default_instance() {
  1427. return reinterpret_cast<const StringStringEntryProto*>(
  1428. &_StringStringEntryProto_default_instance_);
  1429. }
  1430. static constexpr int kIndexInFileMessages =
  1431. 4;
  1432. friend void swap(StringStringEntryProto& a, StringStringEntryProto& b) {
  1433. a.Swap(&b);
  1434. }
  1435. inline void Swap(StringStringEntryProto* other) {
  1436. if (other == this) return;
  1437. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1438. if (GetOwningArena() != nullptr &&
  1439. GetOwningArena() == other->GetOwningArena()) {
  1440. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1441. if (GetOwningArena() == other->GetOwningArena()) {
  1442. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1443. InternalSwap(other);
  1444. } else {
  1445. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1446. }
  1447. }
  1448. void UnsafeArenaSwap(StringStringEntryProto* other) {
  1449. if (other == this) return;
  1450. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1451. InternalSwap(other);
  1452. }
  1453. // implements Message ----------------------------------------------
  1454. StringStringEntryProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1455. return CreateMaybeMessage<StringStringEntryProto>(arena);
  1456. }
  1457. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1458. void CopyFrom(const StringStringEntryProto& from);
  1459. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1460. void MergeFrom(const StringStringEntryProto& from);
  1461. private:
  1462. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  1463. public:
  1464. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1465. bool IsInitialized() const final;
  1466. size_t ByteSizeLong() const final;
  1467. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1468. uint8_t* _InternalSerialize(
  1469. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1470. int GetCachedSize() const final { return _cached_size_.Get(); }
  1471. private:
  1472. void SharedCtor();
  1473. void SharedDtor();
  1474. void SetCachedSize(int size) const final;
  1475. void InternalSwap(StringStringEntryProto* other);
  1476. private:
  1477. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1478. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1479. return "opencv_onnx.StringStringEntryProto";
  1480. }
  1481. protected:
  1482. explicit StringStringEntryProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1483. bool is_message_owned = false);
  1484. private:
  1485. static void ArenaDtor(void* object);
  1486. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1487. public:
  1488. static const ClassData _class_data_;
  1489. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1490. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1491. // nested types ----------------------------------------------------
  1492. // accessors -------------------------------------------------------
  1493. enum : int {
  1494. kKeyFieldNumber = 1,
  1495. kValueFieldNumber = 2,
  1496. };
  1497. // optional string key = 1;
  1498. bool has_key() const;
  1499. private:
  1500. bool _internal_has_key() const;
  1501. public:
  1502. void clear_key();
  1503. const std::string& key() const;
  1504. template <typename ArgT0 = const std::string&, typename... ArgT>
  1505. void set_key(ArgT0&& arg0, ArgT... args);
  1506. std::string* mutable_key();
  1507. PROTOBUF_NODISCARD std::string* release_key();
  1508. void set_allocated_key(std::string* key);
  1509. private:
  1510. const std::string& _internal_key() const;
  1511. inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value);
  1512. std::string* _internal_mutable_key();
  1513. public:
  1514. // optional string value = 2;
  1515. bool has_value() const;
  1516. private:
  1517. bool _internal_has_value() const;
  1518. public:
  1519. void clear_value();
  1520. const std::string& value() const;
  1521. template <typename ArgT0 = const std::string&, typename... ArgT>
  1522. void set_value(ArgT0&& arg0, ArgT... args);
  1523. std::string* mutable_value();
  1524. PROTOBUF_NODISCARD std::string* release_value();
  1525. void set_allocated_value(std::string* value);
  1526. private:
  1527. const std::string& _internal_value() const;
  1528. inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value);
  1529. std::string* _internal_mutable_value();
  1530. public:
  1531. // @@protoc_insertion_point(class_scope:opencv_onnx.StringStringEntryProto)
  1532. private:
  1533. class _Internal;
  1534. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1535. typedef void InternalArenaConstructable_;
  1536. typedef void DestructorSkippable_;
  1537. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1538. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1539. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_;
  1540. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_;
  1541. friend struct ::TableStruct_opencv_2donnx_2eproto;
  1542. };
  1543. // -------------------------------------------------------------------
  1544. class GraphProto final :
  1545. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.GraphProto) */ {
  1546. public:
  1547. inline GraphProto() : GraphProto(nullptr) {}
  1548. ~GraphProto() override;
  1549. explicit constexpr GraphProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1550. GraphProto(const GraphProto& from);
  1551. GraphProto(GraphProto&& from) noexcept
  1552. : GraphProto() {
  1553. *this = ::std::move(from);
  1554. }
  1555. inline GraphProto& operator=(const GraphProto& from) {
  1556. CopyFrom(from);
  1557. return *this;
  1558. }
  1559. inline GraphProto& operator=(GraphProto&& from) noexcept {
  1560. if (this == &from) return *this;
  1561. if (GetOwningArena() == from.GetOwningArena()
  1562. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1563. && GetOwningArena() != nullptr
  1564. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1565. ) {
  1566. InternalSwap(&from);
  1567. } else {
  1568. CopyFrom(from);
  1569. }
  1570. return *this;
  1571. }
  1572. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1573. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1574. }
  1575. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1576. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1577. }
  1578. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1579. return GetDescriptor();
  1580. }
  1581. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1582. return default_instance().GetMetadata().descriptor;
  1583. }
  1584. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1585. return default_instance().GetMetadata().reflection;
  1586. }
  1587. static const GraphProto& default_instance() {
  1588. return *internal_default_instance();
  1589. }
  1590. static inline const GraphProto* internal_default_instance() {
  1591. return reinterpret_cast<const GraphProto*>(
  1592. &_GraphProto_default_instance_);
  1593. }
  1594. static constexpr int kIndexInFileMessages =
  1595. 5;
  1596. friend void swap(GraphProto& a, GraphProto& b) {
  1597. a.Swap(&b);
  1598. }
  1599. inline void Swap(GraphProto* other) {
  1600. if (other == this) return;
  1601. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1602. if (GetOwningArena() != nullptr &&
  1603. GetOwningArena() == other->GetOwningArena()) {
  1604. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1605. if (GetOwningArena() == other->GetOwningArena()) {
  1606. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1607. InternalSwap(other);
  1608. } else {
  1609. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1610. }
  1611. }
  1612. void UnsafeArenaSwap(GraphProto* other) {
  1613. if (other == this) return;
  1614. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1615. InternalSwap(other);
  1616. }
  1617. // implements Message ----------------------------------------------
  1618. GraphProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1619. return CreateMaybeMessage<GraphProto>(arena);
  1620. }
  1621. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1622. void CopyFrom(const GraphProto& from);
  1623. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1624. void MergeFrom(const GraphProto& from);
  1625. private:
  1626. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  1627. public:
  1628. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1629. bool IsInitialized() const final;
  1630. size_t ByteSizeLong() const final;
  1631. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1632. uint8_t* _InternalSerialize(
  1633. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1634. int GetCachedSize() const final { return _cached_size_.Get(); }
  1635. private:
  1636. void SharedCtor();
  1637. void SharedDtor();
  1638. void SetCachedSize(int size) const final;
  1639. void InternalSwap(GraphProto* other);
  1640. private:
  1641. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1642. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1643. return "opencv_onnx.GraphProto";
  1644. }
  1645. protected:
  1646. explicit GraphProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1647. bool is_message_owned = false);
  1648. private:
  1649. static void ArenaDtor(void* object);
  1650. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1651. public:
  1652. static const ClassData _class_data_;
  1653. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1654. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1655. // nested types ----------------------------------------------------
  1656. // accessors -------------------------------------------------------
  1657. enum : int {
  1658. kNodeFieldNumber = 1,
  1659. kInitializerFieldNumber = 5,
  1660. kInputFieldNumber = 11,
  1661. kOutputFieldNumber = 12,
  1662. kValueInfoFieldNumber = 13,
  1663. kNameFieldNumber = 2,
  1664. kDocStringFieldNumber = 10,
  1665. };
  1666. // repeated .opencv_onnx.NodeProto node = 1;
  1667. int node_size() const;
  1668. private:
  1669. int _internal_node_size() const;
  1670. public:
  1671. void clear_node();
  1672. ::opencv_onnx::NodeProto* mutable_node(int index);
  1673. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::NodeProto >*
  1674. mutable_node();
  1675. private:
  1676. const ::opencv_onnx::NodeProto& _internal_node(int index) const;
  1677. ::opencv_onnx::NodeProto* _internal_add_node();
  1678. public:
  1679. const ::opencv_onnx::NodeProto& node(int index) const;
  1680. ::opencv_onnx::NodeProto* add_node();
  1681. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::NodeProto >&
  1682. node() const;
  1683. // repeated .opencv_onnx.TensorProto initializer = 5;
  1684. int initializer_size() const;
  1685. private:
  1686. int _internal_initializer_size() const;
  1687. public:
  1688. void clear_initializer();
  1689. ::opencv_onnx::TensorProto* mutable_initializer(int index);
  1690. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >*
  1691. mutable_initializer();
  1692. private:
  1693. const ::opencv_onnx::TensorProto& _internal_initializer(int index) const;
  1694. ::opencv_onnx::TensorProto* _internal_add_initializer();
  1695. public:
  1696. const ::opencv_onnx::TensorProto& initializer(int index) const;
  1697. ::opencv_onnx::TensorProto* add_initializer();
  1698. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >&
  1699. initializer() const;
  1700. // repeated .opencv_onnx.ValueInfoProto input = 11;
  1701. int input_size() const;
  1702. private:
  1703. int _internal_input_size() const;
  1704. public:
  1705. void clear_input();
  1706. ::opencv_onnx::ValueInfoProto* mutable_input(int index);
  1707. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >*
  1708. mutable_input();
  1709. private:
  1710. const ::opencv_onnx::ValueInfoProto& _internal_input(int index) const;
  1711. ::opencv_onnx::ValueInfoProto* _internal_add_input();
  1712. public:
  1713. const ::opencv_onnx::ValueInfoProto& input(int index) const;
  1714. ::opencv_onnx::ValueInfoProto* add_input();
  1715. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >&
  1716. input() const;
  1717. // repeated .opencv_onnx.ValueInfoProto output = 12;
  1718. int output_size() const;
  1719. private:
  1720. int _internal_output_size() const;
  1721. public:
  1722. void clear_output();
  1723. ::opencv_onnx::ValueInfoProto* mutable_output(int index);
  1724. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >*
  1725. mutable_output();
  1726. private:
  1727. const ::opencv_onnx::ValueInfoProto& _internal_output(int index) const;
  1728. ::opencv_onnx::ValueInfoProto* _internal_add_output();
  1729. public:
  1730. const ::opencv_onnx::ValueInfoProto& output(int index) const;
  1731. ::opencv_onnx::ValueInfoProto* add_output();
  1732. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >&
  1733. output() const;
  1734. // repeated .opencv_onnx.ValueInfoProto value_info = 13;
  1735. int value_info_size() const;
  1736. private:
  1737. int _internal_value_info_size() const;
  1738. public:
  1739. void clear_value_info();
  1740. ::opencv_onnx::ValueInfoProto* mutable_value_info(int index);
  1741. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >*
  1742. mutable_value_info();
  1743. private:
  1744. const ::opencv_onnx::ValueInfoProto& _internal_value_info(int index) const;
  1745. ::opencv_onnx::ValueInfoProto* _internal_add_value_info();
  1746. public:
  1747. const ::opencv_onnx::ValueInfoProto& value_info(int index) const;
  1748. ::opencv_onnx::ValueInfoProto* add_value_info();
  1749. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >&
  1750. value_info() const;
  1751. // optional string name = 2;
  1752. bool has_name() const;
  1753. private:
  1754. bool _internal_has_name() const;
  1755. public:
  1756. void clear_name();
  1757. const std::string& name() const;
  1758. template <typename ArgT0 = const std::string&, typename... ArgT>
  1759. void set_name(ArgT0&& arg0, ArgT... args);
  1760. std::string* mutable_name();
  1761. PROTOBUF_NODISCARD std::string* release_name();
  1762. void set_allocated_name(std::string* name);
  1763. private:
  1764. const std::string& _internal_name() const;
  1765. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  1766. std::string* _internal_mutable_name();
  1767. public:
  1768. // optional string doc_string = 10;
  1769. bool has_doc_string() const;
  1770. private:
  1771. bool _internal_has_doc_string() const;
  1772. public:
  1773. void clear_doc_string();
  1774. const std::string& doc_string() const;
  1775. template <typename ArgT0 = const std::string&, typename... ArgT>
  1776. void set_doc_string(ArgT0&& arg0, ArgT... args);
  1777. std::string* mutable_doc_string();
  1778. PROTOBUF_NODISCARD std::string* release_doc_string();
  1779. void set_allocated_doc_string(std::string* doc_string);
  1780. private:
  1781. const std::string& _internal_doc_string() const;
  1782. inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc_string(const std::string& value);
  1783. std::string* _internal_mutable_doc_string();
  1784. public:
  1785. // @@protoc_insertion_point(class_scope:opencv_onnx.GraphProto)
  1786. private:
  1787. class _Internal;
  1788. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1789. typedef void InternalArenaConstructable_;
  1790. typedef void DestructorSkippable_;
  1791. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1792. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1793. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::NodeProto > node_;
  1794. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto > initializer_;
  1795. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto > input_;
  1796. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto > output_;
  1797. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto > value_info_;
  1798. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  1799. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
  1800. friend struct ::TableStruct_opencv_2donnx_2eproto;
  1801. };
  1802. // -------------------------------------------------------------------
  1803. class TensorProto_Segment final :
  1804. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.TensorProto.Segment) */ {
  1805. public:
  1806. inline TensorProto_Segment() : TensorProto_Segment(nullptr) {}
  1807. ~TensorProto_Segment() override;
  1808. explicit constexpr TensorProto_Segment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1809. TensorProto_Segment(const TensorProto_Segment& from);
  1810. TensorProto_Segment(TensorProto_Segment&& from) noexcept
  1811. : TensorProto_Segment() {
  1812. *this = ::std::move(from);
  1813. }
  1814. inline TensorProto_Segment& operator=(const TensorProto_Segment& from) {
  1815. CopyFrom(from);
  1816. return *this;
  1817. }
  1818. inline TensorProto_Segment& operator=(TensorProto_Segment&& from) noexcept {
  1819. if (this == &from) return *this;
  1820. if (GetOwningArena() == from.GetOwningArena()
  1821. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1822. && GetOwningArena() != nullptr
  1823. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1824. ) {
  1825. InternalSwap(&from);
  1826. } else {
  1827. CopyFrom(from);
  1828. }
  1829. return *this;
  1830. }
  1831. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1832. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1833. }
  1834. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1835. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1836. }
  1837. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1838. return GetDescriptor();
  1839. }
  1840. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1841. return default_instance().GetMetadata().descriptor;
  1842. }
  1843. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1844. return default_instance().GetMetadata().reflection;
  1845. }
  1846. static const TensorProto_Segment& default_instance() {
  1847. return *internal_default_instance();
  1848. }
  1849. static inline const TensorProto_Segment* internal_default_instance() {
  1850. return reinterpret_cast<const TensorProto_Segment*>(
  1851. &_TensorProto_Segment_default_instance_);
  1852. }
  1853. static constexpr int kIndexInFileMessages =
  1854. 6;
  1855. friend void swap(TensorProto_Segment& a, TensorProto_Segment& b) {
  1856. a.Swap(&b);
  1857. }
  1858. inline void Swap(TensorProto_Segment* other) {
  1859. if (other == this) return;
  1860. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1861. if (GetOwningArena() != nullptr &&
  1862. GetOwningArena() == other->GetOwningArena()) {
  1863. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1864. if (GetOwningArena() == other->GetOwningArena()) {
  1865. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1866. InternalSwap(other);
  1867. } else {
  1868. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1869. }
  1870. }
  1871. void UnsafeArenaSwap(TensorProto_Segment* other) {
  1872. if (other == this) return;
  1873. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1874. InternalSwap(other);
  1875. }
  1876. // implements Message ----------------------------------------------
  1877. TensorProto_Segment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1878. return CreateMaybeMessage<TensorProto_Segment>(arena);
  1879. }
  1880. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1881. void CopyFrom(const TensorProto_Segment& from);
  1882. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1883. void MergeFrom(const TensorProto_Segment& from);
  1884. private:
  1885. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  1886. public:
  1887. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1888. bool IsInitialized() const final;
  1889. size_t ByteSizeLong() const final;
  1890. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1891. uint8_t* _InternalSerialize(
  1892. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1893. int GetCachedSize() const final { return _cached_size_.Get(); }
  1894. private:
  1895. void SharedCtor();
  1896. void SharedDtor();
  1897. void SetCachedSize(int size) const final;
  1898. void InternalSwap(TensorProto_Segment* other);
  1899. private:
  1900. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1901. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1902. return "opencv_onnx.TensorProto.Segment";
  1903. }
  1904. protected:
  1905. explicit TensorProto_Segment(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1906. bool is_message_owned = false);
  1907. private:
  1908. static void ArenaDtor(void* object);
  1909. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1910. public:
  1911. static const ClassData _class_data_;
  1912. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1913. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1914. // nested types ----------------------------------------------------
  1915. // accessors -------------------------------------------------------
  1916. enum : int {
  1917. kBeginFieldNumber = 1,
  1918. kEndFieldNumber = 2,
  1919. };
  1920. // optional int64 begin = 1;
  1921. bool has_begin() const;
  1922. private:
  1923. bool _internal_has_begin() const;
  1924. public:
  1925. void clear_begin();
  1926. int64_t begin() const;
  1927. void set_begin(int64_t value);
  1928. private:
  1929. int64_t _internal_begin() const;
  1930. void _internal_set_begin(int64_t value);
  1931. public:
  1932. // optional int64 end = 2;
  1933. bool has_end() const;
  1934. private:
  1935. bool _internal_has_end() const;
  1936. public:
  1937. void clear_end();
  1938. int64_t end() const;
  1939. void set_end(int64_t value);
  1940. private:
  1941. int64_t _internal_end() const;
  1942. void _internal_set_end(int64_t value);
  1943. public:
  1944. // @@protoc_insertion_point(class_scope:opencv_onnx.TensorProto.Segment)
  1945. private:
  1946. class _Internal;
  1947. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1948. typedef void InternalArenaConstructable_;
  1949. typedef void DestructorSkippable_;
  1950. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1951. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1952. int64_t begin_;
  1953. int64_t end_;
  1954. friend struct ::TableStruct_opencv_2donnx_2eproto;
  1955. };
  1956. // -------------------------------------------------------------------
  1957. class TensorProto final :
  1958. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.TensorProto) */ {
  1959. public:
  1960. inline TensorProto() : TensorProto(nullptr) {}
  1961. ~TensorProto() override;
  1962. explicit constexpr TensorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1963. TensorProto(const TensorProto& from);
  1964. TensorProto(TensorProto&& from) noexcept
  1965. : TensorProto() {
  1966. *this = ::std::move(from);
  1967. }
  1968. inline TensorProto& operator=(const TensorProto& from) {
  1969. CopyFrom(from);
  1970. return *this;
  1971. }
  1972. inline TensorProto& operator=(TensorProto&& from) noexcept {
  1973. if (this == &from) return *this;
  1974. if (GetOwningArena() == from.GetOwningArena()
  1975. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1976. && GetOwningArena() != nullptr
  1977. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1978. ) {
  1979. InternalSwap(&from);
  1980. } else {
  1981. CopyFrom(from);
  1982. }
  1983. return *this;
  1984. }
  1985. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1986. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1987. }
  1988. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1989. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1990. }
  1991. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1992. return GetDescriptor();
  1993. }
  1994. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1995. return default_instance().GetMetadata().descriptor;
  1996. }
  1997. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1998. return default_instance().GetMetadata().reflection;
  1999. }
  2000. static const TensorProto& default_instance() {
  2001. return *internal_default_instance();
  2002. }
  2003. static inline const TensorProto* internal_default_instance() {
  2004. return reinterpret_cast<const TensorProto*>(
  2005. &_TensorProto_default_instance_);
  2006. }
  2007. static constexpr int kIndexInFileMessages =
  2008. 7;
  2009. friend void swap(TensorProto& a, TensorProto& b) {
  2010. a.Swap(&b);
  2011. }
  2012. inline void Swap(TensorProto* other) {
  2013. if (other == this) return;
  2014. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2015. if (GetOwningArena() != nullptr &&
  2016. GetOwningArena() == other->GetOwningArena()) {
  2017. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2018. if (GetOwningArena() == other->GetOwningArena()) {
  2019. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2020. InternalSwap(other);
  2021. } else {
  2022. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2023. }
  2024. }
  2025. void UnsafeArenaSwap(TensorProto* other) {
  2026. if (other == this) return;
  2027. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2028. InternalSwap(other);
  2029. }
  2030. // implements Message ----------------------------------------------
  2031. TensorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2032. return CreateMaybeMessage<TensorProto>(arena);
  2033. }
  2034. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2035. void CopyFrom(const TensorProto& from);
  2036. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2037. void MergeFrom(const TensorProto& from);
  2038. private:
  2039. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2040. public:
  2041. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2042. bool IsInitialized() const final;
  2043. size_t ByteSizeLong() const final;
  2044. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2045. uint8_t* _InternalSerialize(
  2046. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2047. int GetCachedSize() const final { return _cached_size_.Get(); }
  2048. private:
  2049. void SharedCtor();
  2050. void SharedDtor();
  2051. void SetCachedSize(int size) const final;
  2052. void InternalSwap(TensorProto* other);
  2053. private:
  2054. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2055. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2056. return "opencv_onnx.TensorProto";
  2057. }
  2058. protected:
  2059. explicit TensorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2060. bool is_message_owned = false);
  2061. private:
  2062. static void ArenaDtor(void* object);
  2063. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2064. public:
  2065. static const ClassData _class_data_;
  2066. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2067. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2068. // nested types ----------------------------------------------------
  2069. typedef TensorProto_Segment Segment;
  2070. typedef TensorProto_DataType DataType;
  2071. static constexpr DataType UNDEFINED =
  2072. TensorProto_DataType_UNDEFINED;
  2073. static constexpr DataType FLOAT =
  2074. TensorProto_DataType_FLOAT;
  2075. static constexpr DataType UINT8 =
  2076. TensorProto_DataType_UINT8;
  2077. static constexpr DataType INT8 =
  2078. TensorProto_DataType_INT8;
  2079. static constexpr DataType UINT16 =
  2080. TensorProto_DataType_UINT16;
  2081. static constexpr DataType INT16 =
  2082. TensorProto_DataType_INT16;
  2083. static constexpr DataType INT32 =
  2084. TensorProto_DataType_INT32;
  2085. static constexpr DataType INT64 =
  2086. TensorProto_DataType_INT64;
  2087. static constexpr DataType STRING =
  2088. TensorProto_DataType_STRING;
  2089. static constexpr DataType BOOL =
  2090. TensorProto_DataType_BOOL;
  2091. static constexpr DataType FLOAT16 =
  2092. TensorProto_DataType_FLOAT16;
  2093. static constexpr DataType DOUBLE =
  2094. TensorProto_DataType_DOUBLE;
  2095. static constexpr DataType UINT32 =
  2096. TensorProto_DataType_UINT32;
  2097. static constexpr DataType UINT64 =
  2098. TensorProto_DataType_UINT64;
  2099. static constexpr DataType COMPLEX64 =
  2100. TensorProto_DataType_COMPLEX64;
  2101. static constexpr DataType COMPLEX128 =
  2102. TensorProto_DataType_COMPLEX128;
  2103. static inline bool DataType_IsValid(int value) {
  2104. return TensorProto_DataType_IsValid(value);
  2105. }
  2106. static constexpr DataType DataType_MIN =
  2107. TensorProto_DataType_DataType_MIN;
  2108. static constexpr DataType DataType_MAX =
  2109. TensorProto_DataType_DataType_MAX;
  2110. static constexpr int DataType_ARRAYSIZE =
  2111. TensorProto_DataType_DataType_ARRAYSIZE;
  2112. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  2113. DataType_descriptor() {
  2114. return TensorProto_DataType_descriptor();
  2115. }
  2116. template<typename T>
  2117. static inline const std::string& DataType_Name(T enum_t_value) {
  2118. static_assert(::std::is_same<T, DataType>::value ||
  2119. ::std::is_integral<T>::value,
  2120. "Incorrect type passed to function DataType_Name.");
  2121. return TensorProto_DataType_Name(enum_t_value);
  2122. }
  2123. static inline bool DataType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  2124. DataType* value) {
  2125. return TensorProto_DataType_Parse(name, value);
  2126. }
  2127. // accessors -------------------------------------------------------
  2128. enum : int {
  2129. kDimsFieldNumber = 1,
  2130. kFloatDataFieldNumber = 4,
  2131. kInt32DataFieldNumber = 5,
  2132. kStringDataFieldNumber = 6,
  2133. kInt64DataFieldNumber = 7,
  2134. kDoubleDataFieldNumber = 10,
  2135. kUint64DataFieldNumber = 11,
  2136. kNameFieldNumber = 8,
  2137. kRawDataFieldNumber = 9,
  2138. kDocStringFieldNumber = 12,
  2139. kSegmentFieldNumber = 3,
  2140. kDataTypeFieldNumber = 2,
  2141. };
  2142. // repeated int64 dims = 1;
  2143. int dims_size() const;
  2144. private:
  2145. int _internal_dims_size() const;
  2146. public:
  2147. void clear_dims();
  2148. private:
  2149. int64_t _internal_dims(int index) const;
  2150. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  2151. _internal_dims() const;
  2152. void _internal_add_dims(int64_t value);
  2153. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  2154. _internal_mutable_dims();
  2155. public:
  2156. int64_t dims(int index) const;
  2157. void set_dims(int index, int64_t value);
  2158. void add_dims(int64_t value);
  2159. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  2160. dims() const;
  2161. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  2162. mutable_dims();
  2163. // repeated float float_data = 4 [packed = true];
  2164. int float_data_size() const;
  2165. private:
  2166. int _internal_float_data_size() const;
  2167. public:
  2168. void clear_float_data();
  2169. private:
  2170. float _internal_float_data(int index) const;
  2171. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  2172. _internal_float_data() const;
  2173. void _internal_add_float_data(float value);
  2174. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  2175. _internal_mutable_float_data();
  2176. public:
  2177. float float_data(int index) const;
  2178. void set_float_data(int index, float value);
  2179. void add_float_data(float value);
  2180. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  2181. float_data() const;
  2182. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  2183. mutable_float_data();
  2184. // repeated int32 int32_data = 5 [packed = true];
  2185. int int32_data_size() const;
  2186. private:
  2187. int _internal_int32_data_size() const;
  2188. public:
  2189. void clear_int32_data();
  2190. private:
  2191. int32_t _internal_int32_data(int index) const;
  2192. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  2193. _internal_int32_data() const;
  2194. void _internal_add_int32_data(int32_t value);
  2195. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  2196. _internal_mutable_int32_data();
  2197. public:
  2198. int32_t int32_data(int index) const;
  2199. void set_int32_data(int index, int32_t value);
  2200. void add_int32_data(int32_t value);
  2201. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  2202. int32_data() const;
  2203. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  2204. mutable_int32_data();
  2205. // repeated bytes string_data = 6;
  2206. int string_data_size() const;
  2207. private:
  2208. int _internal_string_data_size() const;
  2209. public:
  2210. void clear_string_data();
  2211. const std::string& string_data(int index) const;
  2212. std::string* mutable_string_data(int index);
  2213. void set_string_data(int index, const std::string& value);
  2214. void set_string_data(int index, std::string&& value);
  2215. void set_string_data(int index, const char* value);
  2216. void set_string_data(int index, const void* value, size_t size);
  2217. std::string* add_string_data();
  2218. void add_string_data(const std::string& value);
  2219. void add_string_data(std::string&& value);
  2220. void add_string_data(const char* value);
  2221. void add_string_data(const void* value, size_t size);
  2222. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& string_data() const;
  2223. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_string_data();
  2224. private:
  2225. const std::string& _internal_string_data(int index) const;
  2226. std::string* _internal_add_string_data();
  2227. public:
  2228. // repeated int64 int64_data = 7 [packed = true];
  2229. int int64_data_size() const;
  2230. private:
  2231. int _internal_int64_data_size() const;
  2232. public:
  2233. void clear_int64_data();
  2234. private:
  2235. int64_t _internal_int64_data(int index) const;
  2236. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  2237. _internal_int64_data() const;
  2238. void _internal_add_int64_data(int64_t value);
  2239. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  2240. _internal_mutable_int64_data();
  2241. public:
  2242. int64_t int64_data(int index) const;
  2243. void set_int64_data(int index, int64_t value);
  2244. void add_int64_data(int64_t value);
  2245. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  2246. int64_data() const;
  2247. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  2248. mutable_int64_data();
  2249. // repeated double double_data = 10 [packed = true];
  2250. int double_data_size() const;
  2251. private:
  2252. int _internal_double_data_size() const;
  2253. public:
  2254. void clear_double_data();
  2255. private:
  2256. double _internal_double_data(int index) const;
  2257. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
  2258. _internal_double_data() const;
  2259. void _internal_add_double_data(double value);
  2260. ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
  2261. _internal_mutable_double_data();
  2262. public:
  2263. double double_data(int index) const;
  2264. void set_double_data(int index, double value);
  2265. void add_double_data(double value);
  2266. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
  2267. double_data() const;
  2268. ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
  2269. mutable_double_data();
  2270. // repeated uint64 uint64_data = 11 [packed = true];
  2271. int uint64_data_size() const;
  2272. private:
  2273. int _internal_uint64_data_size() const;
  2274. public:
  2275. void clear_uint64_data();
  2276. private:
  2277. uint64_t _internal_uint64_data(int index) const;
  2278. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >&
  2279. _internal_uint64_data() const;
  2280. void _internal_add_uint64_data(uint64_t value);
  2281. ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >*
  2282. _internal_mutable_uint64_data();
  2283. public:
  2284. uint64_t uint64_data(int index) const;
  2285. void set_uint64_data(int index, uint64_t value);
  2286. void add_uint64_data(uint64_t value);
  2287. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >&
  2288. uint64_data() const;
  2289. ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >*
  2290. mutable_uint64_data();
  2291. // optional string name = 8;
  2292. bool has_name() const;
  2293. private:
  2294. bool _internal_has_name() const;
  2295. public:
  2296. void clear_name();
  2297. const std::string& name() const;
  2298. template <typename ArgT0 = const std::string&, typename... ArgT>
  2299. void set_name(ArgT0&& arg0, ArgT... args);
  2300. std::string* mutable_name();
  2301. PROTOBUF_NODISCARD std::string* release_name();
  2302. void set_allocated_name(std::string* name);
  2303. private:
  2304. const std::string& _internal_name() const;
  2305. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2306. std::string* _internal_mutable_name();
  2307. public:
  2308. // optional bytes raw_data = 9;
  2309. bool has_raw_data() const;
  2310. private:
  2311. bool _internal_has_raw_data() const;
  2312. public:
  2313. void clear_raw_data();
  2314. const std::string& raw_data() const;
  2315. template <typename ArgT0 = const std::string&, typename... ArgT>
  2316. void set_raw_data(ArgT0&& arg0, ArgT... args);
  2317. std::string* mutable_raw_data();
  2318. PROTOBUF_NODISCARD std::string* release_raw_data();
  2319. void set_allocated_raw_data(std::string* raw_data);
  2320. private:
  2321. const std::string& _internal_raw_data() const;
  2322. inline PROTOBUF_ALWAYS_INLINE void _internal_set_raw_data(const std::string& value);
  2323. std::string* _internal_mutable_raw_data();
  2324. public:
  2325. // optional string doc_string = 12;
  2326. bool has_doc_string() const;
  2327. private:
  2328. bool _internal_has_doc_string() const;
  2329. public:
  2330. void clear_doc_string();
  2331. const std::string& doc_string() const;
  2332. template <typename ArgT0 = const std::string&, typename... ArgT>
  2333. void set_doc_string(ArgT0&& arg0, ArgT... args);
  2334. std::string* mutable_doc_string();
  2335. PROTOBUF_NODISCARD std::string* release_doc_string();
  2336. void set_allocated_doc_string(std::string* doc_string);
  2337. private:
  2338. const std::string& _internal_doc_string() const;
  2339. inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc_string(const std::string& value);
  2340. std::string* _internal_mutable_doc_string();
  2341. public:
  2342. // optional .opencv_onnx.TensorProto.Segment segment = 3;
  2343. bool has_segment() const;
  2344. private:
  2345. bool _internal_has_segment() const;
  2346. public:
  2347. void clear_segment();
  2348. const ::opencv_onnx::TensorProto_Segment& segment() const;
  2349. PROTOBUF_NODISCARD ::opencv_onnx::TensorProto_Segment* release_segment();
  2350. ::opencv_onnx::TensorProto_Segment* mutable_segment();
  2351. void set_allocated_segment(::opencv_onnx::TensorProto_Segment* segment);
  2352. private:
  2353. const ::opencv_onnx::TensorProto_Segment& _internal_segment() const;
  2354. ::opencv_onnx::TensorProto_Segment* _internal_mutable_segment();
  2355. public:
  2356. void unsafe_arena_set_allocated_segment(
  2357. ::opencv_onnx::TensorProto_Segment* segment);
  2358. ::opencv_onnx::TensorProto_Segment* unsafe_arena_release_segment();
  2359. // optional .opencv_onnx.TensorProto.DataType data_type = 2;
  2360. bool has_data_type() const;
  2361. private:
  2362. bool _internal_has_data_type() const;
  2363. public:
  2364. void clear_data_type();
  2365. ::opencv_onnx::TensorProto_DataType data_type() const;
  2366. void set_data_type(::opencv_onnx::TensorProto_DataType value);
  2367. private:
  2368. ::opencv_onnx::TensorProto_DataType _internal_data_type() const;
  2369. void _internal_set_data_type(::opencv_onnx::TensorProto_DataType value);
  2370. public:
  2371. // @@protoc_insertion_point(class_scope:opencv_onnx.TensorProto)
  2372. private:
  2373. class _Internal;
  2374. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2375. typedef void InternalArenaConstructable_;
  2376. typedef void DestructorSkippable_;
  2377. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2378. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2379. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > dims_;
  2380. ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > float_data_;
  2381. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > int32_data_;
  2382. mutable std::atomic<int> _int32_data_cached_byte_size_;
  2383. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> string_data_;
  2384. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > int64_data_;
  2385. mutable std::atomic<int> _int64_data_cached_byte_size_;
  2386. ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > double_data_;
  2387. ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > uint64_data_;
  2388. mutable std::atomic<int> _uint64_data_cached_byte_size_;
  2389. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2390. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr raw_data_;
  2391. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
  2392. ::opencv_onnx::TensorProto_Segment* segment_;
  2393. int data_type_;
  2394. friend struct ::TableStruct_opencv_2donnx_2eproto;
  2395. };
  2396. // -------------------------------------------------------------------
  2397. class TensorShapeProto_Dimension final :
  2398. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.TensorShapeProto.Dimension) */ {
  2399. public:
  2400. inline TensorShapeProto_Dimension() : TensorShapeProto_Dimension(nullptr) {}
  2401. ~TensorShapeProto_Dimension() override;
  2402. explicit constexpr TensorShapeProto_Dimension(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2403. TensorShapeProto_Dimension(const TensorShapeProto_Dimension& from);
  2404. TensorShapeProto_Dimension(TensorShapeProto_Dimension&& from) noexcept
  2405. : TensorShapeProto_Dimension() {
  2406. *this = ::std::move(from);
  2407. }
  2408. inline TensorShapeProto_Dimension& operator=(const TensorShapeProto_Dimension& from) {
  2409. CopyFrom(from);
  2410. return *this;
  2411. }
  2412. inline TensorShapeProto_Dimension& operator=(TensorShapeProto_Dimension&& from) noexcept {
  2413. if (this == &from) return *this;
  2414. if (GetOwningArena() == from.GetOwningArena()
  2415. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2416. && GetOwningArena() != nullptr
  2417. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2418. ) {
  2419. InternalSwap(&from);
  2420. } else {
  2421. CopyFrom(from);
  2422. }
  2423. return *this;
  2424. }
  2425. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2426. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2427. }
  2428. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2429. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2430. }
  2431. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2432. return GetDescriptor();
  2433. }
  2434. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2435. return default_instance().GetMetadata().descriptor;
  2436. }
  2437. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2438. return default_instance().GetMetadata().reflection;
  2439. }
  2440. static const TensorShapeProto_Dimension& default_instance() {
  2441. return *internal_default_instance();
  2442. }
  2443. enum ValueCase {
  2444. kDimValue = 1,
  2445. kDimParam = 2,
  2446. VALUE_NOT_SET = 0,
  2447. };
  2448. static inline const TensorShapeProto_Dimension* internal_default_instance() {
  2449. return reinterpret_cast<const TensorShapeProto_Dimension*>(
  2450. &_TensorShapeProto_Dimension_default_instance_);
  2451. }
  2452. static constexpr int kIndexInFileMessages =
  2453. 8;
  2454. friend void swap(TensorShapeProto_Dimension& a, TensorShapeProto_Dimension& b) {
  2455. a.Swap(&b);
  2456. }
  2457. inline void Swap(TensorShapeProto_Dimension* other) {
  2458. if (other == this) return;
  2459. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2460. if (GetOwningArena() != nullptr &&
  2461. GetOwningArena() == other->GetOwningArena()) {
  2462. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2463. if (GetOwningArena() == other->GetOwningArena()) {
  2464. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2465. InternalSwap(other);
  2466. } else {
  2467. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2468. }
  2469. }
  2470. void UnsafeArenaSwap(TensorShapeProto_Dimension* other) {
  2471. if (other == this) return;
  2472. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2473. InternalSwap(other);
  2474. }
  2475. // implements Message ----------------------------------------------
  2476. TensorShapeProto_Dimension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2477. return CreateMaybeMessage<TensorShapeProto_Dimension>(arena);
  2478. }
  2479. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2480. void CopyFrom(const TensorShapeProto_Dimension& from);
  2481. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2482. void MergeFrom(const TensorShapeProto_Dimension& from);
  2483. private:
  2484. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2485. public:
  2486. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2487. bool IsInitialized() const final;
  2488. size_t ByteSizeLong() const final;
  2489. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2490. uint8_t* _InternalSerialize(
  2491. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2492. int GetCachedSize() const final { return _cached_size_.Get(); }
  2493. private:
  2494. void SharedCtor();
  2495. void SharedDtor();
  2496. void SetCachedSize(int size) const final;
  2497. void InternalSwap(TensorShapeProto_Dimension* other);
  2498. private:
  2499. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2500. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2501. return "opencv_onnx.TensorShapeProto.Dimension";
  2502. }
  2503. protected:
  2504. explicit TensorShapeProto_Dimension(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2505. bool is_message_owned = false);
  2506. private:
  2507. static void ArenaDtor(void* object);
  2508. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2509. public:
  2510. static const ClassData _class_data_;
  2511. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2512. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2513. // nested types ----------------------------------------------------
  2514. // accessors -------------------------------------------------------
  2515. enum : int {
  2516. kDenotationFieldNumber = 3,
  2517. kDimValueFieldNumber = 1,
  2518. kDimParamFieldNumber = 2,
  2519. };
  2520. // optional string denotation = 3;
  2521. bool has_denotation() const;
  2522. private:
  2523. bool _internal_has_denotation() const;
  2524. public:
  2525. void clear_denotation();
  2526. const std::string& denotation() const;
  2527. template <typename ArgT0 = const std::string&, typename... ArgT>
  2528. void set_denotation(ArgT0&& arg0, ArgT... args);
  2529. std::string* mutable_denotation();
  2530. PROTOBUF_NODISCARD std::string* release_denotation();
  2531. void set_allocated_denotation(std::string* denotation);
  2532. private:
  2533. const std::string& _internal_denotation() const;
  2534. inline PROTOBUF_ALWAYS_INLINE void _internal_set_denotation(const std::string& value);
  2535. std::string* _internal_mutable_denotation();
  2536. public:
  2537. // int64 dim_value = 1;
  2538. bool has_dim_value() const;
  2539. private:
  2540. bool _internal_has_dim_value() const;
  2541. public:
  2542. void clear_dim_value();
  2543. int64_t dim_value() const;
  2544. void set_dim_value(int64_t value);
  2545. private:
  2546. int64_t _internal_dim_value() const;
  2547. void _internal_set_dim_value(int64_t value);
  2548. public:
  2549. // string dim_param = 2;
  2550. bool has_dim_param() const;
  2551. private:
  2552. bool _internal_has_dim_param() const;
  2553. public:
  2554. void clear_dim_param();
  2555. const std::string& dim_param() const;
  2556. template <typename ArgT0 = const std::string&, typename... ArgT>
  2557. void set_dim_param(ArgT0&& arg0, ArgT... args);
  2558. std::string* mutable_dim_param();
  2559. PROTOBUF_NODISCARD std::string* release_dim_param();
  2560. void set_allocated_dim_param(std::string* dim_param);
  2561. private:
  2562. const std::string& _internal_dim_param() const;
  2563. inline PROTOBUF_ALWAYS_INLINE void _internal_set_dim_param(const std::string& value);
  2564. std::string* _internal_mutable_dim_param();
  2565. public:
  2566. void clear_value();
  2567. ValueCase value_case() const;
  2568. // @@protoc_insertion_point(class_scope:opencv_onnx.TensorShapeProto.Dimension)
  2569. private:
  2570. class _Internal;
  2571. void set_has_dim_value();
  2572. void set_has_dim_param();
  2573. inline bool has_value() const;
  2574. inline void clear_has_value();
  2575. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2576. typedef void InternalArenaConstructable_;
  2577. typedef void DestructorSkippable_;
  2578. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2579. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2580. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr denotation_;
  2581. union ValueUnion {
  2582. constexpr ValueUnion() : _constinit_{} {}
  2583. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
  2584. int64_t dim_value_;
  2585. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dim_param_;
  2586. } value_;
  2587. uint32_t _oneof_case_[1];
  2588. friend struct ::TableStruct_opencv_2donnx_2eproto;
  2589. };
  2590. // -------------------------------------------------------------------
  2591. class TensorShapeProto final :
  2592. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.TensorShapeProto) */ {
  2593. public:
  2594. inline TensorShapeProto() : TensorShapeProto(nullptr) {}
  2595. ~TensorShapeProto() override;
  2596. explicit constexpr TensorShapeProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2597. TensorShapeProto(const TensorShapeProto& from);
  2598. TensorShapeProto(TensorShapeProto&& from) noexcept
  2599. : TensorShapeProto() {
  2600. *this = ::std::move(from);
  2601. }
  2602. inline TensorShapeProto& operator=(const TensorShapeProto& from) {
  2603. CopyFrom(from);
  2604. return *this;
  2605. }
  2606. inline TensorShapeProto& operator=(TensorShapeProto&& from) noexcept {
  2607. if (this == &from) return *this;
  2608. if (GetOwningArena() == from.GetOwningArena()
  2609. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2610. && GetOwningArena() != nullptr
  2611. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2612. ) {
  2613. InternalSwap(&from);
  2614. } else {
  2615. CopyFrom(from);
  2616. }
  2617. return *this;
  2618. }
  2619. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2620. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2621. }
  2622. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2623. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2624. }
  2625. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2626. return GetDescriptor();
  2627. }
  2628. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2629. return default_instance().GetMetadata().descriptor;
  2630. }
  2631. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2632. return default_instance().GetMetadata().reflection;
  2633. }
  2634. static const TensorShapeProto& default_instance() {
  2635. return *internal_default_instance();
  2636. }
  2637. static inline const TensorShapeProto* internal_default_instance() {
  2638. return reinterpret_cast<const TensorShapeProto*>(
  2639. &_TensorShapeProto_default_instance_);
  2640. }
  2641. static constexpr int kIndexInFileMessages =
  2642. 9;
  2643. friend void swap(TensorShapeProto& a, TensorShapeProto& b) {
  2644. a.Swap(&b);
  2645. }
  2646. inline void Swap(TensorShapeProto* other) {
  2647. if (other == this) return;
  2648. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2649. if (GetOwningArena() != nullptr &&
  2650. GetOwningArena() == other->GetOwningArena()) {
  2651. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2652. if (GetOwningArena() == other->GetOwningArena()) {
  2653. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2654. InternalSwap(other);
  2655. } else {
  2656. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2657. }
  2658. }
  2659. void UnsafeArenaSwap(TensorShapeProto* other) {
  2660. if (other == this) return;
  2661. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2662. InternalSwap(other);
  2663. }
  2664. // implements Message ----------------------------------------------
  2665. TensorShapeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2666. return CreateMaybeMessage<TensorShapeProto>(arena);
  2667. }
  2668. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2669. void CopyFrom(const TensorShapeProto& from);
  2670. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2671. void MergeFrom(const TensorShapeProto& from);
  2672. private:
  2673. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2674. public:
  2675. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2676. bool IsInitialized() const final;
  2677. size_t ByteSizeLong() const final;
  2678. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2679. uint8_t* _InternalSerialize(
  2680. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2681. int GetCachedSize() const final { return _cached_size_.Get(); }
  2682. private:
  2683. void SharedCtor();
  2684. void SharedDtor();
  2685. void SetCachedSize(int size) const final;
  2686. void InternalSwap(TensorShapeProto* other);
  2687. private:
  2688. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2689. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2690. return "opencv_onnx.TensorShapeProto";
  2691. }
  2692. protected:
  2693. explicit TensorShapeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2694. bool is_message_owned = false);
  2695. private:
  2696. static void ArenaDtor(void* object);
  2697. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2698. public:
  2699. static const ClassData _class_data_;
  2700. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2701. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2702. // nested types ----------------------------------------------------
  2703. typedef TensorShapeProto_Dimension Dimension;
  2704. // accessors -------------------------------------------------------
  2705. enum : int {
  2706. kDimFieldNumber = 1,
  2707. };
  2708. // repeated .opencv_onnx.TensorShapeProto.Dimension dim = 1;
  2709. int dim_size() const;
  2710. private:
  2711. int _internal_dim_size() const;
  2712. public:
  2713. void clear_dim();
  2714. ::opencv_onnx::TensorShapeProto_Dimension* mutable_dim(int index);
  2715. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorShapeProto_Dimension >*
  2716. mutable_dim();
  2717. private:
  2718. const ::opencv_onnx::TensorShapeProto_Dimension& _internal_dim(int index) const;
  2719. ::opencv_onnx::TensorShapeProto_Dimension* _internal_add_dim();
  2720. public:
  2721. const ::opencv_onnx::TensorShapeProto_Dimension& dim(int index) const;
  2722. ::opencv_onnx::TensorShapeProto_Dimension* add_dim();
  2723. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorShapeProto_Dimension >&
  2724. dim() const;
  2725. // @@protoc_insertion_point(class_scope:opencv_onnx.TensorShapeProto)
  2726. private:
  2727. class _Internal;
  2728. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2729. typedef void InternalArenaConstructable_;
  2730. typedef void DestructorSkippable_;
  2731. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorShapeProto_Dimension > dim_;
  2732. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2733. friend struct ::TableStruct_opencv_2donnx_2eproto;
  2734. };
  2735. // -------------------------------------------------------------------
  2736. class TypeProto_Tensor final :
  2737. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.TypeProto.Tensor) */ {
  2738. public:
  2739. inline TypeProto_Tensor() : TypeProto_Tensor(nullptr) {}
  2740. ~TypeProto_Tensor() override;
  2741. explicit constexpr TypeProto_Tensor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2742. TypeProto_Tensor(const TypeProto_Tensor& from);
  2743. TypeProto_Tensor(TypeProto_Tensor&& from) noexcept
  2744. : TypeProto_Tensor() {
  2745. *this = ::std::move(from);
  2746. }
  2747. inline TypeProto_Tensor& operator=(const TypeProto_Tensor& from) {
  2748. CopyFrom(from);
  2749. return *this;
  2750. }
  2751. inline TypeProto_Tensor& operator=(TypeProto_Tensor&& from) noexcept {
  2752. if (this == &from) return *this;
  2753. if (GetOwningArena() == from.GetOwningArena()
  2754. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2755. && GetOwningArena() != nullptr
  2756. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2757. ) {
  2758. InternalSwap(&from);
  2759. } else {
  2760. CopyFrom(from);
  2761. }
  2762. return *this;
  2763. }
  2764. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2765. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2766. }
  2767. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2768. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2769. }
  2770. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2771. return GetDescriptor();
  2772. }
  2773. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2774. return default_instance().GetMetadata().descriptor;
  2775. }
  2776. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2777. return default_instance().GetMetadata().reflection;
  2778. }
  2779. static const TypeProto_Tensor& default_instance() {
  2780. return *internal_default_instance();
  2781. }
  2782. static inline const TypeProto_Tensor* internal_default_instance() {
  2783. return reinterpret_cast<const TypeProto_Tensor*>(
  2784. &_TypeProto_Tensor_default_instance_);
  2785. }
  2786. static constexpr int kIndexInFileMessages =
  2787. 10;
  2788. friend void swap(TypeProto_Tensor& a, TypeProto_Tensor& b) {
  2789. a.Swap(&b);
  2790. }
  2791. inline void Swap(TypeProto_Tensor* other) {
  2792. if (other == this) return;
  2793. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2794. if (GetOwningArena() != nullptr &&
  2795. GetOwningArena() == other->GetOwningArena()) {
  2796. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2797. if (GetOwningArena() == other->GetOwningArena()) {
  2798. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2799. InternalSwap(other);
  2800. } else {
  2801. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2802. }
  2803. }
  2804. void UnsafeArenaSwap(TypeProto_Tensor* other) {
  2805. if (other == this) return;
  2806. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2807. InternalSwap(other);
  2808. }
  2809. // implements Message ----------------------------------------------
  2810. TypeProto_Tensor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2811. return CreateMaybeMessage<TypeProto_Tensor>(arena);
  2812. }
  2813. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2814. void CopyFrom(const TypeProto_Tensor& from);
  2815. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2816. void MergeFrom(const TypeProto_Tensor& from);
  2817. private:
  2818. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2819. public:
  2820. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2821. bool IsInitialized() const final;
  2822. size_t ByteSizeLong() const final;
  2823. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2824. uint8_t* _InternalSerialize(
  2825. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2826. int GetCachedSize() const final { return _cached_size_.Get(); }
  2827. private:
  2828. void SharedCtor();
  2829. void SharedDtor();
  2830. void SetCachedSize(int size) const final;
  2831. void InternalSwap(TypeProto_Tensor* other);
  2832. private:
  2833. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2834. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2835. return "opencv_onnx.TypeProto.Tensor";
  2836. }
  2837. protected:
  2838. explicit TypeProto_Tensor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2839. bool is_message_owned = false);
  2840. private:
  2841. static void ArenaDtor(void* object);
  2842. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2843. public:
  2844. static const ClassData _class_data_;
  2845. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2846. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2847. // nested types ----------------------------------------------------
  2848. // accessors -------------------------------------------------------
  2849. enum : int {
  2850. kShapeFieldNumber = 2,
  2851. kElemTypeFieldNumber = 1,
  2852. };
  2853. // optional .opencv_onnx.TensorShapeProto shape = 2;
  2854. bool has_shape() const;
  2855. private:
  2856. bool _internal_has_shape() const;
  2857. public:
  2858. void clear_shape();
  2859. const ::opencv_onnx::TensorShapeProto& shape() const;
  2860. PROTOBUF_NODISCARD ::opencv_onnx::TensorShapeProto* release_shape();
  2861. ::opencv_onnx::TensorShapeProto* mutable_shape();
  2862. void set_allocated_shape(::opencv_onnx::TensorShapeProto* shape);
  2863. private:
  2864. const ::opencv_onnx::TensorShapeProto& _internal_shape() const;
  2865. ::opencv_onnx::TensorShapeProto* _internal_mutable_shape();
  2866. public:
  2867. void unsafe_arena_set_allocated_shape(
  2868. ::opencv_onnx::TensorShapeProto* shape);
  2869. ::opencv_onnx::TensorShapeProto* unsafe_arena_release_shape();
  2870. // optional .opencv_onnx.TensorProto.DataType elem_type = 1;
  2871. bool has_elem_type() const;
  2872. private:
  2873. bool _internal_has_elem_type() const;
  2874. public:
  2875. void clear_elem_type();
  2876. ::opencv_onnx::TensorProto_DataType elem_type() const;
  2877. void set_elem_type(::opencv_onnx::TensorProto_DataType value);
  2878. private:
  2879. ::opencv_onnx::TensorProto_DataType _internal_elem_type() const;
  2880. void _internal_set_elem_type(::opencv_onnx::TensorProto_DataType value);
  2881. public:
  2882. // @@protoc_insertion_point(class_scope:opencv_onnx.TypeProto.Tensor)
  2883. private:
  2884. class _Internal;
  2885. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2886. typedef void InternalArenaConstructable_;
  2887. typedef void DestructorSkippable_;
  2888. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2889. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2890. ::opencv_onnx::TensorShapeProto* shape_;
  2891. int elem_type_;
  2892. friend struct ::TableStruct_opencv_2donnx_2eproto;
  2893. };
  2894. // -------------------------------------------------------------------
  2895. class TypeProto final :
  2896. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.TypeProto) */ {
  2897. public:
  2898. inline TypeProto() : TypeProto(nullptr) {}
  2899. ~TypeProto() override;
  2900. explicit constexpr TypeProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2901. TypeProto(const TypeProto& from);
  2902. TypeProto(TypeProto&& from) noexcept
  2903. : TypeProto() {
  2904. *this = ::std::move(from);
  2905. }
  2906. inline TypeProto& operator=(const TypeProto& from) {
  2907. CopyFrom(from);
  2908. return *this;
  2909. }
  2910. inline TypeProto& operator=(TypeProto&& from) noexcept {
  2911. if (this == &from) return *this;
  2912. if (GetOwningArena() == from.GetOwningArena()
  2913. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2914. && GetOwningArena() != nullptr
  2915. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2916. ) {
  2917. InternalSwap(&from);
  2918. } else {
  2919. CopyFrom(from);
  2920. }
  2921. return *this;
  2922. }
  2923. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2924. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2925. }
  2926. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2927. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2928. }
  2929. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2930. return GetDescriptor();
  2931. }
  2932. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2933. return default_instance().GetMetadata().descriptor;
  2934. }
  2935. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2936. return default_instance().GetMetadata().reflection;
  2937. }
  2938. static const TypeProto& default_instance() {
  2939. return *internal_default_instance();
  2940. }
  2941. enum ValueCase {
  2942. kTensorType = 1,
  2943. VALUE_NOT_SET = 0,
  2944. };
  2945. static inline const TypeProto* internal_default_instance() {
  2946. return reinterpret_cast<const TypeProto*>(
  2947. &_TypeProto_default_instance_);
  2948. }
  2949. static constexpr int kIndexInFileMessages =
  2950. 11;
  2951. friend void swap(TypeProto& a, TypeProto& b) {
  2952. a.Swap(&b);
  2953. }
  2954. inline void Swap(TypeProto* other) {
  2955. if (other == this) return;
  2956. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2957. if (GetOwningArena() != nullptr &&
  2958. GetOwningArena() == other->GetOwningArena()) {
  2959. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2960. if (GetOwningArena() == other->GetOwningArena()) {
  2961. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2962. InternalSwap(other);
  2963. } else {
  2964. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2965. }
  2966. }
  2967. void UnsafeArenaSwap(TypeProto* other) {
  2968. if (other == this) return;
  2969. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2970. InternalSwap(other);
  2971. }
  2972. // implements Message ----------------------------------------------
  2973. TypeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2974. return CreateMaybeMessage<TypeProto>(arena);
  2975. }
  2976. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2977. void CopyFrom(const TypeProto& from);
  2978. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2979. void MergeFrom(const TypeProto& from);
  2980. private:
  2981. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2982. public:
  2983. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2984. bool IsInitialized() const final;
  2985. size_t ByteSizeLong() const final;
  2986. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2987. uint8_t* _InternalSerialize(
  2988. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2989. int GetCachedSize() const final { return _cached_size_.Get(); }
  2990. private:
  2991. void SharedCtor();
  2992. void SharedDtor();
  2993. void SetCachedSize(int size) const final;
  2994. void InternalSwap(TypeProto* other);
  2995. private:
  2996. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2997. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2998. return "opencv_onnx.TypeProto";
  2999. }
  3000. protected:
  3001. explicit TypeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3002. bool is_message_owned = false);
  3003. private:
  3004. static void ArenaDtor(void* object);
  3005. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3006. public:
  3007. static const ClassData _class_data_;
  3008. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  3009. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3010. // nested types ----------------------------------------------------
  3011. typedef TypeProto_Tensor Tensor;
  3012. // accessors -------------------------------------------------------
  3013. enum : int {
  3014. kDenotationFieldNumber = 6,
  3015. kTensorTypeFieldNumber = 1,
  3016. };
  3017. // optional string denotation = 6;
  3018. bool has_denotation() const;
  3019. private:
  3020. bool _internal_has_denotation() const;
  3021. public:
  3022. void clear_denotation();
  3023. const std::string& denotation() const;
  3024. template <typename ArgT0 = const std::string&, typename... ArgT>
  3025. void set_denotation(ArgT0&& arg0, ArgT... args);
  3026. std::string* mutable_denotation();
  3027. PROTOBUF_NODISCARD std::string* release_denotation();
  3028. void set_allocated_denotation(std::string* denotation);
  3029. private:
  3030. const std::string& _internal_denotation() const;
  3031. inline PROTOBUF_ALWAYS_INLINE void _internal_set_denotation(const std::string& value);
  3032. std::string* _internal_mutable_denotation();
  3033. public:
  3034. // .opencv_onnx.TypeProto.Tensor tensor_type = 1;
  3035. bool has_tensor_type() const;
  3036. private:
  3037. bool _internal_has_tensor_type() const;
  3038. public:
  3039. void clear_tensor_type();
  3040. const ::opencv_onnx::TypeProto_Tensor& tensor_type() const;
  3041. PROTOBUF_NODISCARD ::opencv_onnx::TypeProto_Tensor* release_tensor_type();
  3042. ::opencv_onnx::TypeProto_Tensor* mutable_tensor_type();
  3043. void set_allocated_tensor_type(::opencv_onnx::TypeProto_Tensor* tensor_type);
  3044. private:
  3045. const ::opencv_onnx::TypeProto_Tensor& _internal_tensor_type() const;
  3046. ::opencv_onnx::TypeProto_Tensor* _internal_mutable_tensor_type();
  3047. public:
  3048. void unsafe_arena_set_allocated_tensor_type(
  3049. ::opencv_onnx::TypeProto_Tensor* tensor_type);
  3050. ::opencv_onnx::TypeProto_Tensor* unsafe_arena_release_tensor_type();
  3051. void clear_value();
  3052. ValueCase value_case() const;
  3053. // @@protoc_insertion_point(class_scope:opencv_onnx.TypeProto)
  3054. private:
  3055. class _Internal;
  3056. void set_has_tensor_type();
  3057. inline bool has_value() const;
  3058. inline void clear_has_value();
  3059. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3060. typedef void InternalArenaConstructable_;
  3061. typedef void DestructorSkippable_;
  3062. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3063. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3064. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr denotation_;
  3065. union ValueUnion {
  3066. constexpr ValueUnion() : _constinit_{} {}
  3067. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
  3068. ::opencv_onnx::TypeProto_Tensor* tensor_type_;
  3069. } value_;
  3070. uint32_t _oneof_case_[1];
  3071. friend struct ::TableStruct_opencv_2donnx_2eproto;
  3072. };
  3073. // -------------------------------------------------------------------
  3074. class OperatorSetIdProto final :
  3075. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.OperatorSetIdProto) */ {
  3076. public:
  3077. inline OperatorSetIdProto() : OperatorSetIdProto(nullptr) {}
  3078. ~OperatorSetIdProto() override;
  3079. explicit constexpr OperatorSetIdProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  3080. OperatorSetIdProto(const OperatorSetIdProto& from);
  3081. OperatorSetIdProto(OperatorSetIdProto&& from) noexcept
  3082. : OperatorSetIdProto() {
  3083. *this = ::std::move(from);
  3084. }
  3085. inline OperatorSetIdProto& operator=(const OperatorSetIdProto& from) {
  3086. CopyFrom(from);
  3087. return *this;
  3088. }
  3089. inline OperatorSetIdProto& operator=(OperatorSetIdProto&& from) noexcept {
  3090. if (this == &from) return *this;
  3091. if (GetOwningArena() == from.GetOwningArena()
  3092. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3093. && GetOwningArena() != nullptr
  3094. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3095. ) {
  3096. InternalSwap(&from);
  3097. } else {
  3098. CopyFrom(from);
  3099. }
  3100. return *this;
  3101. }
  3102. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  3103. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  3104. }
  3105. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  3106. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3107. }
  3108. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3109. return GetDescriptor();
  3110. }
  3111. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3112. return default_instance().GetMetadata().descriptor;
  3113. }
  3114. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3115. return default_instance().GetMetadata().reflection;
  3116. }
  3117. static const OperatorSetIdProto& default_instance() {
  3118. return *internal_default_instance();
  3119. }
  3120. static inline const OperatorSetIdProto* internal_default_instance() {
  3121. return reinterpret_cast<const OperatorSetIdProto*>(
  3122. &_OperatorSetIdProto_default_instance_);
  3123. }
  3124. static constexpr int kIndexInFileMessages =
  3125. 12;
  3126. friend void swap(OperatorSetIdProto& a, OperatorSetIdProto& b) {
  3127. a.Swap(&b);
  3128. }
  3129. inline void Swap(OperatorSetIdProto* other) {
  3130. if (other == this) return;
  3131. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3132. if (GetOwningArena() != nullptr &&
  3133. GetOwningArena() == other->GetOwningArena()) {
  3134. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3135. if (GetOwningArena() == other->GetOwningArena()) {
  3136. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3137. InternalSwap(other);
  3138. } else {
  3139. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  3140. }
  3141. }
  3142. void UnsafeArenaSwap(OperatorSetIdProto* other) {
  3143. if (other == this) return;
  3144. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  3145. InternalSwap(other);
  3146. }
  3147. // implements Message ----------------------------------------------
  3148. OperatorSetIdProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  3149. return CreateMaybeMessage<OperatorSetIdProto>(arena);
  3150. }
  3151. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  3152. void CopyFrom(const OperatorSetIdProto& from);
  3153. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  3154. void MergeFrom(const OperatorSetIdProto& from);
  3155. private:
  3156. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  3157. public:
  3158. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3159. bool IsInitialized() const final;
  3160. size_t ByteSizeLong() const final;
  3161. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3162. uint8_t* _InternalSerialize(
  3163. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3164. int GetCachedSize() const final { return _cached_size_.Get(); }
  3165. private:
  3166. void SharedCtor();
  3167. void SharedDtor();
  3168. void SetCachedSize(int size) const final;
  3169. void InternalSwap(OperatorSetIdProto* other);
  3170. private:
  3171. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3172. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3173. return "opencv_onnx.OperatorSetIdProto";
  3174. }
  3175. protected:
  3176. explicit OperatorSetIdProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3177. bool is_message_owned = false);
  3178. private:
  3179. static void ArenaDtor(void* object);
  3180. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3181. public:
  3182. static const ClassData _class_data_;
  3183. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  3184. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3185. // nested types ----------------------------------------------------
  3186. // accessors -------------------------------------------------------
  3187. enum : int {
  3188. kDomainFieldNumber = 1,
  3189. kVersionFieldNumber = 2,
  3190. };
  3191. // optional string domain = 1;
  3192. bool has_domain() const;
  3193. private:
  3194. bool _internal_has_domain() const;
  3195. public:
  3196. void clear_domain();
  3197. const std::string& domain() const;
  3198. template <typename ArgT0 = const std::string&, typename... ArgT>
  3199. void set_domain(ArgT0&& arg0, ArgT... args);
  3200. std::string* mutable_domain();
  3201. PROTOBUF_NODISCARD std::string* release_domain();
  3202. void set_allocated_domain(std::string* domain);
  3203. private:
  3204. const std::string& _internal_domain() const;
  3205. inline PROTOBUF_ALWAYS_INLINE void _internal_set_domain(const std::string& value);
  3206. std::string* _internal_mutable_domain();
  3207. public:
  3208. // optional int64 version = 2;
  3209. bool has_version() const;
  3210. private:
  3211. bool _internal_has_version() const;
  3212. public:
  3213. void clear_version();
  3214. int64_t version() const;
  3215. void set_version(int64_t value);
  3216. private:
  3217. int64_t _internal_version() const;
  3218. void _internal_set_version(int64_t value);
  3219. public:
  3220. // @@protoc_insertion_point(class_scope:opencv_onnx.OperatorSetIdProto)
  3221. private:
  3222. class _Internal;
  3223. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3224. typedef void InternalArenaConstructable_;
  3225. typedef void DestructorSkippable_;
  3226. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3227. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3228. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domain_;
  3229. int64_t version_;
  3230. friend struct ::TableStruct_opencv_2donnx_2eproto;
  3231. };
  3232. // ===================================================================
  3233. // ===================================================================
  3234. #ifdef __GNUC__
  3235. #pragma GCC diagnostic push
  3236. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  3237. #endif // __GNUC__
  3238. // AttributeProto
  3239. // optional string name = 1;
  3240. inline bool AttributeProto::_internal_has_name() const {
  3241. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  3242. return value;
  3243. }
  3244. inline bool AttributeProto::has_name() const {
  3245. return _internal_has_name();
  3246. }
  3247. inline void AttributeProto::clear_name() {
  3248. name_.ClearToEmpty();
  3249. _has_bits_[0] &= ~0x00000001u;
  3250. }
  3251. inline const std::string& AttributeProto::name() const {
  3252. // @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.name)
  3253. return _internal_name();
  3254. }
  3255. template <typename ArgT0, typename... ArgT>
  3256. inline PROTOBUF_ALWAYS_INLINE
  3257. void AttributeProto::set_name(ArgT0&& arg0, ArgT... args) {
  3258. _has_bits_[0] |= 0x00000001u;
  3259. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  3260. // @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.name)
  3261. }
  3262. inline std::string* AttributeProto::mutable_name() {
  3263. std::string* _s = _internal_mutable_name();
  3264. // @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.name)
  3265. return _s;
  3266. }
  3267. inline const std::string& AttributeProto::_internal_name() const {
  3268. return name_.Get();
  3269. }
  3270. inline void AttributeProto::_internal_set_name(const std::string& value) {
  3271. _has_bits_[0] |= 0x00000001u;
  3272. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  3273. }
  3274. inline std::string* AttributeProto::_internal_mutable_name() {
  3275. _has_bits_[0] |= 0x00000001u;
  3276. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  3277. }
  3278. inline std::string* AttributeProto::release_name() {
  3279. // @@protoc_insertion_point(field_release:opencv_onnx.AttributeProto.name)
  3280. if (!_internal_has_name()) {
  3281. return nullptr;
  3282. }
  3283. _has_bits_[0] &= ~0x00000001u;
  3284. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  3285. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3286. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  3287. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3288. }
  3289. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3290. return p;
  3291. }
  3292. inline void AttributeProto::set_allocated_name(std::string* name) {
  3293. if (name != nullptr) {
  3294. _has_bits_[0] |= 0x00000001u;
  3295. } else {
  3296. _has_bits_[0] &= ~0x00000001u;
  3297. }
  3298. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  3299. GetArenaForAllocation());
  3300. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3301. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  3302. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3303. }
  3304. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3305. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.AttributeProto.name)
  3306. }
  3307. // optional string ref_attr_name = 21;
  3308. inline bool AttributeProto::_internal_has_ref_attr_name() const {
  3309. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  3310. return value;
  3311. }
  3312. inline bool AttributeProto::has_ref_attr_name() const {
  3313. return _internal_has_ref_attr_name();
  3314. }
  3315. inline void AttributeProto::clear_ref_attr_name() {
  3316. ref_attr_name_.ClearToEmpty();
  3317. _has_bits_[0] &= ~0x00000008u;
  3318. }
  3319. inline const std::string& AttributeProto::ref_attr_name() const {
  3320. // @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.ref_attr_name)
  3321. return _internal_ref_attr_name();
  3322. }
  3323. template <typename ArgT0, typename... ArgT>
  3324. inline PROTOBUF_ALWAYS_INLINE
  3325. void AttributeProto::set_ref_attr_name(ArgT0&& arg0, ArgT... args) {
  3326. _has_bits_[0] |= 0x00000008u;
  3327. ref_attr_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  3328. // @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.ref_attr_name)
  3329. }
  3330. inline std::string* AttributeProto::mutable_ref_attr_name() {
  3331. std::string* _s = _internal_mutable_ref_attr_name();
  3332. // @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.ref_attr_name)
  3333. return _s;
  3334. }
  3335. inline const std::string& AttributeProto::_internal_ref_attr_name() const {
  3336. return ref_attr_name_.Get();
  3337. }
  3338. inline void AttributeProto::_internal_set_ref_attr_name(const std::string& value) {
  3339. _has_bits_[0] |= 0x00000008u;
  3340. ref_attr_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  3341. }
  3342. inline std::string* AttributeProto::_internal_mutable_ref_attr_name() {
  3343. _has_bits_[0] |= 0x00000008u;
  3344. return ref_attr_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  3345. }
  3346. inline std::string* AttributeProto::release_ref_attr_name() {
  3347. // @@protoc_insertion_point(field_release:opencv_onnx.AttributeProto.ref_attr_name)
  3348. if (!_internal_has_ref_attr_name()) {
  3349. return nullptr;
  3350. }
  3351. _has_bits_[0] &= ~0x00000008u;
  3352. auto* p = ref_attr_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  3353. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3354. if (ref_attr_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  3355. ref_attr_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3356. }
  3357. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3358. return p;
  3359. }
  3360. inline void AttributeProto::set_allocated_ref_attr_name(std::string* ref_attr_name) {
  3361. if (ref_attr_name != nullptr) {
  3362. _has_bits_[0] |= 0x00000008u;
  3363. } else {
  3364. _has_bits_[0] &= ~0x00000008u;
  3365. }
  3366. ref_attr_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ref_attr_name,
  3367. GetArenaForAllocation());
  3368. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3369. if (ref_attr_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  3370. ref_attr_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3371. }
  3372. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3373. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.AttributeProto.ref_attr_name)
  3374. }
  3375. // optional string doc_string = 13;
  3376. inline bool AttributeProto::_internal_has_doc_string() const {
  3377. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  3378. return value;
  3379. }
  3380. inline bool AttributeProto::has_doc_string() const {
  3381. return _internal_has_doc_string();
  3382. }
  3383. inline void AttributeProto::clear_doc_string() {
  3384. doc_string_.ClearToEmpty();
  3385. _has_bits_[0] &= ~0x00000004u;
  3386. }
  3387. inline const std::string& AttributeProto::doc_string() const {
  3388. // @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.doc_string)
  3389. return _internal_doc_string();
  3390. }
  3391. template <typename ArgT0, typename... ArgT>
  3392. inline PROTOBUF_ALWAYS_INLINE
  3393. void AttributeProto::set_doc_string(ArgT0&& arg0, ArgT... args) {
  3394. _has_bits_[0] |= 0x00000004u;
  3395. doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  3396. // @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.doc_string)
  3397. }
  3398. inline std::string* AttributeProto::mutable_doc_string() {
  3399. std::string* _s = _internal_mutable_doc_string();
  3400. // @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.doc_string)
  3401. return _s;
  3402. }
  3403. inline const std::string& AttributeProto::_internal_doc_string() const {
  3404. return doc_string_.Get();
  3405. }
  3406. inline void AttributeProto::_internal_set_doc_string(const std::string& value) {
  3407. _has_bits_[0] |= 0x00000004u;
  3408. doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  3409. }
  3410. inline std::string* AttributeProto::_internal_mutable_doc_string() {
  3411. _has_bits_[0] |= 0x00000004u;
  3412. return doc_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  3413. }
  3414. inline std::string* AttributeProto::release_doc_string() {
  3415. // @@protoc_insertion_point(field_release:opencv_onnx.AttributeProto.doc_string)
  3416. if (!_internal_has_doc_string()) {
  3417. return nullptr;
  3418. }
  3419. _has_bits_[0] &= ~0x00000004u;
  3420. auto* p = doc_string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  3421. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3422. if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  3423. doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3424. }
  3425. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3426. return p;
  3427. }
  3428. inline void AttributeProto::set_allocated_doc_string(std::string* doc_string) {
  3429. if (doc_string != nullptr) {
  3430. _has_bits_[0] |= 0x00000004u;
  3431. } else {
  3432. _has_bits_[0] &= ~0x00000004u;
  3433. }
  3434. doc_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), doc_string,
  3435. GetArenaForAllocation());
  3436. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3437. if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  3438. doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3439. }
  3440. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3441. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.AttributeProto.doc_string)
  3442. }
  3443. // optional .opencv_onnx.AttributeProto.AttributeType type = 20;
  3444. inline bool AttributeProto::_internal_has_type() const {
  3445. bool value = (_has_bits_[0] & 0x00000100u) != 0;
  3446. return value;
  3447. }
  3448. inline bool AttributeProto::has_type() const {
  3449. return _internal_has_type();
  3450. }
  3451. inline void AttributeProto::clear_type() {
  3452. type_ = 0;
  3453. _has_bits_[0] &= ~0x00000100u;
  3454. }
  3455. inline ::opencv_onnx::AttributeProto_AttributeType AttributeProto::_internal_type() const {
  3456. return static_cast< ::opencv_onnx::AttributeProto_AttributeType >(type_);
  3457. }
  3458. inline ::opencv_onnx::AttributeProto_AttributeType AttributeProto::type() const {
  3459. // @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.type)
  3460. return _internal_type();
  3461. }
  3462. inline void AttributeProto::_internal_set_type(::opencv_onnx::AttributeProto_AttributeType value) {
  3463. assert(::opencv_onnx::AttributeProto_AttributeType_IsValid(value));
  3464. _has_bits_[0] |= 0x00000100u;
  3465. type_ = value;
  3466. }
  3467. inline void AttributeProto::set_type(::opencv_onnx::AttributeProto_AttributeType value) {
  3468. _internal_set_type(value);
  3469. // @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.type)
  3470. }
  3471. // optional float f = 2;
  3472. inline bool AttributeProto::_internal_has_f() const {
  3473. bool value = (_has_bits_[0] & 0x00000080u) != 0;
  3474. return value;
  3475. }
  3476. inline bool AttributeProto::has_f() const {
  3477. return _internal_has_f();
  3478. }
  3479. inline void AttributeProto::clear_f() {
  3480. f_ = 0;
  3481. _has_bits_[0] &= ~0x00000080u;
  3482. }
  3483. inline float AttributeProto::_internal_f() const {
  3484. return f_;
  3485. }
  3486. inline float AttributeProto::f() const {
  3487. // @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.f)
  3488. return _internal_f();
  3489. }
  3490. inline void AttributeProto::_internal_set_f(float value) {
  3491. _has_bits_[0] |= 0x00000080u;
  3492. f_ = value;
  3493. }
  3494. inline void AttributeProto::set_f(float value) {
  3495. _internal_set_f(value);
  3496. // @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.f)
  3497. }
  3498. // optional int64 i = 3;
  3499. inline bool AttributeProto::_internal_has_i() const {
  3500. bool value = (_has_bits_[0] & 0x00000040u) != 0;
  3501. return value;
  3502. }
  3503. inline bool AttributeProto::has_i() const {
  3504. return _internal_has_i();
  3505. }
  3506. inline void AttributeProto::clear_i() {
  3507. i_ = int64_t{0};
  3508. _has_bits_[0] &= ~0x00000040u;
  3509. }
  3510. inline int64_t AttributeProto::_internal_i() const {
  3511. return i_;
  3512. }
  3513. inline int64_t AttributeProto::i() const {
  3514. // @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.i)
  3515. return _internal_i();
  3516. }
  3517. inline void AttributeProto::_internal_set_i(int64_t value) {
  3518. _has_bits_[0] |= 0x00000040u;
  3519. i_ = value;
  3520. }
  3521. inline void AttributeProto::set_i(int64_t value) {
  3522. _internal_set_i(value);
  3523. // @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.i)
  3524. }
  3525. // optional bytes s = 4;
  3526. inline bool AttributeProto::_internal_has_s() const {
  3527. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  3528. return value;
  3529. }
  3530. inline bool AttributeProto::has_s() const {
  3531. return _internal_has_s();
  3532. }
  3533. inline void AttributeProto::clear_s() {
  3534. s_.ClearToEmpty();
  3535. _has_bits_[0] &= ~0x00000002u;
  3536. }
  3537. inline const std::string& AttributeProto::s() const {
  3538. // @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.s)
  3539. return _internal_s();
  3540. }
  3541. template <typename ArgT0, typename... ArgT>
  3542. inline PROTOBUF_ALWAYS_INLINE
  3543. void AttributeProto::set_s(ArgT0&& arg0, ArgT... args) {
  3544. _has_bits_[0] |= 0x00000002u;
  3545. s_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  3546. // @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.s)
  3547. }
  3548. inline std::string* AttributeProto::mutable_s() {
  3549. std::string* _s = _internal_mutable_s();
  3550. // @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.s)
  3551. return _s;
  3552. }
  3553. inline const std::string& AttributeProto::_internal_s() const {
  3554. return s_.Get();
  3555. }
  3556. inline void AttributeProto::_internal_set_s(const std::string& value) {
  3557. _has_bits_[0] |= 0x00000002u;
  3558. s_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  3559. }
  3560. inline std::string* AttributeProto::_internal_mutable_s() {
  3561. _has_bits_[0] |= 0x00000002u;
  3562. return s_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  3563. }
  3564. inline std::string* AttributeProto::release_s() {
  3565. // @@protoc_insertion_point(field_release:opencv_onnx.AttributeProto.s)
  3566. if (!_internal_has_s()) {
  3567. return nullptr;
  3568. }
  3569. _has_bits_[0] &= ~0x00000002u;
  3570. auto* p = s_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  3571. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3572. if (s_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  3573. s_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3574. }
  3575. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3576. return p;
  3577. }
  3578. inline void AttributeProto::set_allocated_s(std::string* s) {
  3579. if (s != nullptr) {
  3580. _has_bits_[0] |= 0x00000002u;
  3581. } else {
  3582. _has_bits_[0] &= ~0x00000002u;
  3583. }
  3584. s_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), s,
  3585. GetArenaForAllocation());
  3586. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3587. if (s_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  3588. s_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  3589. }
  3590. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3591. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.AttributeProto.s)
  3592. }
  3593. // optional .opencv_onnx.TensorProto t = 5;
  3594. inline bool AttributeProto::_internal_has_t() const {
  3595. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  3596. PROTOBUF_ASSUME(!value || t_ != nullptr);
  3597. return value;
  3598. }
  3599. inline bool AttributeProto::has_t() const {
  3600. return _internal_has_t();
  3601. }
  3602. inline void AttributeProto::clear_t() {
  3603. if (t_ != nullptr) t_->Clear();
  3604. _has_bits_[0] &= ~0x00000010u;
  3605. }
  3606. inline const ::opencv_onnx::TensorProto& AttributeProto::_internal_t() const {
  3607. const ::opencv_onnx::TensorProto* p = t_;
  3608. return p != nullptr ? *p : reinterpret_cast<const ::opencv_onnx::TensorProto&>(
  3609. ::opencv_onnx::_TensorProto_default_instance_);
  3610. }
  3611. inline const ::opencv_onnx::TensorProto& AttributeProto::t() const {
  3612. // @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.t)
  3613. return _internal_t();
  3614. }
  3615. inline void AttributeProto::unsafe_arena_set_allocated_t(
  3616. ::opencv_onnx::TensorProto* t) {
  3617. if (GetArenaForAllocation() == nullptr) {
  3618. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(t_);
  3619. }
  3620. t_ = t;
  3621. if (t) {
  3622. _has_bits_[0] |= 0x00000010u;
  3623. } else {
  3624. _has_bits_[0] &= ~0x00000010u;
  3625. }
  3626. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_onnx.AttributeProto.t)
  3627. }
  3628. inline ::opencv_onnx::TensorProto* AttributeProto::release_t() {
  3629. _has_bits_[0] &= ~0x00000010u;
  3630. ::opencv_onnx::TensorProto* temp = t_;
  3631. t_ = nullptr;
  3632. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  3633. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  3634. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  3635. if (GetArenaForAllocation() == nullptr) { delete old; }
  3636. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  3637. if (GetArenaForAllocation() != nullptr) {
  3638. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  3639. }
  3640. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  3641. return temp;
  3642. }
  3643. inline ::opencv_onnx::TensorProto* AttributeProto::unsafe_arena_release_t() {
  3644. // @@protoc_insertion_point(field_release:opencv_onnx.AttributeProto.t)
  3645. _has_bits_[0] &= ~0x00000010u;
  3646. ::opencv_onnx::TensorProto* temp = t_;
  3647. t_ = nullptr;
  3648. return temp;
  3649. }
  3650. inline ::opencv_onnx::TensorProto* AttributeProto::_internal_mutable_t() {
  3651. _has_bits_[0] |= 0x00000010u;
  3652. if (t_ == nullptr) {
  3653. auto* p = CreateMaybeMessage<::opencv_onnx::TensorProto>(GetArenaForAllocation());
  3654. t_ = p;
  3655. }
  3656. return t_;
  3657. }
  3658. inline ::opencv_onnx::TensorProto* AttributeProto::mutable_t() {
  3659. ::opencv_onnx::TensorProto* _msg = _internal_mutable_t();
  3660. // @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.t)
  3661. return _msg;
  3662. }
  3663. inline void AttributeProto::set_allocated_t(::opencv_onnx::TensorProto* t) {
  3664. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  3665. if (message_arena == nullptr) {
  3666. delete t_;
  3667. }
  3668. if (t) {
  3669. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  3670. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opencv_onnx::TensorProto>::GetOwningArena(t);
  3671. if (message_arena != submessage_arena) {
  3672. t = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  3673. message_arena, t, submessage_arena);
  3674. }
  3675. _has_bits_[0] |= 0x00000010u;
  3676. } else {
  3677. _has_bits_[0] &= ~0x00000010u;
  3678. }
  3679. t_ = t;
  3680. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.AttributeProto.t)
  3681. }
  3682. // optional .opencv_onnx.GraphProto g = 6;
  3683. inline bool AttributeProto::_internal_has_g() const {
  3684. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  3685. PROTOBUF_ASSUME(!value || g_ != nullptr);
  3686. return value;
  3687. }
  3688. inline bool AttributeProto::has_g() const {
  3689. return _internal_has_g();
  3690. }
  3691. inline void AttributeProto::clear_g() {
  3692. if (g_ != nullptr) g_->Clear();
  3693. _has_bits_[0] &= ~0x00000020u;
  3694. }
  3695. inline const ::opencv_onnx::GraphProto& AttributeProto::_internal_g() const {
  3696. const ::opencv_onnx::GraphProto* p = g_;
  3697. return p != nullptr ? *p : reinterpret_cast<const ::opencv_onnx::GraphProto&>(
  3698. ::opencv_onnx::_GraphProto_default_instance_);
  3699. }
  3700. inline const ::opencv_onnx::GraphProto& AttributeProto::g() const {
  3701. // @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.g)
  3702. return _internal_g();
  3703. }
  3704. inline void AttributeProto::unsafe_arena_set_allocated_g(
  3705. ::opencv_onnx::GraphProto* g) {
  3706. if (GetArenaForAllocation() == nullptr) {
  3707. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(g_);
  3708. }
  3709. g_ = g;
  3710. if (g) {
  3711. _has_bits_[0] |= 0x00000020u;
  3712. } else {
  3713. _has_bits_[0] &= ~0x00000020u;
  3714. }
  3715. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_onnx.AttributeProto.g)
  3716. }
  3717. inline ::opencv_onnx::GraphProto* AttributeProto::release_g() {
  3718. _has_bits_[0] &= ~0x00000020u;
  3719. ::opencv_onnx::GraphProto* temp = g_;
  3720. g_ = nullptr;
  3721. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  3722. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  3723. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  3724. if (GetArenaForAllocation() == nullptr) { delete old; }
  3725. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  3726. if (GetArenaForAllocation() != nullptr) {
  3727. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  3728. }
  3729. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  3730. return temp;
  3731. }
  3732. inline ::opencv_onnx::GraphProto* AttributeProto::unsafe_arena_release_g() {
  3733. // @@protoc_insertion_point(field_release:opencv_onnx.AttributeProto.g)
  3734. _has_bits_[0] &= ~0x00000020u;
  3735. ::opencv_onnx::GraphProto* temp = g_;
  3736. g_ = nullptr;
  3737. return temp;
  3738. }
  3739. inline ::opencv_onnx::GraphProto* AttributeProto::_internal_mutable_g() {
  3740. _has_bits_[0] |= 0x00000020u;
  3741. if (g_ == nullptr) {
  3742. auto* p = CreateMaybeMessage<::opencv_onnx::GraphProto>(GetArenaForAllocation());
  3743. g_ = p;
  3744. }
  3745. return g_;
  3746. }
  3747. inline ::opencv_onnx::GraphProto* AttributeProto::mutable_g() {
  3748. ::opencv_onnx::GraphProto* _msg = _internal_mutable_g();
  3749. // @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.g)
  3750. return _msg;
  3751. }
  3752. inline void AttributeProto::set_allocated_g(::opencv_onnx::GraphProto* g) {
  3753. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  3754. if (message_arena == nullptr) {
  3755. delete g_;
  3756. }
  3757. if (g) {
  3758. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  3759. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opencv_onnx::GraphProto>::GetOwningArena(g);
  3760. if (message_arena != submessage_arena) {
  3761. g = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  3762. message_arena, g, submessage_arena);
  3763. }
  3764. _has_bits_[0] |= 0x00000020u;
  3765. } else {
  3766. _has_bits_[0] &= ~0x00000020u;
  3767. }
  3768. g_ = g;
  3769. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.AttributeProto.g)
  3770. }
  3771. // repeated float floats = 7;
  3772. inline int AttributeProto::_internal_floats_size() const {
  3773. return floats_.size();
  3774. }
  3775. inline int AttributeProto::floats_size() const {
  3776. return _internal_floats_size();
  3777. }
  3778. inline void AttributeProto::clear_floats() {
  3779. floats_.Clear();
  3780. }
  3781. inline float AttributeProto::_internal_floats(int index) const {
  3782. return floats_.Get(index);
  3783. }
  3784. inline float AttributeProto::floats(int index) const {
  3785. // @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.floats)
  3786. return _internal_floats(index);
  3787. }
  3788. inline void AttributeProto::set_floats(int index, float value) {
  3789. floats_.Set(index, value);
  3790. // @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.floats)
  3791. }
  3792. inline void AttributeProto::_internal_add_floats(float value) {
  3793. floats_.Add(value);
  3794. }
  3795. inline void AttributeProto::add_floats(float value) {
  3796. _internal_add_floats(value);
  3797. // @@protoc_insertion_point(field_add:opencv_onnx.AttributeProto.floats)
  3798. }
  3799. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  3800. AttributeProto::_internal_floats() const {
  3801. return floats_;
  3802. }
  3803. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  3804. AttributeProto::floats() const {
  3805. // @@protoc_insertion_point(field_list:opencv_onnx.AttributeProto.floats)
  3806. return _internal_floats();
  3807. }
  3808. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  3809. AttributeProto::_internal_mutable_floats() {
  3810. return &floats_;
  3811. }
  3812. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  3813. AttributeProto::mutable_floats() {
  3814. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.AttributeProto.floats)
  3815. return _internal_mutable_floats();
  3816. }
  3817. // repeated int64 ints = 8;
  3818. inline int AttributeProto::_internal_ints_size() const {
  3819. return ints_.size();
  3820. }
  3821. inline int AttributeProto::ints_size() const {
  3822. return _internal_ints_size();
  3823. }
  3824. inline void AttributeProto::clear_ints() {
  3825. ints_.Clear();
  3826. }
  3827. inline int64_t AttributeProto::_internal_ints(int index) const {
  3828. return ints_.Get(index);
  3829. }
  3830. inline int64_t AttributeProto::ints(int index) const {
  3831. // @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.ints)
  3832. return _internal_ints(index);
  3833. }
  3834. inline void AttributeProto::set_ints(int index, int64_t value) {
  3835. ints_.Set(index, value);
  3836. // @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.ints)
  3837. }
  3838. inline void AttributeProto::_internal_add_ints(int64_t value) {
  3839. ints_.Add(value);
  3840. }
  3841. inline void AttributeProto::add_ints(int64_t value) {
  3842. _internal_add_ints(value);
  3843. // @@protoc_insertion_point(field_add:opencv_onnx.AttributeProto.ints)
  3844. }
  3845. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  3846. AttributeProto::_internal_ints() const {
  3847. return ints_;
  3848. }
  3849. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  3850. AttributeProto::ints() const {
  3851. // @@protoc_insertion_point(field_list:opencv_onnx.AttributeProto.ints)
  3852. return _internal_ints();
  3853. }
  3854. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  3855. AttributeProto::_internal_mutable_ints() {
  3856. return &ints_;
  3857. }
  3858. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  3859. AttributeProto::mutable_ints() {
  3860. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.AttributeProto.ints)
  3861. return _internal_mutable_ints();
  3862. }
  3863. // repeated bytes strings = 9;
  3864. inline int AttributeProto::_internal_strings_size() const {
  3865. return strings_.size();
  3866. }
  3867. inline int AttributeProto::strings_size() const {
  3868. return _internal_strings_size();
  3869. }
  3870. inline void AttributeProto::clear_strings() {
  3871. strings_.Clear();
  3872. }
  3873. inline std::string* AttributeProto::add_strings() {
  3874. std::string* _s = _internal_add_strings();
  3875. // @@protoc_insertion_point(field_add_mutable:opencv_onnx.AttributeProto.strings)
  3876. return _s;
  3877. }
  3878. inline const std::string& AttributeProto::_internal_strings(int index) const {
  3879. return strings_.Get(index);
  3880. }
  3881. inline const std::string& AttributeProto::strings(int index) const {
  3882. // @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.strings)
  3883. return _internal_strings(index);
  3884. }
  3885. inline std::string* AttributeProto::mutable_strings(int index) {
  3886. // @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.strings)
  3887. return strings_.Mutable(index);
  3888. }
  3889. inline void AttributeProto::set_strings(int index, const std::string& value) {
  3890. strings_.Mutable(index)->assign(value);
  3891. // @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.strings)
  3892. }
  3893. inline void AttributeProto::set_strings(int index, std::string&& value) {
  3894. strings_.Mutable(index)->assign(std::move(value));
  3895. // @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.strings)
  3896. }
  3897. inline void AttributeProto::set_strings(int index, const char* value) {
  3898. GOOGLE_DCHECK(value != nullptr);
  3899. strings_.Mutable(index)->assign(value);
  3900. // @@protoc_insertion_point(field_set_char:opencv_onnx.AttributeProto.strings)
  3901. }
  3902. inline void AttributeProto::set_strings(int index, const void* value, size_t size) {
  3903. strings_.Mutable(index)->assign(
  3904. reinterpret_cast<const char*>(value), size);
  3905. // @@protoc_insertion_point(field_set_pointer:opencv_onnx.AttributeProto.strings)
  3906. }
  3907. inline std::string* AttributeProto::_internal_add_strings() {
  3908. return strings_.Add();
  3909. }
  3910. inline void AttributeProto::add_strings(const std::string& value) {
  3911. strings_.Add()->assign(value);
  3912. // @@protoc_insertion_point(field_add:opencv_onnx.AttributeProto.strings)
  3913. }
  3914. inline void AttributeProto::add_strings(std::string&& value) {
  3915. strings_.Add(std::move(value));
  3916. // @@protoc_insertion_point(field_add:opencv_onnx.AttributeProto.strings)
  3917. }
  3918. inline void AttributeProto::add_strings(const char* value) {
  3919. GOOGLE_DCHECK(value != nullptr);
  3920. strings_.Add()->assign(value);
  3921. // @@protoc_insertion_point(field_add_char:opencv_onnx.AttributeProto.strings)
  3922. }
  3923. inline void AttributeProto::add_strings(const void* value, size_t size) {
  3924. strings_.Add()->assign(reinterpret_cast<const char*>(value), size);
  3925. // @@protoc_insertion_point(field_add_pointer:opencv_onnx.AttributeProto.strings)
  3926. }
  3927. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  3928. AttributeProto::strings() const {
  3929. // @@protoc_insertion_point(field_list:opencv_onnx.AttributeProto.strings)
  3930. return strings_;
  3931. }
  3932. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  3933. AttributeProto::mutable_strings() {
  3934. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.AttributeProto.strings)
  3935. return &strings_;
  3936. }
  3937. // repeated .opencv_onnx.TensorProto tensors = 10;
  3938. inline int AttributeProto::_internal_tensors_size() const {
  3939. return tensors_.size();
  3940. }
  3941. inline int AttributeProto::tensors_size() const {
  3942. return _internal_tensors_size();
  3943. }
  3944. inline void AttributeProto::clear_tensors() {
  3945. tensors_.Clear();
  3946. }
  3947. inline ::opencv_onnx::TensorProto* AttributeProto::mutable_tensors(int index) {
  3948. // @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.tensors)
  3949. return tensors_.Mutable(index);
  3950. }
  3951. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >*
  3952. AttributeProto::mutable_tensors() {
  3953. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.AttributeProto.tensors)
  3954. return &tensors_;
  3955. }
  3956. inline const ::opencv_onnx::TensorProto& AttributeProto::_internal_tensors(int index) const {
  3957. return tensors_.Get(index);
  3958. }
  3959. inline const ::opencv_onnx::TensorProto& AttributeProto::tensors(int index) const {
  3960. // @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.tensors)
  3961. return _internal_tensors(index);
  3962. }
  3963. inline ::opencv_onnx::TensorProto* AttributeProto::_internal_add_tensors() {
  3964. return tensors_.Add();
  3965. }
  3966. inline ::opencv_onnx::TensorProto* AttributeProto::add_tensors() {
  3967. ::opencv_onnx::TensorProto* _add = _internal_add_tensors();
  3968. // @@protoc_insertion_point(field_add:opencv_onnx.AttributeProto.tensors)
  3969. return _add;
  3970. }
  3971. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >&
  3972. AttributeProto::tensors() const {
  3973. // @@protoc_insertion_point(field_list:opencv_onnx.AttributeProto.tensors)
  3974. return tensors_;
  3975. }
  3976. // repeated .opencv_onnx.GraphProto graphs = 11;
  3977. inline int AttributeProto::_internal_graphs_size() const {
  3978. return graphs_.size();
  3979. }
  3980. inline int AttributeProto::graphs_size() const {
  3981. return _internal_graphs_size();
  3982. }
  3983. inline void AttributeProto::clear_graphs() {
  3984. graphs_.Clear();
  3985. }
  3986. inline ::opencv_onnx::GraphProto* AttributeProto::mutable_graphs(int index) {
  3987. // @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.graphs)
  3988. return graphs_.Mutable(index);
  3989. }
  3990. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::GraphProto >*
  3991. AttributeProto::mutable_graphs() {
  3992. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.AttributeProto.graphs)
  3993. return &graphs_;
  3994. }
  3995. inline const ::opencv_onnx::GraphProto& AttributeProto::_internal_graphs(int index) const {
  3996. return graphs_.Get(index);
  3997. }
  3998. inline const ::opencv_onnx::GraphProto& AttributeProto::graphs(int index) const {
  3999. // @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.graphs)
  4000. return _internal_graphs(index);
  4001. }
  4002. inline ::opencv_onnx::GraphProto* AttributeProto::_internal_add_graphs() {
  4003. return graphs_.Add();
  4004. }
  4005. inline ::opencv_onnx::GraphProto* AttributeProto::add_graphs() {
  4006. ::opencv_onnx::GraphProto* _add = _internal_add_graphs();
  4007. // @@protoc_insertion_point(field_add:opencv_onnx.AttributeProto.graphs)
  4008. return _add;
  4009. }
  4010. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::GraphProto >&
  4011. AttributeProto::graphs() const {
  4012. // @@protoc_insertion_point(field_list:opencv_onnx.AttributeProto.graphs)
  4013. return graphs_;
  4014. }
  4015. // -------------------------------------------------------------------
  4016. // ValueInfoProto
  4017. // optional string name = 1;
  4018. inline bool ValueInfoProto::_internal_has_name() const {
  4019. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  4020. return value;
  4021. }
  4022. inline bool ValueInfoProto::has_name() const {
  4023. return _internal_has_name();
  4024. }
  4025. inline void ValueInfoProto::clear_name() {
  4026. name_.ClearToEmpty();
  4027. _has_bits_[0] &= ~0x00000001u;
  4028. }
  4029. inline const std::string& ValueInfoProto::name() const {
  4030. // @@protoc_insertion_point(field_get:opencv_onnx.ValueInfoProto.name)
  4031. return _internal_name();
  4032. }
  4033. template <typename ArgT0, typename... ArgT>
  4034. inline PROTOBUF_ALWAYS_INLINE
  4035. void ValueInfoProto::set_name(ArgT0&& arg0, ArgT... args) {
  4036. _has_bits_[0] |= 0x00000001u;
  4037. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  4038. // @@protoc_insertion_point(field_set:opencv_onnx.ValueInfoProto.name)
  4039. }
  4040. inline std::string* ValueInfoProto::mutable_name() {
  4041. std::string* _s = _internal_mutable_name();
  4042. // @@protoc_insertion_point(field_mutable:opencv_onnx.ValueInfoProto.name)
  4043. return _s;
  4044. }
  4045. inline const std::string& ValueInfoProto::_internal_name() const {
  4046. return name_.Get();
  4047. }
  4048. inline void ValueInfoProto::_internal_set_name(const std::string& value) {
  4049. _has_bits_[0] |= 0x00000001u;
  4050. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  4051. }
  4052. inline std::string* ValueInfoProto::_internal_mutable_name() {
  4053. _has_bits_[0] |= 0x00000001u;
  4054. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  4055. }
  4056. inline std::string* ValueInfoProto::release_name() {
  4057. // @@protoc_insertion_point(field_release:opencv_onnx.ValueInfoProto.name)
  4058. if (!_internal_has_name()) {
  4059. return nullptr;
  4060. }
  4061. _has_bits_[0] &= ~0x00000001u;
  4062. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  4063. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4064. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4065. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4066. }
  4067. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4068. return p;
  4069. }
  4070. inline void ValueInfoProto::set_allocated_name(std::string* name) {
  4071. if (name != nullptr) {
  4072. _has_bits_[0] |= 0x00000001u;
  4073. } else {
  4074. _has_bits_[0] &= ~0x00000001u;
  4075. }
  4076. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  4077. GetArenaForAllocation());
  4078. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4079. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4080. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4081. }
  4082. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4083. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.ValueInfoProto.name)
  4084. }
  4085. // optional .opencv_onnx.TypeProto type = 2;
  4086. inline bool ValueInfoProto::_internal_has_type() const {
  4087. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  4088. PROTOBUF_ASSUME(!value || type_ != nullptr);
  4089. return value;
  4090. }
  4091. inline bool ValueInfoProto::has_type() const {
  4092. return _internal_has_type();
  4093. }
  4094. inline void ValueInfoProto::clear_type() {
  4095. if (type_ != nullptr) type_->Clear();
  4096. _has_bits_[0] &= ~0x00000004u;
  4097. }
  4098. inline const ::opencv_onnx::TypeProto& ValueInfoProto::_internal_type() const {
  4099. const ::opencv_onnx::TypeProto* p = type_;
  4100. return p != nullptr ? *p : reinterpret_cast<const ::opencv_onnx::TypeProto&>(
  4101. ::opencv_onnx::_TypeProto_default_instance_);
  4102. }
  4103. inline const ::opencv_onnx::TypeProto& ValueInfoProto::type() const {
  4104. // @@protoc_insertion_point(field_get:opencv_onnx.ValueInfoProto.type)
  4105. return _internal_type();
  4106. }
  4107. inline void ValueInfoProto::unsafe_arena_set_allocated_type(
  4108. ::opencv_onnx::TypeProto* type) {
  4109. if (GetArenaForAllocation() == nullptr) {
  4110. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(type_);
  4111. }
  4112. type_ = type;
  4113. if (type) {
  4114. _has_bits_[0] |= 0x00000004u;
  4115. } else {
  4116. _has_bits_[0] &= ~0x00000004u;
  4117. }
  4118. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_onnx.ValueInfoProto.type)
  4119. }
  4120. inline ::opencv_onnx::TypeProto* ValueInfoProto::release_type() {
  4121. _has_bits_[0] &= ~0x00000004u;
  4122. ::opencv_onnx::TypeProto* temp = type_;
  4123. type_ = nullptr;
  4124. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  4125. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  4126. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  4127. if (GetArenaForAllocation() == nullptr) { delete old; }
  4128. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  4129. if (GetArenaForAllocation() != nullptr) {
  4130. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  4131. }
  4132. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  4133. return temp;
  4134. }
  4135. inline ::opencv_onnx::TypeProto* ValueInfoProto::unsafe_arena_release_type() {
  4136. // @@protoc_insertion_point(field_release:opencv_onnx.ValueInfoProto.type)
  4137. _has_bits_[0] &= ~0x00000004u;
  4138. ::opencv_onnx::TypeProto* temp = type_;
  4139. type_ = nullptr;
  4140. return temp;
  4141. }
  4142. inline ::opencv_onnx::TypeProto* ValueInfoProto::_internal_mutable_type() {
  4143. _has_bits_[0] |= 0x00000004u;
  4144. if (type_ == nullptr) {
  4145. auto* p = CreateMaybeMessage<::opencv_onnx::TypeProto>(GetArenaForAllocation());
  4146. type_ = p;
  4147. }
  4148. return type_;
  4149. }
  4150. inline ::opencv_onnx::TypeProto* ValueInfoProto::mutable_type() {
  4151. ::opencv_onnx::TypeProto* _msg = _internal_mutable_type();
  4152. // @@protoc_insertion_point(field_mutable:opencv_onnx.ValueInfoProto.type)
  4153. return _msg;
  4154. }
  4155. inline void ValueInfoProto::set_allocated_type(::opencv_onnx::TypeProto* type) {
  4156. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  4157. if (message_arena == nullptr) {
  4158. delete type_;
  4159. }
  4160. if (type) {
  4161. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  4162. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opencv_onnx::TypeProto>::GetOwningArena(type);
  4163. if (message_arena != submessage_arena) {
  4164. type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  4165. message_arena, type, submessage_arena);
  4166. }
  4167. _has_bits_[0] |= 0x00000004u;
  4168. } else {
  4169. _has_bits_[0] &= ~0x00000004u;
  4170. }
  4171. type_ = type;
  4172. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.ValueInfoProto.type)
  4173. }
  4174. // optional string doc_string = 3;
  4175. inline bool ValueInfoProto::_internal_has_doc_string() const {
  4176. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  4177. return value;
  4178. }
  4179. inline bool ValueInfoProto::has_doc_string() const {
  4180. return _internal_has_doc_string();
  4181. }
  4182. inline void ValueInfoProto::clear_doc_string() {
  4183. doc_string_.ClearToEmpty();
  4184. _has_bits_[0] &= ~0x00000002u;
  4185. }
  4186. inline const std::string& ValueInfoProto::doc_string() const {
  4187. // @@protoc_insertion_point(field_get:opencv_onnx.ValueInfoProto.doc_string)
  4188. return _internal_doc_string();
  4189. }
  4190. template <typename ArgT0, typename... ArgT>
  4191. inline PROTOBUF_ALWAYS_INLINE
  4192. void ValueInfoProto::set_doc_string(ArgT0&& arg0, ArgT... args) {
  4193. _has_bits_[0] |= 0x00000002u;
  4194. doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  4195. // @@protoc_insertion_point(field_set:opencv_onnx.ValueInfoProto.doc_string)
  4196. }
  4197. inline std::string* ValueInfoProto::mutable_doc_string() {
  4198. std::string* _s = _internal_mutable_doc_string();
  4199. // @@protoc_insertion_point(field_mutable:opencv_onnx.ValueInfoProto.doc_string)
  4200. return _s;
  4201. }
  4202. inline const std::string& ValueInfoProto::_internal_doc_string() const {
  4203. return doc_string_.Get();
  4204. }
  4205. inline void ValueInfoProto::_internal_set_doc_string(const std::string& value) {
  4206. _has_bits_[0] |= 0x00000002u;
  4207. doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  4208. }
  4209. inline std::string* ValueInfoProto::_internal_mutable_doc_string() {
  4210. _has_bits_[0] |= 0x00000002u;
  4211. return doc_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  4212. }
  4213. inline std::string* ValueInfoProto::release_doc_string() {
  4214. // @@protoc_insertion_point(field_release:opencv_onnx.ValueInfoProto.doc_string)
  4215. if (!_internal_has_doc_string()) {
  4216. return nullptr;
  4217. }
  4218. _has_bits_[0] &= ~0x00000002u;
  4219. auto* p = doc_string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  4220. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4221. if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4222. doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4223. }
  4224. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4225. return p;
  4226. }
  4227. inline void ValueInfoProto::set_allocated_doc_string(std::string* doc_string) {
  4228. if (doc_string != nullptr) {
  4229. _has_bits_[0] |= 0x00000002u;
  4230. } else {
  4231. _has_bits_[0] &= ~0x00000002u;
  4232. }
  4233. doc_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), doc_string,
  4234. GetArenaForAllocation());
  4235. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4236. if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4237. doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4238. }
  4239. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4240. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.ValueInfoProto.doc_string)
  4241. }
  4242. // -------------------------------------------------------------------
  4243. // NodeProto
  4244. // repeated string input = 1;
  4245. inline int NodeProto::_internal_input_size() const {
  4246. return input_.size();
  4247. }
  4248. inline int NodeProto::input_size() const {
  4249. return _internal_input_size();
  4250. }
  4251. inline void NodeProto::clear_input() {
  4252. input_.Clear();
  4253. }
  4254. inline std::string* NodeProto::add_input() {
  4255. std::string* _s = _internal_add_input();
  4256. // @@protoc_insertion_point(field_add_mutable:opencv_onnx.NodeProto.input)
  4257. return _s;
  4258. }
  4259. inline const std::string& NodeProto::_internal_input(int index) const {
  4260. return input_.Get(index);
  4261. }
  4262. inline const std::string& NodeProto::input(int index) const {
  4263. // @@protoc_insertion_point(field_get:opencv_onnx.NodeProto.input)
  4264. return _internal_input(index);
  4265. }
  4266. inline std::string* NodeProto::mutable_input(int index) {
  4267. // @@protoc_insertion_point(field_mutable:opencv_onnx.NodeProto.input)
  4268. return input_.Mutable(index);
  4269. }
  4270. inline void NodeProto::set_input(int index, const std::string& value) {
  4271. input_.Mutable(index)->assign(value);
  4272. // @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.input)
  4273. }
  4274. inline void NodeProto::set_input(int index, std::string&& value) {
  4275. input_.Mutable(index)->assign(std::move(value));
  4276. // @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.input)
  4277. }
  4278. inline void NodeProto::set_input(int index, const char* value) {
  4279. GOOGLE_DCHECK(value != nullptr);
  4280. input_.Mutable(index)->assign(value);
  4281. // @@protoc_insertion_point(field_set_char:opencv_onnx.NodeProto.input)
  4282. }
  4283. inline void NodeProto::set_input(int index, const char* value, size_t size) {
  4284. input_.Mutable(index)->assign(
  4285. reinterpret_cast<const char*>(value), size);
  4286. // @@protoc_insertion_point(field_set_pointer:opencv_onnx.NodeProto.input)
  4287. }
  4288. inline std::string* NodeProto::_internal_add_input() {
  4289. return input_.Add();
  4290. }
  4291. inline void NodeProto::add_input(const std::string& value) {
  4292. input_.Add()->assign(value);
  4293. // @@protoc_insertion_point(field_add:opencv_onnx.NodeProto.input)
  4294. }
  4295. inline void NodeProto::add_input(std::string&& value) {
  4296. input_.Add(std::move(value));
  4297. // @@protoc_insertion_point(field_add:opencv_onnx.NodeProto.input)
  4298. }
  4299. inline void NodeProto::add_input(const char* value) {
  4300. GOOGLE_DCHECK(value != nullptr);
  4301. input_.Add()->assign(value);
  4302. // @@protoc_insertion_point(field_add_char:opencv_onnx.NodeProto.input)
  4303. }
  4304. inline void NodeProto::add_input(const char* value, size_t size) {
  4305. input_.Add()->assign(reinterpret_cast<const char*>(value), size);
  4306. // @@protoc_insertion_point(field_add_pointer:opencv_onnx.NodeProto.input)
  4307. }
  4308. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  4309. NodeProto::input() const {
  4310. // @@protoc_insertion_point(field_list:opencv_onnx.NodeProto.input)
  4311. return input_;
  4312. }
  4313. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  4314. NodeProto::mutable_input() {
  4315. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.NodeProto.input)
  4316. return &input_;
  4317. }
  4318. // repeated string output = 2;
  4319. inline int NodeProto::_internal_output_size() const {
  4320. return output_.size();
  4321. }
  4322. inline int NodeProto::output_size() const {
  4323. return _internal_output_size();
  4324. }
  4325. inline void NodeProto::clear_output() {
  4326. output_.Clear();
  4327. }
  4328. inline std::string* NodeProto::add_output() {
  4329. std::string* _s = _internal_add_output();
  4330. // @@protoc_insertion_point(field_add_mutable:opencv_onnx.NodeProto.output)
  4331. return _s;
  4332. }
  4333. inline const std::string& NodeProto::_internal_output(int index) const {
  4334. return output_.Get(index);
  4335. }
  4336. inline const std::string& NodeProto::output(int index) const {
  4337. // @@protoc_insertion_point(field_get:opencv_onnx.NodeProto.output)
  4338. return _internal_output(index);
  4339. }
  4340. inline std::string* NodeProto::mutable_output(int index) {
  4341. // @@protoc_insertion_point(field_mutable:opencv_onnx.NodeProto.output)
  4342. return output_.Mutable(index);
  4343. }
  4344. inline void NodeProto::set_output(int index, const std::string& value) {
  4345. output_.Mutable(index)->assign(value);
  4346. // @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.output)
  4347. }
  4348. inline void NodeProto::set_output(int index, std::string&& value) {
  4349. output_.Mutable(index)->assign(std::move(value));
  4350. // @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.output)
  4351. }
  4352. inline void NodeProto::set_output(int index, const char* value) {
  4353. GOOGLE_DCHECK(value != nullptr);
  4354. output_.Mutable(index)->assign(value);
  4355. // @@protoc_insertion_point(field_set_char:opencv_onnx.NodeProto.output)
  4356. }
  4357. inline void NodeProto::set_output(int index, const char* value, size_t size) {
  4358. output_.Mutable(index)->assign(
  4359. reinterpret_cast<const char*>(value), size);
  4360. // @@protoc_insertion_point(field_set_pointer:opencv_onnx.NodeProto.output)
  4361. }
  4362. inline std::string* NodeProto::_internal_add_output() {
  4363. return output_.Add();
  4364. }
  4365. inline void NodeProto::add_output(const std::string& value) {
  4366. output_.Add()->assign(value);
  4367. // @@protoc_insertion_point(field_add:opencv_onnx.NodeProto.output)
  4368. }
  4369. inline void NodeProto::add_output(std::string&& value) {
  4370. output_.Add(std::move(value));
  4371. // @@protoc_insertion_point(field_add:opencv_onnx.NodeProto.output)
  4372. }
  4373. inline void NodeProto::add_output(const char* value) {
  4374. GOOGLE_DCHECK(value != nullptr);
  4375. output_.Add()->assign(value);
  4376. // @@protoc_insertion_point(field_add_char:opencv_onnx.NodeProto.output)
  4377. }
  4378. inline void NodeProto::add_output(const char* value, size_t size) {
  4379. output_.Add()->assign(reinterpret_cast<const char*>(value), size);
  4380. // @@protoc_insertion_point(field_add_pointer:opencv_onnx.NodeProto.output)
  4381. }
  4382. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  4383. NodeProto::output() const {
  4384. // @@protoc_insertion_point(field_list:opencv_onnx.NodeProto.output)
  4385. return output_;
  4386. }
  4387. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  4388. NodeProto::mutable_output() {
  4389. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.NodeProto.output)
  4390. return &output_;
  4391. }
  4392. // optional string name = 3;
  4393. inline bool NodeProto::_internal_has_name() const {
  4394. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  4395. return value;
  4396. }
  4397. inline bool NodeProto::has_name() const {
  4398. return _internal_has_name();
  4399. }
  4400. inline void NodeProto::clear_name() {
  4401. name_.ClearToEmpty();
  4402. _has_bits_[0] &= ~0x00000001u;
  4403. }
  4404. inline const std::string& NodeProto::name() const {
  4405. // @@protoc_insertion_point(field_get:opencv_onnx.NodeProto.name)
  4406. return _internal_name();
  4407. }
  4408. template <typename ArgT0, typename... ArgT>
  4409. inline PROTOBUF_ALWAYS_INLINE
  4410. void NodeProto::set_name(ArgT0&& arg0, ArgT... args) {
  4411. _has_bits_[0] |= 0x00000001u;
  4412. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  4413. // @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.name)
  4414. }
  4415. inline std::string* NodeProto::mutable_name() {
  4416. std::string* _s = _internal_mutable_name();
  4417. // @@protoc_insertion_point(field_mutable:opencv_onnx.NodeProto.name)
  4418. return _s;
  4419. }
  4420. inline const std::string& NodeProto::_internal_name() const {
  4421. return name_.Get();
  4422. }
  4423. inline void NodeProto::_internal_set_name(const std::string& value) {
  4424. _has_bits_[0] |= 0x00000001u;
  4425. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  4426. }
  4427. inline std::string* NodeProto::_internal_mutable_name() {
  4428. _has_bits_[0] |= 0x00000001u;
  4429. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  4430. }
  4431. inline std::string* NodeProto::release_name() {
  4432. // @@protoc_insertion_point(field_release:opencv_onnx.NodeProto.name)
  4433. if (!_internal_has_name()) {
  4434. return nullptr;
  4435. }
  4436. _has_bits_[0] &= ~0x00000001u;
  4437. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  4438. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4439. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4440. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4441. }
  4442. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4443. return p;
  4444. }
  4445. inline void NodeProto::set_allocated_name(std::string* name) {
  4446. if (name != nullptr) {
  4447. _has_bits_[0] |= 0x00000001u;
  4448. } else {
  4449. _has_bits_[0] &= ~0x00000001u;
  4450. }
  4451. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  4452. GetArenaForAllocation());
  4453. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4454. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4455. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4456. }
  4457. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4458. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.NodeProto.name)
  4459. }
  4460. // optional string op_type = 4;
  4461. inline bool NodeProto::_internal_has_op_type() const {
  4462. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  4463. return value;
  4464. }
  4465. inline bool NodeProto::has_op_type() const {
  4466. return _internal_has_op_type();
  4467. }
  4468. inline void NodeProto::clear_op_type() {
  4469. op_type_.ClearToEmpty();
  4470. _has_bits_[0] &= ~0x00000002u;
  4471. }
  4472. inline const std::string& NodeProto::op_type() const {
  4473. // @@protoc_insertion_point(field_get:opencv_onnx.NodeProto.op_type)
  4474. return _internal_op_type();
  4475. }
  4476. template <typename ArgT0, typename... ArgT>
  4477. inline PROTOBUF_ALWAYS_INLINE
  4478. void NodeProto::set_op_type(ArgT0&& arg0, ArgT... args) {
  4479. _has_bits_[0] |= 0x00000002u;
  4480. op_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  4481. // @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.op_type)
  4482. }
  4483. inline std::string* NodeProto::mutable_op_type() {
  4484. std::string* _s = _internal_mutable_op_type();
  4485. // @@protoc_insertion_point(field_mutable:opencv_onnx.NodeProto.op_type)
  4486. return _s;
  4487. }
  4488. inline const std::string& NodeProto::_internal_op_type() const {
  4489. return op_type_.Get();
  4490. }
  4491. inline void NodeProto::_internal_set_op_type(const std::string& value) {
  4492. _has_bits_[0] |= 0x00000002u;
  4493. op_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  4494. }
  4495. inline std::string* NodeProto::_internal_mutable_op_type() {
  4496. _has_bits_[0] |= 0x00000002u;
  4497. return op_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  4498. }
  4499. inline std::string* NodeProto::release_op_type() {
  4500. // @@protoc_insertion_point(field_release:opencv_onnx.NodeProto.op_type)
  4501. if (!_internal_has_op_type()) {
  4502. return nullptr;
  4503. }
  4504. _has_bits_[0] &= ~0x00000002u;
  4505. auto* p = op_type_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  4506. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4507. if (op_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4508. op_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4509. }
  4510. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4511. return p;
  4512. }
  4513. inline void NodeProto::set_allocated_op_type(std::string* op_type) {
  4514. if (op_type != nullptr) {
  4515. _has_bits_[0] |= 0x00000002u;
  4516. } else {
  4517. _has_bits_[0] &= ~0x00000002u;
  4518. }
  4519. op_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), op_type,
  4520. GetArenaForAllocation());
  4521. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4522. if (op_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4523. op_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4524. }
  4525. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4526. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.NodeProto.op_type)
  4527. }
  4528. // optional string domain = 7;
  4529. inline bool NodeProto::_internal_has_domain() const {
  4530. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  4531. return value;
  4532. }
  4533. inline bool NodeProto::has_domain() const {
  4534. return _internal_has_domain();
  4535. }
  4536. inline void NodeProto::clear_domain() {
  4537. domain_.ClearToEmpty();
  4538. _has_bits_[0] &= ~0x00000008u;
  4539. }
  4540. inline const std::string& NodeProto::domain() const {
  4541. // @@protoc_insertion_point(field_get:opencv_onnx.NodeProto.domain)
  4542. return _internal_domain();
  4543. }
  4544. template <typename ArgT0, typename... ArgT>
  4545. inline PROTOBUF_ALWAYS_INLINE
  4546. void NodeProto::set_domain(ArgT0&& arg0, ArgT... args) {
  4547. _has_bits_[0] |= 0x00000008u;
  4548. domain_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  4549. // @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.domain)
  4550. }
  4551. inline std::string* NodeProto::mutable_domain() {
  4552. std::string* _s = _internal_mutable_domain();
  4553. // @@protoc_insertion_point(field_mutable:opencv_onnx.NodeProto.domain)
  4554. return _s;
  4555. }
  4556. inline const std::string& NodeProto::_internal_domain() const {
  4557. return domain_.Get();
  4558. }
  4559. inline void NodeProto::_internal_set_domain(const std::string& value) {
  4560. _has_bits_[0] |= 0x00000008u;
  4561. domain_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  4562. }
  4563. inline std::string* NodeProto::_internal_mutable_domain() {
  4564. _has_bits_[0] |= 0x00000008u;
  4565. return domain_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  4566. }
  4567. inline std::string* NodeProto::release_domain() {
  4568. // @@protoc_insertion_point(field_release:opencv_onnx.NodeProto.domain)
  4569. if (!_internal_has_domain()) {
  4570. return nullptr;
  4571. }
  4572. _has_bits_[0] &= ~0x00000008u;
  4573. auto* p = domain_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  4574. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4575. if (domain_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4576. domain_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4577. }
  4578. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4579. return p;
  4580. }
  4581. inline void NodeProto::set_allocated_domain(std::string* domain) {
  4582. if (domain != nullptr) {
  4583. _has_bits_[0] |= 0x00000008u;
  4584. } else {
  4585. _has_bits_[0] &= ~0x00000008u;
  4586. }
  4587. domain_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), domain,
  4588. GetArenaForAllocation());
  4589. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4590. if (domain_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4591. domain_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4592. }
  4593. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4594. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.NodeProto.domain)
  4595. }
  4596. // repeated .opencv_onnx.AttributeProto attribute = 5;
  4597. inline int NodeProto::_internal_attribute_size() const {
  4598. return attribute_.size();
  4599. }
  4600. inline int NodeProto::attribute_size() const {
  4601. return _internal_attribute_size();
  4602. }
  4603. inline void NodeProto::clear_attribute() {
  4604. attribute_.Clear();
  4605. }
  4606. inline ::opencv_onnx::AttributeProto* NodeProto::mutable_attribute(int index) {
  4607. // @@protoc_insertion_point(field_mutable:opencv_onnx.NodeProto.attribute)
  4608. return attribute_.Mutable(index);
  4609. }
  4610. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::AttributeProto >*
  4611. NodeProto::mutable_attribute() {
  4612. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.NodeProto.attribute)
  4613. return &attribute_;
  4614. }
  4615. inline const ::opencv_onnx::AttributeProto& NodeProto::_internal_attribute(int index) const {
  4616. return attribute_.Get(index);
  4617. }
  4618. inline const ::opencv_onnx::AttributeProto& NodeProto::attribute(int index) const {
  4619. // @@protoc_insertion_point(field_get:opencv_onnx.NodeProto.attribute)
  4620. return _internal_attribute(index);
  4621. }
  4622. inline ::opencv_onnx::AttributeProto* NodeProto::_internal_add_attribute() {
  4623. return attribute_.Add();
  4624. }
  4625. inline ::opencv_onnx::AttributeProto* NodeProto::add_attribute() {
  4626. ::opencv_onnx::AttributeProto* _add = _internal_add_attribute();
  4627. // @@protoc_insertion_point(field_add:opencv_onnx.NodeProto.attribute)
  4628. return _add;
  4629. }
  4630. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::AttributeProto >&
  4631. NodeProto::attribute() const {
  4632. // @@protoc_insertion_point(field_list:opencv_onnx.NodeProto.attribute)
  4633. return attribute_;
  4634. }
  4635. // optional string doc_string = 6;
  4636. inline bool NodeProto::_internal_has_doc_string() const {
  4637. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  4638. return value;
  4639. }
  4640. inline bool NodeProto::has_doc_string() const {
  4641. return _internal_has_doc_string();
  4642. }
  4643. inline void NodeProto::clear_doc_string() {
  4644. doc_string_.ClearToEmpty();
  4645. _has_bits_[0] &= ~0x00000004u;
  4646. }
  4647. inline const std::string& NodeProto::doc_string() const {
  4648. // @@protoc_insertion_point(field_get:opencv_onnx.NodeProto.doc_string)
  4649. return _internal_doc_string();
  4650. }
  4651. template <typename ArgT0, typename... ArgT>
  4652. inline PROTOBUF_ALWAYS_INLINE
  4653. void NodeProto::set_doc_string(ArgT0&& arg0, ArgT... args) {
  4654. _has_bits_[0] |= 0x00000004u;
  4655. doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  4656. // @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.doc_string)
  4657. }
  4658. inline std::string* NodeProto::mutable_doc_string() {
  4659. std::string* _s = _internal_mutable_doc_string();
  4660. // @@protoc_insertion_point(field_mutable:opencv_onnx.NodeProto.doc_string)
  4661. return _s;
  4662. }
  4663. inline const std::string& NodeProto::_internal_doc_string() const {
  4664. return doc_string_.Get();
  4665. }
  4666. inline void NodeProto::_internal_set_doc_string(const std::string& value) {
  4667. _has_bits_[0] |= 0x00000004u;
  4668. doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  4669. }
  4670. inline std::string* NodeProto::_internal_mutable_doc_string() {
  4671. _has_bits_[0] |= 0x00000004u;
  4672. return doc_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  4673. }
  4674. inline std::string* NodeProto::release_doc_string() {
  4675. // @@protoc_insertion_point(field_release:opencv_onnx.NodeProto.doc_string)
  4676. if (!_internal_has_doc_string()) {
  4677. return nullptr;
  4678. }
  4679. _has_bits_[0] &= ~0x00000004u;
  4680. auto* p = doc_string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  4681. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4682. if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4683. doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4684. }
  4685. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4686. return p;
  4687. }
  4688. inline void NodeProto::set_allocated_doc_string(std::string* doc_string) {
  4689. if (doc_string != nullptr) {
  4690. _has_bits_[0] |= 0x00000004u;
  4691. } else {
  4692. _has_bits_[0] &= ~0x00000004u;
  4693. }
  4694. doc_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), doc_string,
  4695. GetArenaForAllocation());
  4696. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4697. if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4698. doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4699. }
  4700. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4701. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.NodeProto.doc_string)
  4702. }
  4703. // -------------------------------------------------------------------
  4704. // ModelProto
  4705. // optional int64 ir_version = 1;
  4706. inline bool ModelProto::_internal_has_ir_version() const {
  4707. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  4708. return value;
  4709. }
  4710. inline bool ModelProto::has_ir_version() const {
  4711. return _internal_has_ir_version();
  4712. }
  4713. inline void ModelProto::clear_ir_version() {
  4714. ir_version_ = int64_t{0};
  4715. _has_bits_[0] &= ~0x00000020u;
  4716. }
  4717. inline int64_t ModelProto::_internal_ir_version() const {
  4718. return ir_version_;
  4719. }
  4720. inline int64_t ModelProto::ir_version() const {
  4721. // @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.ir_version)
  4722. return _internal_ir_version();
  4723. }
  4724. inline void ModelProto::_internal_set_ir_version(int64_t value) {
  4725. _has_bits_[0] |= 0x00000020u;
  4726. ir_version_ = value;
  4727. }
  4728. inline void ModelProto::set_ir_version(int64_t value) {
  4729. _internal_set_ir_version(value);
  4730. // @@protoc_insertion_point(field_set:opencv_onnx.ModelProto.ir_version)
  4731. }
  4732. // repeated .opencv_onnx.OperatorSetIdProto opset_import = 8;
  4733. inline int ModelProto::_internal_opset_import_size() const {
  4734. return opset_import_.size();
  4735. }
  4736. inline int ModelProto::opset_import_size() const {
  4737. return _internal_opset_import_size();
  4738. }
  4739. inline void ModelProto::clear_opset_import() {
  4740. opset_import_.Clear();
  4741. }
  4742. inline ::opencv_onnx::OperatorSetIdProto* ModelProto::mutable_opset_import(int index) {
  4743. // @@protoc_insertion_point(field_mutable:opencv_onnx.ModelProto.opset_import)
  4744. return opset_import_.Mutable(index);
  4745. }
  4746. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::OperatorSetIdProto >*
  4747. ModelProto::mutable_opset_import() {
  4748. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.ModelProto.opset_import)
  4749. return &opset_import_;
  4750. }
  4751. inline const ::opencv_onnx::OperatorSetIdProto& ModelProto::_internal_opset_import(int index) const {
  4752. return opset_import_.Get(index);
  4753. }
  4754. inline const ::opencv_onnx::OperatorSetIdProto& ModelProto::opset_import(int index) const {
  4755. // @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.opset_import)
  4756. return _internal_opset_import(index);
  4757. }
  4758. inline ::opencv_onnx::OperatorSetIdProto* ModelProto::_internal_add_opset_import() {
  4759. return opset_import_.Add();
  4760. }
  4761. inline ::opencv_onnx::OperatorSetIdProto* ModelProto::add_opset_import() {
  4762. ::opencv_onnx::OperatorSetIdProto* _add = _internal_add_opset_import();
  4763. // @@protoc_insertion_point(field_add:opencv_onnx.ModelProto.opset_import)
  4764. return _add;
  4765. }
  4766. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::OperatorSetIdProto >&
  4767. ModelProto::opset_import() const {
  4768. // @@protoc_insertion_point(field_list:opencv_onnx.ModelProto.opset_import)
  4769. return opset_import_;
  4770. }
  4771. // optional string producer_name = 2;
  4772. inline bool ModelProto::_internal_has_producer_name() const {
  4773. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  4774. return value;
  4775. }
  4776. inline bool ModelProto::has_producer_name() const {
  4777. return _internal_has_producer_name();
  4778. }
  4779. inline void ModelProto::clear_producer_name() {
  4780. producer_name_.ClearToEmpty();
  4781. _has_bits_[0] &= ~0x00000001u;
  4782. }
  4783. inline const std::string& ModelProto::producer_name() const {
  4784. // @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.producer_name)
  4785. return _internal_producer_name();
  4786. }
  4787. template <typename ArgT0, typename... ArgT>
  4788. inline PROTOBUF_ALWAYS_INLINE
  4789. void ModelProto::set_producer_name(ArgT0&& arg0, ArgT... args) {
  4790. _has_bits_[0] |= 0x00000001u;
  4791. producer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  4792. // @@protoc_insertion_point(field_set:opencv_onnx.ModelProto.producer_name)
  4793. }
  4794. inline std::string* ModelProto::mutable_producer_name() {
  4795. std::string* _s = _internal_mutable_producer_name();
  4796. // @@protoc_insertion_point(field_mutable:opencv_onnx.ModelProto.producer_name)
  4797. return _s;
  4798. }
  4799. inline const std::string& ModelProto::_internal_producer_name() const {
  4800. return producer_name_.Get();
  4801. }
  4802. inline void ModelProto::_internal_set_producer_name(const std::string& value) {
  4803. _has_bits_[0] |= 0x00000001u;
  4804. producer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  4805. }
  4806. inline std::string* ModelProto::_internal_mutable_producer_name() {
  4807. _has_bits_[0] |= 0x00000001u;
  4808. return producer_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  4809. }
  4810. inline std::string* ModelProto::release_producer_name() {
  4811. // @@protoc_insertion_point(field_release:opencv_onnx.ModelProto.producer_name)
  4812. if (!_internal_has_producer_name()) {
  4813. return nullptr;
  4814. }
  4815. _has_bits_[0] &= ~0x00000001u;
  4816. auto* p = producer_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  4817. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4818. if (producer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4819. producer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4820. }
  4821. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4822. return p;
  4823. }
  4824. inline void ModelProto::set_allocated_producer_name(std::string* producer_name) {
  4825. if (producer_name != nullptr) {
  4826. _has_bits_[0] |= 0x00000001u;
  4827. } else {
  4828. _has_bits_[0] &= ~0x00000001u;
  4829. }
  4830. producer_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), producer_name,
  4831. GetArenaForAllocation());
  4832. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4833. if (producer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4834. producer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4835. }
  4836. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4837. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.ModelProto.producer_name)
  4838. }
  4839. // optional string producer_version = 3;
  4840. inline bool ModelProto::_internal_has_producer_version() const {
  4841. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  4842. return value;
  4843. }
  4844. inline bool ModelProto::has_producer_version() const {
  4845. return _internal_has_producer_version();
  4846. }
  4847. inline void ModelProto::clear_producer_version() {
  4848. producer_version_.ClearToEmpty();
  4849. _has_bits_[0] &= ~0x00000002u;
  4850. }
  4851. inline const std::string& ModelProto::producer_version() const {
  4852. // @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.producer_version)
  4853. return _internal_producer_version();
  4854. }
  4855. template <typename ArgT0, typename... ArgT>
  4856. inline PROTOBUF_ALWAYS_INLINE
  4857. void ModelProto::set_producer_version(ArgT0&& arg0, ArgT... args) {
  4858. _has_bits_[0] |= 0x00000002u;
  4859. producer_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  4860. // @@protoc_insertion_point(field_set:opencv_onnx.ModelProto.producer_version)
  4861. }
  4862. inline std::string* ModelProto::mutable_producer_version() {
  4863. std::string* _s = _internal_mutable_producer_version();
  4864. // @@protoc_insertion_point(field_mutable:opencv_onnx.ModelProto.producer_version)
  4865. return _s;
  4866. }
  4867. inline const std::string& ModelProto::_internal_producer_version() const {
  4868. return producer_version_.Get();
  4869. }
  4870. inline void ModelProto::_internal_set_producer_version(const std::string& value) {
  4871. _has_bits_[0] |= 0x00000002u;
  4872. producer_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  4873. }
  4874. inline std::string* ModelProto::_internal_mutable_producer_version() {
  4875. _has_bits_[0] |= 0x00000002u;
  4876. return producer_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  4877. }
  4878. inline std::string* ModelProto::release_producer_version() {
  4879. // @@protoc_insertion_point(field_release:opencv_onnx.ModelProto.producer_version)
  4880. if (!_internal_has_producer_version()) {
  4881. return nullptr;
  4882. }
  4883. _has_bits_[0] &= ~0x00000002u;
  4884. auto* p = producer_version_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  4885. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4886. if (producer_version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4887. producer_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4888. }
  4889. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4890. return p;
  4891. }
  4892. inline void ModelProto::set_allocated_producer_version(std::string* producer_version) {
  4893. if (producer_version != nullptr) {
  4894. _has_bits_[0] |= 0x00000002u;
  4895. } else {
  4896. _has_bits_[0] &= ~0x00000002u;
  4897. }
  4898. producer_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), producer_version,
  4899. GetArenaForAllocation());
  4900. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4901. if (producer_version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4902. producer_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4903. }
  4904. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4905. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.ModelProto.producer_version)
  4906. }
  4907. // optional string domain = 4;
  4908. inline bool ModelProto::_internal_has_domain() const {
  4909. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  4910. return value;
  4911. }
  4912. inline bool ModelProto::has_domain() const {
  4913. return _internal_has_domain();
  4914. }
  4915. inline void ModelProto::clear_domain() {
  4916. domain_.ClearToEmpty();
  4917. _has_bits_[0] &= ~0x00000004u;
  4918. }
  4919. inline const std::string& ModelProto::domain() const {
  4920. // @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.domain)
  4921. return _internal_domain();
  4922. }
  4923. template <typename ArgT0, typename... ArgT>
  4924. inline PROTOBUF_ALWAYS_INLINE
  4925. void ModelProto::set_domain(ArgT0&& arg0, ArgT... args) {
  4926. _has_bits_[0] |= 0x00000004u;
  4927. domain_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  4928. // @@protoc_insertion_point(field_set:opencv_onnx.ModelProto.domain)
  4929. }
  4930. inline std::string* ModelProto::mutable_domain() {
  4931. std::string* _s = _internal_mutable_domain();
  4932. // @@protoc_insertion_point(field_mutable:opencv_onnx.ModelProto.domain)
  4933. return _s;
  4934. }
  4935. inline const std::string& ModelProto::_internal_domain() const {
  4936. return domain_.Get();
  4937. }
  4938. inline void ModelProto::_internal_set_domain(const std::string& value) {
  4939. _has_bits_[0] |= 0x00000004u;
  4940. domain_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  4941. }
  4942. inline std::string* ModelProto::_internal_mutable_domain() {
  4943. _has_bits_[0] |= 0x00000004u;
  4944. return domain_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  4945. }
  4946. inline std::string* ModelProto::release_domain() {
  4947. // @@protoc_insertion_point(field_release:opencv_onnx.ModelProto.domain)
  4948. if (!_internal_has_domain()) {
  4949. return nullptr;
  4950. }
  4951. _has_bits_[0] &= ~0x00000004u;
  4952. auto* p = domain_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  4953. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4954. if (domain_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4955. domain_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4956. }
  4957. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4958. return p;
  4959. }
  4960. inline void ModelProto::set_allocated_domain(std::string* domain) {
  4961. if (domain != nullptr) {
  4962. _has_bits_[0] |= 0x00000004u;
  4963. } else {
  4964. _has_bits_[0] &= ~0x00000004u;
  4965. }
  4966. domain_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), domain,
  4967. GetArenaForAllocation());
  4968. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4969. if (domain_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  4970. domain_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  4971. }
  4972. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  4973. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.ModelProto.domain)
  4974. }
  4975. // optional int64 model_version = 5;
  4976. inline bool ModelProto::_internal_has_model_version() const {
  4977. bool value = (_has_bits_[0] & 0x00000040u) != 0;
  4978. return value;
  4979. }
  4980. inline bool ModelProto::has_model_version() const {
  4981. return _internal_has_model_version();
  4982. }
  4983. inline void ModelProto::clear_model_version() {
  4984. model_version_ = int64_t{0};
  4985. _has_bits_[0] &= ~0x00000040u;
  4986. }
  4987. inline int64_t ModelProto::_internal_model_version() const {
  4988. return model_version_;
  4989. }
  4990. inline int64_t ModelProto::model_version() const {
  4991. // @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.model_version)
  4992. return _internal_model_version();
  4993. }
  4994. inline void ModelProto::_internal_set_model_version(int64_t value) {
  4995. _has_bits_[0] |= 0x00000040u;
  4996. model_version_ = value;
  4997. }
  4998. inline void ModelProto::set_model_version(int64_t value) {
  4999. _internal_set_model_version(value);
  5000. // @@protoc_insertion_point(field_set:opencv_onnx.ModelProto.model_version)
  5001. }
  5002. // optional string doc_string = 6;
  5003. inline bool ModelProto::_internal_has_doc_string() const {
  5004. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  5005. return value;
  5006. }
  5007. inline bool ModelProto::has_doc_string() const {
  5008. return _internal_has_doc_string();
  5009. }
  5010. inline void ModelProto::clear_doc_string() {
  5011. doc_string_.ClearToEmpty();
  5012. _has_bits_[0] &= ~0x00000008u;
  5013. }
  5014. inline const std::string& ModelProto::doc_string() const {
  5015. // @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.doc_string)
  5016. return _internal_doc_string();
  5017. }
  5018. template <typename ArgT0, typename... ArgT>
  5019. inline PROTOBUF_ALWAYS_INLINE
  5020. void ModelProto::set_doc_string(ArgT0&& arg0, ArgT... args) {
  5021. _has_bits_[0] |= 0x00000008u;
  5022. doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  5023. // @@protoc_insertion_point(field_set:opencv_onnx.ModelProto.doc_string)
  5024. }
  5025. inline std::string* ModelProto::mutable_doc_string() {
  5026. std::string* _s = _internal_mutable_doc_string();
  5027. // @@protoc_insertion_point(field_mutable:opencv_onnx.ModelProto.doc_string)
  5028. return _s;
  5029. }
  5030. inline const std::string& ModelProto::_internal_doc_string() const {
  5031. return doc_string_.Get();
  5032. }
  5033. inline void ModelProto::_internal_set_doc_string(const std::string& value) {
  5034. _has_bits_[0] |= 0x00000008u;
  5035. doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  5036. }
  5037. inline std::string* ModelProto::_internal_mutable_doc_string() {
  5038. _has_bits_[0] |= 0x00000008u;
  5039. return doc_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  5040. }
  5041. inline std::string* ModelProto::release_doc_string() {
  5042. // @@protoc_insertion_point(field_release:opencv_onnx.ModelProto.doc_string)
  5043. if (!_internal_has_doc_string()) {
  5044. return nullptr;
  5045. }
  5046. _has_bits_[0] &= ~0x00000008u;
  5047. auto* p = doc_string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  5048. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5049. if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  5050. doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5051. }
  5052. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5053. return p;
  5054. }
  5055. inline void ModelProto::set_allocated_doc_string(std::string* doc_string) {
  5056. if (doc_string != nullptr) {
  5057. _has_bits_[0] |= 0x00000008u;
  5058. } else {
  5059. _has_bits_[0] &= ~0x00000008u;
  5060. }
  5061. doc_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), doc_string,
  5062. GetArenaForAllocation());
  5063. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5064. if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  5065. doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5066. }
  5067. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5068. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.ModelProto.doc_string)
  5069. }
  5070. // optional .opencv_onnx.GraphProto graph = 7;
  5071. inline bool ModelProto::_internal_has_graph() const {
  5072. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  5073. PROTOBUF_ASSUME(!value || graph_ != nullptr);
  5074. return value;
  5075. }
  5076. inline bool ModelProto::has_graph() const {
  5077. return _internal_has_graph();
  5078. }
  5079. inline void ModelProto::clear_graph() {
  5080. if (graph_ != nullptr) graph_->Clear();
  5081. _has_bits_[0] &= ~0x00000010u;
  5082. }
  5083. inline const ::opencv_onnx::GraphProto& ModelProto::_internal_graph() const {
  5084. const ::opencv_onnx::GraphProto* p = graph_;
  5085. return p != nullptr ? *p : reinterpret_cast<const ::opencv_onnx::GraphProto&>(
  5086. ::opencv_onnx::_GraphProto_default_instance_);
  5087. }
  5088. inline const ::opencv_onnx::GraphProto& ModelProto::graph() const {
  5089. // @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.graph)
  5090. return _internal_graph();
  5091. }
  5092. inline void ModelProto::unsafe_arena_set_allocated_graph(
  5093. ::opencv_onnx::GraphProto* graph) {
  5094. if (GetArenaForAllocation() == nullptr) {
  5095. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(graph_);
  5096. }
  5097. graph_ = graph;
  5098. if (graph) {
  5099. _has_bits_[0] |= 0x00000010u;
  5100. } else {
  5101. _has_bits_[0] &= ~0x00000010u;
  5102. }
  5103. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_onnx.ModelProto.graph)
  5104. }
  5105. inline ::opencv_onnx::GraphProto* ModelProto::release_graph() {
  5106. _has_bits_[0] &= ~0x00000010u;
  5107. ::opencv_onnx::GraphProto* temp = graph_;
  5108. graph_ = nullptr;
  5109. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  5110. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  5111. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  5112. if (GetArenaForAllocation() == nullptr) { delete old; }
  5113. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  5114. if (GetArenaForAllocation() != nullptr) {
  5115. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  5116. }
  5117. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  5118. return temp;
  5119. }
  5120. inline ::opencv_onnx::GraphProto* ModelProto::unsafe_arena_release_graph() {
  5121. // @@protoc_insertion_point(field_release:opencv_onnx.ModelProto.graph)
  5122. _has_bits_[0] &= ~0x00000010u;
  5123. ::opencv_onnx::GraphProto* temp = graph_;
  5124. graph_ = nullptr;
  5125. return temp;
  5126. }
  5127. inline ::opencv_onnx::GraphProto* ModelProto::_internal_mutable_graph() {
  5128. _has_bits_[0] |= 0x00000010u;
  5129. if (graph_ == nullptr) {
  5130. auto* p = CreateMaybeMessage<::opencv_onnx::GraphProto>(GetArenaForAllocation());
  5131. graph_ = p;
  5132. }
  5133. return graph_;
  5134. }
  5135. inline ::opencv_onnx::GraphProto* ModelProto::mutable_graph() {
  5136. ::opencv_onnx::GraphProto* _msg = _internal_mutable_graph();
  5137. // @@protoc_insertion_point(field_mutable:opencv_onnx.ModelProto.graph)
  5138. return _msg;
  5139. }
  5140. inline void ModelProto::set_allocated_graph(::opencv_onnx::GraphProto* graph) {
  5141. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  5142. if (message_arena == nullptr) {
  5143. delete graph_;
  5144. }
  5145. if (graph) {
  5146. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  5147. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opencv_onnx::GraphProto>::GetOwningArena(graph);
  5148. if (message_arena != submessage_arena) {
  5149. graph = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5150. message_arena, graph, submessage_arena);
  5151. }
  5152. _has_bits_[0] |= 0x00000010u;
  5153. } else {
  5154. _has_bits_[0] &= ~0x00000010u;
  5155. }
  5156. graph_ = graph;
  5157. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.ModelProto.graph)
  5158. }
  5159. // repeated .opencv_onnx.StringStringEntryProto metadata_props = 14;
  5160. inline int ModelProto::_internal_metadata_props_size() const {
  5161. return metadata_props_.size();
  5162. }
  5163. inline int ModelProto::metadata_props_size() const {
  5164. return _internal_metadata_props_size();
  5165. }
  5166. inline void ModelProto::clear_metadata_props() {
  5167. metadata_props_.Clear();
  5168. }
  5169. inline ::opencv_onnx::StringStringEntryProto* ModelProto::mutable_metadata_props(int index) {
  5170. // @@protoc_insertion_point(field_mutable:opencv_onnx.ModelProto.metadata_props)
  5171. return metadata_props_.Mutable(index);
  5172. }
  5173. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::StringStringEntryProto >*
  5174. ModelProto::mutable_metadata_props() {
  5175. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.ModelProto.metadata_props)
  5176. return &metadata_props_;
  5177. }
  5178. inline const ::opencv_onnx::StringStringEntryProto& ModelProto::_internal_metadata_props(int index) const {
  5179. return metadata_props_.Get(index);
  5180. }
  5181. inline const ::opencv_onnx::StringStringEntryProto& ModelProto::metadata_props(int index) const {
  5182. // @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.metadata_props)
  5183. return _internal_metadata_props(index);
  5184. }
  5185. inline ::opencv_onnx::StringStringEntryProto* ModelProto::_internal_add_metadata_props() {
  5186. return metadata_props_.Add();
  5187. }
  5188. inline ::opencv_onnx::StringStringEntryProto* ModelProto::add_metadata_props() {
  5189. ::opencv_onnx::StringStringEntryProto* _add = _internal_add_metadata_props();
  5190. // @@protoc_insertion_point(field_add:opencv_onnx.ModelProto.metadata_props)
  5191. return _add;
  5192. }
  5193. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::StringStringEntryProto >&
  5194. ModelProto::metadata_props() const {
  5195. // @@protoc_insertion_point(field_list:opencv_onnx.ModelProto.metadata_props)
  5196. return metadata_props_;
  5197. }
  5198. // -------------------------------------------------------------------
  5199. // StringStringEntryProto
  5200. // optional string key = 1;
  5201. inline bool StringStringEntryProto::_internal_has_key() const {
  5202. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  5203. return value;
  5204. }
  5205. inline bool StringStringEntryProto::has_key() const {
  5206. return _internal_has_key();
  5207. }
  5208. inline void StringStringEntryProto::clear_key() {
  5209. key_.ClearToEmpty();
  5210. _has_bits_[0] &= ~0x00000001u;
  5211. }
  5212. inline const std::string& StringStringEntryProto::key() const {
  5213. // @@protoc_insertion_point(field_get:opencv_onnx.StringStringEntryProto.key)
  5214. return _internal_key();
  5215. }
  5216. template <typename ArgT0, typename... ArgT>
  5217. inline PROTOBUF_ALWAYS_INLINE
  5218. void StringStringEntryProto::set_key(ArgT0&& arg0, ArgT... args) {
  5219. _has_bits_[0] |= 0x00000001u;
  5220. key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  5221. // @@protoc_insertion_point(field_set:opencv_onnx.StringStringEntryProto.key)
  5222. }
  5223. inline std::string* StringStringEntryProto::mutable_key() {
  5224. std::string* _s = _internal_mutable_key();
  5225. // @@protoc_insertion_point(field_mutable:opencv_onnx.StringStringEntryProto.key)
  5226. return _s;
  5227. }
  5228. inline const std::string& StringStringEntryProto::_internal_key() const {
  5229. return key_.Get();
  5230. }
  5231. inline void StringStringEntryProto::_internal_set_key(const std::string& value) {
  5232. _has_bits_[0] |= 0x00000001u;
  5233. key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  5234. }
  5235. inline std::string* StringStringEntryProto::_internal_mutable_key() {
  5236. _has_bits_[0] |= 0x00000001u;
  5237. return key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  5238. }
  5239. inline std::string* StringStringEntryProto::release_key() {
  5240. // @@protoc_insertion_point(field_release:opencv_onnx.StringStringEntryProto.key)
  5241. if (!_internal_has_key()) {
  5242. return nullptr;
  5243. }
  5244. _has_bits_[0] &= ~0x00000001u;
  5245. auto* p = key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  5246. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5247. if (key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  5248. key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5249. }
  5250. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5251. return p;
  5252. }
  5253. inline void StringStringEntryProto::set_allocated_key(std::string* key) {
  5254. if (key != nullptr) {
  5255. _has_bits_[0] |= 0x00000001u;
  5256. } else {
  5257. _has_bits_[0] &= ~0x00000001u;
  5258. }
  5259. key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key,
  5260. GetArenaForAllocation());
  5261. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5262. if (key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  5263. key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5264. }
  5265. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5266. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.StringStringEntryProto.key)
  5267. }
  5268. // optional string value = 2;
  5269. inline bool StringStringEntryProto::_internal_has_value() const {
  5270. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  5271. return value;
  5272. }
  5273. inline bool StringStringEntryProto::has_value() const {
  5274. return _internal_has_value();
  5275. }
  5276. inline void StringStringEntryProto::clear_value() {
  5277. value_.ClearToEmpty();
  5278. _has_bits_[0] &= ~0x00000002u;
  5279. }
  5280. inline const std::string& StringStringEntryProto::value() const {
  5281. // @@protoc_insertion_point(field_get:opencv_onnx.StringStringEntryProto.value)
  5282. return _internal_value();
  5283. }
  5284. template <typename ArgT0, typename... ArgT>
  5285. inline PROTOBUF_ALWAYS_INLINE
  5286. void StringStringEntryProto::set_value(ArgT0&& arg0, ArgT... args) {
  5287. _has_bits_[0] |= 0x00000002u;
  5288. value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  5289. // @@protoc_insertion_point(field_set:opencv_onnx.StringStringEntryProto.value)
  5290. }
  5291. inline std::string* StringStringEntryProto::mutable_value() {
  5292. std::string* _s = _internal_mutable_value();
  5293. // @@protoc_insertion_point(field_mutable:opencv_onnx.StringStringEntryProto.value)
  5294. return _s;
  5295. }
  5296. inline const std::string& StringStringEntryProto::_internal_value() const {
  5297. return value_.Get();
  5298. }
  5299. inline void StringStringEntryProto::_internal_set_value(const std::string& value) {
  5300. _has_bits_[0] |= 0x00000002u;
  5301. value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  5302. }
  5303. inline std::string* StringStringEntryProto::_internal_mutable_value() {
  5304. _has_bits_[0] |= 0x00000002u;
  5305. return value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  5306. }
  5307. inline std::string* StringStringEntryProto::release_value() {
  5308. // @@protoc_insertion_point(field_release:opencv_onnx.StringStringEntryProto.value)
  5309. if (!_internal_has_value()) {
  5310. return nullptr;
  5311. }
  5312. _has_bits_[0] &= ~0x00000002u;
  5313. auto* p = value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  5314. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5315. if (value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  5316. value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5317. }
  5318. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5319. return p;
  5320. }
  5321. inline void StringStringEntryProto::set_allocated_value(std::string* value) {
  5322. if (value != nullptr) {
  5323. _has_bits_[0] |= 0x00000002u;
  5324. } else {
  5325. _has_bits_[0] &= ~0x00000002u;
  5326. }
  5327. value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value,
  5328. GetArenaForAllocation());
  5329. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5330. if (value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  5331. value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5332. }
  5333. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5334. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.StringStringEntryProto.value)
  5335. }
  5336. // -------------------------------------------------------------------
  5337. // GraphProto
  5338. // repeated .opencv_onnx.NodeProto node = 1;
  5339. inline int GraphProto::_internal_node_size() const {
  5340. return node_.size();
  5341. }
  5342. inline int GraphProto::node_size() const {
  5343. return _internal_node_size();
  5344. }
  5345. inline void GraphProto::clear_node() {
  5346. node_.Clear();
  5347. }
  5348. inline ::opencv_onnx::NodeProto* GraphProto::mutable_node(int index) {
  5349. // @@protoc_insertion_point(field_mutable:opencv_onnx.GraphProto.node)
  5350. return node_.Mutable(index);
  5351. }
  5352. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::NodeProto >*
  5353. GraphProto::mutable_node() {
  5354. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.GraphProto.node)
  5355. return &node_;
  5356. }
  5357. inline const ::opencv_onnx::NodeProto& GraphProto::_internal_node(int index) const {
  5358. return node_.Get(index);
  5359. }
  5360. inline const ::opencv_onnx::NodeProto& GraphProto::node(int index) const {
  5361. // @@protoc_insertion_point(field_get:opencv_onnx.GraphProto.node)
  5362. return _internal_node(index);
  5363. }
  5364. inline ::opencv_onnx::NodeProto* GraphProto::_internal_add_node() {
  5365. return node_.Add();
  5366. }
  5367. inline ::opencv_onnx::NodeProto* GraphProto::add_node() {
  5368. ::opencv_onnx::NodeProto* _add = _internal_add_node();
  5369. // @@protoc_insertion_point(field_add:opencv_onnx.GraphProto.node)
  5370. return _add;
  5371. }
  5372. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::NodeProto >&
  5373. GraphProto::node() const {
  5374. // @@protoc_insertion_point(field_list:opencv_onnx.GraphProto.node)
  5375. return node_;
  5376. }
  5377. // optional string name = 2;
  5378. inline bool GraphProto::_internal_has_name() const {
  5379. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  5380. return value;
  5381. }
  5382. inline bool GraphProto::has_name() const {
  5383. return _internal_has_name();
  5384. }
  5385. inline void GraphProto::clear_name() {
  5386. name_.ClearToEmpty();
  5387. _has_bits_[0] &= ~0x00000001u;
  5388. }
  5389. inline const std::string& GraphProto::name() const {
  5390. // @@protoc_insertion_point(field_get:opencv_onnx.GraphProto.name)
  5391. return _internal_name();
  5392. }
  5393. template <typename ArgT0, typename... ArgT>
  5394. inline PROTOBUF_ALWAYS_INLINE
  5395. void GraphProto::set_name(ArgT0&& arg0, ArgT... args) {
  5396. _has_bits_[0] |= 0x00000001u;
  5397. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  5398. // @@protoc_insertion_point(field_set:opencv_onnx.GraphProto.name)
  5399. }
  5400. inline std::string* GraphProto::mutable_name() {
  5401. std::string* _s = _internal_mutable_name();
  5402. // @@protoc_insertion_point(field_mutable:opencv_onnx.GraphProto.name)
  5403. return _s;
  5404. }
  5405. inline const std::string& GraphProto::_internal_name() const {
  5406. return name_.Get();
  5407. }
  5408. inline void GraphProto::_internal_set_name(const std::string& value) {
  5409. _has_bits_[0] |= 0x00000001u;
  5410. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  5411. }
  5412. inline std::string* GraphProto::_internal_mutable_name() {
  5413. _has_bits_[0] |= 0x00000001u;
  5414. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  5415. }
  5416. inline std::string* GraphProto::release_name() {
  5417. // @@protoc_insertion_point(field_release:opencv_onnx.GraphProto.name)
  5418. if (!_internal_has_name()) {
  5419. return nullptr;
  5420. }
  5421. _has_bits_[0] &= ~0x00000001u;
  5422. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  5423. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5424. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  5425. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5426. }
  5427. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5428. return p;
  5429. }
  5430. inline void GraphProto::set_allocated_name(std::string* name) {
  5431. if (name != nullptr) {
  5432. _has_bits_[0] |= 0x00000001u;
  5433. } else {
  5434. _has_bits_[0] &= ~0x00000001u;
  5435. }
  5436. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  5437. GetArenaForAllocation());
  5438. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5439. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  5440. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5441. }
  5442. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5443. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.GraphProto.name)
  5444. }
  5445. // repeated .opencv_onnx.TensorProto initializer = 5;
  5446. inline int GraphProto::_internal_initializer_size() const {
  5447. return initializer_.size();
  5448. }
  5449. inline int GraphProto::initializer_size() const {
  5450. return _internal_initializer_size();
  5451. }
  5452. inline void GraphProto::clear_initializer() {
  5453. initializer_.Clear();
  5454. }
  5455. inline ::opencv_onnx::TensorProto* GraphProto::mutable_initializer(int index) {
  5456. // @@protoc_insertion_point(field_mutable:opencv_onnx.GraphProto.initializer)
  5457. return initializer_.Mutable(index);
  5458. }
  5459. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >*
  5460. GraphProto::mutable_initializer() {
  5461. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.GraphProto.initializer)
  5462. return &initializer_;
  5463. }
  5464. inline const ::opencv_onnx::TensorProto& GraphProto::_internal_initializer(int index) const {
  5465. return initializer_.Get(index);
  5466. }
  5467. inline const ::opencv_onnx::TensorProto& GraphProto::initializer(int index) const {
  5468. // @@protoc_insertion_point(field_get:opencv_onnx.GraphProto.initializer)
  5469. return _internal_initializer(index);
  5470. }
  5471. inline ::opencv_onnx::TensorProto* GraphProto::_internal_add_initializer() {
  5472. return initializer_.Add();
  5473. }
  5474. inline ::opencv_onnx::TensorProto* GraphProto::add_initializer() {
  5475. ::opencv_onnx::TensorProto* _add = _internal_add_initializer();
  5476. // @@protoc_insertion_point(field_add:opencv_onnx.GraphProto.initializer)
  5477. return _add;
  5478. }
  5479. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >&
  5480. GraphProto::initializer() const {
  5481. // @@protoc_insertion_point(field_list:opencv_onnx.GraphProto.initializer)
  5482. return initializer_;
  5483. }
  5484. // optional string doc_string = 10;
  5485. inline bool GraphProto::_internal_has_doc_string() const {
  5486. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  5487. return value;
  5488. }
  5489. inline bool GraphProto::has_doc_string() const {
  5490. return _internal_has_doc_string();
  5491. }
  5492. inline void GraphProto::clear_doc_string() {
  5493. doc_string_.ClearToEmpty();
  5494. _has_bits_[0] &= ~0x00000002u;
  5495. }
  5496. inline const std::string& GraphProto::doc_string() const {
  5497. // @@protoc_insertion_point(field_get:opencv_onnx.GraphProto.doc_string)
  5498. return _internal_doc_string();
  5499. }
  5500. template <typename ArgT0, typename... ArgT>
  5501. inline PROTOBUF_ALWAYS_INLINE
  5502. void GraphProto::set_doc_string(ArgT0&& arg0, ArgT... args) {
  5503. _has_bits_[0] |= 0x00000002u;
  5504. doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  5505. // @@protoc_insertion_point(field_set:opencv_onnx.GraphProto.doc_string)
  5506. }
  5507. inline std::string* GraphProto::mutable_doc_string() {
  5508. std::string* _s = _internal_mutable_doc_string();
  5509. // @@protoc_insertion_point(field_mutable:opencv_onnx.GraphProto.doc_string)
  5510. return _s;
  5511. }
  5512. inline const std::string& GraphProto::_internal_doc_string() const {
  5513. return doc_string_.Get();
  5514. }
  5515. inline void GraphProto::_internal_set_doc_string(const std::string& value) {
  5516. _has_bits_[0] |= 0x00000002u;
  5517. doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  5518. }
  5519. inline std::string* GraphProto::_internal_mutable_doc_string() {
  5520. _has_bits_[0] |= 0x00000002u;
  5521. return doc_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  5522. }
  5523. inline std::string* GraphProto::release_doc_string() {
  5524. // @@protoc_insertion_point(field_release:opencv_onnx.GraphProto.doc_string)
  5525. if (!_internal_has_doc_string()) {
  5526. return nullptr;
  5527. }
  5528. _has_bits_[0] &= ~0x00000002u;
  5529. auto* p = doc_string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  5530. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5531. if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  5532. doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5533. }
  5534. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5535. return p;
  5536. }
  5537. inline void GraphProto::set_allocated_doc_string(std::string* doc_string) {
  5538. if (doc_string != nullptr) {
  5539. _has_bits_[0] |= 0x00000002u;
  5540. } else {
  5541. _has_bits_[0] &= ~0x00000002u;
  5542. }
  5543. doc_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), doc_string,
  5544. GetArenaForAllocation());
  5545. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5546. if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  5547. doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  5548. }
  5549. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  5550. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.GraphProto.doc_string)
  5551. }
  5552. // repeated .opencv_onnx.ValueInfoProto input = 11;
  5553. inline int GraphProto::_internal_input_size() const {
  5554. return input_.size();
  5555. }
  5556. inline int GraphProto::input_size() const {
  5557. return _internal_input_size();
  5558. }
  5559. inline void GraphProto::clear_input() {
  5560. input_.Clear();
  5561. }
  5562. inline ::opencv_onnx::ValueInfoProto* GraphProto::mutable_input(int index) {
  5563. // @@protoc_insertion_point(field_mutable:opencv_onnx.GraphProto.input)
  5564. return input_.Mutable(index);
  5565. }
  5566. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >*
  5567. GraphProto::mutable_input() {
  5568. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.GraphProto.input)
  5569. return &input_;
  5570. }
  5571. inline const ::opencv_onnx::ValueInfoProto& GraphProto::_internal_input(int index) const {
  5572. return input_.Get(index);
  5573. }
  5574. inline const ::opencv_onnx::ValueInfoProto& GraphProto::input(int index) const {
  5575. // @@protoc_insertion_point(field_get:opencv_onnx.GraphProto.input)
  5576. return _internal_input(index);
  5577. }
  5578. inline ::opencv_onnx::ValueInfoProto* GraphProto::_internal_add_input() {
  5579. return input_.Add();
  5580. }
  5581. inline ::opencv_onnx::ValueInfoProto* GraphProto::add_input() {
  5582. ::opencv_onnx::ValueInfoProto* _add = _internal_add_input();
  5583. // @@protoc_insertion_point(field_add:opencv_onnx.GraphProto.input)
  5584. return _add;
  5585. }
  5586. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >&
  5587. GraphProto::input() const {
  5588. // @@protoc_insertion_point(field_list:opencv_onnx.GraphProto.input)
  5589. return input_;
  5590. }
  5591. // repeated .opencv_onnx.ValueInfoProto output = 12;
  5592. inline int GraphProto::_internal_output_size() const {
  5593. return output_.size();
  5594. }
  5595. inline int GraphProto::output_size() const {
  5596. return _internal_output_size();
  5597. }
  5598. inline void GraphProto::clear_output() {
  5599. output_.Clear();
  5600. }
  5601. inline ::opencv_onnx::ValueInfoProto* GraphProto::mutable_output(int index) {
  5602. // @@protoc_insertion_point(field_mutable:opencv_onnx.GraphProto.output)
  5603. return output_.Mutable(index);
  5604. }
  5605. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >*
  5606. GraphProto::mutable_output() {
  5607. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.GraphProto.output)
  5608. return &output_;
  5609. }
  5610. inline const ::opencv_onnx::ValueInfoProto& GraphProto::_internal_output(int index) const {
  5611. return output_.Get(index);
  5612. }
  5613. inline const ::opencv_onnx::ValueInfoProto& GraphProto::output(int index) const {
  5614. // @@protoc_insertion_point(field_get:opencv_onnx.GraphProto.output)
  5615. return _internal_output(index);
  5616. }
  5617. inline ::opencv_onnx::ValueInfoProto* GraphProto::_internal_add_output() {
  5618. return output_.Add();
  5619. }
  5620. inline ::opencv_onnx::ValueInfoProto* GraphProto::add_output() {
  5621. ::opencv_onnx::ValueInfoProto* _add = _internal_add_output();
  5622. // @@protoc_insertion_point(field_add:opencv_onnx.GraphProto.output)
  5623. return _add;
  5624. }
  5625. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >&
  5626. GraphProto::output() const {
  5627. // @@protoc_insertion_point(field_list:opencv_onnx.GraphProto.output)
  5628. return output_;
  5629. }
  5630. // repeated .opencv_onnx.ValueInfoProto value_info = 13;
  5631. inline int GraphProto::_internal_value_info_size() const {
  5632. return value_info_.size();
  5633. }
  5634. inline int GraphProto::value_info_size() const {
  5635. return _internal_value_info_size();
  5636. }
  5637. inline void GraphProto::clear_value_info() {
  5638. value_info_.Clear();
  5639. }
  5640. inline ::opencv_onnx::ValueInfoProto* GraphProto::mutable_value_info(int index) {
  5641. // @@protoc_insertion_point(field_mutable:opencv_onnx.GraphProto.value_info)
  5642. return value_info_.Mutable(index);
  5643. }
  5644. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >*
  5645. GraphProto::mutable_value_info() {
  5646. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.GraphProto.value_info)
  5647. return &value_info_;
  5648. }
  5649. inline const ::opencv_onnx::ValueInfoProto& GraphProto::_internal_value_info(int index) const {
  5650. return value_info_.Get(index);
  5651. }
  5652. inline const ::opencv_onnx::ValueInfoProto& GraphProto::value_info(int index) const {
  5653. // @@protoc_insertion_point(field_get:opencv_onnx.GraphProto.value_info)
  5654. return _internal_value_info(index);
  5655. }
  5656. inline ::opencv_onnx::ValueInfoProto* GraphProto::_internal_add_value_info() {
  5657. return value_info_.Add();
  5658. }
  5659. inline ::opencv_onnx::ValueInfoProto* GraphProto::add_value_info() {
  5660. ::opencv_onnx::ValueInfoProto* _add = _internal_add_value_info();
  5661. // @@protoc_insertion_point(field_add:opencv_onnx.GraphProto.value_info)
  5662. return _add;
  5663. }
  5664. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >&
  5665. GraphProto::value_info() const {
  5666. // @@protoc_insertion_point(field_list:opencv_onnx.GraphProto.value_info)
  5667. return value_info_;
  5668. }
  5669. // -------------------------------------------------------------------
  5670. // TensorProto_Segment
  5671. // optional int64 begin = 1;
  5672. inline bool TensorProto_Segment::_internal_has_begin() const {
  5673. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  5674. return value;
  5675. }
  5676. inline bool TensorProto_Segment::has_begin() const {
  5677. return _internal_has_begin();
  5678. }
  5679. inline void TensorProto_Segment::clear_begin() {
  5680. begin_ = int64_t{0};
  5681. _has_bits_[0] &= ~0x00000001u;
  5682. }
  5683. inline int64_t TensorProto_Segment::_internal_begin() const {
  5684. return begin_;
  5685. }
  5686. inline int64_t TensorProto_Segment::begin() const {
  5687. // @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.Segment.begin)
  5688. return _internal_begin();
  5689. }
  5690. inline void TensorProto_Segment::_internal_set_begin(int64_t value) {
  5691. _has_bits_[0] |= 0x00000001u;
  5692. begin_ = value;
  5693. }
  5694. inline void TensorProto_Segment::set_begin(int64_t value) {
  5695. _internal_set_begin(value);
  5696. // @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.Segment.begin)
  5697. }
  5698. // optional int64 end = 2;
  5699. inline bool TensorProto_Segment::_internal_has_end() const {
  5700. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  5701. return value;
  5702. }
  5703. inline bool TensorProto_Segment::has_end() const {
  5704. return _internal_has_end();
  5705. }
  5706. inline void TensorProto_Segment::clear_end() {
  5707. end_ = int64_t{0};
  5708. _has_bits_[0] &= ~0x00000002u;
  5709. }
  5710. inline int64_t TensorProto_Segment::_internal_end() const {
  5711. return end_;
  5712. }
  5713. inline int64_t TensorProto_Segment::end() const {
  5714. // @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.Segment.end)
  5715. return _internal_end();
  5716. }
  5717. inline void TensorProto_Segment::_internal_set_end(int64_t value) {
  5718. _has_bits_[0] |= 0x00000002u;
  5719. end_ = value;
  5720. }
  5721. inline void TensorProto_Segment::set_end(int64_t value) {
  5722. _internal_set_end(value);
  5723. // @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.Segment.end)
  5724. }
  5725. // -------------------------------------------------------------------
  5726. // TensorProto
  5727. // repeated int64 dims = 1;
  5728. inline int TensorProto::_internal_dims_size() const {
  5729. return dims_.size();
  5730. }
  5731. inline int TensorProto::dims_size() const {
  5732. return _internal_dims_size();
  5733. }
  5734. inline void TensorProto::clear_dims() {
  5735. dims_.Clear();
  5736. }
  5737. inline int64_t TensorProto::_internal_dims(int index) const {
  5738. return dims_.Get(index);
  5739. }
  5740. inline int64_t TensorProto::dims(int index) const {
  5741. // @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.dims)
  5742. return _internal_dims(index);
  5743. }
  5744. inline void TensorProto::set_dims(int index, int64_t value) {
  5745. dims_.Set(index, value);
  5746. // @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.dims)
  5747. }
  5748. inline void TensorProto::_internal_add_dims(int64_t value) {
  5749. dims_.Add(value);
  5750. }
  5751. inline void TensorProto::add_dims(int64_t value) {
  5752. _internal_add_dims(value);
  5753. // @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.dims)
  5754. }
  5755. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  5756. TensorProto::_internal_dims() const {
  5757. return dims_;
  5758. }
  5759. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  5760. TensorProto::dims() const {
  5761. // @@protoc_insertion_point(field_list:opencv_onnx.TensorProto.dims)
  5762. return _internal_dims();
  5763. }
  5764. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  5765. TensorProto::_internal_mutable_dims() {
  5766. return &dims_;
  5767. }
  5768. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  5769. TensorProto::mutable_dims() {
  5770. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorProto.dims)
  5771. return _internal_mutable_dims();
  5772. }
  5773. // optional .opencv_onnx.TensorProto.DataType data_type = 2;
  5774. inline bool TensorProto::_internal_has_data_type() const {
  5775. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  5776. return value;
  5777. }
  5778. inline bool TensorProto::has_data_type() const {
  5779. return _internal_has_data_type();
  5780. }
  5781. inline void TensorProto::clear_data_type() {
  5782. data_type_ = 0;
  5783. _has_bits_[0] &= ~0x00000010u;
  5784. }
  5785. inline ::opencv_onnx::TensorProto_DataType TensorProto::_internal_data_type() const {
  5786. return static_cast< ::opencv_onnx::TensorProto_DataType >(data_type_);
  5787. }
  5788. inline ::opencv_onnx::TensorProto_DataType TensorProto::data_type() const {
  5789. // @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.data_type)
  5790. return _internal_data_type();
  5791. }
  5792. inline void TensorProto::_internal_set_data_type(::opencv_onnx::TensorProto_DataType value) {
  5793. assert(::opencv_onnx::TensorProto_DataType_IsValid(value));
  5794. _has_bits_[0] |= 0x00000010u;
  5795. data_type_ = value;
  5796. }
  5797. inline void TensorProto::set_data_type(::opencv_onnx::TensorProto_DataType value) {
  5798. _internal_set_data_type(value);
  5799. // @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.data_type)
  5800. }
  5801. // optional .opencv_onnx.TensorProto.Segment segment = 3;
  5802. inline bool TensorProto::_internal_has_segment() const {
  5803. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  5804. PROTOBUF_ASSUME(!value || segment_ != nullptr);
  5805. return value;
  5806. }
  5807. inline bool TensorProto::has_segment() const {
  5808. return _internal_has_segment();
  5809. }
  5810. inline void TensorProto::clear_segment() {
  5811. if (segment_ != nullptr) segment_->Clear();
  5812. _has_bits_[0] &= ~0x00000008u;
  5813. }
  5814. inline const ::opencv_onnx::TensorProto_Segment& TensorProto::_internal_segment() const {
  5815. const ::opencv_onnx::TensorProto_Segment* p = segment_;
  5816. return p != nullptr ? *p : reinterpret_cast<const ::opencv_onnx::TensorProto_Segment&>(
  5817. ::opencv_onnx::_TensorProto_Segment_default_instance_);
  5818. }
  5819. inline const ::opencv_onnx::TensorProto_Segment& TensorProto::segment() const {
  5820. // @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.segment)
  5821. return _internal_segment();
  5822. }
  5823. inline void TensorProto::unsafe_arena_set_allocated_segment(
  5824. ::opencv_onnx::TensorProto_Segment* segment) {
  5825. if (GetArenaForAllocation() == nullptr) {
  5826. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(segment_);
  5827. }
  5828. segment_ = segment;
  5829. if (segment) {
  5830. _has_bits_[0] |= 0x00000008u;
  5831. } else {
  5832. _has_bits_[0] &= ~0x00000008u;
  5833. }
  5834. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_onnx.TensorProto.segment)
  5835. }
  5836. inline ::opencv_onnx::TensorProto_Segment* TensorProto::release_segment() {
  5837. _has_bits_[0] &= ~0x00000008u;
  5838. ::opencv_onnx::TensorProto_Segment* temp = segment_;
  5839. segment_ = nullptr;
  5840. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  5841. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  5842. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  5843. if (GetArenaForAllocation() == nullptr) { delete old; }
  5844. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  5845. if (GetArenaForAllocation() != nullptr) {
  5846. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  5847. }
  5848. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  5849. return temp;
  5850. }
  5851. inline ::opencv_onnx::TensorProto_Segment* TensorProto::unsafe_arena_release_segment() {
  5852. // @@protoc_insertion_point(field_release:opencv_onnx.TensorProto.segment)
  5853. _has_bits_[0] &= ~0x00000008u;
  5854. ::opencv_onnx::TensorProto_Segment* temp = segment_;
  5855. segment_ = nullptr;
  5856. return temp;
  5857. }
  5858. inline ::opencv_onnx::TensorProto_Segment* TensorProto::_internal_mutable_segment() {
  5859. _has_bits_[0] |= 0x00000008u;
  5860. if (segment_ == nullptr) {
  5861. auto* p = CreateMaybeMessage<::opencv_onnx::TensorProto_Segment>(GetArenaForAllocation());
  5862. segment_ = p;
  5863. }
  5864. return segment_;
  5865. }
  5866. inline ::opencv_onnx::TensorProto_Segment* TensorProto::mutable_segment() {
  5867. ::opencv_onnx::TensorProto_Segment* _msg = _internal_mutable_segment();
  5868. // @@protoc_insertion_point(field_mutable:opencv_onnx.TensorProto.segment)
  5869. return _msg;
  5870. }
  5871. inline void TensorProto::set_allocated_segment(::opencv_onnx::TensorProto_Segment* segment) {
  5872. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  5873. if (message_arena == nullptr) {
  5874. delete segment_;
  5875. }
  5876. if (segment) {
  5877. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  5878. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opencv_onnx::TensorProto_Segment>::GetOwningArena(segment);
  5879. if (message_arena != submessage_arena) {
  5880. segment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  5881. message_arena, segment, submessage_arena);
  5882. }
  5883. _has_bits_[0] |= 0x00000008u;
  5884. } else {
  5885. _has_bits_[0] &= ~0x00000008u;
  5886. }
  5887. segment_ = segment;
  5888. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.TensorProto.segment)
  5889. }
  5890. // repeated float float_data = 4 [packed = true];
  5891. inline int TensorProto::_internal_float_data_size() const {
  5892. return float_data_.size();
  5893. }
  5894. inline int TensorProto::float_data_size() const {
  5895. return _internal_float_data_size();
  5896. }
  5897. inline void TensorProto::clear_float_data() {
  5898. float_data_.Clear();
  5899. }
  5900. inline float TensorProto::_internal_float_data(int index) const {
  5901. return float_data_.Get(index);
  5902. }
  5903. inline float TensorProto::float_data(int index) const {
  5904. // @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.float_data)
  5905. return _internal_float_data(index);
  5906. }
  5907. inline void TensorProto::set_float_data(int index, float value) {
  5908. float_data_.Set(index, value);
  5909. // @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.float_data)
  5910. }
  5911. inline void TensorProto::_internal_add_float_data(float value) {
  5912. float_data_.Add(value);
  5913. }
  5914. inline void TensorProto::add_float_data(float value) {
  5915. _internal_add_float_data(value);
  5916. // @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.float_data)
  5917. }
  5918. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  5919. TensorProto::_internal_float_data() const {
  5920. return float_data_;
  5921. }
  5922. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
  5923. TensorProto::float_data() const {
  5924. // @@protoc_insertion_point(field_list:opencv_onnx.TensorProto.float_data)
  5925. return _internal_float_data();
  5926. }
  5927. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  5928. TensorProto::_internal_mutable_float_data() {
  5929. return &float_data_;
  5930. }
  5931. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
  5932. TensorProto::mutable_float_data() {
  5933. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorProto.float_data)
  5934. return _internal_mutable_float_data();
  5935. }
  5936. // repeated int32 int32_data = 5 [packed = true];
  5937. inline int TensorProto::_internal_int32_data_size() const {
  5938. return int32_data_.size();
  5939. }
  5940. inline int TensorProto::int32_data_size() const {
  5941. return _internal_int32_data_size();
  5942. }
  5943. inline void TensorProto::clear_int32_data() {
  5944. int32_data_.Clear();
  5945. }
  5946. inline int32_t TensorProto::_internal_int32_data(int index) const {
  5947. return int32_data_.Get(index);
  5948. }
  5949. inline int32_t TensorProto::int32_data(int index) const {
  5950. // @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.int32_data)
  5951. return _internal_int32_data(index);
  5952. }
  5953. inline void TensorProto::set_int32_data(int index, int32_t value) {
  5954. int32_data_.Set(index, value);
  5955. // @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.int32_data)
  5956. }
  5957. inline void TensorProto::_internal_add_int32_data(int32_t value) {
  5958. int32_data_.Add(value);
  5959. }
  5960. inline void TensorProto::add_int32_data(int32_t value) {
  5961. _internal_add_int32_data(value);
  5962. // @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.int32_data)
  5963. }
  5964. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  5965. TensorProto::_internal_int32_data() const {
  5966. return int32_data_;
  5967. }
  5968. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  5969. TensorProto::int32_data() const {
  5970. // @@protoc_insertion_point(field_list:opencv_onnx.TensorProto.int32_data)
  5971. return _internal_int32_data();
  5972. }
  5973. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  5974. TensorProto::_internal_mutable_int32_data() {
  5975. return &int32_data_;
  5976. }
  5977. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  5978. TensorProto::mutable_int32_data() {
  5979. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorProto.int32_data)
  5980. return _internal_mutable_int32_data();
  5981. }
  5982. // repeated bytes string_data = 6;
  5983. inline int TensorProto::_internal_string_data_size() const {
  5984. return string_data_.size();
  5985. }
  5986. inline int TensorProto::string_data_size() const {
  5987. return _internal_string_data_size();
  5988. }
  5989. inline void TensorProto::clear_string_data() {
  5990. string_data_.Clear();
  5991. }
  5992. inline std::string* TensorProto::add_string_data() {
  5993. std::string* _s = _internal_add_string_data();
  5994. // @@protoc_insertion_point(field_add_mutable:opencv_onnx.TensorProto.string_data)
  5995. return _s;
  5996. }
  5997. inline const std::string& TensorProto::_internal_string_data(int index) const {
  5998. return string_data_.Get(index);
  5999. }
  6000. inline const std::string& TensorProto::string_data(int index) const {
  6001. // @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.string_data)
  6002. return _internal_string_data(index);
  6003. }
  6004. inline std::string* TensorProto::mutable_string_data(int index) {
  6005. // @@protoc_insertion_point(field_mutable:opencv_onnx.TensorProto.string_data)
  6006. return string_data_.Mutable(index);
  6007. }
  6008. inline void TensorProto::set_string_data(int index, const std::string& value) {
  6009. string_data_.Mutable(index)->assign(value);
  6010. // @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.string_data)
  6011. }
  6012. inline void TensorProto::set_string_data(int index, std::string&& value) {
  6013. string_data_.Mutable(index)->assign(std::move(value));
  6014. // @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.string_data)
  6015. }
  6016. inline void TensorProto::set_string_data(int index, const char* value) {
  6017. GOOGLE_DCHECK(value != nullptr);
  6018. string_data_.Mutable(index)->assign(value);
  6019. // @@protoc_insertion_point(field_set_char:opencv_onnx.TensorProto.string_data)
  6020. }
  6021. inline void TensorProto::set_string_data(int index, const void* value, size_t size) {
  6022. string_data_.Mutable(index)->assign(
  6023. reinterpret_cast<const char*>(value), size);
  6024. // @@protoc_insertion_point(field_set_pointer:opencv_onnx.TensorProto.string_data)
  6025. }
  6026. inline std::string* TensorProto::_internal_add_string_data() {
  6027. return string_data_.Add();
  6028. }
  6029. inline void TensorProto::add_string_data(const std::string& value) {
  6030. string_data_.Add()->assign(value);
  6031. // @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.string_data)
  6032. }
  6033. inline void TensorProto::add_string_data(std::string&& value) {
  6034. string_data_.Add(std::move(value));
  6035. // @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.string_data)
  6036. }
  6037. inline void TensorProto::add_string_data(const char* value) {
  6038. GOOGLE_DCHECK(value != nullptr);
  6039. string_data_.Add()->assign(value);
  6040. // @@protoc_insertion_point(field_add_char:opencv_onnx.TensorProto.string_data)
  6041. }
  6042. inline void TensorProto::add_string_data(const void* value, size_t size) {
  6043. string_data_.Add()->assign(reinterpret_cast<const char*>(value), size);
  6044. // @@protoc_insertion_point(field_add_pointer:opencv_onnx.TensorProto.string_data)
  6045. }
  6046. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  6047. TensorProto::string_data() const {
  6048. // @@protoc_insertion_point(field_list:opencv_onnx.TensorProto.string_data)
  6049. return string_data_;
  6050. }
  6051. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  6052. TensorProto::mutable_string_data() {
  6053. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorProto.string_data)
  6054. return &string_data_;
  6055. }
  6056. // repeated int64 int64_data = 7 [packed = true];
  6057. inline int TensorProto::_internal_int64_data_size() const {
  6058. return int64_data_.size();
  6059. }
  6060. inline int TensorProto::int64_data_size() const {
  6061. return _internal_int64_data_size();
  6062. }
  6063. inline void TensorProto::clear_int64_data() {
  6064. int64_data_.Clear();
  6065. }
  6066. inline int64_t TensorProto::_internal_int64_data(int index) const {
  6067. return int64_data_.Get(index);
  6068. }
  6069. inline int64_t TensorProto::int64_data(int index) const {
  6070. // @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.int64_data)
  6071. return _internal_int64_data(index);
  6072. }
  6073. inline void TensorProto::set_int64_data(int index, int64_t value) {
  6074. int64_data_.Set(index, value);
  6075. // @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.int64_data)
  6076. }
  6077. inline void TensorProto::_internal_add_int64_data(int64_t value) {
  6078. int64_data_.Add(value);
  6079. }
  6080. inline void TensorProto::add_int64_data(int64_t value) {
  6081. _internal_add_int64_data(value);
  6082. // @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.int64_data)
  6083. }
  6084. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  6085. TensorProto::_internal_int64_data() const {
  6086. return int64_data_;
  6087. }
  6088. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
  6089. TensorProto::int64_data() const {
  6090. // @@protoc_insertion_point(field_list:opencv_onnx.TensorProto.int64_data)
  6091. return _internal_int64_data();
  6092. }
  6093. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  6094. TensorProto::_internal_mutable_int64_data() {
  6095. return &int64_data_;
  6096. }
  6097. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
  6098. TensorProto::mutable_int64_data() {
  6099. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorProto.int64_data)
  6100. return _internal_mutable_int64_data();
  6101. }
  6102. // optional string name = 8;
  6103. inline bool TensorProto::_internal_has_name() const {
  6104. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  6105. return value;
  6106. }
  6107. inline bool TensorProto::has_name() const {
  6108. return _internal_has_name();
  6109. }
  6110. inline void TensorProto::clear_name() {
  6111. name_.ClearToEmpty();
  6112. _has_bits_[0] &= ~0x00000001u;
  6113. }
  6114. inline const std::string& TensorProto::name() const {
  6115. // @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.name)
  6116. return _internal_name();
  6117. }
  6118. template <typename ArgT0, typename... ArgT>
  6119. inline PROTOBUF_ALWAYS_INLINE
  6120. void TensorProto::set_name(ArgT0&& arg0, ArgT... args) {
  6121. _has_bits_[0] |= 0x00000001u;
  6122. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  6123. // @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.name)
  6124. }
  6125. inline std::string* TensorProto::mutable_name() {
  6126. std::string* _s = _internal_mutable_name();
  6127. // @@protoc_insertion_point(field_mutable:opencv_onnx.TensorProto.name)
  6128. return _s;
  6129. }
  6130. inline const std::string& TensorProto::_internal_name() const {
  6131. return name_.Get();
  6132. }
  6133. inline void TensorProto::_internal_set_name(const std::string& value) {
  6134. _has_bits_[0] |= 0x00000001u;
  6135. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  6136. }
  6137. inline std::string* TensorProto::_internal_mutable_name() {
  6138. _has_bits_[0] |= 0x00000001u;
  6139. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  6140. }
  6141. inline std::string* TensorProto::release_name() {
  6142. // @@protoc_insertion_point(field_release:opencv_onnx.TensorProto.name)
  6143. if (!_internal_has_name()) {
  6144. return nullptr;
  6145. }
  6146. _has_bits_[0] &= ~0x00000001u;
  6147. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  6148. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6149. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  6150. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6151. }
  6152. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6153. return p;
  6154. }
  6155. inline void TensorProto::set_allocated_name(std::string* name) {
  6156. if (name != nullptr) {
  6157. _has_bits_[0] |= 0x00000001u;
  6158. } else {
  6159. _has_bits_[0] &= ~0x00000001u;
  6160. }
  6161. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  6162. GetArenaForAllocation());
  6163. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6164. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  6165. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6166. }
  6167. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6168. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.TensorProto.name)
  6169. }
  6170. // optional string doc_string = 12;
  6171. inline bool TensorProto::_internal_has_doc_string() const {
  6172. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  6173. return value;
  6174. }
  6175. inline bool TensorProto::has_doc_string() const {
  6176. return _internal_has_doc_string();
  6177. }
  6178. inline void TensorProto::clear_doc_string() {
  6179. doc_string_.ClearToEmpty();
  6180. _has_bits_[0] &= ~0x00000004u;
  6181. }
  6182. inline const std::string& TensorProto::doc_string() const {
  6183. // @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.doc_string)
  6184. return _internal_doc_string();
  6185. }
  6186. template <typename ArgT0, typename... ArgT>
  6187. inline PROTOBUF_ALWAYS_INLINE
  6188. void TensorProto::set_doc_string(ArgT0&& arg0, ArgT... args) {
  6189. _has_bits_[0] |= 0x00000004u;
  6190. doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  6191. // @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.doc_string)
  6192. }
  6193. inline std::string* TensorProto::mutable_doc_string() {
  6194. std::string* _s = _internal_mutable_doc_string();
  6195. // @@protoc_insertion_point(field_mutable:opencv_onnx.TensorProto.doc_string)
  6196. return _s;
  6197. }
  6198. inline const std::string& TensorProto::_internal_doc_string() const {
  6199. return doc_string_.Get();
  6200. }
  6201. inline void TensorProto::_internal_set_doc_string(const std::string& value) {
  6202. _has_bits_[0] |= 0x00000004u;
  6203. doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  6204. }
  6205. inline std::string* TensorProto::_internal_mutable_doc_string() {
  6206. _has_bits_[0] |= 0x00000004u;
  6207. return doc_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  6208. }
  6209. inline std::string* TensorProto::release_doc_string() {
  6210. // @@protoc_insertion_point(field_release:opencv_onnx.TensorProto.doc_string)
  6211. if (!_internal_has_doc_string()) {
  6212. return nullptr;
  6213. }
  6214. _has_bits_[0] &= ~0x00000004u;
  6215. auto* p = doc_string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  6216. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6217. if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  6218. doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6219. }
  6220. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6221. return p;
  6222. }
  6223. inline void TensorProto::set_allocated_doc_string(std::string* doc_string) {
  6224. if (doc_string != nullptr) {
  6225. _has_bits_[0] |= 0x00000004u;
  6226. } else {
  6227. _has_bits_[0] &= ~0x00000004u;
  6228. }
  6229. doc_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), doc_string,
  6230. GetArenaForAllocation());
  6231. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6232. if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  6233. doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6234. }
  6235. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6236. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.TensorProto.doc_string)
  6237. }
  6238. // optional bytes raw_data = 9;
  6239. inline bool TensorProto::_internal_has_raw_data() const {
  6240. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  6241. return value;
  6242. }
  6243. inline bool TensorProto::has_raw_data() const {
  6244. return _internal_has_raw_data();
  6245. }
  6246. inline void TensorProto::clear_raw_data() {
  6247. raw_data_.ClearToEmpty();
  6248. _has_bits_[0] &= ~0x00000002u;
  6249. }
  6250. inline const std::string& TensorProto::raw_data() const {
  6251. // @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.raw_data)
  6252. return _internal_raw_data();
  6253. }
  6254. template <typename ArgT0, typename... ArgT>
  6255. inline PROTOBUF_ALWAYS_INLINE
  6256. void TensorProto::set_raw_data(ArgT0&& arg0, ArgT... args) {
  6257. _has_bits_[0] |= 0x00000002u;
  6258. raw_data_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  6259. // @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.raw_data)
  6260. }
  6261. inline std::string* TensorProto::mutable_raw_data() {
  6262. std::string* _s = _internal_mutable_raw_data();
  6263. // @@protoc_insertion_point(field_mutable:opencv_onnx.TensorProto.raw_data)
  6264. return _s;
  6265. }
  6266. inline const std::string& TensorProto::_internal_raw_data() const {
  6267. return raw_data_.Get();
  6268. }
  6269. inline void TensorProto::_internal_set_raw_data(const std::string& value) {
  6270. _has_bits_[0] |= 0x00000002u;
  6271. raw_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  6272. }
  6273. inline std::string* TensorProto::_internal_mutable_raw_data() {
  6274. _has_bits_[0] |= 0x00000002u;
  6275. return raw_data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  6276. }
  6277. inline std::string* TensorProto::release_raw_data() {
  6278. // @@protoc_insertion_point(field_release:opencv_onnx.TensorProto.raw_data)
  6279. if (!_internal_has_raw_data()) {
  6280. return nullptr;
  6281. }
  6282. _has_bits_[0] &= ~0x00000002u;
  6283. auto* p = raw_data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  6284. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6285. if (raw_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  6286. raw_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6287. }
  6288. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6289. return p;
  6290. }
  6291. inline void TensorProto::set_allocated_raw_data(std::string* raw_data) {
  6292. if (raw_data != nullptr) {
  6293. _has_bits_[0] |= 0x00000002u;
  6294. } else {
  6295. _has_bits_[0] &= ~0x00000002u;
  6296. }
  6297. raw_data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), raw_data,
  6298. GetArenaForAllocation());
  6299. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6300. if (raw_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  6301. raw_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6302. }
  6303. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6304. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.TensorProto.raw_data)
  6305. }
  6306. // repeated double double_data = 10 [packed = true];
  6307. inline int TensorProto::_internal_double_data_size() const {
  6308. return double_data_.size();
  6309. }
  6310. inline int TensorProto::double_data_size() const {
  6311. return _internal_double_data_size();
  6312. }
  6313. inline void TensorProto::clear_double_data() {
  6314. double_data_.Clear();
  6315. }
  6316. inline double TensorProto::_internal_double_data(int index) const {
  6317. return double_data_.Get(index);
  6318. }
  6319. inline double TensorProto::double_data(int index) const {
  6320. // @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.double_data)
  6321. return _internal_double_data(index);
  6322. }
  6323. inline void TensorProto::set_double_data(int index, double value) {
  6324. double_data_.Set(index, value);
  6325. // @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.double_data)
  6326. }
  6327. inline void TensorProto::_internal_add_double_data(double value) {
  6328. double_data_.Add(value);
  6329. }
  6330. inline void TensorProto::add_double_data(double value) {
  6331. _internal_add_double_data(value);
  6332. // @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.double_data)
  6333. }
  6334. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
  6335. TensorProto::_internal_double_data() const {
  6336. return double_data_;
  6337. }
  6338. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
  6339. TensorProto::double_data() const {
  6340. // @@protoc_insertion_point(field_list:opencv_onnx.TensorProto.double_data)
  6341. return _internal_double_data();
  6342. }
  6343. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
  6344. TensorProto::_internal_mutable_double_data() {
  6345. return &double_data_;
  6346. }
  6347. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
  6348. TensorProto::mutable_double_data() {
  6349. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorProto.double_data)
  6350. return _internal_mutable_double_data();
  6351. }
  6352. // repeated uint64 uint64_data = 11 [packed = true];
  6353. inline int TensorProto::_internal_uint64_data_size() const {
  6354. return uint64_data_.size();
  6355. }
  6356. inline int TensorProto::uint64_data_size() const {
  6357. return _internal_uint64_data_size();
  6358. }
  6359. inline void TensorProto::clear_uint64_data() {
  6360. uint64_data_.Clear();
  6361. }
  6362. inline uint64_t TensorProto::_internal_uint64_data(int index) const {
  6363. return uint64_data_.Get(index);
  6364. }
  6365. inline uint64_t TensorProto::uint64_data(int index) const {
  6366. // @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.uint64_data)
  6367. return _internal_uint64_data(index);
  6368. }
  6369. inline void TensorProto::set_uint64_data(int index, uint64_t value) {
  6370. uint64_data_.Set(index, value);
  6371. // @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.uint64_data)
  6372. }
  6373. inline void TensorProto::_internal_add_uint64_data(uint64_t value) {
  6374. uint64_data_.Add(value);
  6375. }
  6376. inline void TensorProto::add_uint64_data(uint64_t value) {
  6377. _internal_add_uint64_data(value);
  6378. // @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.uint64_data)
  6379. }
  6380. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >&
  6381. TensorProto::_internal_uint64_data() const {
  6382. return uint64_data_;
  6383. }
  6384. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >&
  6385. TensorProto::uint64_data() const {
  6386. // @@protoc_insertion_point(field_list:opencv_onnx.TensorProto.uint64_data)
  6387. return _internal_uint64_data();
  6388. }
  6389. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >*
  6390. TensorProto::_internal_mutable_uint64_data() {
  6391. return &uint64_data_;
  6392. }
  6393. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >*
  6394. TensorProto::mutable_uint64_data() {
  6395. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorProto.uint64_data)
  6396. return _internal_mutable_uint64_data();
  6397. }
  6398. // -------------------------------------------------------------------
  6399. // TensorShapeProto_Dimension
  6400. // int64 dim_value = 1;
  6401. inline bool TensorShapeProto_Dimension::_internal_has_dim_value() const {
  6402. return value_case() == kDimValue;
  6403. }
  6404. inline bool TensorShapeProto_Dimension::has_dim_value() const {
  6405. return _internal_has_dim_value();
  6406. }
  6407. inline void TensorShapeProto_Dimension::set_has_dim_value() {
  6408. _oneof_case_[0] = kDimValue;
  6409. }
  6410. inline void TensorShapeProto_Dimension::clear_dim_value() {
  6411. if (_internal_has_dim_value()) {
  6412. value_.dim_value_ = int64_t{0};
  6413. clear_has_value();
  6414. }
  6415. }
  6416. inline int64_t TensorShapeProto_Dimension::_internal_dim_value() const {
  6417. if (_internal_has_dim_value()) {
  6418. return value_.dim_value_;
  6419. }
  6420. return int64_t{0};
  6421. }
  6422. inline void TensorShapeProto_Dimension::_internal_set_dim_value(int64_t value) {
  6423. if (!_internal_has_dim_value()) {
  6424. clear_value();
  6425. set_has_dim_value();
  6426. }
  6427. value_.dim_value_ = value;
  6428. }
  6429. inline int64_t TensorShapeProto_Dimension::dim_value() const {
  6430. // @@protoc_insertion_point(field_get:opencv_onnx.TensorShapeProto.Dimension.dim_value)
  6431. return _internal_dim_value();
  6432. }
  6433. inline void TensorShapeProto_Dimension::set_dim_value(int64_t value) {
  6434. _internal_set_dim_value(value);
  6435. // @@protoc_insertion_point(field_set:opencv_onnx.TensorShapeProto.Dimension.dim_value)
  6436. }
  6437. // string dim_param = 2;
  6438. inline bool TensorShapeProto_Dimension::_internal_has_dim_param() const {
  6439. return value_case() == kDimParam;
  6440. }
  6441. inline bool TensorShapeProto_Dimension::has_dim_param() const {
  6442. return _internal_has_dim_param();
  6443. }
  6444. inline void TensorShapeProto_Dimension::set_has_dim_param() {
  6445. _oneof_case_[0] = kDimParam;
  6446. }
  6447. inline void TensorShapeProto_Dimension::clear_dim_param() {
  6448. if (_internal_has_dim_param()) {
  6449. value_.dim_param_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  6450. clear_has_value();
  6451. }
  6452. }
  6453. inline const std::string& TensorShapeProto_Dimension::dim_param() const {
  6454. // @@protoc_insertion_point(field_get:opencv_onnx.TensorShapeProto.Dimension.dim_param)
  6455. return _internal_dim_param();
  6456. }
  6457. template <typename ArgT0, typename... ArgT>
  6458. inline void TensorShapeProto_Dimension::set_dim_param(ArgT0&& arg0, ArgT... args) {
  6459. if (!_internal_has_dim_param()) {
  6460. clear_value();
  6461. set_has_dim_param();
  6462. value_.dim_param_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6463. }
  6464. value_.dim_param_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  6465. // @@protoc_insertion_point(field_set:opencv_onnx.TensorShapeProto.Dimension.dim_param)
  6466. }
  6467. inline std::string* TensorShapeProto_Dimension::mutable_dim_param() {
  6468. std::string* _s = _internal_mutable_dim_param();
  6469. // @@protoc_insertion_point(field_mutable:opencv_onnx.TensorShapeProto.Dimension.dim_param)
  6470. return _s;
  6471. }
  6472. inline const std::string& TensorShapeProto_Dimension::_internal_dim_param() const {
  6473. if (_internal_has_dim_param()) {
  6474. return value_.dim_param_.Get();
  6475. }
  6476. return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
  6477. }
  6478. inline void TensorShapeProto_Dimension::_internal_set_dim_param(const std::string& value) {
  6479. if (!_internal_has_dim_param()) {
  6480. clear_value();
  6481. set_has_dim_param();
  6482. value_.dim_param_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6483. }
  6484. value_.dim_param_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  6485. }
  6486. inline std::string* TensorShapeProto_Dimension::_internal_mutable_dim_param() {
  6487. if (!_internal_has_dim_param()) {
  6488. clear_value();
  6489. set_has_dim_param();
  6490. value_.dim_param_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  6491. }
  6492. return value_.dim_param_.Mutable(
  6493. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  6494. }
  6495. inline std::string* TensorShapeProto_Dimension::release_dim_param() {
  6496. // @@protoc_insertion_point(field_release:opencv_onnx.TensorShapeProto.Dimension.dim_param)
  6497. if (_internal_has_dim_param()) {
  6498. clear_has_value();
  6499. return value_.dim_param_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  6500. } else {
  6501. return nullptr;
  6502. }
  6503. }
  6504. inline void TensorShapeProto_Dimension::set_allocated_dim_param(std::string* dim_param) {
  6505. if (has_value()) {
  6506. clear_value();
  6507. }
  6508. if (dim_param != nullptr) {
  6509. set_has_dim_param();
  6510. value_.dim_param_.UnsafeSetDefault(dim_param);
  6511. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation();
  6512. if (arena != nullptr) {
  6513. arena->Own(dim_param);
  6514. }
  6515. }
  6516. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.TensorShapeProto.Dimension.dim_param)
  6517. }
  6518. // optional string denotation = 3;
  6519. inline bool TensorShapeProto_Dimension::_internal_has_denotation() const {
  6520. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  6521. return value;
  6522. }
  6523. inline bool TensorShapeProto_Dimension::has_denotation() const {
  6524. return _internal_has_denotation();
  6525. }
  6526. inline void TensorShapeProto_Dimension::clear_denotation() {
  6527. denotation_.ClearToEmpty();
  6528. _has_bits_[0] &= ~0x00000001u;
  6529. }
  6530. inline const std::string& TensorShapeProto_Dimension::denotation() const {
  6531. // @@protoc_insertion_point(field_get:opencv_onnx.TensorShapeProto.Dimension.denotation)
  6532. return _internal_denotation();
  6533. }
  6534. template <typename ArgT0, typename... ArgT>
  6535. inline PROTOBUF_ALWAYS_INLINE
  6536. void TensorShapeProto_Dimension::set_denotation(ArgT0&& arg0, ArgT... args) {
  6537. _has_bits_[0] |= 0x00000001u;
  6538. denotation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  6539. // @@protoc_insertion_point(field_set:opencv_onnx.TensorShapeProto.Dimension.denotation)
  6540. }
  6541. inline std::string* TensorShapeProto_Dimension::mutable_denotation() {
  6542. std::string* _s = _internal_mutable_denotation();
  6543. // @@protoc_insertion_point(field_mutable:opencv_onnx.TensorShapeProto.Dimension.denotation)
  6544. return _s;
  6545. }
  6546. inline const std::string& TensorShapeProto_Dimension::_internal_denotation() const {
  6547. return denotation_.Get();
  6548. }
  6549. inline void TensorShapeProto_Dimension::_internal_set_denotation(const std::string& value) {
  6550. _has_bits_[0] |= 0x00000001u;
  6551. denotation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  6552. }
  6553. inline std::string* TensorShapeProto_Dimension::_internal_mutable_denotation() {
  6554. _has_bits_[0] |= 0x00000001u;
  6555. return denotation_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  6556. }
  6557. inline std::string* TensorShapeProto_Dimension::release_denotation() {
  6558. // @@protoc_insertion_point(field_release:opencv_onnx.TensorShapeProto.Dimension.denotation)
  6559. if (!_internal_has_denotation()) {
  6560. return nullptr;
  6561. }
  6562. _has_bits_[0] &= ~0x00000001u;
  6563. auto* p = denotation_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  6564. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6565. if (denotation_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  6566. denotation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6567. }
  6568. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6569. return p;
  6570. }
  6571. inline void TensorShapeProto_Dimension::set_allocated_denotation(std::string* denotation) {
  6572. if (denotation != nullptr) {
  6573. _has_bits_[0] |= 0x00000001u;
  6574. } else {
  6575. _has_bits_[0] &= ~0x00000001u;
  6576. }
  6577. denotation_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), denotation,
  6578. GetArenaForAllocation());
  6579. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6580. if (denotation_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  6581. denotation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6582. }
  6583. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6584. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.TensorShapeProto.Dimension.denotation)
  6585. }
  6586. inline bool TensorShapeProto_Dimension::has_value() const {
  6587. return value_case() != VALUE_NOT_SET;
  6588. }
  6589. inline void TensorShapeProto_Dimension::clear_has_value() {
  6590. _oneof_case_[0] = VALUE_NOT_SET;
  6591. }
  6592. inline TensorShapeProto_Dimension::ValueCase TensorShapeProto_Dimension::value_case() const {
  6593. return TensorShapeProto_Dimension::ValueCase(_oneof_case_[0]);
  6594. }
  6595. // -------------------------------------------------------------------
  6596. // TensorShapeProto
  6597. // repeated .opencv_onnx.TensorShapeProto.Dimension dim = 1;
  6598. inline int TensorShapeProto::_internal_dim_size() const {
  6599. return dim_.size();
  6600. }
  6601. inline int TensorShapeProto::dim_size() const {
  6602. return _internal_dim_size();
  6603. }
  6604. inline void TensorShapeProto::clear_dim() {
  6605. dim_.Clear();
  6606. }
  6607. inline ::opencv_onnx::TensorShapeProto_Dimension* TensorShapeProto::mutable_dim(int index) {
  6608. // @@protoc_insertion_point(field_mutable:opencv_onnx.TensorShapeProto.dim)
  6609. return dim_.Mutable(index);
  6610. }
  6611. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorShapeProto_Dimension >*
  6612. TensorShapeProto::mutable_dim() {
  6613. // @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorShapeProto.dim)
  6614. return &dim_;
  6615. }
  6616. inline const ::opencv_onnx::TensorShapeProto_Dimension& TensorShapeProto::_internal_dim(int index) const {
  6617. return dim_.Get(index);
  6618. }
  6619. inline const ::opencv_onnx::TensorShapeProto_Dimension& TensorShapeProto::dim(int index) const {
  6620. // @@protoc_insertion_point(field_get:opencv_onnx.TensorShapeProto.dim)
  6621. return _internal_dim(index);
  6622. }
  6623. inline ::opencv_onnx::TensorShapeProto_Dimension* TensorShapeProto::_internal_add_dim() {
  6624. return dim_.Add();
  6625. }
  6626. inline ::opencv_onnx::TensorShapeProto_Dimension* TensorShapeProto::add_dim() {
  6627. ::opencv_onnx::TensorShapeProto_Dimension* _add = _internal_add_dim();
  6628. // @@protoc_insertion_point(field_add:opencv_onnx.TensorShapeProto.dim)
  6629. return _add;
  6630. }
  6631. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorShapeProto_Dimension >&
  6632. TensorShapeProto::dim() const {
  6633. // @@protoc_insertion_point(field_list:opencv_onnx.TensorShapeProto.dim)
  6634. return dim_;
  6635. }
  6636. // -------------------------------------------------------------------
  6637. // TypeProto_Tensor
  6638. // optional .opencv_onnx.TensorProto.DataType elem_type = 1;
  6639. inline bool TypeProto_Tensor::_internal_has_elem_type() const {
  6640. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  6641. return value;
  6642. }
  6643. inline bool TypeProto_Tensor::has_elem_type() const {
  6644. return _internal_has_elem_type();
  6645. }
  6646. inline void TypeProto_Tensor::clear_elem_type() {
  6647. elem_type_ = 0;
  6648. _has_bits_[0] &= ~0x00000002u;
  6649. }
  6650. inline ::opencv_onnx::TensorProto_DataType TypeProto_Tensor::_internal_elem_type() const {
  6651. return static_cast< ::opencv_onnx::TensorProto_DataType >(elem_type_);
  6652. }
  6653. inline ::opencv_onnx::TensorProto_DataType TypeProto_Tensor::elem_type() const {
  6654. // @@protoc_insertion_point(field_get:opencv_onnx.TypeProto.Tensor.elem_type)
  6655. return _internal_elem_type();
  6656. }
  6657. inline void TypeProto_Tensor::_internal_set_elem_type(::opencv_onnx::TensorProto_DataType value) {
  6658. assert(::opencv_onnx::TensorProto_DataType_IsValid(value));
  6659. _has_bits_[0] |= 0x00000002u;
  6660. elem_type_ = value;
  6661. }
  6662. inline void TypeProto_Tensor::set_elem_type(::opencv_onnx::TensorProto_DataType value) {
  6663. _internal_set_elem_type(value);
  6664. // @@protoc_insertion_point(field_set:opencv_onnx.TypeProto.Tensor.elem_type)
  6665. }
  6666. // optional .opencv_onnx.TensorShapeProto shape = 2;
  6667. inline bool TypeProto_Tensor::_internal_has_shape() const {
  6668. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  6669. PROTOBUF_ASSUME(!value || shape_ != nullptr);
  6670. return value;
  6671. }
  6672. inline bool TypeProto_Tensor::has_shape() const {
  6673. return _internal_has_shape();
  6674. }
  6675. inline void TypeProto_Tensor::clear_shape() {
  6676. if (shape_ != nullptr) shape_->Clear();
  6677. _has_bits_[0] &= ~0x00000001u;
  6678. }
  6679. inline const ::opencv_onnx::TensorShapeProto& TypeProto_Tensor::_internal_shape() const {
  6680. const ::opencv_onnx::TensorShapeProto* p = shape_;
  6681. return p != nullptr ? *p : reinterpret_cast<const ::opencv_onnx::TensorShapeProto&>(
  6682. ::opencv_onnx::_TensorShapeProto_default_instance_);
  6683. }
  6684. inline const ::opencv_onnx::TensorShapeProto& TypeProto_Tensor::shape() const {
  6685. // @@protoc_insertion_point(field_get:opencv_onnx.TypeProto.Tensor.shape)
  6686. return _internal_shape();
  6687. }
  6688. inline void TypeProto_Tensor::unsafe_arena_set_allocated_shape(
  6689. ::opencv_onnx::TensorShapeProto* shape) {
  6690. if (GetArenaForAllocation() == nullptr) {
  6691. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape_);
  6692. }
  6693. shape_ = shape;
  6694. if (shape) {
  6695. _has_bits_[0] |= 0x00000001u;
  6696. } else {
  6697. _has_bits_[0] &= ~0x00000001u;
  6698. }
  6699. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_onnx.TypeProto.Tensor.shape)
  6700. }
  6701. inline ::opencv_onnx::TensorShapeProto* TypeProto_Tensor::release_shape() {
  6702. _has_bits_[0] &= ~0x00000001u;
  6703. ::opencv_onnx::TensorShapeProto* temp = shape_;
  6704. shape_ = nullptr;
  6705. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  6706. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  6707. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  6708. if (GetArenaForAllocation() == nullptr) { delete old; }
  6709. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  6710. if (GetArenaForAllocation() != nullptr) {
  6711. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  6712. }
  6713. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  6714. return temp;
  6715. }
  6716. inline ::opencv_onnx::TensorShapeProto* TypeProto_Tensor::unsafe_arena_release_shape() {
  6717. // @@protoc_insertion_point(field_release:opencv_onnx.TypeProto.Tensor.shape)
  6718. _has_bits_[0] &= ~0x00000001u;
  6719. ::opencv_onnx::TensorShapeProto* temp = shape_;
  6720. shape_ = nullptr;
  6721. return temp;
  6722. }
  6723. inline ::opencv_onnx::TensorShapeProto* TypeProto_Tensor::_internal_mutable_shape() {
  6724. _has_bits_[0] |= 0x00000001u;
  6725. if (shape_ == nullptr) {
  6726. auto* p = CreateMaybeMessage<::opencv_onnx::TensorShapeProto>(GetArenaForAllocation());
  6727. shape_ = p;
  6728. }
  6729. return shape_;
  6730. }
  6731. inline ::opencv_onnx::TensorShapeProto* TypeProto_Tensor::mutable_shape() {
  6732. ::opencv_onnx::TensorShapeProto* _msg = _internal_mutable_shape();
  6733. // @@protoc_insertion_point(field_mutable:opencv_onnx.TypeProto.Tensor.shape)
  6734. return _msg;
  6735. }
  6736. inline void TypeProto_Tensor::set_allocated_shape(::opencv_onnx::TensorShapeProto* shape) {
  6737. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  6738. if (message_arena == nullptr) {
  6739. delete shape_;
  6740. }
  6741. if (shape) {
  6742. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  6743. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opencv_onnx::TensorShapeProto>::GetOwningArena(shape);
  6744. if (message_arena != submessage_arena) {
  6745. shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  6746. message_arena, shape, submessage_arena);
  6747. }
  6748. _has_bits_[0] |= 0x00000001u;
  6749. } else {
  6750. _has_bits_[0] &= ~0x00000001u;
  6751. }
  6752. shape_ = shape;
  6753. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.TypeProto.Tensor.shape)
  6754. }
  6755. // -------------------------------------------------------------------
  6756. // TypeProto
  6757. // .opencv_onnx.TypeProto.Tensor tensor_type = 1;
  6758. inline bool TypeProto::_internal_has_tensor_type() const {
  6759. return value_case() == kTensorType;
  6760. }
  6761. inline bool TypeProto::has_tensor_type() const {
  6762. return _internal_has_tensor_type();
  6763. }
  6764. inline void TypeProto::set_has_tensor_type() {
  6765. _oneof_case_[0] = kTensorType;
  6766. }
  6767. inline void TypeProto::clear_tensor_type() {
  6768. if (_internal_has_tensor_type()) {
  6769. if (GetArenaForAllocation() == nullptr) {
  6770. delete value_.tensor_type_;
  6771. }
  6772. clear_has_value();
  6773. }
  6774. }
  6775. inline ::opencv_onnx::TypeProto_Tensor* TypeProto::release_tensor_type() {
  6776. // @@protoc_insertion_point(field_release:opencv_onnx.TypeProto.tensor_type)
  6777. if (_internal_has_tensor_type()) {
  6778. clear_has_value();
  6779. ::opencv_onnx::TypeProto_Tensor* temp = value_.tensor_type_;
  6780. if (GetArenaForAllocation() != nullptr) {
  6781. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  6782. }
  6783. value_.tensor_type_ = nullptr;
  6784. return temp;
  6785. } else {
  6786. return nullptr;
  6787. }
  6788. }
  6789. inline const ::opencv_onnx::TypeProto_Tensor& TypeProto::_internal_tensor_type() const {
  6790. return _internal_has_tensor_type()
  6791. ? *value_.tensor_type_
  6792. : reinterpret_cast< ::opencv_onnx::TypeProto_Tensor&>(::opencv_onnx::_TypeProto_Tensor_default_instance_);
  6793. }
  6794. inline const ::opencv_onnx::TypeProto_Tensor& TypeProto::tensor_type() const {
  6795. // @@protoc_insertion_point(field_get:opencv_onnx.TypeProto.tensor_type)
  6796. return _internal_tensor_type();
  6797. }
  6798. inline ::opencv_onnx::TypeProto_Tensor* TypeProto::unsafe_arena_release_tensor_type() {
  6799. // @@protoc_insertion_point(field_unsafe_arena_release:opencv_onnx.TypeProto.tensor_type)
  6800. if (_internal_has_tensor_type()) {
  6801. clear_has_value();
  6802. ::opencv_onnx::TypeProto_Tensor* temp = value_.tensor_type_;
  6803. value_.tensor_type_ = nullptr;
  6804. return temp;
  6805. } else {
  6806. return nullptr;
  6807. }
  6808. }
  6809. inline void TypeProto::unsafe_arena_set_allocated_tensor_type(::opencv_onnx::TypeProto_Tensor* tensor_type) {
  6810. clear_value();
  6811. if (tensor_type) {
  6812. set_has_tensor_type();
  6813. value_.tensor_type_ = tensor_type;
  6814. }
  6815. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_onnx.TypeProto.tensor_type)
  6816. }
  6817. inline ::opencv_onnx::TypeProto_Tensor* TypeProto::_internal_mutable_tensor_type() {
  6818. if (!_internal_has_tensor_type()) {
  6819. clear_value();
  6820. set_has_tensor_type();
  6821. value_.tensor_type_ = CreateMaybeMessage< ::opencv_onnx::TypeProto_Tensor >(GetArenaForAllocation());
  6822. }
  6823. return value_.tensor_type_;
  6824. }
  6825. inline ::opencv_onnx::TypeProto_Tensor* TypeProto::mutable_tensor_type() {
  6826. ::opencv_onnx::TypeProto_Tensor* _msg = _internal_mutable_tensor_type();
  6827. // @@protoc_insertion_point(field_mutable:opencv_onnx.TypeProto.tensor_type)
  6828. return _msg;
  6829. }
  6830. // optional string denotation = 6;
  6831. inline bool TypeProto::_internal_has_denotation() const {
  6832. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  6833. return value;
  6834. }
  6835. inline bool TypeProto::has_denotation() const {
  6836. return _internal_has_denotation();
  6837. }
  6838. inline void TypeProto::clear_denotation() {
  6839. denotation_.ClearToEmpty();
  6840. _has_bits_[0] &= ~0x00000001u;
  6841. }
  6842. inline const std::string& TypeProto::denotation() const {
  6843. // @@protoc_insertion_point(field_get:opencv_onnx.TypeProto.denotation)
  6844. return _internal_denotation();
  6845. }
  6846. template <typename ArgT0, typename... ArgT>
  6847. inline PROTOBUF_ALWAYS_INLINE
  6848. void TypeProto::set_denotation(ArgT0&& arg0, ArgT... args) {
  6849. _has_bits_[0] |= 0x00000001u;
  6850. denotation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  6851. // @@protoc_insertion_point(field_set:opencv_onnx.TypeProto.denotation)
  6852. }
  6853. inline std::string* TypeProto::mutable_denotation() {
  6854. std::string* _s = _internal_mutable_denotation();
  6855. // @@protoc_insertion_point(field_mutable:opencv_onnx.TypeProto.denotation)
  6856. return _s;
  6857. }
  6858. inline const std::string& TypeProto::_internal_denotation() const {
  6859. return denotation_.Get();
  6860. }
  6861. inline void TypeProto::_internal_set_denotation(const std::string& value) {
  6862. _has_bits_[0] |= 0x00000001u;
  6863. denotation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  6864. }
  6865. inline std::string* TypeProto::_internal_mutable_denotation() {
  6866. _has_bits_[0] |= 0x00000001u;
  6867. return denotation_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  6868. }
  6869. inline std::string* TypeProto::release_denotation() {
  6870. // @@protoc_insertion_point(field_release:opencv_onnx.TypeProto.denotation)
  6871. if (!_internal_has_denotation()) {
  6872. return nullptr;
  6873. }
  6874. _has_bits_[0] &= ~0x00000001u;
  6875. auto* p = denotation_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  6876. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6877. if (denotation_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  6878. denotation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6879. }
  6880. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6881. return p;
  6882. }
  6883. inline void TypeProto::set_allocated_denotation(std::string* denotation) {
  6884. if (denotation != nullptr) {
  6885. _has_bits_[0] |= 0x00000001u;
  6886. } else {
  6887. _has_bits_[0] &= ~0x00000001u;
  6888. }
  6889. denotation_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), denotation,
  6890. GetArenaForAllocation());
  6891. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6892. if (denotation_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  6893. denotation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6894. }
  6895. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6896. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.TypeProto.denotation)
  6897. }
  6898. inline bool TypeProto::has_value() const {
  6899. return value_case() != VALUE_NOT_SET;
  6900. }
  6901. inline void TypeProto::clear_has_value() {
  6902. _oneof_case_[0] = VALUE_NOT_SET;
  6903. }
  6904. inline TypeProto::ValueCase TypeProto::value_case() const {
  6905. return TypeProto::ValueCase(_oneof_case_[0]);
  6906. }
  6907. // -------------------------------------------------------------------
  6908. // OperatorSetIdProto
  6909. // optional string domain = 1;
  6910. inline bool OperatorSetIdProto::_internal_has_domain() const {
  6911. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  6912. return value;
  6913. }
  6914. inline bool OperatorSetIdProto::has_domain() const {
  6915. return _internal_has_domain();
  6916. }
  6917. inline void OperatorSetIdProto::clear_domain() {
  6918. domain_.ClearToEmpty();
  6919. _has_bits_[0] &= ~0x00000001u;
  6920. }
  6921. inline const std::string& OperatorSetIdProto::domain() const {
  6922. // @@protoc_insertion_point(field_get:opencv_onnx.OperatorSetIdProto.domain)
  6923. return _internal_domain();
  6924. }
  6925. template <typename ArgT0, typename... ArgT>
  6926. inline PROTOBUF_ALWAYS_INLINE
  6927. void OperatorSetIdProto::set_domain(ArgT0&& arg0, ArgT... args) {
  6928. _has_bits_[0] |= 0x00000001u;
  6929. domain_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  6930. // @@protoc_insertion_point(field_set:opencv_onnx.OperatorSetIdProto.domain)
  6931. }
  6932. inline std::string* OperatorSetIdProto::mutable_domain() {
  6933. std::string* _s = _internal_mutable_domain();
  6934. // @@protoc_insertion_point(field_mutable:opencv_onnx.OperatorSetIdProto.domain)
  6935. return _s;
  6936. }
  6937. inline const std::string& OperatorSetIdProto::_internal_domain() const {
  6938. return domain_.Get();
  6939. }
  6940. inline void OperatorSetIdProto::_internal_set_domain(const std::string& value) {
  6941. _has_bits_[0] |= 0x00000001u;
  6942. domain_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  6943. }
  6944. inline std::string* OperatorSetIdProto::_internal_mutable_domain() {
  6945. _has_bits_[0] |= 0x00000001u;
  6946. return domain_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  6947. }
  6948. inline std::string* OperatorSetIdProto::release_domain() {
  6949. // @@protoc_insertion_point(field_release:opencv_onnx.OperatorSetIdProto.domain)
  6950. if (!_internal_has_domain()) {
  6951. return nullptr;
  6952. }
  6953. _has_bits_[0] &= ~0x00000001u;
  6954. auto* p = domain_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  6955. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6956. if (domain_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  6957. domain_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6958. }
  6959. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6960. return p;
  6961. }
  6962. inline void OperatorSetIdProto::set_allocated_domain(std::string* domain) {
  6963. if (domain != nullptr) {
  6964. _has_bits_[0] |= 0x00000001u;
  6965. } else {
  6966. _has_bits_[0] &= ~0x00000001u;
  6967. }
  6968. domain_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), domain,
  6969. GetArenaForAllocation());
  6970. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6971. if (domain_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  6972. domain_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  6973. }
  6974. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  6975. // @@protoc_insertion_point(field_set_allocated:opencv_onnx.OperatorSetIdProto.domain)
  6976. }
  6977. // optional int64 version = 2;
  6978. inline bool OperatorSetIdProto::_internal_has_version() const {
  6979. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  6980. return value;
  6981. }
  6982. inline bool OperatorSetIdProto::has_version() const {
  6983. return _internal_has_version();
  6984. }
  6985. inline void OperatorSetIdProto::clear_version() {
  6986. version_ = int64_t{0};
  6987. _has_bits_[0] &= ~0x00000002u;
  6988. }
  6989. inline int64_t OperatorSetIdProto::_internal_version() const {
  6990. return version_;
  6991. }
  6992. inline int64_t OperatorSetIdProto::version() const {
  6993. // @@protoc_insertion_point(field_get:opencv_onnx.OperatorSetIdProto.version)
  6994. return _internal_version();
  6995. }
  6996. inline void OperatorSetIdProto::_internal_set_version(int64_t value) {
  6997. _has_bits_[0] |= 0x00000002u;
  6998. version_ = value;
  6999. }
  7000. inline void OperatorSetIdProto::set_version(int64_t value) {
  7001. _internal_set_version(value);
  7002. // @@protoc_insertion_point(field_set:opencv_onnx.OperatorSetIdProto.version)
  7003. }
  7004. #ifdef __GNUC__
  7005. #pragma GCC diagnostic pop
  7006. #endif // __GNUC__
  7007. // -------------------------------------------------------------------
  7008. // -------------------------------------------------------------------
  7009. // -------------------------------------------------------------------
  7010. // -------------------------------------------------------------------
  7011. // -------------------------------------------------------------------
  7012. // -------------------------------------------------------------------
  7013. // -------------------------------------------------------------------
  7014. // -------------------------------------------------------------------
  7015. // -------------------------------------------------------------------
  7016. // -------------------------------------------------------------------
  7017. // -------------------------------------------------------------------
  7018. // -------------------------------------------------------------------
  7019. // @@protoc_insertion_point(namespace_scope)
  7020. } // namespace opencv_onnx
  7021. PROTOBUF_NAMESPACE_OPEN
  7022. template <> struct is_proto_enum< ::opencv_onnx::AttributeProto_AttributeType> : ::std::true_type {};
  7023. template <>
  7024. inline const EnumDescriptor* GetEnumDescriptor< ::opencv_onnx::AttributeProto_AttributeType>() {
  7025. return ::opencv_onnx::AttributeProto_AttributeType_descriptor();
  7026. }
  7027. template <> struct is_proto_enum< ::opencv_onnx::TensorProto_DataType> : ::std::true_type {};
  7028. template <>
  7029. inline const EnumDescriptor* GetEnumDescriptor< ::opencv_onnx::TensorProto_DataType>() {
  7030. return ::opencv_onnx::TensorProto_DataType_descriptor();
  7031. }
  7032. template <> struct is_proto_enum< ::opencv_onnx::Version> : ::std::true_type {};
  7033. template <>
  7034. inline const EnumDescriptor* GetEnumDescriptor< ::opencv_onnx::Version>() {
  7035. return ::opencv_onnx::Version_descriptor();
  7036. }
  7037. PROTOBUF_NAMESPACE_CLOSE
  7038. // @@protoc_insertion_point(global_scope)
  7039. #include <google/protobuf/port_undef.inc>
  7040. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_opencv_2donnx_2eproto