UnitTestExtrasLiteProtoFile.cs 144 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644
  1. // Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT!
  2. #pragma warning disable 1591, 0612
  3. #region Designer generated code
  4. using pb = global::Google.ProtocolBuffers;
  5. using pbc = global::Google.ProtocolBuffers.Collections;
  6. using pbd = global::Google.ProtocolBuffers.Descriptors;
  7. using scg = global::System.Collections.Generic;
  8. namespace Google.ProtocolBuffers.TestProtos {
  9. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  11. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  12. public static partial class UnitTestExtrasLiteProtoFile {
  13. #region Extension registration
  14. public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
  15. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.EmployeeIdLite);
  16. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedInt32ExtensionLite);
  17. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedInt64ExtensionLite);
  18. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedUint32ExtensionLite);
  19. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedUint64ExtensionLite);
  20. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSint32ExtensionLite);
  21. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSint64ExtensionLite);
  22. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFixed32ExtensionLite);
  23. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFixed64ExtensionLite);
  24. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSfixed32ExtensionLite);
  25. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSfixed64ExtensionLite);
  26. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFloatExtensionLite);
  27. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedDoubleExtensionLite);
  28. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedBoolExtensionLite);
  29. registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedEnumExtensionLite);
  30. }
  31. #endregion
  32. #region Extensions
  33. public const int EmployeeIdLiteFieldNumber = 126;
  34. public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite, global::Google.ProtocolBuffers.TestProtos.TestInteropEmployeeIdLite> EmployeeIdLite;
  35. public const int UnpackedInt32ExtensionLiteFieldNumber = 90;
  36. public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedInt32ExtensionLite;
  37. public const int UnpackedInt64ExtensionLiteFieldNumber = 91;
  38. public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedInt64ExtensionLite;
  39. public const int UnpackedUint32ExtensionLiteFieldNumber = 92;
  40. [global::System.CLSCompliant(false)]
  41. public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint> UnpackedUint32ExtensionLite;
  42. public const int UnpackedUint64ExtensionLiteFieldNumber = 93;
  43. [global::System.CLSCompliant(false)]
  44. public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong> UnpackedUint64ExtensionLite;
  45. public const int UnpackedSint32ExtensionLiteFieldNumber = 94;
  46. public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedSint32ExtensionLite;
  47. public const int UnpackedSint64ExtensionLiteFieldNumber = 95;
  48. public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedSint64ExtensionLite;
  49. public const int UnpackedFixed32ExtensionLiteFieldNumber = 96;
  50. [global::System.CLSCompliant(false)]
  51. public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint> UnpackedFixed32ExtensionLite;
  52. public const int UnpackedFixed64ExtensionLiteFieldNumber = 97;
  53. [global::System.CLSCompliant(false)]
  54. public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong> UnpackedFixed64ExtensionLite;
  55. public const int UnpackedSfixed32ExtensionLiteFieldNumber = 98;
  56. public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedSfixed32ExtensionLite;
  57. public const int UnpackedSfixed64ExtensionLiteFieldNumber = 99;
  58. public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedSfixed64ExtensionLite;
  59. public const int UnpackedFloatExtensionLiteFieldNumber = 100;
  60. public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, float> UnpackedFloatExtensionLite;
  61. public const int UnpackedDoubleExtensionLiteFieldNumber = 101;
  62. public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, double> UnpackedDoubleExtensionLite;
  63. public const int UnpackedBoolExtensionLiteFieldNumber = 102;
  64. public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, bool> UnpackedBoolExtensionLite;
  65. public const int UnpackedEnumExtensionLiteFieldNumber = 103;
  66. public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite> UnpackedEnumExtensionLite;
  67. #endregion
  68. #region Static variables
  69. #endregion
  70. #region Extensions
  71. internal static readonly object Descriptor;
  72. static UnitTestExtrasLiteProtoFile() {
  73. Descriptor = null;
  74. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.EmployeeIdLite =
  75. new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite, global::Google.ProtocolBuffers.TestProtos.TestInteropEmployeeIdLite>(
  76. "protobuf_unittest_extra.employee_id_lite",
  77. global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.DefaultInstance,
  78. null,
  79. global::Google.ProtocolBuffers.TestProtos.TestInteropEmployeeIdLite.DefaultInstance,
  80. null,
  81. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.EmployeeIdLiteFieldNumber,
  82. pbd::FieldType.Message);
  83. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedInt32ExtensionLite =
  84. new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
  85. "protobuf_unittest_extra.unpacked_int32_extension_lite",
  86. global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
  87. null,
  88. null,
  89. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedInt32ExtensionLiteFieldNumber,
  90. pbd::FieldType.Int32,
  91. false);
  92. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedInt64ExtensionLite =
  93. new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
  94. "protobuf_unittest_extra.unpacked_int64_extension_lite",
  95. global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
  96. null,
  97. null,
  98. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedInt64ExtensionLiteFieldNumber,
  99. pbd::FieldType.Int64,
  100. false);
  101. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedUint32ExtensionLite =
  102. new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint>(
  103. "protobuf_unittest_extra.unpacked_uint32_extension_lite",
  104. global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
  105. null,
  106. null,
  107. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedUint32ExtensionLiteFieldNumber,
  108. pbd::FieldType.UInt32,
  109. false);
  110. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedUint64ExtensionLite =
  111. new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong>(
  112. "protobuf_unittest_extra.unpacked_uint64_extension_lite",
  113. global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
  114. null,
  115. null,
  116. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedUint64ExtensionLiteFieldNumber,
  117. pbd::FieldType.UInt64,
  118. false);
  119. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSint32ExtensionLite =
  120. new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
  121. "protobuf_unittest_extra.unpacked_sint32_extension_lite",
  122. global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
  123. null,
  124. null,
  125. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSint32ExtensionLiteFieldNumber,
  126. pbd::FieldType.SInt32,
  127. false);
  128. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSint64ExtensionLite =
  129. new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
  130. "protobuf_unittest_extra.unpacked_sint64_extension_lite",
  131. global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
  132. null,
  133. null,
  134. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSint64ExtensionLiteFieldNumber,
  135. pbd::FieldType.SInt64,
  136. false);
  137. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFixed32ExtensionLite =
  138. new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint>(
  139. "protobuf_unittest_extra.unpacked_fixed32_extension_lite",
  140. global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
  141. null,
  142. null,
  143. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFixed32ExtensionLiteFieldNumber,
  144. pbd::FieldType.Fixed32,
  145. false);
  146. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFixed64ExtensionLite =
  147. new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong>(
  148. "protobuf_unittest_extra.unpacked_fixed64_extension_lite",
  149. global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
  150. null,
  151. null,
  152. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFixed64ExtensionLiteFieldNumber,
  153. pbd::FieldType.Fixed64,
  154. false);
  155. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSfixed32ExtensionLite =
  156. new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
  157. "protobuf_unittest_extra.unpacked_sfixed32_extension_lite",
  158. global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
  159. null,
  160. null,
  161. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSfixed32ExtensionLiteFieldNumber,
  162. pbd::FieldType.SFixed32,
  163. false);
  164. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSfixed64ExtensionLite =
  165. new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
  166. "protobuf_unittest_extra.unpacked_sfixed64_extension_lite",
  167. global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
  168. null,
  169. null,
  170. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSfixed64ExtensionLiteFieldNumber,
  171. pbd::FieldType.SFixed64,
  172. false);
  173. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFloatExtensionLite =
  174. new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, float>(
  175. "protobuf_unittest_extra.unpacked_float_extension_lite",
  176. global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
  177. null,
  178. null,
  179. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFloatExtensionLiteFieldNumber,
  180. pbd::FieldType.Float,
  181. false);
  182. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedDoubleExtensionLite =
  183. new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, double>(
  184. "protobuf_unittest_extra.unpacked_double_extension_lite",
  185. global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
  186. null,
  187. null,
  188. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedDoubleExtensionLiteFieldNumber,
  189. pbd::FieldType.Double,
  190. false);
  191. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedBoolExtensionLite =
  192. new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, bool>(
  193. "protobuf_unittest_extra.unpacked_bool_extension_lite",
  194. global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
  195. null,
  196. null,
  197. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedBoolExtensionLiteFieldNumber,
  198. pbd::FieldType.Bool,
  199. false);
  200. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedEnumExtensionLite =
  201. new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite>(
  202. "protobuf_unittest_extra.unpacked_enum_extension_lite",
  203. global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
  204. null,
  205. new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite>(),
  206. global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedEnumExtensionLiteFieldNumber,
  207. pbd::FieldType.Enum,
  208. false);
  209. }
  210. #endregion
  211. }
  212. #region Enums
  213. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  215. public enum ExtraEnum {
  216. DEFAULT = 10,
  217. EXLITE_FOO = 7,
  218. EXLITE_BAR = 8,
  219. EXLITE_BAZ = 9,
  220. }
  221. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  223. public enum UnpackedTypesForeignEnumLite {
  224. FOREIGN_LITE_FOO = 4,
  225. FOREIGN_LITE_BAR = 5,
  226. FOREIGN_LITE_BAZ = 6,
  227. }
  228. #endregion
  229. #region Messages
  230. [global::System.SerializableAttribute()]
  231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  232. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  234. public sealed partial class TestRequiredLite : pb::GeneratedMessageLite<TestRequiredLite, TestRequiredLite.Builder> {
  235. private TestRequiredLite() { }
  236. private static readonly TestRequiredLite defaultInstance = new TestRequiredLite().MakeReadOnly();
  237. private static readonly string[] _testRequiredLiteFieldNames = new string[] { "d", "en" };
  238. private static readonly uint[] _testRequiredLiteFieldTags = new uint[] { 8, 16 };
  239. public static TestRequiredLite DefaultInstance {
  240. get { return defaultInstance; }
  241. }
  242. public override TestRequiredLite DefaultInstanceForType {
  243. get { return DefaultInstance; }
  244. }
  245. protected override TestRequiredLite ThisMessage {
  246. get { return this; }
  247. }
  248. public const int DFieldNumber = 1;
  249. private bool hasD;
  250. private int d_;
  251. public bool HasD {
  252. get { return hasD; }
  253. }
  254. public int D {
  255. get { return d_; }
  256. }
  257. public const int EnFieldNumber = 2;
  258. private bool hasEn;
  259. private global::Google.ProtocolBuffers.TestProtos.ExtraEnum en_ = global::Google.ProtocolBuffers.TestProtos.ExtraEnum.DEFAULT;
  260. public bool HasEn {
  261. get { return hasEn; }
  262. }
  263. public global::Google.ProtocolBuffers.TestProtos.ExtraEnum En {
  264. get { return en_; }
  265. }
  266. public override bool IsInitialized {
  267. get {
  268. if (!hasD) return false;
  269. if (!hasEn) return false;
  270. return true;
  271. }
  272. }
  273. public override void WriteTo(pb::ICodedOutputStream output) {
  274. int size = SerializedSize;
  275. string[] field_names = _testRequiredLiteFieldNames;
  276. if (hasD) {
  277. output.WriteInt32(1, field_names[0], D);
  278. }
  279. if (hasEn) {
  280. output.WriteEnum(2, field_names[1], (int) En, En);
  281. }
  282. }
  283. private int memoizedSerializedSize = -1;
  284. public override int SerializedSize {
  285. get {
  286. int size = memoizedSerializedSize;
  287. if (size != -1) return size;
  288. size = 0;
  289. if (hasD) {
  290. size += pb::CodedOutputStream.ComputeInt32Size(1, D);
  291. }
  292. if (hasEn) {
  293. size += pb::CodedOutputStream.ComputeEnumSize(2, (int) En);
  294. }
  295. memoizedSerializedSize = size;
  296. return size;
  297. }
  298. }
  299. #region Lite runtime methods
  300. public override int GetHashCode() {
  301. int hash = GetType().GetHashCode();
  302. if (hasD) hash ^= d_.GetHashCode();
  303. if (hasEn) hash ^= en_.GetHashCode();
  304. return hash;
  305. }
  306. public override bool Equals(object obj) {
  307. TestRequiredLite other = obj as TestRequiredLite;
  308. if (other == null) return false;
  309. if (hasD != other.hasD || (hasD && !d_.Equals(other.d_))) return false;
  310. if (hasEn != other.hasEn || (hasEn && !en_.Equals(other.en_))) return false;
  311. return true;
  312. }
  313. public override void PrintTo(global::System.IO.TextWriter writer) {
  314. PrintField("d", hasD, d_, writer);
  315. PrintField("en", hasEn, en_, writer);
  316. }
  317. #endregion
  318. public static TestRequiredLite ParseFrom(pb::ByteString data) {
  319. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  320. }
  321. public static TestRequiredLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  322. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  323. }
  324. public static TestRequiredLite ParseFrom(byte[] data) {
  325. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  326. }
  327. public static TestRequiredLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  328. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  329. }
  330. public static TestRequiredLite ParseFrom(global::System.IO.Stream input) {
  331. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  332. }
  333. public static TestRequiredLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  334. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  335. }
  336. public static TestRequiredLite ParseDelimitedFrom(global::System.IO.Stream input) {
  337. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  338. }
  339. public static TestRequiredLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  340. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  341. }
  342. public static TestRequiredLite ParseFrom(pb::ICodedInputStream input) {
  343. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  344. }
  345. public static TestRequiredLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  346. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  347. }
  348. private TestRequiredLite MakeReadOnly() {
  349. return this;
  350. }
  351. public static Builder CreateBuilder() { return new Builder(); }
  352. public override Builder ToBuilder() { return CreateBuilder(this); }
  353. public override Builder CreateBuilderForType() { return new Builder(); }
  354. public static Builder CreateBuilder(TestRequiredLite prototype) {
  355. return new Builder(prototype);
  356. }
  357. [global::System.SerializableAttribute()]
  358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  359. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  361. public sealed partial class Builder : pb::GeneratedBuilderLite<TestRequiredLite, Builder> {
  362. protected override Builder ThisBuilder {
  363. get { return this; }
  364. }
  365. public Builder() {
  366. result = DefaultInstance;
  367. resultIsReadOnly = true;
  368. }
  369. internal Builder(TestRequiredLite cloneFrom) {
  370. result = cloneFrom;
  371. resultIsReadOnly = true;
  372. }
  373. private bool resultIsReadOnly;
  374. private TestRequiredLite result;
  375. private TestRequiredLite PrepareBuilder() {
  376. if (resultIsReadOnly) {
  377. TestRequiredLite original = result;
  378. result = new TestRequiredLite();
  379. resultIsReadOnly = false;
  380. MergeFrom(original);
  381. }
  382. return result;
  383. }
  384. public override bool IsInitialized {
  385. get { return result.IsInitialized; }
  386. }
  387. protected override TestRequiredLite MessageBeingBuilt {
  388. get { return PrepareBuilder(); }
  389. }
  390. public override Builder Clear() {
  391. result = DefaultInstance;
  392. resultIsReadOnly = true;
  393. return this;
  394. }
  395. public override Builder Clone() {
  396. if (resultIsReadOnly) {
  397. return new Builder(result);
  398. } else {
  399. return new Builder().MergeFrom(result);
  400. }
  401. }
  402. public override TestRequiredLite DefaultInstanceForType {
  403. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredLite.DefaultInstance; }
  404. }
  405. public override TestRequiredLite BuildPartial() {
  406. if (resultIsReadOnly) {
  407. return result;
  408. }
  409. resultIsReadOnly = true;
  410. return result.MakeReadOnly();
  411. }
  412. public override Builder MergeFrom(pb::IMessageLite other) {
  413. if (other is TestRequiredLite) {
  414. return MergeFrom((TestRequiredLite) other);
  415. } else {
  416. base.MergeFrom(other);
  417. return this;
  418. }
  419. }
  420. public override Builder MergeFrom(TestRequiredLite other) {
  421. if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredLite.DefaultInstance) return this;
  422. PrepareBuilder();
  423. if (other.HasD) {
  424. D = other.D;
  425. }
  426. if (other.HasEn) {
  427. En = other.En;
  428. }
  429. return this;
  430. }
  431. public override Builder MergeFrom(pb::ICodedInputStream input) {
  432. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  433. }
  434. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  435. PrepareBuilder();
  436. uint tag;
  437. string field_name;
  438. while (input.ReadTag(out tag, out field_name)) {
  439. if(tag == 0 && field_name != null) {
  440. int field_ordinal = global::System.Array.BinarySearch(_testRequiredLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
  441. if(field_ordinal >= 0)
  442. tag = _testRequiredLiteFieldTags[field_ordinal];
  443. else {
  444. ParseUnknownField(input, extensionRegistry, tag, field_name);
  445. continue;
  446. }
  447. }
  448. switch (tag) {
  449. case 0: {
  450. throw pb::InvalidProtocolBufferException.InvalidTag();
  451. }
  452. default: {
  453. if (pb::WireFormat.IsEndGroupTag(tag)) {
  454. return this;
  455. }
  456. ParseUnknownField(input, extensionRegistry, tag, field_name);
  457. break;
  458. }
  459. case 8: {
  460. result.hasD = input.ReadInt32(ref result.d_);
  461. break;
  462. }
  463. case 16: {
  464. object unknown;
  465. if(input.ReadEnum(ref result.en_, out unknown)) {
  466. result.hasEn = true;
  467. } else if(unknown is int) {
  468. }
  469. break;
  470. }
  471. }
  472. }
  473. return this;
  474. }
  475. public bool HasD {
  476. get { return result.hasD; }
  477. }
  478. public int D {
  479. get { return result.D; }
  480. set { SetD(value); }
  481. }
  482. public Builder SetD(int value) {
  483. PrepareBuilder();
  484. result.hasD = true;
  485. result.d_ = value;
  486. return this;
  487. }
  488. public Builder ClearD() {
  489. PrepareBuilder();
  490. result.hasD = false;
  491. result.d_ = 0;
  492. return this;
  493. }
  494. public bool HasEn {
  495. get { return result.hasEn; }
  496. }
  497. public global::Google.ProtocolBuffers.TestProtos.ExtraEnum En {
  498. get { return result.En; }
  499. set { SetEn(value); }
  500. }
  501. public Builder SetEn(global::Google.ProtocolBuffers.TestProtos.ExtraEnum value) {
  502. PrepareBuilder();
  503. result.hasEn = true;
  504. result.en_ = value;
  505. return this;
  506. }
  507. public Builder ClearEn() {
  508. PrepareBuilder();
  509. result.hasEn = false;
  510. result.en_ = global::Google.ProtocolBuffers.TestProtos.ExtraEnum.DEFAULT;
  511. return this;
  512. }
  513. }
  514. static TestRequiredLite() {
  515. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.Descriptor, null);
  516. }
  517. }
  518. [global::System.SerializableAttribute()]
  519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  520. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  522. public sealed partial class TestInteropPersonLite : pb::ExtendableMessageLite<TestInteropPersonLite, TestInteropPersonLite.Builder> {
  523. private TestInteropPersonLite() { }
  524. private static readonly TestInteropPersonLite defaultInstance = new TestInteropPersonLite().MakeReadOnly();
  525. private static readonly string[] _testInteropPersonLiteFieldNames = new string[] { "addresses", "codes", "email", "id", "name", "phone" };
  526. private static readonly uint[] _testInteropPersonLiteFieldTags = new uint[] { 43, 82, 26, 16, 10, 34 };
  527. public static TestInteropPersonLite DefaultInstance {
  528. get { return defaultInstance; }
  529. }
  530. public override TestInteropPersonLite DefaultInstanceForType {
  531. get { return DefaultInstance; }
  532. }
  533. protected override TestInteropPersonLite ThisMessage {
  534. get { return this; }
  535. }
  536. #region Nested types
  537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  538. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  540. public static class Types {
  541. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  543. public enum PhoneType {
  544. MOBILE = 0,
  545. HOME = 1,
  546. WORK = 2,
  547. }
  548. [global::System.SerializableAttribute()]
  549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  550. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  552. public sealed partial class PhoneNumber : pb::GeneratedMessageLite<PhoneNumber, PhoneNumber.Builder> {
  553. private PhoneNumber() { }
  554. private static readonly PhoneNumber defaultInstance = new PhoneNumber().MakeReadOnly();
  555. private static readonly string[] _phoneNumberFieldNames = new string[] { "number", "type" };
  556. private static readonly uint[] _phoneNumberFieldTags = new uint[] { 10, 16 };
  557. public static PhoneNumber DefaultInstance {
  558. get { return defaultInstance; }
  559. }
  560. public override PhoneNumber DefaultInstanceForType {
  561. get { return DefaultInstance; }
  562. }
  563. protected override PhoneNumber ThisMessage {
  564. get { return this; }
  565. }
  566. public const int NumberFieldNumber = 1;
  567. private bool hasNumber;
  568. private string number_ = "";
  569. public bool HasNumber {
  570. get { return hasNumber; }
  571. }
  572. public string Number {
  573. get { return number_; }
  574. }
  575. public const int TypeFieldNumber = 2;
  576. private bool hasType;
  577. private global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType type_ = global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType.HOME;
  578. public bool HasType {
  579. get { return hasType; }
  580. }
  581. public global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType Type {
  582. get { return type_; }
  583. }
  584. public override bool IsInitialized {
  585. get {
  586. if (!hasNumber) return false;
  587. return true;
  588. }
  589. }
  590. public override void WriteTo(pb::ICodedOutputStream output) {
  591. int size = SerializedSize;
  592. string[] field_names = _phoneNumberFieldNames;
  593. if (hasNumber) {
  594. output.WriteString(1, field_names[0], Number);
  595. }
  596. if (hasType) {
  597. output.WriteEnum(2, field_names[1], (int) Type, Type);
  598. }
  599. }
  600. private int memoizedSerializedSize = -1;
  601. public override int SerializedSize {
  602. get {
  603. int size = memoizedSerializedSize;
  604. if (size != -1) return size;
  605. size = 0;
  606. if (hasNumber) {
  607. size += pb::CodedOutputStream.ComputeStringSize(1, Number);
  608. }
  609. if (hasType) {
  610. size += pb::CodedOutputStream.ComputeEnumSize(2, (int) Type);
  611. }
  612. memoizedSerializedSize = size;
  613. return size;
  614. }
  615. }
  616. #region Lite runtime methods
  617. public override int GetHashCode() {
  618. int hash = GetType().GetHashCode();
  619. if (hasNumber) hash ^= number_.GetHashCode();
  620. if (hasType) hash ^= type_.GetHashCode();
  621. return hash;
  622. }
  623. public override bool Equals(object obj) {
  624. PhoneNumber other = obj as PhoneNumber;
  625. if (other == null) return false;
  626. if (hasNumber != other.hasNumber || (hasNumber && !number_.Equals(other.number_))) return false;
  627. if (hasType != other.hasType || (hasType && !type_.Equals(other.type_))) return false;
  628. return true;
  629. }
  630. public override void PrintTo(global::System.IO.TextWriter writer) {
  631. PrintField("number", hasNumber, number_, writer);
  632. PrintField("type", hasType, type_, writer);
  633. }
  634. #endregion
  635. public static PhoneNumber ParseFrom(pb::ByteString data) {
  636. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  637. }
  638. public static PhoneNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  639. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  640. }
  641. public static PhoneNumber ParseFrom(byte[] data) {
  642. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  643. }
  644. public static PhoneNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  645. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  646. }
  647. public static PhoneNumber ParseFrom(global::System.IO.Stream input) {
  648. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  649. }
  650. public static PhoneNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  651. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  652. }
  653. public static PhoneNumber ParseDelimitedFrom(global::System.IO.Stream input) {
  654. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  655. }
  656. public static PhoneNumber ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  657. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  658. }
  659. public static PhoneNumber ParseFrom(pb::ICodedInputStream input) {
  660. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  661. }
  662. public static PhoneNumber ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  663. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  664. }
  665. private PhoneNumber MakeReadOnly() {
  666. return this;
  667. }
  668. public static Builder CreateBuilder() { return new Builder(); }
  669. public override Builder ToBuilder() { return CreateBuilder(this); }
  670. public override Builder CreateBuilderForType() { return new Builder(); }
  671. public static Builder CreateBuilder(PhoneNumber prototype) {
  672. return new Builder(prototype);
  673. }
  674. [global::System.SerializableAttribute()]
  675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  676. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  678. public sealed partial class Builder : pb::GeneratedBuilderLite<PhoneNumber, Builder> {
  679. protected override Builder ThisBuilder {
  680. get { return this; }
  681. }
  682. public Builder() {
  683. result = DefaultInstance;
  684. resultIsReadOnly = true;
  685. }
  686. internal Builder(PhoneNumber cloneFrom) {
  687. result = cloneFrom;
  688. resultIsReadOnly = true;
  689. }
  690. private bool resultIsReadOnly;
  691. private PhoneNumber result;
  692. private PhoneNumber PrepareBuilder() {
  693. if (resultIsReadOnly) {
  694. PhoneNumber original = result;
  695. result = new PhoneNumber();
  696. resultIsReadOnly = false;
  697. MergeFrom(original);
  698. }
  699. return result;
  700. }
  701. public override bool IsInitialized {
  702. get { return result.IsInitialized; }
  703. }
  704. protected override PhoneNumber MessageBeingBuilt {
  705. get { return PrepareBuilder(); }
  706. }
  707. public override Builder Clear() {
  708. result = DefaultInstance;
  709. resultIsReadOnly = true;
  710. return this;
  711. }
  712. public override Builder Clone() {
  713. if (resultIsReadOnly) {
  714. return new Builder(result);
  715. } else {
  716. return new Builder().MergeFrom(result);
  717. }
  718. }
  719. public override PhoneNumber DefaultInstanceForType {
  720. get { return global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.DefaultInstance; }
  721. }
  722. public override PhoneNumber BuildPartial() {
  723. if (resultIsReadOnly) {
  724. return result;
  725. }
  726. resultIsReadOnly = true;
  727. return result.MakeReadOnly();
  728. }
  729. public override Builder MergeFrom(pb::IMessageLite other) {
  730. if (other is PhoneNumber) {
  731. return MergeFrom((PhoneNumber) other);
  732. } else {
  733. base.MergeFrom(other);
  734. return this;
  735. }
  736. }
  737. public override Builder MergeFrom(PhoneNumber other) {
  738. if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.DefaultInstance) return this;
  739. PrepareBuilder();
  740. if (other.HasNumber) {
  741. Number = other.Number;
  742. }
  743. if (other.HasType) {
  744. Type = other.Type;
  745. }
  746. return this;
  747. }
  748. public override Builder MergeFrom(pb::ICodedInputStream input) {
  749. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  750. }
  751. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  752. PrepareBuilder();
  753. uint tag;
  754. string field_name;
  755. while (input.ReadTag(out tag, out field_name)) {
  756. if(tag == 0 && field_name != null) {
  757. int field_ordinal = global::System.Array.BinarySearch(_phoneNumberFieldNames, field_name, global::System.StringComparer.Ordinal);
  758. if(field_ordinal >= 0)
  759. tag = _phoneNumberFieldTags[field_ordinal];
  760. else {
  761. ParseUnknownField(input, extensionRegistry, tag, field_name);
  762. continue;
  763. }
  764. }
  765. switch (tag) {
  766. case 0: {
  767. throw pb::InvalidProtocolBufferException.InvalidTag();
  768. }
  769. default: {
  770. if (pb::WireFormat.IsEndGroupTag(tag)) {
  771. return this;
  772. }
  773. ParseUnknownField(input, extensionRegistry, tag, field_name);
  774. break;
  775. }
  776. case 10: {
  777. result.hasNumber = input.ReadString(ref result.number_);
  778. break;
  779. }
  780. case 16: {
  781. object unknown;
  782. if(input.ReadEnum(ref result.type_, out unknown)) {
  783. result.hasType = true;
  784. } else if(unknown is int) {
  785. }
  786. break;
  787. }
  788. }
  789. }
  790. return this;
  791. }
  792. public bool HasNumber {
  793. get { return result.hasNumber; }
  794. }
  795. public string Number {
  796. get { return result.Number; }
  797. set { SetNumber(value); }
  798. }
  799. public Builder SetNumber(string value) {
  800. pb::ThrowHelper.ThrowIfNull(value, "value");
  801. PrepareBuilder();
  802. result.hasNumber = true;
  803. result.number_ = value;
  804. return this;
  805. }
  806. public Builder ClearNumber() {
  807. PrepareBuilder();
  808. result.hasNumber = false;
  809. result.number_ = "";
  810. return this;
  811. }
  812. public bool HasType {
  813. get { return result.hasType; }
  814. }
  815. public global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType Type {
  816. get { return result.Type; }
  817. set { SetType(value); }
  818. }
  819. public Builder SetType(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType value) {
  820. PrepareBuilder();
  821. result.hasType = true;
  822. result.type_ = value;
  823. return this;
  824. }
  825. public Builder ClearType() {
  826. PrepareBuilder();
  827. result.hasType = false;
  828. result.type_ = global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType.HOME;
  829. return this;
  830. }
  831. }
  832. static PhoneNumber() {
  833. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.Descriptor, null);
  834. }
  835. }
  836. [global::System.SerializableAttribute()]
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  838. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  840. public sealed partial class Addresses : pb::GeneratedMessageLite<Addresses, Addresses.Builder> {
  841. private Addresses() { }
  842. private static readonly Addresses defaultInstance = new Addresses().MakeReadOnly();
  843. private static readonly string[] _addressesFieldNames = new string[] { "address", "address2", "city", "state", "zip" };
  844. private static readonly uint[] _addressesFieldTags = new uint[] { 10, 18, 26, 34, 45 };
  845. public static Addresses DefaultInstance {
  846. get { return defaultInstance; }
  847. }
  848. public override Addresses DefaultInstanceForType {
  849. get { return DefaultInstance; }
  850. }
  851. protected override Addresses ThisMessage {
  852. get { return this; }
  853. }
  854. public const int AddressFieldNumber = 1;
  855. private bool hasAddress;
  856. private string address_ = "";
  857. public bool HasAddress {
  858. get { return hasAddress; }
  859. }
  860. public string Address {
  861. get { return address_; }
  862. }
  863. public const int Address2FieldNumber = 2;
  864. private bool hasAddress2;
  865. private string address2_ = "";
  866. public bool HasAddress2 {
  867. get { return hasAddress2; }
  868. }
  869. public string Address2 {
  870. get { return address2_; }
  871. }
  872. public const int CityFieldNumber = 3;
  873. private bool hasCity;
  874. private string city_ = "";
  875. public bool HasCity {
  876. get { return hasCity; }
  877. }
  878. public string City {
  879. get { return city_; }
  880. }
  881. public const int StateFieldNumber = 4;
  882. private bool hasState;
  883. private string state_ = "";
  884. public bool HasState {
  885. get { return hasState; }
  886. }
  887. public string State {
  888. get { return state_; }
  889. }
  890. public const int ZipFieldNumber = 5;
  891. private bool hasZip;
  892. private uint zip_;
  893. public bool HasZip {
  894. get { return hasZip; }
  895. }
  896. [global::System.CLSCompliant(false)]
  897. public uint Zip {
  898. get { return zip_; }
  899. }
  900. public override bool IsInitialized {
  901. get {
  902. if (!hasAddress) return false;
  903. if (!hasCity) return false;
  904. if (!hasState) return false;
  905. if (!hasZip) return false;
  906. return true;
  907. }
  908. }
  909. public override void WriteTo(pb::ICodedOutputStream output) {
  910. int size = SerializedSize;
  911. string[] field_names = _addressesFieldNames;
  912. if (hasAddress) {
  913. output.WriteString(1, field_names[0], Address);
  914. }
  915. if (hasAddress2) {
  916. output.WriteString(2, field_names[1], Address2);
  917. }
  918. if (hasCity) {
  919. output.WriteString(3, field_names[2], City);
  920. }
  921. if (hasState) {
  922. output.WriteString(4, field_names[3], State);
  923. }
  924. if (hasZip) {
  925. output.WriteFixed32(5, field_names[4], Zip);
  926. }
  927. }
  928. private int memoizedSerializedSize = -1;
  929. public override int SerializedSize {
  930. get {
  931. int size = memoizedSerializedSize;
  932. if (size != -1) return size;
  933. size = 0;
  934. if (hasAddress) {
  935. size += pb::CodedOutputStream.ComputeStringSize(1, Address);
  936. }
  937. if (hasAddress2) {
  938. size += pb::CodedOutputStream.ComputeStringSize(2, Address2);
  939. }
  940. if (hasCity) {
  941. size += pb::CodedOutputStream.ComputeStringSize(3, City);
  942. }
  943. if (hasState) {
  944. size += pb::CodedOutputStream.ComputeStringSize(4, State);
  945. }
  946. if (hasZip) {
  947. size += pb::CodedOutputStream.ComputeFixed32Size(5, Zip);
  948. }
  949. memoizedSerializedSize = size;
  950. return size;
  951. }
  952. }
  953. #region Lite runtime methods
  954. public override int GetHashCode() {
  955. int hash = GetType().GetHashCode();
  956. if (hasAddress) hash ^= address_.GetHashCode();
  957. if (hasAddress2) hash ^= address2_.GetHashCode();
  958. if (hasCity) hash ^= city_.GetHashCode();
  959. if (hasState) hash ^= state_.GetHashCode();
  960. if (hasZip) hash ^= zip_.GetHashCode();
  961. return hash;
  962. }
  963. public override bool Equals(object obj) {
  964. Addresses other = obj as Addresses;
  965. if (other == null) return false;
  966. if (hasAddress != other.hasAddress || (hasAddress && !address_.Equals(other.address_))) return false;
  967. if (hasAddress2 != other.hasAddress2 || (hasAddress2 && !address2_.Equals(other.address2_))) return false;
  968. if (hasCity != other.hasCity || (hasCity && !city_.Equals(other.city_))) return false;
  969. if (hasState != other.hasState || (hasState && !state_.Equals(other.state_))) return false;
  970. if (hasZip != other.hasZip || (hasZip && !zip_.Equals(other.zip_))) return false;
  971. return true;
  972. }
  973. public override void PrintTo(global::System.IO.TextWriter writer) {
  974. PrintField("address", hasAddress, address_, writer);
  975. PrintField("address2", hasAddress2, address2_, writer);
  976. PrintField("city", hasCity, city_, writer);
  977. PrintField("state", hasState, state_, writer);
  978. PrintField("zip", hasZip, zip_, writer);
  979. }
  980. #endregion
  981. public static Addresses ParseFrom(pb::ByteString data) {
  982. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  983. }
  984. public static Addresses ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  985. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  986. }
  987. public static Addresses ParseFrom(byte[] data) {
  988. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  989. }
  990. public static Addresses ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  991. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  992. }
  993. public static Addresses ParseFrom(global::System.IO.Stream input) {
  994. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  995. }
  996. public static Addresses ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  997. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  998. }
  999. public static Addresses ParseDelimitedFrom(global::System.IO.Stream input) {
  1000. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1001. }
  1002. public static Addresses ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1003. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1004. }
  1005. public static Addresses ParseFrom(pb::ICodedInputStream input) {
  1006. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1007. }
  1008. public static Addresses ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1009. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1010. }
  1011. private Addresses MakeReadOnly() {
  1012. return this;
  1013. }
  1014. public static Builder CreateBuilder() { return new Builder(); }
  1015. public override Builder ToBuilder() { return CreateBuilder(this); }
  1016. public override Builder CreateBuilderForType() { return new Builder(); }
  1017. public static Builder CreateBuilder(Addresses prototype) {
  1018. return new Builder(prototype);
  1019. }
  1020. [global::System.SerializableAttribute()]
  1021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1022. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  1024. public sealed partial class Builder : pb::GeneratedBuilderLite<Addresses, Builder> {
  1025. protected override Builder ThisBuilder {
  1026. get { return this; }
  1027. }
  1028. public Builder() {
  1029. result = DefaultInstance;
  1030. resultIsReadOnly = true;
  1031. }
  1032. internal Builder(Addresses cloneFrom) {
  1033. result = cloneFrom;
  1034. resultIsReadOnly = true;
  1035. }
  1036. private bool resultIsReadOnly;
  1037. private Addresses result;
  1038. private Addresses PrepareBuilder() {
  1039. if (resultIsReadOnly) {
  1040. Addresses original = result;
  1041. result = new Addresses();
  1042. resultIsReadOnly = false;
  1043. MergeFrom(original);
  1044. }
  1045. return result;
  1046. }
  1047. public override bool IsInitialized {
  1048. get { return result.IsInitialized; }
  1049. }
  1050. protected override Addresses MessageBeingBuilt {
  1051. get { return PrepareBuilder(); }
  1052. }
  1053. public override Builder Clear() {
  1054. result = DefaultInstance;
  1055. resultIsReadOnly = true;
  1056. return this;
  1057. }
  1058. public override Builder Clone() {
  1059. if (resultIsReadOnly) {
  1060. return new Builder(result);
  1061. } else {
  1062. return new Builder().MergeFrom(result);
  1063. }
  1064. }
  1065. public override Addresses DefaultInstanceForType {
  1066. get { return global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.DefaultInstance; }
  1067. }
  1068. public override Addresses BuildPartial() {
  1069. if (resultIsReadOnly) {
  1070. return result;
  1071. }
  1072. resultIsReadOnly = true;
  1073. return result.MakeReadOnly();
  1074. }
  1075. public override Builder MergeFrom(pb::IMessageLite other) {
  1076. if (other is Addresses) {
  1077. return MergeFrom((Addresses) other);
  1078. } else {
  1079. base.MergeFrom(other);
  1080. return this;
  1081. }
  1082. }
  1083. public override Builder MergeFrom(Addresses other) {
  1084. if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.DefaultInstance) return this;
  1085. PrepareBuilder();
  1086. if (other.HasAddress) {
  1087. Address = other.Address;
  1088. }
  1089. if (other.HasAddress2) {
  1090. Address2 = other.Address2;
  1091. }
  1092. if (other.HasCity) {
  1093. City = other.City;
  1094. }
  1095. if (other.HasState) {
  1096. State = other.State;
  1097. }
  1098. if (other.HasZip) {
  1099. Zip = other.Zip;
  1100. }
  1101. return this;
  1102. }
  1103. public override Builder MergeFrom(pb::ICodedInputStream input) {
  1104. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1105. }
  1106. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1107. PrepareBuilder();
  1108. uint tag;
  1109. string field_name;
  1110. while (input.ReadTag(out tag, out field_name)) {
  1111. if(tag == 0 && field_name != null) {
  1112. int field_ordinal = global::System.Array.BinarySearch(_addressesFieldNames, field_name, global::System.StringComparer.Ordinal);
  1113. if(field_ordinal >= 0)
  1114. tag = _addressesFieldTags[field_ordinal];
  1115. else {
  1116. ParseUnknownField(input, extensionRegistry, tag, field_name);
  1117. continue;
  1118. }
  1119. }
  1120. switch (tag) {
  1121. case 0: {
  1122. throw pb::InvalidProtocolBufferException.InvalidTag();
  1123. }
  1124. default: {
  1125. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1126. return this;
  1127. }
  1128. ParseUnknownField(input, extensionRegistry, tag, field_name);
  1129. break;
  1130. }
  1131. case 10: {
  1132. result.hasAddress = input.ReadString(ref result.address_);
  1133. break;
  1134. }
  1135. case 18: {
  1136. result.hasAddress2 = input.ReadString(ref result.address2_);
  1137. break;
  1138. }
  1139. case 26: {
  1140. result.hasCity = input.ReadString(ref result.city_);
  1141. break;
  1142. }
  1143. case 34: {
  1144. result.hasState = input.ReadString(ref result.state_);
  1145. break;
  1146. }
  1147. case 45: {
  1148. result.hasZip = input.ReadFixed32(ref result.zip_);
  1149. break;
  1150. }
  1151. }
  1152. }
  1153. return this;
  1154. }
  1155. public bool HasAddress {
  1156. get { return result.hasAddress; }
  1157. }
  1158. public string Address {
  1159. get { return result.Address; }
  1160. set { SetAddress(value); }
  1161. }
  1162. public Builder SetAddress(string value) {
  1163. pb::ThrowHelper.ThrowIfNull(value, "value");
  1164. PrepareBuilder();
  1165. result.hasAddress = true;
  1166. result.address_ = value;
  1167. return this;
  1168. }
  1169. public Builder ClearAddress() {
  1170. PrepareBuilder();
  1171. result.hasAddress = false;
  1172. result.address_ = "";
  1173. return this;
  1174. }
  1175. public bool HasAddress2 {
  1176. get { return result.hasAddress2; }
  1177. }
  1178. public string Address2 {
  1179. get { return result.Address2; }
  1180. set { SetAddress2(value); }
  1181. }
  1182. public Builder SetAddress2(string value) {
  1183. pb::ThrowHelper.ThrowIfNull(value, "value");
  1184. PrepareBuilder();
  1185. result.hasAddress2 = true;
  1186. result.address2_ = value;
  1187. return this;
  1188. }
  1189. public Builder ClearAddress2() {
  1190. PrepareBuilder();
  1191. result.hasAddress2 = false;
  1192. result.address2_ = "";
  1193. return this;
  1194. }
  1195. public bool HasCity {
  1196. get { return result.hasCity; }
  1197. }
  1198. public string City {
  1199. get { return result.City; }
  1200. set { SetCity(value); }
  1201. }
  1202. public Builder SetCity(string value) {
  1203. pb::ThrowHelper.ThrowIfNull(value, "value");
  1204. PrepareBuilder();
  1205. result.hasCity = true;
  1206. result.city_ = value;
  1207. return this;
  1208. }
  1209. public Builder ClearCity() {
  1210. PrepareBuilder();
  1211. result.hasCity = false;
  1212. result.city_ = "";
  1213. return this;
  1214. }
  1215. public bool HasState {
  1216. get { return result.hasState; }
  1217. }
  1218. public string State {
  1219. get { return result.State; }
  1220. set { SetState(value); }
  1221. }
  1222. public Builder SetState(string value) {
  1223. pb::ThrowHelper.ThrowIfNull(value, "value");
  1224. PrepareBuilder();
  1225. result.hasState = true;
  1226. result.state_ = value;
  1227. return this;
  1228. }
  1229. public Builder ClearState() {
  1230. PrepareBuilder();
  1231. result.hasState = false;
  1232. result.state_ = "";
  1233. return this;
  1234. }
  1235. public bool HasZip {
  1236. get { return result.hasZip; }
  1237. }
  1238. [global::System.CLSCompliant(false)]
  1239. public uint Zip {
  1240. get { return result.Zip; }
  1241. set { SetZip(value); }
  1242. }
  1243. [global::System.CLSCompliant(false)]
  1244. public Builder SetZip(uint value) {
  1245. PrepareBuilder();
  1246. result.hasZip = true;
  1247. result.zip_ = value;
  1248. return this;
  1249. }
  1250. public Builder ClearZip() {
  1251. PrepareBuilder();
  1252. result.hasZip = false;
  1253. result.zip_ = 0;
  1254. return this;
  1255. }
  1256. }
  1257. static Addresses() {
  1258. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.Descriptor, null);
  1259. }
  1260. }
  1261. }
  1262. #endregion
  1263. public const int NameFieldNumber = 1;
  1264. private bool hasName;
  1265. private string name_ = "";
  1266. public bool HasName {
  1267. get { return hasName; }
  1268. }
  1269. public string Name {
  1270. get { return name_; }
  1271. }
  1272. public const int IdFieldNumber = 2;
  1273. private bool hasId;
  1274. private int id_;
  1275. public bool HasId {
  1276. get { return hasId; }
  1277. }
  1278. public int Id {
  1279. get { return id_; }
  1280. }
  1281. public const int EmailFieldNumber = 3;
  1282. private bool hasEmail;
  1283. private string email_ = "";
  1284. public bool HasEmail {
  1285. get { return hasEmail; }
  1286. }
  1287. public string Email {
  1288. get { return email_; }
  1289. }
  1290. public const int CodesFieldNumber = 10;
  1291. private int codesMemoizedSerializedSize;
  1292. private pbc::PopsicleList<int> codes_ = new pbc::PopsicleList<int>();
  1293. public scg::IList<int> CodesList {
  1294. get { return pbc::Lists.AsReadOnly(codes_); }
  1295. }
  1296. public int CodesCount {
  1297. get { return codes_.Count; }
  1298. }
  1299. public int GetCodes(int index) {
  1300. return codes_[index];
  1301. }
  1302. public const int PhoneFieldNumber = 4;
  1303. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber> phone_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber>();
  1304. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber> PhoneList {
  1305. get { return phone_; }
  1306. }
  1307. public int PhoneCount {
  1308. get { return phone_.Count; }
  1309. }
  1310. public global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber GetPhone(int index) {
  1311. return phone_[index];
  1312. }
  1313. public const int AddressesFieldNumber = 5;
  1314. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses> addresses_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses>();
  1315. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses> AddressesList {
  1316. get { return addresses_; }
  1317. }
  1318. public int AddressesCount {
  1319. get { return addresses_.Count; }
  1320. }
  1321. public global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses GetAddresses(int index) {
  1322. return addresses_[index];
  1323. }
  1324. public override bool IsInitialized {
  1325. get {
  1326. if (!hasName) return false;
  1327. if (!hasId) return false;
  1328. foreach (global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber element in PhoneList) {
  1329. if (!element.IsInitialized) return false;
  1330. }
  1331. if (!ExtensionsAreInitialized) return false;
  1332. return true;
  1333. }
  1334. }
  1335. public override void WriteTo(pb::ICodedOutputStream output) {
  1336. int size = SerializedSize;
  1337. string[] field_names = _testInteropPersonLiteFieldNames;
  1338. pb::ExtendableMessageLite<TestInteropPersonLite, TestInteropPersonLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  1339. if (hasName) {
  1340. output.WriteString(1, field_names[4], Name);
  1341. }
  1342. if (hasId) {
  1343. output.WriteInt32(2, field_names[3], Id);
  1344. }
  1345. if (hasEmail) {
  1346. output.WriteString(3, field_names[2], Email);
  1347. }
  1348. if (phone_.Count > 0) {
  1349. output.WriteMessageArray(4, field_names[5], phone_);
  1350. }
  1351. if (addresses_.Count > 0) {
  1352. output.WriteGroupArray(5, field_names[0], addresses_);
  1353. }
  1354. if (codes_.Count > 0) {
  1355. output.WritePackedInt32Array(10, field_names[1], codesMemoizedSerializedSize, codes_);
  1356. }
  1357. extensionWriter.WriteUntil(200, output);
  1358. }
  1359. private int memoizedSerializedSize = -1;
  1360. public override int SerializedSize {
  1361. get {
  1362. int size = memoizedSerializedSize;
  1363. if (size != -1) return size;
  1364. size = 0;
  1365. if (hasName) {
  1366. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  1367. }
  1368. if (hasId) {
  1369. size += pb::CodedOutputStream.ComputeInt32Size(2, Id);
  1370. }
  1371. if (hasEmail) {
  1372. size += pb::CodedOutputStream.ComputeStringSize(3, Email);
  1373. }
  1374. {
  1375. int dataSize = 0;
  1376. foreach (int element in CodesList) {
  1377. dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
  1378. }
  1379. size += dataSize;
  1380. if (codes_.Count != 0) {
  1381. size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  1382. }
  1383. codesMemoizedSerializedSize = dataSize;
  1384. }
  1385. foreach (global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber element in PhoneList) {
  1386. size += pb::CodedOutputStream.ComputeMessageSize(4, element);
  1387. }
  1388. foreach (global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses element in AddressesList) {
  1389. size += pb::CodedOutputStream.ComputeGroupSize(5, element);
  1390. }
  1391. size += ExtensionsSerializedSize;
  1392. memoizedSerializedSize = size;
  1393. return size;
  1394. }
  1395. }
  1396. #region Lite runtime methods
  1397. public override int GetHashCode() {
  1398. int hash = GetType().GetHashCode();
  1399. if (hasName) hash ^= name_.GetHashCode();
  1400. if (hasId) hash ^= id_.GetHashCode();
  1401. if (hasEmail) hash ^= email_.GetHashCode();
  1402. foreach(int i in codes_)
  1403. hash ^= i.GetHashCode();
  1404. foreach(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber i in phone_)
  1405. hash ^= i.GetHashCode();
  1406. foreach(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses i in addresses_)
  1407. hash ^= i.GetHashCode();
  1408. hash ^= base.GetHashCode();
  1409. return hash;
  1410. }
  1411. public override bool Equals(object obj) {
  1412. TestInteropPersonLite other = obj as TestInteropPersonLite;
  1413. if (other == null) return false;
  1414. if (hasName != other.hasName || (hasName && !name_.Equals(other.name_))) return false;
  1415. if (hasId != other.hasId || (hasId && !id_.Equals(other.id_))) return false;
  1416. if (hasEmail != other.hasEmail || (hasEmail && !email_.Equals(other.email_))) return false;
  1417. if(codes_.Count != other.codes_.Count) return false;
  1418. for(int ix=0; ix < codes_.Count; ix++)
  1419. if(!codes_[ix].Equals(other.codes_[ix])) return false;
  1420. if(phone_.Count != other.phone_.Count) return false;
  1421. for(int ix=0; ix < phone_.Count; ix++)
  1422. if(!phone_[ix].Equals(other.phone_[ix])) return false;
  1423. if(addresses_.Count != other.addresses_.Count) return false;
  1424. for(int ix=0; ix < addresses_.Count; ix++)
  1425. if(!addresses_[ix].Equals(other.addresses_[ix])) return false;
  1426. if (!base.Equals(other)) return false;
  1427. return true;
  1428. }
  1429. public override void PrintTo(global::System.IO.TextWriter writer) {
  1430. PrintField("name", hasName, name_, writer);
  1431. PrintField("id", hasId, id_, writer);
  1432. PrintField("email", hasEmail, email_, writer);
  1433. PrintField("phone", phone_, writer);
  1434. PrintField("Addresses", addresses_, writer);
  1435. PrintField("codes", codes_, writer);
  1436. base.PrintTo(writer);
  1437. }
  1438. #endregion
  1439. public static TestInteropPersonLite ParseFrom(pb::ByteString data) {
  1440. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1441. }
  1442. public static TestInteropPersonLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1443. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1444. }
  1445. public static TestInteropPersonLite ParseFrom(byte[] data) {
  1446. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1447. }
  1448. public static TestInteropPersonLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1449. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1450. }
  1451. public static TestInteropPersonLite ParseFrom(global::System.IO.Stream input) {
  1452. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1453. }
  1454. public static TestInteropPersonLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1455. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1456. }
  1457. public static TestInteropPersonLite ParseDelimitedFrom(global::System.IO.Stream input) {
  1458. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1459. }
  1460. public static TestInteropPersonLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1461. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1462. }
  1463. public static TestInteropPersonLite ParseFrom(pb::ICodedInputStream input) {
  1464. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1465. }
  1466. public static TestInteropPersonLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1467. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1468. }
  1469. private TestInteropPersonLite MakeReadOnly() {
  1470. codes_.MakeReadOnly();
  1471. phone_.MakeReadOnly();
  1472. addresses_.MakeReadOnly();
  1473. return this;
  1474. }
  1475. public static Builder CreateBuilder() { return new Builder(); }
  1476. public override Builder ToBuilder() { return CreateBuilder(this); }
  1477. public override Builder CreateBuilderForType() { return new Builder(); }
  1478. public static Builder CreateBuilder(TestInteropPersonLite prototype) {
  1479. return new Builder(prototype);
  1480. }
  1481. [global::System.SerializableAttribute()]
  1482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1483. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  1485. public sealed partial class Builder : pb::ExtendableBuilderLite<TestInteropPersonLite, Builder> {
  1486. protected override Builder ThisBuilder {
  1487. get { return this; }
  1488. }
  1489. public Builder() {
  1490. result = DefaultInstance;
  1491. resultIsReadOnly = true;
  1492. }
  1493. internal Builder(TestInteropPersonLite cloneFrom) {
  1494. result = cloneFrom;
  1495. resultIsReadOnly = true;
  1496. }
  1497. private bool resultIsReadOnly;
  1498. private TestInteropPersonLite result;
  1499. private TestInteropPersonLite PrepareBuilder() {
  1500. if (resultIsReadOnly) {
  1501. TestInteropPersonLite original = result;
  1502. result = new TestInteropPersonLite();
  1503. resultIsReadOnly = false;
  1504. MergeFrom(original);
  1505. }
  1506. return result;
  1507. }
  1508. public override bool IsInitialized {
  1509. get { return result.IsInitialized; }
  1510. }
  1511. protected override TestInteropPersonLite MessageBeingBuilt {
  1512. get { return PrepareBuilder(); }
  1513. }
  1514. public override Builder Clear() {
  1515. result = DefaultInstance;
  1516. resultIsReadOnly = true;
  1517. return this;
  1518. }
  1519. public override Builder Clone() {
  1520. if (resultIsReadOnly) {
  1521. return new Builder(result);
  1522. } else {
  1523. return new Builder().MergeFrom(result);
  1524. }
  1525. }
  1526. public override TestInteropPersonLite DefaultInstanceForType {
  1527. get { return global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.DefaultInstance; }
  1528. }
  1529. public override TestInteropPersonLite BuildPartial() {
  1530. if (resultIsReadOnly) {
  1531. return result;
  1532. }
  1533. resultIsReadOnly = true;
  1534. return result.MakeReadOnly();
  1535. }
  1536. public override Builder MergeFrom(pb::IMessageLite other) {
  1537. if (other is TestInteropPersonLite) {
  1538. return MergeFrom((TestInteropPersonLite) other);
  1539. } else {
  1540. base.MergeFrom(other);
  1541. return this;
  1542. }
  1543. }
  1544. public override Builder MergeFrom(TestInteropPersonLite other) {
  1545. if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.DefaultInstance) return this;
  1546. PrepareBuilder();
  1547. if (other.HasName) {
  1548. Name = other.Name;
  1549. }
  1550. if (other.HasId) {
  1551. Id = other.Id;
  1552. }
  1553. if (other.HasEmail) {
  1554. Email = other.Email;
  1555. }
  1556. if (other.codes_.Count != 0) {
  1557. result.codes_.Add(other.codes_);
  1558. }
  1559. if (other.phone_.Count != 0) {
  1560. result.phone_.Add(other.phone_);
  1561. }
  1562. if (other.addresses_.Count != 0) {
  1563. result.addresses_.Add(other.addresses_);
  1564. }
  1565. this.MergeExtensionFields(other);
  1566. return this;
  1567. }
  1568. public override Builder MergeFrom(pb::ICodedInputStream input) {
  1569. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1570. }
  1571. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1572. PrepareBuilder();
  1573. uint tag;
  1574. string field_name;
  1575. while (input.ReadTag(out tag, out field_name)) {
  1576. if(tag == 0 && field_name != null) {
  1577. int field_ordinal = global::System.Array.BinarySearch(_testInteropPersonLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
  1578. if(field_ordinal >= 0)
  1579. tag = _testInteropPersonLiteFieldTags[field_ordinal];
  1580. else {
  1581. ParseUnknownField(input, extensionRegistry, tag, field_name);
  1582. continue;
  1583. }
  1584. }
  1585. switch (tag) {
  1586. case 0: {
  1587. throw pb::InvalidProtocolBufferException.InvalidTag();
  1588. }
  1589. default: {
  1590. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1591. return this;
  1592. }
  1593. ParseUnknownField(input, extensionRegistry, tag, field_name);
  1594. break;
  1595. }
  1596. case 10: {
  1597. result.hasName = input.ReadString(ref result.name_);
  1598. break;
  1599. }
  1600. case 16: {
  1601. result.hasId = input.ReadInt32(ref result.id_);
  1602. break;
  1603. }
  1604. case 26: {
  1605. result.hasEmail = input.ReadString(ref result.email_);
  1606. break;
  1607. }
  1608. case 34: {
  1609. input.ReadMessageArray(tag, field_name, result.phone_, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.DefaultInstance, extensionRegistry);
  1610. break;
  1611. }
  1612. case 43: {
  1613. input.ReadGroupArray(tag, field_name, result.addresses_, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.DefaultInstance, extensionRegistry);
  1614. break;
  1615. }
  1616. case 82:
  1617. case 80: {
  1618. input.ReadInt32Array(tag, field_name, result.codes_);
  1619. break;
  1620. }
  1621. }
  1622. }
  1623. return this;
  1624. }
  1625. public bool HasName {
  1626. get { return result.hasName; }
  1627. }
  1628. public string Name {
  1629. get { return result.Name; }
  1630. set { SetName(value); }
  1631. }
  1632. public Builder SetName(string value) {
  1633. pb::ThrowHelper.ThrowIfNull(value, "value");
  1634. PrepareBuilder();
  1635. result.hasName = true;
  1636. result.name_ = value;
  1637. return this;
  1638. }
  1639. public Builder ClearName() {
  1640. PrepareBuilder();
  1641. result.hasName = false;
  1642. result.name_ = "";
  1643. return this;
  1644. }
  1645. public bool HasId {
  1646. get { return result.hasId; }
  1647. }
  1648. public int Id {
  1649. get { return result.Id; }
  1650. set { SetId(value); }
  1651. }
  1652. public Builder SetId(int value) {
  1653. PrepareBuilder();
  1654. result.hasId = true;
  1655. result.id_ = value;
  1656. return this;
  1657. }
  1658. public Builder ClearId() {
  1659. PrepareBuilder();
  1660. result.hasId = false;
  1661. result.id_ = 0;
  1662. return this;
  1663. }
  1664. public bool HasEmail {
  1665. get { return result.hasEmail; }
  1666. }
  1667. public string Email {
  1668. get { return result.Email; }
  1669. set { SetEmail(value); }
  1670. }
  1671. public Builder SetEmail(string value) {
  1672. pb::ThrowHelper.ThrowIfNull(value, "value");
  1673. PrepareBuilder();
  1674. result.hasEmail = true;
  1675. result.email_ = value;
  1676. return this;
  1677. }
  1678. public Builder ClearEmail() {
  1679. PrepareBuilder();
  1680. result.hasEmail = false;
  1681. result.email_ = "";
  1682. return this;
  1683. }
  1684. public pbc::IPopsicleList<int> CodesList {
  1685. get { return PrepareBuilder().codes_; }
  1686. }
  1687. public int CodesCount {
  1688. get { return result.CodesCount; }
  1689. }
  1690. public int GetCodes(int index) {
  1691. return result.GetCodes(index);
  1692. }
  1693. public Builder SetCodes(int index, int value) {
  1694. PrepareBuilder();
  1695. result.codes_[index] = value;
  1696. return this;
  1697. }
  1698. public Builder AddCodes(int value) {
  1699. PrepareBuilder();
  1700. result.codes_.Add(value);
  1701. return this;
  1702. }
  1703. public Builder AddRangeCodes(scg::IEnumerable<int> values) {
  1704. PrepareBuilder();
  1705. result.codes_.Add(values);
  1706. return this;
  1707. }
  1708. public Builder ClearCodes() {
  1709. PrepareBuilder();
  1710. result.codes_.Clear();
  1711. return this;
  1712. }
  1713. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber> PhoneList {
  1714. get { return PrepareBuilder().phone_; }
  1715. }
  1716. public int PhoneCount {
  1717. get { return result.PhoneCount; }
  1718. }
  1719. public global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber GetPhone(int index) {
  1720. return result.GetPhone(index);
  1721. }
  1722. public Builder SetPhone(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber value) {
  1723. pb::ThrowHelper.ThrowIfNull(value, "value");
  1724. PrepareBuilder();
  1725. result.phone_[index] = value;
  1726. return this;
  1727. }
  1728. public Builder SetPhone(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.Builder builderForValue) {
  1729. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1730. PrepareBuilder();
  1731. result.phone_[index] = builderForValue.Build();
  1732. return this;
  1733. }
  1734. public Builder AddPhone(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber value) {
  1735. pb::ThrowHelper.ThrowIfNull(value, "value");
  1736. PrepareBuilder();
  1737. result.phone_.Add(value);
  1738. return this;
  1739. }
  1740. public Builder AddPhone(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.Builder builderForValue) {
  1741. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1742. PrepareBuilder();
  1743. result.phone_.Add(builderForValue.Build());
  1744. return this;
  1745. }
  1746. public Builder AddRangePhone(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber> values) {
  1747. PrepareBuilder();
  1748. result.phone_.Add(values);
  1749. return this;
  1750. }
  1751. public Builder ClearPhone() {
  1752. PrepareBuilder();
  1753. result.phone_.Clear();
  1754. return this;
  1755. }
  1756. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses> AddressesList {
  1757. get { return PrepareBuilder().addresses_; }
  1758. }
  1759. public int AddressesCount {
  1760. get { return result.AddressesCount; }
  1761. }
  1762. public global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses GetAddresses(int index) {
  1763. return result.GetAddresses(index);
  1764. }
  1765. public Builder SetAddresses(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses value) {
  1766. pb::ThrowHelper.ThrowIfNull(value, "value");
  1767. PrepareBuilder();
  1768. result.addresses_[index] = value;
  1769. return this;
  1770. }
  1771. public Builder SetAddresses(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.Builder builderForValue) {
  1772. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1773. PrepareBuilder();
  1774. result.addresses_[index] = builderForValue.Build();
  1775. return this;
  1776. }
  1777. public Builder AddAddresses(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses value) {
  1778. pb::ThrowHelper.ThrowIfNull(value, "value");
  1779. PrepareBuilder();
  1780. result.addresses_.Add(value);
  1781. return this;
  1782. }
  1783. public Builder AddAddresses(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.Builder builderForValue) {
  1784. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1785. PrepareBuilder();
  1786. result.addresses_.Add(builderForValue.Build());
  1787. return this;
  1788. }
  1789. public Builder AddRangeAddresses(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses> values) {
  1790. PrepareBuilder();
  1791. result.addresses_.Add(values);
  1792. return this;
  1793. }
  1794. public Builder ClearAddresses() {
  1795. PrepareBuilder();
  1796. result.addresses_.Clear();
  1797. return this;
  1798. }
  1799. }
  1800. static TestInteropPersonLite() {
  1801. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.Descriptor, null);
  1802. }
  1803. }
  1804. [global::System.SerializableAttribute()]
  1805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1806. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  1808. public sealed partial class TestInteropEmployeeIdLite : pb::GeneratedMessageLite<TestInteropEmployeeIdLite, TestInteropEmployeeIdLite.Builder> {
  1809. private TestInteropEmployeeIdLite() { }
  1810. private static readonly TestInteropEmployeeIdLite defaultInstance = new TestInteropEmployeeIdLite().MakeReadOnly();
  1811. private static readonly string[] _testInteropEmployeeIdLiteFieldNames = new string[] { "number" };
  1812. private static readonly uint[] _testInteropEmployeeIdLiteFieldTags = new uint[] { 10 };
  1813. public static TestInteropEmployeeIdLite DefaultInstance {
  1814. get { return defaultInstance; }
  1815. }
  1816. public override TestInteropEmployeeIdLite DefaultInstanceForType {
  1817. get { return DefaultInstance; }
  1818. }
  1819. protected override TestInteropEmployeeIdLite ThisMessage {
  1820. get { return this; }
  1821. }
  1822. public const int NumberFieldNumber = 1;
  1823. private bool hasNumber;
  1824. private string number_ = "";
  1825. public bool HasNumber {
  1826. get { return hasNumber; }
  1827. }
  1828. public string Number {
  1829. get { return number_; }
  1830. }
  1831. public override bool IsInitialized {
  1832. get {
  1833. if (!hasNumber) return false;
  1834. return true;
  1835. }
  1836. }
  1837. public override void WriteTo(pb::ICodedOutputStream output) {
  1838. int size = SerializedSize;
  1839. string[] field_names = _testInteropEmployeeIdLiteFieldNames;
  1840. if (hasNumber) {
  1841. output.WriteString(1, field_names[0], Number);
  1842. }
  1843. }
  1844. private int memoizedSerializedSize = -1;
  1845. public override int SerializedSize {
  1846. get {
  1847. int size = memoizedSerializedSize;
  1848. if (size != -1) return size;
  1849. size = 0;
  1850. if (hasNumber) {
  1851. size += pb::CodedOutputStream.ComputeStringSize(1, Number);
  1852. }
  1853. memoizedSerializedSize = size;
  1854. return size;
  1855. }
  1856. }
  1857. #region Lite runtime methods
  1858. public override int GetHashCode() {
  1859. int hash = GetType().GetHashCode();
  1860. if (hasNumber) hash ^= number_.GetHashCode();
  1861. return hash;
  1862. }
  1863. public override bool Equals(object obj) {
  1864. TestInteropEmployeeIdLite other = obj as TestInteropEmployeeIdLite;
  1865. if (other == null) return false;
  1866. if (hasNumber != other.hasNumber || (hasNumber && !number_.Equals(other.number_))) return false;
  1867. return true;
  1868. }
  1869. public override void PrintTo(global::System.IO.TextWriter writer) {
  1870. PrintField("number", hasNumber, number_, writer);
  1871. }
  1872. #endregion
  1873. public static TestInteropEmployeeIdLite ParseFrom(pb::ByteString data) {
  1874. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1875. }
  1876. public static TestInteropEmployeeIdLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1877. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1878. }
  1879. public static TestInteropEmployeeIdLite ParseFrom(byte[] data) {
  1880. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1881. }
  1882. public static TestInteropEmployeeIdLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1883. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1884. }
  1885. public static TestInteropEmployeeIdLite ParseFrom(global::System.IO.Stream input) {
  1886. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1887. }
  1888. public static TestInteropEmployeeIdLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1889. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1890. }
  1891. public static TestInteropEmployeeIdLite ParseDelimitedFrom(global::System.IO.Stream input) {
  1892. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1893. }
  1894. public static TestInteropEmployeeIdLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1895. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1896. }
  1897. public static TestInteropEmployeeIdLite ParseFrom(pb::ICodedInputStream input) {
  1898. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1899. }
  1900. public static TestInteropEmployeeIdLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1901. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1902. }
  1903. private TestInteropEmployeeIdLite MakeReadOnly() {
  1904. return this;
  1905. }
  1906. public static Builder CreateBuilder() { return new Builder(); }
  1907. public override Builder ToBuilder() { return CreateBuilder(this); }
  1908. public override Builder CreateBuilderForType() { return new Builder(); }
  1909. public static Builder CreateBuilder(TestInteropEmployeeIdLite prototype) {
  1910. return new Builder(prototype);
  1911. }
  1912. [global::System.SerializableAttribute()]
  1913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1914. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  1916. public sealed partial class Builder : pb::GeneratedBuilderLite<TestInteropEmployeeIdLite, Builder> {
  1917. protected override Builder ThisBuilder {
  1918. get { return this; }
  1919. }
  1920. public Builder() {
  1921. result = DefaultInstance;
  1922. resultIsReadOnly = true;
  1923. }
  1924. internal Builder(TestInteropEmployeeIdLite cloneFrom) {
  1925. result = cloneFrom;
  1926. resultIsReadOnly = true;
  1927. }
  1928. private bool resultIsReadOnly;
  1929. private TestInteropEmployeeIdLite result;
  1930. private TestInteropEmployeeIdLite PrepareBuilder() {
  1931. if (resultIsReadOnly) {
  1932. TestInteropEmployeeIdLite original = result;
  1933. result = new TestInteropEmployeeIdLite();
  1934. resultIsReadOnly = false;
  1935. MergeFrom(original);
  1936. }
  1937. return result;
  1938. }
  1939. public override bool IsInitialized {
  1940. get { return result.IsInitialized; }
  1941. }
  1942. protected override TestInteropEmployeeIdLite MessageBeingBuilt {
  1943. get { return PrepareBuilder(); }
  1944. }
  1945. public override Builder Clear() {
  1946. result = DefaultInstance;
  1947. resultIsReadOnly = true;
  1948. return this;
  1949. }
  1950. public override Builder Clone() {
  1951. if (resultIsReadOnly) {
  1952. return new Builder(result);
  1953. } else {
  1954. return new Builder().MergeFrom(result);
  1955. }
  1956. }
  1957. public override TestInteropEmployeeIdLite DefaultInstanceForType {
  1958. get { return global::Google.ProtocolBuffers.TestProtos.TestInteropEmployeeIdLite.DefaultInstance; }
  1959. }
  1960. public override TestInteropEmployeeIdLite BuildPartial() {
  1961. if (resultIsReadOnly) {
  1962. return result;
  1963. }
  1964. resultIsReadOnly = true;
  1965. return result.MakeReadOnly();
  1966. }
  1967. public override Builder MergeFrom(pb::IMessageLite other) {
  1968. if (other is TestInteropEmployeeIdLite) {
  1969. return MergeFrom((TestInteropEmployeeIdLite) other);
  1970. } else {
  1971. base.MergeFrom(other);
  1972. return this;
  1973. }
  1974. }
  1975. public override Builder MergeFrom(TestInteropEmployeeIdLite other) {
  1976. if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropEmployeeIdLite.DefaultInstance) return this;
  1977. PrepareBuilder();
  1978. if (other.HasNumber) {
  1979. Number = other.Number;
  1980. }
  1981. return this;
  1982. }
  1983. public override Builder MergeFrom(pb::ICodedInputStream input) {
  1984. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1985. }
  1986. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1987. PrepareBuilder();
  1988. uint tag;
  1989. string field_name;
  1990. while (input.ReadTag(out tag, out field_name)) {
  1991. if(tag == 0 && field_name != null) {
  1992. int field_ordinal = global::System.Array.BinarySearch(_testInteropEmployeeIdLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
  1993. if(field_ordinal >= 0)
  1994. tag = _testInteropEmployeeIdLiteFieldTags[field_ordinal];
  1995. else {
  1996. ParseUnknownField(input, extensionRegistry, tag, field_name);
  1997. continue;
  1998. }
  1999. }
  2000. switch (tag) {
  2001. case 0: {
  2002. throw pb::InvalidProtocolBufferException.InvalidTag();
  2003. }
  2004. default: {
  2005. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2006. return this;
  2007. }
  2008. ParseUnknownField(input, extensionRegistry, tag, field_name);
  2009. break;
  2010. }
  2011. case 10: {
  2012. result.hasNumber = input.ReadString(ref result.number_);
  2013. break;
  2014. }
  2015. }
  2016. }
  2017. return this;
  2018. }
  2019. public bool HasNumber {
  2020. get { return result.hasNumber; }
  2021. }
  2022. public string Number {
  2023. get { return result.Number; }
  2024. set { SetNumber(value); }
  2025. }
  2026. public Builder SetNumber(string value) {
  2027. pb::ThrowHelper.ThrowIfNull(value, "value");
  2028. PrepareBuilder();
  2029. result.hasNumber = true;
  2030. result.number_ = value;
  2031. return this;
  2032. }
  2033. public Builder ClearNumber() {
  2034. PrepareBuilder();
  2035. result.hasNumber = false;
  2036. result.number_ = "";
  2037. return this;
  2038. }
  2039. }
  2040. static TestInteropEmployeeIdLite() {
  2041. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.Descriptor, null);
  2042. }
  2043. }
  2044. [global::System.SerializableAttribute()]
  2045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2046. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  2047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  2048. public sealed partial class TestUnpackedExtensionsLite : pb::ExtendableMessageLite<TestUnpackedExtensionsLite, TestUnpackedExtensionsLite.Builder> {
  2049. private TestUnpackedExtensionsLite() { }
  2050. private static readonly TestUnpackedExtensionsLite defaultInstance = new TestUnpackedExtensionsLite().MakeReadOnly();
  2051. private static readonly string[] _testUnpackedExtensionsLiteFieldNames = new string[] { };
  2052. private static readonly uint[] _testUnpackedExtensionsLiteFieldTags = new uint[] { };
  2053. public static TestUnpackedExtensionsLite DefaultInstance {
  2054. get { return defaultInstance; }
  2055. }
  2056. public override TestUnpackedExtensionsLite DefaultInstanceForType {
  2057. get { return DefaultInstance; }
  2058. }
  2059. protected override TestUnpackedExtensionsLite ThisMessage {
  2060. get { return this; }
  2061. }
  2062. public override bool IsInitialized {
  2063. get {
  2064. if (!ExtensionsAreInitialized) return false;
  2065. return true;
  2066. }
  2067. }
  2068. public override void WriteTo(pb::ICodedOutputStream output) {
  2069. int size = SerializedSize;
  2070. string[] field_names = _testUnpackedExtensionsLiteFieldNames;
  2071. pb::ExtendableMessageLite<TestUnpackedExtensionsLite, TestUnpackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  2072. extensionWriter.WriteUntil(536870912, output);
  2073. }
  2074. private int memoizedSerializedSize = -1;
  2075. public override int SerializedSize {
  2076. get {
  2077. int size = memoizedSerializedSize;
  2078. if (size != -1) return size;
  2079. size = 0;
  2080. size += ExtensionsSerializedSize;
  2081. memoizedSerializedSize = size;
  2082. return size;
  2083. }
  2084. }
  2085. #region Lite runtime methods
  2086. public override int GetHashCode() {
  2087. int hash = GetType().GetHashCode();
  2088. hash ^= base.GetHashCode();
  2089. return hash;
  2090. }
  2091. public override bool Equals(object obj) {
  2092. TestUnpackedExtensionsLite other = obj as TestUnpackedExtensionsLite;
  2093. if (other == null) return false;
  2094. if (!base.Equals(other)) return false;
  2095. return true;
  2096. }
  2097. public override void PrintTo(global::System.IO.TextWriter writer) {
  2098. base.PrintTo(writer);
  2099. }
  2100. #endregion
  2101. public static TestUnpackedExtensionsLite ParseFrom(pb::ByteString data) {
  2102. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2103. }
  2104. public static TestUnpackedExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  2105. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2106. }
  2107. public static TestUnpackedExtensionsLite ParseFrom(byte[] data) {
  2108. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2109. }
  2110. public static TestUnpackedExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  2111. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2112. }
  2113. public static TestUnpackedExtensionsLite ParseFrom(global::System.IO.Stream input) {
  2114. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2115. }
  2116. public static TestUnpackedExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2117. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2118. }
  2119. public static TestUnpackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
  2120. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  2121. }
  2122. public static TestUnpackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2123. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  2124. }
  2125. public static TestUnpackedExtensionsLite ParseFrom(pb::ICodedInputStream input) {
  2126. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2127. }
  2128. public static TestUnpackedExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2129. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2130. }
  2131. private TestUnpackedExtensionsLite MakeReadOnly() {
  2132. return this;
  2133. }
  2134. public static Builder CreateBuilder() { return new Builder(); }
  2135. public override Builder ToBuilder() { return CreateBuilder(this); }
  2136. public override Builder CreateBuilderForType() { return new Builder(); }
  2137. public static Builder CreateBuilder(TestUnpackedExtensionsLite prototype) {
  2138. return new Builder(prototype);
  2139. }
  2140. [global::System.SerializableAttribute()]
  2141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2142. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  2143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  2144. public sealed partial class Builder : pb::ExtendableBuilderLite<TestUnpackedExtensionsLite, Builder> {
  2145. protected override Builder ThisBuilder {
  2146. get { return this; }
  2147. }
  2148. public Builder() {
  2149. result = DefaultInstance;
  2150. resultIsReadOnly = true;
  2151. }
  2152. internal Builder(TestUnpackedExtensionsLite cloneFrom) {
  2153. result = cloneFrom;
  2154. resultIsReadOnly = true;
  2155. }
  2156. private bool resultIsReadOnly;
  2157. private TestUnpackedExtensionsLite result;
  2158. private TestUnpackedExtensionsLite PrepareBuilder() {
  2159. if (resultIsReadOnly) {
  2160. TestUnpackedExtensionsLite original = result;
  2161. result = new TestUnpackedExtensionsLite();
  2162. resultIsReadOnly = false;
  2163. MergeFrom(original);
  2164. }
  2165. return result;
  2166. }
  2167. public override bool IsInitialized {
  2168. get { return result.IsInitialized; }
  2169. }
  2170. protected override TestUnpackedExtensionsLite MessageBeingBuilt {
  2171. get { return PrepareBuilder(); }
  2172. }
  2173. public override Builder Clear() {
  2174. result = DefaultInstance;
  2175. resultIsReadOnly = true;
  2176. return this;
  2177. }
  2178. public override Builder Clone() {
  2179. if (resultIsReadOnly) {
  2180. return new Builder(result);
  2181. } else {
  2182. return new Builder().MergeFrom(result);
  2183. }
  2184. }
  2185. public override TestUnpackedExtensionsLite DefaultInstanceForType {
  2186. get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance; }
  2187. }
  2188. public override TestUnpackedExtensionsLite BuildPartial() {
  2189. if (resultIsReadOnly) {
  2190. return result;
  2191. }
  2192. resultIsReadOnly = true;
  2193. return result.MakeReadOnly();
  2194. }
  2195. public override Builder MergeFrom(pb::IMessageLite other) {
  2196. if (other is TestUnpackedExtensionsLite) {
  2197. return MergeFrom((TestUnpackedExtensionsLite) other);
  2198. } else {
  2199. base.MergeFrom(other);
  2200. return this;
  2201. }
  2202. }
  2203. public override Builder MergeFrom(TestUnpackedExtensionsLite other) {
  2204. if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance) return this;
  2205. PrepareBuilder();
  2206. this.MergeExtensionFields(other);
  2207. return this;
  2208. }
  2209. public override Builder MergeFrom(pb::ICodedInputStream input) {
  2210. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  2211. }
  2212. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2213. PrepareBuilder();
  2214. uint tag;
  2215. string field_name;
  2216. while (input.ReadTag(out tag, out field_name)) {
  2217. if(tag == 0 && field_name != null) {
  2218. int field_ordinal = global::System.Array.BinarySearch(_testUnpackedExtensionsLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
  2219. if(field_ordinal >= 0)
  2220. tag = _testUnpackedExtensionsLiteFieldTags[field_ordinal];
  2221. else {
  2222. ParseUnknownField(input, extensionRegistry, tag, field_name);
  2223. continue;
  2224. }
  2225. }
  2226. switch (tag) {
  2227. case 0: {
  2228. throw pb::InvalidProtocolBufferException.InvalidTag();
  2229. }
  2230. default: {
  2231. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2232. return this;
  2233. }
  2234. ParseUnknownField(input, extensionRegistry, tag, field_name);
  2235. break;
  2236. }
  2237. }
  2238. }
  2239. return this;
  2240. }
  2241. }
  2242. static TestUnpackedExtensionsLite() {
  2243. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.Descriptor, null);
  2244. }
  2245. }
  2246. [global::System.SerializableAttribute()]
  2247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2248. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  2249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  2250. public sealed partial class TestUnpackedTypesLite : pb::GeneratedMessageLite<TestUnpackedTypesLite, TestUnpackedTypesLite.Builder> {
  2251. private TestUnpackedTypesLite() { }
  2252. private static readonly TestUnpackedTypesLite defaultInstance = new TestUnpackedTypesLite().MakeReadOnly();
  2253. private static readonly string[] _testUnpackedTypesLiteFieldNames = new string[] { "unpacked_bool", "unpacked_double", "unpacked_enum", "unpacked_fixed32", "unpacked_fixed64", "unpacked_float", "unpacked_int32", "unpacked_int64", "unpacked_sfixed32", "unpacked_sfixed64", "unpacked_sint32", "unpacked_sint64", "unpacked_uint32", "unpacked_uint64" };
  2254. private static readonly uint[] _testUnpackedTypesLiteFieldTags = new uint[] { 816, 809, 824, 773, 777, 805, 720, 728, 789, 793, 752, 760, 736, 744 };
  2255. public static TestUnpackedTypesLite DefaultInstance {
  2256. get { return defaultInstance; }
  2257. }
  2258. public override TestUnpackedTypesLite DefaultInstanceForType {
  2259. get { return DefaultInstance; }
  2260. }
  2261. protected override TestUnpackedTypesLite ThisMessage {
  2262. get { return this; }
  2263. }
  2264. public const int UnpackedInt32FieldNumber = 90;
  2265. private pbc::PopsicleList<int> unpackedInt32_ = new pbc::PopsicleList<int>();
  2266. public scg::IList<int> UnpackedInt32List {
  2267. get { return pbc::Lists.AsReadOnly(unpackedInt32_); }
  2268. }
  2269. public int UnpackedInt32Count {
  2270. get { return unpackedInt32_.Count; }
  2271. }
  2272. public int GetUnpackedInt32(int index) {
  2273. return unpackedInt32_[index];
  2274. }
  2275. public const int UnpackedInt64FieldNumber = 91;
  2276. private pbc::PopsicleList<long> unpackedInt64_ = new pbc::PopsicleList<long>();
  2277. public scg::IList<long> UnpackedInt64List {
  2278. get { return pbc::Lists.AsReadOnly(unpackedInt64_); }
  2279. }
  2280. public int UnpackedInt64Count {
  2281. get { return unpackedInt64_.Count; }
  2282. }
  2283. public long GetUnpackedInt64(int index) {
  2284. return unpackedInt64_[index];
  2285. }
  2286. public const int UnpackedUint32FieldNumber = 92;
  2287. private pbc::PopsicleList<uint> unpackedUint32_ = new pbc::PopsicleList<uint>();
  2288. [global::System.CLSCompliant(false)]
  2289. public scg::IList<uint> UnpackedUint32List {
  2290. get { return pbc::Lists.AsReadOnly(unpackedUint32_); }
  2291. }
  2292. public int UnpackedUint32Count {
  2293. get { return unpackedUint32_.Count; }
  2294. }
  2295. [global::System.CLSCompliant(false)]
  2296. public uint GetUnpackedUint32(int index) {
  2297. return unpackedUint32_[index];
  2298. }
  2299. public const int UnpackedUint64FieldNumber = 93;
  2300. private pbc::PopsicleList<ulong> unpackedUint64_ = new pbc::PopsicleList<ulong>();
  2301. [global::System.CLSCompliant(false)]
  2302. public scg::IList<ulong> UnpackedUint64List {
  2303. get { return pbc::Lists.AsReadOnly(unpackedUint64_); }
  2304. }
  2305. public int UnpackedUint64Count {
  2306. get { return unpackedUint64_.Count; }
  2307. }
  2308. [global::System.CLSCompliant(false)]
  2309. public ulong GetUnpackedUint64(int index) {
  2310. return unpackedUint64_[index];
  2311. }
  2312. public const int UnpackedSint32FieldNumber = 94;
  2313. private pbc::PopsicleList<int> unpackedSint32_ = new pbc::PopsicleList<int>();
  2314. public scg::IList<int> UnpackedSint32List {
  2315. get { return pbc::Lists.AsReadOnly(unpackedSint32_); }
  2316. }
  2317. public int UnpackedSint32Count {
  2318. get { return unpackedSint32_.Count; }
  2319. }
  2320. public int GetUnpackedSint32(int index) {
  2321. return unpackedSint32_[index];
  2322. }
  2323. public const int UnpackedSint64FieldNumber = 95;
  2324. private pbc::PopsicleList<long> unpackedSint64_ = new pbc::PopsicleList<long>();
  2325. public scg::IList<long> UnpackedSint64List {
  2326. get { return pbc::Lists.AsReadOnly(unpackedSint64_); }
  2327. }
  2328. public int UnpackedSint64Count {
  2329. get { return unpackedSint64_.Count; }
  2330. }
  2331. public long GetUnpackedSint64(int index) {
  2332. return unpackedSint64_[index];
  2333. }
  2334. public const int UnpackedFixed32FieldNumber = 96;
  2335. private pbc::PopsicleList<uint> unpackedFixed32_ = new pbc::PopsicleList<uint>();
  2336. [global::System.CLSCompliant(false)]
  2337. public scg::IList<uint> UnpackedFixed32List {
  2338. get { return pbc::Lists.AsReadOnly(unpackedFixed32_); }
  2339. }
  2340. public int UnpackedFixed32Count {
  2341. get { return unpackedFixed32_.Count; }
  2342. }
  2343. [global::System.CLSCompliant(false)]
  2344. public uint GetUnpackedFixed32(int index) {
  2345. return unpackedFixed32_[index];
  2346. }
  2347. public const int UnpackedFixed64FieldNumber = 97;
  2348. private pbc::PopsicleList<ulong> unpackedFixed64_ = new pbc::PopsicleList<ulong>();
  2349. [global::System.CLSCompliant(false)]
  2350. public scg::IList<ulong> UnpackedFixed64List {
  2351. get { return pbc::Lists.AsReadOnly(unpackedFixed64_); }
  2352. }
  2353. public int UnpackedFixed64Count {
  2354. get { return unpackedFixed64_.Count; }
  2355. }
  2356. [global::System.CLSCompliant(false)]
  2357. public ulong GetUnpackedFixed64(int index) {
  2358. return unpackedFixed64_[index];
  2359. }
  2360. public const int UnpackedSfixed32FieldNumber = 98;
  2361. private pbc::PopsicleList<int> unpackedSfixed32_ = new pbc::PopsicleList<int>();
  2362. public scg::IList<int> UnpackedSfixed32List {
  2363. get { return pbc::Lists.AsReadOnly(unpackedSfixed32_); }
  2364. }
  2365. public int UnpackedSfixed32Count {
  2366. get { return unpackedSfixed32_.Count; }
  2367. }
  2368. public int GetUnpackedSfixed32(int index) {
  2369. return unpackedSfixed32_[index];
  2370. }
  2371. public const int UnpackedSfixed64FieldNumber = 99;
  2372. private pbc::PopsicleList<long> unpackedSfixed64_ = new pbc::PopsicleList<long>();
  2373. public scg::IList<long> UnpackedSfixed64List {
  2374. get { return pbc::Lists.AsReadOnly(unpackedSfixed64_); }
  2375. }
  2376. public int UnpackedSfixed64Count {
  2377. get { return unpackedSfixed64_.Count; }
  2378. }
  2379. public long GetUnpackedSfixed64(int index) {
  2380. return unpackedSfixed64_[index];
  2381. }
  2382. public const int UnpackedFloatFieldNumber = 100;
  2383. private pbc::PopsicleList<float> unpackedFloat_ = new pbc::PopsicleList<float>();
  2384. public scg::IList<float> UnpackedFloatList {
  2385. get { return pbc::Lists.AsReadOnly(unpackedFloat_); }
  2386. }
  2387. public int UnpackedFloatCount {
  2388. get { return unpackedFloat_.Count; }
  2389. }
  2390. public float GetUnpackedFloat(int index) {
  2391. return unpackedFloat_[index];
  2392. }
  2393. public const int UnpackedDoubleFieldNumber = 101;
  2394. private pbc::PopsicleList<double> unpackedDouble_ = new pbc::PopsicleList<double>();
  2395. public scg::IList<double> UnpackedDoubleList {
  2396. get { return pbc::Lists.AsReadOnly(unpackedDouble_); }
  2397. }
  2398. public int UnpackedDoubleCount {
  2399. get { return unpackedDouble_.Count; }
  2400. }
  2401. public double GetUnpackedDouble(int index) {
  2402. return unpackedDouble_[index];
  2403. }
  2404. public const int UnpackedBoolFieldNumber = 102;
  2405. private pbc::PopsicleList<bool> unpackedBool_ = new pbc::PopsicleList<bool>();
  2406. public scg::IList<bool> UnpackedBoolList {
  2407. get { return pbc::Lists.AsReadOnly(unpackedBool_); }
  2408. }
  2409. public int UnpackedBoolCount {
  2410. get { return unpackedBool_.Count; }
  2411. }
  2412. public bool GetUnpackedBool(int index) {
  2413. return unpackedBool_[index];
  2414. }
  2415. public const int UnpackedEnumFieldNumber = 103;
  2416. private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite> unpackedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite>();
  2417. public scg::IList<global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite> UnpackedEnumList {
  2418. get { return pbc::Lists.AsReadOnly(unpackedEnum_); }
  2419. }
  2420. public int UnpackedEnumCount {
  2421. get { return unpackedEnum_.Count; }
  2422. }
  2423. public global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite GetUnpackedEnum(int index) {
  2424. return unpackedEnum_[index];
  2425. }
  2426. public override bool IsInitialized {
  2427. get {
  2428. return true;
  2429. }
  2430. }
  2431. public override void WriteTo(pb::ICodedOutputStream output) {
  2432. int size = SerializedSize;
  2433. string[] field_names = _testUnpackedTypesLiteFieldNames;
  2434. if (unpackedInt32_.Count > 0) {
  2435. output.WriteInt32Array(90, field_names[6], unpackedInt32_);
  2436. }
  2437. if (unpackedInt64_.Count > 0) {
  2438. output.WriteInt64Array(91, field_names[7], unpackedInt64_);
  2439. }
  2440. if (unpackedUint32_.Count > 0) {
  2441. output.WriteUInt32Array(92, field_names[12], unpackedUint32_);
  2442. }
  2443. if (unpackedUint64_.Count > 0) {
  2444. output.WriteUInt64Array(93, field_names[13], unpackedUint64_);
  2445. }
  2446. if (unpackedSint32_.Count > 0) {
  2447. output.WriteSInt32Array(94, field_names[10], unpackedSint32_);
  2448. }
  2449. if (unpackedSint64_.Count > 0) {
  2450. output.WriteSInt64Array(95, field_names[11], unpackedSint64_);
  2451. }
  2452. if (unpackedFixed32_.Count > 0) {
  2453. output.WriteFixed32Array(96, field_names[3], unpackedFixed32_);
  2454. }
  2455. if (unpackedFixed64_.Count > 0) {
  2456. output.WriteFixed64Array(97, field_names[4], unpackedFixed64_);
  2457. }
  2458. if (unpackedSfixed32_.Count > 0) {
  2459. output.WriteSFixed32Array(98, field_names[8], unpackedSfixed32_);
  2460. }
  2461. if (unpackedSfixed64_.Count > 0) {
  2462. output.WriteSFixed64Array(99, field_names[9], unpackedSfixed64_);
  2463. }
  2464. if (unpackedFloat_.Count > 0) {
  2465. output.WriteFloatArray(100, field_names[5], unpackedFloat_);
  2466. }
  2467. if (unpackedDouble_.Count > 0) {
  2468. output.WriteDoubleArray(101, field_names[1], unpackedDouble_);
  2469. }
  2470. if (unpackedBool_.Count > 0) {
  2471. output.WriteBoolArray(102, field_names[0], unpackedBool_);
  2472. }
  2473. if (unpackedEnum_.Count > 0) {
  2474. output.WriteEnumArray(103, field_names[2], unpackedEnum_);
  2475. }
  2476. }
  2477. private int memoizedSerializedSize = -1;
  2478. public override int SerializedSize {
  2479. get {
  2480. int size = memoizedSerializedSize;
  2481. if (size != -1) return size;
  2482. size = 0;
  2483. {
  2484. int dataSize = 0;
  2485. foreach (int element in UnpackedInt32List) {
  2486. dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
  2487. }
  2488. size += dataSize;
  2489. size += 2 * unpackedInt32_.Count;
  2490. }
  2491. {
  2492. int dataSize = 0;
  2493. foreach (long element in UnpackedInt64List) {
  2494. dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
  2495. }
  2496. size += dataSize;
  2497. size += 2 * unpackedInt64_.Count;
  2498. }
  2499. {
  2500. int dataSize = 0;
  2501. foreach (uint element in UnpackedUint32List) {
  2502. dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
  2503. }
  2504. size += dataSize;
  2505. size += 2 * unpackedUint32_.Count;
  2506. }
  2507. {
  2508. int dataSize = 0;
  2509. foreach (ulong element in UnpackedUint64List) {
  2510. dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
  2511. }
  2512. size += dataSize;
  2513. size += 2 * unpackedUint64_.Count;
  2514. }
  2515. {
  2516. int dataSize = 0;
  2517. foreach (int element in UnpackedSint32List) {
  2518. dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
  2519. }
  2520. size += dataSize;
  2521. size += 2 * unpackedSint32_.Count;
  2522. }
  2523. {
  2524. int dataSize = 0;
  2525. foreach (long element in UnpackedSint64List) {
  2526. dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
  2527. }
  2528. size += dataSize;
  2529. size += 2 * unpackedSint64_.Count;
  2530. }
  2531. {
  2532. int dataSize = 0;
  2533. dataSize = 4 * unpackedFixed32_.Count;
  2534. size += dataSize;
  2535. size += 2 * unpackedFixed32_.Count;
  2536. }
  2537. {
  2538. int dataSize = 0;
  2539. dataSize = 8 * unpackedFixed64_.Count;
  2540. size += dataSize;
  2541. size += 2 * unpackedFixed64_.Count;
  2542. }
  2543. {
  2544. int dataSize = 0;
  2545. dataSize = 4 * unpackedSfixed32_.Count;
  2546. size += dataSize;
  2547. size += 2 * unpackedSfixed32_.Count;
  2548. }
  2549. {
  2550. int dataSize = 0;
  2551. dataSize = 8 * unpackedSfixed64_.Count;
  2552. size += dataSize;
  2553. size += 2 * unpackedSfixed64_.Count;
  2554. }
  2555. {
  2556. int dataSize = 0;
  2557. dataSize = 4 * unpackedFloat_.Count;
  2558. size += dataSize;
  2559. size += 2 * unpackedFloat_.Count;
  2560. }
  2561. {
  2562. int dataSize = 0;
  2563. dataSize = 8 * unpackedDouble_.Count;
  2564. size += dataSize;
  2565. size += 2 * unpackedDouble_.Count;
  2566. }
  2567. {
  2568. int dataSize = 0;
  2569. dataSize = 1 * unpackedBool_.Count;
  2570. size += dataSize;
  2571. size += 2 * unpackedBool_.Count;
  2572. }
  2573. {
  2574. int dataSize = 0;
  2575. if (unpackedEnum_.Count > 0) {
  2576. foreach (global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite element in unpackedEnum_) {
  2577. dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
  2578. }
  2579. size += dataSize;
  2580. size += 2 * unpackedEnum_.Count;
  2581. }
  2582. }
  2583. memoizedSerializedSize = size;
  2584. return size;
  2585. }
  2586. }
  2587. #region Lite runtime methods
  2588. public override int GetHashCode() {
  2589. int hash = GetType().GetHashCode();
  2590. foreach(int i in unpackedInt32_)
  2591. hash ^= i.GetHashCode();
  2592. foreach(long i in unpackedInt64_)
  2593. hash ^= i.GetHashCode();
  2594. foreach(uint i in unpackedUint32_)
  2595. hash ^= i.GetHashCode();
  2596. foreach(ulong i in unpackedUint64_)
  2597. hash ^= i.GetHashCode();
  2598. foreach(int i in unpackedSint32_)
  2599. hash ^= i.GetHashCode();
  2600. foreach(long i in unpackedSint64_)
  2601. hash ^= i.GetHashCode();
  2602. foreach(uint i in unpackedFixed32_)
  2603. hash ^= i.GetHashCode();
  2604. foreach(ulong i in unpackedFixed64_)
  2605. hash ^= i.GetHashCode();
  2606. foreach(int i in unpackedSfixed32_)
  2607. hash ^= i.GetHashCode();
  2608. foreach(long i in unpackedSfixed64_)
  2609. hash ^= i.GetHashCode();
  2610. foreach(float i in unpackedFloat_)
  2611. hash ^= i.GetHashCode();
  2612. foreach(double i in unpackedDouble_)
  2613. hash ^= i.GetHashCode();
  2614. foreach(bool i in unpackedBool_)
  2615. hash ^= i.GetHashCode();
  2616. foreach(global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite i in unpackedEnum_)
  2617. hash ^= i.GetHashCode();
  2618. return hash;
  2619. }
  2620. public override bool Equals(object obj) {
  2621. TestUnpackedTypesLite other = obj as TestUnpackedTypesLite;
  2622. if (other == null) return false;
  2623. if(unpackedInt32_.Count != other.unpackedInt32_.Count) return false;
  2624. for(int ix=0; ix < unpackedInt32_.Count; ix++)
  2625. if(!unpackedInt32_[ix].Equals(other.unpackedInt32_[ix])) return false;
  2626. if(unpackedInt64_.Count != other.unpackedInt64_.Count) return false;
  2627. for(int ix=0; ix < unpackedInt64_.Count; ix++)
  2628. if(!unpackedInt64_[ix].Equals(other.unpackedInt64_[ix])) return false;
  2629. if(unpackedUint32_.Count != other.unpackedUint32_.Count) return false;
  2630. for(int ix=0; ix < unpackedUint32_.Count; ix++)
  2631. if(!unpackedUint32_[ix].Equals(other.unpackedUint32_[ix])) return false;
  2632. if(unpackedUint64_.Count != other.unpackedUint64_.Count) return false;
  2633. for(int ix=0; ix < unpackedUint64_.Count; ix++)
  2634. if(!unpackedUint64_[ix].Equals(other.unpackedUint64_[ix])) return false;
  2635. if(unpackedSint32_.Count != other.unpackedSint32_.Count) return false;
  2636. for(int ix=0; ix < unpackedSint32_.Count; ix++)
  2637. if(!unpackedSint32_[ix].Equals(other.unpackedSint32_[ix])) return false;
  2638. if(unpackedSint64_.Count != other.unpackedSint64_.Count) return false;
  2639. for(int ix=0; ix < unpackedSint64_.Count; ix++)
  2640. if(!unpackedSint64_[ix].Equals(other.unpackedSint64_[ix])) return false;
  2641. if(unpackedFixed32_.Count != other.unpackedFixed32_.Count) return false;
  2642. for(int ix=0; ix < unpackedFixed32_.Count; ix++)
  2643. if(!unpackedFixed32_[ix].Equals(other.unpackedFixed32_[ix])) return false;
  2644. if(unpackedFixed64_.Count != other.unpackedFixed64_.Count) return false;
  2645. for(int ix=0; ix < unpackedFixed64_.Count; ix++)
  2646. if(!unpackedFixed64_[ix].Equals(other.unpackedFixed64_[ix])) return false;
  2647. if(unpackedSfixed32_.Count != other.unpackedSfixed32_.Count) return false;
  2648. for(int ix=0; ix < unpackedSfixed32_.Count; ix++)
  2649. if(!unpackedSfixed32_[ix].Equals(other.unpackedSfixed32_[ix])) return false;
  2650. if(unpackedSfixed64_.Count != other.unpackedSfixed64_.Count) return false;
  2651. for(int ix=0; ix < unpackedSfixed64_.Count; ix++)
  2652. if(!unpackedSfixed64_[ix].Equals(other.unpackedSfixed64_[ix])) return false;
  2653. if(unpackedFloat_.Count != other.unpackedFloat_.Count) return false;
  2654. for(int ix=0; ix < unpackedFloat_.Count; ix++)
  2655. if(!unpackedFloat_[ix].Equals(other.unpackedFloat_[ix])) return false;
  2656. if(unpackedDouble_.Count != other.unpackedDouble_.Count) return false;
  2657. for(int ix=0; ix < unpackedDouble_.Count; ix++)
  2658. if(!unpackedDouble_[ix].Equals(other.unpackedDouble_[ix])) return false;
  2659. if(unpackedBool_.Count != other.unpackedBool_.Count) return false;
  2660. for(int ix=0; ix < unpackedBool_.Count; ix++)
  2661. if(!unpackedBool_[ix].Equals(other.unpackedBool_[ix])) return false;
  2662. if(unpackedEnum_.Count != other.unpackedEnum_.Count) return false;
  2663. for(int ix=0; ix < unpackedEnum_.Count; ix++)
  2664. if(!unpackedEnum_[ix].Equals(other.unpackedEnum_[ix])) return false;
  2665. return true;
  2666. }
  2667. public override void PrintTo(global::System.IO.TextWriter writer) {
  2668. PrintField("unpacked_int32", unpackedInt32_, writer);
  2669. PrintField("unpacked_int64", unpackedInt64_, writer);
  2670. PrintField("unpacked_uint32", unpackedUint32_, writer);
  2671. PrintField("unpacked_uint64", unpackedUint64_, writer);
  2672. PrintField("unpacked_sint32", unpackedSint32_, writer);
  2673. PrintField("unpacked_sint64", unpackedSint64_, writer);
  2674. PrintField("unpacked_fixed32", unpackedFixed32_, writer);
  2675. PrintField("unpacked_fixed64", unpackedFixed64_, writer);
  2676. PrintField("unpacked_sfixed32", unpackedSfixed32_, writer);
  2677. PrintField("unpacked_sfixed64", unpackedSfixed64_, writer);
  2678. PrintField("unpacked_float", unpackedFloat_, writer);
  2679. PrintField("unpacked_double", unpackedDouble_, writer);
  2680. PrintField("unpacked_bool", unpackedBool_, writer);
  2681. PrintField("unpacked_enum", unpackedEnum_, writer);
  2682. }
  2683. #endregion
  2684. public static TestUnpackedTypesLite ParseFrom(pb::ByteString data) {
  2685. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2686. }
  2687. public static TestUnpackedTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  2688. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2689. }
  2690. public static TestUnpackedTypesLite ParseFrom(byte[] data) {
  2691. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2692. }
  2693. public static TestUnpackedTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  2694. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2695. }
  2696. public static TestUnpackedTypesLite ParseFrom(global::System.IO.Stream input) {
  2697. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2698. }
  2699. public static TestUnpackedTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2700. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2701. }
  2702. public static TestUnpackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
  2703. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  2704. }
  2705. public static TestUnpackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2706. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  2707. }
  2708. public static TestUnpackedTypesLite ParseFrom(pb::ICodedInputStream input) {
  2709. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2710. }
  2711. public static TestUnpackedTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2712. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2713. }
  2714. private TestUnpackedTypesLite MakeReadOnly() {
  2715. unpackedInt32_.MakeReadOnly();
  2716. unpackedInt64_.MakeReadOnly();
  2717. unpackedUint32_.MakeReadOnly();
  2718. unpackedUint64_.MakeReadOnly();
  2719. unpackedSint32_.MakeReadOnly();
  2720. unpackedSint64_.MakeReadOnly();
  2721. unpackedFixed32_.MakeReadOnly();
  2722. unpackedFixed64_.MakeReadOnly();
  2723. unpackedSfixed32_.MakeReadOnly();
  2724. unpackedSfixed64_.MakeReadOnly();
  2725. unpackedFloat_.MakeReadOnly();
  2726. unpackedDouble_.MakeReadOnly();
  2727. unpackedBool_.MakeReadOnly();
  2728. unpackedEnum_.MakeReadOnly();
  2729. return this;
  2730. }
  2731. public static Builder CreateBuilder() { return new Builder(); }
  2732. public override Builder ToBuilder() { return CreateBuilder(this); }
  2733. public override Builder CreateBuilderForType() { return new Builder(); }
  2734. public static Builder CreateBuilder(TestUnpackedTypesLite prototype) {
  2735. return new Builder(prototype);
  2736. }
  2737. [global::System.SerializableAttribute()]
  2738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2739. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  2740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  2741. public sealed partial class Builder : pb::GeneratedBuilderLite<TestUnpackedTypesLite, Builder> {
  2742. protected override Builder ThisBuilder {
  2743. get { return this; }
  2744. }
  2745. public Builder() {
  2746. result = DefaultInstance;
  2747. resultIsReadOnly = true;
  2748. }
  2749. internal Builder(TestUnpackedTypesLite cloneFrom) {
  2750. result = cloneFrom;
  2751. resultIsReadOnly = true;
  2752. }
  2753. private bool resultIsReadOnly;
  2754. private TestUnpackedTypesLite result;
  2755. private TestUnpackedTypesLite PrepareBuilder() {
  2756. if (resultIsReadOnly) {
  2757. TestUnpackedTypesLite original = result;
  2758. result = new TestUnpackedTypesLite();
  2759. resultIsReadOnly = false;
  2760. MergeFrom(original);
  2761. }
  2762. return result;
  2763. }
  2764. public override bool IsInitialized {
  2765. get { return result.IsInitialized; }
  2766. }
  2767. protected override TestUnpackedTypesLite MessageBeingBuilt {
  2768. get { return PrepareBuilder(); }
  2769. }
  2770. public override Builder Clear() {
  2771. result = DefaultInstance;
  2772. resultIsReadOnly = true;
  2773. return this;
  2774. }
  2775. public override Builder Clone() {
  2776. if (resultIsReadOnly) {
  2777. return new Builder(result);
  2778. } else {
  2779. return new Builder().MergeFrom(result);
  2780. }
  2781. }
  2782. public override TestUnpackedTypesLite DefaultInstanceForType {
  2783. get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypesLite.DefaultInstance; }
  2784. }
  2785. public override TestUnpackedTypesLite BuildPartial() {
  2786. if (resultIsReadOnly) {
  2787. return result;
  2788. }
  2789. resultIsReadOnly = true;
  2790. return result.MakeReadOnly();
  2791. }
  2792. public override Builder MergeFrom(pb::IMessageLite other) {
  2793. if (other is TestUnpackedTypesLite) {
  2794. return MergeFrom((TestUnpackedTypesLite) other);
  2795. } else {
  2796. base.MergeFrom(other);
  2797. return this;
  2798. }
  2799. }
  2800. public override Builder MergeFrom(TestUnpackedTypesLite other) {
  2801. if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypesLite.DefaultInstance) return this;
  2802. PrepareBuilder();
  2803. if (other.unpackedInt32_.Count != 0) {
  2804. result.unpackedInt32_.Add(other.unpackedInt32_);
  2805. }
  2806. if (other.unpackedInt64_.Count != 0) {
  2807. result.unpackedInt64_.Add(other.unpackedInt64_);
  2808. }
  2809. if (other.unpackedUint32_.Count != 0) {
  2810. result.unpackedUint32_.Add(other.unpackedUint32_);
  2811. }
  2812. if (other.unpackedUint64_.Count != 0) {
  2813. result.unpackedUint64_.Add(other.unpackedUint64_);
  2814. }
  2815. if (other.unpackedSint32_.Count != 0) {
  2816. result.unpackedSint32_.Add(other.unpackedSint32_);
  2817. }
  2818. if (other.unpackedSint64_.Count != 0) {
  2819. result.unpackedSint64_.Add(other.unpackedSint64_);
  2820. }
  2821. if (other.unpackedFixed32_.Count != 0) {
  2822. result.unpackedFixed32_.Add(other.unpackedFixed32_);
  2823. }
  2824. if (other.unpackedFixed64_.Count != 0) {
  2825. result.unpackedFixed64_.Add(other.unpackedFixed64_);
  2826. }
  2827. if (other.unpackedSfixed32_.Count != 0) {
  2828. result.unpackedSfixed32_.Add(other.unpackedSfixed32_);
  2829. }
  2830. if (other.unpackedSfixed64_.Count != 0) {
  2831. result.unpackedSfixed64_.Add(other.unpackedSfixed64_);
  2832. }
  2833. if (other.unpackedFloat_.Count != 0) {
  2834. result.unpackedFloat_.Add(other.unpackedFloat_);
  2835. }
  2836. if (other.unpackedDouble_.Count != 0) {
  2837. result.unpackedDouble_.Add(other.unpackedDouble_);
  2838. }
  2839. if (other.unpackedBool_.Count != 0) {
  2840. result.unpackedBool_.Add(other.unpackedBool_);
  2841. }
  2842. if (other.unpackedEnum_.Count != 0) {
  2843. result.unpackedEnum_.Add(other.unpackedEnum_);
  2844. }
  2845. return this;
  2846. }
  2847. public override Builder MergeFrom(pb::ICodedInputStream input) {
  2848. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  2849. }
  2850. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2851. PrepareBuilder();
  2852. uint tag;
  2853. string field_name;
  2854. while (input.ReadTag(out tag, out field_name)) {
  2855. if(tag == 0 && field_name != null) {
  2856. int field_ordinal = global::System.Array.BinarySearch(_testUnpackedTypesLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
  2857. if(field_ordinal >= 0)
  2858. tag = _testUnpackedTypesLiteFieldTags[field_ordinal];
  2859. else {
  2860. ParseUnknownField(input, extensionRegistry, tag, field_name);
  2861. continue;
  2862. }
  2863. }
  2864. switch (tag) {
  2865. case 0: {
  2866. throw pb::InvalidProtocolBufferException.InvalidTag();
  2867. }
  2868. default: {
  2869. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2870. return this;
  2871. }
  2872. ParseUnknownField(input, extensionRegistry, tag, field_name);
  2873. break;
  2874. }
  2875. case 722:
  2876. case 720: {
  2877. input.ReadInt32Array(tag, field_name, result.unpackedInt32_);
  2878. break;
  2879. }
  2880. case 730:
  2881. case 728: {
  2882. input.ReadInt64Array(tag, field_name, result.unpackedInt64_);
  2883. break;
  2884. }
  2885. case 738:
  2886. case 736: {
  2887. input.ReadUInt32Array(tag, field_name, result.unpackedUint32_);
  2888. break;
  2889. }
  2890. case 746:
  2891. case 744: {
  2892. input.ReadUInt64Array(tag, field_name, result.unpackedUint64_);
  2893. break;
  2894. }
  2895. case 754:
  2896. case 752: {
  2897. input.ReadSInt32Array(tag, field_name, result.unpackedSint32_);
  2898. break;
  2899. }
  2900. case 762:
  2901. case 760: {
  2902. input.ReadSInt64Array(tag, field_name, result.unpackedSint64_);
  2903. break;
  2904. }
  2905. case 770:
  2906. case 773: {
  2907. input.ReadFixed32Array(tag, field_name, result.unpackedFixed32_);
  2908. break;
  2909. }
  2910. case 778:
  2911. case 777: {
  2912. input.ReadFixed64Array(tag, field_name, result.unpackedFixed64_);
  2913. break;
  2914. }
  2915. case 786:
  2916. case 789: {
  2917. input.ReadSFixed32Array(tag, field_name, result.unpackedSfixed32_);
  2918. break;
  2919. }
  2920. case 794:
  2921. case 793: {
  2922. input.ReadSFixed64Array(tag, field_name, result.unpackedSfixed64_);
  2923. break;
  2924. }
  2925. case 802:
  2926. case 805: {
  2927. input.ReadFloatArray(tag, field_name, result.unpackedFloat_);
  2928. break;
  2929. }
  2930. case 810:
  2931. case 809: {
  2932. input.ReadDoubleArray(tag, field_name, result.unpackedDouble_);
  2933. break;
  2934. }
  2935. case 818:
  2936. case 816: {
  2937. input.ReadBoolArray(tag, field_name, result.unpackedBool_);
  2938. break;
  2939. }
  2940. case 826:
  2941. case 824: {
  2942. scg::ICollection<object> unknownItems;
  2943. input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite>(tag, field_name, result.unpackedEnum_, out unknownItems);
  2944. break;
  2945. }
  2946. }
  2947. }
  2948. return this;
  2949. }
  2950. public pbc::IPopsicleList<int> UnpackedInt32List {
  2951. get { return PrepareBuilder().unpackedInt32_; }
  2952. }
  2953. public int UnpackedInt32Count {
  2954. get { return result.UnpackedInt32Count; }
  2955. }
  2956. public int GetUnpackedInt32(int index) {
  2957. return result.GetUnpackedInt32(index);
  2958. }
  2959. public Builder SetUnpackedInt32(int index, int value) {
  2960. PrepareBuilder();
  2961. result.unpackedInt32_[index] = value;
  2962. return this;
  2963. }
  2964. public Builder AddUnpackedInt32(int value) {
  2965. PrepareBuilder();
  2966. result.unpackedInt32_.Add(value);
  2967. return this;
  2968. }
  2969. public Builder AddRangeUnpackedInt32(scg::IEnumerable<int> values) {
  2970. PrepareBuilder();
  2971. result.unpackedInt32_.Add(values);
  2972. return this;
  2973. }
  2974. public Builder ClearUnpackedInt32() {
  2975. PrepareBuilder();
  2976. result.unpackedInt32_.Clear();
  2977. return this;
  2978. }
  2979. public pbc::IPopsicleList<long> UnpackedInt64List {
  2980. get { return PrepareBuilder().unpackedInt64_; }
  2981. }
  2982. public int UnpackedInt64Count {
  2983. get { return result.UnpackedInt64Count; }
  2984. }
  2985. public long GetUnpackedInt64(int index) {
  2986. return result.GetUnpackedInt64(index);
  2987. }
  2988. public Builder SetUnpackedInt64(int index, long value) {
  2989. PrepareBuilder();
  2990. result.unpackedInt64_[index] = value;
  2991. return this;
  2992. }
  2993. public Builder AddUnpackedInt64(long value) {
  2994. PrepareBuilder();
  2995. result.unpackedInt64_.Add(value);
  2996. return this;
  2997. }
  2998. public Builder AddRangeUnpackedInt64(scg::IEnumerable<long> values) {
  2999. PrepareBuilder();
  3000. result.unpackedInt64_.Add(values);
  3001. return this;
  3002. }
  3003. public Builder ClearUnpackedInt64() {
  3004. PrepareBuilder();
  3005. result.unpackedInt64_.Clear();
  3006. return this;
  3007. }
  3008. [global::System.CLSCompliant(false)]
  3009. public pbc::IPopsicleList<uint> UnpackedUint32List {
  3010. get { return PrepareBuilder().unpackedUint32_; }
  3011. }
  3012. public int UnpackedUint32Count {
  3013. get { return result.UnpackedUint32Count; }
  3014. }
  3015. [global::System.CLSCompliant(false)]
  3016. public uint GetUnpackedUint32(int index) {
  3017. return result.GetUnpackedUint32(index);
  3018. }
  3019. [global::System.CLSCompliant(false)]
  3020. public Builder SetUnpackedUint32(int index, uint value) {
  3021. PrepareBuilder();
  3022. result.unpackedUint32_[index] = value;
  3023. return this;
  3024. }
  3025. [global::System.CLSCompliant(false)]
  3026. public Builder AddUnpackedUint32(uint value) {
  3027. PrepareBuilder();
  3028. result.unpackedUint32_.Add(value);
  3029. return this;
  3030. }
  3031. [global::System.CLSCompliant(false)]
  3032. public Builder AddRangeUnpackedUint32(scg::IEnumerable<uint> values) {
  3033. PrepareBuilder();
  3034. result.unpackedUint32_.Add(values);
  3035. return this;
  3036. }
  3037. public Builder ClearUnpackedUint32() {
  3038. PrepareBuilder();
  3039. result.unpackedUint32_.Clear();
  3040. return this;
  3041. }
  3042. [global::System.CLSCompliant(false)]
  3043. public pbc::IPopsicleList<ulong> UnpackedUint64List {
  3044. get { return PrepareBuilder().unpackedUint64_; }
  3045. }
  3046. public int UnpackedUint64Count {
  3047. get { return result.UnpackedUint64Count; }
  3048. }
  3049. [global::System.CLSCompliant(false)]
  3050. public ulong GetUnpackedUint64(int index) {
  3051. return result.GetUnpackedUint64(index);
  3052. }
  3053. [global::System.CLSCompliant(false)]
  3054. public Builder SetUnpackedUint64(int index, ulong value) {
  3055. PrepareBuilder();
  3056. result.unpackedUint64_[index] = value;
  3057. return this;
  3058. }
  3059. [global::System.CLSCompliant(false)]
  3060. public Builder AddUnpackedUint64(ulong value) {
  3061. PrepareBuilder();
  3062. result.unpackedUint64_.Add(value);
  3063. return this;
  3064. }
  3065. [global::System.CLSCompliant(false)]
  3066. public Builder AddRangeUnpackedUint64(scg::IEnumerable<ulong> values) {
  3067. PrepareBuilder();
  3068. result.unpackedUint64_.Add(values);
  3069. return this;
  3070. }
  3071. public Builder ClearUnpackedUint64() {
  3072. PrepareBuilder();
  3073. result.unpackedUint64_.Clear();
  3074. return this;
  3075. }
  3076. public pbc::IPopsicleList<int> UnpackedSint32List {
  3077. get { return PrepareBuilder().unpackedSint32_; }
  3078. }
  3079. public int UnpackedSint32Count {
  3080. get { return result.UnpackedSint32Count; }
  3081. }
  3082. public int GetUnpackedSint32(int index) {
  3083. return result.GetUnpackedSint32(index);
  3084. }
  3085. public Builder SetUnpackedSint32(int index, int value) {
  3086. PrepareBuilder();
  3087. result.unpackedSint32_[index] = value;
  3088. return this;
  3089. }
  3090. public Builder AddUnpackedSint32(int value) {
  3091. PrepareBuilder();
  3092. result.unpackedSint32_.Add(value);
  3093. return this;
  3094. }
  3095. public Builder AddRangeUnpackedSint32(scg::IEnumerable<int> values) {
  3096. PrepareBuilder();
  3097. result.unpackedSint32_.Add(values);
  3098. return this;
  3099. }
  3100. public Builder ClearUnpackedSint32() {
  3101. PrepareBuilder();
  3102. result.unpackedSint32_.Clear();
  3103. return this;
  3104. }
  3105. public pbc::IPopsicleList<long> UnpackedSint64List {
  3106. get { return PrepareBuilder().unpackedSint64_; }
  3107. }
  3108. public int UnpackedSint64Count {
  3109. get { return result.UnpackedSint64Count; }
  3110. }
  3111. public long GetUnpackedSint64(int index) {
  3112. return result.GetUnpackedSint64(index);
  3113. }
  3114. public Builder SetUnpackedSint64(int index, long value) {
  3115. PrepareBuilder();
  3116. result.unpackedSint64_[index] = value;
  3117. return this;
  3118. }
  3119. public Builder AddUnpackedSint64(long value) {
  3120. PrepareBuilder();
  3121. result.unpackedSint64_.Add(value);
  3122. return this;
  3123. }
  3124. public Builder AddRangeUnpackedSint64(scg::IEnumerable<long> values) {
  3125. PrepareBuilder();
  3126. result.unpackedSint64_.Add(values);
  3127. return this;
  3128. }
  3129. public Builder ClearUnpackedSint64() {
  3130. PrepareBuilder();
  3131. result.unpackedSint64_.Clear();
  3132. return this;
  3133. }
  3134. [global::System.CLSCompliant(false)]
  3135. public pbc::IPopsicleList<uint> UnpackedFixed32List {
  3136. get { return PrepareBuilder().unpackedFixed32_; }
  3137. }
  3138. public int UnpackedFixed32Count {
  3139. get { return result.UnpackedFixed32Count; }
  3140. }
  3141. [global::System.CLSCompliant(false)]
  3142. public uint GetUnpackedFixed32(int index) {
  3143. return result.GetUnpackedFixed32(index);
  3144. }
  3145. [global::System.CLSCompliant(false)]
  3146. public Builder SetUnpackedFixed32(int index, uint value) {
  3147. PrepareBuilder();
  3148. result.unpackedFixed32_[index] = value;
  3149. return this;
  3150. }
  3151. [global::System.CLSCompliant(false)]
  3152. public Builder AddUnpackedFixed32(uint value) {
  3153. PrepareBuilder();
  3154. result.unpackedFixed32_.Add(value);
  3155. return this;
  3156. }
  3157. [global::System.CLSCompliant(false)]
  3158. public Builder AddRangeUnpackedFixed32(scg::IEnumerable<uint> values) {
  3159. PrepareBuilder();
  3160. result.unpackedFixed32_.Add(values);
  3161. return this;
  3162. }
  3163. public Builder ClearUnpackedFixed32() {
  3164. PrepareBuilder();
  3165. result.unpackedFixed32_.Clear();
  3166. return this;
  3167. }
  3168. [global::System.CLSCompliant(false)]
  3169. public pbc::IPopsicleList<ulong> UnpackedFixed64List {
  3170. get { return PrepareBuilder().unpackedFixed64_; }
  3171. }
  3172. public int UnpackedFixed64Count {
  3173. get { return result.UnpackedFixed64Count; }
  3174. }
  3175. [global::System.CLSCompliant(false)]
  3176. public ulong GetUnpackedFixed64(int index) {
  3177. return result.GetUnpackedFixed64(index);
  3178. }
  3179. [global::System.CLSCompliant(false)]
  3180. public Builder SetUnpackedFixed64(int index, ulong value) {
  3181. PrepareBuilder();
  3182. result.unpackedFixed64_[index] = value;
  3183. return this;
  3184. }
  3185. [global::System.CLSCompliant(false)]
  3186. public Builder AddUnpackedFixed64(ulong value) {
  3187. PrepareBuilder();
  3188. result.unpackedFixed64_.Add(value);
  3189. return this;
  3190. }
  3191. [global::System.CLSCompliant(false)]
  3192. public Builder AddRangeUnpackedFixed64(scg::IEnumerable<ulong> values) {
  3193. PrepareBuilder();
  3194. result.unpackedFixed64_.Add(values);
  3195. return this;
  3196. }
  3197. public Builder ClearUnpackedFixed64() {
  3198. PrepareBuilder();
  3199. result.unpackedFixed64_.Clear();
  3200. return this;
  3201. }
  3202. public pbc::IPopsicleList<int> UnpackedSfixed32List {
  3203. get { return PrepareBuilder().unpackedSfixed32_; }
  3204. }
  3205. public int UnpackedSfixed32Count {
  3206. get { return result.UnpackedSfixed32Count; }
  3207. }
  3208. public int GetUnpackedSfixed32(int index) {
  3209. return result.GetUnpackedSfixed32(index);
  3210. }
  3211. public Builder SetUnpackedSfixed32(int index, int value) {
  3212. PrepareBuilder();
  3213. result.unpackedSfixed32_[index] = value;
  3214. return this;
  3215. }
  3216. public Builder AddUnpackedSfixed32(int value) {
  3217. PrepareBuilder();
  3218. result.unpackedSfixed32_.Add(value);
  3219. return this;
  3220. }
  3221. public Builder AddRangeUnpackedSfixed32(scg::IEnumerable<int> values) {
  3222. PrepareBuilder();
  3223. result.unpackedSfixed32_.Add(values);
  3224. return this;
  3225. }
  3226. public Builder ClearUnpackedSfixed32() {
  3227. PrepareBuilder();
  3228. result.unpackedSfixed32_.Clear();
  3229. return this;
  3230. }
  3231. public pbc::IPopsicleList<long> UnpackedSfixed64List {
  3232. get { return PrepareBuilder().unpackedSfixed64_; }
  3233. }
  3234. public int UnpackedSfixed64Count {
  3235. get { return result.UnpackedSfixed64Count; }
  3236. }
  3237. public long GetUnpackedSfixed64(int index) {
  3238. return result.GetUnpackedSfixed64(index);
  3239. }
  3240. public Builder SetUnpackedSfixed64(int index, long value) {
  3241. PrepareBuilder();
  3242. result.unpackedSfixed64_[index] = value;
  3243. return this;
  3244. }
  3245. public Builder AddUnpackedSfixed64(long value) {
  3246. PrepareBuilder();
  3247. result.unpackedSfixed64_.Add(value);
  3248. return this;
  3249. }
  3250. public Builder AddRangeUnpackedSfixed64(scg::IEnumerable<long> values) {
  3251. PrepareBuilder();
  3252. result.unpackedSfixed64_.Add(values);
  3253. return this;
  3254. }
  3255. public Builder ClearUnpackedSfixed64() {
  3256. PrepareBuilder();
  3257. result.unpackedSfixed64_.Clear();
  3258. return this;
  3259. }
  3260. public pbc::IPopsicleList<float> UnpackedFloatList {
  3261. get { return PrepareBuilder().unpackedFloat_; }
  3262. }
  3263. public int UnpackedFloatCount {
  3264. get { return result.UnpackedFloatCount; }
  3265. }
  3266. public float GetUnpackedFloat(int index) {
  3267. return result.GetUnpackedFloat(index);
  3268. }
  3269. public Builder SetUnpackedFloat(int index, float value) {
  3270. PrepareBuilder();
  3271. result.unpackedFloat_[index] = value;
  3272. return this;
  3273. }
  3274. public Builder AddUnpackedFloat(float value) {
  3275. PrepareBuilder();
  3276. result.unpackedFloat_.Add(value);
  3277. return this;
  3278. }
  3279. public Builder AddRangeUnpackedFloat(scg::IEnumerable<float> values) {
  3280. PrepareBuilder();
  3281. result.unpackedFloat_.Add(values);
  3282. return this;
  3283. }
  3284. public Builder ClearUnpackedFloat() {
  3285. PrepareBuilder();
  3286. result.unpackedFloat_.Clear();
  3287. return this;
  3288. }
  3289. public pbc::IPopsicleList<double> UnpackedDoubleList {
  3290. get { return PrepareBuilder().unpackedDouble_; }
  3291. }
  3292. public int UnpackedDoubleCount {
  3293. get { return result.UnpackedDoubleCount; }
  3294. }
  3295. public double GetUnpackedDouble(int index) {
  3296. return result.GetUnpackedDouble(index);
  3297. }
  3298. public Builder SetUnpackedDouble(int index, double value) {
  3299. PrepareBuilder();
  3300. result.unpackedDouble_[index] = value;
  3301. return this;
  3302. }
  3303. public Builder AddUnpackedDouble(double value) {
  3304. PrepareBuilder();
  3305. result.unpackedDouble_.Add(value);
  3306. return this;
  3307. }
  3308. public Builder AddRangeUnpackedDouble(scg::IEnumerable<double> values) {
  3309. PrepareBuilder();
  3310. result.unpackedDouble_.Add(values);
  3311. return this;
  3312. }
  3313. public Builder ClearUnpackedDouble() {
  3314. PrepareBuilder();
  3315. result.unpackedDouble_.Clear();
  3316. return this;
  3317. }
  3318. public pbc::IPopsicleList<bool> UnpackedBoolList {
  3319. get { return PrepareBuilder().unpackedBool_; }
  3320. }
  3321. public int UnpackedBoolCount {
  3322. get { return result.UnpackedBoolCount; }
  3323. }
  3324. public bool GetUnpackedBool(int index) {
  3325. return result.GetUnpackedBool(index);
  3326. }
  3327. public Builder SetUnpackedBool(int index, bool value) {
  3328. PrepareBuilder();
  3329. result.unpackedBool_[index] = value;
  3330. return this;
  3331. }
  3332. public Builder AddUnpackedBool(bool value) {
  3333. PrepareBuilder();
  3334. result.unpackedBool_.Add(value);
  3335. return this;
  3336. }
  3337. public Builder AddRangeUnpackedBool(scg::IEnumerable<bool> values) {
  3338. PrepareBuilder();
  3339. result.unpackedBool_.Add(values);
  3340. return this;
  3341. }
  3342. public Builder ClearUnpackedBool() {
  3343. PrepareBuilder();
  3344. result.unpackedBool_.Clear();
  3345. return this;
  3346. }
  3347. public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite> UnpackedEnumList {
  3348. get { return PrepareBuilder().unpackedEnum_; }
  3349. }
  3350. public int UnpackedEnumCount {
  3351. get { return result.UnpackedEnumCount; }
  3352. }
  3353. public global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite GetUnpackedEnum(int index) {
  3354. return result.GetUnpackedEnum(index);
  3355. }
  3356. public Builder SetUnpackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite value) {
  3357. PrepareBuilder();
  3358. result.unpackedEnum_[index] = value;
  3359. return this;
  3360. }
  3361. public Builder AddUnpackedEnum(global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite value) {
  3362. PrepareBuilder();
  3363. result.unpackedEnum_.Add(value);
  3364. return this;
  3365. }
  3366. public Builder AddRangeUnpackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite> values) {
  3367. PrepareBuilder();
  3368. result.unpackedEnum_.Add(values);
  3369. return this;
  3370. }
  3371. public Builder ClearUnpackedEnum() {
  3372. PrepareBuilder();
  3373. result.unpackedEnum_.Clear();
  3374. return this;
  3375. }
  3376. }
  3377. static TestUnpackedTypesLite() {
  3378. object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.Descriptor, null);
  3379. }
  3380. }
  3381. #endregion
  3382. }
  3383. #endregion Designer generated code