books.pb.h 196 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/util/internal/testdata/books.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/generated_enum_reflection.h>
  28. #include <google/protobuf/unknown_field_set.h>
  29. // @@protoc_insertion_point(includes)
  30. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto
  31. namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto {
  32. // Internal implementation detail -- do not use these members.
  33. struct TableStruct {
  34. static const ::google::protobuf::internal::ParseTableField entries[];
  35. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  36. static const ::google::protobuf::internal::ParseTable schema[13];
  37. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  38. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  39. static const ::google::protobuf::uint32 offsets[];
  40. };
  41. void AddDescriptors();
  42. } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto
  43. namespace google {
  44. namespace protobuf {
  45. namespace testing {
  46. class Author;
  47. class AuthorDefaultTypeInternal;
  48. extern AuthorDefaultTypeInternal _Author_default_instance_;
  49. class BadAuthor;
  50. class BadAuthorDefaultTypeInternal;
  51. extern BadAuthorDefaultTypeInternal _BadAuthor_default_instance_;
  52. class BadNestedBook;
  53. class BadNestedBookDefaultTypeInternal;
  54. extern BadNestedBookDefaultTypeInternal _BadNestedBook_default_instance_;
  55. class Book;
  56. class BookDefaultTypeInternal;
  57. extern BookDefaultTypeInternal _Book_default_instance_;
  58. class Book_Data;
  59. class Book_DataDefaultTypeInternal;
  60. extern Book_DataDefaultTypeInternal _Book_Data_default_instance_;
  61. class Book_Label;
  62. class Book_LabelDefaultTypeInternal;
  63. extern Book_LabelDefaultTypeInternal _Book_Label_default_instance_;
  64. class Cyclic;
  65. class CyclicDefaultTypeInternal;
  66. extern CyclicDefaultTypeInternal _Cyclic_default_instance_;
  67. class NestedBook;
  68. class NestedBookDefaultTypeInternal;
  69. extern NestedBookDefaultTypeInternal _NestedBook_default_instance_;
  70. class PackedPrimitive;
  71. class PackedPrimitiveDefaultTypeInternal;
  72. extern PackedPrimitiveDefaultTypeInternal _PackedPrimitive_default_instance_;
  73. class Primitive;
  74. class PrimitiveDefaultTypeInternal;
  75. extern PrimitiveDefaultTypeInternal _Primitive_default_instance_;
  76. class Publisher;
  77. class PublisherDefaultTypeInternal;
  78. extern PublisherDefaultTypeInternal _Publisher_default_instance_;
  79. class TestJsonName1;
  80. class TestJsonName1DefaultTypeInternal;
  81. extern TestJsonName1DefaultTypeInternal _TestJsonName1_default_instance_;
  82. class TestJsonName2;
  83. class TestJsonName2DefaultTypeInternal;
  84. extern TestJsonName2DefaultTypeInternal _TestJsonName2_default_instance_;
  85. } // namespace testing
  86. } // namespace protobuf
  87. } // namespace google
  88. namespace google {
  89. namespace protobuf {
  90. template<> ::google::protobuf::testing::Author* Arena::CreateMaybeMessage<::google::protobuf::testing::Author>(Arena*);
  91. template<> ::google::protobuf::testing::BadAuthor* Arena::CreateMaybeMessage<::google::protobuf::testing::BadAuthor>(Arena*);
  92. template<> ::google::protobuf::testing::BadNestedBook* Arena::CreateMaybeMessage<::google::protobuf::testing::BadNestedBook>(Arena*);
  93. template<> ::google::protobuf::testing::Book* Arena::CreateMaybeMessage<::google::protobuf::testing::Book>(Arena*);
  94. template<> ::google::protobuf::testing::Book_Data* Arena::CreateMaybeMessage<::google::protobuf::testing::Book_Data>(Arena*);
  95. template<> ::google::protobuf::testing::Book_Label* Arena::CreateMaybeMessage<::google::protobuf::testing::Book_Label>(Arena*);
  96. template<> ::google::protobuf::testing::Cyclic* Arena::CreateMaybeMessage<::google::protobuf::testing::Cyclic>(Arena*);
  97. template<> ::google::protobuf::testing::NestedBook* Arena::CreateMaybeMessage<::google::protobuf::testing::NestedBook>(Arena*);
  98. template<> ::google::protobuf::testing::PackedPrimitive* Arena::CreateMaybeMessage<::google::protobuf::testing::PackedPrimitive>(Arena*);
  99. template<> ::google::protobuf::testing::Primitive* Arena::CreateMaybeMessage<::google::protobuf::testing::Primitive>(Arena*);
  100. template<> ::google::protobuf::testing::Publisher* Arena::CreateMaybeMessage<::google::protobuf::testing::Publisher>(Arena*);
  101. template<> ::google::protobuf::testing::TestJsonName1* Arena::CreateMaybeMessage<::google::protobuf::testing::TestJsonName1>(Arena*);
  102. template<> ::google::protobuf::testing::TestJsonName2* Arena::CreateMaybeMessage<::google::protobuf::testing::TestJsonName2>(Arena*);
  103. } // namespace protobuf
  104. } // namespace google
  105. namespace google {
  106. namespace protobuf {
  107. namespace testing {
  108. enum Book_Type {
  109. Book_Type_FICTION = 1,
  110. Book_Type_KIDS = 2,
  111. Book_Type_ACTION_AND_ADVENTURE = 3,
  112. Book_Type_arts_and_photography = 4,
  113. Book_Type_I18N_Tech = 5
  114. };
  115. bool Book_Type_IsValid(int value);
  116. const Book_Type Book_Type_Type_MIN = Book_Type_FICTION;
  117. const Book_Type Book_Type_Type_MAX = Book_Type_I18N_Tech;
  118. const int Book_Type_Type_ARRAYSIZE = Book_Type_Type_MAX + 1;
  119. const ::google::protobuf::EnumDescriptor* Book_Type_descriptor();
  120. inline const ::std::string& Book_Type_Name(Book_Type value) {
  121. return ::google::protobuf::internal::NameOfEnum(
  122. Book_Type_descriptor(), value);
  123. }
  124. inline bool Book_Type_Parse(
  125. const ::std::string& name, Book_Type* value) {
  126. return ::google::protobuf::internal::ParseNamedEnum<Book_Type>(
  127. Book_Type_descriptor(), name, value);
  128. }
  129. // ===================================================================
  130. class Book_Data : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Book.Data) */ {
  131. public:
  132. Book_Data();
  133. virtual ~Book_Data();
  134. Book_Data(const Book_Data& from);
  135. inline Book_Data& operator=(const Book_Data& from) {
  136. CopyFrom(from);
  137. return *this;
  138. }
  139. #if LANG_CXX11
  140. Book_Data(Book_Data&& from) noexcept
  141. : Book_Data() {
  142. *this = ::std::move(from);
  143. }
  144. inline Book_Data& operator=(Book_Data&& from) noexcept {
  145. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  146. if (this != &from) InternalSwap(&from);
  147. } else {
  148. CopyFrom(from);
  149. }
  150. return *this;
  151. }
  152. #endif
  153. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  154. return _internal_metadata_.unknown_fields();
  155. }
  156. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  157. return _internal_metadata_.mutable_unknown_fields();
  158. }
  159. static const ::google::protobuf::Descriptor* descriptor();
  160. static const Book_Data& default_instance();
  161. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  162. static inline const Book_Data* internal_default_instance() {
  163. return reinterpret_cast<const Book_Data*>(
  164. &_Book_Data_default_instance_);
  165. }
  166. static constexpr int kIndexInFileMessages =
  167. 0;
  168. void Swap(Book_Data* other);
  169. friend void swap(Book_Data& a, Book_Data& b) {
  170. a.Swap(&b);
  171. }
  172. // implements Message ----------------------------------------------
  173. inline Book_Data* New() const final {
  174. return CreateMaybeMessage<Book_Data>(NULL);
  175. }
  176. Book_Data* New(::google::protobuf::Arena* arena) const final {
  177. return CreateMaybeMessage<Book_Data>(arena);
  178. }
  179. void CopyFrom(const ::google::protobuf::Message& from) final;
  180. void MergeFrom(const ::google::protobuf::Message& from) final;
  181. void CopyFrom(const Book_Data& from);
  182. void MergeFrom(const Book_Data& from);
  183. void Clear() final;
  184. bool IsInitialized() const final;
  185. size_t ByteSizeLong() const final;
  186. bool MergePartialFromCodedStream(
  187. ::google::protobuf::io::CodedInputStream* input) final;
  188. void SerializeWithCachedSizes(
  189. ::google::protobuf::io::CodedOutputStream* output) const final;
  190. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  191. bool deterministic, ::google::protobuf::uint8* target) const final;
  192. int GetCachedSize() const final { return _cached_size_.Get(); }
  193. private:
  194. void SharedCtor();
  195. void SharedDtor();
  196. void SetCachedSize(int size) const final;
  197. void InternalSwap(Book_Data* other);
  198. private:
  199. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  200. return NULL;
  201. }
  202. inline void* MaybeArenaPtr() const {
  203. return NULL;
  204. }
  205. public:
  206. ::google::protobuf::Metadata GetMetadata() const final;
  207. // nested types ----------------------------------------------------
  208. // accessors -------------------------------------------------------
  209. // optional string copyright = 8;
  210. bool has_copyright() const;
  211. void clear_copyright();
  212. static const int kCopyrightFieldNumber = 8;
  213. const ::std::string& copyright() const;
  214. void set_copyright(const ::std::string& value);
  215. #if LANG_CXX11
  216. void set_copyright(::std::string&& value);
  217. #endif
  218. void set_copyright(const char* value);
  219. void set_copyright(const char* value, size_t size);
  220. ::std::string* mutable_copyright();
  221. ::std::string* release_copyright();
  222. void set_allocated_copyright(::std::string* copyright);
  223. // optional uint32 year = 7;
  224. bool has_year() const;
  225. void clear_year();
  226. static const int kYearFieldNumber = 7;
  227. ::google::protobuf::uint32 year() const;
  228. void set_year(::google::protobuf::uint32 value);
  229. // @@protoc_insertion_point(class_scope:google.protobuf.testing.Book.Data)
  230. private:
  231. void set_has_year();
  232. void clear_has_year();
  233. void set_has_copyright();
  234. void clear_has_copyright();
  235. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  236. ::google::protobuf::internal::HasBits<1> _has_bits_;
  237. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  238. ::google::protobuf::internal::ArenaStringPtr copyright_;
  239. ::google::protobuf::uint32 year_;
  240. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto::TableStruct;
  241. };
  242. // -------------------------------------------------------------------
  243. class Book_Label : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Book.Label) */ {
  244. public:
  245. Book_Label();
  246. virtual ~Book_Label();
  247. Book_Label(const Book_Label& from);
  248. inline Book_Label& operator=(const Book_Label& from) {
  249. CopyFrom(from);
  250. return *this;
  251. }
  252. #if LANG_CXX11
  253. Book_Label(Book_Label&& from) noexcept
  254. : Book_Label() {
  255. *this = ::std::move(from);
  256. }
  257. inline Book_Label& operator=(Book_Label&& from) noexcept {
  258. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  259. if (this != &from) InternalSwap(&from);
  260. } else {
  261. CopyFrom(from);
  262. }
  263. return *this;
  264. }
  265. #endif
  266. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  267. return _internal_metadata_.unknown_fields();
  268. }
  269. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  270. return _internal_metadata_.mutable_unknown_fields();
  271. }
  272. static const ::google::protobuf::Descriptor* descriptor();
  273. static const Book_Label& default_instance();
  274. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  275. static inline const Book_Label* internal_default_instance() {
  276. return reinterpret_cast<const Book_Label*>(
  277. &_Book_Label_default_instance_);
  278. }
  279. static constexpr int kIndexInFileMessages =
  280. 1;
  281. void Swap(Book_Label* other);
  282. friend void swap(Book_Label& a, Book_Label& b) {
  283. a.Swap(&b);
  284. }
  285. // implements Message ----------------------------------------------
  286. inline Book_Label* New() const final {
  287. return CreateMaybeMessage<Book_Label>(NULL);
  288. }
  289. Book_Label* New(::google::protobuf::Arena* arena) const final {
  290. return CreateMaybeMessage<Book_Label>(arena);
  291. }
  292. void CopyFrom(const ::google::protobuf::Message& from) final;
  293. void MergeFrom(const ::google::protobuf::Message& from) final;
  294. void CopyFrom(const Book_Label& from);
  295. void MergeFrom(const Book_Label& from);
  296. void Clear() final;
  297. bool IsInitialized() const final;
  298. size_t ByteSizeLong() const final;
  299. bool MergePartialFromCodedStream(
  300. ::google::protobuf::io::CodedInputStream* input) final;
  301. void SerializeWithCachedSizes(
  302. ::google::protobuf::io::CodedOutputStream* output) const final;
  303. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  304. bool deterministic, ::google::protobuf::uint8* target) const final;
  305. int GetCachedSize() const final { return _cached_size_.Get(); }
  306. private:
  307. void SharedCtor();
  308. void SharedDtor();
  309. void SetCachedSize(int size) const final;
  310. void InternalSwap(Book_Label* other);
  311. private:
  312. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  313. return NULL;
  314. }
  315. inline void* MaybeArenaPtr() const {
  316. return NULL;
  317. }
  318. public:
  319. ::google::protobuf::Metadata GetMetadata() const final;
  320. // nested types ----------------------------------------------------
  321. // accessors -------------------------------------------------------
  322. // optional string key = 1;
  323. bool has_key() const;
  324. void clear_key();
  325. static const int kKeyFieldNumber = 1;
  326. const ::std::string& key() const;
  327. void set_key(const ::std::string& value);
  328. #if LANG_CXX11
  329. void set_key(::std::string&& value);
  330. #endif
  331. void set_key(const char* value);
  332. void set_key(const char* value, size_t size);
  333. ::std::string* mutable_key();
  334. ::std::string* release_key();
  335. void set_allocated_key(::std::string* key);
  336. // optional string value = 2;
  337. bool has_value() const;
  338. void clear_value();
  339. static const int kValueFieldNumber = 2;
  340. const ::std::string& value() const;
  341. void set_value(const ::std::string& value);
  342. #if LANG_CXX11
  343. void set_value(::std::string&& value);
  344. #endif
  345. void set_value(const char* value);
  346. void set_value(const char* value, size_t size);
  347. ::std::string* mutable_value();
  348. ::std::string* release_value();
  349. void set_allocated_value(::std::string* value);
  350. // @@protoc_insertion_point(class_scope:google.protobuf.testing.Book.Label)
  351. private:
  352. void set_has_key();
  353. void clear_has_key();
  354. void set_has_value();
  355. void clear_has_value();
  356. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  357. ::google::protobuf::internal::HasBits<1> _has_bits_;
  358. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  359. ::google::protobuf::internal::ArenaStringPtr key_;
  360. ::google::protobuf::internal::ArenaStringPtr value_;
  361. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto::TableStruct;
  362. };
  363. // -------------------------------------------------------------------
  364. class Book : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Book) */ {
  365. public:
  366. Book();
  367. virtual ~Book();
  368. Book(const Book& from);
  369. inline Book& operator=(const Book& from) {
  370. CopyFrom(from);
  371. return *this;
  372. }
  373. #if LANG_CXX11
  374. Book(Book&& from) noexcept
  375. : Book() {
  376. *this = ::std::move(from);
  377. }
  378. inline Book& operator=(Book&& from) noexcept {
  379. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  380. if (this != &from) InternalSwap(&from);
  381. } else {
  382. CopyFrom(from);
  383. }
  384. return *this;
  385. }
  386. #endif
  387. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  388. return _internal_metadata_.unknown_fields();
  389. }
  390. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  391. return _internal_metadata_.mutable_unknown_fields();
  392. }
  393. static const ::google::protobuf::Descriptor* descriptor();
  394. static const Book& default_instance();
  395. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  396. static inline const Book* internal_default_instance() {
  397. return reinterpret_cast<const Book*>(
  398. &_Book_default_instance_);
  399. }
  400. static constexpr int kIndexInFileMessages =
  401. 2;
  402. void Swap(Book* other);
  403. friend void swap(Book& a, Book& b) {
  404. a.Swap(&b);
  405. }
  406. // implements Message ----------------------------------------------
  407. inline Book* New() const final {
  408. return CreateMaybeMessage<Book>(NULL);
  409. }
  410. Book* New(::google::protobuf::Arena* arena) const final {
  411. return CreateMaybeMessage<Book>(arena);
  412. }
  413. void CopyFrom(const ::google::protobuf::Message& from) final;
  414. void MergeFrom(const ::google::protobuf::Message& from) final;
  415. void CopyFrom(const Book& from);
  416. void MergeFrom(const Book& from);
  417. void Clear() final;
  418. bool IsInitialized() const final;
  419. size_t ByteSizeLong() const final;
  420. bool MergePartialFromCodedStream(
  421. ::google::protobuf::io::CodedInputStream* input) final;
  422. void SerializeWithCachedSizes(
  423. ::google::protobuf::io::CodedOutputStream* output) const final;
  424. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  425. bool deterministic, ::google::protobuf::uint8* target) const final;
  426. int GetCachedSize() const final { return _cached_size_.Get(); }
  427. private:
  428. void SharedCtor();
  429. void SharedDtor();
  430. void SetCachedSize(int size) const final;
  431. void InternalSwap(Book* other);
  432. private:
  433. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  434. return NULL;
  435. }
  436. inline void* MaybeArenaPtr() const {
  437. return NULL;
  438. }
  439. public:
  440. ::google::protobuf::Metadata GetMetadata() const final;
  441. // nested types ----------------------------------------------------
  442. typedef Book_Data Data;
  443. typedef Book_Label Label;
  444. typedef Book_Type Type;
  445. static const Type FICTION =
  446. Book_Type_FICTION;
  447. static const Type KIDS =
  448. Book_Type_KIDS;
  449. static const Type ACTION_AND_ADVENTURE =
  450. Book_Type_ACTION_AND_ADVENTURE;
  451. static const Type arts_and_photography =
  452. Book_Type_arts_and_photography;
  453. static const Type I18N_Tech =
  454. Book_Type_I18N_Tech;
  455. static inline bool Type_IsValid(int value) {
  456. return Book_Type_IsValid(value);
  457. }
  458. static const Type Type_MIN =
  459. Book_Type_Type_MIN;
  460. static const Type Type_MAX =
  461. Book_Type_Type_MAX;
  462. static const int Type_ARRAYSIZE =
  463. Book_Type_Type_ARRAYSIZE;
  464. static inline const ::google::protobuf::EnumDescriptor*
  465. Type_descriptor() {
  466. return Book_Type_descriptor();
  467. }
  468. static inline const ::std::string& Type_Name(Type value) {
  469. return Book_Type_Name(value);
  470. }
  471. static inline bool Type_Parse(const ::std::string& name,
  472. Type* value) {
  473. return Book_Type_Parse(name, value);
  474. }
  475. // accessors -------------------------------------------------------
  476. // repeated .google.protobuf.testing.Book.Label labels = 10;
  477. int labels_size() const;
  478. void clear_labels();
  479. static const int kLabelsFieldNumber = 10;
  480. ::google::protobuf::testing::Book_Label* mutable_labels(int index);
  481. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Book_Label >*
  482. mutable_labels();
  483. const ::google::protobuf::testing::Book_Label& labels(int index) const;
  484. ::google::protobuf::testing::Book_Label* add_labels();
  485. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Book_Label >&
  486. labels() const;
  487. // optional string title = 1;
  488. bool has_title() const;
  489. void clear_title();
  490. static const int kTitleFieldNumber = 1;
  491. const ::std::string& title() const;
  492. void set_title(const ::std::string& value);
  493. #if LANG_CXX11
  494. void set_title(::std::string&& value);
  495. #endif
  496. void set_title(const char* value);
  497. void set_title(const char* value, size_t size);
  498. ::std::string* mutable_title();
  499. ::std::string* release_title();
  500. void set_allocated_title(::std::string* title);
  501. // optional bytes content = 5;
  502. bool has_content() const;
  503. void clear_content();
  504. static const int kContentFieldNumber = 5;
  505. const ::std::string& content() const;
  506. void set_content(const ::std::string& value);
  507. #if LANG_CXX11
  508. void set_content(::std::string&& value);
  509. #endif
  510. void set_content(const char* value);
  511. void set_content(const void* value, size_t size);
  512. ::std::string* mutable_content();
  513. ::std::string* release_content();
  514. void set_allocated_content(::std::string* content);
  515. // optional .google.protobuf.testing.Author author = 2;
  516. bool has_author() const;
  517. void clear_author();
  518. static const int kAuthorFieldNumber = 2;
  519. private:
  520. const ::google::protobuf::testing::Author& _internal_author() const;
  521. public:
  522. const ::google::protobuf::testing::Author& author() const;
  523. ::google::protobuf::testing::Author* release_author();
  524. ::google::protobuf::testing::Author* mutable_author();
  525. void set_allocated_author(::google::protobuf::testing::Author* author);
  526. // optional group Data = 6 { ... };
  527. bool has_data() const;
  528. void clear_data();
  529. static const int kDataFieldNumber = 6;
  530. private:
  531. const ::google::protobuf::testing::Book_Data& _internal_data() const;
  532. public:
  533. const ::google::protobuf::testing::Book_Data& data() const;
  534. ::google::protobuf::testing::Book_Data* release_data();
  535. ::google::protobuf::testing::Book_Data* mutable_data();
  536. void set_allocated_data(::google::protobuf::testing::Book_Data* data);
  537. // optional .google.protobuf.testing.Publisher publisher = 9;
  538. bool has_publisher() const;
  539. void clear_publisher();
  540. static const int kPublisherFieldNumber = 9;
  541. private:
  542. const ::google::protobuf::testing::Publisher& _internal_publisher() const;
  543. public:
  544. const ::google::protobuf::testing::Publisher& publisher() const;
  545. ::google::protobuf::testing::Publisher* release_publisher();
  546. ::google::protobuf::testing::Publisher* mutable_publisher();
  547. void set_allocated_publisher(::google::protobuf::testing::Publisher* publisher);
  548. // optional int64 published = 4;
  549. bool has_published() const;
  550. void clear_published();
  551. static const int kPublishedFieldNumber = 4;
  552. ::google::protobuf::int64 published() const;
  553. void set_published(::google::protobuf::int64 value);
  554. // optional uint32 length = 3;
  555. bool has_length() const;
  556. void clear_length();
  557. static const int kLengthFieldNumber = 3;
  558. ::google::protobuf::uint32 length() const;
  559. void set_length(::google::protobuf::uint32 value);
  560. // optional .google.protobuf.testing.Book.Type type = 11;
  561. bool has_type() const;
  562. void clear_type();
  563. static const int kTypeFieldNumber = 11;
  564. ::google::protobuf::testing::Book_Type type() const;
  565. void set_type(::google::protobuf::testing::Book_Type value);
  566. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(Book)
  567. // @@protoc_insertion_point(class_scope:google.protobuf.testing.Book)
  568. private:
  569. void set_has_title();
  570. void clear_has_title();
  571. void set_has_author();
  572. void clear_has_author();
  573. void set_has_length();
  574. void clear_has_length();
  575. void set_has_published();
  576. void clear_has_published();
  577. void set_has_content();
  578. void clear_has_content();
  579. void set_has_data();
  580. void clear_has_data();
  581. void set_has_publisher();
  582. void clear_has_publisher();
  583. void set_has_type();
  584. void clear_has_type();
  585. ::google::protobuf::internal::ExtensionSet _extensions_;
  586. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  587. ::google::protobuf::internal::HasBits<1> _has_bits_;
  588. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  589. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Book_Label > labels_;
  590. ::google::protobuf::internal::ArenaStringPtr title_;
  591. ::google::protobuf::internal::ArenaStringPtr content_;
  592. ::google::protobuf::testing::Author* author_;
  593. ::google::protobuf::testing::Book_Data* data_;
  594. ::google::protobuf::testing::Publisher* publisher_;
  595. ::google::protobuf::int64 published_;
  596. ::google::protobuf::uint32 length_;
  597. int type_;
  598. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto::TableStruct;
  599. };
  600. // -------------------------------------------------------------------
  601. class Publisher : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Publisher) */ {
  602. public:
  603. Publisher();
  604. virtual ~Publisher();
  605. Publisher(const Publisher& from);
  606. inline Publisher& operator=(const Publisher& from) {
  607. CopyFrom(from);
  608. return *this;
  609. }
  610. #if LANG_CXX11
  611. Publisher(Publisher&& from) noexcept
  612. : Publisher() {
  613. *this = ::std::move(from);
  614. }
  615. inline Publisher& operator=(Publisher&& from) noexcept {
  616. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  617. if (this != &from) InternalSwap(&from);
  618. } else {
  619. CopyFrom(from);
  620. }
  621. return *this;
  622. }
  623. #endif
  624. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  625. return _internal_metadata_.unknown_fields();
  626. }
  627. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  628. return _internal_metadata_.mutable_unknown_fields();
  629. }
  630. static const ::google::protobuf::Descriptor* descriptor();
  631. static const Publisher& default_instance();
  632. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  633. static inline const Publisher* internal_default_instance() {
  634. return reinterpret_cast<const Publisher*>(
  635. &_Publisher_default_instance_);
  636. }
  637. static constexpr int kIndexInFileMessages =
  638. 3;
  639. void Swap(Publisher* other);
  640. friend void swap(Publisher& a, Publisher& b) {
  641. a.Swap(&b);
  642. }
  643. // implements Message ----------------------------------------------
  644. inline Publisher* New() const final {
  645. return CreateMaybeMessage<Publisher>(NULL);
  646. }
  647. Publisher* New(::google::protobuf::Arena* arena) const final {
  648. return CreateMaybeMessage<Publisher>(arena);
  649. }
  650. void CopyFrom(const ::google::protobuf::Message& from) final;
  651. void MergeFrom(const ::google::protobuf::Message& from) final;
  652. void CopyFrom(const Publisher& from);
  653. void MergeFrom(const Publisher& from);
  654. void Clear() final;
  655. bool IsInitialized() const final;
  656. size_t ByteSizeLong() const final;
  657. bool MergePartialFromCodedStream(
  658. ::google::protobuf::io::CodedInputStream* input) final;
  659. void SerializeWithCachedSizes(
  660. ::google::protobuf::io::CodedOutputStream* output) const final;
  661. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  662. bool deterministic, ::google::protobuf::uint8* target) const final;
  663. int GetCachedSize() const final { return _cached_size_.Get(); }
  664. private:
  665. void SharedCtor();
  666. void SharedDtor();
  667. void SetCachedSize(int size) const final;
  668. void InternalSwap(Publisher* other);
  669. private:
  670. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  671. return NULL;
  672. }
  673. inline void* MaybeArenaPtr() const {
  674. return NULL;
  675. }
  676. public:
  677. ::google::protobuf::Metadata GetMetadata() const final;
  678. // nested types ----------------------------------------------------
  679. // accessors -------------------------------------------------------
  680. // required string name = 1;
  681. bool has_name() const;
  682. void clear_name();
  683. static const int kNameFieldNumber = 1;
  684. const ::std::string& name() const;
  685. void set_name(const ::std::string& value);
  686. #if LANG_CXX11
  687. void set_name(::std::string&& value);
  688. #endif
  689. void set_name(const char* value);
  690. void set_name(const char* value, size_t size);
  691. ::std::string* mutable_name();
  692. ::std::string* release_name();
  693. void set_allocated_name(::std::string* name);
  694. // @@protoc_insertion_point(class_scope:google.protobuf.testing.Publisher)
  695. private:
  696. void set_has_name();
  697. void clear_has_name();
  698. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  699. ::google::protobuf::internal::HasBits<1> _has_bits_;
  700. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  701. ::google::protobuf::internal::ArenaStringPtr name_;
  702. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto::TableStruct;
  703. };
  704. // -------------------------------------------------------------------
  705. class Author : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Author) */ {
  706. public:
  707. Author();
  708. virtual ~Author();
  709. Author(const Author& from);
  710. inline Author& operator=(const Author& from) {
  711. CopyFrom(from);
  712. return *this;
  713. }
  714. #if LANG_CXX11
  715. Author(Author&& from) noexcept
  716. : Author() {
  717. *this = ::std::move(from);
  718. }
  719. inline Author& operator=(Author&& from) noexcept {
  720. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  721. if (this != &from) InternalSwap(&from);
  722. } else {
  723. CopyFrom(from);
  724. }
  725. return *this;
  726. }
  727. #endif
  728. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  729. return _internal_metadata_.unknown_fields();
  730. }
  731. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  732. return _internal_metadata_.mutable_unknown_fields();
  733. }
  734. static const ::google::protobuf::Descriptor* descriptor();
  735. static const Author& default_instance();
  736. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  737. static inline const Author* internal_default_instance() {
  738. return reinterpret_cast<const Author*>(
  739. &_Author_default_instance_);
  740. }
  741. static constexpr int kIndexInFileMessages =
  742. 4;
  743. void Swap(Author* other);
  744. friend void swap(Author& a, Author& b) {
  745. a.Swap(&b);
  746. }
  747. // implements Message ----------------------------------------------
  748. inline Author* New() const final {
  749. return CreateMaybeMessage<Author>(NULL);
  750. }
  751. Author* New(::google::protobuf::Arena* arena) const final {
  752. return CreateMaybeMessage<Author>(arena);
  753. }
  754. void CopyFrom(const ::google::protobuf::Message& from) final;
  755. void MergeFrom(const ::google::protobuf::Message& from) final;
  756. void CopyFrom(const Author& from);
  757. void MergeFrom(const Author& from);
  758. void Clear() final;
  759. bool IsInitialized() const final;
  760. size_t ByteSizeLong() const final;
  761. bool MergePartialFromCodedStream(
  762. ::google::protobuf::io::CodedInputStream* input) final;
  763. void SerializeWithCachedSizes(
  764. ::google::protobuf::io::CodedOutputStream* output) const final;
  765. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  766. bool deterministic, ::google::protobuf::uint8* target) const final;
  767. int GetCachedSize() const final { return _cached_size_.Get(); }
  768. private:
  769. void SharedCtor();
  770. void SharedDtor();
  771. void SetCachedSize(int size) const final;
  772. void InternalSwap(Author* other);
  773. private:
  774. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  775. return NULL;
  776. }
  777. inline void* MaybeArenaPtr() const {
  778. return NULL;
  779. }
  780. public:
  781. ::google::protobuf::Metadata GetMetadata() const final;
  782. // nested types ----------------------------------------------------
  783. // accessors -------------------------------------------------------
  784. // repeated string pseudonym = 3;
  785. int pseudonym_size() const;
  786. void clear_pseudonym();
  787. static const int kPseudonymFieldNumber = 3;
  788. const ::std::string& pseudonym(int index) const;
  789. ::std::string* mutable_pseudonym(int index);
  790. void set_pseudonym(int index, const ::std::string& value);
  791. #if LANG_CXX11
  792. void set_pseudonym(int index, ::std::string&& value);
  793. #endif
  794. void set_pseudonym(int index, const char* value);
  795. void set_pseudonym(int index, const char* value, size_t size);
  796. ::std::string* add_pseudonym();
  797. void add_pseudonym(const ::std::string& value);
  798. #if LANG_CXX11
  799. void add_pseudonym(::std::string&& value);
  800. #endif
  801. void add_pseudonym(const char* value);
  802. void add_pseudonym(const char* value, size_t size);
  803. const ::google::protobuf::RepeatedPtrField< ::std::string>& pseudonym() const;
  804. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_pseudonym();
  805. // repeated .google.protobuf.testing.Author friend = 5;
  806. int friend__size() const;
  807. void clear_friend_();
  808. static const int kFriendFieldNumber = 5;
  809. ::google::protobuf::testing::Author* mutable_friend_(int index);
  810. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Author >*
  811. mutable_friend_();
  812. const ::google::protobuf::testing::Author& friend_(int index) const;
  813. ::google::protobuf::testing::Author* add_friend_();
  814. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Author >&
  815. friend_() const;
  816. // optional string name = 2;
  817. bool has_name() const;
  818. void clear_name();
  819. static const int kNameFieldNumber = 2;
  820. const ::std::string& name() const;
  821. void set_name(const ::std::string& value);
  822. #if LANG_CXX11
  823. void set_name(::std::string&& value);
  824. #endif
  825. void set_name(const char* value);
  826. void set_name(const char* value, size_t size);
  827. ::std::string* mutable_name();
  828. ::std::string* release_name();
  829. void set_allocated_name(::std::string* name);
  830. // optional uint64 id = 1[json_name = "@id"];
  831. bool has_id() const;
  832. void clear_id();
  833. static const int kIdFieldNumber = 1;
  834. ::google::protobuf::uint64 id() const;
  835. void set_id(::google::protobuf::uint64 value);
  836. // optional bool alive = 4;
  837. bool has_alive() const;
  838. void clear_alive();
  839. static const int kAliveFieldNumber = 4;
  840. bool alive() const;
  841. void set_alive(bool value);
  842. // @@protoc_insertion_point(class_scope:google.protobuf.testing.Author)
  843. private:
  844. void set_has_id();
  845. void clear_has_id();
  846. void set_has_name();
  847. void clear_has_name();
  848. void set_has_alive();
  849. void clear_has_alive();
  850. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  851. ::google::protobuf::internal::HasBits<1> _has_bits_;
  852. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  853. ::google::protobuf::RepeatedPtrField< ::std::string> pseudonym_;
  854. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Author > friend__;
  855. ::google::protobuf::internal::ArenaStringPtr name_;
  856. ::google::protobuf::uint64 id_;
  857. bool alive_;
  858. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto::TableStruct;
  859. };
  860. // -------------------------------------------------------------------
  861. class BadAuthor : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.BadAuthor) */ {
  862. public:
  863. BadAuthor();
  864. virtual ~BadAuthor();
  865. BadAuthor(const BadAuthor& from);
  866. inline BadAuthor& operator=(const BadAuthor& from) {
  867. CopyFrom(from);
  868. return *this;
  869. }
  870. #if LANG_CXX11
  871. BadAuthor(BadAuthor&& from) noexcept
  872. : BadAuthor() {
  873. *this = ::std::move(from);
  874. }
  875. inline BadAuthor& operator=(BadAuthor&& from) noexcept {
  876. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  877. if (this != &from) InternalSwap(&from);
  878. } else {
  879. CopyFrom(from);
  880. }
  881. return *this;
  882. }
  883. #endif
  884. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  885. return _internal_metadata_.unknown_fields();
  886. }
  887. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  888. return _internal_metadata_.mutable_unknown_fields();
  889. }
  890. static const ::google::protobuf::Descriptor* descriptor();
  891. static const BadAuthor& default_instance();
  892. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  893. static inline const BadAuthor* internal_default_instance() {
  894. return reinterpret_cast<const BadAuthor*>(
  895. &_BadAuthor_default_instance_);
  896. }
  897. static constexpr int kIndexInFileMessages =
  898. 5;
  899. void Swap(BadAuthor* other);
  900. friend void swap(BadAuthor& a, BadAuthor& b) {
  901. a.Swap(&b);
  902. }
  903. // implements Message ----------------------------------------------
  904. inline BadAuthor* New() const final {
  905. return CreateMaybeMessage<BadAuthor>(NULL);
  906. }
  907. BadAuthor* New(::google::protobuf::Arena* arena) const final {
  908. return CreateMaybeMessage<BadAuthor>(arena);
  909. }
  910. void CopyFrom(const ::google::protobuf::Message& from) final;
  911. void MergeFrom(const ::google::protobuf::Message& from) final;
  912. void CopyFrom(const BadAuthor& from);
  913. void MergeFrom(const BadAuthor& from);
  914. void Clear() final;
  915. bool IsInitialized() const final;
  916. size_t ByteSizeLong() const final;
  917. bool MergePartialFromCodedStream(
  918. ::google::protobuf::io::CodedInputStream* input) final;
  919. void SerializeWithCachedSizes(
  920. ::google::protobuf::io::CodedOutputStream* output) const final;
  921. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  922. bool deterministic, ::google::protobuf::uint8* target) const final;
  923. int GetCachedSize() const final { return _cached_size_.Get(); }
  924. private:
  925. void SharedCtor();
  926. void SharedDtor();
  927. void SetCachedSize(int size) const final;
  928. void InternalSwap(BadAuthor* other);
  929. private:
  930. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  931. return NULL;
  932. }
  933. inline void* MaybeArenaPtr() const {
  934. return NULL;
  935. }
  936. public:
  937. ::google::protobuf::Metadata GetMetadata() const final;
  938. // nested types ----------------------------------------------------
  939. // accessors -------------------------------------------------------
  940. // repeated uint64 name = 2;
  941. int name_size() const;
  942. void clear_name();
  943. static const int kNameFieldNumber = 2;
  944. ::google::protobuf::uint64 name(int index) const;
  945. void set_name(int index, ::google::protobuf::uint64 value);
  946. void add_name(::google::protobuf::uint64 value);
  947. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  948. name() const;
  949. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  950. mutable_name();
  951. // repeated bool alive = 4 [packed = true];
  952. int alive_size() const;
  953. void clear_alive();
  954. static const int kAliveFieldNumber = 4;
  955. bool alive(int index) const;
  956. void set_alive(int index, bool value);
  957. void add_alive(bool value);
  958. const ::google::protobuf::RepeatedField< bool >&
  959. alive() const;
  960. ::google::protobuf::RepeatedField< bool >*
  961. mutable_alive();
  962. // optional string id = 1;
  963. bool has_id() const;
  964. void clear_id();
  965. static const int kIdFieldNumber = 1;
  966. const ::std::string& id() const;
  967. void set_id(const ::std::string& value);
  968. #if LANG_CXX11
  969. void set_id(::std::string&& value);
  970. #endif
  971. void set_id(const char* value);
  972. void set_id(const char* value, size_t size);
  973. ::std::string* mutable_id();
  974. ::std::string* release_id();
  975. void set_allocated_id(::std::string* id);
  976. // optional string pseudonym = 3;
  977. bool has_pseudonym() const;
  978. void clear_pseudonym();
  979. static const int kPseudonymFieldNumber = 3;
  980. const ::std::string& pseudonym() const;
  981. void set_pseudonym(const ::std::string& value);
  982. #if LANG_CXX11
  983. void set_pseudonym(::std::string&& value);
  984. #endif
  985. void set_pseudonym(const char* value);
  986. void set_pseudonym(const char* value, size_t size);
  987. ::std::string* mutable_pseudonym();
  988. ::std::string* release_pseudonym();
  989. void set_allocated_pseudonym(::std::string* pseudonym);
  990. // @@protoc_insertion_point(class_scope:google.protobuf.testing.BadAuthor)
  991. private:
  992. void set_has_id();
  993. void clear_has_id();
  994. void set_has_pseudonym();
  995. void clear_has_pseudonym();
  996. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  997. ::google::protobuf::internal::HasBits<1> _has_bits_;
  998. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  999. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > name_;
  1000. ::google::protobuf::RepeatedField< bool > alive_;
  1001. mutable int _alive_cached_byte_size_;
  1002. ::google::protobuf::internal::ArenaStringPtr id_;
  1003. ::google::protobuf::internal::ArenaStringPtr pseudonym_;
  1004. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto::TableStruct;
  1005. };
  1006. // -------------------------------------------------------------------
  1007. class Primitive : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Primitive) */ {
  1008. public:
  1009. Primitive();
  1010. virtual ~Primitive();
  1011. Primitive(const Primitive& from);
  1012. inline Primitive& operator=(const Primitive& from) {
  1013. CopyFrom(from);
  1014. return *this;
  1015. }
  1016. #if LANG_CXX11
  1017. Primitive(Primitive&& from) noexcept
  1018. : Primitive() {
  1019. *this = ::std::move(from);
  1020. }
  1021. inline Primitive& operator=(Primitive&& from) noexcept {
  1022. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1023. if (this != &from) InternalSwap(&from);
  1024. } else {
  1025. CopyFrom(from);
  1026. }
  1027. return *this;
  1028. }
  1029. #endif
  1030. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1031. return _internal_metadata_.unknown_fields();
  1032. }
  1033. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1034. return _internal_metadata_.mutable_unknown_fields();
  1035. }
  1036. static const ::google::protobuf::Descriptor* descriptor();
  1037. static const Primitive& default_instance();
  1038. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1039. static inline const Primitive* internal_default_instance() {
  1040. return reinterpret_cast<const Primitive*>(
  1041. &_Primitive_default_instance_);
  1042. }
  1043. static constexpr int kIndexInFileMessages =
  1044. 6;
  1045. void Swap(Primitive* other);
  1046. friend void swap(Primitive& a, Primitive& b) {
  1047. a.Swap(&b);
  1048. }
  1049. // implements Message ----------------------------------------------
  1050. inline Primitive* New() const final {
  1051. return CreateMaybeMessage<Primitive>(NULL);
  1052. }
  1053. Primitive* New(::google::protobuf::Arena* arena) const final {
  1054. return CreateMaybeMessage<Primitive>(arena);
  1055. }
  1056. void CopyFrom(const ::google::protobuf::Message& from) final;
  1057. void MergeFrom(const ::google::protobuf::Message& from) final;
  1058. void CopyFrom(const Primitive& from);
  1059. void MergeFrom(const Primitive& from);
  1060. void Clear() final;
  1061. bool IsInitialized() const final;
  1062. size_t ByteSizeLong() const final;
  1063. bool MergePartialFromCodedStream(
  1064. ::google::protobuf::io::CodedInputStream* input) final;
  1065. void SerializeWithCachedSizes(
  1066. ::google::protobuf::io::CodedOutputStream* output) const final;
  1067. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1068. bool deterministic, ::google::protobuf::uint8* target) const final;
  1069. int GetCachedSize() const final { return _cached_size_.Get(); }
  1070. private:
  1071. void SharedCtor();
  1072. void SharedDtor();
  1073. void SetCachedSize(int size) const final;
  1074. void InternalSwap(Primitive* other);
  1075. private:
  1076. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1077. return NULL;
  1078. }
  1079. inline void* MaybeArenaPtr() const {
  1080. return NULL;
  1081. }
  1082. public:
  1083. ::google::protobuf::Metadata GetMetadata() const final;
  1084. // nested types ----------------------------------------------------
  1085. // accessors -------------------------------------------------------
  1086. // repeated fixed32 rep_fix32 = 16;
  1087. int rep_fix32_size() const;
  1088. void clear_rep_fix32();
  1089. static const int kRepFix32FieldNumber = 16;
  1090. ::google::protobuf::uint32 rep_fix32(int index) const;
  1091. void set_rep_fix32(int index, ::google::protobuf::uint32 value);
  1092. void add_rep_fix32(::google::protobuf::uint32 value);
  1093. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  1094. rep_fix32() const;
  1095. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  1096. mutable_rep_fix32();
  1097. // repeated uint32 rep_u32 = 17;
  1098. int rep_u32_size() const;
  1099. void clear_rep_u32();
  1100. static const int kRepU32FieldNumber = 17;
  1101. ::google::protobuf::uint32 rep_u32(int index) const;
  1102. void set_rep_u32(int index, ::google::protobuf::uint32 value);
  1103. void add_rep_u32(::google::protobuf::uint32 value);
  1104. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  1105. rep_u32() const;
  1106. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  1107. mutable_rep_u32();
  1108. // repeated int32 rep_i32 = 18;
  1109. int rep_i32_size() const;
  1110. void clear_rep_i32();
  1111. static const int kRepI32FieldNumber = 18;
  1112. ::google::protobuf::int32 rep_i32(int index) const;
  1113. void set_rep_i32(int index, ::google::protobuf::int32 value);
  1114. void add_rep_i32(::google::protobuf::int32 value);
  1115. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1116. rep_i32() const;
  1117. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1118. mutable_rep_i32();
  1119. // repeated sfixed32 rep_sf32 = 19;
  1120. int rep_sf32_size() const;
  1121. void clear_rep_sf32();
  1122. static const int kRepSf32FieldNumber = 19;
  1123. ::google::protobuf::int32 rep_sf32(int index) const;
  1124. void set_rep_sf32(int index, ::google::protobuf::int32 value);
  1125. void add_rep_sf32(::google::protobuf::int32 value);
  1126. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1127. rep_sf32() const;
  1128. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1129. mutable_rep_sf32();
  1130. // repeated sint32 rep_s32 = 20;
  1131. int rep_s32_size() const;
  1132. void clear_rep_s32();
  1133. static const int kRepS32FieldNumber = 20;
  1134. ::google::protobuf::int32 rep_s32(int index) const;
  1135. void set_rep_s32(int index, ::google::protobuf::int32 value);
  1136. void add_rep_s32(::google::protobuf::int32 value);
  1137. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1138. rep_s32() const;
  1139. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1140. mutable_rep_s32();
  1141. // repeated fixed64 rep_fix64 = 21;
  1142. int rep_fix64_size() const;
  1143. void clear_rep_fix64();
  1144. static const int kRepFix64FieldNumber = 21;
  1145. ::google::protobuf::uint64 rep_fix64(int index) const;
  1146. void set_rep_fix64(int index, ::google::protobuf::uint64 value);
  1147. void add_rep_fix64(::google::protobuf::uint64 value);
  1148. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  1149. rep_fix64() const;
  1150. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  1151. mutable_rep_fix64();
  1152. // repeated uint64 rep_u64 = 22;
  1153. int rep_u64_size() const;
  1154. void clear_rep_u64();
  1155. static const int kRepU64FieldNumber = 22;
  1156. ::google::protobuf::uint64 rep_u64(int index) const;
  1157. void set_rep_u64(int index, ::google::protobuf::uint64 value);
  1158. void add_rep_u64(::google::protobuf::uint64 value);
  1159. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  1160. rep_u64() const;
  1161. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  1162. mutable_rep_u64();
  1163. // repeated int64 rep_i64 = 23;
  1164. int rep_i64_size() const;
  1165. void clear_rep_i64();
  1166. static const int kRepI64FieldNumber = 23;
  1167. ::google::protobuf::int64 rep_i64(int index) const;
  1168. void set_rep_i64(int index, ::google::protobuf::int64 value);
  1169. void add_rep_i64(::google::protobuf::int64 value);
  1170. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1171. rep_i64() const;
  1172. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1173. mutable_rep_i64();
  1174. // repeated sfixed64 rep_sf64 = 24;
  1175. int rep_sf64_size() const;
  1176. void clear_rep_sf64();
  1177. static const int kRepSf64FieldNumber = 24;
  1178. ::google::protobuf::int64 rep_sf64(int index) const;
  1179. void set_rep_sf64(int index, ::google::protobuf::int64 value);
  1180. void add_rep_sf64(::google::protobuf::int64 value);
  1181. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1182. rep_sf64() const;
  1183. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1184. mutable_rep_sf64();
  1185. // repeated sint64 rep_s64 = 25;
  1186. int rep_s64_size() const;
  1187. void clear_rep_s64();
  1188. static const int kRepS64FieldNumber = 25;
  1189. ::google::protobuf::int64 rep_s64(int index) const;
  1190. void set_rep_s64(int index, ::google::protobuf::int64 value);
  1191. void add_rep_s64(::google::protobuf::int64 value);
  1192. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1193. rep_s64() const;
  1194. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1195. mutable_rep_s64();
  1196. // repeated string rep_str = 26;
  1197. int rep_str_size() const;
  1198. void clear_rep_str();
  1199. static const int kRepStrFieldNumber = 26;
  1200. const ::std::string& rep_str(int index) const;
  1201. ::std::string* mutable_rep_str(int index);
  1202. void set_rep_str(int index, const ::std::string& value);
  1203. #if LANG_CXX11
  1204. void set_rep_str(int index, ::std::string&& value);
  1205. #endif
  1206. void set_rep_str(int index, const char* value);
  1207. void set_rep_str(int index, const char* value, size_t size);
  1208. ::std::string* add_rep_str();
  1209. void add_rep_str(const ::std::string& value);
  1210. #if LANG_CXX11
  1211. void add_rep_str(::std::string&& value);
  1212. #endif
  1213. void add_rep_str(const char* value);
  1214. void add_rep_str(const char* value, size_t size);
  1215. const ::google::protobuf::RepeatedPtrField< ::std::string>& rep_str() const;
  1216. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_rep_str();
  1217. // repeated bytes rep_bytes = 27;
  1218. int rep_bytes_size() const;
  1219. void clear_rep_bytes();
  1220. static const int kRepBytesFieldNumber = 27;
  1221. const ::std::string& rep_bytes(int index) const;
  1222. ::std::string* mutable_rep_bytes(int index);
  1223. void set_rep_bytes(int index, const ::std::string& value);
  1224. #if LANG_CXX11
  1225. void set_rep_bytes(int index, ::std::string&& value);
  1226. #endif
  1227. void set_rep_bytes(int index, const char* value);
  1228. void set_rep_bytes(int index, const void* value, size_t size);
  1229. ::std::string* add_rep_bytes();
  1230. void add_rep_bytes(const ::std::string& value);
  1231. #if LANG_CXX11
  1232. void add_rep_bytes(::std::string&& value);
  1233. #endif
  1234. void add_rep_bytes(const char* value);
  1235. void add_rep_bytes(const void* value, size_t size);
  1236. const ::google::protobuf::RepeatedPtrField< ::std::string>& rep_bytes() const;
  1237. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_rep_bytes();
  1238. // repeated float rep_float = 28;
  1239. int rep_float_size() const;
  1240. void clear_rep_float();
  1241. static const int kRepFloatFieldNumber = 28;
  1242. float rep_float(int index) const;
  1243. void set_rep_float(int index, float value);
  1244. void add_rep_float(float value);
  1245. const ::google::protobuf::RepeatedField< float >&
  1246. rep_float() const;
  1247. ::google::protobuf::RepeatedField< float >*
  1248. mutable_rep_float();
  1249. // repeated double rep_double = 29;
  1250. int rep_double_size() const;
  1251. void clear_rep_double();
  1252. static const int kRepDoubleFieldNumber = 29;
  1253. double rep_double(int index) const;
  1254. void set_rep_double(int index, double value);
  1255. void add_rep_double(double value);
  1256. const ::google::protobuf::RepeatedField< double >&
  1257. rep_double() const;
  1258. ::google::protobuf::RepeatedField< double >*
  1259. mutable_rep_double();
  1260. // repeated bool rep_bool = 30;
  1261. int rep_bool_size() const;
  1262. void clear_rep_bool();
  1263. static const int kRepBoolFieldNumber = 30;
  1264. bool rep_bool(int index) const;
  1265. void set_rep_bool(int index, bool value);
  1266. void add_rep_bool(bool value);
  1267. const ::google::protobuf::RepeatedField< bool >&
  1268. rep_bool() const;
  1269. ::google::protobuf::RepeatedField< bool >*
  1270. mutable_rep_bool();
  1271. // optional string str = 11;
  1272. bool has_str() const;
  1273. void clear_str();
  1274. static const int kStrFieldNumber = 11;
  1275. const ::std::string& str() const;
  1276. void set_str(const ::std::string& value);
  1277. #if LANG_CXX11
  1278. void set_str(::std::string&& value);
  1279. #endif
  1280. void set_str(const char* value);
  1281. void set_str(const char* value, size_t size);
  1282. ::std::string* mutable_str();
  1283. ::std::string* release_str();
  1284. void set_allocated_str(::std::string* str);
  1285. // optional bytes bytes = 12;
  1286. bool has_bytes() const;
  1287. void clear_bytes();
  1288. static const int kBytesFieldNumber = 12;
  1289. const ::std::string& bytes() const;
  1290. void set_bytes(const ::std::string& value);
  1291. #if LANG_CXX11
  1292. void set_bytes(::std::string&& value);
  1293. #endif
  1294. void set_bytes(const char* value);
  1295. void set_bytes(const void* value, size_t size);
  1296. ::std::string* mutable_bytes();
  1297. ::std::string* release_bytes();
  1298. void set_allocated_bytes(::std::string* bytes);
  1299. // optional fixed32 fix32 = 1;
  1300. bool has_fix32() const;
  1301. void clear_fix32();
  1302. static const int kFix32FieldNumber = 1;
  1303. ::google::protobuf::uint32 fix32() const;
  1304. void set_fix32(::google::protobuf::uint32 value);
  1305. // optional uint32 u32 = 2;
  1306. bool has_u32() const;
  1307. void clear_u32();
  1308. static const int kU32FieldNumber = 2;
  1309. ::google::protobuf::uint32 u32() const;
  1310. void set_u32(::google::protobuf::uint32 value);
  1311. // optional int32 i32 = 3;
  1312. bool has_i32() const;
  1313. void clear_i32();
  1314. static const int kI32FieldNumber = 3;
  1315. ::google::protobuf::int32 i32() const;
  1316. void set_i32(::google::protobuf::int32 value);
  1317. // optional sfixed32 sf32 = 4;
  1318. bool has_sf32() const;
  1319. void clear_sf32();
  1320. static const int kSf32FieldNumber = 4;
  1321. ::google::protobuf::int32 sf32() const;
  1322. void set_sf32(::google::protobuf::int32 value);
  1323. // optional fixed64 fix64 = 6;
  1324. bool has_fix64() const;
  1325. void clear_fix64();
  1326. static const int kFix64FieldNumber = 6;
  1327. ::google::protobuf::uint64 fix64() const;
  1328. void set_fix64(::google::protobuf::uint64 value);
  1329. // optional uint64 u64 = 7;
  1330. bool has_u64() const;
  1331. void clear_u64();
  1332. static const int kU64FieldNumber = 7;
  1333. ::google::protobuf::uint64 u64() const;
  1334. void set_u64(::google::protobuf::uint64 value);
  1335. // optional int64 i64 = 8;
  1336. bool has_i64() const;
  1337. void clear_i64();
  1338. static const int kI64FieldNumber = 8;
  1339. ::google::protobuf::int64 i64() const;
  1340. void set_i64(::google::protobuf::int64 value);
  1341. // optional sfixed64 sf64 = 9;
  1342. bool has_sf64() const;
  1343. void clear_sf64();
  1344. static const int kSf64FieldNumber = 9;
  1345. ::google::protobuf::int64 sf64() const;
  1346. void set_sf64(::google::protobuf::int64 value);
  1347. // optional sint32 s32 = 5;
  1348. bool has_s32() const;
  1349. void clear_s32();
  1350. static const int kS32FieldNumber = 5;
  1351. ::google::protobuf::int32 s32() const;
  1352. void set_s32(::google::protobuf::int32 value);
  1353. // optional float float = 13;
  1354. bool has_float_() const;
  1355. void clear_float_();
  1356. static const int kFloatFieldNumber = 13;
  1357. float float_() const;
  1358. void set_float_(float value);
  1359. // optional sint64 s64 = 10;
  1360. bool has_s64() const;
  1361. void clear_s64();
  1362. static const int kS64FieldNumber = 10;
  1363. ::google::protobuf::int64 s64() const;
  1364. void set_s64(::google::protobuf::int64 value);
  1365. // optional double double = 14;
  1366. bool has_double_() const;
  1367. void clear_double_();
  1368. static const int kDoubleFieldNumber = 14;
  1369. double double_() const;
  1370. void set_double_(double value);
  1371. // optional bool bool = 15;
  1372. bool has_bool_() const;
  1373. void clear_bool_();
  1374. static const int kBoolFieldNumber = 15;
  1375. bool bool_() const;
  1376. void set_bool_(bool value);
  1377. // @@protoc_insertion_point(class_scope:google.protobuf.testing.Primitive)
  1378. private:
  1379. void set_has_fix32();
  1380. void clear_has_fix32();
  1381. void set_has_u32();
  1382. void clear_has_u32();
  1383. void set_has_i32();
  1384. void clear_has_i32();
  1385. void set_has_sf32();
  1386. void clear_has_sf32();
  1387. void set_has_s32();
  1388. void clear_has_s32();
  1389. void set_has_fix64();
  1390. void clear_has_fix64();
  1391. void set_has_u64();
  1392. void clear_has_u64();
  1393. void set_has_i64();
  1394. void clear_has_i64();
  1395. void set_has_sf64();
  1396. void clear_has_sf64();
  1397. void set_has_s64();
  1398. void clear_has_s64();
  1399. void set_has_str();
  1400. void clear_has_str();
  1401. void set_has_bytes();
  1402. void clear_has_bytes();
  1403. void set_has_float_();
  1404. void clear_has_float_();
  1405. void set_has_double_();
  1406. void clear_has_double_();
  1407. void set_has_bool_();
  1408. void clear_has_bool_();
  1409. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1410. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1411. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1412. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > rep_fix32_;
  1413. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > rep_u32_;
  1414. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > rep_i32_;
  1415. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > rep_sf32_;
  1416. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > rep_s32_;
  1417. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > rep_fix64_;
  1418. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > rep_u64_;
  1419. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > rep_i64_;
  1420. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > rep_sf64_;
  1421. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > rep_s64_;
  1422. ::google::protobuf::RepeatedPtrField< ::std::string> rep_str_;
  1423. ::google::protobuf::RepeatedPtrField< ::std::string> rep_bytes_;
  1424. ::google::protobuf::RepeatedField< float > rep_float_;
  1425. ::google::protobuf::RepeatedField< double > rep_double_;
  1426. ::google::protobuf::RepeatedField< bool > rep_bool_;
  1427. ::google::protobuf::internal::ArenaStringPtr str_;
  1428. ::google::protobuf::internal::ArenaStringPtr bytes_;
  1429. ::google::protobuf::uint32 fix32_;
  1430. ::google::protobuf::uint32 u32_;
  1431. ::google::protobuf::int32 i32_;
  1432. ::google::protobuf::int32 sf32_;
  1433. ::google::protobuf::uint64 fix64_;
  1434. ::google::protobuf::uint64 u64_;
  1435. ::google::protobuf::int64 i64_;
  1436. ::google::protobuf::int64 sf64_;
  1437. ::google::protobuf::int32 s32_;
  1438. float float__;
  1439. ::google::protobuf::int64 s64_;
  1440. double double__;
  1441. bool bool__;
  1442. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto::TableStruct;
  1443. };
  1444. // -------------------------------------------------------------------
  1445. class PackedPrimitive : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.PackedPrimitive) */ {
  1446. public:
  1447. PackedPrimitive();
  1448. virtual ~PackedPrimitive();
  1449. PackedPrimitive(const PackedPrimitive& from);
  1450. inline PackedPrimitive& operator=(const PackedPrimitive& from) {
  1451. CopyFrom(from);
  1452. return *this;
  1453. }
  1454. #if LANG_CXX11
  1455. PackedPrimitive(PackedPrimitive&& from) noexcept
  1456. : PackedPrimitive() {
  1457. *this = ::std::move(from);
  1458. }
  1459. inline PackedPrimitive& operator=(PackedPrimitive&& from) noexcept {
  1460. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1461. if (this != &from) InternalSwap(&from);
  1462. } else {
  1463. CopyFrom(from);
  1464. }
  1465. return *this;
  1466. }
  1467. #endif
  1468. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1469. return _internal_metadata_.unknown_fields();
  1470. }
  1471. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1472. return _internal_metadata_.mutable_unknown_fields();
  1473. }
  1474. static const ::google::protobuf::Descriptor* descriptor();
  1475. static const PackedPrimitive& default_instance();
  1476. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1477. static inline const PackedPrimitive* internal_default_instance() {
  1478. return reinterpret_cast<const PackedPrimitive*>(
  1479. &_PackedPrimitive_default_instance_);
  1480. }
  1481. static constexpr int kIndexInFileMessages =
  1482. 7;
  1483. void Swap(PackedPrimitive* other);
  1484. friend void swap(PackedPrimitive& a, PackedPrimitive& b) {
  1485. a.Swap(&b);
  1486. }
  1487. // implements Message ----------------------------------------------
  1488. inline PackedPrimitive* New() const final {
  1489. return CreateMaybeMessage<PackedPrimitive>(NULL);
  1490. }
  1491. PackedPrimitive* New(::google::protobuf::Arena* arena) const final {
  1492. return CreateMaybeMessage<PackedPrimitive>(arena);
  1493. }
  1494. void CopyFrom(const ::google::protobuf::Message& from) final;
  1495. void MergeFrom(const ::google::protobuf::Message& from) final;
  1496. void CopyFrom(const PackedPrimitive& from);
  1497. void MergeFrom(const PackedPrimitive& from);
  1498. void Clear() final;
  1499. bool IsInitialized() const final;
  1500. size_t ByteSizeLong() const final;
  1501. bool MergePartialFromCodedStream(
  1502. ::google::protobuf::io::CodedInputStream* input) final;
  1503. void SerializeWithCachedSizes(
  1504. ::google::protobuf::io::CodedOutputStream* output) const final;
  1505. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1506. bool deterministic, ::google::protobuf::uint8* target) const final;
  1507. int GetCachedSize() const final { return _cached_size_.Get(); }
  1508. private:
  1509. void SharedCtor();
  1510. void SharedDtor();
  1511. void SetCachedSize(int size) const final;
  1512. void InternalSwap(PackedPrimitive* other);
  1513. private:
  1514. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1515. return NULL;
  1516. }
  1517. inline void* MaybeArenaPtr() const {
  1518. return NULL;
  1519. }
  1520. public:
  1521. ::google::protobuf::Metadata GetMetadata() const final;
  1522. // nested types ----------------------------------------------------
  1523. // accessors -------------------------------------------------------
  1524. // repeated fixed32 rep_fix32 = 16 [packed = true];
  1525. int rep_fix32_size() const;
  1526. void clear_rep_fix32();
  1527. static const int kRepFix32FieldNumber = 16;
  1528. ::google::protobuf::uint32 rep_fix32(int index) const;
  1529. void set_rep_fix32(int index, ::google::protobuf::uint32 value);
  1530. void add_rep_fix32(::google::protobuf::uint32 value);
  1531. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  1532. rep_fix32() const;
  1533. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  1534. mutable_rep_fix32();
  1535. // repeated uint32 rep_u32 = 17 [packed = true];
  1536. int rep_u32_size() const;
  1537. void clear_rep_u32();
  1538. static const int kRepU32FieldNumber = 17;
  1539. ::google::protobuf::uint32 rep_u32(int index) const;
  1540. void set_rep_u32(int index, ::google::protobuf::uint32 value);
  1541. void add_rep_u32(::google::protobuf::uint32 value);
  1542. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  1543. rep_u32() const;
  1544. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  1545. mutable_rep_u32();
  1546. // repeated int32 rep_i32 = 18 [packed = true];
  1547. int rep_i32_size() const;
  1548. void clear_rep_i32();
  1549. static const int kRepI32FieldNumber = 18;
  1550. ::google::protobuf::int32 rep_i32(int index) const;
  1551. void set_rep_i32(int index, ::google::protobuf::int32 value);
  1552. void add_rep_i32(::google::protobuf::int32 value);
  1553. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1554. rep_i32() const;
  1555. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1556. mutable_rep_i32();
  1557. // repeated sfixed32 rep_sf32 = 19 [packed = true];
  1558. int rep_sf32_size() const;
  1559. void clear_rep_sf32();
  1560. static const int kRepSf32FieldNumber = 19;
  1561. ::google::protobuf::int32 rep_sf32(int index) const;
  1562. void set_rep_sf32(int index, ::google::protobuf::int32 value);
  1563. void add_rep_sf32(::google::protobuf::int32 value);
  1564. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1565. rep_sf32() const;
  1566. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1567. mutable_rep_sf32();
  1568. // repeated sint32 rep_s32 = 20 [packed = true];
  1569. int rep_s32_size() const;
  1570. void clear_rep_s32();
  1571. static const int kRepS32FieldNumber = 20;
  1572. ::google::protobuf::int32 rep_s32(int index) const;
  1573. void set_rep_s32(int index, ::google::protobuf::int32 value);
  1574. void add_rep_s32(::google::protobuf::int32 value);
  1575. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1576. rep_s32() const;
  1577. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1578. mutable_rep_s32();
  1579. // repeated fixed64 rep_fix64 = 21 [packed = true];
  1580. int rep_fix64_size() const;
  1581. void clear_rep_fix64();
  1582. static const int kRepFix64FieldNumber = 21;
  1583. ::google::protobuf::uint64 rep_fix64(int index) const;
  1584. void set_rep_fix64(int index, ::google::protobuf::uint64 value);
  1585. void add_rep_fix64(::google::protobuf::uint64 value);
  1586. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  1587. rep_fix64() const;
  1588. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  1589. mutable_rep_fix64();
  1590. // repeated uint64 rep_u64 = 22 [packed = true];
  1591. int rep_u64_size() const;
  1592. void clear_rep_u64();
  1593. static const int kRepU64FieldNumber = 22;
  1594. ::google::protobuf::uint64 rep_u64(int index) const;
  1595. void set_rep_u64(int index, ::google::protobuf::uint64 value);
  1596. void add_rep_u64(::google::protobuf::uint64 value);
  1597. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  1598. rep_u64() const;
  1599. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  1600. mutable_rep_u64();
  1601. // repeated int64 rep_i64 = 23 [packed = true];
  1602. int rep_i64_size() const;
  1603. void clear_rep_i64();
  1604. static const int kRepI64FieldNumber = 23;
  1605. ::google::protobuf::int64 rep_i64(int index) const;
  1606. void set_rep_i64(int index, ::google::protobuf::int64 value);
  1607. void add_rep_i64(::google::protobuf::int64 value);
  1608. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1609. rep_i64() const;
  1610. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1611. mutable_rep_i64();
  1612. // repeated sfixed64 rep_sf64 = 24 [packed = true];
  1613. int rep_sf64_size() const;
  1614. void clear_rep_sf64();
  1615. static const int kRepSf64FieldNumber = 24;
  1616. ::google::protobuf::int64 rep_sf64(int index) const;
  1617. void set_rep_sf64(int index, ::google::protobuf::int64 value);
  1618. void add_rep_sf64(::google::protobuf::int64 value);
  1619. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1620. rep_sf64() const;
  1621. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1622. mutable_rep_sf64();
  1623. // repeated sint64 rep_s64 = 25 [packed = true];
  1624. int rep_s64_size() const;
  1625. void clear_rep_s64();
  1626. static const int kRepS64FieldNumber = 25;
  1627. ::google::protobuf::int64 rep_s64(int index) const;
  1628. void set_rep_s64(int index, ::google::protobuf::int64 value);
  1629. void add_rep_s64(::google::protobuf::int64 value);
  1630. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1631. rep_s64() const;
  1632. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1633. mutable_rep_s64();
  1634. // repeated float rep_float = 28 [packed = true];
  1635. int rep_float_size() const;
  1636. void clear_rep_float();
  1637. static const int kRepFloatFieldNumber = 28;
  1638. float rep_float(int index) const;
  1639. void set_rep_float(int index, float value);
  1640. void add_rep_float(float value);
  1641. const ::google::protobuf::RepeatedField< float >&
  1642. rep_float() const;
  1643. ::google::protobuf::RepeatedField< float >*
  1644. mutable_rep_float();
  1645. // repeated double rep_double = 29 [packed = true];
  1646. int rep_double_size() const;
  1647. void clear_rep_double();
  1648. static const int kRepDoubleFieldNumber = 29;
  1649. double rep_double(int index) const;
  1650. void set_rep_double(int index, double value);
  1651. void add_rep_double(double value);
  1652. const ::google::protobuf::RepeatedField< double >&
  1653. rep_double() const;
  1654. ::google::protobuf::RepeatedField< double >*
  1655. mutable_rep_double();
  1656. // repeated bool rep_bool = 30 [packed = true];
  1657. int rep_bool_size() const;
  1658. void clear_rep_bool();
  1659. static const int kRepBoolFieldNumber = 30;
  1660. bool rep_bool(int index) const;
  1661. void set_rep_bool(int index, bool value);
  1662. void add_rep_bool(bool value);
  1663. const ::google::protobuf::RepeatedField< bool >&
  1664. rep_bool() const;
  1665. ::google::protobuf::RepeatedField< bool >*
  1666. mutable_rep_bool();
  1667. // @@protoc_insertion_point(class_scope:google.protobuf.testing.PackedPrimitive)
  1668. private:
  1669. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1670. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1671. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1672. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > rep_fix32_;
  1673. mutable int _rep_fix32_cached_byte_size_;
  1674. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > rep_u32_;
  1675. mutable int _rep_u32_cached_byte_size_;
  1676. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > rep_i32_;
  1677. mutable int _rep_i32_cached_byte_size_;
  1678. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > rep_sf32_;
  1679. mutable int _rep_sf32_cached_byte_size_;
  1680. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > rep_s32_;
  1681. mutable int _rep_s32_cached_byte_size_;
  1682. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > rep_fix64_;
  1683. mutable int _rep_fix64_cached_byte_size_;
  1684. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > rep_u64_;
  1685. mutable int _rep_u64_cached_byte_size_;
  1686. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > rep_i64_;
  1687. mutable int _rep_i64_cached_byte_size_;
  1688. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > rep_sf64_;
  1689. mutable int _rep_sf64_cached_byte_size_;
  1690. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > rep_s64_;
  1691. mutable int _rep_s64_cached_byte_size_;
  1692. ::google::protobuf::RepeatedField< float > rep_float_;
  1693. mutable int _rep_float_cached_byte_size_;
  1694. ::google::protobuf::RepeatedField< double > rep_double_;
  1695. mutable int _rep_double_cached_byte_size_;
  1696. ::google::protobuf::RepeatedField< bool > rep_bool_;
  1697. mutable int _rep_bool_cached_byte_size_;
  1698. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto::TableStruct;
  1699. };
  1700. // -------------------------------------------------------------------
  1701. class NestedBook : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.NestedBook) */ {
  1702. public:
  1703. NestedBook();
  1704. virtual ~NestedBook();
  1705. NestedBook(const NestedBook& from);
  1706. inline NestedBook& operator=(const NestedBook& from) {
  1707. CopyFrom(from);
  1708. return *this;
  1709. }
  1710. #if LANG_CXX11
  1711. NestedBook(NestedBook&& from) noexcept
  1712. : NestedBook() {
  1713. *this = ::std::move(from);
  1714. }
  1715. inline NestedBook& operator=(NestedBook&& from) noexcept {
  1716. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1717. if (this != &from) InternalSwap(&from);
  1718. } else {
  1719. CopyFrom(from);
  1720. }
  1721. return *this;
  1722. }
  1723. #endif
  1724. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1725. return _internal_metadata_.unknown_fields();
  1726. }
  1727. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1728. return _internal_metadata_.mutable_unknown_fields();
  1729. }
  1730. static const ::google::protobuf::Descriptor* descriptor();
  1731. static const NestedBook& default_instance();
  1732. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1733. static inline const NestedBook* internal_default_instance() {
  1734. return reinterpret_cast<const NestedBook*>(
  1735. &_NestedBook_default_instance_);
  1736. }
  1737. static constexpr int kIndexInFileMessages =
  1738. 8;
  1739. void Swap(NestedBook* other);
  1740. friend void swap(NestedBook& a, NestedBook& b) {
  1741. a.Swap(&b);
  1742. }
  1743. // implements Message ----------------------------------------------
  1744. inline NestedBook* New() const final {
  1745. return CreateMaybeMessage<NestedBook>(NULL);
  1746. }
  1747. NestedBook* New(::google::protobuf::Arena* arena) const final {
  1748. return CreateMaybeMessage<NestedBook>(arena);
  1749. }
  1750. void CopyFrom(const ::google::protobuf::Message& from) final;
  1751. void MergeFrom(const ::google::protobuf::Message& from) final;
  1752. void CopyFrom(const NestedBook& from);
  1753. void MergeFrom(const NestedBook& from);
  1754. void Clear() final;
  1755. bool IsInitialized() const final;
  1756. size_t ByteSizeLong() const final;
  1757. bool MergePartialFromCodedStream(
  1758. ::google::protobuf::io::CodedInputStream* input) final;
  1759. void SerializeWithCachedSizes(
  1760. ::google::protobuf::io::CodedOutputStream* output) const final;
  1761. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1762. bool deterministic, ::google::protobuf::uint8* target) const final;
  1763. int GetCachedSize() const final { return _cached_size_.Get(); }
  1764. private:
  1765. void SharedCtor();
  1766. void SharedDtor();
  1767. void SetCachedSize(int size) const final;
  1768. void InternalSwap(NestedBook* other);
  1769. private:
  1770. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1771. return NULL;
  1772. }
  1773. inline void* MaybeArenaPtr() const {
  1774. return NULL;
  1775. }
  1776. public:
  1777. ::google::protobuf::Metadata GetMetadata() const final;
  1778. // nested types ----------------------------------------------------
  1779. // accessors -------------------------------------------------------
  1780. // optional .google.protobuf.testing.Book book = 1;
  1781. bool has_book() const;
  1782. void clear_book();
  1783. static const int kBookFieldNumber = 1;
  1784. private:
  1785. const ::google::protobuf::testing::Book& _internal_book() const;
  1786. public:
  1787. const ::google::protobuf::testing::Book& book() const;
  1788. ::google::protobuf::testing::Book* release_book();
  1789. ::google::protobuf::testing::Book* mutable_book();
  1790. void set_allocated_book(::google::protobuf::testing::Book* book);
  1791. static const int kAnotherBookFieldNumber = 301;
  1792. static ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::testing::Book,
  1793. ::google::protobuf::internal::MessageTypeTraits< ::google::protobuf::testing::NestedBook >, 11, false >
  1794. another_book;
  1795. // @@protoc_insertion_point(class_scope:google.protobuf.testing.NestedBook)
  1796. private:
  1797. void set_has_book();
  1798. void clear_has_book();
  1799. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1800. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1801. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1802. ::google::protobuf::testing::Book* book_;
  1803. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto::TableStruct;
  1804. };
  1805. // -------------------------------------------------------------------
  1806. class BadNestedBook : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.BadNestedBook) */ {
  1807. public:
  1808. BadNestedBook();
  1809. virtual ~BadNestedBook();
  1810. BadNestedBook(const BadNestedBook& from);
  1811. inline BadNestedBook& operator=(const BadNestedBook& from) {
  1812. CopyFrom(from);
  1813. return *this;
  1814. }
  1815. #if LANG_CXX11
  1816. BadNestedBook(BadNestedBook&& from) noexcept
  1817. : BadNestedBook() {
  1818. *this = ::std::move(from);
  1819. }
  1820. inline BadNestedBook& operator=(BadNestedBook&& from) noexcept {
  1821. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1822. if (this != &from) InternalSwap(&from);
  1823. } else {
  1824. CopyFrom(from);
  1825. }
  1826. return *this;
  1827. }
  1828. #endif
  1829. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1830. return _internal_metadata_.unknown_fields();
  1831. }
  1832. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1833. return _internal_metadata_.mutable_unknown_fields();
  1834. }
  1835. static const ::google::protobuf::Descriptor* descriptor();
  1836. static const BadNestedBook& default_instance();
  1837. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1838. static inline const BadNestedBook* internal_default_instance() {
  1839. return reinterpret_cast<const BadNestedBook*>(
  1840. &_BadNestedBook_default_instance_);
  1841. }
  1842. static constexpr int kIndexInFileMessages =
  1843. 9;
  1844. void Swap(BadNestedBook* other);
  1845. friend void swap(BadNestedBook& a, BadNestedBook& b) {
  1846. a.Swap(&b);
  1847. }
  1848. // implements Message ----------------------------------------------
  1849. inline BadNestedBook* New() const final {
  1850. return CreateMaybeMessage<BadNestedBook>(NULL);
  1851. }
  1852. BadNestedBook* New(::google::protobuf::Arena* arena) const final {
  1853. return CreateMaybeMessage<BadNestedBook>(arena);
  1854. }
  1855. void CopyFrom(const ::google::protobuf::Message& from) final;
  1856. void MergeFrom(const ::google::protobuf::Message& from) final;
  1857. void CopyFrom(const BadNestedBook& from);
  1858. void MergeFrom(const BadNestedBook& from);
  1859. void Clear() final;
  1860. bool IsInitialized() const final;
  1861. size_t ByteSizeLong() const final;
  1862. bool MergePartialFromCodedStream(
  1863. ::google::protobuf::io::CodedInputStream* input) final;
  1864. void SerializeWithCachedSizes(
  1865. ::google::protobuf::io::CodedOutputStream* output) const final;
  1866. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1867. bool deterministic, ::google::protobuf::uint8* target) const final;
  1868. int GetCachedSize() const final { return _cached_size_.Get(); }
  1869. private:
  1870. void SharedCtor();
  1871. void SharedDtor();
  1872. void SetCachedSize(int size) const final;
  1873. void InternalSwap(BadNestedBook* other);
  1874. private:
  1875. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1876. return NULL;
  1877. }
  1878. inline void* MaybeArenaPtr() const {
  1879. return NULL;
  1880. }
  1881. public:
  1882. ::google::protobuf::Metadata GetMetadata() const final;
  1883. // nested types ----------------------------------------------------
  1884. // accessors -------------------------------------------------------
  1885. // repeated uint32 book = 1 [packed = true];
  1886. int book_size() const;
  1887. void clear_book();
  1888. static const int kBookFieldNumber = 1;
  1889. ::google::protobuf::uint32 book(int index) const;
  1890. void set_book(int index, ::google::protobuf::uint32 value);
  1891. void add_book(::google::protobuf::uint32 value);
  1892. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  1893. book() const;
  1894. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  1895. mutable_book();
  1896. // @@protoc_insertion_point(class_scope:google.protobuf.testing.BadNestedBook)
  1897. private:
  1898. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1899. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1900. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1901. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > book_;
  1902. mutable int _book_cached_byte_size_;
  1903. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto::TableStruct;
  1904. };
  1905. // -------------------------------------------------------------------
  1906. class Cyclic : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Cyclic) */ {
  1907. public:
  1908. Cyclic();
  1909. virtual ~Cyclic();
  1910. Cyclic(const Cyclic& from);
  1911. inline Cyclic& operator=(const Cyclic& from) {
  1912. CopyFrom(from);
  1913. return *this;
  1914. }
  1915. #if LANG_CXX11
  1916. Cyclic(Cyclic&& from) noexcept
  1917. : Cyclic() {
  1918. *this = ::std::move(from);
  1919. }
  1920. inline Cyclic& operator=(Cyclic&& from) noexcept {
  1921. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1922. if (this != &from) InternalSwap(&from);
  1923. } else {
  1924. CopyFrom(from);
  1925. }
  1926. return *this;
  1927. }
  1928. #endif
  1929. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1930. return _internal_metadata_.unknown_fields();
  1931. }
  1932. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1933. return _internal_metadata_.mutable_unknown_fields();
  1934. }
  1935. static const ::google::protobuf::Descriptor* descriptor();
  1936. static const Cyclic& default_instance();
  1937. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1938. static inline const Cyclic* internal_default_instance() {
  1939. return reinterpret_cast<const Cyclic*>(
  1940. &_Cyclic_default_instance_);
  1941. }
  1942. static constexpr int kIndexInFileMessages =
  1943. 10;
  1944. void Swap(Cyclic* other);
  1945. friend void swap(Cyclic& a, Cyclic& b) {
  1946. a.Swap(&b);
  1947. }
  1948. // implements Message ----------------------------------------------
  1949. inline Cyclic* New() const final {
  1950. return CreateMaybeMessage<Cyclic>(NULL);
  1951. }
  1952. Cyclic* New(::google::protobuf::Arena* arena) const final {
  1953. return CreateMaybeMessage<Cyclic>(arena);
  1954. }
  1955. void CopyFrom(const ::google::protobuf::Message& from) final;
  1956. void MergeFrom(const ::google::protobuf::Message& from) final;
  1957. void CopyFrom(const Cyclic& from);
  1958. void MergeFrom(const Cyclic& from);
  1959. void Clear() final;
  1960. bool IsInitialized() const final;
  1961. size_t ByteSizeLong() const final;
  1962. bool MergePartialFromCodedStream(
  1963. ::google::protobuf::io::CodedInputStream* input) final;
  1964. void SerializeWithCachedSizes(
  1965. ::google::protobuf::io::CodedOutputStream* output) const final;
  1966. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1967. bool deterministic, ::google::protobuf::uint8* target) const final;
  1968. int GetCachedSize() const final { return _cached_size_.Get(); }
  1969. private:
  1970. void SharedCtor();
  1971. void SharedDtor();
  1972. void SetCachedSize(int size) const final;
  1973. void InternalSwap(Cyclic* other);
  1974. private:
  1975. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1976. return NULL;
  1977. }
  1978. inline void* MaybeArenaPtr() const {
  1979. return NULL;
  1980. }
  1981. public:
  1982. ::google::protobuf::Metadata GetMetadata() const final;
  1983. // nested types ----------------------------------------------------
  1984. // accessors -------------------------------------------------------
  1985. // repeated .google.protobuf.testing.Author m_author = 5;
  1986. int m_author_size() const;
  1987. void clear_m_author();
  1988. static const int kMAuthorFieldNumber = 5;
  1989. ::google::protobuf::testing::Author* mutable_m_author(int index);
  1990. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Author >*
  1991. mutable_m_author();
  1992. const ::google::protobuf::testing::Author& m_author(int index) const;
  1993. ::google::protobuf::testing::Author* add_m_author();
  1994. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Author >&
  1995. m_author() const;
  1996. // optional string m_str = 2;
  1997. bool has_m_str() const;
  1998. void clear_m_str();
  1999. static const int kMStrFieldNumber = 2;
  2000. const ::std::string& m_str() const;
  2001. void set_m_str(const ::std::string& value);
  2002. #if LANG_CXX11
  2003. void set_m_str(::std::string&& value);
  2004. #endif
  2005. void set_m_str(const char* value);
  2006. void set_m_str(const char* value, size_t size);
  2007. ::std::string* mutable_m_str();
  2008. ::std::string* release_m_str();
  2009. void set_allocated_m_str(::std::string* m_str);
  2010. // optional .google.protobuf.testing.Book m_book = 3;
  2011. bool has_m_book() const;
  2012. void clear_m_book();
  2013. static const int kMBookFieldNumber = 3;
  2014. private:
  2015. const ::google::protobuf::testing::Book& _internal_m_book() const;
  2016. public:
  2017. const ::google::protobuf::testing::Book& m_book() const;
  2018. ::google::protobuf::testing::Book* release_m_book();
  2019. ::google::protobuf::testing::Book* mutable_m_book();
  2020. void set_allocated_m_book(::google::protobuf::testing::Book* m_book);
  2021. // optional .google.protobuf.testing.Cyclic m_cyclic = 4;
  2022. bool has_m_cyclic() const;
  2023. void clear_m_cyclic();
  2024. static const int kMCyclicFieldNumber = 4;
  2025. private:
  2026. const ::google::protobuf::testing::Cyclic& _internal_m_cyclic() const;
  2027. public:
  2028. const ::google::protobuf::testing::Cyclic& m_cyclic() const;
  2029. ::google::protobuf::testing::Cyclic* release_m_cyclic();
  2030. ::google::protobuf::testing::Cyclic* mutable_m_cyclic();
  2031. void set_allocated_m_cyclic(::google::protobuf::testing::Cyclic* m_cyclic);
  2032. // optional int32 m_int = 1;
  2033. bool has_m_int() const;
  2034. void clear_m_int();
  2035. static const int kMIntFieldNumber = 1;
  2036. ::google::protobuf::int32 m_int() const;
  2037. void set_m_int(::google::protobuf::int32 value);
  2038. // @@protoc_insertion_point(class_scope:google.protobuf.testing.Cyclic)
  2039. private:
  2040. void set_has_m_int();
  2041. void clear_has_m_int();
  2042. void set_has_m_str();
  2043. void clear_has_m_str();
  2044. void set_has_m_book();
  2045. void clear_has_m_book();
  2046. void set_has_m_cyclic();
  2047. void clear_has_m_cyclic();
  2048. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2049. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2050. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2051. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Author > m_author_;
  2052. ::google::protobuf::internal::ArenaStringPtr m_str_;
  2053. ::google::protobuf::testing::Book* m_book_;
  2054. ::google::protobuf::testing::Cyclic* m_cyclic_;
  2055. ::google::protobuf::int32 m_int_;
  2056. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto::TableStruct;
  2057. };
  2058. // -------------------------------------------------------------------
  2059. class TestJsonName1 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.TestJsonName1) */ {
  2060. public:
  2061. TestJsonName1();
  2062. virtual ~TestJsonName1();
  2063. TestJsonName1(const TestJsonName1& from);
  2064. inline TestJsonName1& operator=(const TestJsonName1& from) {
  2065. CopyFrom(from);
  2066. return *this;
  2067. }
  2068. #if LANG_CXX11
  2069. TestJsonName1(TestJsonName1&& from) noexcept
  2070. : TestJsonName1() {
  2071. *this = ::std::move(from);
  2072. }
  2073. inline TestJsonName1& operator=(TestJsonName1&& from) noexcept {
  2074. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2075. if (this != &from) InternalSwap(&from);
  2076. } else {
  2077. CopyFrom(from);
  2078. }
  2079. return *this;
  2080. }
  2081. #endif
  2082. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2083. return _internal_metadata_.unknown_fields();
  2084. }
  2085. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2086. return _internal_metadata_.mutable_unknown_fields();
  2087. }
  2088. static const ::google::protobuf::Descriptor* descriptor();
  2089. static const TestJsonName1& default_instance();
  2090. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2091. static inline const TestJsonName1* internal_default_instance() {
  2092. return reinterpret_cast<const TestJsonName1*>(
  2093. &_TestJsonName1_default_instance_);
  2094. }
  2095. static constexpr int kIndexInFileMessages =
  2096. 11;
  2097. void Swap(TestJsonName1* other);
  2098. friend void swap(TestJsonName1& a, TestJsonName1& b) {
  2099. a.Swap(&b);
  2100. }
  2101. // implements Message ----------------------------------------------
  2102. inline TestJsonName1* New() const final {
  2103. return CreateMaybeMessage<TestJsonName1>(NULL);
  2104. }
  2105. TestJsonName1* New(::google::protobuf::Arena* arena) const final {
  2106. return CreateMaybeMessage<TestJsonName1>(arena);
  2107. }
  2108. void CopyFrom(const ::google::protobuf::Message& from) final;
  2109. void MergeFrom(const ::google::protobuf::Message& from) final;
  2110. void CopyFrom(const TestJsonName1& from);
  2111. void MergeFrom(const TestJsonName1& from);
  2112. void Clear() final;
  2113. bool IsInitialized() const final;
  2114. size_t ByteSizeLong() const final;
  2115. bool MergePartialFromCodedStream(
  2116. ::google::protobuf::io::CodedInputStream* input) final;
  2117. void SerializeWithCachedSizes(
  2118. ::google::protobuf::io::CodedOutputStream* output) const final;
  2119. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2120. bool deterministic, ::google::protobuf::uint8* target) const final;
  2121. int GetCachedSize() const final { return _cached_size_.Get(); }
  2122. private:
  2123. void SharedCtor();
  2124. void SharedDtor();
  2125. void SetCachedSize(int size) const final;
  2126. void InternalSwap(TestJsonName1* other);
  2127. private:
  2128. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2129. return NULL;
  2130. }
  2131. inline void* MaybeArenaPtr() const {
  2132. return NULL;
  2133. }
  2134. public:
  2135. ::google::protobuf::Metadata GetMetadata() const final;
  2136. // nested types ----------------------------------------------------
  2137. // accessors -------------------------------------------------------
  2138. // optional int32 one_value = 1[json_name = "value"];
  2139. bool has_one_value() const;
  2140. void clear_one_value();
  2141. static const int kOneValueFieldNumber = 1;
  2142. ::google::protobuf::int32 one_value() const;
  2143. void set_one_value(::google::protobuf::int32 value);
  2144. // @@protoc_insertion_point(class_scope:google.protobuf.testing.TestJsonName1)
  2145. private:
  2146. void set_has_one_value();
  2147. void clear_has_one_value();
  2148. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2149. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2150. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2151. ::google::protobuf::int32 one_value_;
  2152. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto::TableStruct;
  2153. };
  2154. // -------------------------------------------------------------------
  2155. class TestJsonName2 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.TestJsonName2) */ {
  2156. public:
  2157. TestJsonName2();
  2158. virtual ~TestJsonName2();
  2159. TestJsonName2(const TestJsonName2& from);
  2160. inline TestJsonName2& operator=(const TestJsonName2& from) {
  2161. CopyFrom(from);
  2162. return *this;
  2163. }
  2164. #if LANG_CXX11
  2165. TestJsonName2(TestJsonName2&& from) noexcept
  2166. : TestJsonName2() {
  2167. *this = ::std::move(from);
  2168. }
  2169. inline TestJsonName2& operator=(TestJsonName2&& from) noexcept {
  2170. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2171. if (this != &from) InternalSwap(&from);
  2172. } else {
  2173. CopyFrom(from);
  2174. }
  2175. return *this;
  2176. }
  2177. #endif
  2178. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2179. return _internal_metadata_.unknown_fields();
  2180. }
  2181. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2182. return _internal_metadata_.mutable_unknown_fields();
  2183. }
  2184. static const ::google::protobuf::Descriptor* descriptor();
  2185. static const TestJsonName2& default_instance();
  2186. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2187. static inline const TestJsonName2* internal_default_instance() {
  2188. return reinterpret_cast<const TestJsonName2*>(
  2189. &_TestJsonName2_default_instance_);
  2190. }
  2191. static constexpr int kIndexInFileMessages =
  2192. 12;
  2193. void Swap(TestJsonName2* other);
  2194. friend void swap(TestJsonName2& a, TestJsonName2& b) {
  2195. a.Swap(&b);
  2196. }
  2197. // implements Message ----------------------------------------------
  2198. inline TestJsonName2* New() const final {
  2199. return CreateMaybeMessage<TestJsonName2>(NULL);
  2200. }
  2201. TestJsonName2* New(::google::protobuf::Arena* arena) const final {
  2202. return CreateMaybeMessage<TestJsonName2>(arena);
  2203. }
  2204. void CopyFrom(const ::google::protobuf::Message& from) final;
  2205. void MergeFrom(const ::google::protobuf::Message& from) final;
  2206. void CopyFrom(const TestJsonName2& from);
  2207. void MergeFrom(const TestJsonName2& from);
  2208. void Clear() final;
  2209. bool IsInitialized() const final;
  2210. size_t ByteSizeLong() const final;
  2211. bool MergePartialFromCodedStream(
  2212. ::google::protobuf::io::CodedInputStream* input) final;
  2213. void SerializeWithCachedSizes(
  2214. ::google::protobuf::io::CodedOutputStream* output) const final;
  2215. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2216. bool deterministic, ::google::protobuf::uint8* target) const final;
  2217. int GetCachedSize() const final { return _cached_size_.Get(); }
  2218. private:
  2219. void SharedCtor();
  2220. void SharedDtor();
  2221. void SetCachedSize(int size) const final;
  2222. void InternalSwap(TestJsonName2* other);
  2223. private:
  2224. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2225. return NULL;
  2226. }
  2227. inline void* MaybeArenaPtr() const {
  2228. return NULL;
  2229. }
  2230. public:
  2231. ::google::protobuf::Metadata GetMetadata() const final;
  2232. // nested types ----------------------------------------------------
  2233. // accessors -------------------------------------------------------
  2234. // optional int32 another_value = 1[json_name = "value"];
  2235. bool has_another_value() const;
  2236. void clear_another_value();
  2237. static const int kAnotherValueFieldNumber = 1;
  2238. ::google::protobuf::int32 another_value() const;
  2239. void set_another_value(::google::protobuf::int32 value);
  2240. // @@protoc_insertion_point(class_scope:google.protobuf.testing.TestJsonName2)
  2241. private:
  2242. void set_has_another_value();
  2243. void clear_has_another_value();
  2244. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2245. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2246. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2247. ::google::protobuf::int32 another_value_;
  2248. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto::TableStruct;
  2249. };
  2250. // ===================================================================
  2251. static const int kMoreAuthorFieldNumber = 201;
  2252. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::testing::Book,
  2253. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::google::protobuf::testing::Author >, 11, false >
  2254. more_author;
  2255. // ===================================================================
  2256. #ifdef __GNUC__
  2257. #pragma GCC diagnostic push
  2258. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  2259. #endif // __GNUC__
  2260. // Book_Data
  2261. // optional uint32 year = 7;
  2262. inline bool Book_Data::has_year() const {
  2263. return (_has_bits_[0] & 0x00000002u) != 0;
  2264. }
  2265. inline void Book_Data::set_has_year() {
  2266. _has_bits_[0] |= 0x00000002u;
  2267. }
  2268. inline void Book_Data::clear_has_year() {
  2269. _has_bits_[0] &= ~0x00000002u;
  2270. }
  2271. inline void Book_Data::clear_year() {
  2272. year_ = 0u;
  2273. clear_has_year();
  2274. }
  2275. inline ::google::protobuf::uint32 Book_Data::year() const {
  2276. // @@protoc_insertion_point(field_get:google.protobuf.testing.Book.Data.year)
  2277. return year_;
  2278. }
  2279. inline void Book_Data::set_year(::google::protobuf::uint32 value) {
  2280. set_has_year();
  2281. year_ = value;
  2282. // @@protoc_insertion_point(field_set:google.protobuf.testing.Book.Data.year)
  2283. }
  2284. // optional string copyright = 8;
  2285. inline bool Book_Data::has_copyright() const {
  2286. return (_has_bits_[0] & 0x00000001u) != 0;
  2287. }
  2288. inline void Book_Data::set_has_copyright() {
  2289. _has_bits_[0] |= 0x00000001u;
  2290. }
  2291. inline void Book_Data::clear_has_copyright() {
  2292. _has_bits_[0] &= ~0x00000001u;
  2293. }
  2294. inline void Book_Data::clear_copyright() {
  2295. copyright_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2296. clear_has_copyright();
  2297. }
  2298. inline const ::std::string& Book_Data::copyright() const {
  2299. // @@protoc_insertion_point(field_get:google.protobuf.testing.Book.Data.copyright)
  2300. return copyright_.GetNoArena();
  2301. }
  2302. inline void Book_Data::set_copyright(const ::std::string& value) {
  2303. set_has_copyright();
  2304. copyright_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2305. // @@protoc_insertion_point(field_set:google.protobuf.testing.Book.Data.copyright)
  2306. }
  2307. #if LANG_CXX11
  2308. inline void Book_Data::set_copyright(::std::string&& value) {
  2309. set_has_copyright();
  2310. copyright_.SetNoArena(
  2311. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2312. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.Book.Data.copyright)
  2313. }
  2314. #endif
  2315. inline void Book_Data::set_copyright(const char* value) {
  2316. GOOGLE_DCHECK(value != NULL);
  2317. set_has_copyright();
  2318. copyright_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2319. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Book.Data.copyright)
  2320. }
  2321. inline void Book_Data::set_copyright(const char* value, size_t size) {
  2322. set_has_copyright();
  2323. copyright_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2324. ::std::string(reinterpret_cast<const char*>(value), size));
  2325. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Book.Data.copyright)
  2326. }
  2327. inline ::std::string* Book_Data::mutable_copyright() {
  2328. set_has_copyright();
  2329. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Book.Data.copyright)
  2330. return copyright_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2331. }
  2332. inline ::std::string* Book_Data::release_copyright() {
  2333. // @@protoc_insertion_point(field_release:google.protobuf.testing.Book.Data.copyright)
  2334. if (!has_copyright()) {
  2335. return NULL;
  2336. }
  2337. clear_has_copyright();
  2338. return copyright_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2339. }
  2340. inline void Book_Data::set_allocated_copyright(::std::string* copyright) {
  2341. if (copyright != NULL) {
  2342. set_has_copyright();
  2343. } else {
  2344. clear_has_copyright();
  2345. }
  2346. copyright_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), copyright);
  2347. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Book.Data.copyright)
  2348. }
  2349. // -------------------------------------------------------------------
  2350. // Book_Label
  2351. // optional string key = 1;
  2352. inline bool Book_Label::has_key() const {
  2353. return (_has_bits_[0] & 0x00000001u) != 0;
  2354. }
  2355. inline void Book_Label::set_has_key() {
  2356. _has_bits_[0] |= 0x00000001u;
  2357. }
  2358. inline void Book_Label::clear_has_key() {
  2359. _has_bits_[0] &= ~0x00000001u;
  2360. }
  2361. inline void Book_Label::clear_key() {
  2362. key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2363. clear_has_key();
  2364. }
  2365. inline const ::std::string& Book_Label::key() const {
  2366. // @@protoc_insertion_point(field_get:google.protobuf.testing.Book.Label.key)
  2367. return key_.GetNoArena();
  2368. }
  2369. inline void Book_Label::set_key(const ::std::string& value) {
  2370. set_has_key();
  2371. key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2372. // @@protoc_insertion_point(field_set:google.protobuf.testing.Book.Label.key)
  2373. }
  2374. #if LANG_CXX11
  2375. inline void Book_Label::set_key(::std::string&& value) {
  2376. set_has_key();
  2377. key_.SetNoArena(
  2378. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2379. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.Book.Label.key)
  2380. }
  2381. #endif
  2382. inline void Book_Label::set_key(const char* value) {
  2383. GOOGLE_DCHECK(value != NULL);
  2384. set_has_key();
  2385. key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2386. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Book.Label.key)
  2387. }
  2388. inline void Book_Label::set_key(const char* value, size_t size) {
  2389. set_has_key();
  2390. key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2391. ::std::string(reinterpret_cast<const char*>(value), size));
  2392. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Book.Label.key)
  2393. }
  2394. inline ::std::string* Book_Label::mutable_key() {
  2395. set_has_key();
  2396. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Book.Label.key)
  2397. return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2398. }
  2399. inline ::std::string* Book_Label::release_key() {
  2400. // @@protoc_insertion_point(field_release:google.protobuf.testing.Book.Label.key)
  2401. if (!has_key()) {
  2402. return NULL;
  2403. }
  2404. clear_has_key();
  2405. return key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2406. }
  2407. inline void Book_Label::set_allocated_key(::std::string* key) {
  2408. if (key != NULL) {
  2409. set_has_key();
  2410. } else {
  2411. clear_has_key();
  2412. }
  2413. key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
  2414. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Book.Label.key)
  2415. }
  2416. // optional string value = 2;
  2417. inline bool Book_Label::has_value() const {
  2418. return (_has_bits_[0] & 0x00000002u) != 0;
  2419. }
  2420. inline void Book_Label::set_has_value() {
  2421. _has_bits_[0] |= 0x00000002u;
  2422. }
  2423. inline void Book_Label::clear_has_value() {
  2424. _has_bits_[0] &= ~0x00000002u;
  2425. }
  2426. inline void Book_Label::clear_value() {
  2427. value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2428. clear_has_value();
  2429. }
  2430. inline const ::std::string& Book_Label::value() const {
  2431. // @@protoc_insertion_point(field_get:google.protobuf.testing.Book.Label.value)
  2432. return value_.GetNoArena();
  2433. }
  2434. inline void Book_Label::set_value(const ::std::string& value) {
  2435. set_has_value();
  2436. value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2437. // @@protoc_insertion_point(field_set:google.protobuf.testing.Book.Label.value)
  2438. }
  2439. #if LANG_CXX11
  2440. inline void Book_Label::set_value(::std::string&& value) {
  2441. set_has_value();
  2442. value_.SetNoArena(
  2443. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2444. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.Book.Label.value)
  2445. }
  2446. #endif
  2447. inline void Book_Label::set_value(const char* value) {
  2448. GOOGLE_DCHECK(value != NULL);
  2449. set_has_value();
  2450. value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2451. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Book.Label.value)
  2452. }
  2453. inline void Book_Label::set_value(const char* value, size_t size) {
  2454. set_has_value();
  2455. value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2456. ::std::string(reinterpret_cast<const char*>(value), size));
  2457. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Book.Label.value)
  2458. }
  2459. inline ::std::string* Book_Label::mutable_value() {
  2460. set_has_value();
  2461. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Book.Label.value)
  2462. return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2463. }
  2464. inline ::std::string* Book_Label::release_value() {
  2465. // @@protoc_insertion_point(field_release:google.protobuf.testing.Book.Label.value)
  2466. if (!has_value()) {
  2467. return NULL;
  2468. }
  2469. clear_has_value();
  2470. return value_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2471. }
  2472. inline void Book_Label::set_allocated_value(::std::string* value) {
  2473. if (value != NULL) {
  2474. set_has_value();
  2475. } else {
  2476. clear_has_value();
  2477. }
  2478. value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2479. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Book.Label.value)
  2480. }
  2481. // -------------------------------------------------------------------
  2482. // Book
  2483. // optional string title = 1;
  2484. inline bool Book::has_title() const {
  2485. return (_has_bits_[0] & 0x00000001u) != 0;
  2486. }
  2487. inline void Book::set_has_title() {
  2488. _has_bits_[0] |= 0x00000001u;
  2489. }
  2490. inline void Book::clear_has_title() {
  2491. _has_bits_[0] &= ~0x00000001u;
  2492. }
  2493. inline void Book::clear_title() {
  2494. title_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2495. clear_has_title();
  2496. }
  2497. inline const ::std::string& Book::title() const {
  2498. // @@protoc_insertion_point(field_get:google.protobuf.testing.Book.title)
  2499. return title_.GetNoArena();
  2500. }
  2501. inline void Book::set_title(const ::std::string& value) {
  2502. set_has_title();
  2503. title_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2504. // @@protoc_insertion_point(field_set:google.protobuf.testing.Book.title)
  2505. }
  2506. #if LANG_CXX11
  2507. inline void Book::set_title(::std::string&& value) {
  2508. set_has_title();
  2509. title_.SetNoArena(
  2510. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2511. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.Book.title)
  2512. }
  2513. #endif
  2514. inline void Book::set_title(const char* value) {
  2515. GOOGLE_DCHECK(value != NULL);
  2516. set_has_title();
  2517. title_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2518. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Book.title)
  2519. }
  2520. inline void Book::set_title(const char* value, size_t size) {
  2521. set_has_title();
  2522. title_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2523. ::std::string(reinterpret_cast<const char*>(value), size));
  2524. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Book.title)
  2525. }
  2526. inline ::std::string* Book::mutable_title() {
  2527. set_has_title();
  2528. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Book.title)
  2529. return title_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2530. }
  2531. inline ::std::string* Book::release_title() {
  2532. // @@protoc_insertion_point(field_release:google.protobuf.testing.Book.title)
  2533. if (!has_title()) {
  2534. return NULL;
  2535. }
  2536. clear_has_title();
  2537. return title_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2538. }
  2539. inline void Book::set_allocated_title(::std::string* title) {
  2540. if (title != NULL) {
  2541. set_has_title();
  2542. } else {
  2543. clear_has_title();
  2544. }
  2545. title_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), title);
  2546. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Book.title)
  2547. }
  2548. // optional .google.protobuf.testing.Author author = 2;
  2549. inline bool Book::has_author() const {
  2550. return (_has_bits_[0] & 0x00000004u) != 0;
  2551. }
  2552. inline void Book::set_has_author() {
  2553. _has_bits_[0] |= 0x00000004u;
  2554. }
  2555. inline void Book::clear_has_author() {
  2556. _has_bits_[0] &= ~0x00000004u;
  2557. }
  2558. inline void Book::clear_author() {
  2559. if (author_ != NULL) author_->Clear();
  2560. clear_has_author();
  2561. }
  2562. inline const ::google::protobuf::testing::Author& Book::_internal_author() const {
  2563. return *author_;
  2564. }
  2565. inline const ::google::protobuf::testing::Author& Book::author() const {
  2566. const ::google::protobuf::testing::Author* p = author_;
  2567. // @@protoc_insertion_point(field_get:google.protobuf.testing.Book.author)
  2568. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Author*>(
  2569. &::google::protobuf::testing::_Author_default_instance_);
  2570. }
  2571. inline ::google::protobuf::testing::Author* Book::release_author() {
  2572. // @@protoc_insertion_point(field_release:google.protobuf.testing.Book.author)
  2573. clear_has_author();
  2574. ::google::protobuf::testing::Author* temp = author_;
  2575. author_ = NULL;
  2576. return temp;
  2577. }
  2578. inline ::google::protobuf::testing::Author* Book::mutable_author() {
  2579. set_has_author();
  2580. if (author_ == NULL) {
  2581. auto* p = CreateMaybeMessage<::google::protobuf::testing::Author>(GetArenaNoVirtual());
  2582. author_ = p;
  2583. }
  2584. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Book.author)
  2585. return author_;
  2586. }
  2587. inline void Book::set_allocated_author(::google::protobuf::testing::Author* author) {
  2588. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2589. if (message_arena == NULL) {
  2590. delete author_;
  2591. }
  2592. if (author) {
  2593. ::google::protobuf::Arena* submessage_arena = NULL;
  2594. if (message_arena != submessage_arena) {
  2595. author = ::google::protobuf::internal::GetOwnedMessage(
  2596. message_arena, author, submessage_arena);
  2597. }
  2598. set_has_author();
  2599. } else {
  2600. clear_has_author();
  2601. }
  2602. author_ = author;
  2603. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Book.author)
  2604. }
  2605. // optional uint32 length = 3;
  2606. inline bool Book::has_length() const {
  2607. return (_has_bits_[0] & 0x00000040u) != 0;
  2608. }
  2609. inline void Book::set_has_length() {
  2610. _has_bits_[0] |= 0x00000040u;
  2611. }
  2612. inline void Book::clear_has_length() {
  2613. _has_bits_[0] &= ~0x00000040u;
  2614. }
  2615. inline void Book::clear_length() {
  2616. length_ = 0u;
  2617. clear_has_length();
  2618. }
  2619. inline ::google::protobuf::uint32 Book::length() const {
  2620. // @@protoc_insertion_point(field_get:google.protobuf.testing.Book.length)
  2621. return length_;
  2622. }
  2623. inline void Book::set_length(::google::protobuf::uint32 value) {
  2624. set_has_length();
  2625. length_ = value;
  2626. // @@protoc_insertion_point(field_set:google.protobuf.testing.Book.length)
  2627. }
  2628. // optional int64 published = 4;
  2629. inline bool Book::has_published() const {
  2630. return (_has_bits_[0] & 0x00000020u) != 0;
  2631. }
  2632. inline void Book::set_has_published() {
  2633. _has_bits_[0] |= 0x00000020u;
  2634. }
  2635. inline void Book::clear_has_published() {
  2636. _has_bits_[0] &= ~0x00000020u;
  2637. }
  2638. inline void Book::clear_published() {
  2639. published_ = GOOGLE_LONGLONG(0);
  2640. clear_has_published();
  2641. }
  2642. inline ::google::protobuf::int64 Book::published() const {
  2643. // @@protoc_insertion_point(field_get:google.protobuf.testing.Book.published)
  2644. return published_;
  2645. }
  2646. inline void Book::set_published(::google::protobuf::int64 value) {
  2647. set_has_published();
  2648. published_ = value;
  2649. // @@protoc_insertion_point(field_set:google.protobuf.testing.Book.published)
  2650. }
  2651. // optional bytes content = 5;
  2652. inline bool Book::has_content() const {
  2653. return (_has_bits_[0] & 0x00000002u) != 0;
  2654. }
  2655. inline void Book::set_has_content() {
  2656. _has_bits_[0] |= 0x00000002u;
  2657. }
  2658. inline void Book::clear_has_content() {
  2659. _has_bits_[0] &= ~0x00000002u;
  2660. }
  2661. inline void Book::clear_content() {
  2662. content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2663. clear_has_content();
  2664. }
  2665. inline const ::std::string& Book::content() const {
  2666. // @@protoc_insertion_point(field_get:google.protobuf.testing.Book.content)
  2667. return content_.GetNoArena();
  2668. }
  2669. inline void Book::set_content(const ::std::string& value) {
  2670. set_has_content();
  2671. content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2672. // @@protoc_insertion_point(field_set:google.protobuf.testing.Book.content)
  2673. }
  2674. #if LANG_CXX11
  2675. inline void Book::set_content(::std::string&& value) {
  2676. set_has_content();
  2677. content_.SetNoArena(
  2678. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2679. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.Book.content)
  2680. }
  2681. #endif
  2682. inline void Book::set_content(const char* value) {
  2683. GOOGLE_DCHECK(value != NULL);
  2684. set_has_content();
  2685. content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2686. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Book.content)
  2687. }
  2688. inline void Book::set_content(const void* value, size_t size) {
  2689. set_has_content();
  2690. content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2691. ::std::string(reinterpret_cast<const char*>(value), size));
  2692. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Book.content)
  2693. }
  2694. inline ::std::string* Book::mutable_content() {
  2695. set_has_content();
  2696. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Book.content)
  2697. return content_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2698. }
  2699. inline ::std::string* Book::release_content() {
  2700. // @@protoc_insertion_point(field_release:google.protobuf.testing.Book.content)
  2701. if (!has_content()) {
  2702. return NULL;
  2703. }
  2704. clear_has_content();
  2705. return content_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2706. }
  2707. inline void Book::set_allocated_content(::std::string* content) {
  2708. if (content != NULL) {
  2709. set_has_content();
  2710. } else {
  2711. clear_has_content();
  2712. }
  2713. content_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), content);
  2714. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Book.content)
  2715. }
  2716. // optional group Data = 6 { ... };
  2717. inline bool Book::has_data() const {
  2718. return (_has_bits_[0] & 0x00000008u) != 0;
  2719. }
  2720. inline void Book::set_has_data() {
  2721. _has_bits_[0] |= 0x00000008u;
  2722. }
  2723. inline void Book::clear_has_data() {
  2724. _has_bits_[0] &= ~0x00000008u;
  2725. }
  2726. inline void Book::clear_data() {
  2727. if (data_ != NULL) data_->Clear();
  2728. clear_has_data();
  2729. }
  2730. inline const ::google::protobuf::testing::Book_Data& Book::_internal_data() const {
  2731. return *data_;
  2732. }
  2733. inline const ::google::protobuf::testing::Book_Data& Book::data() const {
  2734. const ::google::protobuf::testing::Book_Data* p = data_;
  2735. // @@protoc_insertion_point(field_get:google.protobuf.testing.Book.data)
  2736. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Book_Data*>(
  2737. &::google::protobuf::testing::_Book_Data_default_instance_);
  2738. }
  2739. inline ::google::protobuf::testing::Book_Data* Book::release_data() {
  2740. // @@protoc_insertion_point(field_release:google.protobuf.testing.Book.data)
  2741. clear_has_data();
  2742. ::google::protobuf::testing::Book_Data* temp = data_;
  2743. data_ = NULL;
  2744. return temp;
  2745. }
  2746. inline ::google::protobuf::testing::Book_Data* Book::mutable_data() {
  2747. set_has_data();
  2748. if (data_ == NULL) {
  2749. auto* p = CreateMaybeMessage<::google::protobuf::testing::Book_Data>(GetArenaNoVirtual());
  2750. data_ = p;
  2751. }
  2752. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Book.data)
  2753. return data_;
  2754. }
  2755. inline void Book::set_allocated_data(::google::protobuf::testing::Book_Data* data) {
  2756. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2757. if (message_arena == NULL) {
  2758. delete data_;
  2759. }
  2760. if (data) {
  2761. ::google::protobuf::Arena* submessage_arena = NULL;
  2762. if (message_arena != submessage_arena) {
  2763. data = ::google::protobuf::internal::GetOwnedMessage(
  2764. message_arena, data, submessage_arena);
  2765. }
  2766. set_has_data();
  2767. } else {
  2768. clear_has_data();
  2769. }
  2770. data_ = data;
  2771. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Book.data)
  2772. }
  2773. // optional .google.protobuf.testing.Publisher publisher = 9;
  2774. inline bool Book::has_publisher() const {
  2775. return (_has_bits_[0] & 0x00000010u) != 0;
  2776. }
  2777. inline void Book::set_has_publisher() {
  2778. _has_bits_[0] |= 0x00000010u;
  2779. }
  2780. inline void Book::clear_has_publisher() {
  2781. _has_bits_[0] &= ~0x00000010u;
  2782. }
  2783. inline void Book::clear_publisher() {
  2784. if (publisher_ != NULL) publisher_->Clear();
  2785. clear_has_publisher();
  2786. }
  2787. inline const ::google::protobuf::testing::Publisher& Book::_internal_publisher() const {
  2788. return *publisher_;
  2789. }
  2790. inline const ::google::protobuf::testing::Publisher& Book::publisher() const {
  2791. const ::google::protobuf::testing::Publisher* p = publisher_;
  2792. // @@protoc_insertion_point(field_get:google.protobuf.testing.Book.publisher)
  2793. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Publisher*>(
  2794. &::google::protobuf::testing::_Publisher_default_instance_);
  2795. }
  2796. inline ::google::protobuf::testing::Publisher* Book::release_publisher() {
  2797. // @@protoc_insertion_point(field_release:google.protobuf.testing.Book.publisher)
  2798. clear_has_publisher();
  2799. ::google::protobuf::testing::Publisher* temp = publisher_;
  2800. publisher_ = NULL;
  2801. return temp;
  2802. }
  2803. inline ::google::protobuf::testing::Publisher* Book::mutable_publisher() {
  2804. set_has_publisher();
  2805. if (publisher_ == NULL) {
  2806. auto* p = CreateMaybeMessage<::google::protobuf::testing::Publisher>(GetArenaNoVirtual());
  2807. publisher_ = p;
  2808. }
  2809. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Book.publisher)
  2810. return publisher_;
  2811. }
  2812. inline void Book::set_allocated_publisher(::google::protobuf::testing::Publisher* publisher) {
  2813. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2814. if (message_arena == NULL) {
  2815. delete publisher_;
  2816. }
  2817. if (publisher) {
  2818. ::google::protobuf::Arena* submessage_arena = NULL;
  2819. if (message_arena != submessage_arena) {
  2820. publisher = ::google::protobuf::internal::GetOwnedMessage(
  2821. message_arena, publisher, submessage_arena);
  2822. }
  2823. set_has_publisher();
  2824. } else {
  2825. clear_has_publisher();
  2826. }
  2827. publisher_ = publisher;
  2828. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Book.publisher)
  2829. }
  2830. // repeated .google.protobuf.testing.Book.Label labels = 10;
  2831. inline int Book::labels_size() const {
  2832. return labels_.size();
  2833. }
  2834. inline void Book::clear_labels() {
  2835. labels_.Clear();
  2836. }
  2837. inline ::google::protobuf::testing::Book_Label* Book::mutable_labels(int index) {
  2838. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Book.labels)
  2839. return labels_.Mutable(index);
  2840. }
  2841. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Book_Label >*
  2842. Book::mutable_labels() {
  2843. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Book.labels)
  2844. return &labels_;
  2845. }
  2846. inline const ::google::protobuf::testing::Book_Label& Book::labels(int index) const {
  2847. // @@protoc_insertion_point(field_get:google.protobuf.testing.Book.labels)
  2848. return labels_.Get(index);
  2849. }
  2850. inline ::google::protobuf::testing::Book_Label* Book::add_labels() {
  2851. // @@protoc_insertion_point(field_add:google.protobuf.testing.Book.labels)
  2852. return labels_.Add();
  2853. }
  2854. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Book_Label >&
  2855. Book::labels() const {
  2856. // @@protoc_insertion_point(field_list:google.protobuf.testing.Book.labels)
  2857. return labels_;
  2858. }
  2859. // optional .google.protobuf.testing.Book.Type type = 11;
  2860. inline bool Book::has_type() const {
  2861. return (_has_bits_[0] & 0x00000080u) != 0;
  2862. }
  2863. inline void Book::set_has_type() {
  2864. _has_bits_[0] |= 0x00000080u;
  2865. }
  2866. inline void Book::clear_has_type() {
  2867. _has_bits_[0] &= ~0x00000080u;
  2868. }
  2869. inline void Book::clear_type() {
  2870. type_ = 1;
  2871. clear_has_type();
  2872. }
  2873. inline ::google::protobuf::testing::Book_Type Book::type() const {
  2874. // @@protoc_insertion_point(field_get:google.protobuf.testing.Book.type)
  2875. return static_cast< ::google::protobuf::testing::Book_Type >(type_);
  2876. }
  2877. inline void Book::set_type(::google::protobuf::testing::Book_Type value) {
  2878. assert(::google::protobuf::testing::Book_Type_IsValid(value));
  2879. set_has_type();
  2880. type_ = value;
  2881. // @@protoc_insertion_point(field_set:google.protobuf.testing.Book.type)
  2882. }
  2883. // -------------------------------------------------------------------
  2884. // Publisher
  2885. // required string name = 1;
  2886. inline bool Publisher::has_name() const {
  2887. return (_has_bits_[0] & 0x00000001u) != 0;
  2888. }
  2889. inline void Publisher::set_has_name() {
  2890. _has_bits_[0] |= 0x00000001u;
  2891. }
  2892. inline void Publisher::clear_has_name() {
  2893. _has_bits_[0] &= ~0x00000001u;
  2894. }
  2895. inline void Publisher::clear_name() {
  2896. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2897. clear_has_name();
  2898. }
  2899. inline const ::std::string& Publisher::name() const {
  2900. // @@protoc_insertion_point(field_get:google.protobuf.testing.Publisher.name)
  2901. return name_.GetNoArena();
  2902. }
  2903. inline void Publisher::set_name(const ::std::string& value) {
  2904. set_has_name();
  2905. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2906. // @@protoc_insertion_point(field_set:google.protobuf.testing.Publisher.name)
  2907. }
  2908. #if LANG_CXX11
  2909. inline void Publisher::set_name(::std::string&& value) {
  2910. set_has_name();
  2911. name_.SetNoArena(
  2912. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2913. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.Publisher.name)
  2914. }
  2915. #endif
  2916. inline void Publisher::set_name(const char* value) {
  2917. GOOGLE_DCHECK(value != NULL);
  2918. set_has_name();
  2919. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2920. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Publisher.name)
  2921. }
  2922. inline void Publisher::set_name(const char* value, size_t size) {
  2923. set_has_name();
  2924. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2925. ::std::string(reinterpret_cast<const char*>(value), size));
  2926. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Publisher.name)
  2927. }
  2928. inline ::std::string* Publisher::mutable_name() {
  2929. set_has_name();
  2930. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Publisher.name)
  2931. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2932. }
  2933. inline ::std::string* Publisher::release_name() {
  2934. // @@protoc_insertion_point(field_release:google.protobuf.testing.Publisher.name)
  2935. if (!has_name()) {
  2936. return NULL;
  2937. }
  2938. clear_has_name();
  2939. return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2940. }
  2941. inline void Publisher::set_allocated_name(::std::string* name) {
  2942. if (name != NULL) {
  2943. set_has_name();
  2944. } else {
  2945. clear_has_name();
  2946. }
  2947. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  2948. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Publisher.name)
  2949. }
  2950. // -------------------------------------------------------------------
  2951. // Author
  2952. // optional uint64 id = 1[json_name = "@id"];
  2953. inline bool Author::has_id() const {
  2954. return (_has_bits_[0] & 0x00000002u) != 0;
  2955. }
  2956. inline void Author::set_has_id() {
  2957. _has_bits_[0] |= 0x00000002u;
  2958. }
  2959. inline void Author::clear_has_id() {
  2960. _has_bits_[0] &= ~0x00000002u;
  2961. }
  2962. inline void Author::clear_id() {
  2963. id_ = GOOGLE_ULONGLONG(0);
  2964. clear_has_id();
  2965. }
  2966. inline ::google::protobuf::uint64 Author::id() const {
  2967. // @@protoc_insertion_point(field_get:google.protobuf.testing.Author.id)
  2968. return id_;
  2969. }
  2970. inline void Author::set_id(::google::protobuf::uint64 value) {
  2971. set_has_id();
  2972. id_ = value;
  2973. // @@protoc_insertion_point(field_set:google.protobuf.testing.Author.id)
  2974. }
  2975. // optional string name = 2;
  2976. inline bool Author::has_name() const {
  2977. return (_has_bits_[0] & 0x00000001u) != 0;
  2978. }
  2979. inline void Author::set_has_name() {
  2980. _has_bits_[0] |= 0x00000001u;
  2981. }
  2982. inline void Author::clear_has_name() {
  2983. _has_bits_[0] &= ~0x00000001u;
  2984. }
  2985. inline void Author::clear_name() {
  2986. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2987. clear_has_name();
  2988. }
  2989. inline const ::std::string& Author::name() const {
  2990. // @@protoc_insertion_point(field_get:google.protobuf.testing.Author.name)
  2991. return name_.GetNoArena();
  2992. }
  2993. inline void Author::set_name(const ::std::string& value) {
  2994. set_has_name();
  2995. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2996. // @@protoc_insertion_point(field_set:google.protobuf.testing.Author.name)
  2997. }
  2998. #if LANG_CXX11
  2999. inline void Author::set_name(::std::string&& value) {
  3000. set_has_name();
  3001. name_.SetNoArena(
  3002. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3003. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.Author.name)
  3004. }
  3005. #endif
  3006. inline void Author::set_name(const char* value) {
  3007. GOOGLE_DCHECK(value != NULL);
  3008. set_has_name();
  3009. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3010. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Author.name)
  3011. }
  3012. inline void Author::set_name(const char* value, size_t size) {
  3013. set_has_name();
  3014. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3015. ::std::string(reinterpret_cast<const char*>(value), size));
  3016. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Author.name)
  3017. }
  3018. inline ::std::string* Author::mutable_name() {
  3019. set_has_name();
  3020. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Author.name)
  3021. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3022. }
  3023. inline ::std::string* Author::release_name() {
  3024. // @@protoc_insertion_point(field_release:google.protobuf.testing.Author.name)
  3025. if (!has_name()) {
  3026. return NULL;
  3027. }
  3028. clear_has_name();
  3029. return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3030. }
  3031. inline void Author::set_allocated_name(::std::string* name) {
  3032. if (name != NULL) {
  3033. set_has_name();
  3034. } else {
  3035. clear_has_name();
  3036. }
  3037. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  3038. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Author.name)
  3039. }
  3040. // repeated string pseudonym = 3;
  3041. inline int Author::pseudonym_size() const {
  3042. return pseudonym_.size();
  3043. }
  3044. inline void Author::clear_pseudonym() {
  3045. pseudonym_.Clear();
  3046. }
  3047. inline const ::std::string& Author::pseudonym(int index) const {
  3048. // @@protoc_insertion_point(field_get:google.protobuf.testing.Author.pseudonym)
  3049. return pseudonym_.Get(index);
  3050. }
  3051. inline ::std::string* Author::mutable_pseudonym(int index) {
  3052. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Author.pseudonym)
  3053. return pseudonym_.Mutable(index);
  3054. }
  3055. inline void Author::set_pseudonym(int index, const ::std::string& value) {
  3056. // @@protoc_insertion_point(field_set:google.protobuf.testing.Author.pseudonym)
  3057. pseudonym_.Mutable(index)->assign(value);
  3058. }
  3059. #if LANG_CXX11
  3060. inline void Author::set_pseudonym(int index, ::std::string&& value) {
  3061. // @@protoc_insertion_point(field_set:google.protobuf.testing.Author.pseudonym)
  3062. pseudonym_.Mutable(index)->assign(std::move(value));
  3063. }
  3064. #endif
  3065. inline void Author::set_pseudonym(int index, const char* value) {
  3066. GOOGLE_DCHECK(value != NULL);
  3067. pseudonym_.Mutable(index)->assign(value);
  3068. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Author.pseudonym)
  3069. }
  3070. inline void Author::set_pseudonym(int index, const char* value, size_t size) {
  3071. pseudonym_.Mutable(index)->assign(
  3072. reinterpret_cast<const char*>(value), size);
  3073. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Author.pseudonym)
  3074. }
  3075. inline ::std::string* Author::add_pseudonym() {
  3076. // @@protoc_insertion_point(field_add_mutable:google.protobuf.testing.Author.pseudonym)
  3077. return pseudonym_.Add();
  3078. }
  3079. inline void Author::add_pseudonym(const ::std::string& value) {
  3080. pseudonym_.Add()->assign(value);
  3081. // @@protoc_insertion_point(field_add:google.protobuf.testing.Author.pseudonym)
  3082. }
  3083. #if LANG_CXX11
  3084. inline void Author::add_pseudonym(::std::string&& value) {
  3085. pseudonym_.Add(std::move(value));
  3086. // @@protoc_insertion_point(field_add:google.protobuf.testing.Author.pseudonym)
  3087. }
  3088. #endif
  3089. inline void Author::add_pseudonym(const char* value) {
  3090. GOOGLE_DCHECK(value != NULL);
  3091. pseudonym_.Add()->assign(value);
  3092. // @@protoc_insertion_point(field_add_char:google.protobuf.testing.Author.pseudonym)
  3093. }
  3094. inline void Author::add_pseudonym(const char* value, size_t size) {
  3095. pseudonym_.Add()->assign(reinterpret_cast<const char*>(value), size);
  3096. // @@protoc_insertion_point(field_add_pointer:google.protobuf.testing.Author.pseudonym)
  3097. }
  3098. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  3099. Author::pseudonym() const {
  3100. // @@protoc_insertion_point(field_list:google.protobuf.testing.Author.pseudonym)
  3101. return pseudonym_;
  3102. }
  3103. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  3104. Author::mutable_pseudonym() {
  3105. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Author.pseudonym)
  3106. return &pseudonym_;
  3107. }
  3108. // optional bool alive = 4;
  3109. inline bool Author::has_alive() const {
  3110. return (_has_bits_[0] & 0x00000004u) != 0;
  3111. }
  3112. inline void Author::set_has_alive() {
  3113. _has_bits_[0] |= 0x00000004u;
  3114. }
  3115. inline void Author::clear_has_alive() {
  3116. _has_bits_[0] &= ~0x00000004u;
  3117. }
  3118. inline void Author::clear_alive() {
  3119. alive_ = false;
  3120. clear_has_alive();
  3121. }
  3122. inline bool Author::alive() const {
  3123. // @@protoc_insertion_point(field_get:google.protobuf.testing.Author.alive)
  3124. return alive_;
  3125. }
  3126. inline void Author::set_alive(bool value) {
  3127. set_has_alive();
  3128. alive_ = value;
  3129. // @@protoc_insertion_point(field_set:google.protobuf.testing.Author.alive)
  3130. }
  3131. // repeated .google.protobuf.testing.Author friend = 5;
  3132. inline int Author::friend__size() const {
  3133. return friend__.size();
  3134. }
  3135. inline void Author::clear_friend_() {
  3136. friend__.Clear();
  3137. }
  3138. inline ::google::protobuf::testing::Author* Author::mutable_friend_(int index) {
  3139. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Author.friend)
  3140. return friend__.Mutable(index);
  3141. }
  3142. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Author >*
  3143. Author::mutable_friend_() {
  3144. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Author.friend)
  3145. return &friend__;
  3146. }
  3147. inline const ::google::protobuf::testing::Author& Author::friend_(int index) const {
  3148. // @@protoc_insertion_point(field_get:google.protobuf.testing.Author.friend)
  3149. return friend__.Get(index);
  3150. }
  3151. inline ::google::protobuf::testing::Author* Author::add_friend_() {
  3152. // @@protoc_insertion_point(field_add:google.protobuf.testing.Author.friend)
  3153. return friend__.Add();
  3154. }
  3155. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Author >&
  3156. Author::friend_() const {
  3157. // @@protoc_insertion_point(field_list:google.protobuf.testing.Author.friend)
  3158. return friend__;
  3159. }
  3160. // -------------------------------------------------------------------
  3161. // BadAuthor
  3162. // optional string id = 1;
  3163. inline bool BadAuthor::has_id() const {
  3164. return (_has_bits_[0] & 0x00000001u) != 0;
  3165. }
  3166. inline void BadAuthor::set_has_id() {
  3167. _has_bits_[0] |= 0x00000001u;
  3168. }
  3169. inline void BadAuthor::clear_has_id() {
  3170. _has_bits_[0] &= ~0x00000001u;
  3171. }
  3172. inline void BadAuthor::clear_id() {
  3173. id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3174. clear_has_id();
  3175. }
  3176. inline const ::std::string& BadAuthor::id() const {
  3177. // @@protoc_insertion_point(field_get:google.protobuf.testing.BadAuthor.id)
  3178. return id_.GetNoArena();
  3179. }
  3180. inline void BadAuthor::set_id(const ::std::string& value) {
  3181. set_has_id();
  3182. id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3183. // @@protoc_insertion_point(field_set:google.protobuf.testing.BadAuthor.id)
  3184. }
  3185. #if LANG_CXX11
  3186. inline void BadAuthor::set_id(::std::string&& value) {
  3187. set_has_id();
  3188. id_.SetNoArena(
  3189. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3190. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.BadAuthor.id)
  3191. }
  3192. #endif
  3193. inline void BadAuthor::set_id(const char* value) {
  3194. GOOGLE_DCHECK(value != NULL);
  3195. set_has_id();
  3196. id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3197. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.BadAuthor.id)
  3198. }
  3199. inline void BadAuthor::set_id(const char* value, size_t size) {
  3200. set_has_id();
  3201. id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3202. ::std::string(reinterpret_cast<const char*>(value), size));
  3203. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.BadAuthor.id)
  3204. }
  3205. inline ::std::string* BadAuthor::mutable_id() {
  3206. set_has_id();
  3207. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.BadAuthor.id)
  3208. return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3209. }
  3210. inline ::std::string* BadAuthor::release_id() {
  3211. // @@protoc_insertion_point(field_release:google.protobuf.testing.BadAuthor.id)
  3212. if (!has_id()) {
  3213. return NULL;
  3214. }
  3215. clear_has_id();
  3216. return id_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3217. }
  3218. inline void BadAuthor::set_allocated_id(::std::string* id) {
  3219. if (id != NULL) {
  3220. set_has_id();
  3221. } else {
  3222. clear_has_id();
  3223. }
  3224. id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id);
  3225. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.BadAuthor.id)
  3226. }
  3227. // repeated uint64 name = 2;
  3228. inline int BadAuthor::name_size() const {
  3229. return name_.size();
  3230. }
  3231. inline void BadAuthor::clear_name() {
  3232. name_.Clear();
  3233. }
  3234. inline ::google::protobuf::uint64 BadAuthor::name(int index) const {
  3235. // @@protoc_insertion_point(field_get:google.protobuf.testing.BadAuthor.name)
  3236. return name_.Get(index);
  3237. }
  3238. inline void BadAuthor::set_name(int index, ::google::protobuf::uint64 value) {
  3239. name_.Set(index, value);
  3240. // @@protoc_insertion_point(field_set:google.protobuf.testing.BadAuthor.name)
  3241. }
  3242. inline void BadAuthor::add_name(::google::protobuf::uint64 value) {
  3243. name_.Add(value);
  3244. // @@protoc_insertion_point(field_add:google.protobuf.testing.BadAuthor.name)
  3245. }
  3246. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  3247. BadAuthor::name() const {
  3248. // @@protoc_insertion_point(field_list:google.protobuf.testing.BadAuthor.name)
  3249. return name_;
  3250. }
  3251. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  3252. BadAuthor::mutable_name() {
  3253. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.BadAuthor.name)
  3254. return &name_;
  3255. }
  3256. // optional string pseudonym = 3;
  3257. inline bool BadAuthor::has_pseudonym() const {
  3258. return (_has_bits_[0] & 0x00000002u) != 0;
  3259. }
  3260. inline void BadAuthor::set_has_pseudonym() {
  3261. _has_bits_[0] |= 0x00000002u;
  3262. }
  3263. inline void BadAuthor::clear_has_pseudonym() {
  3264. _has_bits_[0] &= ~0x00000002u;
  3265. }
  3266. inline void BadAuthor::clear_pseudonym() {
  3267. pseudonym_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3268. clear_has_pseudonym();
  3269. }
  3270. inline const ::std::string& BadAuthor::pseudonym() const {
  3271. // @@protoc_insertion_point(field_get:google.protobuf.testing.BadAuthor.pseudonym)
  3272. return pseudonym_.GetNoArena();
  3273. }
  3274. inline void BadAuthor::set_pseudonym(const ::std::string& value) {
  3275. set_has_pseudonym();
  3276. pseudonym_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3277. // @@protoc_insertion_point(field_set:google.protobuf.testing.BadAuthor.pseudonym)
  3278. }
  3279. #if LANG_CXX11
  3280. inline void BadAuthor::set_pseudonym(::std::string&& value) {
  3281. set_has_pseudonym();
  3282. pseudonym_.SetNoArena(
  3283. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3284. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.BadAuthor.pseudonym)
  3285. }
  3286. #endif
  3287. inline void BadAuthor::set_pseudonym(const char* value) {
  3288. GOOGLE_DCHECK(value != NULL);
  3289. set_has_pseudonym();
  3290. pseudonym_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3291. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.BadAuthor.pseudonym)
  3292. }
  3293. inline void BadAuthor::set_pseudonym(const char* value, size_t size) {
  3294. set_has_pseudonym();
  3295. pseudonym_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3296. ::std::string(reinterpret_cast<const char*>(value), size));
  3297. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.BadAuthor.pseudonym)
  3298. }
  3299. inline ::std::string* BadAuthor::mutable_pseudonym() {
  3300. set_has_pseudonym();
  3301. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.BadAuthor.pseudonym)
  3302. return pseudonym_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3303. }
  3304. inline ::std::string* BadAuthor::release_pseudonym() {
  3305. // @@protoc_insertion_point(field_release:google.protobuf.testing.BadAuthor.pseudonym)
  3306. if (!has_pseudonym()) {
  3307. return NULL;
  3308. }
  3309. clear_has_pseudonym();
  3310. return pseudonym_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3311. }
  3312. inline void BadAuthor::set_allocated_pseudonym(::std::string* pseudonym) {
  3313. if (pseudonym != NULL) {
  3314. set_has_pseudonym();
  3315. } else {
  3316. clear_has_pseudonym();
  3317. }
  3318. pseudonym_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pseudonym);
  3319. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.BadAuthor.pseudonym)
  3320. }
  3321. // repeated bool alive = 4 [packed = true];
  3322. inline int BadAuthor::alive_size() const {
  3323. return alive_.size();
  3324. }
  3325. inline void BadAuthor::clear_alive() {
  3326. alive_.Clear();
  3327. }
  3328. inline bool BadAuthor::alive(int index) const {
  3329. // @@protoc_insertion_point(field_get:google.protobuf.testing.BadAuthor.alive)
  3330. return alive_.Get(index);
  3331. }
  3332. inline void BadAuthor::set_alive(int index, bool value) {
  3333. alive_.Set(index, value);
  3334. // @@protoc_insertion_point(field_set:google.protobuf.testing.BadAuthor.alive)
  3335. }
  3336. inline void BadAuthor::add_alive(bool value) {
  3337. alive_.Add(value);
  3338. // @@protoc_insertion_point(field_add:google.protobuf.testing.BadAuthor.alive)
  3339. }
  3340. inline const ::google::protobuf::RepeatedField< bool >&
  3341. BadAuthor::alive() const {
  3342. // @@protoc_insertion_point(field_list:google.protobuf.testing.BadAuthor.alive)
  3343. return alive_;
  3344. }
  3345. inline ::google::protobuf::RepeatedField< bool >*
  3346. BadAuthor::mutable_alive() {
  3347. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.BadAuthor.alive)
  3348. return &alive_;
  3349. }
  3350. // -------------------------------------------------------------------
  3351. // Primitive
  3352. // optional fixed32 fix32 = 1;
  3353. inline bool Primitive::has_fix32() const {
  3354. return (_has_bits_[0] & 0x00000004u) != 0;
  3355. }
  3356. inline void Primitive::set_has_fix32() {
  3357. _has_bits_[0] |= 0x00000004u;
  3358. }
  3359. inline void Primitive::clear_has_fix32() {
  3360. _has_bits_[0] &= ~0x00000004u;
  3361. }
  3362. inline void Primitive::clear_fix32() {
  3363. fix32_ = 0u;
  3364. clear_has_fix32();
  3365. }
  3366. inline ::google::protobuf::uint32 Primitive::fix32() const {
  3367. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.fix32)
  3368. return fix32_;
  3369. }
  3370. inline void Primitive::set_fix32(::google::protobuf::uint32 value) {
  3371. set_has_fix32();
  3372. fix32_ = value;
  3373. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.fix32)
  3374. }
  3375. // optional uint32 u32 = 2;
  3376. inline bool Primitive::has_u32() const {
  3377. return (_has_bits_[0] & 0x00000008u) != 0;
  3378. }
  3379. inline void Primitive::set_has_u32() {
  3380. _has_bits_[0] |= 0x00000008u;
  3381. }
  3382. inline void Primitive::clear_has_u32() {
  3383. _has_bits_[0] &= ~0x00000008u;
  3384. }
  3385. inline void Primitive::clear_u32() {
  3386. u32_ = 0u;
  3387. clear_has_u32();
  3388. }
  3389. inline ::google::protobuf::uint32 Primitive::u32() const {
  3390. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.u32)
  3391. return u32_;
  3392. }
  3393. inline void Primitive::set_u32(::google::protobuf::uint32 value) {
  3394. set_has_u32();
  3395. u32_ = value;
  3396. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.u32)
  3397. }
  3398. // optional int32 i32 = 3;
  3399. inline bool Primitive::has_i32() const {
  3400. return (_has_bits_[0] & 0x00000010u) != 0;
  3401. }
  3402. inline void Primitive::set_has_i32() {
  3403. _has_bits_[0] |= 0x00000010u;
  3404. }
  3405. inline void Primitive::clear_has_i32() {
  3406. _has_bits_[0] &= ~0x00000010u;
  3407. }
  3408. inline void Primitive::clear_i32() {
  3409. i32_ = 0;
  3410. clear_has_i32();
  3411. }
  3412. inline ::google::protobuf::int32 Primitive::i32() const {
  3413. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.i32)
  3414. return i32_;
  3415. }
  3416. inline void Primitive::set_i32(::google::protobuf::int32 value) {
  3417. set_has_i32();
  3418. i32_ = value;
  3419. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.i32)
  3420. }
  3421. // optional sfixed32 sf32 = 4;
  3422. inline bool Primitive::has_sf32() const {
  3423. return (_has_bits_[0] & 0x00000020u) != 0;
  3424. }
  3425. inline void Primitive::set_has_sf32() {
  3426. _has_bits_[0] |= 0x00000020u;
  3427. }
  3428. inline void Primitive::clear_has_sf32() {
  3429. _has_bits_[0] &= ~0x00000020u;
  3430. }
  3431. inline void Primitive::clear_sf32() {
  3432. sf32_ = 0;
  3433. clear_has_sf32();
  3434. }
  3435. inline ::google::protobuf::int32 Primitive::sf32() const {
  3436. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.sf32)
  3437. return sf32_;
  3438. }
  3439. inline void Primitive::set_sf32(::google::protobuf::int32 value) {
  3440. set_has_sf32();
  3441. sf32_ = value;
  3442. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.sf32)
  3443. }
  3444. // optional sint32 s32 = 5;
  3445. inline bool Primitive::has_s32() const {
  3446. return (_has_bits_[0] & 0x00000400u) != 0;
  3447. }
  3448. inline void Primitive::set_has_s32() {
  3449. _has_bits_[0] |= 0x00000400u;
  3450. }
  3451. inline void Primitive::clear_has_s32() {
  3452. _has_bits_[0] &= ~0x00000400u;
  3453. }
  3454. inline void Primitive::clear_s32() {
  3455. s32_ = 0;
  3456. clear_has_s32();
  3457. }
  3458. inline ::google::protobuf::int32 Primitive::s32() const {
  3459. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.s32)
  3460. return s32_;
  3461. }
  3462. inline void Primitive::set_s32(::google::protobuf::int32 value) {
  3463. set_has_s32();
  3464. s32_ = value;
  3465. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.s32)
  3466. }
  3467. // optional fixed64 fix64 = 6;
  3468. inline bool Primitive::has_fix64() const {
  3469. return (_has_bits_[0] & 0x00000040u) != 0;
  3470. }
  3471. inline void Primitive::set_has_fix64() {
  3472. _has_bits_[0] |= 0x00000040u;
  3473. }
  3474. inline void Primitive::clear_has_fix64() {
  3475. _has_bits_[0] &= ~0x00000040u;
  3476. }
  3477. inline void Primitive::clear_fix64() {
  3478. fix64_ = GOOGLE_ULONGLONG(0);
  3479. clear_has_fix64();
  3480. }
  3481. inline ::google::protobuf::uint64 Primitive::fix64() const {
  3482. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.fix64)
  3483. return fix64_;
  3484. }
  3485. inline void Primitive::set_fix64(::google::protobuf::uint64 value) {
  3486. set_has_fix64();
  3487. fix64_ = value;
  3488. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.fix64)
  3489. }
  3490. // optional uint64 u64 = 7;
  3491. inline bool Primitive::has_u64() const {
  3492. return (_has_bits_[0] & 0x00000080u) != 0;
  3493. }
  3494. inline void Primitive::set_has_u64() {
  3495. _has_bits_[0] |= 0x00000080u;
  3496. }
  3497. inline void Primitive::clear_has_u64() {
  3498. _has_bits_[0] &= ~0x00000080u;
  3499. }
  3500. inline void Primitive::clear_u64() {
  3501. u64_ = GOOGLE_ULONGLONG(0);
  3502. clear_has_u64();
  3503. }
  3504. inline ::google::protobuf::uint64 Primitive::u64() const {
  3505. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.u64)
  3506. return u64_;
  3507. }
  3508. inline void Primitive::set_u64(::google::protobuf::uint64 value) {
  3509. set_has_u64();
  3510. u64_ = value;
  3511. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.u64)
  3512. }
  3513. // optional int64 i64 = 8;
  3514. inline bool Primitive::has_i64() const {
  3515. return (_has_bits_[0] & 0x00000100u) != 0;
  3516. }
  3517. inline void Primitive::set_has_i64() {
  3518. _has_bits_[0] |= 0x00000100u;
  3519. }
  3520. inline void Primitive::clear_has_i64() {
  3521. _has_bits_[0] &= ~0x00000100u;
  3522. }
  3523. inline void Primitive::clear_i64() {
  3524. i64_ = GOOGLE_LONGLONG(0);
  3525. clear_has_i64();
  3526. }
  3527. inline ::google::protobuf::int64 Primitive::i64() const {
  3528. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.i64)
  3529. return i64_;
  3530. }
  3531. inline void Primitive::set_i64(::google::protobuf::int64 value) {
  3532. set_has_i64();
  3533. i64_ = value;
  3534. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.i64)
  3535. }
  3536. // optional sfixed64 sf64 = 9;
  3537. inline bool Primitive::has_sf64() const {
  3538. return (_has_bits_[0] & 0x00000200u) != 0;
  3539. }
  3540. inline void Primitive::set_has_sf64() {
  3541. _has_bits_[0] |= 0x00000200u;
  3542. }
  3543. inline void Primitive::clear_has_sf64() {
  3544. _has_bits_[0] &= ~0x00000200u;
  3545. }
  3546. inline void Primitive::clear_sf64() {
  3547. sf64_ = GOOGLE_LONGLONG(0);
  3548. clear_has_sf64();
  3549. }
  3550. inline ::google::protobuf::int64 Primitive::sf64() const {
  3551. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.sf64)
  3552. return sf64_;
  3553. }
  3554. inline void Primitive::set_sf64(::google::protobuf::int64 value) {
  3555. set_has_sf64();
  3556. sf64_ = value;
  3557. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.sf64)
  3558. }
  3559. // optional sint64 s64 = 10;
  3560. inline bool Primitive::has_s64() const {
  3561. return (_has_bits_[0] & 0x00001000u) != 0;
  3562. }
  3563. inline void Primitive::set_has_s64() {
  3564. _has_bits_[0] |= 0x00001000u;
  3565. }
  3566. inline void Primitive::clear_has_s64() {
  3567. _has_bits_[0] &= ~0x00001000u;
  3568. }
  3569. inline void Primitive::clear_s64() {
  3570. s64_ = GOOGLE_LONGLONG(0);
  3571. clear_has_s64();
  3572. }
  3573. inline ::google::protobuf::int64 Primitive::s64() const {
  3574. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.s64)
  3575. return s64_;
  3576. }
  3577. inline void Primitive::set_s64(::google::protobuf::int64 value) {
  3578. set_has_s64();
  3579. s64_ = value;
  3580. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.s64)
  3581. }
  3582. // optional string str = 11;
  3583. inline bool Primitive::has_str() const {
  3584. return (_has_bits_[0] & 0x00000001u) != 0;
  3585. }
  3586. inline void Primitive::set_has_str() {
  3587. _has_bits_[0] |= 0x00000001u;
  3588. }
  3589. inline void Primitive::clear_has_str() {
  3590. _has_bits_[0] &= ~0x00000001u;
  3591. }
  3592. inline void Primitive::clear_str() {
  3593. str_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3594. clear_has_str();
  3595. }
  3596. inline const ::std::string& Primitive::str() const {
  3597. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.str)
  3598. return str_.GetNoArena();
  3599. }
  3600. inline void Primitive::set_str(const ::std::string& value) {
  3601. set_has_str();
  3602. str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3603. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.str)
  3604. }
  3605. #if LANG_CXX11
  3606. inline void Primitive::set_str(::std::string&& value) {
  3607. set_has_str();
  3608. str_.SetNoArena(
  3609. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3610. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.Primitive.str)
  3611. }
  3612. #endif
  3613. inline void Primitive::set_str(const char* value) {
  3614. GOOGLE_DCHECK(value != NULL);
  3615. set_has_str();
  3616. str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3617. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Primitive.str)
  3618. }
  3619. inline void Primitive::set_str(const char* value, size_t size) {
  3620. set_has_str();
  3621. str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3622. ::std::string(reinterpret_cast<const char*>(value), size));
  3623. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Primitive.str)
  3624. }
  3625. inline ::std::string* Primitive::mutable_str() {
  3626. set_has_str();
  3627. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Primitive.str)
  3628. return str_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3629. }
  3630. inline ::std::string* Primitive::release_str() {
  3631. // @@protoc_insertion_point(field_release:google.protobuf.testing.Primitive.str)
  3632. if (!has_str()) {
  3633. return NULL;
  3634. }
  3635. clear_has_str();
  3636. return str_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3637. }
  3638. inline void Primitive::set_allocated_str(::std::string* str) {
  3639. if (str != NULL) {
  3640. set_has_str();
  3641. } else {
  3642. clear_has_str();
  3643. }
  3644. str_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), str);
  3645. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Primitive.str)
  3646. }
  3647. // optional bytes bytes = 12;
  3648. inline bool Primitive::has_bytes() const {
  3649. return (_has_bits_[0] & 0x00000002u) != 0;
  3650. }
  3651. inline void Primitive::set_has_bytes() {
  3652. _has_bits_[0] |= 0x00000002u;
  3653. }
  3654. inline void Primitive::clear_has_bytes() {
  3655. _has_bits_[0] &= ~0x00000002u;
  3656. }
  3657. inline void Primitive::clear_bytes() {
  3658. bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3659. clear_has_bytes();
  3660. }
  3661. inline const ::std::string& Primitive::bytes() const {
  3662. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.bytes)
  3663. return bytes_.GetNoArena();
  3664. }
  3665. inline void Primitive::set_bytes(const ::std::string& value) {
  3666. set_has_bytes();
  3667. bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3668. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.bytes)
  3669. }
  3670. #if LANG_CXX11
  3671. inline void Primitive::set_bytes(::std::string&& value) {
  3672. set_has_bytes();
  3673. bytes_.SetNoArena(
  3674. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3675. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.Primitive.bytes)
  3676. }
  3677. #endif
  3678. inline void Primitive::set_bytes(const char* value) {
  3679. GOOGLE_DCHECK(value != NULL);
  3680. set_has_bytes();
  3681. bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3682. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Primitive.bytes)
  3683. }
  3684. inline void Primitive::set_bytes(const void* value, size_t size) {
  3685. set_has_bytes();
  3686. bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3687. ::std::string(reinterpret_cast<const char*>(value), size));
  3688. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Primitive.bytes)
  3689. }
  3690. inline ::std::string* Primitive::mutable_bytes() {
  3691. set_has_bytes();
  3692. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Primitive.bytes)
  3693. return bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3694. }
  3695. inline ::std::string* Primitive::release_bytes() {
  3696. // @@protoc_insertion_point(field_release:google.protobuf.testing.Primitive.bytes)
  3697. if (!has_bytes()) {
  3698. return NULL;
  3699. }
  3700. clear_has_bytes();
  3701. return bytes_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3702. }
  3703. inline void Primitive::set_allocated_bytes(::std::string* bytes) {
  3704. if (bytes != NULL) {
  3705. set_has_bytes();
  3706. } else {
  3707. clear_has_bytes();
  3708. }
  3709. bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bytes);
  3710. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Primitive.bytes)
  3711. }
  3712. // optional float float = 13;
  3713. inline bool Primitive::has_float_() const {
  3714. return (_has_bits_[0] & 0x00000800u) != 0;
  3715. }
  3716. inline void Primitive::set_has_float_() {
  3717. _has_bits_[0] |= 0x00000800u;
  3718. }
  3719. inline void Primitive::clear_has_float_() {
  3720. _has_bits_[0] &= ~0x00000800u;
  3721. }
  3722. inline void Primitive::clear_float_() {
  3723. float__ = 0;
  3724. clear_has_float_();
  3725. }
  3726. inline float Primitive::float_() const {
  3727. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.float)
  3728. return float__;
  3729. }
  3730. inline void Primitive::set_float_(float value) {
  3731. set_has_float_();
  3732. float__ = value;
  3733. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.float)
  3734. }
  3735. // optional double double = 14;
  3736. inline bool Primitive::has_double_() const {
  3737. return (_has_bits_[0] & 0x00002000u) != 0;
  3738. }
  3739. inline void Primitive::set_has_double_() {
  3740. _has_bits_[0] |= 0x00002000u;
  3741. }
  3742. inline void Primitive::clear_has_double_() {
  3743. _has_bits_[0] &= ~0x00002000u;
  3744. }
  3745. inline void Primitive::clear_double_() {
  3746. double__ = 0;
  3747. clear_has_double_();
  3748. }
  3749. inline double Primitive::double_() const {
  3750. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.double)
  3751. return double__;
  3752. }
  3753. inline void Primitive::set_double_(double value) {
  3754. set_has_double_();
  3755. double__ = value;
  3756. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.double)
  3757. }
  3758. // optional bool bool = 15;
  3759. inline bool Primitive::has_bool_() const {
  3760. return (_has_bits_[0] & 0x00004000u) != 0;
  3761. }
  3762. inline void Primitive::set_has_bool_() {
  3763. _has_bits_[0] |= 0x00004000u;
  3764. }
  3765. inline void Primitive::clear_has_bool_() {
  3766. _has_bits_[0] &= ~0x00004000u;
  3767. }
  3768. inline void Primitive::clear_bool_() {
  3769. bool__ = false;
  3770. clear_has_bool_();
  3771. }
  3772. inline bool Primitive::bool_() const {
  3773. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.bool)
  3774. return bool__;
  3775. }
  3776. inline void Primitive::set_bool_(bool value) {
  3777. set_has_bool_();
  3778. bool__ = value;
  3779. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.bool)
  3780. }
  3781. // repeated fixed32 rep_fix32 = 16;
  3782. inline int Primitive::rep_fix32_size() const {
  3783. return rep_fix32_.size();
  3784. }
  3785. inline void Primitive::clear_rep_fix32() {
  3786. rep_fix32_.Clear();
  3787. }
  3788. inline ::google::protobuf::uint32 Primitive::rep_fix32(int index) const {
  3789. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_fix32)
  3790. return rep_fix32_.Get(index);
  3791. }
  3792. inline void Primitive::set_rep_fix32(int index, ::google::protobuf::uint32 value) {
  3793. rep_fix32_.Set(index, value);
  3794. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_fix32)
  3795. }
  3796. inline void Primitive::add_rep_fix32(::google::protobuf::uint32 value) {
  3797. rep_fix32_.Add(value);
  3798. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_fix32)
  3799. }
  3800. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  3801. Primitive::rep_fix32() const {
  3802. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_fix32)
  3803. return rep_fix32_;
  3804. }
  3805. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  3806. Primitive::mutable_rep_fix32() {
  3807. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_fix32)
  3808. return &rep_fix32_;
  3809. }
  3810. // repeated uint32 rep_u32 = 17;
  3811. inline int Primitive::rep_u32_size() const {
  3812. return rep_u32_.size();
  3813. }
  3814. inline void Primitive::clear_rep_u32() {
  3815. rep_u32_.Clear();
  3816. }
  3817. inline ::google::protobuf::uint32 Primitive::rep_u32(int index) const {
  3818. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_u32)
  3819. return rep_u32_.Get(index);
  3820. }
  3821. inline void Primitive::set_rep_u32(int index, ::google::protobuf::uint32 value) {
  3822. rep_u32_.Set(index, value);
  3823. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_u32)
  3824. }
  3825. inline void Primitive::add_rep_u32(::google::protobuf::uint32 value) {
  3826. rep_u32_.Add(value);
  3827. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_u32)
  3828. }
  3829. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  3830. Primitive::rep_u32() const {
  3831. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_u32)
  3832. return rep_u32_;
  3833. }
  3834. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  3835. Primitive::mutable_rep_u32() {
  3836. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_u32)
  3837. return &rep_u32_;
  3838. }
  3839. // repeated int32 rep_i32 = 18;
  3840. inline int Primitive::rep_i32_size() const {
  3841. return rep_i32_.size();
  3842. }
  3843. inline void Primitive::clear_rep_i32() {
  3844. rep_i32_.Clear();
  3845. }
  3846. inline ::google::protobuf::int32 Primitive::rep_i32(int index) const {
  3847. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_i32)
  3848. return rep_i32_.Get(index);
  3849. }
  3850. inline void Primitive::set_rep_i32(int index, ::google::protobuf::int32 value) {
  3851. rep_i32_.Set(index, value);
  3852. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_i32)
  3853. }
  3854. inline void Primitive::add_rep_i32(::google::protobuf::int32 value) {
  3855. rep_i32_.Add(value);
  3856. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_i32)
  3857. }
  3858. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  3859. Primitive::rep_i32() const {
  3860. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_i32)
  3861. return rep_i32_;
  3862. }
  3863. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  3864. Primitive::mutable_rep_i32() {
  3865. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_i32)
  3866. return &rep_i32_;
  3867. }
  3868. // repeated sfixed32 rep_sf32 = 19;
  3869. inline int Primitive::rep_sf32_size() const {
  3870. return rep_sf32_.size();
  3871. }
  3872. inline void Primitive::clear_rep_sf32() {
  3873. rep_sf32_.Clear();
  3874. }
  3875. inline ::google::protobuf::int32 Primitive::rep_sf32(int index) const {
  3876. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_sf32)
  3877. return rep_sf32_.Get(index);
  3878. }
  3879. inline void Primitive::set_rep_sf32(int index, ::google::protobuf::int32 value) {
  3880. rep_sf32_.Set(index, value);
  3881. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_sf32)
  3882. }
  3883. inline void Primitive::add_rep_sf32(::google::protobuf::int32 value) {
  3884. rep_sf32_.Add(value);
  3885. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_sf32)
  3886. }
  3887. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  3888. Primitive::rep_sf32() const {
  3889. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_sf32)
  3890. return rep_sf32_;
  3891. }
  3892. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  3893. Primitive::mutable_rep_sf32() {
  3894. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_sf32)
  3895. return &rep_sf32_;
  3896. }
  3897. // repeated sint32 rep_s32 = 20;
  3898. inline int Primitive::rep_s32_size() const {
  3899. return rep_s32_.size();
  3900. }
  3901. inline void Primitive::clear_rep_s32() {
  3902. rep_s32_.Clear();
  3903. }
  3904. inline ::google::protobuf::int32 Primitive::rep_s32(int index) const {
  3905. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_s32)
  3906. return rep_s32_.Get(index);
  3907. }
  3908. inline void Primitive::set_rep_s32(int index, ::google::protobuf::int32 value) {
  3909. rep_s32_.Set(index, value);
  3910. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_s32)
  3911. }
  3912. inline void Primitive::add_rep_s32(::google::protobuf::int32 value) {
  3913. rep_s32_.Add(value);
  3914. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_s32)
  3915. }
  3916. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  3917. Primitive::rep_s32() const {
  3918. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_s32)
  3919. return rep_s32_;
  3920. }
  3921. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  3922. Primitive::mutable_rep_s32() {
  3923. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_s32)
  3924. return &rep_s32_;
  3925. }
  3926. // repeated fixed64 rep_fix64 = 21;
  3927. inline int Primitive::rep_fix64_size() const {
  3928. return rep_fix64_.size();
  3929. }
  3930. inline void Primitive::clear_rep_fix64() {
  3931. rep_fix64_.Clear();
  3932. }
  3933. inline ::google::protobuf::uint64 Primitive::rep_fix64(int index) const {
  3934. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_fix64)
  3935. return rep_fix64_.Get(index);
  3936. }
  3937. inline void Primitive::set_rep_fix64(int index, ::google::protobuf::uint64 value) {
  3938. rep_fix64_.Set(index, value);
  3939. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_fix64)
  3940. }
  3941. inline void Primitive::add_rep_fix64(::google::protobuf::uint64 value) {
  3942. rep_fix64_.Add(value);
  3943. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_fix64)
  3944. }
  3945. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  3946. Primitive::rep_fix64() const {
  3947. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_fix64)
  3948. return rep_fix64_;
  3949. }
  3950. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  3951. Primitive::mutable_rep_fix64() {
  3952. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_fix64)
  3953. return &rep_fix64_;
  3954. }
  3955. // repeated uint64 rep_u64 = 22;
  3956. inline int Primitive::rep_u64_size() const {
  3957. return rep_u64_.size();
  3958. }
  3959. inline void Primitive::clear_rep_u64() {
  3960. rep_u64_.Clear();
  3961. }
  3962. inline ::google::protobuf::uint64 Primitive::rep_u64(int index) const {
  3963. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_u64)
  3964. return rep_u64_.Get(index);
  3965. }
  3966. inline void Primitive::set_rep_u64(int index, ::google::protobuf::uint64 value) {
  3967. rep_u64_.Set(index, value);
  3968. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_u64)
  3969. }
  3970. inline void Primitive::add_rep_u64(::google::protobuf::uint64 value) {
  3971. rep_u64_.Add(value);
  3972. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_u64)
  3973. }
  3974. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  3975. Primitive::rep_u64() const {
  3976. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_u64)
  3977. return rep_u64_;
  3978. }
  3979. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  3980. Primitive::mutable_rep_u64() {
  3981. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_u64)
  3982. return &rep_u64_;
  3983. }
  3984. // repeated int64 rep_i64 = 23;
  3985. inline int Primitive::rep_i64_size() const {
  3986. return rep_i64_.size();
  3987. }
  3988. inline void Primitive::clear_rep_i64() {
  3989. rep_i64_.Clear();
  3990. }
  3991. inline ::google::protobuf::int64 Primitive::rep_i64(int index) const {
  3992. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_i64)
  3993. return rep_i64_.Get(index);
  3994. }
  3995. inline void Primitive::set_rep_i64(int index, ::google::protobuf::int64 value) {
  3996. rep_i64_.Set(index, value);
  3997. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_i64)
  3998. }
  3999. inline void Primitive::add_rep_i64(::google::protobuf::int64 value) {
  4000. rep_i64_.Add(value);
  4001. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_i64)
  4002. }
  4003. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  4004. Primitive::rep_i64() const {
  4005. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_i64)
  4006. return rep_i64_;
  4007. }
  4008. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  4009. Primitive::mutable_rep_i64() {
  4010. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_i64)
  4011. return &rep_i64_;
  4012. }
  4013. // repeated sfixed64 rep_sf64 = 24;
  4014. inline int Primitive::rep_sf64_size() const {
  4015. return rep_sf64_.size();
  4016. }
  4017. inline void Primitive::clear_rep_sf64() {
  4018. rep_sf64_.Clear();
  4019. }
  4020. inline ::google::protobuf::int64 Primitive::rep_sf64(int index) const {
  4021. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_sf64)
  4022. return rep_sf64_.Get(index);
  4023. }
  4024. inline void Primitive::set_rep_sf64(int index, ::google::protobuf::int64 value) {
  4025. rep_sf64_.Set(index, value);
  4026. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_sf64)
  4027. }
  4028. inline void Primitive::add_rep_sf64(::google::protobuf::int64 value) {
  4029. rep_sf64_.Add(value);
  4030. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_sf64)
  4031. }
  4032. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  4033. Primitive::rep_sf64() const {
  4034. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_sf64)
  4035. return rep_sf64_;
  4036. }
  4037. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  4038. Primitive::mutable_rep_sf64() {
  4039. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_sf64)
  4040. return &rep_sf64_;
  4041. }
  4042. // repeated sint64 rep_s64 = 25;
  4043. inline int Primitive::rep_s64_size() const {
  4044. return rep_s64_.size();
  4045. }
  4046. inline void Primitive::clear_rep_s64() {
  4047. rep_s64_.Clear();
  4048. }
  4049. inline ::google::protobuf::int64 Primitive::rep_s64(int index) const {
  4050. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_s64)
  4051. return rep_s64_.Get(index);
  4052. }
  4053. inline void Primitive::set_rep_s64(int index, ::google::protobuf::int64 value) {
  4054. rep_s64_.Set(index, value);
  4055. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_s64)
  4056. }
  4057. inline void Primitive::add_rep_s64(::google::protobuf::int64 value) {
  4058. rep_s64_.Add(value);
  4059. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_s64)
  4060. }
  4061. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  4062. Primitive::rep_s64() const {
  4063. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_s64)
  4064. return rep_s64_;
  4065. }
  4066. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  4067. Primitive::mutable_rep_s64() {
  4068. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_s64)
  4069. return &rep_s64_;
  4070. }
  4071. // repeated string rep_str = 26;
  4072. inline int Primitive::rep_str_size() const {
  4073. return rep_str_.size();
  4074. }
  4075. inline void Primitive::clear_rep_str() {
  4076. rep_str_.Clear();
  4077. }
  4078. inline const ::std::string& Primitive::rep_str(int index) const {
  4079. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_str)
  4080. return rep_str_.Get(index);
  4081. }
  4082. inline ::std::string* Primitive::mutable_rep_str(int index) {
  4083. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Primitive.rep_str)
  4084. return rep_str_.Mutable(index);
  4085. }
  4086. inline void Primitive::set_rep_str(int index, const ::std::string& value) {
  4087. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_str)
  4088. rep_str_.Mutable(index)->assign(value);
  4089. }
  4090. #if LANG_CXX11
  4091. inline void Primitive::set_rep_str(int index, ::std::string&& value) {
  4092. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_str)
  4093. rep_str_.Mutable(index)->assign(std::move(value));
  4094. }
  4095. #endif
  4096. inline void Primitive::set_rep_str(int index, const char* value) {
  4097. GOOGLE_DCHECK(value != NULL);
  4098. rep_str_.Mutable(index)->assign(value);
  4099. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Primitive.rep_str)
  4100. }
  4101. inline void Primitive::set_rep_str(int index, const char* value, size_t size) {
  4102. rep_str_.Mutable(index)->assign(
  4103. reinterpret_cast<const char*>(value), size);
  4104. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Primitive.rep_str)
  4105. }
  4106. inline ::std::string* Primitive::add_rep_str() {
  4107. // @@protoc_insertion_point(field_add_mutable:google.protobuf.testing.Primitive.rep_str)
  4108. return rep_str_.Add();
  4109. }
  4110. inline void Primitive::add_rep_str(const ::std::string& value) {
  4111. rep_str_.Add()->assign(value);
  4112. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_str)
  4113. }
  4114. #if LANG_CXX11
  4115. inline void Primitive::add_rep_str(::std::string&& value) {
  4116. rep_str_.Add(std::move(value));
  4117. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_str)
  4118. }
  4119. #endif
  4120. inline void Primitive::add_rep_str(const char* value) {
  4121. GOOGLE_DCHECK(value != NULL);
  4122. rep_str_.Add()->assign(value);
  4123. // @@protoc_insertion_point(field_add_char:google.protobuf.testing.Primitive.rep_str)
  4124. }
  4125. inline void Primitive::add_rep_str(const char* value, size_t size) {
  4126. rep_str_.Add()->assign(reinterpret_cast<const char*>(value), size);
  4127. // @@protoc_insertion_point(field_add_pointer:google.protobuf.testing.Primitive.rep_str)
  4128. }
  4129. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  4130. Primitive::rep_str() const {
  4131. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_str)
  4132. return rep_str_;
  4133. }
  4134. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  4135. Primitive::mutable_rep_str() {
  4136. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_str)
  4137. return &rep_str_;
  4138. }
  4139. // repeated bytes rep_bytes = 27;
  4140. inline int Primitive::rep_bytes_size() const {
  4141. return rep_bytes_.size();
  4142. }
  4143. inline void Primitive::clear_rep_bytes() {
  4144. rep_bytes_.Clear();
  4145. }
  4146. inline const ::std::string& Primitive::rep_bytes(int index) const {
  4147. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_bytes)
  4148. return rep_bytes_.Get(index);
  4149. }
  4150. inline ::std::string* Primitive::mutable_rep_bytes(int index) {
  4151. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Primitive.rep_bytes)
  4152. return rep_bytes_.Mutable(index);
  4153. }
  4154. inline void Primitive::set_rep_bytes(int index, const ::std::string& value) {
  4155. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_bytes)
  4156. rep_bytes_.Mutable(index)->assign(value);
  4157. }
  4158. #if LANG_CXX11
  4159. inline void Primitive::set_rep_bytes(int index, ::std::string&& value) {
  4160. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_bytes)
  4161. rep_bytes_.Mutable(index)->assign(std::move(value));
  4162. }
  4163. #endif
  4164. inline void Primitive::set_rep_bytes(int index, const char* value) {
  4165. GOOGLE_DCHECK(value != NULL);
  4166. rep_bytes_.Mutable(index)->assign(value);
  4167. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Primitive.rep_bytes)
  4168. }
  4169. inline void Primitive::set_rep_bytes(int index, const void* value, size_t size) {
  4170. rep_bytes_.Mutable(index)->assign(
  4171. reinterpret_cast<const char*>(value), size);
  4172. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Primitive.rep_bytes)
  4173. }
  4174. inline ::std::string* Primitive::add_rep_bytes() {
  4175. // @@protoc_insertion_point(field_add_mutable:google.protobuf.testing.Primitive.rep_bytes)
  4176. return rep_bytes_.Add();
  4177. }
  4178. inline void Primitive::add_rep_bytes(const ::std::string& value) {
  4179. rep_bytes_.Add()->assign(value);
  4180. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_bytes)
  4181. }
  4182. #if LANG_CXX11
  4183. inline void Primitive::add_rep_bytes(::std::string&& value) {
  4184. rep_bytes_.Add(std::move(value));
  4185. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_bytes)
  4186. }
  4187. #endif
  4188. inline void Primitive::add_rep_bytes(const char* value) {
  4189. GOOGLE_DCHECK(value != NULL);
  4190. rep_bytes_.Add()->assign(value);
  4191. // @@protoc_insertion_point(field_add_char:google.protobuf.testing.Primitive.rep_bytes)
  4192. }
  4193. inline void Primitive::add_rep_bytes(const void* value, size_t size) {
  4194. rep_bytes_.Add()->assign(reinterpret_cast<const char*>(value), size);
  4195. // @@protoc_insertion_point(field_add_pointer:google.protobuf.testing.Primitive.rep_bytes)
  4196. }
  4197. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  4198. Primitive::rep_bytes() const {
  4199. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_bytes)
  4200. return rep_bytes_;
  4201. }
  4202. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  4203. Primitive::mutable_rep_bytes() {
  4204. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_bytes)
  4205. return &rep_bytes_;
  4206. }
  4207. // repeated float rep_float = 28;
  4208. inline int Primitive::rep_float_size() const {
  4209. return rep_float_.size();
  4210. }
  4211. inline void Primitive::clear_rep_float() {
  4212. rep_float_.Clear();
  4213. }
  4214. inline float Primitive::rep_float(int index) const {
  4215. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_float)
  4216. return rep_float_.Get(index);
  4217. }
  4218. inline void Primitive::set_rep_float(int index, float value) {
  4219. rep_float_.Set(index, value);
  4220. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_float)
  4221. }
  4222. inline void Primitive::add_rep_float(float value) {
  4223. rep_float_.Add(value);
  4224. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_float)
  4225. }
  4226. inline const ::google::protobuf::RepeatedField< float >&
  4227. Primitive::rep_float() const {
  4228. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_float)
  4229. return rep_float_;
  4230. }
  4231. inline ::google::protobuf::RepeatedField< float >*
  4232. Primitive::mutable_rep_float() {
  4233. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_float)
  4234. return &rep_float_;
  4235. }
  4236. // repeated double rep_double = 29;
  4237. inline int Primitive::rep_double_size() const {
  4238. return rep_double_.size();
  4239. }
  4240. inline void Primitive::clear_rep_double() {
  4241. rep_double_.Clear();
  4242. }
  4243. inline double Primitive::rep_double(int index) const {
  4244. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_double)
  4245. return rep_double_.Get(index);
  4246. }
  4247. inline void Primitive::set_rep_double(int index, double value) {
  4248. rep_double_.Set(index, value);
  4249. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_double)
  4250. }
  4251. inline void Primitive::add_rep_double(double value) {
  4252. rep_double_.Add(value);
  4253. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_double)
  4254. }
  4255. inline const ::google::protobuf::RepeatedField< double >&
  4256. Primitive::rep_double() const {
  4257. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_double)
  4258. return rep_double_;
  4259. }
  4260. inline ::google::protobuf::RepeatedField< double >*
  4261. Primitive::mutable_rep_double() {
  4262. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_double)
  4263. return &rep_double_;
  4264. }
  4265. // repeated bool rep_bool = 30;
  4266. inline int Primitive::rep_bool_size() const {
  4267. return rep_bool_.size();
  4268. }
  4269. inline void Primitive::clear_rep_bool() {
  4270. rep_bool_.Clear();
  4271. }
  4272. inline bool Primitive::rep_bool(int index) const {
  4273. // @@protoc_insertion_point(field_get:google.protobuf.testing.Primitive.rep_bool)
  4274. return rep_bool_.Get(index);
  4275. }
  4276. inline void Primitive::set_rep_bool(int index, bool value) {
  4277. rep_bool_.Set(index, value);
  4278. // @@protoc_insertion_point(field_set:google.protobuf.testing.Primitive.rep_bool)
  4279. }
  4280. inline void Primitive::add_rep_bool(bool value) {
  4281. rep_bool_.Add(value);
  4282. // @@protoc_insertion_point(field_add:google.protobuf.testing.Primitive.rep_bool)
  4283. }
  4284. inline const ::google::protobuf::RepeatedField< bool >&
  4285. Primitive::rep_bool() const {
  4286. // @@protoc_insertion_point(field_list:google.protobuf.testing.Primitive.rep_bool)
  4287. return rep_bool_;
  4288. }
  4289. inline ::google::protobuf::RepeatedField< bool >*
  4290. Primitive::mutable_rep_bool() {
  4291. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Primitive.rep_bool)
  4292. return &rep_bool_;
  4293. }
  4294. // -------------------------------------------------------------------
  4295. // PackedPrimitive
  4296. // repeated fixed32 rep_fix32 = 16 [packed = true];
  4297. inline int PackedPrimitive::rep_fix32_size() const {
  4298. return rep_fix32_.size();
  4299. }
  4300. inline void PackedPrimitive::clear_rep_fix32() {
  4301. rep_fix32_.Clear();
  4302. }
  4303. inline ::google::protobuf::uint32 PackedPrimitive::rep_fix32(int index) const {
  4304. // @@protoc_insertion_point(field_get:google.protobuf.testing.PackedPrimitive.rep_fix32)
  4305. return rep_fix32_.Get(index);
  4306. }
  4307. inline void PackedPrimitive::set_rep_fix32(int index, ::google::protobuf::uint32 value) {
  4308. rep_fix32_.Set(index, value);
  4309. // @@protoc_insertion_point(field_set:google.protobuf.testing.PackedPrimitive.rep_fix32)
  4310. }
  4311. inline void PackedPrimitive::add_rep_fix32(::google::protobuf::uint32 value) {
  4312. rep_fix32_.Add(value);
  4313. // @@protoc_insertion_point(field_add:google.protobuf.testing.PackedPrimitive.rep_fix32)
  4314. }
  4315. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  4316. PackedPrimitive::rep_fix32() const {
  4317. // @@protoc_insertion_point(field_list:google.protobuf.testing.PackedPrimitive.rep_fix32)
  4318. return rep_fix32_;
  4319. }
  4320. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  4321. PackedPrimitive::mutable_rep_fix32() {
  4322. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.PackedPrimitive.rep_fix32)
  4323. return &rep_fix32_;
  4324. }
  4325. // repeated uint32 rep_u32 = 17 [packed = true];
  4326. inline int PackedPrimitive::rep_u32_size() const {
  4327. return rep_u32_.size();
  4328. }
  4329. inline void PackedPrimitive::clear_rep_u32() {
  4330. rep_u32_.Clear();
  4331. }
  4332. inline ::google::protobuf::uint32 PackedPrimitive::rep_u32(int index) const {
  4333. // @@protoc_insertion_point(field_get:google.protobuf.testing.PackedPrimitive.rep_u32)
  4334. return rep_u32_.Get(index);
  4335. }
  4336. inline void PackedPrimitive::set_rep_u32(int index, ::google::protobuf::uint32 value) {
  4337. rep_u32_.Set(index, value);
  4338. // @@protoc_insertion_point(field_set:google.protobuf.testing.PackedPrimitive.rep_u32)
  4339. }
  4340. inline void PackedPrimitive::add_rep_u32(::google::protobuf::uint32 value) {
  4341. rep_u32_.Add(value);
  4342. // @@protoc_insertion_point(field_add:google.protobuf.testing.PackedPrimitive.rep_u32)
  4343. }
  4344. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  4345. PackedPrimitive::rep_u32() const {
  4346. // @@protoc_insertion_point(field_list:google.protobuf.testing.PackedPrimitive.rep_u32)
  4347. return rep_u32_;
  4348. }
  4349. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  4350. PackedPrimitive::mutable_rep_u32() {
  4351. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.PackedPrimitive.rep_u32)
  4352. return &rep_u32_;
  4353. }
  4354. // repeated int32 rep_i32 = 18 [packed = true];
  4355. inline int PackedPrimitive::rep_i32_size() const {
  4356. return rep_i32_.size();
  4357. }
  4358. inline void PackedPrimitive::clear_rep_i32() {
  4359. rep_i32_.Clear();
  4360. }
  4361. inline ::google::protobuf::int32 PackedPrimitive::rep_i32(int index) const {
  4362. // @@protoc_insertion_point(field_get:google.protobuf.testing.PackedPrimitive.rep_i32)
  4363. return rep_i32_.Get(index);
  4364. }
  4365. inline void PackedPrimitive::set_rep_i32(int index, ::google::protobuf::int32 value) {
  4366. rep_i32_.Set(index, value);
  4367. // @@protoc_insertion_point(field_set:google.protobuf.testing.PackedPrimitive.rep_i32)
  4368. }
  4369. inline void PackedPrimitive::add_rep_i32(::google::protobuf::int32 value) {
  4370. rep_i32_.Add(value);
  4371. // @@protoc_insertion_point(field_add:google.protobuf.testing.PackedPrimitive.rep_i32)
  4372. }
  4373. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4374. PackedPrimitive::rep_i32() const {
  4375. // @@protoc_insertion_point(field_list:google.protobuf.testing.PackedPrimitive.rep_i32)
  4376. return rep_i32_;
  4377. }
  4378. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4379. PackedPrimitive::mutable_rep_i32() {
  4380. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.PackedPrimitive.rep_i32)
  4381. return &rep_i32_;
  4382. }
  4383. // repeated sfixed32 rep_sf32 = 19 [packed = true];
  4384. inline int PackedPrimitive::rep_sf32_size() const {
  4385. return rep_sf32_.size();
  4386. }
  4387. inline void PackedPrimitive::clear_rep_sf32() {
  4388. rep_sf32_.Clear();
  4389. }
  4390. inline ::google::protobuf::int32 PackedPrimitive::rep_sf32(int index) const {
  4391. // @@protoc_insertion_point(field_get:google.protobuf.testing.PackedPrimitive.rep_sf32)
  4392. return rep_sf32_.Get(index);
  4393. }
  4394. inline void PackedPrimitive::set_rep_sf32(int index, ::google::protobuf::int32 value) {
  4395. rep_sf32_.Set(index, value);
  4396. // @@protoc_insertion_point(field_set:google.protobuf.testing.PackedPrimitive.rep_sf32)
  4397. }
  4398. inline void PackedPrimitive::add_rep_sf32(::google::protobuf::int32 value) {
  4399. rep_sf32_.Add(value);
  4400. // @@protoc_insertion_point(field_add:google.protobuf.testing.PackedPrimitive.rep_sf32)
  4401. }
  4402. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4403. PackedPrimitive::rep_sf32() const {
  4404. // @@protoc_insertion_point(field_list:google.protobuf.testing.PackedPrimitive.rep_sf32)
  4405. return rep_sf32_;
  4406. }
  4407. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4408. PackedPrimitive::mutable_rep_sf32() {
  4409. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.PackedPrimitive.rep_sf32)
  4410. return &rep_sf32_;
  4411. }
  4412. // repeated sint32 rep_s32 = 20 [packed = true];
  4413. inline int PackedPrimitive::rep_s32_size() const {
  4414. return rep_s32_.size();
  4415. }
  4416. inline void PackedPrimitive::clear_rep_s32() {
  4417. rep_s32_.Clear();
  4418. }
  4419. inline ::google::protobuf::int32 PackedPrimitive::rep_s32(int index) const {
  4420. // @@protoc_insertion_point(field_get:google.protobuf.testing.PackedPrimitive.rep_s32)
  4421. return rep_s32_.Get(index);
  4422. }
  4423. inline void PackedPrimitive::set_rep_s32(int index, ::google::protobuf::int32 value) {
  4424. rep_s32_.Set(index, value);
  4425. // @@protoc_insertion_point(field_set:google.protobuf.testing.PackedPrimitive.rep_s32)
  4426. }
  4427. inline void PackedPrimitive::add_rep_s32(::google::protobuf::int32 value) {
  4428. rep_s32_.Add(value);
  4429. // @@protoc_insertion_point(field_add:google.protobuf.testing.PackedPrimitive.rep_s32)
  4430. }
  4431. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4432. PackedPrimitive::rep_s32() const {
  4433. // @@protoc_insertion_point(field_list:google.protobuf.testing.PackedPrimitive.rep_s32)
  4434. return rep_s32_;
  4435. }
  4436. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4437. PackedPrimitive::mutable_rep_s32() {
  4438. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.PackedPrimitive.rep_s32)
  4439. return &rep_s32_;
  4440. }
  4441. // repeated fixed64 rep_fix64 = 21 [packed = true];
  4442. inline int PackedPrimitive::rep_fix64_size() const {
  4443. return rep_fix64_.size();
  4444. }
  4445. inline void PackedPrimitive::clear_rep_fix64() {
  4446. rep_fix64_.Clear();
  4447. }
  4448. inline ::google::protobuf::uint64 PackedPrimitive::rep_fix64(int index) const {
  4449. // @@protoc_insertion_point(field_get:google.protobuf.testing.PackedPrimitive.rep_fix64)
  4450. return rep_fix64_.Get(index);
  4451. }
  4452. inline void PackedPrimitive::set_rep_fix64(int index, ::google::protobuf::uint64 value) {
  4453. rep_fix64_.Set(index, value);
  4454. // @@protoc_insertion_point(field_set:google.protobuf.testing.PackedPrimitive.rep_fix64)
  4455. }
  4456. inline void PackedPrimitive::add_rep_fix64(::google::protobuf::uint64 value) {
  4457. rep_fix64_.Add(value);
  4458. // @@protoc_insertion_point(field_add:google.protobuf.testing.PackedPrimitive.rep_fix64)
  4459. }
  4460. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  4461. PackedPrimitive::rep_fix64() const {
  4462. // @@protoc_insertion_point(field_list:google.protobuf.testing.PackedPrimitive.rep_fix64)
  4463. return rep_fix64_;
  4464. }
  4465. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  4466. PackedPrimitive::mutable_rep_fix64() {
  4467. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.PackedPrimitive.rep_fix64)
  4468. return &rep_fix64_;
  4469. }
  4470. // repeated uint64 rep_u64 = 22 [packed = true];
  4471. inline int PackedPrimitive::rep_u64_size() const {
  4472. return rep_u64_.size();
  4473. }
  4474. inline void PackedPrimitive::clear_rep_u64() {
  4475. rep_u64_.Clear();
  4476. }
  4477. inline ::google::protobuf::uint64 PackedPrimitive::rep_u64(int index) const {
  4478. // @@protoc_insertion_point(field_get:google.protobuf.testing.PackedPrimitive.rep_u64)
  4479. return rep_u64_.Get(index);
  4480. }
  4481. inline void PackedPrimitive::set_rep_u64(int index, ::google::protobuf::uint64 value) {
  4482. rep_u64_.Set(index, value);
  4483. // @@protoc_insertion_point(field_set:google.protobuf.testing.PackedPrimitive.rep_u64)
  4484. }
  4485. inline void PackedPrimitive::add_rep_u64(::google::protobuf::uint64 value) {
  4486. rep_u64_.Add(value);
  4487. // @@protoc_insertion_point(field_add:google.protobuf.testing.PackedPrimitive.rep_u64)
  4488. }
  4489. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  4490. PackedPrimitive::rep_u64() const {
  4491. // @@protoc_insertion_point(field_list:google.protobuf.testing.PackedPrimitive.rep_u64)
  4492. return rep_u64_;
  4493. }
  4494. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  4495. PackedPrimitive::mutable_rep_u64() {
  4496. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.PackedPrimitive.rep_u64)
  4497. return &rep_u64_;
  4498. }
  4499. // repeated int64 rep_i64 = 23 [packed = true];
  4500. inline int PackedPrimitive::rep_i64_size() const {
  4501. return rep_i64_.size();
  4502. }
  4503. inline void PackedPrimitive::clear_rep_i64() {
  4504. rep_i64_.Clear();
  4505. }
  4506. inline ::google::protobuf::int64 PackedPrimitive::rep_i64(int index) const {
  4507. // @@protoc_insertion_point(field_get:google.protobuf.testing.PackedPrimitive.rep_i64)
  4508. return rep_i64_.Get(index);
  4509. }
  4510. inline void PackedPrimitive::set_rep_i64(int index, ::google::protobuf::int64 value) {
  4511. rep_i64_.Set(index, value);
  4512. // @@protoc_insertion_point(field_set:google.protobuf.testing.PackedPrimitive.rep_i64)
  4513. }
  4514. inline void PackedPrimitive::add_rep_i64(::google::protobuf::int64 value) {
  4515. rep_i64_.Add(value);
  4516. // @@protoc_insertion_point(field_add:google.protobuf.testing.PackedPrimitive.rep_i64)
  4517. }
  4518. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  4519. PackedPrimitive::rep_i64() const {
  4520. // @@protoc_insertion_point(field_list:google.protobuf.testing.PackedPrimitive.rep_i64)
  4521. return rep_i64_;
  4522. }
  4523. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  4524. PackedPrimitive::mutable_rep_i64() {
  4525. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.PackedPrimitive.rep_i64)
  4526. return &rep_i64_;
  4527. }
  4528. // repeated sfixed64 rep_sf64 = 24 [packed = true];
  4529. inline int PackedPrimitive::rep_sf64_size() const {
  4530. return rep_sf64_.size();
  4531. }
  4532. inline void PackedPrimitive::clear_rep_sf64() {
  4533. rep_sf64_.Clear();
  4534. }
  4535. inline ::google::protobuf::int64 PackedPrimitive::rep_sf64(int index) const {
  4536. // @@protoc_insertion_point(field_get:google.protobuf.testing.PackedPrimitive.rep_sf64)
  4537. return rep_sf64_.Get(index);
  4538. }
  4539. inline void PackedPrimitive::set_rep_sf64(int index, ::google::protobuf::int64 value) {
  4540. rep_sf64_.Set(index, value);
  4541. // @@protoc_insertion_point(field_set:google.protobuf.testing.PackedPrimitive.rep_sf64)
  4542. }
  4543. inline void PackedPrimitive::add_rep_sf64(::google::protobuf::int64 value) {
  4544. rep_sf64_.Add(value);
  4545. // @@protoc_insertion_point(field_add:google.protobuf.testing.PackedPrimitive.rep_sf64)
  4546. }
  4547. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  4548. PackedPrimitive::rep_sf64() const {
  4549. // @@protoc_insertion_point(field_list:google.protobuf.testing.PackedPrimitive.rep_sf64)
  4550. return rep_sf64_;
  4551. }
  4552. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  4553. PackedPrimitive::mutable_rep_sf64() {
  4554. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.PackedPrimitive.rep_sf64)
  4555. return &rep_sf64_;
  4556. }
  4557. // repeated sint64 rep_s64 = 25 [packed = true];
  4558. inline int PackedPrimitive::rep_s64_size() const {
  4559. return rep_s64_.size();
  4560. }
  4561. inline void PackedPrimitive::clear_rep_s64() {
  4562. rep_s64_.Clear();
  4563. }
  4564. inline ::google::protobuf::int64 PackedPrimitive::rep_s64(int index) const {
  4565. // @@protoc_insertion_point(field_get:google.protobuf.testing.PackedPrimitive.rep_s64)
  4566. return rep_s64_.Get(index);
  4567. }
  4568. inline void PackedPrimitive::set_rep_s64(int index, ::google::protobuf::int64 value) {
  4569. rep_s64_.Set(index, value);
  4570. // @@protoc_insertion_point(field_set:google.protobuf.testing.PackedPrimitive.rep_s64)
  4571. }
  4572. inline void PackedPrimitive::add_rep_s64(::google::protobuf::int64 value) {
  4573. rep_s64_.Add(value);
  4574. // @@protoc_insertion_point(field_add:google.protobuf.testing.PackedPrimitive.rep_s64)
  4575. }
  4576. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  4577. PackedPrimitive::rep_s64() const {
  4578. // @@protoc_insertion_point(field_list:google.protobuf.testing.PackedPrimitive.rep_s64)
  4579. return rep_s64_;
  4580. }
  4581. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  4582. PackedPrimitive::mutable_rep_s64() {
  4583. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.PackedPrimitive.rep_s64)
  4584. return &rep_s64_;
  4585. }
  4586. // repeated float rep_float = 28 [packed = true];
  4587. inline int PackedPrimitive::rep_float_size() const {
  4588. return rep_float_.size();
  4589. }
  4590. inline void PackedPrimitive::clear_rep_float() {
  4591. rep_float_.Clear();
  4592. }
  4593. inline float PackedPrimitive::rep_float(int index) const {
  4594. // @@protoc_insertion_point(field_get:google.protobuf.testing.PackedPrimitive.rep_float)
  4595. return rep_float_.Get(index);
  4596. }
  4597. inline void PackedPrimitive::set_rep_float(int index, float value) {
  4598. rep_float_.Set(index, value);
  4599. // @@protoc_insertion_point(field_set:google.protobuf.testing.PackedPrimitive.rep_float)
  4600. }
  4601. inline void PackedPrimitive::add_rep_float(float value) {
  4602. rep_float_.Add(value);
  4603. // @@protoc_insertion_point(field_add:google.protobuf.testing.PackedPrimitive.rep_float)
  4604. }
  4605. inline const ::google::protobuf::RepeatedField< float >&
  4606. PackedPrimitive::rep_float() const {
  4607. // @@protoc_insertion_point(field_list:google.protobuf.testing.PackedPrimitive.rep_float)
  4608. return rep_float_;
  4609. }
  4610. inline ::google::protobuf::RepeatedField< float >*
  4611. PackedPrimitive::mutable_rep_float() {
  4612. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.PackedPrimitive.rep_float)
  4613. return &rep_float_;
  4614. }
  4615. // repeated double rep_double = 29 [packed = true];
  4616. inline int PackedPrimitive::rep_double_size() const {
  4617. return rep_double_.size();
  4618. }
  4619. inline void PackedPrimitive::clear_rep_double() {
  4620. rep_double_.Clear();
  4621. }
  4622. inline double PackedPrimitive::rep_double(int index) const {
  4623. // @@protoc_insertion_point(field_get:google.protobuf.testing.PackedPrimitive.rep_double)
  4624. return rep_double_.Get(index);
  4625. }
  4626. inline void PackedPrimitive::set_rep_double(int index, double value) {
  4627. rep_double_.Set(index, value);
  4628. // @@protoc_insertion_point(field_set:google.protobuf.testing.PackedPrimitive.rep_double)
  4629. }
  4630. inline void PackedPrimitive::add_rep_double(double value) {
  4631. rep_double_.Add(value);
  4632. // @@protoc_insertion_point(field_add:google.protobuf.testing.PackedPrimitive.rep_double)
  4633. }
  4634. inline const ::google::protobuf::RepeatedField< double >&
  4635. PackedPrimitive::rep_double() const {
  4636. // @@protoc_insertion_point(field_list:google.protobuf.testing.PackedPrimitive.rep_double)
  4637. return rep_double_;
  4638. }
  4639. inline ::google::protobuf::RepeatedField< double >*
  4640. PackedPrimitive::mutable_rep_double() {
  4641. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.PackedPrimitive.rep_double)
  4642. return &rep_double_;
  4643. }
  4644. // repeated bool rep_bool = 30 [packed = true];
  4645. inline int PackedPrimitive::rep_bool_size() const {
  4646. return rep_bool_.size();
  4647. }
  4648. inline void PackedPrimitive::clear_rep_bool() {
  4649. rep_bool_.Clear();
  4650. }
  4651. inline bool PackedPrimitive::rep_bool(int index) const {
  4652. // @@protoc_insertion_point(field_get:google.protobuf.testing.PackedPrimitive.rep_bool)
  4653. return rep_bool_.Get(index);
  4654. }
  4655. inline void PackedPrimitive::set_rep_bool(int index, bool value) {
  4656. rep_bool_.Set(index, value);
  4657. // @@protoc_insertion_point(field_set:google.protobuf.testing.PackedPrimitive.rep_bool)
  4658. }
  4659. inline void PackedPrimitive::add_rep_bool(bool value) {
  4660. rep_bool_.Add(value);
  4661. // @@protoc_insertion_point(field_add:google.protobuf.testing.PackedPrimitive.rep_bool)
  4662. }
  4663. inline const ::google::protobuf::RepeatedField< bool >&
  4664. PackedPrimitive::rep_bool() const {
  4665. // @@protoc_insertion_point(field_list:google.protobuf.testing.PackedPrimitive.rep_bool)
  4666. return rep_bool_;
  4667. }
  4668. inline ::google::protobuf::RepeatedField< bool >*
  4669. PackedPrimitive::mutable_rep_bool() {
  4670. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.PackedPrimitive.rep_bool)
  4671. return &rep_bool_;
  4672. }
  4673. // -------------------------------------------------------------------
  4674. // NestedBook
  4675. // optional .google.protobuf.testing.Book book = 1;
  4676. inline bool NestedBook::has_book() const {
  4677. return (_has_bits_[0] & 0x00000001u) != 0;
  4678. }
  4679. inline void NestedBook::set_has_book() {
  4680. _has_bits_[0] |= 0x00000001u;
  4681. }
  4682. inline void NestedBook::clear_has_book() {
  4683. _has_bits_[0] &= ~0x00000001u;
  4684. }
  4685. inline void NestedBook::clear_book() {
  4686. if (book_ != NULL) book_->Clear();
  4687. clear_has_book();
  4688. }
  4689. inline const ::google::protobuf::testing::Book& NestedBook::_internal_book() const {
  4690. return *book_;
  4691. }
  4692. inline const ::google::protobuf::testing::Book& NestedBook::book() const {
  4693. const ::google::protobuf::testing::Book* p = book_;
  4694. // @@protoc_insertion_point(field_get:google.protobuf.testing.NestedBook.book)
  4695. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Book*>(
  4696. &::google::protobuf::testing::_Book_default_instance_);
  4697. }
  4698. inline ::google::protobuf::testing::Book* NestedBook::release_book() {
  4699. // @@protoc_insertion_point(field_release:google.protobuf.testing.NestedBook.book)
  4700. clear_has_book();
  4701. ::google::protobuf::testing::Book* temp = book_;
  4702. book_ = NULL;
  4703. return temp;
  4704. }
  4705. inline ::google::protobuf::testing::Book* NestedBook::mutable_book() {
  4706. set_has_book();
  4707. if (book_ == NULL) {
  4708. auto* p = CreateMaybeMessage<::google::protobuf::testing::Book>(GetArenaNoVirtual());
  4709. book_ = p;
  4710. }
  4711. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.NestedBook.book)
  4712. return book_;
  4713. }
  4714. inline void NestedBook::set_allocated_book(::google::protobuf::testing::Book* book) {
  4715. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4716. if (message_arena == NULL) {
  4717. delete book_;
  4718. }
  4719. if (book) {
  4720. ::google::protobuf::Arena* submessage_arena = NULL;
  4721. if (message_arena != submessage_arena) {
  4722. book = ::google::protobuf::internal::GetOwnedMessage(
  4723. message_arena, book, submessage_arena);
  4724. }
  4725. set_has_book();
  4726. } else {
  4727. clear_has_book();
  4728. }
  4729. book_ = book;
  4730. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.NestedBook.book)
  4731. }
  4732. // -------------------------------------------------------------------
  4733. // BadNestedBook
  4734. // repeated uint32 book = 1 [packed = true];
  4735. inline int BadNestedBook::book_size() const {
  4736. return book_.size();
  4737. }
  4738. inline void BadNestedBook::clear_book() {
  4739. book_.Clear();
  4740. }
  4741. inline ::google::protobuf::uint32 BadNestedBook::book(int index) const {
  4742. // @@protoc_insertion_point(field_get:google.protobuf.testing.BadNestedBook.book)
  4743. return book_.Get(index);
  4744. }
  4745. inline void BadNestedBook::set_book(int index, ::google::protobuf::uint32 value) {
  4746. book_.Set(index, value);
  4747. // @@protoc_insertion_point(field_set:google.protobuf.testing.BadNestedBook.book)
  4748. }
  4749. inline void BadNestedBook::add_book(::google::protobuf::uint32 value) {
  4750. book_.Add(value);
  4751. // @@protoc_insertion_point(field_add:google.protobuf.testing.BadNestedBook.book)
  4752. }
  4753. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  4754. BadNestedBook::book() const {
  4755. // @@protoc_insertion_point(field_list:google.protobuf.testing.BadNestedBook.book)
  4756. return book_;
  4757. }
  4758. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  4759. BadNestedBook::mutable_book() {
  4760. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.BadNestedBook.book)
  4761. return &book_;
  4762. }
  4763. // -------------------------------------------------------------------
  4764. // Cyclic
  4765. // optional int32 m_int = 1;
  4766. inline bool Cyclic::has_m_int() const {
  4767. return (_has_bits_[0] & 0x00000008u) != 0;
  4768. }
  4769. inline void Cyclic::set_has_m_int() {
  4770. _has_bits_[0] |= 0x00000008u;
  4771. }
  4772. inline void Cyclic::clear_has_m_int() {
  4773. _has_bits_[0] &= ~0x00000008u;
  4774. }
  4775. inline void Cyclic::clear_m_int() {
  4776. m_int_ = 0;
  4777. clear_has_m_int();
  4778. }
  4779. inline ::google::protobuf::int32 Cyclic::m_int() const {
  4780. // @@protoc_insertion_point(field_get:google.protobuf.testing.Cyclic.m_int)
  4781. return m_int_;
  4782. }
  4783. inline void Cyclic::set_m_int(::google::protobuf::int32 value) {
  4784. set_has_m_int();
  4785. m_int_ = value;
  4786. // @@protoc_insertion_point(field_set:google.protobuf.testing.Cyclic.m_int)
  4787. }
  4788. // optional string m_str = 2;
  4789. inline bool Cyclic::has_m_str() const {
  4790. return (_has_bits_[0] & 0x00000001u) != 0;
  4791. }
  4792. inline void Cyclic::set_has_m_str() {
  4793. _has_bits_[0] |= 0x00000001u;
  4794. }
  4795. inline void Cyclic::clear_has_m_str() {
  4796. _has_bits_[0] &= ~0x00000001u;
  4797. }
  4798. inline void Cyclic::clear_m_str() {
  4799. m_str_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4800. clear_has_m_str();
  4801. }
  4802. inline const ::std::string& Cyclic::m_str() const {
  4803. // @@protoc_insertion_point(field_get:google.protobuf.testing.Cyclic.m_str)
  4804. return m_str_.GetNoArena();
  4805. }
  4806. inline void Cyclic::set_m_str(const ::std::string& value) {
  4807. set_has_m_str();
  4808. m_str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  4809. // @@protoc_insertion_point(field_set:google.protobuf.testing.Cyclic.m_str)
  4810. }
  4811. #if LANG_CXX11
  4812. inline void Cyclic::set_m_str(::std::string&& value) {
  4813. set_has_m_str();
  4814. m_str_.SetNoArena(
  4815. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4816. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.Cyclic.m_str)
  4817. }
  4818. #endif
  4819. inline void Cyclic::set_m_str(const char* value) {
  4820. GOOGLE_DCHECK(value != NULL);
  4821. set_has_m_str();
  4822. m_str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4823. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Cyclic.m_str)
  4824. }
  4825. inline void Cyclic::set_m_str(const char* value, size_t size) {
  4826. set_has_m_str();
  4827. m_str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4828. ::std::string(reinterpret_cast<const char*>(value), size));
  4829. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Cyclic.m_str)
  4830. }
  4831. inline ::std::string* Cyclic::mutable_m_str() {
  4832. set_has_m_str();
  4833. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Cyclic.m_str)
  4834. return m_str_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4835. }
  4836. inline ::std::string* Cyclic::release_m_str() {
  4837. // @@protoc_insertion_point(field_release:google.protobuf.testing.Cyclic.m_str)
  4838. if (!has_m_str()) {
  4839. return NULL;
  4840. }
  4841. clear_has_m_str();
  4842. return m_str_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4843. }
  4844. inline void Cyclic::set_allocated_m_str(::std::string* m_str) {
  4845. if (m_str != NULL) {
  4846. set_has_m_str();
  4847. } else {
  4848. clear_has_m_str();
  4849. }
  4850. m_str_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), m_str);
  4851. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Cyclic.m_str)
  4852. }
  4853. // optional .google.protobuf.testing.Book m_book = 3;
  4854. inline bool Cyclic::has_m_book() const {
  4855. return (_has_bits_[0] & 0x00000002u) != 0;
  4856. }
  4857. inline void Cyclic::set_has_m_book() {
  4858. _has_bits_[0] |= 0x00000002u;
  4859. }
  4860. inline void Cyclic::clear_has_m_book() {
  4861. _has_bits_[0] &= ~0x00000002u;
  4862. }
  4863. inline void Cyclic::clear_m_book() {
  4864. if (m_book_ != NULL) m_book_->Clear();
  4865. clear_has_m_book();
  4866. }
  4867. inline const ::google::protobuf::testing::Book& Cyclic::_internal_m_book() const {
  4868. return *m_book_;
  4869. }
  4870. inline const ::google::protobuf::testing::Book& Cyclic::m_book() const {
  4871. const ::google::protobuf::testing::Book* p = m_book_;
  4872. // @@protoc_insertion_point(field_get:google.protobuf.testing.Cyclic.m_book)
  4873. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Book*>(
  4874. &::google::protobuf::testing::_Book_default_instance_);
  4875. }
  4876. inline ::google::protobuf::testing::Book* Cyclic::release_m_book() {
  4877. // @@protoc_insertion_point(field_release:google.protobuf.testing.Cyclic.m_book)
  4878. clear_has_m_book();
  4879. ::google::protobuf::testing::Book* temp = m_book_;
  4880. m_book_ = NULL;
  4881. return temp;
  4882. }
  4883. inline ::google::protobuf::testing::Book* Cyclic::mutable_m_book() {
  4884. set_has_m_book();
  4885. if (m_book_ == NULL) {
  4886. auto* p = CreateMaybeMessage<::google::protobuf::testing::Book>(GetArenaNoVirtual());
  4887. m_book_ = p;
  4888. }
  4889. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Cyclic.m_book)
  4890. return m_book_;
  4891. }
  4892. inline void Cyclic::set_allocated_m_book(::google::protobuf::testing::Book* m_book) {
  4893. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4894. if (message_arena == NULL) {
  4895. delete m_book_;
  4896. }
  4897. if (m_book) {
  4898. ::google::protobuf::Arena* submessage_arena = NULL;
  4899. if (message_arena != submessage_arena) {
  4900. m_book = ::google::protobuf::internal::GetOwnedMessage(
  4901. message_arena, m_book, submessage_arena);
  4902. }
  4903. set_has_m_book();
  4904. } else {
  4905. clear_has_m_book();
  4906. }
  4907. m_book_ = m_book;
  4908. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Cyclic.m_book)
  4909. }
  4910. // repeated .google.protobuf.testing.Author m_author = 5;
  4911. inline int Cyclic::m_author_size() const {
  4912. return m_author_.size();
  4913. }
  4914. inline void Cyclic::clear_m_author() {
  4915. m_author_.Clear();
  4916. }
  4917. inline ::google::protobuf::testing::Author* Cyclic::mutable_m_author(int index) {
  4918. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Cyclic.m_author)
  4919. return m_author_.Mutable(index);
  4920. }
  4921. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Author >*
  4922. Cyclic::mutable_m_author() {
  4923. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.Cyclic.m_author)
  4924. return &m_author_;
  4925. }
  4926. inline const ::google::protobuf::testing::Author& Cyclic::m_author(int index) const {
  4927. // @@protoc_insertion_point(field_get:google.protobuf.testing.Cyclic.m_author)
  4928. return m_author_.Get(index);
  4929. }
  4930. inline ::google::protobuf::testing::Author* Cyclic::add_m_author() {
  4931. // @@protoc_insertion_point(field_add:google.protobuf.testing.Cyclic.m_author)
  4932. return m_author_.Add();
  4933. }
  4934. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::Author >&
  4935. Cyclic::m_author() const {
  4936. // @@protoc_insertion_point(field_list:google.protobuf.testing.Cyclic.m_author)
  4937. return m_author_;
  4938. }
  4939. // optional .google.protobuf.testing.Cyclic m_cyclic = 4;
  4940. inline bool Cyclic::has_m_cyclic() const {
  4941. return (_has_bits_[0] & 0x00000004u) != 0;
  4942. }
  4943. inline void Cyclic::set_has_m_cyclic() {
  4944. _has_bits_[0] |= 0x00000004u;
  4945. }
  4946. inline void Cyclic::clear_has_m_cyclic() {
  4947. _has_bits_[0] &= ~0x00000004u;
  4948. }
  4949. inline void Cyclic::clear_m_cyclic() {
  4950. if (m_cyclic_ != NULL) m_cyclic_->Clear();
  4951. clear_has_m_cyclic();
  4952. }
  4953. inline const ::google::protobuf::testing::Cyclic& Cyclic::_internal_m_cyclic() const {
  4954. return *m_cyclic_;
  4955. }
  4956. inline const ::google::protobuf::testing::Cyclic& Cyclic::m_cyclic() const {
  4957. const ::google::protobuf::testing::Cyclic* p = m_cyclic_;
  4958. // @@protoc_insertion_point(field_get:google.protobuf.testing.Cyclic.m_cyclic)
  4959. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Cyclic*>(
  4960. &::google::protobuf::testing::_Cyclic_default_instance_);
  4961. }
  4962. inline ::google::protobuf::testing::Cyclic* Cyclic::release_m_cyclic() {
  4963. // @@protoc_insertion_point(field_release:google.protobuf.testing.Cyclic.m_cyclic)
  4964. clear_has_m_cyclic();
  4965. ::google::protobuf::testing::Cyclic* temp = m_cyclic_;
  4966. m_cyclic_ = NULL;
  4967. return temp;
  4968. }
  4969. inline ::google::protobuf::testing::Cyclic* Cyclic::mutable_m_cyclic() {
  4970. set_has_m_cyclic();
  4971. if (m_cyclic_ == NULL) {
  4972. auto* p = CreateMaybeMessage<::google::protobuf::testing::Cyclic>(GetArenaNoVirtual());
  4973. m_cyclic_ = p;
  4974. }
  4975. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Cyclic.m_cyclic)
  4976. return m_cyclic_;
  4977. }
  4978. inline void Cyclic::set_allocated_m_cyclic(::google::protobuf::testing::Cyclic* m_cyclic) {
  4979. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4980. if (message_arena == NULL) {
  4981. delete m_cyclic_;
  4982. }
  4983. if (m_cyclic) {
  4984. ::google::protobuf::Arena* submessage_arena = NULL;
  4985. if (message_arena != submessage_arena) {
  4986. m_cyclic = ::google::protobuf::internal::GetOwnedMessage(
  4987. message_arena, m_cyclic, submessage_arena);
  4988. }
  4989. set_has_m_cyclic();
  4990. } else {
  4991. clear_has_m_cyclic();
  4992. }
  4993. m_cyclic_ = m_cyclic;
  4994. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Cyclic.m_cyclic)
  4995. }
  4996. // -------------------------------------------------------------------
  4997. // TestJsonName1
  4998. // optional int32 one_value = 1[json_name = "value"];
  4999. inline bool TestJsonName1::has_one_value() const {
  5000. return (_has_bits_[0] & 0x00000001u) != 0;
  5001. }
  5002. inline void TestJsonName1::set_has_one_value() {
  5003. _has_bits_[0] |= 0x00000001u;
  5004. }
  5005. inline void TestJsonName1::clear_has_one_value() {
  5006. _has_bits_[0] &= ~0x00000001u;
  5007. }
  5008. inline void TestJsonName1::clear_one_value() {
  5009. one_value_ = 0;
  5010. clear_has_one_value();
  5011. }
  5012. inline ::google::protobuf::int32 TestJsonName1::one_value() const {
  5013. // @@protoc_insertion_point(field_get:google.protobuf.testing.TestJsonName1.one_value)
  5014. return one_value_;
  5015. }
  5016. inline void TestJsonName1::set_one_value(::google::protobuf::int32 value) {
  5017. set_has_one_value();
  5018. one_value_ = value;
  5019. // @@protoc_insertion_point(field_set:google.protobuf.testing.TestJsonName1.one_value)
  5020. }
  5021. // -------------------------------------------------------------------
  5022. // TestJsonName2
  5023. // optional int32 another_value = 1[json_name = "value"];
  5024. inline bool TestJsonName2::has_another_value() const {
  5025. return (_has_bits_[0] & 0x00000001u) != 0;
  5026. }
  5027. inline void TestJsonName2::set_has_another_value() {
  5028. _has_bits_[0] |= 0x00000001u;
  5029. }
  5030. inline void TestJsonName2::clear_has_another_value() {
  5031. _has_bits_[0] &= ~0x00000001u;
  5032. }
  5033. inline void TestJsonName2::clear_another_value() {
  5034. another_value_ = 0;
  5035. clear_has_another_value();
  5036. }
  5037. inline ::google::protobuf::int32 TestJsonName2::another_value() const {
  5038. // @@protoc_insertion_point(field_get:google.protobuf.testing.TestJsonName2.another_value)
  5039. return another_value_;
  5040. }
  5041. inline void TestJsonName2::set_another_value(::google::protobuf::int32 value) {
  5042. set_has_another_value();
  5043. another_value_ = value;
  5044. // @@protoc_insertion_point(field_set:google.protobuf.testing.TestJsonName2.another_value)
  5045. }
  5046. #ifdef __GNUC__
  5047. #pragma GCC diagnostic pop
  5048. #endif // __GNUC__
  5049. // -------------------------------------------------------------------
  5050. // -------------------------------------------------------------------
  5051. // -------------------------------------------------------------------
  5052. // -------------------------------------------------------------------
  5053. // -------------------------------------------------------------------
  5054. // -------------------------------------------------------------------
  5055. // -------------------------------------------------------------------
  5056. // -------------------------------------------------------------------
  5057. // -------------------------------------------------------------------
  5058. // -------------------------------------------------------------------
  5059. // -------------------------------------------------------------------
  5060. // -------------------------------------------------------------------
  5061. // @@protoc_insertion_point(namespace_scope)
  5062. } // namespace testing
  5063. } // namespace protobuf
  5064. } // namespace google
  5065. namespace google {
  5066. namespace protobuf {
  5067. template <> struct is_proto_enum< ::google::protobuf::testing::Book_Type> : ::std::true_type {};
  5068. template <>
  5069. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::testing::Book_Type>() {
  5070. return ::google::protobuf::testing::Book_Type_descriptor();
  5071. }
  5072. } // namespace protobuf
  5073. } // namespace google
  5074. // @@protoc_insertion_point(global_scope)
  5075. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fbooks_2eproto