| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/protobuf/util/internal/testdata/struct.proto
- #include <google/protobuf/util/internal/testdata/struct.pb.h>
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace protobuf_google_2fprotobuf_2fstruct_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue;
- } // namespace protobuf_google_2fprotobuf_2fstruct_2eproto
- namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ListValueWrapper;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MapOfStruct_ListvalueMapEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MapOfStruct_StructMapEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MapOfStruct_ValueMapEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_RepeatedListValueWrapper;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_RepeatedValueWrapper;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StructWrapper;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ValueWrapper;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_MapOfStruct;
- } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto
- namespace google {
- namespace protobuf {
- namespace testing {
- class StructTestCasesDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<StructTestCases>
- _instance;
- } _StructTestCases_default_instance_;
- class StructWrapperDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<StructWrapper>
- _instance;
- } _StructWrapper_default_instance_;
- class ValueWrapperDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<ValueWrapper>
- _instance;
- } _ValueWrapper_default_instance_;
- class RepeatedValueWrapperDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<RepeatedValueWrapper>
- _instance;
- } _RepeatedValueWrapper_default_instance_;
- class ListValueWrapperDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<ListValueWrapper>
- _instance;
- } _ListValueWrapper_default_instance_;
- class RepeatedListValueWrapperDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<RepeatedListValueWrapper>
- _instance;
- } _RepeatedListValueWrapper_default_instance_;
- class MapOfStruct_StructMapEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MapOfStruct_StructMapEntry_DoNotUse>
- _instance;
- } _MapOfStruct_StructMapEntry_DoNotUse_default_instance_;
- class MapOfStruct_ValueMapEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MapOfStruct_ValueMapEntry_DoNotUse>
- _instance;
- } _MapOfStruct_ValueMapEntry_DoNotUse_default_instance_;
- class MapOfStruct_ListvalueMapEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MapOfStruct_ListvalueMapEntry_DoNotUse>
- _instance;
- } _MapOfStruct_ListvalueMapEntry_DoNotUse_default_instance_;
- class MapOfStructDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MapOfStruct>
- _instance;
- } _MapOfStruct_default_instance_;
- class DummyDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Dummy>
- _instance;
- } _Dummy_default_instance_;
- class StructTypeDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<StructType>
- _instance;
- } _StructType_default_instance_;
- } // namespace testing
- } // namespace protobuf
- } // namespace google
- namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto {
- static void InitDefaultsStructTestCases() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_StructTestCases_default_instance_;
- new (ptr) ::google::protobuf::testing::StructTestCases();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::StructTestCases::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<7> scc_info_StructTestCases =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 7, InitDefaultsStructTestCases}, {
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_StructWrapper.base,
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_ValueWrapper.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_ListValueWrapper.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_RepeatedValueWrapper.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_RepeatedListValueWrapper.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_MapOfStruct.base,}};
- static void InitDefaultsStructWrapper() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_StructWrapper_default_instance_;
- new (ptr) ::google::protobuf::testing::StructWrapper();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::StructWrapper::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_StructWrapper =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStructWrapper}, {
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,}};
- static void InitDefaultsValueWrapper() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_ValueWrapper_default_instance_;
- new (ptr) ::google::protobuf::testing::ValueWrapper();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::ValueWrapper::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_ValueWrapper =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsValueWrapper}, {
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,}};
- static void InitDefaultsRepeatedValueWrapper() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_RepeatedValueWrapper_default_instance_;
- new (ptr) ::google::protobuf::testing::RepeatedValueWrapper();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::RepeatedValueWrapper::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_RepeatedValueWrapper =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRepeatedValueWrapper}, {
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,}};
- static void InitDefaultsListValueWrapper() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_ListValueWrapper_default_instance_;
- new (ptr) ::google::protobuf::testing::ListValueWrapper();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::ListValueWrapper::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_ListValueWrapper =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListValueWrapper}, {
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,}};
- static void InitDefaultsRepeatedListValueWrapper() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_RepeatedListValueWrapper_default_instance_;
- new (ptr) ::google::protobuf::testing::RepeatedListValueWrapper();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::RepeatedListValueWrapper::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_RepeatedListValueWrapper =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRepeatedListValueWrapper}, {
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,}};
- static void InitDefaultsMapOfStruct_StructMapEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_MapOfStruct_StructMapEntry_DoNotUse_default_instance_;
- new (ptr) ::google::protobuf::testing::MapOfStruct_StructMapEntry_DoNotUse();
- }
- ::google::protobuf::testing::MapOfStruct_StructMapEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_MapOfStruct_StructMapEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMapOfStruct_StructMapEntry_DoNotUse}, {
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,}};
- static void InitDefaultsMapOfStruct_ValueMapEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_MapOfStruct_ValueMapEntry_DoNotUse_default_instance_;
- new (ptr) ::google::protobuf::testing::MapOfStruct_ValueMapEntry_DoNotUse();
- }
- ::google::protobuf::testing::MapOfStruct_ValueMapEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_MapOfStruct_ValueMapEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMapOfStruct_ValueMapEntry_DoNotUse}, {
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,}};
- static void InitDefaultsMapOfStruct_ListvalueMapEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_MapOfStruct_ListvalueMapEntry_DoNotUse_default_instance_;
- new (ptr) ::google::protobuf::testing::MapOfStruct_ListvalueMapEntry_DoNotUse();
- }
- ::google::protobuf::testing::MapOfStruct_ListvalueMapEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_MapOfStruct_ListvalueMapEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMapOfStruct_ListvalueMapEntry_DoNotUse}, {
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,}};
- static void InitDefaultsMapOfStruct() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_MapOfStruct_default_instance_;
- new (ptr) ::google::protobuf::testing::MapOfStruct();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::MapOfStruct::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<3> scc_info_MapOfStruct =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsMapOfStruct}, {
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_MapOfStruct_StructMapEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_MapOfStruct_ValueMapEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_MapOfStruct_ListvalueMapEntry_DoNotUse.base,}};
- static void InitDefaultsDummy() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_Dummy_default_instance_;
- new (ptr) ::google::protobuf::testing::Dummy();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::Dummy::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_Dummy =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDummy}, {}};
- static void InitDefaultsStructType() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_StructType_default_instance_;
- new (ptr) ::google::protobuf::testing::StructType();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::StructType::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_StructType =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStructType}, {
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,}};
- void InitDefaults() {
- ::google::protobuf::internal::InitSCC(&scc_info_StructTestCases.base);
- ::google::protobuf::internal::InitSCC(&scc_info_StructWrapper.base);
- ::google::protobuf::internal::InitSCC(&scc_info_ValueWrapper.base);
- ::google::protobuf::internal::InitSCC(&scc_info_RepeatedValueWrapper.base);
- ::google::protobuf::internal::InitSCC(&scc_info_ListValueWrapper.base);
- ::google::protobuf::internal::InitSCC(&scc_info_RepeatedListValueWrapper.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MapOfStruct_StructMapEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MapOfStruct_ValueMapEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MapOfStruct_ListvalueMapEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MapOfStruct.base);
- ::google::protobuf::internal::InitSCC(&scc_info_Dummy.base);
- ::google::protobuf::internal::InitSCC(&scc_info_StructType.base);
- }
- ::google::protobuf::Metadata file_level_metadata[12];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, empty_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, empty_value2_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, null_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, simple_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, longer_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, struct_with_nested_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, struct_with_nested_list_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, struct_with_list_of_nulls_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, struct_with_list_of_lists_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, struct_with_list_of_structs_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, struct_with_empty_list_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, struct_with_list_with_empty_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, top_level_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, top_level_struct_with_empty_list_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, top_level_struct_with_list_with_empty_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, value_wrapper_simple_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, value_wrapper_with_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, value_wrapper_with_list_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, value_wrapper_with_empty_list_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, value_wrapper_with_list_with_empty_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, list_value_wrapper_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, list_value_wrapper_with_empty_list_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, list_value_wrapper_with_list_with_empty_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, top_level_value_simple_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, top_level_value_with_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, top_level_value_with_list_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, top_level_value_with_empty_list_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, top_level_value_with_list_with_empty_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, top_level_listvalue_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, top_level_empty_listvalue_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, top_level_listvalue_with_empty_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, repeated_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, repeated_value_nested_list_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, repeated_value_nested_list2_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, repeated_value_nested_list3_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, repeated_listvalue_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, map_of_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, map_of_struct_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructTestCases, map_of_listvalue_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructWrapper, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructWrapper, struct__),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::ValueWrapper, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::ValueWrapper, value_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::RepeatedValueWrapper, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::RepeatedValueWrapper, values_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::ListValueWrapper, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::ListValueWrapper, shopping_list_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::RepeatedListValueWrapper, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::RepeatedListValueWrapper, dimensions_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct_StructMapEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct_StructMapEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct_StructMapEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct_StructMapEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct_ValueMapEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct_ValueMapEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct_ValueMapEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct_ValueMapEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct_ListvalueMapEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct_ListvalueMapEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct_ListvalueMapEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct_ListvalueMapEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct, struct_map_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct, value_map_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MapOfStruct, listvalue_map_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::Dummy, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::Dummy, text_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructType, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructType, object_),
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, sizeof(::google::protobuf::testing::StructTestCases)},
- { 44, -1, sizeof(::google::protobuf::testing::StructWrapper)},
- { 50, -1, sizeof(::google::protobuf::testing::ValueWrapper)},
- { 56, -1, sizeof(::google::protobuf::testing::RepeatedValueWrapper)},
- { 62, -1, sizeof(::google::protobuf::testing::ListValueWrapper)},
- { 68, -1, sizeof(::google::protobuf::testing::RepeatedListValueWrapper)},
- { 74, 81, sizeof(::google::protobuf::testing::MapOfStruct_StructMapEntry_DoNotUse)},
- { 83, 90, sizeof(::google::protobuf::testing::MapOfStruct_ValueMapEntry_DoNotUse)},
- { 92, 99, sizeof(::google::protobuf::testing::MapOfStruct_ListvalueMapEntry_DoNotUse)},
- { 101, -1, sizeof(::google::protobuf::testing::MapOfStruct)},
- { 109, -1, sizeof(::google::protobuf::testing::Dummy)},
- { 115, -1, sizeof(::google::protobuf::testing::StructType)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_StructTestCases_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_StructWrapper_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_ValueWrapper_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_RepeatedValueWrapper_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_ListValueWrapper_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_RepeatedListValueWrapper_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_MapOfStruct_StructMapEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_MapOfStruct_ValueMapEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_MapOfStruct_ListvalueMapEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_MapOfStruct_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_Dummy_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_StructType_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- AssignDescriptors(
- "google/protobuf/util/internal/testdata/struct.proto", schemas, file_default_instances, TableStruct::offsets,
- file_level_metadata, NULL, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 12);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n3google/protobuf/util/internal/testdata"
- "/struct.proto\022\027google.protobuf.testing\032\034"
- "google/protobuf/struct.proto\"\360\025\n\017StructT"
- "estCases\022;\n\013empty_value\030\001 \001(\0132&.google.p"
- "rotobuf.testing.StructWrapper\022<\n\014empty_v"
- "alue2\030\002 \001(\0132&.google.protobuf.testing.St"
- "ructWrapper\022:\n\nnull_value\030\003 \001(\0132&.google"
- ".protobuf.testing.StructWrapper\022=\n\rsimpl"
- "e_struct\030\004 \001(\0132&.google.protobuf.testing"
- ".StructWrapper\022=\n\rlonger_struct\030\005 \001(\0132&."
- "google.protobuf.testing.StructWrapper\022I\n"
- "\031struct_with_nested_struct\030\006 \001(\0132&.googl"
- "e.protobuf.testing.StructWrapper\022G\n\027stru"
- "ct_with_nested_list\030\007 \001(\0132&.google.proto"
- "buf.testing.StructWrapper\022I\n\031struct_with"
- "_list_of_nulls\030\010 \001(\0132&.google.protobuf.t"
- "esting.StructWrapper\022I\n\031struct_with_list"
- "_of_lists\030\t \001(\0132&.google.protobuf.testin"
- "g.StructWrapper\022K\n\033struct_with_list_of_s"
- "tructs\030\n \001(\0132&.google.protobuf.testing.S"
- "tructWrapper\022F\n\026struct_with_empty_list\030\013"
- " \001(\0132&.google.protobuf.testing.StructWra"
- "pper\022R\n\"struct_with_list_with_empty_stru"
- "ct\030\014 \001(\0132&.google.protobuf.testing.Struc"
- "tWrapper\0221\n\020top_level_struct\030\r \001(\0132\027.goo"
- "gle.protobuf.Struct\022A\n top_level_struct_"
- "with_empty_list\030\016 \001(\0132\027.google.protobuf."
- "Struct\022M\n,top_level_struct_with_list_wit"
- "h_empty_struct\030\017 \001(\0132\027.google.protobuf.S"
- "truct\022C\n\024value_wrapper_simple\030\020 \001(\0132%.go"
- "ogle.protobuf.testing.ValueWrapper\022H\n\031va"
- "lue_wrapper_with_struct\030\021 \001(\0132%.google.p"
- "rotobuf.testing.ValueWrapper\022F\n\027value_wr"
- "apper_with_list\030\022 \001(\0132%.google.protobuf."
- "testing.ValueWrapper\022L\n\035value_wrapper_wi"
- "th_empty_list\030\023 \001(\0132%.google.protobuf.te"
- "sting.ValueWrapper\022X\n)value_wrapper_with"
- "_list_with_empty_struct\030\024 \001(\0132%.google.p"
- "rotobuf.testing.ValueWrapper\022E\n\022list_val"
- "ue_wrapper\030\025 \001(\0132).google.protobuf.testi"
- "ng.ListValueWrapper\022U\n\"list_value_wrappe"
- "r_with_empty_list\030\026 \001(\0132).google.protobu"
- "f.testing.ListValueWrapper\022a\n.list_value"
- "_wrapper_with_list_with_empty_struct\030\027 \001"
- "(\0132).google.protobuf.testing.ListValueWr"
- "apper\0226\n\026top_level_value_simple\030\030 \001(\0132\026."
- "google.protobuf.Value\022;\n\033top_level_value"
- "_with_struct\030\031 \001(\0132\026.google.protobuf.Val"
- "ue\0229\n\031top_level_value_with_list\030\032 \001(\0132\026."
- "google.protobuf.Value\022\?\n\037top_level_value"
- "_with_empty_list\030\033 \001(\0132\026.google.protobuf"
- ".Value\022K\n+top_level_value_with_list_with"
- "_empty_struct\030\034 \001(\0132\026.google.protobuf.Va"
- "lue\0227\n\023top_level_listvalue\030\035 \001(\0132\032.googl"
- "e.protobuf.ListValue\022=\n\031top_level_empty_"
- "listvalue\030\036 \001(\0132\032.google.protobuf.ListVa"
- "lue\022I\n%top_level_listvalue_with_empty_st"
- "ruct\030\037 \001(\0132\032.google.protobuf.ListValue\022E"
- "\n\016repeated_value\030 \001(\0132-.google.protobuf"
- ".testing.RepeatedValueWrapper\022Q\n\032repeate"
- "d_value_nested_list\030! \001(\0132-.google.proto"
- "buf.testing.RepeatedValueWrapper\022R\n\033repe"
- "ated_value_nested_list2\030\" \001(\0132-.google.p"
- "rotobuf.testing.RepeatedValueWrapper\022R\n\033"
- "repeated_value_nested_list3\030# \001(\0132-.goog"
- "le.protobuf.testing.RepeatedValueWrapper"
- "\022M\n\022repeated_listvalue\030$ \001(\01321.google.pr"
- "otobuf.testing.RepeatedListValueWrapper\022"
- ";\n\rmap_of_struct\030% \001(\0132$.google.protobuf"
- ".testing.MapOfStruct\022A\n\023map_of_struct_va"
- "lue\030& \001(\0132$.google.protobuf.testing.MapO"
- "fStruct\022>\n\020map_of_listvalue\030\' \001(\0132$.goog"
- "le.protobuf.testing.MapOfStruct\"8\n\rStruc"
- "tWrapper\022\'\n\006struct\030\001 \001(\0132\027.google.protob"
- "uf.Struct\"5\n\014ValueWrapper\022%\n\005value\030\001 \001(\013"
- "2\026.google.protobuf.Value\">\n\024RepeatedValu"
- "eWrapper\022&\n\006values\030\001 \003(\0132\026.google.protob"
- "uf.Value\"E\n\020ListValueWrapper\0221\n\rshopping"
- "_list\030\001 \001(\0132\032.google.protobuf.ListValue\""
- "J\n\030RepeatedListValueWrapper\022.\n\ndimension"
- "s\030\001 \003(\0132\032.google.protobuf.ListValue\"\321\003\n\013"
- "MapOfStruct\022G\n\nstruct_map\030\001 \003(\01323.google"
- ".protobuf.testing.MapOfStruct.StructMapE"
- "ntry\022E\n\tvalue_map\030\002 \003(\01322.google.protobu"
- "f.testing.MapOfStruct.ValueMapEntry\022M\n\rl"
- "istvalue_map\030\003 \003(\01326.google.protobuf.tes"
- "ting.MapOfStruct.ListvalueMapEntry\032I\n\016St"
- "ructMapEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 \001(\013"
- "2\027.google.protobuf.Struct:\0028\001\032G\n\rValueMa"
- "pEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo"
- "gle.protobuf.Value:\0028\001\032O\n\021ListvalueMapEn"
- "try\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google"
- ".protobuf.ListValue:\0028\001\"\025\n\005Dummy\022\014\n\004text"
- "\030\001 \001(\t\"5\n\nStructType\022\'\n\006object\030\001 \001(\0132\027.g"
- "oogle.protobuf.Struct2e\n\021StructTestServi"
- "ce\022P\n\004Call\022\036.google.protobuf.testing.Dum"
- "my\032(.google.protobuf.testing.StructTestC"
- "asesb\006proto3"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 3892);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "google/protobuf/util/internal/testdata/struct.proto", &protobuf_RegisterTypes);
- ::protobuf_google_2fprotobuf_2fstruct_2eproto::AddDescriptors();
- }
- void AddDescriptors() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto
- namespace google {
- namespace protobuf {
- namespace testing {
- // ===================================================================
- void StructTestCases::InitAsDefaultInstance() {
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->empty_value_ = const_cast< ::google::protobuf::testing::StructWrapper*>(
- ::google::protobuf::testing::StructWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->empty_value2_ = const_cast< ::google::protobuf::testing::StructWrapper*>(
- ::google::protobuf::testing::StructWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->null_value_ = const_cast< ::google::protobuf::testing::StructWrapper*>(
- ::google::protobuf::testing::StructWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->simple_struct_ = const_cast< ::google::protobuf::testing::StructWrapper*>(
- ::google::protobuf::testing::StructWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->longer_struct_ = const_cast< ::google::protobuf::testing::StructWrapper*>(
- ::google::protobuf::testing::StructWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->struct_with_nested_struct_ = const_cast< ::google::protobuf::testing::StructWrapper*>(
- ::google::protobuf::testing::StructWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->struct_with_nested_list_ = const_cast< ::google::protobuf::testing::StructWrapper*>(
- ::google::protobuf::testing::StructWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->struct_with_list_of_nulls_ = const_cast< ::google::protobuf::testing::StructWrapper*>(
- ::google::protobuf::testing::StructWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->struct_with_list_of_lists_ = const_cast< ::google::protobuf::testing::StructWrapper*>(
- ::google::protobuf::testing::StructWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->struct_with_list_of_structs_ = const_cast< ::google::protobuf::testing::StructWrapper*>(
- ::google::protobuf::testing::StructWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->struct_with_empty_list_ = const_cast< ::google::protobuf::testing::StructWrapper*>(
- ::google::protobuf::testing::StructWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->struct_with_list_with_empty_struct_ = const_cast< ::google::protobuf::testing::StructWrapper*>(
- ::google::protobuf::testing::StructWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->top_level_struct_ = const_cast< ::google::protobuf::Struct*>(
- ::google::protobuf::Struct::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->top_level_struct_with_empty_list_ = const_cast< ::google::protobuf::Struct*>(
- ::google::protobuf::Struct::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->top_level_struct_with_list_with_empty_struct_ = const_cast< ::google::protobuf::Struct*>(
- ::google::protobuf::Struct::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->value_wrapper_simple_ = const_cast< ::google::protobuf::testing::ValueWrapper*>(
- ::google::protobuf::testing::ValueWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->value_wrapper_with_struct_ = const_cast< ::google::protobuf::testing::ValueWrapper*>(
- ::google::protobuf::testing::ValueWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->value_wrapper_with_list_ = const_cast< ::google::protobuf::testing::ValueWrapper*>(
- ::google::protobuf::testing::ValueWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->value_wrapper_with_empty_list_ = const_cast< ::google::protobuf::testing::ValueWrapper*>(
- ::google::protobuf::testing::ValueWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->value_wrapper_with_list_with_empty_struct_ = const_cast< ::google::protobuf::testing::ValueWrapper*>(
- ::google::protobuf::testing::ValueWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->list_value_wrapper_ = const_cast< ::google::protobuf::testing::ListValueWrapper*>(
- ::google::protobuf::testing::ListValueWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->list_value_wrapper_with_empty_list_ = const_cast< ::google::protobuf::testing::ListValueWrapper*>(
- ::google::protobuf::testing::ListValueWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->list_value_wrapper_with_list_with_empty_struct_ = const_cast< ::google::protobuf::testing::ListValueWrapper*>(
- ::google::protobuf::testing::ListValueWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->top_level_value_simple_ = const_cast< ::google::protobuf::Value*>(
- ::google::protobuf::Value::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->top_level_value_with_struct_ = const_cast< ::google::protobuf::Value*>(
- ::google::protobuf::Value::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->top_level_value_with_list_ = const_cast< ::google::protobuf::Value*>(
- ::google::protobuf::Value::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->top_level_value_with_empty_list_ = const_cast< ::google::protobuf::Value*>(
- ::google::protobuf::Value::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->top_level_value_with_list_with_empty_struct_ = const_cast< ::google::protobuf::Value*>(
- ::google::protobuf::Value::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->top_level_listvalue_ = const_cast< ::google::protobuf::ListValue*>(
- ::google::protobuf::ListValue::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->top_level_empty_listvalue_ = const_cast< ::google::protobuf::ListValue*>(
- ::google::protobuf::ListValue::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->top_level_listvalue_with_empty_struct_ = const_cast< ::google::protobuf::ListValue*>(
- ::google::protobuf::ListValue::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->repeated_value_ = const_cast< ::google::protobuf::testing::RepeatedValueWrapper*>(
- ::google::protobuf::testing::RepeatedValueWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->repeated_value_nested_list_ = const_cast< ::google::protobuf::testing::RepeatedValueWrapper*>(
- ::google::protobuf::testing::RepeatedValueWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->repeated_value_nested_list2_ = const_cast< ::google::protobuf::testing::RepeatedValueWrapper*>(
- ::google::protobuf::testing::RepeatedValueWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->repeated_value_nested_list3_ = const_cast< ::google::protobuf::testing::RepeatedValueWrapper*>(
- ::google::protobuf::testing::RepeatedValueWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->repeated_listvalue_ = const_cast< ::google::protobuf::testing::RepeatedListValueWrapper*>(
- ::google::protobuf::testing::RepeatedListValueWrapper::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->map_of_struct_ = const_cast< ::google::protobuf::testing::MapOfStruct*>(
- ::google::protobuf::testing::MapOfStruct::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->map_of_struct_value_ = const_cast< ::google::protobuf::testing::MapOfStruct*>(
- ::google::protobuf::testing::MapOfStruct::internal_default_instance());
- ::google::protobuf::testing::_StructTestCases_default_instance_._instance.get_mutable()->map_of_listvalue_ = const_cast< ::google::protobuf::testing::MapOfStruct*>(
- ::google::protobuf::testing::MapOfStruct::internal_default_instance());
- }
- void StructTestCases::clear_top_level_struct() {
- if (GetArenaNoVirtual() == NULL && top_level_struct_ != NULL) {
- delete top_level_struct_;
- }
- top_level_struct_ = NULL;
- }
- void StructTestCases::clear_top_level_struct_with_empty_list() {
- if (GetArenaNoVirtual() == NULL && top_level_struct_with_empty_list_ != NULL) {
- delete top_level_struct_with_empty_list_;
- }
- top_level_struct_with_empty_list_ = NULL;
- }
- void StructTestCases::clear_top_level_struct_with_list_with_empty_struct() {
- if (GetArenaNoVirtual() == NULL && top_level_struct_with_list_with_empty_struct_ != NULL) {
- delete top_level_struct_with_list_with_empty_struct_;
- }
- top_level_struct_with_list_with_empty_struct_ = NULL;
- }
- void StructTestCases::clear_top_level_value_simple() {
- if (GetArenaNoVirtual() == NULL && top_level_value_simple_ != NULL) {
- delete top_level_value_simple_;
- }
- top_level_value_simple_ = NULL;
- }
- void StructTestCases::clear_top_level_value_with_struct() {
- if (GetArenaNoVirtual() == NULL && top_level_value_with_struct_ != NULL) {
- delete top_level_value_with_struct_;
- }
- top_level_value_with_struct_ = NULL;
- }
- void StructTestCases::clear_top_level_value_with_list() {
- if (GetArenaNoVirtual() == NULL && top_level_value_with_list_ != NULL) {
- delete top_level_value_with_list_;
- }
- top_level_value_with_list_ = NULL;
- }
- void StructTestCases::clear_top_level_value_with_empty_list() {
- if (GetArenaNoVirtual() == NULL && top_level_value_with_empty_list_ != NULL) {
- delete top_level_value_with_empty_list_;
- }
- top_level_value_with_empty_list_ = NULL;
- }
- void StructTestCases::clear_top_level_value_with_list_with_empty_struct() {
- if (GetArenaNoVirtual() == NULL && top_level_value_with_list_with_empty_struct_ != NULL) {
- delete top_level_value_with_list_with_empty_struct_;
- }
- top_level_value_with_list_with_empty_struct_ = NULL;
- }
- void StructTestCases::clear_top_level_listvalue() {
- if (GetArenaNoVirtual() == NULL && top_level_listvalue_ != NULL) {
- delete top_level_listvalue_;
- }
- top_level_listvalue_ = NULL;
- }
- void StructTestCases::clear_top_level_empty_listvalue() {
- if (GetArenaNoVirtual() == NULL && top_level_empty_listvalue_ != NULL) {
- delete top_level_empty_listvalue_;
- }
- top_level_empty_listvalue_ = NULL;
- }
- void StructTestCases::clear_top_level_listvalue_with_empty_struct() {
- if (GetArenaNoVirtual() == NULL && top_level_listvalue_with_empty_struct_ != NULL) {
- delete top_level_listvalue_with_empty_struct_;
- }
- top_level_listvalue_with_empty_struct_ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int StructTestCases::kEmptyValueFieldNumber;
- const int StructTestCases::kEmptyValue2FieldNumber;
- const int StructTestCases::kNullValueFieldNumber;
- const int StructTestCases::kSimpleStructFieldNumber;
- const int StructTestCases::kLongerStructFieldNumber;
- const int StructTestCases::kStructWithNestedStructFieldNumber;
- const int StructTestCases::kStructWithNestedListFieldNumber;
- const int StructTestCases::kStructWithListOfNullsFieldNumber;
- const int StructTestCases::kStructWithListOfListsFieldNumber;
- const int StructTestCases::kStructWithListOfStructsFieldNumber;
- const int StructTestCases::kStructWithEmptyListFieldNumber;
- const int StructTestCases::kStructWithListWithEmptyStructFieldNumber;
- const int StructTestCases::kTopLevelStructFieldNumber;
- const int StructTestCases::kTopLevelStructWithEmptyListFieldNumber;
- const int StructTestCases::kTopLevelStructWithListWithEmptyStructFieldNumber;
- const int StructTestCases::kValueWrapperSimpleFieldNumber;
- const int StructTestCases::kValueWrapperWithStructFieldNumber;
- const int StructTestCases::kValueWrapperWithListFieldNumber;
- const int StructTestCases::kValueWrapperWithEmptyListFieldNumber;
- const int StructTestCases::kValueWrapperWithListWithEmptyStructFieldNumber;
- const int StructTestCases::kListValueWrapperFieldNumber;
- const int StructTestCases::kListValueWrapperWithEmptyListFieldNumber;
- const int StructTestCases::kListValueWrapperWithListWithEmptyStructFieldNumber;
- const int StructTestCases::kTopLevelValueSimpleFieldNumber;
- const int StructTestCases::kTopLevelValueWithStructFieldNumber;
- const int StructTestCases::kTopLevelValueWithListFieldNumber;
- const int StructTestCases::kTopLevelValueWithEmptyListFieldNumber;
- const int StructTestCases::kTopLevelValueWithListWithEmptyStructFieldNumber;
- const int StructTestCases::kTopLevelListvalueFieldNumber;
- const int StructTestCases::kTopLevelEmptyListvalueFieldNumber;
- const int StructTestCases::kTopLevelListvalueWithEmptyStructFieldNumber;
- const int StructTestCases::kRepeatedValueFieldNumber;
- const int StructTestCases::kRepeatedValueNestedListFieldNumber;
- const int StructTestCases::kRepeatedValueNestedList2FieldNumber;
- const int StructTestCases::kRepeatedValueNestedList3FieldNumber;
- const int StructTestCases::kRepeatedListvalueFieldNumber;
- const int StructTestCases::kMapOfStructFieldNumber;
- const int StructTestCases::kMapOfStructValueFieldNumber;
- const int StructTestCases::kMapOfListvalueFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- StructTestCases::StructTestCases()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_StructTestCases.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.StructTestCases)
- }
- StructTestCases::StructTestCases(const StructTestCases& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_empty_value()) {
- empty_value_ = new ::google::protobuf::testing::StructWrapper(*from.empty_value_);
- } else {
- empty_value_ = NULL;
- }
- if (from.has_empty_value2()) {
- empty_value2_ = new ::google::protobuf::testing::StructWrapper(*from.empty_value2_);
- } else {
- empty_value2_ = NULL;
- }
- if (from.has_null_value()) {
- null_value_ = new ::google::protobuf::testing::StructWrapper(*from.null_value_);
- } else {
- null_value_ = NULL;
- }
- if (from.has_simple_struct()) {
- simple_struct_ = new ::google::protobuf::testing::StructWrapper(*from.simple_struct_);
- } else {
- simple_struct_ = NULL;
- }
- if (from.has_longer_struct()) {
- longer_struct_ = new ::google::protobuf::testing::StructWrapper(*from.longer_struct_);
- } else {
- longer_struct_ = NULL;
- }
- if (from.has_struct_with_nested_struct()) {
- struct_with_nested_struct_ = new ::google::protobuf::testing::StructWrapper(*from.struct_with_nested_struct_);
- } else {
- struct_with_nested_struct_ = NULL;
- }
- if (from.has_struct_with_nested_list()) {
- struct_with_nested_list_ = new ::google::protobuf::testing::StructWrapper(*from.struct_with_nested_list_);
- } else {
- struct_with_nested_list_ = NULL;
- }
- if (from.has_struct_with_list_of_nulls()) {
- struct_with_list_of_nulls_ = new ::google::protobuf::testing::StructWrapper(*from.struct_with_list_of_nulls_);
- } else {
- struct_with_list_of_nulls_ = NULL;
- }
- if (from.has_struct_with_list_of_lists()) {
- struct_with_list_of_lists_ = new ::google::protobuf::testing::StructWrapper(*from.struct_with_list_of_lists_);
- } else {
- struct_with_list_of_lists_ = NULL;
- }
- if (from.has_struct_with_list_of_structs()) {
- struct_with_list_of_structs_ = new ::google::protobuf::testing::StructWrapper(*from.struct_with_list_of_structs_);
- } else {
- struct_with_list_of_structs_ = NULL;
- }
- if (from.has_struct_with_empty_list()) {
- struct_with_empty_list_ = new ::google::protobuf::testing::StructWrapper(*from.struct_with_empty_list_);
- } else {
- struct_with_empty_list_ = NULL;
- }
- if (from.has_struct_with_list_with_empty_struct()) {
- struct_with_list_with_empty_struct_ = new ::google::protobuf::testing::StructWrapper(*from.struct_with_list_with_empty_struct_);
- } else {
- struct_with_list_with_empty_struct_ = NULL;
- }
- if (from.has_top_level_struct()) {
- top_level_struct_ = new ::google::protobuf::Struct(*from.top_level_struct_);
- } else {
- top_level_struct_ = NULL;
- }
- if (from.has_top_level_struct_with_empty_list()) {
- top_level_struct_with_empty_list_ = new ::google::protobuf::Struct(*from.top_level_struct_with_empty_list_);
- } else {
- top_level_struct_with_empty_list_ = NULL;
- }
- if (from.has_top_level_struct_with_list_with_empty_struct()) {
- top_level_struct_with_list_with_empty_struct_ = new ::google::protobuf::Struct(*from.top_level_struct_with_list_with_empty_struct_);
- } else {
- top_level_struct_with_list_with_empty_struct_ = NULL;
- }
- if (from.has_value_wrapper_simple()) {
- value_wrapper_simple_ = new ::google::protobuf::testing::ValueWrapper(*from.value_wrapper_simple_);
- } else {
- value_wrapper_simple_ = NULL;
- }
- if (from.has_value_wrapper_with_struct()) {
- value_wrapper_with_struct_ = new ::google::protobuf::testing::ValueWrapper(*from.value_wrapper_with_struct_);
- } else {
- value_wrapper_with_struct_ = NULL;
- }
- if (from.has_value_wrapper_with_list()) {
- value_wrapper_with_list_ = new ::google::protobuf::testing::ValueWrapper(*from.value_wrapper_with_list_);
- } else {
- value_wrapper_with_list_ = NULL;
- }
- if (from.has_value_wrapper_with_empty_list()) {
- value_wrapper_with_empty_list_ = new ::google::protobuf::testing::ValueWrapper(*from.value_wrapper_with_empty_list_);
- } else {
- value_wrapper_with_empty_list_ = NULL;
- }
- if (from.has_value_wrapper_with_list_with_empty_struct()) {
- value_wrapper_with_list_with_empty_struct_ = new ::google::protobuf::testing::ValueWrapper(*from.value_wrapper_with_list_with_empty_struct_);
- } else {
- value_wrapper_with_list_with_empty_struct_ = NULL;
- }
- if (from.has_list_value_wrapper()) {
- list_value_wrapper_ = new ::google::protobuf::testing::ListValueWrapper(*from.list_value_wrapper_);
- } else {
- list_value_wrapper_ = NULL;
- }
- if (from.has_list_value_wrapper_with_empty_list()) {
- list_value_wrapper_with_empty_list_ = new ::google::protobuf::testing::ListValueWrapper(*from.list_value_wrapper_with_empty_list_);
- } else {
- list_value_wrapper_with_empty_list_ = NULL;
- }
- if (from.has_list_value_wrapper_with_list_with_empty_struct()) {
- list_value_wrapper_with_list_with_empty_struct_ = new ::google::protobuf::testing::ListValueWrapper(*from.list_value_wrapper_with_list_with_empty_struct_);
- } else {
- list_value_wrapper_with_list_with_empty_struct_ = NULL;
- }
- if (from.has_top_level_value_simple()) {
- top_level_value_simple_ = new ::google::protobuf::Value(*from.top_level_value_simple_);
- } else {
- top_level_value_simple_ = NULL;
- }
- if (from.has_top_level_value_with_struct()) {
- top_level_value_with_struct_ = new ::google::protobuf::Value(*from.top_level_value_with_struct_);
- } else {
- top_level_value_with_struct_ = NULL;
- }
- if (from.has_top_level_value_with_list()) {
- top_level_value_with_list_ = new ::google::protobuf::Value(*from.top_level_value_with_list_);
- } else {
- top_level_value_with_list_ = NULL;
- }
- if (from.has_top_level_value_with_empty_list()) {
- top_level_value_with_empty_list_ = new ::google::protobuf::Value(*from.top_level_value_with_empty_list_);
- } else {
- top_level_value_with_empty_list_ = NULL;
- }
- if (from.has_top_level_value_with_list_with_empty_struct()) {
- top_level_value_with_list_with_empty_struct_ = new ::google::protobuf::Value(*from.top_level_value_with_list_with_empty_struct_);
- } else {
- top_level_value_with_list_with_empty_struct_ = NULL;
- }
- if (from.has_top_level_listvalue()) {
- top_level_listvalue_ = new ::google::protobuf::ListValue(*from.top_level_listvalue_);
- } else {
- top_level_listvalue_ = NULL;
- }
- if (from.has_top_level_empty_listvalue()) {
- top_level_empty_listvalue_ = new ::google::protobuf::ListValue(*from.top_level_empty_listvalue_);
- } else {
- top_level_empty_listvalue_ = NULL;
- }
- if (from.has_top_level_listvalue_with_empty_struct()) {
- top_level_listvalue_with_empty_struct_ = new ::google::protobuf::ListValue(*from.top_level_listvalue_with_empty_struct_);
- } else {
- top_level_listvalue_with_empty_struct_ = NULL;
- }
- if (from.has_repeated_value()) {
- repeated_value_ = new ::google::protobuf::testing::RepeatedValueWrapper(*from.repeated_value_);
- } else {
- repeated_value_ = NULL;
- }
- if (from.has_repeated_value_nested_list()) {
- repeated_value_nested_list_ = new ::google::protobuf::testing::RepeatedValueWrapper(*from.repeated_value_nested_list_);
- } else {
- repeated_value_nested_list_ = NULL;
- }
- if (from.has_repeated_value_nested_list2()) {
- repeated_value_nested_list2_ = new ::google::protobuf::testing::RepeatedValueWrapper(*from.repeated_value_nested_list2_);
- } else {
- repeated_value_nested_list2_ = NULL;
- }
- if (from.has_repeated_value_nested_list3()) {
- repeated_value_nested_list3_ = new ::google::protobuf::testing::RepeatedValueWrapper(*from.repeated_value_nested_list3_);
- } else {
- repeated_value_nested_list3_ = NULL;
- }
- if (from.has_repeated_listvalue()) {
- repeated_listvalue_ = new ::google::protobuf::testing::RepeatedListValueWrapper(*from.repeated_listvalue_);
- } else {
- repeated_listvalue_ = NULL;
- }
- if (from.has_map_of_struct()) {
- map_of_struct_ = new ::google::protobuf::testing::MapOfStruct(*from.map_of_struct_);
- } else {
- map_of_struct_ = NULL;
- }
- if (from.has_map_of_struct_value()) {
- map_of_struct_value_ = new ::google::protobuf::testing::MapOfStruct(*from.map_of_struct_value_);
- } else {
- map_of_struct_value_ = NULL;
- }
- if (from.has_map_of_listvalue()) {
- map_of_listvalue_ = new ::google::protobuf::testing::MapOfStruct(*from.map_of_listvalue_);
- } else {
- map_of_listvalue_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.StructTestCases)
- }
- void StructTestCases::SharedCtor() {
- ::memset(&empty_value_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&map_of_listvalue_) -
- reinterpret_cast<char*>(&empty_value_)) + sizeof(map_of_listvalue_));
- }
- StructTestCases::~StructTestCases() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.StructTestCases)
- SharedDtor();
- }
- void StructTestCases::SharedDtor() {
- if (this != internal_default_instance()) delete empty_value_;
- if (this != internal_default_instance()) delete empty_value2_;
- if (this != internal_default_instance()) delete null_value_;
- if (this != internal_default_instance()) delete simple_struct_;
- if (this != internal_default_instance()) delete longer_struct_;
- if (this != internal_default_instance()) delete struct_with_nested_struct_;
- if (this != internal_default_instance()) delete struct_with_nested_list_;
- if (this != internal_default_instance()) delete struct_with_list_of_nulls_;
- if (this != internal_default_instance()) delete struct_with_list_of_lists_;
- if (this != internal_default_instance()) delete struct_with_list_of_structs_;
- if (this != internal_default_instance()) delete struct_with_empty_list_;
- if (this != internal_default_instance()) delete struct_with_list_with_empty_struct_;
- if (this != internal_default_instance()) delete top_level_struct_;
- if (this != internal_default_instance()) delete top_level_struct_with_empty_list_;
- if (this != internal_default_instance()) delete top_level_struct_with_list_with_empty_struct_;
- if (this != internal_default_instance()) delete value_wrapper_simple_;
- if (this != internal_default_instance()) delete value_wrapper_with_struct_;
- if (this != internal_default_instance()) delete value_wrapper_with_list_;
- if (this != internal_default_instance()) delete value_wrapper_with_empty_list_;
- if (this != internal_default_instance()) delete value_wrapper_with_list_with_empty_struct_;
- if (this != internal_default_instance()) delete list_value_wrapper_;
- if (this != internal_default_instance()) delete list_value_wrapper_with_empty_list_;
- if (this != internal_default_instance()) delete list_value_wrapper_with_list_with_empty_struct_;
- if (this != internal_default_instance()) delete top_level_value_simple_;
- if (this != internal_default_instance()) delete top_level_value_with_struct_;
- if (this != internal_default_instance()) delete top_level_value_with_list_;
- if (this != internal_default_instance()) delete top_level_value_with_empty_list_;
- if (this != internal_default_instance()) delete top_level_value_with_list_with_empty_struct_;
- if (this != internal_default_instance()) delete top_level_listvalue_;
- if (this != internal_default_instance()) delete top_level_empty_listvalue_;
- if (this != internal_default_instance()) delete top_level_listvalue_with_empty_struct_;
- if (this != internal_default_instance()) delete repeated_value_;
- if (this != internal_default_instance()) delete repeated_value_nested_list_;
- if (this != internal_default_instance()) delete repeated_value_nested_list2_;
- if (this != internal_default_instance()) delete repeated_value_nested_list3_;
- if (this != internal_default_instance()) delete repeated_listvalue_;
- if (this != internal_default_instance()) delete map_of_struct_;
- if (this != internal_default_instance()) delete map_of_struct_value_;
- if (this != internal_default_instance()) delete map_of_listvalue_;
- }
- void StructTestCases::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* StructTestCases::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const StructTestCases& StructTestCases::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_StructTestCases.base);
- return *internal_default_instance();
- }
- void StructTestCases::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.StructTestCases)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && empty_value_ != NULL) {
- delete empty_value_;
- }
- empty_value_ = NULL;
- if (GetArenaNoVirtual() == NULL && empty_value2_ != NULL) {
- delete empty_value2_;
- }
- empty_value2_ = NULL;
- if (GetArenaNoVirtual() == NULL && null_value_ != NULL) {
- delete null_value_;
- }
- null_value_ = NULL;
- if (GetArenaNoVirtual() == NULL && simple_struct_ != NULL) {
- delete simple_struct_;
- }
- simple_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && longer_struct_ != NULL) {
- delete longer_struct_;
- }
- longer_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_with_nested_struct_ != NULL) {
- delete struct_with_nested_struct_;
- }
- struct_with_nested_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_with_nested_list_ != NULL) {
- delete struct_with_nested_list_;
- }
- struct_with_nested_list_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_with_list_of_nulls_ != NULL) {
- delete struct_with_list_of_nulls_;
- }
- struct_with_list_of_nulls_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_with_list_of_lists_ != NULL) {
- delete struct_with_list_of_lists_;
- }
- struct_with_list_of_lists_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_with_list_of_structs_ != NULL) {
- delete struct_with_list_of_structs_;
- }
- struct_with_list_of_structs_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_with_empty_list_ != NULL) {
- delete struct_with_empty_list_;
- }
- struct_with_empty_list_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_with_list_with_empty_struct_ != NULL) {
- delete struct_with_list_with_empty_struct_;
- }
- struct_with_list_with_empty_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_struct_ != NULL) {
- delete top_level_struct_;
- }
- top_level_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_struct_with_empty_list_ != NULL) {
- delete top_level_struct_with_empty_list_;
- }
- top_level_struct_with_empty_list_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_struct_with_list_with_empty_struct_ != NULL) {
- delete top_level_struct_with_list_with_empty_struct_;
- }
- top_level_struct_with_list_with_empty_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && value_wrapper_simple_ != NULL) {
- delete value_wrapper_simple_;
- }
- value_wrapper_simple_ = NULL;
- if (GetArenaNoVirtual() == NULL && value_wrapper_with_struct_ != NULL) {
- delete value_wrapper_with_struct_;
- }
- value_wrapper_with_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && value_wrapper_with_list_ != NULL) {
- delete value_wrapper_with_list_;
- }
- value_wrapper_with_list_ = NULL;
- if (GetArenaNoVirtual() == NULL && value_wrapper_with_empty_list_ != NULL) {
- delete value_wrapper_with_empty_list_;
- }
- value_wrapper_with_empty_list_ = NULL;
- if (GetArenaNoVirtual() == NULL && value_wrapper_with_list_with_empty_struct_ != NULL) {
- delete value_wrapper_with_list_with_empty_struct_;
- }
- value_wrapper_with_list_with_empty_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && list_value_wrapper_ != NULL) {
- delete list_value_wrapper_;
- }
- list_value_wrapper_ = NULL;
- if (GetArenaNoVirtual() == NULL && list_value_wrapper_with_empty_list_ != NULL) {
- delete list_value_wrapper_with_empty_list_;
- }
- list_value_wrapper_with_empty_list_ = NULL;
- if (GetArenaNoVirtual() == NULL && list_value_wrapper_with_list_with_empty_struct_ != NULL) {
- delete list_value_wrapper_with_list_with_empty_struct_;
- }
- list_value_wrapper_with_list_with_empty_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_value_simple_ != NULL) {
- delete top_level_value_simple_;
- }
- top_level_value_simple_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_value_with_struct_ != NULL) {
- delete top_level_value_with_struct_;
- }
- top_level_value_with_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_value_with_list_ != NULL) {
- delete top_level_value_with_list_;
- }
- top_level_value_with_list_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_value_with_empty_list_ != NULL) {
- delete top_level_value_with_empty_list_;
- }
- top_level_value_with_empty_list_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_value_with_list_with_empty_struct_ != NULL) {
- delete top_level_value_with_list_with_empty_struct_;
- }
- top_level_value_with_list_with_empty_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_listvalue_ != NULL) {
- delete top_level_listvalue_;
- }
- top_level_listvalue_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_empty_listvalue_ != NULL) {
- delete top_level_empty_listvalue_;
- }
- top_level_empty_listvalue_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_listvalue_with_empty_struct_ != NULL) {
- delete top_level_listvalue_with_empty_struct_;
- }
- top_level_listvalue_with_empty_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && repeated_value_ != NULL) {
- delete repeated_value_;
- }
- repeated_value_ = NULL;
- if (GetArenaNoVirtual() == NULL && repeated_value_nested_list_ != NULL) {
- delete repeated_value_nested_list_;
- }
- repeated_value_nested_list_ = NULL;
- if (GetArenaNoVirtual() == NULL && repeated_value_nested_list2_ != NULL) {
- delete repeated_value_nested_list2_;
- }
- repeated_value_nested_list2_ = NULL;
- if (GetArenaNoVirtual() == NULL && repeated_value_nested_list3_ != NULL) {
- delete repeated_value_nested_list3_;
- }
- repeated_value_nested_list3_ = NULL;
- if (GetArenaNoVirtual() == NULL && repeated_listvalue_ != NULL) {
- delete repeated_listvalue_;
- }
- repeated_listvalue_ = NULL;
- if (GetArenaNoVirtual() == NULL && map_of_struct_ != NULL) {
- delete map_of_struct_;
- }
- map_of_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && map_of_struct_value_ != NULL) {
- delete map_of_struct_value_;
- }
- map_of_struct_value_ = NULL;
- if (GetArenaNoVirtual() == NULL && map_of_listvalue_ != NULL) {
- delete map_of_listvalue_;
- }
- map_of_listvalue_ = NULL;
- _internal_metadata_.Clear();
- }
- bool StructTestCases::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.protobuf.testing.StructTestCases)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // .google.protobuf.testing.StructWrapper empty_value = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_empty_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructWrapper empty_value2 = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_empty_value2()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructWrapper null_value = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_null_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructWrapper simple_struct = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_simple_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructWrapper longer_struct = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_longer_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructWrapper struct_with_nested_struct = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_with_nested_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructWrapper struct_with_nested_list = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_with_nested_list()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_of_nulls = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_with_list_of_nulls()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_of_lists = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_with_list_of_lists()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_of_structs = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_with_list_of_structs()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructWrapper struct_with_empty_list = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_with_empty_list()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_with_empty_struct = 12;
- case 12: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_with_list_with_empty_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Struct top_level_struct = 13;
- case 13: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Struct top_level_struct_with_empty_list = 14;
- case 14: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_struct_with_empty_list()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Struct top_level_struct_with_list_with_empty_struct = 15;
- case 15: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_struct_with_list_with_empty_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_simple = 16;
- case 16: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_value_wrapper_simple()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_struct = 17;
- case 17: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_value_wrapper_with_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_list = 18;
- case 18: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_value_wrapper_with_list()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_empty_list = 19;
- case 19: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_value_wrapper_with_empty_list()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_list_with_empty_struct = 20;
- case 20: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_value_wrapper_with_list_with_empty_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.ListValueWrapper list_value_wrapper = 21;
- case 21: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_list_value_wrapper()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_empty_list = 22;
- case 22: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_list_value_wrapper_with_empty_list()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_list_with_empty_struct = 23;
- case 23: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(186u /* 186 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_list_value_wrapper_with_list_with_empty_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Value top_level_value_simple = 24;
- case 24: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(194u /* 194 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_value_simple()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Value top_level_value_with_struct = 25;
- case 25: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(202u /* 202 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_value_with_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Value top_level_value_with_list = 26;
- case 26: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(210u /* 210 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_value_with_list()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Value top_level_value_with_empty_list = 27;
- case 27: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(218u /* 218 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_value_with_empty_list()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Value top_level_value_with_list_with_empty_struct = 28;
- case 28: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(226u /* 226 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_value_with_list_with_empty_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.ListValue top_level_listvalue = 29;
- case 29: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(234u /* 234 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_listvalue()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.ListValue top_level_empty_listvalue = 30;
- case 30: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(242u /* 242 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_empty_listvalue()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.ListValue top_level_listvalue_with_empty_struct = 31;
- case 31: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(250u /* 250 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_listvalue_with_empty_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value = 32;
- case 32: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(2u /* 258 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_repeated_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list = 33;
- case 33: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 266 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_repeated_value_nested_list()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list2 = 34;
- case 34: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 274 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_repeated_value_nested_list2()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list3 = 35;
- case 35: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 282 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_repeated_value_nested_list3()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.RepeatedListValueWrapper repeated_listvalue = 36;
- case 36: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 290 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_repeated_listvalue()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.MapOfStruct map_of_struct = 37;
- case 37: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 298 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_map_of_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.MapOfStruct map_of_struct_value = 38;
- case 38: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 306 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_map_of_struct_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.MapOfStruct map_of_listvalue = 39;
- case 39: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(58u /* 314 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_map_of_listvalue()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.protobuf.testing.StructTestCases)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.StructTestCases)
- return false;
- #undef DO_
- }
- void StructTestCases::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.StructTestCases)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.testing.StructWrapper empty_value = 1;
- if (this->has_empty_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_empty_value(), output);
- }
- // .google.protobuf.testing.StructWrapper empty_value2 = 2;
- if (this->has_empty_value2()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->_internal_empty_value2(), output);
- }
- // .google.protobuf.testing.StructWrapper null_value = 3;
- if (this->has_null_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->_internal_null_value(), output);
- }
- // .google.protobuf.testing.StructWrapper simple_struct = 4;
- if (this->has_simple_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->_internal_simple_struct(), output);
- }
- // .google.protobuf.testing.StructWrapper longer_struct = 5;
- if (this->has_longer_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, this->_internal_longer_struct(), output);
- }
- // .google.protobuf.testing.StructWrapper struct_with_nested_struct = 6;
- if (this->has_struct_with_nested_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 6, this->_internal_struct_with_nested_struct(), output);
- }
- // .google.protobuf.testing.StructWrapper struct_with_nested_list = 7;
- if (this->has_struct_with_nested_list()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 7, this->_internal_struct_with_nested_list(), output);
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_of_nulls = 8;
- if (this->has_struct_with_list_of_nulls()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8, this->_internal_struct_with_list_of_nulls(), output);
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_of_lists = 9;
- if (this->has_struct_with_list_of_lists()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 9, this->_internal_struct_with_list_of_lists(), output);
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_of_structs = 10;
- if (this->has_struct_with_list_of_structs()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 10, this->_internal_struct_with_list_of_structs(), output);
- }
- // .google.protobuf.testing.StructWrapper struct_with_empty_list = 11;
- if (this->has_struct_with_empty_list()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 11, this->_internal_struct_with_empty_list(), output);
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_with_empty_struct = 12;
- if (this->has_struct_with_list_with_empty_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 12, this->_internal_struct_with_list_with_empty_struct(), output);
- }
- // .google.protobuf.Struct top_level_struct = 13;
- if (this->has_top_level_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 13, this->_internal_top_level_struct(), output);
- }
- // .google.protobuf.Struct top_level_struct_with_empty_list = 14;
- if (this->has_top_level_struct_with_empty_list()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 14, this->_internal_top_level_struct_with_empty_list(), output);
- }
- // .google.protobuf.Struct top_level_struct_with_list_with_empty_struct = 15;
- if (this->has_top_level_struct_with_list_with_empty_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 15, this->_internal_top_level_struct_with_list_with_empty_struct(), output);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_simple = 16;
- if (this->has_value_wrapper_simple()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 16, this->_internal_value_wrapper_simple(), output);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_struct = 17;
- if (this->has_value_wrapper_with_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 17, this->_internal_value_wrapper_with_struct(), output);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_list = 18;
- if (this->has_value_wrapper_with_list()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 18, this->_internal_value_wrapper_with_list(), output);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_empty_list = 19;
- if (this->has_value_wrapper_with_empty_list()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 19, this->_internal_value_wrapper_with_empty_list(), output);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_list_with_empty_struct = 20;
- if (this->has_value_wrapper_with_list_with_empty_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 20, this->_internal_value_wrapper_with_list_with_empty_struct(), output);
- }
- // .google.protobuf.testing.ListValueWrapper list_value_wrapper = 21;
- if (this->has_list_value_wrapper()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 21, this->_internal_list_value_wrapper(), output);
- }
- // .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_empty_list = 22;
- if (this->has_list_value_wrapper_with_empty_list()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 22, this->_internal_list_value_wrapper_with_empty_list(), output);
- }
- // .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_list_with_empty_struct = 23;
- if (this->has_list_value_wrapper_with_list_with_empty_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 23, this->_internal_list_value_wrapper_with_list_with_empty_struct(), output);
- }
- // .google.protobuf.Value top_level_value_simple = 24;
- if (this->has_top_level_value_simple()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 24, this->_internal_top_level_value_simple(), output);
- }
- // .google.protobuf.Value top_level_value_with_struct = 25;
- if (this->has_top_level_value_with_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 25, this->_internal_top_level_value_with_struct(), output);
- }
- // .google.protobuf.Value top_level_value_with_list = 26;
- if (this->has_top_level_value_with_list()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 26, this->_internal_top_level_value_with_list(), output);
- }
- // .google.protobuf.Value top_level_value_with_empty_list = 27;
- if (this->has_top_level_value_with_empty_list()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 27, this->_internal_top_level_value_with_empty_list(), output);
- }
- // .google.protobuf.Value top_level_value_with_list_with_empty_struct = 28;
- if (this->has_top_level_value_with_list_with_empty_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 28, this->_internal_top_level_value_with_list_with_empty_struct(), output);
- }
- // .google.protobuf.ListValue top_level_listvalue = 29;
- if (this->has_top_level_listvalue()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 29, this->_internal_top_level_listvalue(), output);
- }
- // .google.protobuf.ListValue top_level_empty_listvalue = 30;
- if (this->has_top_level_empty_listvalue()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 30, this->_internal_top_level_empty_listvalue(), output);
- }
- // .google.protobuf.ListValue top_level_listvalue_with_empty_struct = 31;
- if (this->has_top_level_listvalue_with_empty_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 31, this->_internal_top_level_listvalue_with_empty_struct(), output);
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value = 32;
- if (this->has_repeated_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 32, this->_internal_repeated_value(), output);
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list = 33;
- if (this->has_repeated_value_nested_list()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 33, this->_internal_repeated_value_nested_list(), output);
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list2 = 34;
- if (this->has_repeated_value_nested_list2()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 34, this->_internal_repeated_value_nested_list2(), output);
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list3 = 35;
- if (this->has_repeated_value_nested_list3()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 35, this->_internal_repeated_value_nested_list3(), output);
- }
- // .google.protobuf.testing.RepeatedListValueWrapper repeated_listvalue = 36;
- if (this->has_repeated_listvalue()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 36, this->_internal_repeated_listvalue(), output);
- }
- // .google.protobuf.testing.MapOfStruct map_of_struct = 37;
- if (this->has_map_of_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 37, this->_internal_map_of_struct(), output);
- }
- // .google.protobuf.testing.MapOfStruct map_of_struct_value = 38;
- if (this->has_map_of_struct_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 38, this->_internal_map_of_struct_value(), output);
- }
- // .google.protobuf.testing.MapOfStruct map_of_listvalue = 39;
- if (this->has_map_of_listvalue()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 39, this->_internal_map_of_listvalue(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.StructTestCases)
- }
- ::google::protobuf::uint8* StructTestCases::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.StructTestCases)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.testing.StructWrapper empty_value = 1;
- if (this->has_empty_value()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_empty_value(), deterministic, target);
- }
- // .google.protobuf.testing.StructWrapper empty_value2 = 2;
- if (this->has_empty_value2()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->_internal_empty_value2(), deterministic, target);
- }
- // .google.protobuf.testing.StructWrapper null_value = 3;
- if (this->has_null_value()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 3, this->_internal_null_value(), deterministic, target);
- }
- // .google.protobuf.testing.StructWrapper simple_struct = 4;
- if (this->has_simple_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, this->_internal_simple_struct(), deterministic, target);
- }
- // .google.protobuf.testing.StructWrapper longer_struct = 5;
- if (this->has_longer_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 5, this->_internal_longer_struct(), deterministic, target);
- }
- // .google.protobuf.testing.StructWrapper struct_with_nested_struct = 6;
- if (this->has_struct_with_nested_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 6, this->_internal_struct_with_nested_struct(), deterministic, target);
- }
- // .google.protobuf.testing.StructWrapper struct_with_nested_list = 7;
- if (this->has_struct_with_nested_list()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 7, this->_internal_struct_with_nested_list(), deterministic, target);
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_of_nulls = 8;
- if (this->has_struct_with_list_of_nulls()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 8, this->_internal_struct_with_list_of_nulls(), deterministic, target);
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_of_lists = 9;
- if (this->has_struct_with_list_of_lists()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 9, this->_internal_struct_with_list_of_lists(), deterministic, target);
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_of_structs = 10;
- if (this->has_struct_with_list_of_structs()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 10, this->_internal_struct_with_list_of_structs(), deterministic, target);
- }
- // .google.protobuf.testing.StructWrapper struct_with_empty_list = 11;
- if (this->has_struct_with_empty_list()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 11, this->_internal_struct_with_empty_list(), deterministic, target);
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_with_empty_struct = 12;
- if (this->has_struct_with_list_with_empty_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 12, this->_internal_struct_with_list_with_empty_struct(), deterministic, target);
- }
- // .google.protobuf.Struct top_level_struct = 13;
- if (this->has_top_level_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 13, this->_internal_top_level_struct(), deterministic, target);
- }
- // .google.protobuf.Struct top_level_struct_with_empty_list = 14;
- if (this->has_top_level_struct_with_empty_list()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 14, this->_internal_top_level_struct_with_empty_list(), deterministic, target);
- }
- // .google.protobuf.Struct top_level_struct_with_list_with_empty_struct = 15;
- if (this->has_top_level_struct_with_list_with_empty_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 15, this->_internal_top_level_struct_with_list_with_empty_struct(), deterministic, target);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_simple = 16;
- if (this->has_value_wrapper_simple()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 16, this->_internal_value_wrapper_simple(), deterministic, target);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_struct = 17;
- if (this->has_value_wrapper_with_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 17, this->_internal_value_wrapper_with_struct(), deterministic, target);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_list = 18;
- if (this->has_value_wrapper_with_list()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 18, this->_internal_value_wrapper_with_list(), deterministic, target);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_empty_list = 19;
- if (this->has_value_wrapper_with_empty_list()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 19, this->_internal_value_wrapper_with_empty_list(), deterministic, target);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_list_with_empty_struct = 20;
- if (this->has_value_wrapper_with_list_with_empty_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 20, this->_internal_value_wrapper_with_list_with_empty_struct(), deterministic, target);
- }
- // .google.protobuf.testing.ListValueWrapper list_value_wrapper = 21;
- if (this->has_list_value_wrapper()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 21, this->_internal_list_value_wrapper(), deterministic, target);
- }
- // .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_empty_list = 22;
- if (this->has_list_value_wrapper_with_empty_list()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 22, this->_internal_list_value_wrapper_with_empty_list(), deterministic, target);
- }
- // .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_list_with_empty_struct = 23;
- if (this->has_list_value_wrapper_with_list_with_empty_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 23, this->_internal_list_value_wrapper_with_list_with_empty_struct(), deterministic, target);
- }
- // .google.protobuf.Value top_level_value_simple = 24;
- if (this->has_top_level_value_simple()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 24, this->_internal_top_level_value_simple(), deterministic, target);
- }
- // .google.protobuf.Value top_level_value_with_struct = 25;
- if (this->has_top_level_value_with_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 25, this->_internal_top_level_value_with_struct(), deterministic, target);
- }
- // .google.protobuf.Value top_level_value_with_list = 26;
- if (this->has_top_level_value_with_list()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 26, this->_internal_top_level_value_with_list(), deterministic, target);
- }
- // .google.protobuf.Value top_level_value_with_empty_list = 27;
- if (this->has_top_level_value_with_empty_list()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 27, this->_internal_top_level_value_with_empty_list(), deterministic, target);
- }
- // .google.protobuf.Value top_level_value_with_list_with_empty_struct = 28;
- if (this->has_top_level_value_with_list_with_empty_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 28, this->_internal_top_level_value_with_list_with_empty_struct(), deterministic, target);
- }
- // .google.protobuf.ListValue top_level_listvalue = 29;
- if (this->has_top_level_listvalue()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 29, this->_internal_top_level_listvalue(), deterministic, target);
- }
- // .google.protobuf.ListValue top_level_empty_listvalue = 30;
- if (this->has_top_level_empty_listvalue()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 30, this->_internal_top_level_empty_listvalue(), deterministic, target);
- }
- // .google.protobuf.ListValue top_level_listvalue_with_empty_struct = 31;
- if (this->has_top_level_listvalue_with_empty_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 31, this->_internal_top_level_listvalue_with_empty_struct(), deterministic, target);
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value = 32;
- if (this->has_repeated_value()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 32, this->_internal_repeated_value(), deterministic, target);
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list = 33;
- if (this->has_repeated_value_nested_list()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 33, this->_internal_repeated_value_nested_list(), deterministic, target);
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list2 = 34;
- if (this->has_repeated_value_nested_list2()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 34, this->_internal_repeated_value_nested_list2(), deterministic, target);
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list3 = 35;
- if (this->has_repeated_value_nested_list3()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 35, this->_internal_repeated_value_nested_list3(), deterministic, target);
- }
- // .google.protobuf.testing.RepeatedListValueWrapper repeated_listvalue = 36;
- if (this->has_repeated_listvalue()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 36, this->_internal_repeated_listvalue(), deterministic, target);
- }
- // .google.protobuf.testing.MapOfStruct map_of_struct = 37;
- if (this->has_map_of_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 37, this->_internal_map_of_struct(), deterministic, target);
- }
- // .google.protobuf.testing.MapOfStruct map_of_struct_value = 38;
- if (this->has_map_of_struct_value()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 38, this->_internal_map_of_struct_value(), deterministic, target);
- }
- // .google.protobuf.testing.MapOfStruct map_of_listvalue = 39;
- if (this->has_map_of_listvalue()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 39, this->_internal_map_of_listvalue(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.StructTestCases)
- return target;
- }
- size_t StructTestCases::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.StructTestCases)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .google.protobuf.testing.StructWrapper empty_value = 1;
- if (this->has_empty_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *empty_value_);
- }
- // .google.protobuf.testing.StructWrapper empty_value2 = 2;
- if (this->has_empty_value2()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *empty_value2_);
- }
- // .google.protobuf.testing.StructWrapper null_value = 3;
- if (this->has_null_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *null_value_);
- }
- // .google.protobuf.testing.StructWrapper simple_struct = 4;
- if (this->has_simple_struct()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *simple_struct_);
- }
- // .google.protobuf.testing.StructWrapper longer_struct = 5;
- if (this->has_longer_struct()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *longer_struct_);
- }
- // .google.protobuf.testing.StructWrapper struct_with_nested_struct = 6;
- if (this->has_struct_with_nested_struct()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_with_nested_struct_);
- }
- // .google.protobuf.testing.StructWrapper struct_with_nested_list = 7;
- if (this->has_struct_with_nested_list()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_with_nested_list_);
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_of_nulls = 8;
- if (this->has_struct_with_list_of_nulls()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_with_list_of_nulls_);
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_of_lists = 9;
- if (this->has_struct_with_list_of_lists()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_with_list_of_lists_);
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_of_structs = 10;
- if (this->has_struct_with_list_of_structs()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_with_list_of_structs_);
- }
- // .google.protobuf.testing.StructWrapper struct_with_empty_list = 11;
- if (this->has_struct_with_empty_list()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_with_empty_list_);
- }
- // .google.protobuf.testing.StructWrapper struct_with_list_with_empty_struct = 12;
- if (this->has_struct_with_list_with_empty_struct()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_with_list_with_empty_struct_);
- }
- // .google.protobuf.Struct top_level_struct = 13;
- if (this->has_top_level_struct()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_struct_);
- }
- // .google.protobuf.Struct top_level_struct_with_empty_list = 14;
- if (this->has_top_level_struct_with_empty_list()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_struct_with_empty_list_);
- }
- // .google.protobuf.Struct top_level_struct_with_list_with_empty_struct = 15;
- if (this->has_top_level_struct_with_list_with_empty_struct()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_struct_with_list_with_empty_struct_);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_simple = 16;
- if (this->has_value_wrapper_simple()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *value_wrapper_simple_);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_struct = 17;
- if (this->has_value_wrapper_with_struct()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *value_wrapper_with_struct_);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_list = 18;
- if (this->has_value_wrapper_with_list()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *value_wrapper_with_list_);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_empty_list = 19;
- if (this->has_value_wrapper_with_empty_list()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *value_wrapper_with_empty_list_);
- }
- // .google.protobuf.testing.ValueWrapper value_wrapper_with_list_with_empty_struct = 20;
- if (this->has_value_wrapper_with_list_with_empty_struct()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *value_wrapper_with_list_with_empty_struct_);
- }
- // .google.protobuf.testing.ListValueWrapper list_value_wrapper = 21;
- if (this->has_list_value_wrapper()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *list_value_wrapper_);
- }
- // .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_empty_list = 22;
- if (this->has_list_value_wrapper_with_empty_list()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *list_value_wrapper_with_empty_list_);
- }
- // .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_list_with_empty_struct = 23;
- if (this->has_list_value_wrapper_with_list_with_empty_struct()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *list_value_wrapper_with_list_with_empty_struct_);
- }
- // .google.protobuf.Value top_level_value_simple = 24;
- if (this->has_top_level_value_simple()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_value_simple_);
- }
- // .google.protobuf.Value top_level_value_with_struct = 25;
- if (this->has_top_level_value_with_struct()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_value_with_struct_);
- }
- // .google.protobuf.Value top_level_value_with_list = 26;
- if (this->has_top_level_value_with_list()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_value_with_list_);
- }
- // .google.protobuf.Value top_level_value_with_empty_list = 27;
- if (this->has_top_level_value_with_empty_list()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_value_with_empty_list_);
- }
- // .google.protobuf.Value top_level_value_with_list_with_empty_struct = 28;
- if (this->has_top_level_value_with_list_with_empty_struct()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_value_with_list_with_empty_struct_);
- }
- // .google.protobuf.ListValue top_level_listvalue = 29;
- if (this->has_top_level_listvalue()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_listvalue_);
- }
- // .google.protobuf.ListValue top_level_empty_listvalue = 30;
- if (this->has_top_level_empty_listvalue()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_empty_listvalue_);
- }
- // .google.protobuf.ListValue top_level_listvalue_with_empty_struct = 31;
- if (this->has_top_level_listvalue_with_empty_struct()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_listvalue_with_empty_struct_);
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value = 32;
- if (this->has_repeated_value()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *repeated_value_);
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list = 33;
- if (this->has_repeated_value_nested_list()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *repeated_value_nested_list_);
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list2 = 34;
- if (this->has_repeated_value_nested_list2()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *repeated_value_nested_list2_);
- }
- // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list3 = 35;
- if (this->has_repeated_value_nested_list3()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *repeated_value_nested_list3_);
- }
- // .google.protobuf.testing.RepeatedListValueWrapper repeated_listvalue = 36;
- if (this->has_repeated_listvalue()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *repeated_listvalue_);
- }
- // .google.protobuf.testing.MapOfStruct map_of_struct = 37;
- if (this->has_map_of_struct()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *map_of_struct_);
- }
- // .google.protobuf.testing.MapOfStruct map_of_struct_value = 38;
- if (this->has_map_of_struct_value()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *map_of_struct_value_);
- }
- // .google.protobuf.testing.MapOfStruct map_of_listvalue = 39;
- if (this->has_map_of_listvalue()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *map_of_listvalue_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void StructTestCases::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.StructTestCases)
- GOOGLE_DCHECK_NE(&from, this);
- const StructTestCases* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const StructTestCases>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.StructTestCases)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.StructTestCases)
- MergeFrom(*source);
- }
- }
- void StructTestCases::MergeFrom(const StructTestCases& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.StructTestCases)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_empty_value()) {
- mutable_empty_value()->::google::protobuf::testing::StructWrapper::MergeFrom(from.empty_value());
- }
- if (from.has_empty_value2()) {
- mutable_empty_value2()->::google::protobuf::testing::StructWrapper::MergeFrom(from.empty_value2());
- }
- if (from.has_null_value()) {
- mutable_null_value()->::google::protobuf::testing::StructWrapper::MergeFrom(from.null_value());
- }
- if (from.has_simple_struct()) {
- mutable_simple_struct()->::google::protobuf::testing::StructWrapper::MergeFrom(from.simple_struct());
- }
- if (from.has_longer_struct()) {
- mutable_longer_struct()->::google::protobuf::testing::StructWrapper::MergeFrom(from.longer_struct());
- }
- if (from.has_struct_with_nested_struct()) {
- mutable_struct_with_nested_struct()->::google::protobuf::testing::StructWrapper::MergeFrom(from.struct_with_nested_struct());
- }
- if (from.has_struct_with_nested_list()) {
- mutable_struct_with_nested_list()->::google::protobuf::testing::StructWrapper::MergeFrom(from.struct_with_nested_list());
- }
- if (from.has_struct_with_list_of_nulls()) {
- mutable_struct_with_list_of_nulls()->::google::protobuf::testing::StructWrapper::MergeFrom(from.struct_with_list_of_nulls());
- }
- if (from.has_struct_with_list_of_lists()) {
- mutable_struct_with_list_of_lists()->::google::protobuf::testing::StructWrapper::MergeFrom(from.struct_with_list_of_lists());
- }
- if (from.has_struct_with_list_of_structs()) {
- mutable_struct_with_list_of_structs()->::google::protobuf::testing::StructWrapper::MergeFrom(from.struct_with_list_of_structs());
- }
- if (from.has_struct_with_empty_list()) {
- mutable_struct_with_empty_list()->::google::protobuf::testing::StructWrapper::MergeFrom(from.struct_with_empty_list());
- }
- if (from.has_struct_with_list_with_empty_struct()) {
- mutable_struct_with_list_with_empty_struct()->::google::protobuf::testing::StructWrapper::MergeFrom(from.struct_with_list_with_empty_struct());
- }
- if (from.has_top_level_struct()) {
- mutable_top_level_struct()->::google::protobuf::Struct::MergeFrom(from.top_level_struct());
- }
- if (from.has_top_level_struct_with_empty_list()) {
- mutable_top_level_struct_with_empty_list()->::google::protobuf::Struct::MergeFrom(from.top_level_struct_with_empty_list());
- }
- if (from.has_top_level_struct_with_list_with_empty_struct()) {
- mutable_top_level_struct_with_list_with_empty_struct()->::google::protobuf::Struct::MergeFrom(from.top_level_struct_with_list_with_empty_struct());
- }
- if (from.has_value_wrapper_simple()) {
- mutable_value_wrapper_simple()->::google::protobuf::testing::ValueWrapper::MergeFrom(from.value_wrapper_simple());
- }
- if (from.has_value_wrapper_with_struct()) {
- mutable_value_wrapper_with_struct()->::google::protobuf::testing::ValueWrapper::MergeFrom(from.value_wrapper_with_struct());
- }
- if (from.has_value_wrapper_with_list()) {
- mutable_value_wrapper_with_list()->::google::protobuf::testing::ValueWrapper::MergeFrom(from.value_wrapper_with_list());
- }
- if (from.has_value_wrapper_with_empty_list()) {
- mutable_value_wrapper_with_empty_list()->::google::protobuf::testing::ValueWrapper::MergeFrom(from.value_wrapper_with_empty_list());
- }
- if (from.has_value_wrapper_with_list_with_empty_struct()) {
- mutable_value_wrapper_with_list_with_empty_struct()->::google::protobuf::testing::ValueWrapper::MergeFrom(from.value_wrapper_with_list_with_empty_struct());
- }
- if (from.has_list_value_wrapper()) {
- mutable_list_value_wrapper()->::google::protobuf::testing::ListValueWrapper::MergeFrom(from.list_value_wrapper());
- }
- if (from.has_list_value_wrapper_with_empty_list()) {
- mutable_list_value_wrapper_with_empty_list()->::google::protobuf::testing::ListValueWrapper::MergeFrom(from.list_value_wrapper_with_empty_list());
- }
- if (from.has_list_value_wrapper_with_list_with_empty_struct()) {
- mutable_list_value_wrapper_with_list_with_empty_struct()->::google::protobuf::testing::ListValueWrapper::MergeFrom(from.list_value_wrapper_with_list_with_empty_struct());
- }
- if (from.has_top_level_value_simple()) {
- mutable_top_level_value_simple()->::google::protobuf::Value::MergeFrom(from.top_level_value_simple());
- }
- if (from.has_top_level_value_with_struct()) {
- mutable_top_level_value_with_struct()->::google::protobuf::Value::MergeFrom(from.top_level_value_with_struct());
- }
- if (from.has_top_level_value_with_list()) {
- mutable_top_level_value_with_list()->::google::protobuf::Value::MergeFrom(from.top_level_value_with_list());
- }
- if (from.has_top_level_value_with_empty_list()) {
- mutable_top_level_value_with_empty_list()->::google::protobuf::Value::MergeFrom(from.top_level_value_with_empty_list());
- }
- if (from.has_top_level_value_with_list_with_empty_struct()) {
- mutable_top_level_value_with_list_with_empty_struct()->::google::protobuf::Value::MergeFrom(from.top_level_value_with_list_with_empty_struct());
- }
- if (from.has_top_level_listvalue()) {
- mutable_top_level_listvalue()->::google::protobuf::ListValue::MergeFrom(from.top_level_listvalue());
- }
- if (from.has_top_level_empty_listvalue()) {
- mutable_top_level_empty_listvalue()->::google::protobuf::ListValue::MergeFrom(from.top_level_empty_listvalue());
- }
- if (from.has_top_level_listvalue_with_empty_struct()) {
- mutable_top_level_listvalue_with_empty_struct()->::google::protobuf::ListValue::MergeFrom(from.top_level_listvalue_with_empty_struct());
- }
- if (from.has_repeated_value()) {
- mutable_repeated_value()->::google::protobuf::testing::RepeatedValueWrapper::MergeFrom(from.repeated_value());
- }
- if (from.has_repeated_value_nested_list()) {
- mutable_repeated_value_nested_list()->::google::protobuf::testing::RepeatedValueWrapper::MergeFrom(from.repeated_value_nested_list());
- }
- if (from.has_repeated_value_nested_list2()) {
- mutable_repeated_value_nested_list2()->::google::protobuf::testing::RepeatedValueWrapper::MergeFrom(from.repeated_value_nested_list2());
- }
- if (from.has_repeated_value_nested_list3()) {
- mutable_repeated_value_nested_list3()->::google::protobuf::testing::RepeatedValueWrapper::MergeFrom(from.repeated_value_nested_list3());
- }
- if (from.has_repeated_listvalue()) {
- mutable_repeated_listvalue()->::google::protobuf::testing::RepeatedListValueWrapper::MergeFrom(from.repeated_listvalue());
- }
- if (from.has_map_of_struct()) {
- mutable_map_of_struct()->::google::protobuf::testing::MapOfStruct::MergeFrom(from.map_of_struct());
- }
- if (from.has_map_of_struct_value()) {
- mutable_map_of_struct_value()->::google::protobuf::testing::MapOfStruct::MergeFrom(from.map_of_struct_value());
- }
- if (from.has_map_of_listvalue()) {
- mutable_map_of_listvalue()->::google::protobuf::testing::MapOfStruct::MergeFrom(from.map_of_listvalue());
- }
- }
- void StructTestCases::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.StructTestCases)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void StructTestCases::CopyFrom(const StructTestCases& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.StructTestCases)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool StructTestCases::IsInitialized() const {
- return true;
- }
- void StructTestCases::Swap(StructTestCases* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void StructTestCases::InternalSwap(StructTestCases* other) {
- using std::swap;
- swap(empty_value_, other->empty_value_);
- swap(empty_value2_, other->empty_value2_);
- swap(null_value_, other->null_value_);
- swap(simple_struct_, other->simple_struct_);
- swap(longer_struct_, other->longer_struct_);
- swap(struct_with_nested_struct_, other->struct_with_nested_struct_);
- swap(struct_with_nested_list_, other->struct_with_nested_list_);
- swap(struct_with_list_of_nulls_, other->struct_with_list_of_nulls_);
- swap(struct_with_list_of_lists_, other->struct_with_list_of_lists_);
- swap(struct_with_list_of_structs_, other->struct_with_list_of_structs_);
- swap(struct_with_empty_list_, other->struct_with_empty_list_);
- swap(struct_with_list_with_empty_struct_, other->struct_with_list_with_empty_struct_);
- swap(top_level_struct_, other->top_level_struct_);
- swap(top_level_struct_with_empty_list_, other->top_level_struct_with_empty_list_);
- swap(top_level_struct_with_list_with_empty_struct_, other->top_level_struct_with_list_with_empty_struct_);
- swap(value_wrapper_simple_, other->value_wrapper_simple_);
- swap(value_wrapper_with_struct_, other->value_wrapper_with_struct_);
- swap(value_wrapper_with_list_, other->value_wrapper_with_list_);
- swap(value_wrapper_with_empty_list_, other->value_wrapper_with_empty_list_);
- swap(value_wrapper_with_list_with_empty_struct_, other->value_wrapper_with_list_with_empty_struct_);
- swap(list_value_wrapper_, other->list_value_wrapper_);
- swap(list_value_wrapper_with_empty_list_, other->list_value_wrapper_with_empty_list_);
- swap(list_value_wrapper_with_list_with_empty_struct_, other->list_value_wrapper_with_list_with_empty_struct_);
- swap(top_level_value_simple_, other->top_level_value_simple_);
- swap(top_level_value_with_struct_, other->top_level_value_with_struct_);
- swap(top_level_value_with_list_, other->top_level_value_with_list_);
- swap(top_level_value_with_empty_list_, other->top_level_value_with_empty_list_);
- swap(top_level_value_with_list_with_empty_struct_, other->top_level_value_with_list_with_empty_struct_);
- swap(top_level_listvalue_, other->top_level_listvalue_);
- swap(top_level_empty_listvalue_, other->top_level_empty_listvalue_);
- swap(top_level_listvalue_with_empty_struct_, other->top_level_listvalue_with_empty_struct_);
- swap(repeated_value_, other->repeated_value_);
- swap(repeated_value_nested_list_, other->repeated_value_nested_list_);
- swap(repeated_value_nested_list2_, other->repeated_value_nested_list2_);
- swap(repeated_value_nested_list3_, other->repeated_value_nested_list3_);
- swap(repeated_listvalue_, other->repeated_listvalue_);
- swap(map_of_struct_, other->map_of_struct_);
- swap(map_of_struct_value_, other->map_of_struct_value_);
- swap(map_of_listvalue_, other->map_of_listvalue_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata StructTestCases::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void StructWrapper::InitAsDefaultInstance() {
- ::google::protobuf::testing::_StructWrapper_default_instance_._instance.get_mutable()->struct__ = const_cast< ::google::protobuf::Struct*>(
- ::google::protobuf::Struct::internal_default_instance());
- }
- void StructWrapper::clear_struct_() {
- if (GetArenaNoVirtual() == NULL && struct__ != NULL) {
- delete struct__;
- }
- struct__ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int StructWrapper::kStructFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- StructWrapper::StructWrapper()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_StructWrapper.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.StructWrapper)
- }
- StructWrapper::StructWrapper(const StructWrapper& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_struct_()) {
- struct__ = new ::google::protobuf::Struct(*from.struct__);
- } else {
- struct__ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.StructWrapper)
- }
- void StructWrapper::SharedCtor() {
- struct__ = NULL;
- }
- StructWrapper::~StructWrapper() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.StructWrapper)
- SharedDtor();
- }
- void StructWrapper::SharedDtor() {
- if (this != internal_default_instance()) delete struct__;
- }
- void StructWrapper::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* StructWrapper::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const StructWrapper& StructWrapper::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_StructWrapper.base);
- return *internal_default_instance();
- }
- void StructWrapper::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.StructWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && struct__ != NULL) {
- delete struct__;
- }
- struct__ = NULL;
- _internal_metadata_.Clear();
- }
- bool StructWrapper::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.protobuf.testing.StructWrapper)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // .google.protobuf.Struct struct = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.protobuf.testing.StructWrapper)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.StructWrapper)
- return false;
- #undef DO_
- }
- void StructWrapper::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.StructWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Struct struct = 1;
- if (this->has_struct_()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_struct_(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.StructWrapper)
- }
- ::google::protobuf::uint8* StructWrapper::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.StructWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Struct struct = 1;
- if (this->has_struct_()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_struct_(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.StructWrapper)
- return target;
- }
- size_t StructWrapper::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.StructWrapper)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .google.protobuf.Struct struct = 1;
- if (this->has_struct_()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct__);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void StructWrapper::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.StructWrapper)
- GOOGLE_DCHECK_NE(&from, this);
- const StructWrapper* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const StructWrapper>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.StructWrapper)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.StructWrapper)
- MergeFrom(*source);
- }
- }
- void StructWrapper::MergeFrom(const StructWrapper& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.StructWrapper)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_struct_()) {
- mutable_struct_()->::google::protobuf::Struct::MergeFrom(from.struct_());
- }
- }
- void StructWrapper::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.StructWrapper)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void StructWrapper::CopyFrom(const StructWrapper& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.StructWrapper)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool StructWrapper::IsInitialized() const {
- return true;
- }
- void StructWrapper::Swap(StructWrapper* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void StructWrapper::InternalSwap(StructWrapper* other) {
- using std::swap;
- swap(struct__, other->struct__);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata StructWrapper::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void ValueWrapper::InitAsDefaultInstance() {
- ::google::protobuf::testing::_ValueWrapper_default_instance_._instance.get_mutable()->value_ = const_cast< ::google::protobuf::Value*>(
- ::google::protobuf::Value::internal_default_instance());
- }
- void ValueWrapper::clear_value() {
- if (GetArenaNoVirtual() == NULL && value_ != NULL) {
- delete value_;
- }
- value_ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int ValueWrapper::kValueFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- ValueWrapper::ValueWrapper()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_ValueWrapper.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.ValueWrapper)
- }
- ValueWrapper::ValueWrapper(const ValueWrapper& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_value()) {
- value_ = new ::google::protobuf::Value(*from.value_);
- } else {
- value_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.ValueWrapper)
- }
- void ValueWrapper::SharedCtor() {
- value_ = NULL;
- }
- ValueWrapper::~ValueWrapper() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.ValueWrapper)
- SharedDtor();
- }
- void ValueWrapper::SharedDtor() {
- if (this != internal_default_instance()) delete value_;
- }
- void ValueWrapper::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* ValueWrapper::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const ValueWrapper& ValueWrapper::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_ValueWrapper.base);
- return *internal_default_instance();
- }
- void ValueWrapper::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.ValueWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && value_ != NULL) {
- delete value_;
- }
- value_ = NULL;
- _internal_metadata_.Clear();
- }
- bool ValueWrapper::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.protobuf.testing.ValueWrapper)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // .google.protobuf.Value value = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.protobuf.testing.ValueWrapper)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.ValueWrapper)
- return false;
- #undef DO_
- }
- void ValueWrapper::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.ValueWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Value value = 1;
- if (this->has_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_value(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.ValueWrapper)
- }
- ::google::protobuf::uint8* ValueWrapper::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.ValueWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Value value = 1;
- if (this->has_value()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_value(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.ValueWrapper)
- return target;
- }
- size_t ValueWrapper::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.ValueWrapper)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .google.protobuf.Value value = 1;
- if (this->has_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *value_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void ValueWrapper::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.ValueWrapper)
- GOOGLE_DCHECK_NE(&from, this);
- const ValueWrapper* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const ValueWrapper>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.ValueWrapper)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.ValueWrapper)
- MergeFrom(*source);
- }
- }
- void ValueWrapper::MergeFrom(const ValueWrapper& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.ValueWrapper)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_value()) {
- mutable_value()->::google::protobuf::Value::MergeFrom(from.value());
- }
- }
- void ValueWrapper::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.ValueWrapper)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void ValueWrapper::CopyFrom(const ValueWrapper& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.ValueWrapper)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ValueWrapper::IsInitialized() const {
- return true;
- }
- void ValueWrapper::Swap(ValueWrapper* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void ValueWrapper::InternalSwap(ValueWrapper* other) {
- using std::swap;
- swap(value_, other->value_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata ValueWrapper::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void RepeatedValueWrapper::InitAsDefaultInstance() {
- }
- void RepeatedValueWrapper::clear_values() {
- values_.Clear();
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int RepeatedValueWrapper::kValuesFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- RepeatedValueWrapper::RepeatedValueWrapper()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_RepeatedValueWrapper.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.RepeatedValueWrapper)
- }
- RepeatedValueWrapper::RepeatedValueWrapper(const RepeatedValueWrapper& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- values_(from.values_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.RepeatedValueWrapper)
- }
- void RepeatedValueWrapper::SharedCtor() {
- }
- RepeatedValueWrapper::~RepeatedValueWrapper() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.RepeatedValueWrapper)
- SharedDtor();
- }
- void RepeatedValueWrapper::SharedDtor() {
- }
- void RepeatedValueWrapper::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* RepeatedValueWrapper::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const RepeatedValueWrapper& RepeatedValueWrapper::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_RepeatedValueWrapper.base);
- return *internal_default_instance();
- }
- void RepeatedValueWrapper::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.RepeatedValueWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- values_.Clear();
- _internal_metadata_.Clear();
- }
- bool RepeatedValueWrapper::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.protobuf.testing.RepeatedValueWrapper)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated .google.protobuf.Value values = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_values()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.protobuf.testing.RepeatedValueWrapper)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.RepeatedValueWrapper)
- return false;
- #undef DO_
- }
- void RepeatedValueWrapper::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.RepeatedValueWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .google.protobuf.Value values = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->values_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1,
- this->values(static_cast<int>(i)),
- output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.RepeatedValueWrapper)
- }
- ::google::protobuf::uint8* RepeatedValueWrapper::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.RepeatedValueWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .google.protobuf.Value values = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->values_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->values(static_cast<int>(i)), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.RepeatedValueWrapper)
- return target;
- }
- size_t RepeatedValueWrapper::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.RepeatedValueWrapper)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated .google.protobuf.Value values = 1;
- {
- unsigned int count = static_cast<unsigned int>(this->values_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->values(static_cast<int>(i)));
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void RepeatedValueWrapper::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.RepeatedValueWrapper)
- GOOGLE_DCHECK_NE(&from, this);
- const RepeatedValueWrapper* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const RepeatedValueWrapper>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.RepeatedValueWrapper)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.RepeatedValueWrapper)
- MergeFrom(*source);
- }
- }
- void RepeatedValueWrapper::MergeFrom(const RepeatedValueWrapper& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.RepeatedValueWrapper)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- values_.MergeFrom(from.values_);
- }
- void RepeatedValueWrapper::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.RepeatedValueWrapper)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void RepeatedValueWrapper::CopyFrom(const RepeatedValueWrapper& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.RepeatedValueWrapper)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool RepeatedValueWrapper::IsInitialized() const {
- return true;
- }
- void RepeatedValueWrapper::Swap(RepeatedValueWrapper* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void RepeatedValueWrapper::InternalSwap(RepeatedValueWrapper* other) {
- using std::swap;
- CastToBase(&values_)->InternalSwap(CastToBase(&other->values_));
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata RepeatedValueWrapper::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void ListValueWrapper::InitAsDefaultInstance() {
- ::google::protobuf::testing::_ListValueWrapper_default_instance_._instance.get_mutable()->shopping_list_ = const_cast< ::google::protobuf::ListValue*>(
- ::google::protobuf::ListValue::internal_default_instance());
- }
- void ListValueWrapper::clear_shopping_list() {
- if (GetArenaNoVirtual() == NULL && shopping_list_ != NULL) {
- delete shopping_list_;
- }
- shopping_list_ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int ListValueWrapper::kShoppingListFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- ListValueWrapper::ListValueWrapper()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_ListValueWrapper.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.ListValueWrapper)
- }
- ListValueWrapper::ListValueWrapper(const ListValueWrapper& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_shopping_list()) {
- shopping_list_ = new ::google::protobuf::ListValue(*from.shopping_list_);
- } else {
- shopping_list_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.ListValueWrapper)
- }
- void ListValueWrapper::SharedCtor() {
- shopping_list_ = NULL;
- }
- ListValueWrapper::~ListValueWrapper() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.ListValueWrapper)
- SharedDtor();
- }
- void ListValueWrapper::SharedDtor() {
- if (this != internal_default_instance()) delete shopping_list_;
- }
- void ListValueWrapper::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* ListValueWrapper::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const ListValueWrapper& ListValueWrapper::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_ListValueWrapper.base);
- return *internal_default_instance();
- }
- void ListValueWrapper::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.ListValueWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && shopping_list_ != NULL) {
- delete shopping_list_;
- }
- shopping_list_ = NULL;
- _internal_metadata_.Clear();
- }
- bool ListValueWrapper::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.protobuf.testing.ListValueWrapper)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // .google.protobuf.ListValue shopping_list = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_shopping_list()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.protobuf.testing.ListValueWrapper)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.ListValueWrapper)
- return false;
- #undef DO_
- }
- void ListValueWrapper::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.ListValueWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.ListValue shopping_list = 1;
- if (this->has_shopping_list()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_shopping_list(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.ListValueWrapper)
- }
- ::google::protobuf::uint8* ListValueWrapper::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.ListValueWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.ListValue shopping_list = 1;
- if (this->has_shopping_list()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_shopping_list(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.ListValueWrapper)
- return target;
- }
- size_t ListValueWrapper::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.ListValueWrapper)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .google.protobuf.ListValue shopping_list = 1;
- if (this->has_shopping_list()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *shopping_list_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void ListValueWrapper::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.ListValueWrapper)
- GOOGLE_DCHECK_NE(&from, this);
- const ListValueWrapper* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const ListValueWrapper>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.ListValueWrapper)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.ListValueWrapper)
- MergeFrom(*source);
- }
- }
- void ListValueWrapper::MergeFrom(const ListValueWrapper& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.ListValueWrapper)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_shopping_list()) {
- mutable_shopping_list()->::google::protobuf::ListValue::MergeFrom(from.shopping_list());
- }
- }
- void ListValueWrapper::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.ListValueWrapper)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void ListValueWrapper::CopyFrom(const ListValueWrapper& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.ListValueWrapper)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ListValueWrapper::IsInitialized() const {
- return true;
- }
- void ListValueWrapper::Swap(ListValueWrapper* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void ListValueWrapper::InternalSwap(ListValueWrapper* other) {
- using std::swap;
- swap(shopping_list_, other->shopping_list_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata ListValueWrapper::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void RepeatedListValueWrapper::InitAsDefaultInstance() {
- }
- void RepeatedListValueWrapper::clear_dimensions() {
- dimensions_.Clear();
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int RepeatedListValueWrapper::kDimensionsFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- RepeatedListValueWrapper::RepeatedListValueWrapper()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_RepeatedListValueWrapper.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.RepeatedListValueWrapper)
- }
- RepeatedListValueWrapper::RepeatedListValueWrapper(const RepeatedListValueWrapper& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- dimensions_(from.dimensions_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.RepeatedListValueWrapper)
- }
- void RepeatedListValueWrapper::SharedCtor() {
- }
- RepeatedListValueWrapper::~RepeatedListValueWrapper() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.RepeatedListValueWrapper)
- SharedDtor();
- }
- void RepeatedListValueWrapper::SharedDtor() {
- }
- void RepeatedListValueWrapper::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* RepeatedListValueWrapper::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const RepeatedListValueWrapper& RepeatedListValueWrapper::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_RepeatedListValueWrapper.base);
- return *internal_default_instance();
- }
- void RepeatedListValueWrapper::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.RepeatedListValueWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- dimensions_.Clear();
- _internal_metadata_.Clear();
- }
- bool RepeatedListValueWrapper::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.protobuf.testing.RepeatedListValueWrapper)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated .google.protobuf.ListValue dimensions = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_dimensions()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.protobuf.testing.RepeatedListValueWrapper)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.RepeatedListValueWrapper)
- return false;
- #undef DO_
- }
- void RepeatedListValueWrapper::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.RepeatedListValueWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .google.protobuf.ListValue dimensions = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->dimensions_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1,
- this->dimensions(static_cast<int>(i)),
- output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.RepeatedListValueWrapper)
- }
- ::google::protobuf::uint8* RepeatedListValueWrapper::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.RepeatedListValueWrapper)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .google.protobuf.ListValue dimensions = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->dimensions_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->dimensions(static_cast<int>(i)), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.RepeatedListValueWrapper)
- return target;
- }
- size_t RepeatedListValueWrapper::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.RepeatedListValueWrapper)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated .google.protobuf.ListValue dimensions = 1;
- {
- unsigned int count = static_cast<unsigned int>(this->dimensions_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->dimensions(static_cast<int>(i)));
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void RepeatedListValueWrapper::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.RepeatedListValueWrapper)
- GOOGLE_DCHECK_NE(&from, this);
- const RepeatedListValueWrapper* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const RepeatedListValueWrapper>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.RepeatedListValueWrapper)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.RepeatedListValueWrapper)
- MergeFrom(*source);
- }
- }
- void RepeatedListValueWrapper::MergeFrom(const RepeatedListValueWrapper& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.RepeatedListValueWrapper)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- dimensions_.MergeFrom(from.dimensions_);
- }
- void RepeatedListValueWrapper::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.RepeatedListValueWrapper)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void RepeatedListValueWrapper::CopyFrom(const RepeatedListValueWrapper& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.RepeatedListValueWrapper)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool RepeatedListValueWrapper::IsInitialized() const {
- return true;
- }
- void RepeatedListValueWrapper::Swap(RepeatedListValueWrapper* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void RepeatedListValueWrapper::InternalSwap(RepeatedListValueWrapper* other) {
- using std::swap;
- CastToBase(&dimensions_)->InternalSwap(CastToBase(&other->dimensions_));
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata RepeatedListValueWrapper::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- MapOfStruct_StructMapEntry_DoNotUse::MapOfStruct_StructMapEntry_DoNotUse() {}
- MapOfStruct_StructMapEntry_DoNotUse::MapOfStruct_StructMapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void MapOfStruct_StructMapEntry_DoNotUse::MergeFrom(const MapOfStruct_StructMapEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata MapOfStruct_StructMapEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[6];
- }
- void MapOfStruct_StructMapEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- MapOfStruct_ValueMapEntry_DoNotUse::MapOfStruct_ValueMapEntry_DoNotUse() {}
- MapOfStruct_ValueMapEntry_DoNotUse::MapOfStruct_ValueMapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void MapOfStruct_ValueMapEntry_DoNotUse::MergeFrom(const MapOfStruct_ValueMapEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata MapOfStruct_ValueMapEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[7];
- }
- void MapOfStruct_ValueMapEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- MapOfStruct_ListvalueMapEntry_DoNotUse::MapOfStruct_ListvalueMapEntry_DoNotUse() {}
- MapOfStruct_ListvalueMapEntry_DoNotUse::MapOfStruct_ListvalueMapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void MapOfStruct_ListvalueMapEntry_DoNotUse::MergeFrom(const MapOfStruct_ListvalueMapEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata MapOfStruct_ListvalueMapEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[8];
- }
- void MapOfStruct_ListvalueMapEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void MapOfStruct::InitAsDefaultInstance() {
- }
- void MapOfStruct::clear_struct_map() {
- struct_map_.Clear();
- }
- void MapOfStruct::clear_value_map() {
- value_map_.Clear();
- }
- void MapOfStruct::clear_listvalue_map() {
- listvalue_map_.Clear();
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int MapOfStruct::kStructMapFieldNumber;
- const int MapOfStruct::kValueMapFieldNumber;
- const int MapOfStruct::kListvalueMapFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- MapOfStruct::MapOfStruct()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_MapOfStruct.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.MapOfStruct)
- }
- MapOfStruct::MapOfStruct(const MapOfStruct& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- struct_map_.MergeFrom(from.struct_map_);
- value_map_.MergeFrom(from.value_map_);
- listvalue_map_.MergeFrom(from.listvalue_map_);
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.MapOfStruct)
- }
- void MapOfStruct::SharedCtor() {
- }
- MapOfStruct::~MapOfStruct() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.MapOfStruct)
- SharedDtor();
- }
- void MapOfStruct::SharedDtor() {
- }
- void MapOfStruct::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* MapOfStruct::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const MapOfStruct& MapOfStruct::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_MapOfStruct.base);
- return *internal_default_instance();
- }
- void MapOfStruct::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.MapOfStruct)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- struct_map_.Clear();
- value_map_.Clear();
- listvalue_map_.Clear();
- _internal_metadata_.Clear();
- }
- bool MapOfStruct::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.protobuf.testing.MapOfStruct)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // map<string, .google.protobuf.Struct> struct_map = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- MapOfStruct_StructMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- MapOfStruct_StructMapEntry_DoNotUse,
- ::std::string, ::google::protobuf::Struct,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::google::protobuf::Map< ::std::string, ::google::protobuf::Struct > > parser(&struct_map_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.key().data(), static_cast<int>(parser.key().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.MapOfStruct.StructMapEntry.key"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<string, .google.protobuf.Value> value_map = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- MapOfStruct_ValueMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- MapOfStruct_ValueMapEntry_DoNotUse,
- ::std::string, ::google::protobuf::Value,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::google::protobuf::Map< ::std::string, ::google::protobuf::Value > > parser(&value_map_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.key().data(), static_cast<int>(parser.key().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.MapOfStruct.ValueMapEntry.key"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<string, .google.protobuf.ListValue> listvalue_map = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- MapOfStruct_ListvalueMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- MapOfStruct_ListvalueMapEntry_DoNotUse,
- ::std::string, ::google::protobuf::ListValue,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue > > parser(&listvalue_map_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.key().data(), static_cast<int>(parser.key().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.MapOfStruct.ListvalueMapEntry.key"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.protobuf.testing.MapOfStruct)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.MapOfStruct)
- return false;
- #undef DO_
- }
- void MapOfStruct::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.MapOfStruct)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<string, .google.protobuf.Struct> struct_map = 1;
- if (!this->struct_map().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MapOfStruct.StructMapEntry.key");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->struct_map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->struct_map().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >::const_iterator
- it = this->struct_map().begin();
- it != this->struct_map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MapOfStruct_StructMapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(struct_map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<MapOfStruct_StructMapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >::const_iterator
- it = this->struct_map().begin();
- it != this->struct_map().end(); ++it) {
- entry.reset(struct_map_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- Utf8Check::Check(&*it);
- }
- }
- }
- // map<string, .google.protobuf.Value> value_map = 2;
- if (!this->value_map().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MapOfStruct.ValueMapEntry.key");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->value_map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->value_map().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::const_iterator
- it = this->value_map().begin();
- it != this->value_map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MapOfStruct_ValueMapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(value_map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, *entry, output);
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<MapOfStruct_ValueMapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::const_iterator
- it = this->value_map().begin();
- it != this->value_map().end(); ++it) {
- entry.reset(value_map_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, *entry, output);
- Utf8Check::Check(&*it);
- }
- }
- }
- // map<string, .google.protobuf.ListValue> listvalue_map = 3;
- if (!this->listvalue_map().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MapOfStruct.ListvalueMapEntry.key");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->listvalue_map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->listvalue_map().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >::const_iterator
- it = this->listvalue_map().begin();
- it != this->listvalue_map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MapOfStruct_ListvalueMapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(listvalue_map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, *entry, output);
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<MapOfStruct_ListvalueMapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >::const_iterator
- it = this->listvalue_map().begin();
- it != this->listvalue_map().end(); ++it) {
- entry.reset(listvalue_map_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, *entry, output);
- Utf8Check::Check(&*it);
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.MapOfStruct)
- }
- ::google::protobuf::uint8* MapOfStruct::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.MapOfStruct)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<string, .google.protobuf.Struct> struct_map = 1;
- if (!this->struct_map().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MapOfStruct.StructMapEntry.key");
- }
- };
- if (deterministic &&
- this->struct_map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->struct_map().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >::const_iterator
- it = this->struct_map().begin();
- it != this->struct_map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MapOfStruct_StructMapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(struct_map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<MapOfStruct_StructMapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >::const_iterator
- it = this->struct_map().begin();
- it != this->struct_map().end(); ++it) {
- entry.reset(struct_map_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- Utf8Check::Check(&*it);
- }
- }
- }
- // map<string, .google.protobuf.Value> value_map = 2;
- if (!this->value_map().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MapOfStruct.ValueMapEntry.key");
- }
- };
- if (deterministic &&
- this->value_map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->value_map().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::const_iterator
- it = this->value_map().begin();
- it != this->value_map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MapOfStruct_ValueMapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(value_map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 2, *entry, deterministic, target);
- ;
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<MapOfStruct_ValueMapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::const_iterator
- it = this->value_map().begin();
- it != this->value_map().end(); ++it) {
- entry.reset(value_map_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 2, *entry, deterministic, target);
- ;
- Utf8Check::Check(&*it);
- }
- }
- }
- // map<string, .google.protobuf.ListValue> listvalue_map = 3;
- if (!this->listvalue_map().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MapOfStruct.ListvalueMapEntry.key");
- }
- };
- if (deterministic &&
- this->listvalue_map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->listvalue_map().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >::const_iterator
- it = this->listvalue_map().begin();
- it != this->listvalue_map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MapOfStruct_ListvalueMapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(listvalue_map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 3, *entry, deterministic, target);
- ;
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<MapOfStruct_ListvalueMapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >::const_iterator
- it = this->listvalue_map().begin();
- it != this->listvalue_map().end(); ++it) {
- entry.reset(listvalue_map_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 3, *entry, deterministic, target);
- ;
- Utf8Check::Check(&*it);
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.MapOfStruct)
- return target;
- }
- size_t MapOfStruct::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.MapOfStruct)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // map<string, .google.protobuf.Struct> struct_map = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->struct_map_size());
- {
- ::std::unique_ptr<MapOfStruct_StructMapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >::const_iterator
- it = this->struct_map().begin();
- it != this->struct_map().end(); ++it) {
- entry.reset(struct_map_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- }
- // map<string, .google.protobuf.Value> value_map = 2;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->value_map_size());
- {
- ::std::unique_ptr<MapOfStruct_ValueMapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::const_iterator
- it = this->value_map().begin();
- it != this->value_map().end(); ++it) {
- entry.reset(value_map_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- }
- // map<string, .google.protobuf.ListValue> listvalue_map = 3;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->listvalue_map_size());
- {
- ::std::unique_ptr<MapOfStruct_ListvalueMapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >::const_iterator
- it = this->listvalue_map().begin();
- it != this->listvalue_map().end(); ++it) {
- entry.reset(listvalue_map_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void MapOfStruct::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.MapOfStruct)
- GOOGLE_DCHECK_NE(&from, this);
- const MapOfStruct* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const MapOfStruct>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.MapOfStruct)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.MapOfStruct)
- MergeFrom(*source);
- }
- }
- void MapOfStruct::MergeFrom(const MapOfStruct& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.MapOfStruct)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- struct_map_.MergeFrom(from.struct_map_);
- value_map_.MergeFrom(from.value_map_);
- listvalue_map_.MergeFrom(from.listvalue_map_);
- }
- void MapOfStruct::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.MapOfStruct)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void MapOfStruct::CopyFrom(const MapOfStruct& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.MapOfStruct)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool MapOfStruct::IsInitialized() const {
- return true;
- }
- void MapOfStruct::Swap(MapOfStruct* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void MapOfStruct::InternalSwap(MapOfStruct* other) {
- using std::swap;
- struct_map_.Swap(&other->struct_map_);
- value_map_.Swap(&other->value_map_);
- listvalue_map_.Swap(&other->listvalue_map_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata MapOfStruct::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Dummy::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Dummy::kTextFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Dummy::Dummy()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_Dummy.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.Dummy)
- }
- Dummy::Dummy(const Dummy& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- text_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.text().size() > 0) {
- text_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.text_);
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.Dummy)
- }
- void Dummy::SharedCtor() {
- text_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- Dummy::~Dummy() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.Dummy)
- SharedDtor();
- }
- void Dummy::SharedDtor() {
- text_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void Dummy::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* Dummy::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Dummy& Dummy::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_Dummy.base);
- return *internal_default_instance();
- }
- void Dummy::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.Dummy)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- _internal_metadata_.Clear();
- }
- bool Dummy::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.protobuf.testing.Dummy)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // string text = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_text()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->text().data(), static_cast<int>(this->text().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.Dummy.text"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.protobuf.testing.Dummy)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.Dummy)
- return false;
- #undef DO_
- }
- void Dummy::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.Dummy)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string text = 1;
- if (this->text().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->text().data(), static_cast<int>(this->text().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.Dummy.text");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->text(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.Dummy)
- }
- ::google::protobuf::uint8* Dummy::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.Dummy)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string text = 1;
- if (this->text().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->text().data(), static_cast<int>(this->text().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.Dummy.text");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->text(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.Dummy)
- return target;
- }
- size_t Dummy::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.Dummy)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // string text = 1;
- if (this->text().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->text());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Dummy::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.Dummy)
- GOOGLE_DCHECK_NE(&from, this);
- const Dummy* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Dummy>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.Dummy)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.Dummy)
- MergeFrom(*source);
- }
- }
- void Dummy::MergeFrom(const Dummy& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.Dummy)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.text().size() > 0) {
- text_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.text_);
- }
- }
- void Dummy::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.Dummy)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Dummy::CopyFrom(const Dummy& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.Dummy)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Dummy::IsInitialized() const {
- return true;
- }
- void Dummy::Swap(Dummy* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Dummy::InternalSwap(Dummy* other) {
- using std::swap;
- text_.Swap(&other->text_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata Dummy::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void StructType::InitAsDefaultInstance() {
- ::google::protobuf::testing::_StructType_default_instance_._instance.get_mutable()->object_ = const_cast< ::google::protobuf::Struct*>(
- ::google::protobuf::Struct::internal_default_instance());
- }
- void StructType::clear_object() {
- if (GetArenaNoVirtual() == NULL && object_ != NULL) {
- delete object_;
- }
- object_ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int StructType::kObjectFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- StructType::StructType()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_StructType.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.StructType)
- }
- StructType::StructType(const StructType& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_object()) {
- object_ = new ::google::protobuf::Struct(*from.object_);
- } else {
- object_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.StructType)
- }
- void StructType::SharedCtor() {
- object_ = NULL;
- }
- StructType::~StructType() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.StructType)
- SharedDtor();
- }
- void StructType::SharedDtor() {
- if (this != internal_default_instance()) delete object_;
- }
- void StructType::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* StructType::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const StructType& StructType::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::scc_info_StructType.base);
- return *internal_default_instance();
- }
- void StructType::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.StructType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && object_ != NULL) {
- delete object_;
- }
- object_ = NULL;
- _internal_metadata_.Clear();
- }
- bool StructType::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.protobuf.testing.StructType)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // .google.protobuf.Struct object = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_object()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.protobuf.testing.StructType)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.StructType)
- return false;
- #undef DO_
- }
- void StructType::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.StructType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Struct object = 1;
- if (this->has_object()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_object(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.StructType)
- }
- ::google::protobuf::uint8* StructType::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.StructType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Struct object = 1;
- if (this->has_object()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_object(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.StructType)
- return target;
- }
- size_t StructType::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.StructType)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .google.protobuf.Struct object = 1;
- if (this->has_object()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *object_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void StructType::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.StructType)
- GOOGLE_DCHECK_NE(&from, this);
- const StructType* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const StructType>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.StructType)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.StructType)
- MergeFrom(*source);
- }
- }
- void StructType::MergeFrom(const StructType& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.StructType)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_object()) {
- mutable_object()->::google::protobuf::Struct::MergeFrom(from.object());
- }
- }
- void StructType::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.StructType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void StructType::CopyFrom(const StructType& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.StructType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool StructType::IsInitialized() const {
- return true;
- }
- void StructType::Swap(StructType* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void StructType::InternalSwap(StructType* other) {
- using std::swap;
- swap(object_, other->object_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata StructType::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace testing
- } // namespace protobuf
- } // namespace google
- namespace google {
- namespace protobuf {
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::StructTestCases* Arena::CreateMaybeMessage< ::google::protobuf::testing::StructTestCases >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::StructTestCases >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::StructWrapper* Arena::CreateMaybeMessage< ::google::protobuf::testing::StructWrapper >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::StructWrapper >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::ValueWrapper* Arena::CreateMaybeMessage< ::google::protobuf::testing::ValueWrapper >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::ValueWrapper >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::RepeatedValueWrapper* Arena::CreateMaybeMessage< ::google::protobuf::testing::RepeatedValueWrapper >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::RepeatedValueWrapper >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::ListValueWrapper* Arena::CreateMaybeMessage< ::google::protobuf::testing::ListValueWrapper >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::ListValueWrapper >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::RepeatedListValueWrapper* Arena::CreateMaybeMessage< ::google::protobuf::testing::RepeatedListValueWrapper >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::RepeatedListValueWrapper >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::MapOfStruct_StructMapEntry_DoNotUse* Arena::CreateMaybeMessage< ::google::protobuf::testing::MapOfStruct_StructMapEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::MapOfStruct_StructMapEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::MapOfStruct_ValueMapEntry_DoNotUse* Arena::CreateMaybeMessage< ::google::protobuf::testing::MapOfStruct_ValueMapEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::MapOfStruct_ValueMapEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::MapOfStruct_ListvalueMapEntry_DoNotUse* Arena::CreateMaybeMessage< ::google::protobuf::testing::MapOfStruct_ListvalueMapEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::MapOfStruct_ListvalueMapEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::MapOfStruct* Arena::CreateMaybeMessage< ::google::protobuf::testing::MapOfStruct >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::MapOfStruct >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::Dummy* Arena::CreateMaybeMessage< ::google::protobuf::testing::Dummy >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::Dummy >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::StructType* Arena::CreateMaybeMessage< ::google::protobuf::testing::StructType >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::StructType >(arena);
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
|