12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644 |
- // Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT!
- #pragma warning disable 1591, 0612
- #region Designer generated code
- using pb = global::Google.ProtocolBuffers;
- using pbc = global::Google.ProtocolBuffers.Collections;
- using pbd = global::Google.ProtocolBuffers.Descriptors;
- using scg = global::System.Collections.Generic;
- namespace Google.ProtocolBuffers.TestProtos {
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public static partial class UnitTestExtrasLiteProtoFile {
-
- #region Extension registration
- public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.EmployeeIdLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedInt32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedInt64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedUint32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedUint64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSint32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSint64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFixed32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFixed64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSfixed32ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSfixed64ExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFloatExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedDoubleExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedBoolExtensionLite);
- registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedEnumExtensionLite);
- }
- #endregion
- #region Extensions
- public const int EmployeeIdLiteFieldNumber = 126;
- public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite, global::Google.ProtocolBuffers.TestProtos.TestInteropEmployeeIdLite> EmployeeIdLite;
- public const int UnpackedInt32ExtensionLiteFieldNumber = 90;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedInt32ExtensionLite;
- public const int UnpackedInt64ExtensionLiteFieldNumber = 91;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedInt64ExtensionLite;
- public const int UnpackedUint32ExtensionLiteFieldNumber = 92;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint> UnpackedUint32ExtensionLite;
- public const int UnpackedUint64ExtensionLiteFieldNumber = 93;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong> UnpackedUint64ExtensionLite;
- public const int UnpackedSint32ExtensionLiteFieldNumber = 94;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedSint32ExtensionLite;
- public const int UnpackedSint64ExtensionLiteFieldNumber = 95;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedSint64ExtensionLite;
- public const int UnpackedFixed32ExtensionLiteFieldNumber = 96;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint> UnpackedFixed32ExtensionLite;
- public const int UnpackedFixed64ExtensionLiteFieldNumber = 97;
- [global::System.CLSCompliant(false)]
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong> UnpackedFixed64ExtensionLite;
- public const int UnpackedSfixed32ExtensionLiteFieldNumber = 98;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedSfixed32ExtensionLite;
- public const int UnpackedSfixed64ExtensionLiteFieldNumber = 99;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedSfixed64ExtensionLite;
- public const int UnpackedFloatExtensionLiteFieldNumber = 100;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, float> UnpackedFloatExtensionLite;
- public const int UnpackedDoubleExtensionLiteFieldNumber = 101;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, double> UnpackedDoubleExtensionLite;
- public const int UnpackedBoolExtensionLiteFieldNumber = 102;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, bool> UnpackedBoolExtensionLite;
- public const int UnpackedEnumExtensionLiteFieldNumber = 103;
- public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite> UnpackedEnumExtensionLite;
- #endregion
-
- #region Static variables
- #endregion
- #region Extensions
- internal static readonly object Descriptor;
- static UnitTestExtrasLiteProtoFile() {
- Descriptor = null;
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.EmployeeIdLite =
- new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite, global::Google.ProtocolBuffers.TestProtos.TestInteropEmployeeIdLite>(
- "protobuf_unittest_extra.employee_id_lite",
- global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.DefaultInstance,
- null,
- global::Google.ProtocolBuffers.TestProtos.TestInteropEmployeeIdLite.DefaultInstance,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.EmployeeIdLiteFieldNumber,
- pbd::FieldType.Message);
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedInt32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
- "protobuf_unittest_extra.unpacked_int32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedInt32ExtensionLiteFieldNumber,
- pbd::FieldType.Int32,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedInt64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
- "protobuf_unittest_extra.unpacked_int64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedInt64ExtensionLiteFieldNumber,
- pbd::FieldType.Int64,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedUint32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint>(
- "protobuf_unittest_extra.unpacked_uint32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedUint32ExtensionLiteFieldNumber,
- pbd::FieldType.UInt32,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedUint64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong>(
- "protobuf_unittest_extra.unpacked_uint64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedUint64ExtensionLiteFieldNumber,
- pbd::FieldType.UInt64,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSint32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
- "protobuf_unittest_extra.unpacked_sint32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSint32ExtensionLiteFieldNumber,
- pbd::FieldType.SInt32,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSint64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
- "protobuf_unittest_extra.unpacked_sint64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSint64ExtensionLiteFieldNumber,
- pbd::FieldType.SInt64,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFixed32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint>(
- "protobuf_unittest_extra.unpacked_fixed32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFixed32ExtensionLiteFieldNumber,
- pbd::FieldType.Fixed32,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFixed64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong>(
- "protobuf_unittest_extra.unpacked_fixed64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFixed64ExtensionLiteFieldNumber,
- pbd::FieldType.Fixed64,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSfixed32ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
- "protobuf_unittest_extra.unpacked_sfixed32_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSfixed32ExtensionLiteFieldNumber,
- pbd::FieldType.SFixed32,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSfixed64ExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
- "protobuf_unittest_extra.unpacked_sfixed64_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedSfixed64ExtensionLiteFieldNumber,
- pbd::FieldType.SFixed64,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFloatExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, float>(
- "protobuf_unittest_extra.unpacked_float_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedFloatExtensionLiteFieldNumber,
- pbd::FieldType.Float,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedDoubleExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, double>(
- "protobuf_unittest_extra.unpacked_double_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedDoubleExtensionLiteFieldNumber,
- pbd::FieldType.Double,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedBoolExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, bool>(
- "protobuf_unittest_extra.unpacked_bool_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
- null,
- null,
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedBoolExtensionLiteFieldNumber,
- pbd::FieldType.Bool,
- false);
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedEnumExtensionLite =
- new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite>(
- "protobuf_unittest_extra.unpacked_enum_extension_lite",
- global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
- null,
- new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite>(),
- global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.UnpackedEnumExtensionLiteFieldNumber,
- pbd::FieldType.Enum,
- false);
- }
- #endregion
-
- }
- #region Enums
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public enum ExtraEnum {
- DEFAULT = 10,
- EXLITE_FOO = 7,
- EXLITE_BAR = 8,
- EXLITE_BAZ = 9,
- }
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public enum UnpackedTypesForeignEnumLite {
- FOREIGN_LITE_FOO = 4,
- FOREIGN_LITE_BAR = 5,
- FOREIGN_LITE_BAZ = 6,
- }
-
- #endregion
-
- #region Messages
- [global::System.SerializableAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public sealed partial class TestRequiredLite : pb::GeneratedMessageLite<TestRequiredLite, TestRequiredLite.Builder> {
- private TestRequiredLite() { }
- private static readonly TestRequiredLite defaultInstance = new TestRequiredLite().MakeReadOnly();
- private static readonly string[] _testRequiredLiteFieldNames = new string[] { "d", "en" };
- private static readonly uint[] _testRequiredLiteFieldTags = new uint[] { 8, 16 };
- public static TestRequiredLite DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override TestRequiredLite DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override TestRequiredLite ThisMessage {
- get { return this; }
- }
-
- public const int DFieldNumber = 1;
- private bool hasD;
- private int d_;
- public bool HasD {
- get { return hasD; }
- }
- public int D {
- get { return d_; }
- }
-
- public const int EnFieldNumber = 2;
- private bool hasEn;
- private global::Google.ProtocolBuffers.TestProtos.ExtraEnum en_ = global::Google.ProtocolBuffers.TestProtos.ExtraEnum.DEFAULT;
- public bool HasEn {
- get { return hasEn; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ExtraEnum En {
- get { return en_; }
- }
-
- public override bool IsInitialized {
- get {
- if (!hasD) return false;
- if (!hasEn) return false;
- return true;
- }
- }
-
- public override void WriteTo(pb::ICodedOutputStream output) {
- int size = SerializedSize;
- string[] field_names = _testRequiredLiteFieldNames;
- if (hasD) {
- output.WriteInt32(1, field_names[0], D);
- }
- if (hasEn) {
- output.WriteEnum(2, field_names[1], (int) En, En);
- }
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasD) {
- size += pb::CodedOutputStream.ComputeInt32Size(1, D);
- }
- if (hasEn) {
- size += pb::CodedOutputStream.ComputeEnumSize(2, (int) En);
- }
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- if (hasD) hash ^= d_.GetHashCode();
- if (hasEn) hash ^= en_.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- TestRequiredLite other = obj as TestRequiredLite;
- if (other == null) return false;
- if (hasD != other.hasD || (hasD && !d_.Equals(other.d_))) return false;
- if (hasEn != other.hasEn || (hasEn && !en_.Equals(other.en_))) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("d", hasD, d_, writer);
- PrintField("en", hasEn, en_, writer);
- }
- #endregion
-
- public static TestRequiredLite ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestRequiredLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestRequiredLite ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestRequiredLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestRequiredLite ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestRequiredLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestRequiredLite ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestRequiredLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestRequiredLite ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestRequiredLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestRequiredLite MakeReadOnly() {
- return this;
- }
-
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestRequiredLite prototype) {
- return new Builder(prototype);
- }
-
- [global::System.SerializableAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<TestRequiredLite, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestRequiredLite cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private TestRequiredLite result;
-
- private TestRequiredLite PrepareBuilder() {
- if (resultIsReadOnly) {
- TestRequiredLite original = result;
- result = new TestRequiredLite();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override TestRequiredLite MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
-
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
-
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
-
- public override TestRequiredLite DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredLite.DefaultInstance; }
- }
-
- public override TestRequiredLite BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is TestRequiredLite) {
- return MergeFrom((TestRequiredLite) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(TestRequiredLite other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredLite.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasD) {
- D = other.D;
- }
- if (other.HasEn) {
- En = other.En;
- }
- return this;
- }
-
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testRequiredLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testRequiredLiteFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- case 8: {
- result.hasD = input.ReadInt32(ref result.d_);
- break;
- }
- case 16: {
- object unknown;
- if(input.ReadEnum(ref result.en_, out unknown)) {
- result.hasEn = true;
- } else if(unknown is int) {
- }
- break;
- }
- }
- }
-
- return this;
- }
-
-
- public bool HasD {
- get { return result.hasD; }
- }
- public int D {
- get { return result.D; }
- set { SetD(value); }
- }
- public Builder SetD(int value) {
- PrepareBuilder();
- result.hasD = true;
- result.d_ = value;
- return this;
- }
- public Builder ClearD() {
- PrepareBuilder();
- result.hasD = false;
- result.d_ = 0;
- return this;
- }
-
- public bool HasEn {
- get { return result.hasEn; }
- }
- public global::Google.ProtocolBuffers.TestProtos.ExtraEnum En {
- get { return result.En; }
- set { SetEn(value); }
- }
- public Builder SetEn(global::Google.ProtocolBuffers.TestProtos.ExtraEnum value) {
- PrepareBuilder();
- result.hasEn = true;
- result.en_ = value;
- return this;
- }
- public Builder ClearEn() {
- PrepareBuilder();
- result.hasEn = false;
- result.en_ = global::Google.ProtocolBuffers.TestProtos.ExtraEnum.DEFAULT;
- return this;
- }
- }
- static TestRequiredLite() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.SerializableAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public sealed partial class TestInteropPersonLite : pb::ExtendableMessageLite<TestInteropPersonLite, TestInteropPersonLite.Builder> {
- private TestInteropPersonLite() { }
- private static readonly TestInteropPersonLite defaultInstance = new TestInteropPersonLite().MakeReadOnly();
- private static readonly string[] _testInteropPersonLiteFieldNames = new string[] { "addresses", "codes", "email", "id", "name", "phone" };
- private static readonly uint[] _testInteropPersonLiteFieldTags = new uint[] { 43, 82, 26, 16, 10, 34 };
- public static TestInteropPersonLite DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override TestInteropPersonLite DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override TestInteropPersonLite ThisMessage {
- get { return this; }
- }
-
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public static class Types {
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public enum PhoneType {
- MOBILE = 0,
- HOME = 1,
- WORK = 2,
- }
-
- [global::System.SerializableAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public sealed partial class PhoneNumber : pb::GeneratedMessageLite<PhoneNumber, PhoneNumber.Builder> {
- private PhoneNumber() { }
- private static readonly PhoneNumber defaultInstance = new PhoneNumber().MakeReadOnly();
- private static readonly string[] _phoneNumberFieldNames = new string[] { "number", "type" };
- private static readonly uint[] _phoneNumberFieldTags = new uint[] { 10, 16 };
- public static PhoneNumber DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override PhoneNumber DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override PhoneNumber ThisMessage {
- get { return this; }
- }
-
- public const int NumberFieldNumber = 1;
- private bool hasNumber;
- private string number_ = "";
- public bool HasNumber {
- get { return hasNumber; }
- }
- public string Number {
- get { return number_; }
- }
-
- public const int TypeFieldNumber = 2;
- private bool hasType;
- private global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType type_ = global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType.HOME;
- public bool HasType {
- get { return hasType; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType Type {
- get { return type_; }
- }
-
- public override bool IsInitialized {
- get {
- if (!hasNumber) return false;
- return true;
- }
- }
-
- public override void WriteTo(pb::ICodedOutputStream output) {
- int size = SerializedSize;
- string[] field_names = _phoneNumberFieldNames;
- if (hasNumber) {
- output.WriteString(1, field_names[0], Number);
- }
- if (hasType) {
- output.WriteEnum(2, field_names[1], (int) Type, Type);
- }
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasNumber) {
- size += pb::CodedOutputStream.ComputeStringSize(1, Number);
- }
- if (hasType) {
- size += pb::CodedOutputStream.ComputeEnumSize(2, (int) Type);
- }
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- if (hasNumber) hash ^= number_.GetHashCode();
- if (hasType) hash ^= type_.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- PhoneNumber other = obj as PhoneNumber;
- if (other == null) return false;
- if (hasNumber != other.hasNumber || (hasNumber && !number_.Equals(other.number_))) return false;
- if (hasType != other.hasType || (hasType && !type_.Equals(other.type_))) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("number", hasNumber, number_, writer);
- PrintField("type", hasType, type_, writer);
- }
- #endregion
-
- public static PhoneNumber ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static PhoneNumber ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static PhoneNumber ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static PhoneNumber ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static PhoneNumber ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static PhoneNumber ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static PhoneNumber ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static PhoneNumber ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static PhoneNumber ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static PhoneNumber ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private PhoneNumber MakeReadOnly() {
- return this;
- }
-
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(PhoneNumber prototype) {
- return new Builder(prototype);
- }
-
- [global::System.SerializableAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<PhoneNumber, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(PhoneNumber cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private PhoneNumber result;
-
- private PhoneNumber PrepareBuilder() {
- if (resultIsReadOnly) {
- PhoneNumber original = result;
- result = new PhoneNumber();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override PhoneNumber MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
-
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
-
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
-
- public override PhoneNumber DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.DefaultInstance; }
- }
-
- public override PhoneNumber BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is PhoneNumber) {
- return MergeFrom((PhoneNumber) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(PhoneNumber other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasNumber) {
- Number = other.Number;
- }
- if (other.HasType) {
- Type = other.Type;
- }
- return this;
- }
-
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_phoneNumberFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _phoneNumberFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- result.hasNumber = input.ReadString(ref result.number_);
- break;
- }
- case 16: {
- object unknown;
- if(input.ReadEnum(ref result.type_, out unknown)) {
- result.hasType = true;
- } else if(unknown is int) {
- }
- break;
- }
- }
- }
-
- return this;
- }
-
-
- public bool HasNumber {
- get { return result.hasNumber; }
- }
- public string Number {
- get { return result.Number; }
- set { SetNumber(value); }
- }
- public Builder SetNumber(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasNumber = true;
- result.number_ = value;
- return this;
- }
- public Builder ClearNumber() {
- PrepareBuilder();
- result.hasNumber = false;
- result.number_ = "";
- return this;
- }
-
- public bool HasType {
- get { return result.hasType; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType Type {
- get { return result.Type; }
- set { SetType(value); }
- }
- public Builder SetType(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType value) {
- PrepareBuilder();
- result.hasType = true;
- result.type_ = value;
- return this;
- }
- public Builder ClearType() {
- PrepareBuilder();
- result.hasType = false;
- result.type_ = global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType.HOME;
- return this;
- }
- }
- static PhoneNumber() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.SerializableAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public sealed partial class Addresses : pb::GeneratedMessageLite<Addresses, Addresses.Builder> {
- private Addresses() { }
- private static readonly Addresses defaultInstance = new Addresses().MakeReadOnly();
- private static readonly string[] _addressesFieldNames = new string[] { "address", "address2", "city", "state", "zip" };
- private static readonly uint[] _addressesFieldTags = new uint[] { 10, 18, 26, 34, 45 };
- public static Addresses DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override Addresses DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override Addresses ThisMessage {
- get { return this; }
- }
-
- public const int AddressFieldNumber = 1;
- private bool hasAddress;
- private string address_ = "";
- public bool HasAddress {
- get { return hasAddress; }
- }
- public string Address {
- get { return address_; }
- }
-
- public const int Address2FieldNumber = 2;
- private bool hasAddress2;
- private string address2_ = "";
- public bool HasAddress2 {
- get { return hasAddress2; }
- }
- public string Address2 {
- get { return address2_; }
- }
-
- public const int CityFieldNumber = 3;
- private bool hasCity;
- private string city_ = "";
- public bool HasCity {
- get { return hasCity; }
- }
- public string City {
- get { return city_; }
- }
-
- public const int StateFieldNumber = 4;
- private bool hasState;
- private string state_ = "";
- public bool HasState {
- get { return hasState; }
- }
- public string State {
- get { return state_; }
- }
-
- public const int ZipFieldNumber = 5;
- private bool hasZip;
- private uint zip_;
- public bool HasZip {
- get { return hasZip; }
- }
- [global::System.CLSCompliant(false)]
- public uint Zip {
- get { return zip_; }
- }
-
- public override bool IsInitialized {
- get {
- if (!hasAddress) return false;
- if (!hasCity) return false;
- if (!hasState) return false;
- if (!hasZip) return false;
- return true;
- }
- }
-
- public override void WriteTo(pb::ICodedOutputStream output) {
- int size = SerializedSize;
- string[] field_names = _addressesFieldNames;
- if (hasAddress) {
- output.WriteString(1, field_names[0], Address);
- }
- if (hasAddress2) {
- output.WriteString(2, field_names[1], Address2);
- }
- if (hasCity) {
- output.WriteString(3, field_names[2], City);
- }
- if (hasState) {
- output.WriteString(4, field_names[3], State);
- }
- if (hasZip) {
- output.WriteFixed32(5, field_names[4], Zip);
- }
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasAddress) {
- size += pb::CodedOutputStream.ComputeStringSize(1, Address);
- }
- if (hasAddress2) {
- size += pb::CodedOutputStream.ComputeStringSize(2, Address2);
- }
- if (hasCity) {
- size += pb::CodedOutputStream.ComputeStringSize(3, City);
- }
- if (hasState) {
- size += pb::CodedOutputStream.ComputeStringSize(4, State);
- }
- if (hasZip) {
- size += pb::CodedOutputStream.ComputeFixed32Size(5, Zip);
- }
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- if (hasAddress) hash ^= address_.GetHashCode();
- if (hasAddress2) hash ^= address2_.GetHashCode();
- if (hasCity) hash ^= city_.GetHashCode();
- if (hasState) hash ^= state_.GetHashCode();
- if (hasZip) hash ^= zip_.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- Addresses other = obj as Addresses;
- if (other == null) return false;
- if (hasAddress != other.hasAddress || (hasAddress && !address_.Equals(other.address_))) return false;
- if (hasAddress2 != other.hasAddress2 || (hasAddress2 && !address2_.Equals(other.address2_))) return false;
- if (hasCity != other.hasCity || (hasCity && !city_.Equals(other.city_))) return false;
- if (hasState != other.hasState || (hasState && !state_.Equals(other.state_))) return false;
- if (hasZip != other.hasZip || (hasZip && !zip_.Equals(other.zip_))) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("address", hasAddress, address_, writer);
- PrintField("address2", hasAddress2, address2_, writer);
- PrintField("city", hasCity, city_, writer);
- PrintField("state", hasState, state_, writer);
- PrintField("zip", hasZip, zip_, writer);
- }
- #endregion
-
- public static Addresses ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Addresses ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Addresses ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Addresses ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Addresses ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Addresses ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Addresses ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Addresses ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Addresses ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Addresses ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private Addresses MakeReadOnly() {
- return this;
- }
-
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Addresses prototype) {
- return new Builder(prototype);
- }
-
- [global::System.SerializableAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<Addresses, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(Addresses cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private Addresses result;
-
- private Addresses PrepareBuilder() {
- if (resultIsReadOnly) {
- Addresses original = result;
- result = new Addresses();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override Addresses MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
-
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
-
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
-
- public override Addresses DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.DefaultInstance; }
- }
-
- public override Addresses BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is Addresses) {
- return MergeFrom((Addresses) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(Addresses other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasAddress) {
- Address = other.Address;
- }
- if (other.HasAddress2) {
- Address2 = other.Address2;
- }
- if (other.HasCity) {
- City = other.City;
- }
- if (other.HasState) {
- State = other.State;
- }
- if (other.HasZip) {
- Zip = other.Zip;
- }
- return this;
- }
-
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_addressesFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _addressesFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- result.hasAddress = input.ReadString(ref result.address_);
- break;
- }
- case 18: {
- result.hasAddress2 = input.ReadString(ref result.address2_);
- break;
- }
- case 26: {
- result.hasCity = input.ReadString(ref result.city_);
- break;
- }
- case 34: {
- result.hasState = input.ReadString(ref result.state_);
- break;
- }
- case 45: {
- result.hasZip = input.ReadFixed32(ref result.zip_);
- break;
- }
- }
- }
-
- return this;
- }
-
-
- public bool HasAddress {
- get { return result.hasAddress; }
- }
- public string Address {
- get { return result.Address; }
- set { SetAddress(value); }
- }
- public Builder SetAddress(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasAddress = true;
- result.address_ = value;
- return this;
- }
- public Builder ClearAddress() {
- PrepareBuilder();
- result.hasAddress = false;
- result.address_ = "";
- return this;
- }
-
- public bool HasAddress2 {
- get { return result.hasAddress2; }
- }
- public string Address2 {
- get { return result.Address2; }
- set { SetAddress2(value); }
- }
- public Builder SetAddress2(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasAddress2 = true;
- result.address2_ = value;
- return this;
- }
- public Builder ClearAddress2() {
- PrepareBuilder();
- result.hasAddress2 = false;
- result.address2_ = "";
- return this;
- }
-
- public bool HasCity {
- get { return result.hasCity; }
- }
- public string City {
- get { return result.City; }
- set { SetCity(value); }
- }
- public Builder SetCity(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasCity = true;
- result.city_ = value;
- return this;
- }
- public Builder ClearCity() {
- PrepareBuilder();
- result.hasCity = false;
- result.city_ = "";
- return this;
- }
-
- public bool HasState {
- get { return result.hasState; }
- }
- public string State {
- get { return result.State; }
- set { SetState(value); }
- }
- public Builder SetState(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasState = true;
- result.state_ = value;
- return this;
- }
- public Builder ClearState() {
- PrepareBuilder();
- result.hasState = false;
- result.state_ = "";
- return this;
- }
-
- public bool HasZip {
- get { return result.hasZip; }
- }
- [global::System.CLSCompliant(false)]
- public uint Zip {
- get { return result.Zip; }
- set { SetZip(value); }
- }
- [global::System.CLSCompliant(false)]
- public Builder SetZip(uint value) {
- PrepareBuilder();
- result.hasZip = true;
- result.zip_ = value;
- return this;
- }
- public Builder ClearZip() {
- PrepareBuilder();
- result.hasZip = false;
- result.zip_ = 0;
- return this;
- }
- }
- static Addresses() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.Descriptor, null);
- }
- }
-
- }
- #endregion
-
- public const int NameFieldNumber = 1;
- private bool hasName;
- private string name_ = "";
- public bool HasName {
- get { return hasName; }
- }
- public string Name {
- get { return name_; }
- }
-
- public const int IdFieldNumber = 2;
- private bool hasId;
- private int id_;
- public bool HasId {
- get { return hasId; }
- }
- public int Id {
- get { return id_; }
- }
-
- public const int EmailFieldNumber = 3;
- private bool hasEmail;
- private string email_ = "";
- public bool HasEmail {
- get { return hasEmail; }
- }
- public string Email {
- get { return email_; }
- }
-
- public const int CodesFieldNumber = 10;
- private int codesMemoizedSerializedSize;
- private pbc::PopsicleList<int> codes_ = new pbc::PopsicleList<int>();
- public scg::IList<int> CodesList {
- get { return pbc::Lists.AsReadOnly(codes_); }
- }
- public int CodesCount {
- get { return codes_.Count; }
- }
- public int GetCodes(int index) {
- return codes_[index];
- }
-
- public const int PhoneFieldNumber = 4;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber> phone_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber> PhoneList {
- get { return phone_; }
- }
- public int PhoneCount {
- get { return phone_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber GetPhone(int index) {
- return phone_[index];
- }
-
- public const int AddressesFieldNumber = 5;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses> addresses_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses> AddressesList {
- get { return addresses_; }
- }
- public int AddressesCount {
- get { return addresses_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses GetAddresses(int index) {
- return addresses_[index];
- }
-
- public override bool IsInitialized {
- get {
- if (!hasName) return false;
- if (!hasId) return false;
- foreach (global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber element in PhoneList) {
- if (!element.IsInitialized) return false;
- }
- if (!ExtensionsAreInitialized) return false;
- return true;
- }
- }
-
- public override void WriteTo(pb::ICodedOutputStream output) {
- int size = SerializedSize;
- string[] field_names = _testInteropPersonLiteFieldNames;
- pb::ExtendableMessageLite<TestInteropPersonLite, TestInteropPersonLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
- if (hasName) {
- output.WriteString(1, field_names[4], Name);
- }
- if (hasId) {
- output.WriteInt32(2, field_names[3], Id);
- }
- if (hasEmail) {
- output.WriteString(3, field_names[2], Email);
- }
- if (phone_.Count > 0) {
- output.WriteMessageArray(4, field_names[5], phone_);
- }
- if (addresses_.Count > 0) {
- output.WriteGroupArray(5, field_names[0], addresses_);
- }
- if (codes_.Count > 0) {
- output.WritePackedInt32Array(10, field_names[1], codesMemoizedSerializedSize, codes_);
- }
- extensionWriter.WriteUntil(200, output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasName) {
- size += pb::CodedOutputStream.ComputeStringSize(1, Name);
- }
- if (hasId) {
- size += pb::CodedOutputStream.ComputeInt32Size(2, Id);
- }
- if (hasEmail) {
- size += pb::CodedOutputStream.ComputeStringSize(3, Email);
- }
- {
- int dataSize = 0;
- foreach (int element in CodesList) {
- dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
- }
- size += dataSize;
- if (codes_.Count != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
- }
- codesMemoizedSerializedSize = dataSize;
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber element in PhoneList) {
- size += pb::CodedOutputStream.ComputeMessageSize(4, element);
- }
- foreach (global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses element in AddressesList) {
- size += pb::CodedOutputStream.ComputeGroupSize(5, element);
- }
- size += ExtensionsSerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- if (hasName) hash ^= name_.GetHashCode();
- if (hasId) hash ^= id_.GetHashCode();
- if (hasEmail) hash ^= email_.GetHashCode();
- foreach(int i in codes_)
- hash ^= i.GetHashCode();
- foreach(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber i in phone_)
- hash ^= i.GetHashCode();
- foreach(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses i in addresses_)
- hash ^= i.GetHashCode();
- hash ^= base.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- TestInteropPersonLite other = obj as TestInteropPersonLite;
- if (other == null) return false;
- if (hasName != other.hasName || (hasName && !name_.Equals(other.name_))) return false;
- if (hasId != other.hasId || (hasId && !id_.Equals(other.id_))) return false;
- if (hasEmail != other.hasEmail || (hasEmail && !email_.Equals(other.email_))) return false;
- if(codes_.Count != other.codes_.Count) return false;
- for(int ix=0; ix < codes_.Count; ix++)
- if(!codes_[ix].Equals(other.codes_[ix])) return false;
- if(phone_.Count != other.phone_.Count) return false;
- for(int ix=0; ix < phone_.Count; ix++)
- if(!phone_[ix].Equals(other.phone_[ix])) return false;
- if(addresses_.Count != other.addresses_.Count) return false;
- for(int ix=0; ix < addresses_.Count; ix++)
- if(!addresses_[ix].Equals(other.addresses_[ix])) return false;
- if (!base.Equals(other)) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("name", hasName, name_, writer);
- PrintField("id", hasId, id_, writer);
- PrintField("email", hasEmail, email_, writer);
- PrintField("phone", phone_, writer);
- PrintField("Addresses", addresses_, writer);
- PrintField("codes", codes_, writer);
- base.PrintTo(writer);
- }
- #endregion
-
- public static TestInteropPersonLite ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestInteropPersonLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestInteropPersonLite ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestInteropPersonLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestInteropPersonLite ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestInteropPersonLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestInteropPersonLite ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestInteropPersonLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestInteropPersonLite ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestInteropPersonLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestInteropPersonLite MakeReadOnly() {
- codes_.MakeReadOnly();
- phone_.MakeReadOnly();
- addresses_.MakeReadOnly();
- return this;
- }
-
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestInteropPersonLite prototype) {
- return new Builder(prototype);
- }
-
- [global::System.SerializableAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public sealed partial class Builder : pb::ExtendableBuilderLite<TestInteropPersonLite, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestInteropPersonLite cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private TestInteropPersonLite result;
-
- private TestInteropPersonLite PrepareBuilder() {
- if (resultIsReadOnly) {
- TestInteropPersonLite original = result;
- result = new TestInteropPersonLite();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override TestInteropPersonLite MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
-
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
-
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
-
- public override TestInteropPersonLite DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.DefaultInstance; }
- }
-
- public override TestInteropPersonLite BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is TestInteropPersonLite) {
- return MergeFrom((TestInteropPersonLite) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(TestInteropPersonLite other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasName) {
- Name = other.Name;
- }
- if (other.HasId) {
- Id = other.Id;
- }
- if (other.HasEmail) {
- Email = other.Email;
- }
- if (other.codes_.Count != 0) {
- result.codes_.Add(other.codes_);
- }
- if (other.phone_.Count != 0) {
- result.phone_.Add(other.phone_);
- }
- if (other.addresses_.Count != 0) {
- result.addresses_.Add(other.addresses_);
- }
- this.MergeExtensionFields(other);
- return this;
- }
-
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testInteropPersonLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testInteropPersonLiteFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- result.hasName = input.ReadString(ref result.name_);
- break;
- }
- case 16: {
- result.hasId = input.ReadInt32(ref result.id_);
- break;
- }
- case 26: {
- result.hasEmail = input.ReadString(ref result.email_);
- break;
- }
- case 34: {
- input.ReadMessageArray(tag, field_name, result.phone_, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.DefaultInstance, extensionRegistry);
- break;
- }
- case 43: {
- input.ReadGroupArray(tag, field_name, result.addresses_, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.DefaultInstance, extensionRegistry);
- break;
- }
- case 82:
- case 80: {
- input.ReadInt32Array(tag, field_name, result.codes_);
- break;
- }
- }
- }
-
- return this;
- }
-
-
- public bool HasName {
- get { return result.hasName; }
- }
- public string Name {
- get { return result.Name; }
- set { SetName(value); }
- }
- public Builder SetName(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasName = true;
- result.name_ = value;
- return this;
- }
- public Builder ClearName() {
- PrepareBuilder();
- result.hasName = false;
- result.name_ = "";
- return this;
- }
-
- public bool HasId {
- get { return result.hasId; }
- }
- public int Id {
- get { return result.Id; }
- set { SetId(value); }
- }
- public Builder SetId(int value) {
- PrepareBuilder();
- result.hasId = true;
- result.id_ = value;
- return this;
- }
- public Builder ClearId() {
- PrepareBuilder();
- result.hasId = false;
- result.id_ = 0;
- return this;
- }
-
- public bool HasEmail {
- get { return result.hasEmail; }
- }
- public string Email {
- get { return result.Email; }
- set { SetEmail(value); }
- }
- public Builder SetEmail(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasEmail = true;
- result.email_ = value;
- return this;
- }
- public Builder ClearEmail() {
- PrepareBuilder();
- result.hasEmail = false;
- result.email_ = "";
- return this;
- }
-
- public pbc::IPopsicleList<int> CodesList {
- get { return PrepareBuilder().codes_; }
- }
- public int CodesCount {
- get { return result.CodesCount; }
- }
- public int GetCodes(int index) {
- return result.GetCodes(index);
- }
- public Builder SetCodes(int index, int value) {
- PrepareBuilder();
- result.codes_[index] = value;
- return this;
- }
- public Builder AddCodes(int value) {
- PrepareBuilder();
- result.codes_.Add(value);
- return this;
- }
- public Builder AddRangeCodes(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.codes_.Add(values);
- return this;
- }
- public Builder ClearCodes() {
- PrepareBuilder();
- result.codes_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber> PhoneList {
- get { return PrepareBuilder().phone_; }
- }
- public int PhoneCount {
- get { return result.PhoneCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber GetPhone(int index) {
- return result.GetPhone(index);
- }
- public Builder SetPhone(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.phone_[index] = value;
- return this;
- }
- public Builder SetPhone(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.phone_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddPhone(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.phone_.Add(value);
- return this;
- }
- public Builder AddPhone(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.phone_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangePhone(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber> values) {
- PrepareBuilder();
- result.phone_.Add(values);
- return this;
- }
- public Builder ClearPhone() {
- PrepareBuilder();
- result.phone_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses> AddressesList {
- get { return PrepareBuilder().addresses_; }
- }
- public int AddressesCount {
- get { return result.AddressesCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses GetAddresses(int index) {
- return result.GetAddresses(index);
- }
- public Builder SetAddresses(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.addresses_[index] = value;
- return this;
- }
- public Builder SetAddresses(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.addresses_[index] = builderForValue.Build();
- return this;
- }
- public Builder AddAddresses(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.addresses_.Add(value);
- return this;
- }
- public Builder AddAddresses(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- PrepareBuilder();
- result.addresses_.Add(builderForValue.Build());
- return this;
- }
- public Builder AddRangeAddresses(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses> values) {
- PrepareBuilder();
- result.addresses_.Add(values);
- return this;
- }
- public Builder ClearAddresses() {
- PrepareBuilder();
- result.addresses_.Clear();
- return this;
- }
- }
- static TestInteropPersonLite() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.SerializableAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public sealed partial class TestInteropEmployeeIdLite : pb::GeneratedMessageLite<TestInteropEmployeeIdLite, TestInteropEmployeeIdLite.Builder> {
- private TestInteropEmployeeIdLite() { }
- private static readonly TestInteropEmployeeIdLite defaultInstance = new TestInteropEmployeeIdLite().MakeReadOnly();
- private static readonly string[] _testInteropEmployeeIdLiteFieldNames = new string[] { "number" };
- private static readonly uint[] _testInteropEmployeeIdLiteFieldTags = new uint[] { 10 };
- public static TestInteropEmployeeIdLite DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override TestInteropEmployeeIdLite DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override TestInteropEmployeeIdLite ThisMessage {
- get { return this; }
- }
-
- public const int NumberFieldNumber = 1;
- private bool hasNumber;
- private string number_ = "";
- public bool HasNumber {
- get { return hasNumber; }
- }
- public string Number {
- get { return number_; }
- }
-
- public override bool IsInitialized {
- get {
- if (!hasNumber) return false;
- return true;
- }
- }
-
- public override void WriteTo(pb::ICodedOutputStream output) {
- int size = SerializedSize;
- string[] field_names = _testInteropEmployeeIdLiteFieldNames;
- if (hasNumber) {
- output.WriteString(1, field_names[0], Number);
- }
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasNumber) {
- size += pb::CodedOutputStream.ComputeStringSize(1, Number);
- }
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- if (hasNumber) hash ^= number_.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- TestInteropEmployeeIdLite other = obj as TestInteropEmployeeIdLite;
- if (other == null) return false;
- if (hasNumber != other.hasNumber || (hasNumber && !number_.Equals(other.number_))) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("number", hasNumber, number_, writer);
- }
- #endregion
-
- public static TestInteropEmployeeIdLite ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestInteropEmployeeIdLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestInteropEmployeeIdLite ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestInteropEmployeeIdLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestInteropEmployeeIdLite ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestInteropEmployeeIdLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestInteropEmployeeIdLite ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestInteropEmployeeIdLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestInteropEmployeeIdLite ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestInteropEmployeeIdLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestInteropEmployeeIdLite MakeReadOnly() {
- return this;
- }
-
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestInteropEmployeeIdLite prototype) {
- return new Builder(prototype);
- }
-
- [global::System.SerializableAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<TestInteropEmployeeIdLite, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestInteropEmployeeIdLite cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private TestInteropEmployeeIdLite result;
-
- private TestInteropEmployeeIdLite PrepareBuilder() {
- if (resultIsReadOnly) {
- TestInteropEmployeeIdLite original = result;
- result = new TestInteropEmployeeIdLite();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override TestInteropEmployeeIdLite MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
-
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
-
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
-
- public override TestInteropEmployeeIdLite DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestInteropEmployeeIdLite.DefaultInstance; }
- }
-
- public override TestInteropEmployeeIdLite BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is TestInteropEmployeeIdLite) {
- return MergeFrom((TestInteropEmployeeIdLite) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(TestInteropEmployeeIdLite other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropEmployeeIdLite.DefaultInstance) return this;
- PrepareBuilder();
- if (other.HasNumber) {
- Number = other.Number;
- }
- return this;
- }
-
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testInteropEmployeeIdLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testInteropEmployeeIdLiteFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- case 10: {
- result.hasNumber = input.ReadString(ref result.number_);
- break;
- }
- }
- }
-
- return this;
- }
-
-
- public bool HasNumber {
- get { return result.hasNumber; }
- }
- public string Number {
- get { return result.Number; }
- set { SetNumber(value); }
- }
- public Builder SetNumber(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- PrepareBuilder();
- result.hasNumber = true;
- result.number_ = value;
- return this;
- }
- public Builder ClearNumber() {
- PrepareBuilder();
- result.hasNumber = false;
- result.number_ = "";
- return this;
- }
- }
- static TestInteropEmployeeIdLite() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.SerializableAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public sealed partial class TestUnpackedExtensionsLite : pb::ExtendableMessageLite<TestUnpackedExtensionsLite, TestUnpackedExtensionsLite.Builder> {
- private TestUnpackedExtensionsLite() { }
- private static readonly TestUnpackedExtensionsLite defaultInstance = new TestUnpackedExtensionsLite().MakeReadOnly();
- private static readonly string[] _testUnpackedExtensionsLiteFieldNames = new string[] { };
- private static readonly uint[] _testUnpackedExtensionsLiteFieldTags = new uint[] { };
- public static TestUnpackedExtensionsLite DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override TestUnpackedExtensionsLite DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override TestUnpackedExtensionsLite ThisMessage {
- get { return this; }
- }
-
- public override bool IsInitialized {
- get {
- if (!ExtensionsAreInitialized) return false;
- return true;
- }
- }
-
- public override void WriteTo(pb::ICodedOutputStream output) {
- int size = SerializedSize;
- string[] field_names = _testUnpackedExtensionsLiteFieldNames;
- pb::ExtendableMessageLite<TestUnpackedExtensionsLite, TestUnpackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
- extensionWriter.WriteUntil(536870912, output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- size += ExtensionsSerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- hash ^= base.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- TestUnpackedExtensionsLite other = obj as TestUnpackedExtensionsLite;
- if (other == null) return false;
- if (!base.Equals(other)) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- base.PrintTo(writer);
- }
- #endregion
-
- public static TestUnpackedExtensionsLite ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestUnpackedExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestUnpackedExtensionsLite ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestUnpackedExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestUnpackedExtensionsLite ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestUnpackedExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestUnpackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestUnpackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestUnpackedExtensionsLite ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestUnpackedExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestUnpackedExtensionsLite MakeReadOnly() {
- return this;
- }
-
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestUnpackedExtensionsLite prototype) {
- return new Builder(prototype);
- }
-
- [global::System.SerializableAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public sealed partial class Builder : pb::ExtendableBuilderLite<TestUnpackedExtensionsLite, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestUnpackedExtensionsLite cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private TestUnpackedExtensionsLite result;
-
- private TestUnpackedExtensionsLite PrepareBuilder() {
- if (resultIsReadOnly) {
- TestUnpackedExtensionsLite original = result;
- result = new TestUnpackedExtensionsLite();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override TestUnpackedExtensionsLite MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
-
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
-
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
-
- public override TestUnpackedExtensionsLite DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance; }
- }
-
- public override TestUnpackedExtensionsLite BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is TestUnpackedExtensionsLite) {
- return MergeFrom((TestUnpackedExtensionsLite) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(TestUnpackedExtensionsLite other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance) return this;
- PrepareBuilder();
- this.MergeExtensionFields(other);
- return this;
- }
-
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testUnpackedExtensionsLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testUnpackedExtensionsLiteFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- }
- }
-
- return this;
- }
-
- }
- static TestUnpackedExtensionsLite() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.Descriptor, null);
- }
- }
-
- [global::System.SerializableAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public sealed partial class TestUnpackedTypesLite : pb::GeneratedMessageLite<TestUnpackedTypesLite, TestUnpackedTypesLite.Builder> {
- private TestUnpackedTypesLite() { }
- private static readonly TestUnpackedTypesLite defaultInstance = new TestUnpackedTypesLite().MakeReadOnly();
- 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" };
- private static readonly uint[] _testUnpackedTypesLiteFieldTags = new uint[] { 816, 809, 824, 773, 777, 805, 720, 728, 789, 793, 752, 760, 736, 744 };
- public static TestUnpackedTypesLite DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override TestUnpackedTypesLite DefaultInstanceForType {
- get { return DefaultInstance; }
- }
-
- protected override TestUnpackedTypesLite ThisMessage {
- get { return this; }
- }
-
- public const int UnpackedInt32FieldNumber = 90;
- private pbc::PopsicleList<int> unpackedInt32_ = new pbc::PopsicleList<int>();
- public scg::IList<int> UnpackedInt32List {
- get { return pbc::Lists.AsReadOnly(unpackedInt32_); }
- }
- public int UnpackedInt32Count {
- get { return unpackedInt32_.Count; }
- }
- public int GetUnpackedInt32(int index) {
- return unpackedInt32_[index];
- }
-
- public const int UnpackedInt64FieldNumber = 91;
- private pbc::PopsicleList<long> unpackedInt64_ = new pbc::PopsicleList<long>();
- public scg::IList<long> UnpackedInt64List {
- get { return pbc::Lists.AsReadOnly(unpackedInt64_); }
- }
- public int UnpackedInt64Count {
- get { return unpackedInt64_.Count; }
- }
- public long GetUnpackedInt64(int index) {
- return unpackedInt64_[index];
- }
-
- public const int UnpackedUint32FieldNumber = 92;
- private pbc::PopsicleList<uint> unpackedUint32_ = new pbc::PopsicleList<uint>();
- [global::System.CLSCompliant(false)]
- public scg::IList<uint> UnpackedUint32List {
- get { return pbc::Lists.AsReadOnly(unpackedUint32_); }
- }
- public int UnpackedUint32Count {
- get { return unpackedUint32_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetUnpackedUint32(int index) {
- return unpackedUint32_[index];
- }
-
- public const int UnpackedUint64FieldNumber = 93;
- private pbc::PopsicleList<ulong> unpackedUint64_ = new pbc::PopsicleList<ulong>();
- [global::System.CLSCompliant(false)]
- public scg::IList<ulong> UnpackedUint64List {
- get { return pbc::Lists.AsReadOnly(unpackedUint64_); }
- }
- public int UnpackedUint64Count {
- get { return unpackedUint64_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetUnpackedUint64(int index) {
- return unpackedUint64_[index];
- }
-
- public const int UnpackedSint32FieldNumber = 94;
- private pbc::PopsicleList<int> unpackedSint32_ = new pbc::PopsicleList<int>();
- public scg::IList<int> UnpackedSint32List {
- get { return pbc::Lists.AsReadOnly(unpackedSint32_); }
- }
- public int UnpackedSint32Count {
- get { return unpackedSint32_.Count; }
- }
- public int GetUnpackedSint32(int index) {
- return unpackedSint32_[index];
- }
-
- public const int UnpackedSint64FieldNumber = 95;
- private pbc::PopsicleList<long> unpackedSint64_ = new pbc::PopsicleList<long>();
- public scg::IList<long> UnpackedSint64List {
- get { return pbc::Lists.AsReadOnly(unpackedSint64_); }
- }
- public int UnpackedSint64Count {
- get { return unpackedSint64_.Count; }
- }
- public long GetUnpackedSint64(int index) {
- return unpackedSint64_[index];
- }
-
- public const int UnpackedFixed32FieldNumber = 96;
- private pbc::PopsicleList<uint> unpackedFixed32_ = new pbc::PopsicleList<uint>();
- [global::System.CLSCompliant(false)]
- public scg::IList<uint> UnpackedFixed32List {
- get { return pbc::Lists.AsReadOnly(unpackedFixed32_); }
- }
- public int UnpackedFixed32Count {
- get { return unpackedFixed32_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetUnpackedFixed32(int index) {
- return unpackedFixed32_[index];
- }
-
- public const int UnpackedFixed64FieldNumber = 97;
- private pbc::PopsicleList<ulong> unpackedFixed64_ = new pbc::PopsicleList<ulong>();
- [global::System.CLSCompliant(false)]
- public scg::IList<ulong> UnpackedFixed64List {
- get { return pbc::Lists.AsReadOnly(unpackedFixed64_); }
- }
- public int UnpackedFixed64Count {
- get { return unpackedFixed64_.Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetUnpackedFixed64(int index) {
- return unpackedFixed64_[index];
- }
-
- public const int UnpackedSfixed32FieldNumber = 98;
- private pbc::PopsicleList<int> unpackedSfixed32_ = new pbc::PopsicleList<int>();
- public scg::IList<int> UnpackedSfixed32List {
- get { return pbc::Lists.AsReadOnly(unpackedSfixed32_); }
- }
- public int UnpackedSfixed32Count {
- get { return unpackedSfixed32_.Count; }
- }
- public int GetUnpackedSfixed32(int index) {
- return unpackedSfixed32_[index];
- }
-
- public const int UnpackedSfixed64FieldNumber = 99;
- private pbc::PopsicleList<long> unpackedSfixed64_ = new pbc::PopsicleList<long>();
- public scg::IList<long> UnpackedSfixed64List {
- get { return pbc::Lists.AsReadOnly(unpackedSfixed64_); }
- }
- public int UnpackedSfixed64Count {
- get { return unpackedSfixed64_.Count; }
- }
- public long GetUnpackedSfixed64(int index) {
- return unpackedSfixed64_[index];
- }
-
- public const int UnpackedFloatFieldNumber = 100;
- private pbc::PopsicleList<float> unpackedFloat_ = new pbc::PopsicleList<float>();
- public scg::IList<float> UnpackedFloatList {
- get { return pbc::Lists.AsReadOnly(unpackedFloat_); }
- }
- public int UnpackedFloatCount {
- get { return unpackedFloat_.Count; }
- }
- public float GetUnpackedFloat(int index) {
- return unpackedFloat_[index];
- }
-
- public const int UnpackedDoubleFieldNumber = 101;
- private pbc::PopsicleList<double> unpackedDouble_ = new pbc::PopsicleList<double>();
- public scg::IList<double> UnpackedDoubleList {
- get { return pbc::Lists.AsReadOnly(unpackedDouble_); }
- }
- public int UnpackedDoubleCount {
- get { return unpackedDouble_.Count; }
- }
- public double GetUnpackedDouble(int index) {
- return unpackedDouble_[index];
- }
-
- public const int UnpackedBoolFieldNumber = 102;
- private pbc::PopsicleList<bool> unpackedBool_ = new pbc::PopsicleList<bool>();
- public scg::IList<bool> UnpackedBoolList {
- get { return pbc::Lists.AsReadOnly(unpackedBool_); }
- }
- public int UnpackedBoolCount {
- get { return unpackedBool_.Count; }
- }
- public bool GetUnpackedBool(int index) {
- return unpackedBool_[index];
- }
-
- public const int UnpackedEnumFieldNumber = 103;
- private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite> unpackedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite>();
- public scg::IList<global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite> UnpackedEnumList {
- get { return pbc::Lists.AsReadOnly(unpackedEnum_); }
- }
- public int UnpackedEnumCount {
- get { return unpackedEnum_.Count; }
- }
- public global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite GetUnpackedEnum(int index) {
- return unpackedEnum_[index];
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::ICodedOutputStream output) {
- int size = SerializedSize;
- string[] field_names = _testUnpackedTypesLiteFieldNames;
- if (unpackedInt32_.Count > 0) {
- output.WriteInt32Array(90, field_names[6], unpackedInt32_);
- }
- if (unpackedInt64_.Count > 0) {
- output.WriteInt64Array(91, field_names[7], unpackedInt64_);
- }
- if (unpackedUint32_.Count > 0) {
- output.WriteUInt32Array(92, field_names[12], unpackedUint32_);
- }
- if (unpackedUint64_.Count > 0) {
- output.WriteUInt64Array(93, field_names[13], unpackedUint64_);
- }
- if (unpackedSint32_.Count > 0) {
- output.WriteSInt32Array(94, field_names[10], unpackedSint32_);
- }
- if (unpackedSint64_.Count > 0) {
- output.WriteSInt64Array(95, field_names[11], unpackedSint64_);
- }
- if (unpackedFixed32_.Count > 0) {
- output.WriteFixed32Array(96, field_names[3], unpackedFixed32_);
- }
- if (unpackedFixed64_.Count > 0) {
- output.WriteFixed64Array(97, field_names[4], unpackedFixed64_);
- }
- if (unpackedSfixed32_.Count > 0) {
- output.WriteSFixed32Array(98, field_names[8], unpackedSfixed32_);
- }
- if (unpackedSfixed64_.Count > 0) {
- output.WriteSFixed64Array(99, field_names[9], unpackedSfixed64_);
- }
- if (unpackedFloat_.Count > 0) {
- output.WriteFloatArray(100, field_names[5], unpackedFloat_);
- }
- if (unpackedDouble_.Count > 0) {
- output.WriteDoubleArray(101, field_names[1], unpackedDouble_);
- }
- if (unpackedBool_.Count > 0) {
- output.WriteBoolArray(102, field_names[0], unpackedBool_);
- }
- if (unpackedEnum_.Count > 0) {
- output.WriteEnumArray(103, field_names[2], unpackedEnum_);
- }
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- {
- int dataSize = 0;
- foreach (int element in UnpackedInt32List) {
- dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * unpackedInt32_.Count;
- }
- {
- int dataSize = 0;
- foreach (long element in UnpackedInt64List) {
- dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * unpackedInt64_.Count;
- }
- {
- int dataSize = 0;
- foreach (uint element in UnpackedUint32List) {
- dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * unpackedUint32_.Count;
- }
- {
- int dataSize = 0;
- foreach (ulong element in UnpackedUint64List) {
- dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * unpackedUint64_.Count;
- }
- {
- int dataSize = 0;
- foreach (int element in UnpackedSint32List) {
- dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * unpackedSint32_.Count;
- }
- {
- int dataSize = 0;
- foreach (long element in UnpackedSint64List) {
- dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
- }
- size += dataSize;
- size += 2 * unpackedSint64_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 4 * unpackedFixed32_.Count;
- size += dataSize;
- size += 2 * unpackedFixed32_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 8 * unpackedFixed64_.Count;
- size += dataSize;
- size += 2 * unpackedFixed64_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 4 * unpackedSfixed32_.Count;
- size += dataSize;
- size += 2 * unpackedSfixed32_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 8 * unpackedSfixed64_.Count;
- size += dataSize;
- size += 2 * unpackedSfixed64_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 4 * unpackedFloat_.Count;
- size += dataSize;
- size += 2 * unpackedFloat_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 8 * unpackedDouble_.Count;
- size += dataSize;
- size += 2 * unpackedDouble_.Count;
- }
- {
- int dataSize = 0;
- dataSize = 1 * unpackedBool_.Count;
- size += dataSize;
- size += 2 * unpackedBool_.Count;
- }
- {
- int dataSize = 0;
- if (unpackedEnum_.Count > 0) {
- foreach (global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite element in unpackedEnum_) {
- dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
- }
- size += dataSize;
- size += 2 * unpackedEnum_.Count;
- }
- }
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- #region Lite runtime methods
- public override int GetHashCode() {
- int hash = GetType().GetHashCode();
- foreach(int i in unpackedInt32_)
- hash ^= i.GetHashCode();
- foreach(long i in unpackedInt64_)
- hash ^= i.GetHashCode();
- foreach(uint i in unpackedUint32_)
- hash ^= i.GetHashCode();
- foreach(ulong i in unpackedUint64_)
- hash ^= i.GetHashCode();
- foreach(int i in unpackedSint32_)
- hash ^= i.GetHashCode();
- foreach(long i in unpackedSint64_)
- hash ^= i.GetHashCode();
- foreach(uint i in unpackedFixed32_)
- hash ^= i.GetHashCode();
- foreach(ulong i in unpackedFixed64_)
- hash ^= i.GetHashCode();
- foreach(int i in unpackedSfixed32_)
- hash ^= i.GetHashCode();
- foreach(long i in unpackedSfixed64_)
- hash ^= i.GetHashCode();
- foreach(float i in unpackedFloat_)
- hash ^= i.GetHashCode();
- foreach(double i in unpackedDouble_)
- hash ^= i.GetHashCode();
- foreach(bool i in unpackedBool_)
- hash ^= i.GetHashCode();
- foreach(global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite i in unpackedEnum_)
- hash ^= i.GetHashCode();
- return hash;
- }
-
- public override bool Equals(object obj) {
- TestUnpackedTypesLite other = obj as TestUnpackedTypesLite;
- if (other == null) return false;
- if(unpackedInt32_.Count != other.unpackedInt32_.Count) return false;
- for(int ix=0; ix < unpackedInt32_.Count; ix++)
- if(!unpackedInt32_[ix].Equals(other.unpackedInt32_[ix])) return false;
- if(unpackedInt64_.Count != other.unpackedInt64_.Count) return false;
- for(int ix=0; ix < unpackedInt64_.Count; ix++)
- if(!unpackedInt64_[ix].Equals(other.unpackedInt64_[ix])) return false;
- if(unpackedUint32_.Count != other.unpackedUint32_.Count) return false;
- for(int ix=0; ix < unpackedUint32_.Count; ix++)
- if(!unpackedUint32_[ix].Equals(other.unpackedUint32_[ix])) return false;
- if(unpackedUint64_.Count != other.unpackedUint64_.Count) return false;
- for(int ix=0; ix < unpackedUint64_.Count; ix++)
- if(!unpackedUint64_[ix].Equals(other.unpackedUint64_[ix])) return false;
- if(unpackedSint32_.Count != other.unpackedSint32_.Count) return false;
- for(int ix=0; ix < unpackedSint32_.Count; ix++)
- if(!unpackedSint32_[ix].Equals(other.unpackedSint32_[ix])) return false;
- if(unpackedSint64_.Count != other.unpackedSint64_.Count) return false;
- for(int ix=0; ix < unpackedSint64_.Count; ix++)
- if(!unpackedSint64_[ix].Equals(other.unpackedSint64_[ix])) return false;
- if(unpackedFixed32_.Count != other.unpackedFixed32_.Count) return false;
- for(int ix=0; ix < unpackedFixed32_.Count; ix++)
- if(!unpackedFixed32_[ix].Equals(other.unpackedFixed32_[ix])) return false;
- if(unpackedFixed64_.Count != other.unpackedFixed64_.Count) return false;
- for(int ix=0; ix < unpackedFixed64_.Count; ix++)
- if(!unpackedFixed64_[ix].Equals(other.unpackedFixed64_[ix])) return false;
- if(unpackedSfixed32_.Count != other.unpackedSfixed32_.Count) return false;
- for(int ix=0; ix < unpackedSfixed32_.Count; ix++)
- if(!unpackedSfixed32_[ix].Equals(other.unpackedSfixed32_[ix])) return false;
- if(unpackedSfixed64_.Count != other.unpackedSfixed64_.Count) return false;
- for(int ix=0; ix < unpackedSfixed64_.Count; ix++)
- if(!unpackedSfixed64_[ix].Equals(other.unpackedSfixed64_[ix])) return false;
- if(unpackedFloat_.Count != other.unpackedFloat_.Count) return false;
- for(int ix=0; ix < unpackedFloat_.Count; ix++)
- if(!unpackedFloat_[ix].Equals(other.unpackedFloat_[ix])) return false;
- if(unpackedDouble_.Count != other.unpackedDouble_.Count) return false;
- for(int ix=0; ix < unpackedDouble_.Count; ix++)
- if(!unpackedDouble_[ix].Equals(other.unpackedDouble_[ix])) return false;
- if(unpackedBool_.Count != other.unpackedBool_.Count) return false;
- for(int ix=0; ix < unpackedBool_.Count; ix++)
- if(!unpackedBool_[ix].Equals(other.unpackedBool_[ix])) return false;
- if(unpackedEnum_.Count != other.unpackedEnum_.Count) return false;
- for(int ix=0; ix < unpackedEnum_.Count; ix++)
- if(!unpackedEnum_[ix].Equals(other.unpackedEnum_[ix])) return false;
- return true;
- }
-
- public override void PrintTo(global::System.IO.TextWriter writer) {
- PrintField("unpacked_int32", unpackedInt32_, writer);
- PrintField("unpacked_int64", unpackedInt64_, writer);
- PrintField("unpacked_uint32", unpackedUint32_, writer);
- PrintField("unpacked_uint64", unpackedUint64_, writer);
- PrintField("unpacked_sint32", unpackedSint32_, writer);
- PrintField("unpacked_sint64", unpackedSint64_, writer);
- PrintField("unpacked_fixed32", unpackedFixed32_, writer);
- PrintField("unpacked_fixed64", unpackedFixed64_, writer);
- PrintField("unpacked_sfixed32", unpackedSfixed32_, writer);
- PrintField("unpacked_sfixed64", unpackedSfixed64_, writer);
- PrintField("unpacked_float", unpackedFloat_, writer);
- PrintField("unpacked_double", unpackedDouble_, writer);
- PrintField("unpacked_bool", unpackedBool_, writer);
- PrintField("unpacked_enum", unpackedEnum_, writer);
- }
- #endregion
-
- public static TestUnpackedTypesLite ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestUnpackedTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestUnpackedTypesLite ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static TestUnpackedTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static TestUnpackedTypesLite ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestUnpackedTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static TestUnpackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static TestUnpackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static TestUnpackedTypesLite ParseFrom(pb::ICodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static TestUnpackedTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- private TestUnpackedTypesLite MakeReadOnly() {
- unpackedInt32_.MakeReadOnly();
- unpackedInt64_.MakeReadOnly();
- unpackedUint32_.MakeReadOnly();
- unpackedUint64_.MakeReadOnly();
- unpackedSint32_.MakeReadOnly();
- unpackedSint64_.MakeReadOnly();
- unpackedFixed32_.MakeReadOnly();
- unpackedFixed64_.MakeReadOnly();
- unpackedSfixed32_.MakeReadOnly();
- unpackedSfixed64_.MakeReadOnly();
- unpackedFloat_.MakeReadOnly();
- unpackedDouble_.MakeReadOnly();
- unpackedBool_.MakeReadOnly();
- unpackedEnum_.MakeReadOnly();
- return this;
- }
-
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(TestUnpackedTypesLite prototype) {
- return new Builder(prototype);
- }
-
- [global::System.SerializableAttribute()]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
- public sealed partial class Builder : pb::GeneratedBuilderLite<TestUnpackedTypesLite, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- }
- internal Builder(TestUnpackedTypesLite cloneFrom) {
- result = cloneFrom;
- resultIsReadOnly = true;
- }
-
- private bool resultIsReadOnly;
- private TestUnpackedTypesLite result;
-
- private TestUnpackedTypesLite PrepareBuilder() {
- if (resultIsReadOnly) {
- TestUnpackedTypesLite original = result;
- result = new TestUnpackedTypesLite();
- resultIsReadOnly = false;
- MergeFrom(original);
- }
- return result;
- }
-
- public override bool IsInitialized {
- get { return result.IsInitialized; }
- }
-
- protected override TestUnpackedTypesLite MessageBeingBuilt {
- get { return PrepareBuilder(); }
- }
-
- public override Builder Clear() {
- result = DefaultInstance;
- resultIsReadOnly = true;
- return this;
- }
-
- public override Builder Clone() {
- if (resultIsReadOnly) {
- return new Builder(result);
- } else {
- return new Builder().MergeFrom(result);
- }
- }
-
- public override TestUnpackedTypesLite DefaultInstanceForType {
- get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypesLite.DefaultInstance; }
- }
-
- public override TestUnpackedTypesLite BuildPartial() {
- if (resultIsReadOnly) {
- return result;
- }
- resultIsReadOnly = true;
- return result.MakeReadOnly();
- }
-
- public override Builder MergeFrom(pb::IMessageLite other) {
- if (other is TestUnpackedTypesLite) {
- return MergeFrom((TestUnpackedTypesLite) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(TestUnpackedTypesLite other) {
- if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypesLite.DefaultInstance) return this;
- PrepareBuilder();
- if (other.unpackedInt32_.Count != 0) {
- result.unpackedInt32_.Add(other.unpackedInt32_);
- }
- if (other.unpackedInt64_.Count != 0) {
- result.unpackedInt64_.Add(other.unpackedInt64_);
- }
- if (other.unpackedUint32_.Count != 0) {
- result.unpackedUint32_.Add(other.unpackedUint32_);
- }
- if (other.unpackedUint64_.Count != 0) {
- result.unpackedUint64_.Add(other.unpackedUint64_);
- }
- if (other.unpackedSint32_.Count != 0) {
- result.unpackedSint32_.Add(other.unpackedSint32_);
- }
- if (other.unpackedSint64_.Count != 0) {
- result.unpackedSint64_.Add(other.unpackedSint64_);
- }
- if (other.unpackedFixed32_.Count != 0) {
- result.unpackedFixed32_.Add(other.unpackedFixed32_);
- }
- if (other.unpackedFixed64_.Count != 0) {
- result.unpackedFixed64_.Add(other.unpackedFixed64_);
- }
- if (other.unpackedSfixed32_.Count != 0) {
- result.unpackedSfixed32_.Add(other.unpackedSfixed32_);
- }
- if (other.unpackedSfixed64_.Count != 0) {
- result.unpackedSfixed64_.Add(other.unpackedSfixed64_);
- }
- if (other.unpackedFloat_.Count != 0) {
- result.unpackedFloat_.Add(other.unpackedFloat_);
- }
- if (other.unpackedDouble_.Count != 0) {
- result.unpackedDouble_.Add(other.unpackedDouble_);
- }
- if (other.unpackedBool_.Count != 0) {
- result.unpackedBool_.Add(other.unpackedBool_);
- }
- if (other.unpackedEnum_.Count != 0) {
- result.unpackedEnum_.Add(other.unpackedEnum_);
- }
- return this;
- }
-
- public override Builder MergeFrom(pb::ICodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- PrepareBuilder();
- uint tag;
- string field_name;
- while (input.ReadTag(out tag, out field_name)) {
- if(tag == 0 && field_name != null) {
- int field_ordinal = global::System.Array.BinarySearch(_testUnpackedTypesLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
- if(field_ordinal >= 0)
- tag = _testUnpackedTypesLiteFieldTags[field_ordinal];
- else {
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- continue;
- }
- }
- switch (tag) {
- case 0: {
- throw pb::InvalidProtocolBufferException.InvalidTag();
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return this;
- }
- ParseUnknownField(input, extensionRegistry, tag, field_name);
- break;
- }
- case 722:
- case 720: {
- input.ReadInt32Array(tag, field_name, result.unpackedInt32_);
- break;
- }
- case 730:
- case 728: {
- input.ReadInt64Array(tag, field_name, result.unpackedInt64_);
- break;
- }
- case 738:
- case 736: {
- input.ReadUInt32Array(tag, field_name, result.unpackedUint32_);
- break;
- }
- case 746:
- case 744: {
- input.ReadUInt64Array(tag, field_name, result.unpackedUint64_);
- break;
- }
- case 754:
- case 752: {
- input.ReadSInt32Array(tag, field_name, result.unpackedSint32_);
- break;
- }
- case 762:
- case 760: {
- input.ReadSInt64Array(tag, field_name, result.unpackedSint64_);
- break;
- }
- case 770:
- case 773: {
- input.ReadFixed32Array(tag, field_name, result.unpackedFixed32_);
- break;
- }
- case 778:
- case 777: {
- input.ReadFixed64Array(tag, field_name, result.unpackedFixed64_);
- break;
- }
- case 786:
- case 789: {
- input.ReadSFixed32Array(tag, field_name, result.unpackedSfixed32_);
- break;
- }
- case 794:
- case 793: {
- input.ReadSFixed64Array(tag, field_name, result.unpackedSfixed64_);
- break;
- }
- case 802:
- case 805: {
- input.ReadFloatArray(tag, field_name, result.unpackedFloat_);
- break;
- }
- case 810:
- case 809: {
- input.ReadDoubleArray(tag, field_name, result.unpackedDouble_);
- break;
- }
- case 818:
- case 816: {
- input.ReadBoolArray(tag, field_name, result.unpackedBool_);
- break;
- }
- case 826:
- case 824: {
- scg::ICollection<object> unknownItems;
- input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite>(tag, field_name, result.unpackedEnum_, out unknownItems);
- break;
- }
- }
- }
-
- return this;
- }
-
-
- public pbc::IPopsicleList<int> UnpackedInt32List {
- get { return PrepareBuilder().unpackedInt32_; }
- }
- public int UnpackedInt32Count {
- get { return result.UnpackedInt32Count; }
- }
- public int GetUnpackedInt32(int index) {
- return result.GetUnpackedInt32(index);
- }
- public Builder SetUnpackedInt32(int index, int value) {
- PrepareBuilder();
- result.unpackedInt32_[index] = value;
- return this;
- }
- public Builder AddUnpackedInt32(int value) {
- PrepareBuilder();
- result.unpackedInt32_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedInt32(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.unpackedInt32_.Add(values);
- return this;
- }
- public Builder ClearUnpackedInt32() {
- PrepareBuilder();
- result.unpackedInt32_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList<long> UnpackedInt64List {
- get { return PrepareBuilder().unpackedInt64_; }
- }
- public int UnpackedInt64Count {
- get { return result.UnpackedInt64Count; }
- }
- public long GetUnpackedInt64(int index) {
- return result.GetUnpackedInt64(index);
- }
- public Builder SetUnpackedInt64(int index, long value) {
- PrepareBuilder();
- result.unpackedInt64_[index] = value;
- return this;
- }
- public Builder AddUnpackedInt64(long value) {
- PrepareBuilder();
- result.unpackedInt64_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedInt64(scg::IEnumerable<long> values) {
- PrepareBuilder();
- result.unpackedInt64_.Add(values);
- return this;
- }
- public Builder ClearUnpackedInt64() {
- PrepareBuilder();
- result.unpackedInt64_.Clear();
- return this;
- }
-
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<uint> UnpackedUint32List {
- get { return PrepareBuilder().unpackedUint32_; }
- }
- public int UnpackedUint32Count {
- get { return result.UnpackedUint32Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetUnpackedUint32(int index) {
- return result.GetUnpackedUint32(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetUnpackedUint32(int index, uint value) {
- PrepareBuilder();
- result.unpackedUint32_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddUnpackedUint32(uint value) {
- PrepareBuilder();
- result.unpackedUint32_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeUnpackedUint32(scg::IEnumerable<uint> values) {
- PrepareBuilder();
- result.unpackedUint32_.Add(values);
- return this;
- }
- public Builder ClearUnpackedUint32() {
- PrepareBuilder();
- result.unpackedUint32_.Clear();
- return this;
- }
-
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<ulong> UnpackedUint64List {
- get { return PrepareBuilder().unpackedUint64_; }
- }
- public int UnpackedUint64Count {
- get { return result.UnpackedUint64Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetUnpackedUint64(int index) {
- return result.GetUnpackedUint64(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetUnpackedUint64(int index, ulong value) {
- PrepareBuilder();
- result.unpackedUint64_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddUnpackedUint64(ulong value) {
- PrepareBuilder();
- result.unpackedUint64_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeUnpackedUint64(scg::IEnumerable<ulong> values) {
- PrepareBuilder();
- result.unpackedUint64_.Add(values);
- return this;
- }
- public Builder ClearUnpackedUint64() {
- PrepareBuilder();
- result.unpackedUint64_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList<int> UnpackedSint32List {
- get { return PrepareBuilder().unpackedSint32_; }
- }
- public int UnpackedSint32Count {
- get { return result.UnpackedSint32Count; }
- }
- public int GetUnpackedSint32(int index) {
- return result.GetUnpackedSint32(index);
- }
- public Builder SetUnpackedSint32(int index, int value) {
- PrepareBuilder();
- result.unpackedSint32_[index] = value;
- return this;
- }
- public Builder AddUnpackedSint32(int value) {
- PrepareBuilder();
- result.unpackedSint32_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedSint32(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.unpackedSint32_.Add(values);
- return this;
- }
- public Builder ClearUnpackedSint32() {
- PrepareBuilder();
- result.unpackedSint32_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList<long> UnpackedSint64List {
- get { return PrepareBuilder().unpackedSint64_; }
- }
- public int UnpackedSint64Count {
- get { return result.UnpackedSint64Count; }
- }
- public long GetUnpackedSint64(int index) {
- return result.GetUnpackedSint64(index);
- }
- public Builder SetUnpackedSint64(int index, long value) {
- PrepareBuilder();
- result.unpackedSint64_[index] = value;
- return this;
- }
- public Builder AddUnpackedSint64(long value) {
- PrepareBuilder();
- result.unpackedSint64_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedSint64(scg::IEnumerable<long> values) {
- PrepareBuilder();
- result.unpackedSint64_.Add(values);
- return this;
- }
- public Builder ClearUnpackedSint64() {
- PrepareBuilder();
- result.unpackedSint64_.Clear();
- return this;
- }
-
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<uint> UnpackedFixed32List {
- get { return PrepareBuilder().unpackedFixed32_; }
- }
- public int UnpackedFixed32Count {
- get { return result.UnpackedFixed32Count; }
- }
- [global::System.CLSCompliant(false)]
- public uint GetUnpackedFixed32(int index) {
- return result.GetUnpackedFixed32(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetUnpackedFixed32(int index, uint value) {
- PrepareBuilder();
- result.unpackedFixed32_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddUnpackedFixed32(uint value) {
- PrepareBuilder();
- result.unpackedFixed32_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeUnpackedFixed32(scg::IEnumerable<uint> values) {
- PrepareBuilder();
- result.unpackedFixed32_.Add(values);
- return this;
- }
- public Builder ClearUnpackedFixed32() {
- PrepareBuilder();
- result.unpackedFixed32_.Clear();
- return this;
- }
-
- [global::System.CLSCompliant(false)]
- public pbc::IPopsicleList<ulong> UnpackedFixed64List {
- get { return PrepareBuilder().unpackedFixed64_; }
- }
- public int UnpackedFixed64Count {
- get { return result.UnpackedFixed64Count; }
- }
- [global::System.CLSCompliant(false)]
- public ulong GetUnpackedFixed64(int index) {
- return result.GetUnpackedFixed64(index);
- }
- [global::System.CLSCompliant(false)]
- public Builder SetUnpackedFixed64(int index, ulong value) {
- PrepareBuilder();
- result.unpackedFixed64_[index] = value;
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddUnpackedFixed64(ulong value) {
- PrepareBuilder();
- result.unpackedFixed64_.Add(value);
- return this;
- }
- [global::System.CLSCompliant(false)]
- public Builder AddRangeUnpackedFixed64(scg::IEnumerable<ulong> values) {
- PrepareBuilder();
- result.unpackedFixed64_.Add(values);
- return this;
- }
- public Builder ClearUnpackedFixed64() {
- PrepareBuilder();
- result.unpackedFixed64_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList<int> UnpackedSfixed32List {
- get { return PrepareBuilder().unpackedSfixed32_; }
- }
- public int UnpackedSfixed32Count {
- get { return result.UnpackedSfixed32Count; }
- }
- public int GetUnpackedSfixed32(int index) {
- return result.GetUnpackedSfixed32(index);
- }
- public Builder SetUnpackedSfixed32(int index, int value) {
- PrepareBuilder();
- result.unpackedSfixed32_[index] = value;
- return this;
- }
- public Builder AddUnpackedSfixed32(int value) {
- PrepareBuilder();
- result.unpackedSfixed32_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedSfixed32(scg::IEnumerable<int> values) {
- PrepareBuilder();
- result.unpackedSfixed32_.Add(values);
- return this;
- }
- public Builder ClearUnpackedSfixed32() {
- PrepareBuilder();
- result.unpackedSfixed32_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList<long> UnpackedSfixed64List {
- get { return PrepareBuilder().unpackedSfixed64_; }
- }
- public int UnpackedSfixed64Count {
- get { return result.UnpackedSfixed64Count; }
- }
- public long GetUnpackedSfixed64(int index) {
- return result.GetUnpackedSfixed64(index);
- }
- public Builder SetUnpackedSfixed64(int index, long value) {
- PrepareBuilder();
- result.unpackedSfixed64_[index] = value;
- return this;
- }
- public Builder AddUnpackedSfixed64(long value) {
- PrepareBuilder();
- result.unpackedSfixed64_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedSfixed64(scg::IEnumerable<long> values) {
- PrepareBuilder();
- result.unpackedSfixed64_.Add(values);
- return this;
- }
- public Builder ClearUnpackedSfixed64() {
- PrepareBuilder();
- result.unpackedSfixed64_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList<float> UnpackedFloatList {
- get { return PrepareBuilder().unpackedFloat_; }
- }
- public int UnpackedFloatCount {
- get { return result.UnpackedFloatCount; }
- }
- public float GetUnpackedFloat(int index) {
- return result.GetUnpackedFloat(index);
- }
- public Builder SetUnpackedFloat(int index, float value) {
- PrepareBuilder();
- result.unpackedFloat_[index] = value;
- return this;
- }
- public Builder AddUnpackedFloat(float value) {
- PrepareBuilder();
- result.unpackedFloat_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedFloat(scg::IEnumerable<float> values) {
- PrepareBuilder();
- result.unpackedFloat_.Add(values);
- return this;
- }
- public Builder ClearUnpackedFloat() {
- PrepareBuilder();
- result.unpackedFloat_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList<double> UnpackedDoubleList {
- get { return PrepareBuilder().unpackedDouble_; }
- }
- public int UnpackedDoubleCount {
- get { return result.UnpackedDoubleCount; }
- }
- public double GetUnpackedDouble(int index) {
- return result.GetUnpackedDouble(index);
- }
- public Builder SetUnpackedDouble(int index, double value) {
- PrepareBuilder();
- result.unpackedDouble_[index] = value;
- return this;
- }
- public Builder AddUnpackedDouble(double value) {
- PrepareBuilder();
- result.unpackedDouble_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedDouble(scg::IEnumerable<double> values) {
- PrepareBuilder();
- result.unpackedDouble_.Add(values);
- return this;
- }
- public Builder ClearUnpackedDouble() {
- PrepareBuilder();
- result.unpackedDouble_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList<bool> UnpackedBoolList {
- get { return PrepareBuilder().unpackedBool_; }
- }
- public int UnpackedBoolCount {
- get { return result.UnpackedBoolCount; }
- }
- public bool GetUnpackedBool(int index) {
- return result.GetUnpackedBool(index);
- }
- public Builder SetUnpackedBool(int index, bool value) {
- PrepareBuilder();
- result.unpackedBool_[index] = value;
- return this;
- }
- public Builder AddUnpackedBool(bool value) {
- PrepareBuilder();
- result.unpackedBool_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedBool(scg::IEnumerable<bool> values) {
- PrepareBuilder();
- result.unpackedBool_.Add(values);
- return this;
- }
- public Builder ClearUnpackedBool() {
- PrepareBuilder();
- result.unpackedBool_.Clear();
- return this;
- }
-
- public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite> UnpackedEnumList {
- get { return PrepareBuilder().unpackedEnum_; }
- }
- public int UnpackedEnumCount {
- get { return result.UnpackedEnumCount; }
- }
- public global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite GetUnpackedEnum(int index) {
- return result.GetUnpackedEnum(index);
- }
- public Builder SetUnpackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite value) {
- PrepareBuilder();
- result.unpackedEnum_[index] = value;
- return this;
- }
- public Builder AddUnpackedEnum(global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite value) {
- PrepareBuilder();
- result.unpackedEnum_.Add(value);
- return this;
- }
- public Builder AddRangeUnpackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.UnpackedTypesForeignEnumLite> values) {
- PrepareBuilder();
- result.unpackedEnum_.Add(values);
- return this;
- }
- public Builder ClearUnpackedEnum() {
- PrepareBuilder();
- result.unpackedEnum_.Clear();
- return this;
- }
- }
- static TestUnpackedTypesLite() {
- object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasLiteProtoFile.Descriptor, null);
- }
- }
-
- #endregion
-
- }
- #endregion Designer generated code
|