| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: test.proto
- namespace Foo;
- require_once('test_include.pb.php');
- use Google\Protobuf\Internal\DescriptorPool;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Protobuf type <code>foo.TestMessage</code>
- */
- class TestMessage extends \Google\Protobuf\Internal\Message
- {
- /**
- * <pre>
- * Singular
- * </pre>
- *
- * <code>optional int32 optional_int32 = 1;</code>
- */
- private $optional_int32 = 0;
- /**
- * <code>optional int64 optional_int64 = 2;</code>
- */
- private $optional_int64 = 0;
- /**
- * <code>optional uint32 optional_uint32 = 3;</code>
- */
- private $optional_uint32 = 0;
- /**
- * <code>optional uint64 optional_uint64 = 4;</code>
- */
- private $optional_uint64 = 0;
- /**
- * <code>optional sint32 optional_sint32 = 5;</code>
- */
- private $optional_sint32 = 0;
- /**
- * <code>optional sint64 optional_sint64 = 6;</code>
- */
- private $optional_sint64 = 0;
- /**
- * <code>optional fixed32 optional_fixed32 = 7;</code>
- */
- private $optional_fixed32 = 0;
- /**
- * <code>optional fixed64 optional_fixed64 = 8;</code>
- */
- private $optional_fixed64 = 0;
- /**
- * <code>optional sfixed32 optional_sfixed32 = 9;</code>
- */
- private $optional_sfixed32 = 0;
- /**
- * <code>optional sfixed64 optional_sfixed64 = 10;</code>
- */
- private $optional_sfixed64 = 0;
- /**
- * <code>optional float optional_float = 11;</code>
- */
- private $optional_float = 0.0;
- /**
- * <code>optional double optional_double = 12;</code>
- */
- private $optional_double = 0.0;
- /**
- * <code>optional bool optional_bool = 13;</code>
- */
- private $optional_bool = false;
- /**
- * <code>optional string optional_string = 14;</code>
- */
- private $optional_string = '';
- /**
- * <code>optional bytes optional_bytes = 15;</code>
- */
- private $optional_bytes = '';
- /**
- * <code>optional .foo.TestEnum optional_enum = 16;</code>
- */
- private $optional_enum = 0;
- /**
- * <code>optional .foo.TestMessage.Sub optional_message = 17;</code>
- */
- private $optional_message = null;
- /**
- * <code>optional .bar.TestInclude optional_included_message = 18;</code>
- */
- private $optional_included_message = null;
- /**
- * <code>optional .foo.TestMessage recursive = 19;</code>
- */
- private $recursive = null;
- /**
- * <pre>
- * Repeated
- * </pre>
- *
- * <code>repeated int32 repeated_int32 = 31;</code>
- */
- private $repeated_int32;
- /**
- * <code>repeated int64 repeated_int64 = 32;</code>
- */
- private $repeated_int64;
- /**
- * <code>repeated uint32 repeated_uint32 = 33;</code>
- */
- private $repeated_uint32;
- /**
- * <code>repeated uint64 repeated_uint64 = 34;</code>
- */
- private $repeated_uint64;
- /**
- * <code>repeated sint32 repeated_sint32 = 35;</code>
- */
- private $repeated_sint32;
- /**
- * <code>repeated sint64 repeated_sint64 = 36;</code>
- */
- private $repeated_sint64;
- /**
- * <code>repeated fixed32 repeated_fixed32 = 37;</code>
- */
- private $repeated_fixed32;
- /**
- * <code>repeated fixed64 repeated_fixed64 = 38;</code>
- */
- private $repeated_fixed64;
- /**
- * <code>repeated sfixed32 repeated_sfixed32 = 39;</code>
- */
- private $repeated_sfixed32;
- /**
- * <code>repeated sfixed64 repeated_sfixed64 = 40;</code>
- */
- private $repeated_sfixed64;
- /**
- * <code>repeated float repeated_float = 41;</code>
- */
- private $repeated_float;
- /**
- * <code>repeated double repeated_double = 42;</code>
- */
- private $repeated_double;
- /**
- * <code>repeated bool repeated_bool = 43;</code>
- */
- private $repeated_bool;
- /**
- * <code>repeated string repeated_string = 44;</code>
- */
- private $repeated_string;
- /**
- * <code>repeated bytes repeated_bytes = 45;</code>
- */
- private $repeated_bytes;
- /**
- * <code>repeated .foo.TestEnum repeated_enum = 46;</code>
- */
- private $repeated_enum;
- /**
- * <code>repeated .foo.TestMessage.Sub repeated_message = 47;</code>
- */
- private $repeated_message;
- /**
- * <code>repeated .foo.TestMessage repeated_recursive = 48;</code>
- */
- private $repeated_recursive;
- /**
- * <code>map<int32, int32> map_int32_int32 = 71;</code>
- */
- private $map_int32_int32;
- /**
- * <code>map<int64, int64> map_int64_int64 = 72;</code>
- */
- private $map_int64_int64;
- /**
- * <code>map<uint32, uint32> map_uint32_uint32 = 73;</code>
- */
- private $map_uint32_uint32;
- /**
- * <code>map<uint64, uint64> map_uint64_uint64 = 74;</code>
- */
- private $map_uint64_uint64;
- /**
- * <code>map<sint32, sint32> map_sint32_sint32 = 75;</code>
- */
- private $map_sint32_sint32;
- /**
- * <code>map<sint64, sint64> map_sint64_sint64 = 76;</code>
- */
- private $map_sint64_sint64;
- /**
- * <code>map<fixed32, fixed32> map_fixed32_fixed32 = 77;</code>
- */
- private $map_fixed32_fixed32;
- /**
- * <code>map<fixed64, fixed64> map_fixed64_fixed64 = 78;</code>
- */
- private $map_fixed64_fixed64;
- /**
- * <code>map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 79;</code>
- */
- private $map_sfixed32_sfixed32;
- /**
- * <code>map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 80;</code>
- */
- private $map_sfixed64_sfixed64;
- /**
- * <code>map<int32, float> map_int32_float = 81;</code>
- */
- private $map_int32_float;
- /**
- * <code>map<int32, double> map_int32_double = 82;</code>
- */
- private $map_int32_double;
- /**
- * <code>map<bool, bool> map_bool_bool = 83;</code>
- */
- private $map_bool_bool;
- /**
- * <code>map<string, string> map_string_string = 84;</code>
- */
- private $map_string_string;
- /**
- * <code>map<int32, bytes> map_int32_bytes = 85;</code>
- */
- private $map_int32_bytes;
- /**
- * <code>map<int32, .foo.TestEnum> map_int32_enum = 86;</code>
- */
- private $map_int32_enum;
- /**
- * <code>map<int32, .foo.TestMessage.Sub> map_int32_message = 87;</code>
- */
- private $map_int32_message;
- /**
- * <code>map<int32, .foo.TestMessage> map_recursive = 88;</code>
- */
- private $map_recursive;
- protected $my_oneof;
- /**
- * <pre>
- * Singular
- * </pre>
- *
- * <code>optional int32 optional_int32 = 1;</code>
- */
- public function getOptionalInt32()
- {
- return $this->optional_int32;
- }
- /**
- * <pre>
- * Singular
- * </pre>
- *
- * <code>optional int32 optional_int32 = 1;</code>
- */
- public function setOptionalInt32($var)
- {
- GPBUtil::checkInt32($var);
- $this->optional_int32 = $var;
- }
- /**
- * <code>optional int64 optional_int64 = 2;</code>
- */
- public function getOptionalInt64()
- {
- return $this->optional_int64;
- }
- /**
- * <code>optional int64 optional_int64 = 2;</code>
- */
- public function setOptionalInt64($var)
- {
- GPBUtil::checkInt64($var);
- $this->optional_int64 = $var;
- }
- /**
- * <code>optional uint32 optional_uint32 = 3;</code>
- */
- public function getOptionalUint32()
- {
- return $this->optional_uint32;
- }
- /**
- * <code>optional uint32 optional_uint32 = 3;</code>
- */
- public function setOptionalUint32($var)
- {
- GPBUtil::checkUint32($var);
- $this->optional_uint32 = $var;
- }
- /**
- * <code>optional uint64 optional_uint64 = 4;</code>
- */
- public function getOptionalUint64()
- {
- return $this->optional_uint64;
- }
- /**
- * <code>optional uint64 optional_uint64 = 4;</code>
- */
- public function setOptionalUint64($var)
- {
- GPBUtil::checkUint64($var);
- $this->optional_uint64 = $var;
- }
- /**
- * <code>optional sint32 optional_sint32 = 5;</code>
- */
- public function getOptionalSint32()
- {
- return $this->optional_sint32;
- }
- /**
- * <code>optional sint32 optional_sint32 = 5;</code>
- */
- public function setOptionalSint32($var)
- {
- GPBUtil::checkInt32($var);
- $this->optional_sint32 = $var;
- }
- /**
- * <code>optional sint64 optional_sint64 = 6;</code>
- */
- public function getOptionalSint64()
- {
- return $this->optional_sint64;
- }
- /**
- * <code>optional sint64 optional_sint64 = 6;</code>
- */
- public function setOptionalSint64($var)
- {
- GPBUtil::checkInt64($var);
- $this->optional_sint64 = $var;
- }
- /**
- * <code>optional fixed32 optional_fixed32 = 7;</code>
- */
- public function getOptionalFixed32()
- {
- return $this->optional_fixed32;
- }
- /**
- * <code>optional fixed32 optional_fixed32 = 7;</code>
- */
- public function setOptionalFixed32($var)
- {
- GPBUtil::checkUint32($var);
- $this->optional_fixed32 = $var;
- }
- /**
- * <code>optional fixed64 optional_fixed64 = 8;</code>
- */
- public function getOptionalFixed64()
- {
- return $this->optional_fixed64;
- }
- /**
- * <code>optional fixed64 optional_fixed64 = 8;</code>
- */
- public function setOptionalFixed64($var)
- {
- GPBUtil::checkUint64($var);
- $this->optional_fixed64 = $var;
- }
- /**
- * <code>optional sfixed32 optional_sfixed32 = 9;</code>
- */
- public function getOptionalSfixed32()
- {
- return $this->optional_sfixed32;
- }
- /**
- * <code>optional sfixed32 optional_sfixed32 = 9;</code>
- */
- public function setOptionalSfixed32($var)
- {
- GPBUtil::checkInt32($var);
- $this->optional_sfixed32 = $var;
- }
- /**
- * <code>optional sfixed64 optional_sfixed64 = 10;</code>
- */
- public function getOptionalSfixed64()
- {
- return $this->optional_sfixed64;
- }
- /**
- * <code>optional sfixed64 optional_sfixed64 = 10;</code>
- */
- public function setOptionalSfixed64($var)
- {
- GPBUtil::checkInt64($var);
- $this->optional_sfixed64 = $var;
- }
- /**
- * <code>optional float optional_float = 11;</code>
- */
- public function getOptionalFloat()
- {
- return $this->optional_float;
- }
- /**
- * <code>optional float optional_float = 11;</code>
- */
- public function setOptionalFloat($var)
- {
- GPBUtil::checkFloat($var);
- $this->optional_float = $var;
- }
- /**
- * <code>optional double optional_double = 12;</code>
- */
- public function getOptionalDouble()
- {
- return $this->optional_double;
- }
- /**
- * <code>optional double optional_double = 12;</code>
- */
- public function setOptionalDouble($var)
- {
- GPBUtil::checkDouble($var);
- $this->optional_double = $var;
- }
- /**
- * <code>optional bool optional_bool = 13;</code>
- */
- public function getOptionalBool()
- {
- return $this->optional_bool;
- }
- /**
- * <code>optional bool optional_bool = 13;</code>
- */
- public function setOptionalBool($var)
- {
- GPBUtil::checkBool($var);
- $this->optional_bool = $var;
- }
- /**
- * <code>optional string optional_string = 14;</code>
- */
- public function getOptionalString()
- {
- return $this->optional_string;
- }
- /**
- * <code>optional string optional_string = 14;</code>
- */
- public function setOptionalString($var)
- {
- GPBUtil::checkString($var, True);
- $this->optional_string = $var;
- }
- /**
- * <code>optional bytes optional_bytes = 15;</code>
- */
- public function getOptionalBytes()
- {
- return $this->optional_bytes;
- }
- /**
- * <code>optional bytes optional_bytes = 15;</code>
- */
- public function setOptionalBytes($var)
- {
- GPBUtil::checkString($var, False);
- $this->optional_bytes = $var;
- }
- /**
- * <code>optional .foo.TestEnum optional_enum = 16;</code>
- */
- public function getOptionalEnum()
- {
- return $this->optional_enum;
- }
- /**
- * <code>optional .foo.TestEnum optional_enum = 16;</code>
- */
- public function setOptionalEnum($var)
- {
- GPBUtil::checkEnum($var, \Foo\TestEnum::class);
- $this->optional_enum = $var;
- }
- /**
- * <code>optional .foo.TestMessage.Sub optional_message = 17;</code>
- */
- public function getOptionalMessage()
- {
- return $this->optional_message;
- }
- /**
- * <code>optional .foo.TestMessage.Sub optional_message = 17;</code>
- */
- public function setOptionalMessage(&$var)
- {
- GPBUtil::checkMessage($var, \Foo\TestMessage_Sub::class);
- $this->optional_message = $var;
- }
- /**
- * <code>optional .bar.TestInclude optional_included_message = 18;</code>
- */
- public function getOptionalIncludedMessage()
- {
- return $this->optional_included_message;
- }
- /**
- * <code>optional .bar.TestInclude optional_included_message = 18;</code>
- */
- public function setOptionalIncludedMessage(&$var)
- {
- GPBUtil::checkMessage($var, \Bar\TestInclude::class);
- $this->optional_included_message = $var;
- }
- /**
- * <code>optional .foo.TestMessage recursive = 19;</code>
- */
- public function getRecursive()
- {
- return $this->recursive;
- }
- /**
- * <code>optional .foo.TestMessage recursive = 19;</code>
- */
- public function setRecursive(&$var)
- {
- GPBUtil::checkMessage($var, \Foo\TestMessage::class);
- $this->recursive = $var;
- }
- /**
- * <pre>
- * Repeated
- * </pre>
- *
- * <code>repeated int32 repeated_int32 = 31;</code>
- */
- public function getRepeatedInt32()
- {
- return $this->repeated_int32;
- }
- /**
- * <pre>
- * Repeated
- * </pre>
- *
- * <code>repeated int32 repeated_int32 = 31;</code>
- */
- public function setRepeatedInt32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::INT32);
- $this->repeated_int32 = $var;
- }
- /**
- * <code>repeated int64 repeated_int64 = 32;</code>
- */
- public function getRepeatedInt64()
- {
- return $this->repeated_int64;
- }
- /**
- * <code>repeated int64 repeated_int64 = 32;</code>
- */
- public function setRepeatedInt64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::INT64);
- $this->repeated_int64 = $var;
- }
- /**
- * <code>repeated uint32 repeated_uint32 = 33;</code>
- */
- public function getRepeatedUint32()
- {
- return $this->repeated_uint32;
- }
- /**
- * <code>repeated uint32 repeated_uint32 = 33;</code>
- */
- public function setRepeatedUint32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::UINT32);
- $this->repeated_uint32 = $var;
- }
- /**
- * <code>repeated uint64 repeated_uint64 = 34;</code>
- */
- public function getRepeatedUint64()
- {
- return $this->repeated_uint64;
- }
- /**
- * <code>repeated uint64 repeated_uint64 = 34;</code>
- */
- public function setRepeatedUint64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::UINT64);
- $this->repeated_uint64 = $var;
- }
- /**
- * <code>repeated sint32 repeated_sint32 = 35;</code>
- */
- public function getRepeatedSint32()
- {
- return $this->repeated_sint32;
- }
- /**
- * <code>repeated sint32 repeated_sint32 = 35;</code>
- */
- public function setRepeatedSint32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::SINT32);
- $this->repeated_sint32 = $var;
- }
- /**
- * <code>repeated sint64 repeated_sint64 = 36;</code>
- */
- public function getRepeatedSint64()
- {
- return $this->repeated_sint64;
- }
- /**
- * <code>repeated sint64 repeated_sint64 = 36;</code>
- */
- public function setRepeatedSint64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::SINT64);
- $this->repeated_sint64 = $var;
- }
- /**
- * <code>repeated fixed32 repeated_fixed32 = 37;</code>
- */
- public function getRepeatedFixed32()
- {
- return $this->repeated_fixed32;
- }
- /**
- * <code>repeated fixed32 repeated_fixed32 = 37;</code>
- */
- public function setRepeatedFixed32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::FIXED32);
- $this->repeated_fixed32 = $var;
- }
- /**
- * <code>repeated fixed64 repeated_fixed64 = 38;</code>
- */
- public function getRepeatedFixed64()
- {
- return $this->repeated_fixed64;
- }
- /**
- * <code>repeated fixed64 repeated_fixed64 = 38;</code>
- */
- public function setRepeatedFixed64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::FIXED64);
- $this->repeated_fixed64 = $var;
- }
- /**
- * <code>repeated sfixed32 repeated_sfixed32 = 39;</code>
- */
- public function getRepeatedSfixed32()
- {
- return $this->repeated_sfixed32;
- }
- /**
- * <code>repeated sfixed32 repeated_sfixed32 = 39;</code>
- */
- public function setRepeatedSfixed32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::SFIXED32);
- $this->repeated_sfixed32 = $var;
- }
- /**
- * <code>repeated sfixed64 repeated_sfixed64 = 40;</code>
- */
- public function getRepeatedSfixed64()
- {
- return $this->repeated_sfixed64;
- }
- /**
- * <code>repeated sfixed64 repeated_sfixed64 = 40;</code>
- */
- public function setRepeatedSfixed64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::SFIXED64);
- $this->repeated_sfixed64 = $var;
- }
- /**
- * <code>repeated float repeated_float = 41;</code>
- */
- public function getRepeatedFloat()
- {
- return $this->repeated_float;
- }
- /**
- * <code>repeated float repeated_float = 41;</code>
- */
- public function setRepeatedFloat(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::FLOAT);
- $this->repeated_float = $var;
- }
- /**
- * <code>repeated double repeated_double = 42;</code>
- */
- public function getRepeatedDouble()
- {
- return $this->repeated_double;
- }
- /**
- * <code>repeated double repeated_double = 42;</code>
- */
- public function setRepeatedDouble(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::DOUBLE);
- $this->repeated_double = $var;
- }
- /**
- * <code>repeated bool repeated_bool = 43;</code>
- */
- public function getRepeatedBool()
- {
- return $this->repeated_bool;
- }
- /**
- * <code>repeated bool repeated_bool = 43;</code>
- */
- public function setRepeatedBool(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::BOOL);
- $this->repeated_bool = $var;
- }
- /**
- * <code>repeated string repeated_string = 44;</code>
- */
- public function getRepeatedString()
- {
- return $this->repeated_string;
- }
- /**
- * <code>repeated string repeated_string = 44;</code>
- */
- public function setRepeatedString(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::STRING);
- $this->repeated_string = $var;
- }
- /**
- * <code>repeated bytes repeated_bytes = 45;</code>
- */
- public function getRepeatedBytes()
- {
- return $this->repeated_bytes;
- }
- /**
- * <code>repeated bytes repeated_bytes = 45;</code>
- */
- public function setRepeatedBytes(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::BYTES);
- $this->repeated_bytes = $var;
- }
- /**
- * <code>repeated .foo.TestEnum repeated_enum = 46;</code>
- */
- public function getRepeatedEnum()
- {
- return $this->repeated_enum;
- }
- /**
- * <code>repeated .foo.TestEnum repeated_enum = 46;</code>
- */
- public function setRepeatedEnum(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::ENUM, Foo\TestEnum::class);
- $this->repeated_enum = $var;
- }
- /**
- * <code>repeated .foo.TestMessage.Sub repeated_message = 47;</code>
- */
- public function getRepeatedMessage()
- {
- return $this->repeated_message;
- }
- /**
- * <code>repeated .foo.TestMessage.Sub repeated_message = 47;</code>
- */
- public function setRepeatedMessage(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Foo\TestMessage_Sub::class);
- $this->repeated_message = $var;
- }
- /**
- * <code>repeated .foo.TestMessage repeated_recursive = 48;</code>
- */
- public function getRepeatedRecursive()
- {
- return $this->repeated_recursive;
- }
- /**
- * <code>repeated .foo.TestMessage repeated_recursive = 48;</code>
- */
- public function setRepeatedRecursive(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, \Foo\TestMessage::class);
- $this->repeated_recursive = $var;
- }
- /**
- * <code>optional int32 oneof_int32 = 51;</code>
- */
- public function getOneofInt32()
- {
- return $this->readOneof(51);
- }
- /**
- * <code>optional int32 oneof_int32 = 51;</code>
- */
- public function setOneofInt32($var)
- {
- GPBUtil::checkInt32($var);
- $this->writeOneof(51, $var);
- }
- /**
- * <code>optional int64 oneof_int64 = 52;</code>
- */
- public function getOneofInt64()
- {
- return $this->readOneof(52);
- }
- /**
- * <code>optional int64 oneof_int64 = 52;</code>
- */
- public function setOneofInt64($var)
- {
- GPBUtil::checkInt64($var);
- $this->writeOneof(52, $var);
- }
- /**
- * <code>optional uint32 oneof_uint32 = 53;</code>
- */
- public function getOneofUint32()
- {
- return $this->readOneof(53);
- }
- /**
- * <code>optional uint32 oneof_uint32 = 53;</code>
- */
- public function setOneofUint32($var)
- {
- GPBUtil::checkUint32($var);
- $this->writeOneof(53, $var);
- }
- /**
- * <code>optional uint64 oneof_uint64 = 54;</code>
- */
- public function getOneofUint64()
- {
- return $this->readOneof(54);
- }
- /**
- * <code>optional uint64 oneof_uint64 = 54;</code>
- */
- public function setOneofUint64($var)
- {
- GPBUtil::checkUint64($var);
- $this->writeOneof(54, $var);
- }
- /**
- * <code>optional uint32 oneof_sint32 = 55;</code>
- */
- public function getOneofSint32()
- {
- return $this->readOneof(55);
- }
- /**
- * <code>optional uint32 oneof_sint32 = 55;</code>
- */
- public function setOneofSint32($var)
- {
- GPBUtil::checkUint32($var);
- $this->writeOneof(55, $var);
- }
- /**
- * <code>optional uint64 oneof_sint64 = 56;</code>
- */
- public function getOneofSint64()
- {
- return $this->readOneof(56);
- }
- /**
- * <code>optional uint64 oneof_sint64 = 56;</code>
- */
- public function setOneofSint64($var)
- {
- GPBUtil::checkUint64($var);
- $this->writeOneof(56, $var);
- }
- /**
- * <code>optional uint32 oneof_fixed32 = 57;</code>
- */
- public function getOneofFixed32()
- {
- return $this->readOneof(57);
- }
- /**
- * <code>optional uint32 oneof_fixed32 = 57;</code>
- */
- public function setOneofFixed32($var)
- {
- GPBUtil::checkUint32($var);
- $this->writeOneof(57, $var);
- }
- /**
- * <code>optional uint64 oneof_fixed64 = 58;</code>
- */
- public function getOneofFixed64()
- {
- return $this->readOneof(58);
- }
- /**
- * <code>optional uint64 oneof_fixed64 = 58;</code>
- */
- public function setOneofFixed64($var)
- {
- GPBUtil::checkUint64($var);
- $this->writeOneof(58, $var);
- }
- /**
- * <code>optional uint32 oneof_sfixed32 = 59;</code>
- */
- public function getOneofSfixed32()
- {
- return $this->readOneof(59);
- }
- /**
- * <code>optional uint32 oneof_sfixed32 = 59;</code>
- */
- public function setOneofSfixed32($var)
- {
- GPBUtil::checkUint32($var);
- $this->writeOneof(59, $var);
- }
- /**
- * <code>optional uint64 oneof_sfixed64 = 60;</code>
- */
- public function getOneofSfixed64()
- {
- return $this->readOneof(60);
- }
- /**
- * <code>optional uint64 oneof_sfixed64 = 60;</code>
- */
- public function setOneofSfixed64($var)
- {
- GPBUtil::checkUint64($var);
- $this->writeOneof(60, $var);
- }
- /**
- * <code>optional double oneof_double = 61;</code>
- */
- public function getOneofDouble()
- {
- return $this->readOneof(61);
- }
- /**
- * <code>optional double oneof_double = 61;</code>
- */
- public function setOneofDouble($var)
- {
- GPBUtil::checkDouble($var);
- $this->writeOneof(61, $var);
- }
- /**
- * <code>optional float oneof_float = 62;</code>
- */
- public function getOneofFloat()
- {
- return $this->readOneof(62);
- }
- /**
- * <code>optional float oneof_float = 62;</code>
- */
- public function setOneofFloat($var)
- {
- GPBUtil::checkFloat($var);
- $this->writeOneof(62, $var);
- }
- /**
- * <code>optional bool oneof_bool = 63;</code>
- */
- public function getOneofBool()
- {
- return $this->readOneof(63);
- }
- /**
- * <code>optional bool oneof_bool = 63;</code>
- */
- public function setOneofBool($var)
- {
- GPBUtil::checkBool($var);
- $this->writeOneof(63, $var);
- }
- /**
- * <code>optional string oneof_string = 64;</code>
- */
- public function getOneofString()
- {
- return $this->readOneof(64);
- }
- /**
- * <code>optional string oneof_string = 64;</code>
- */
- public function setOneofString($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(64, $var);
- }
- /**
- * <code>optional bytes oneof_bytes = 65;</code>
- */
- public function getOneofBytes()
- {
- return $this->readOneof(65);
- }
- /**
- * <code>optional bytes oneof_bytes = 65;</code>
- */
- public function setOneofBytes($var)
- {
- GPBUtil::checkString($var, False);
- $this->writeOneof(65, $var);
- }
- /**
- * <code>optional .foo.TestEnum oneof_enum = 66;</code>
- */
- public function getOneofEnum()
- {
- return $this->readOneof(66);
- }
- /**
- * <code>optional .foo.TestEnum oneof_enum = 66;</code>
- */
- public function setOneofEnum($var)
- {
- GPBUtil::checkEnum($var, \Foo\TestEnum::class);
- $this->writeOneof(66, $var);
- }
- /**
- * <code>optional .foo.TestMessage.Sub oneof_message = 67;</code>
- */
- public function getOneofMessage()
- {
- return $this->readOneof(67);
- }
- /**
- * <code>optional .foo.TestMessage.Sub oneof_message = 67;</code>
- */
- public function setOneofMessage(&$var)
- {
- GPBUtil::checkMessage($var, \Foo\TestMessage_Sub::class);
- $this->writeOneof(67, $var);
- }
- /**
- * <code>map<int32, int32> map_int32_int32 = 71;</code>
- */
- public function getMapInt32Int32()
- {
- return $this->map_int32_int32;
- }
- /**
- * <code>map<int32, int32> map_int32_int32 = 71;</code>
- */
- public function setMapInt32Int32(&$var)
- {
- $this->map_int32_int32 = $var;
- }
- /**
- * <code>map<int64, int64> map_int64_int64 = 72;</code>
- */
- public function getMapInt64Int64()
- {
- return $this->map_int64_int64;
- }
- /**
- * <code>map<int64, int64> map_int64_int64 = 72;</code>
- */
- public function setMapInt64Int64(&$var)
- {
- $this->map_int64_int64 = $var;
- }
- /**
- * <code>map<uint32, uint32> map_uint32_uint32 = 73;</code>
- */
- public function getMapUint32Uint32()
- {
- return $this->map_uint32_uint32;
- }
- /**
- * <code>map<uint32, uint32> map_uint32_uint32 = 73;</code>
- */
- public function setMapUint32Uint32(&$var)
- {
- $this->map_uint32_uint32 = $var;
- }
- /**
- * <code>map<uint64, uint64> map_uint64_uint64 = 74;</code>
- */
- public function getMapUint64Uint64()
- {
- return $this->map_uint64_uint64;
- }
- /**
- * <code>map<uint64, uint64> map_uint64_uint64 = 74;</code>
- */
- public function setMapUint64Uint64(&$var)
- {
- $this->map_uint64_uint64 = $var;
- }
- /**
- * <code>map<sint32, sint32> map_sint32_sint32 = 75;</code>
- */
- public function getMapSint32Sint32()
- {
- return $this->map_sint32_sint32;
- }
- /**
- * <code>map<sint32, sint32> map_sint32_sint32 = 75;</code>
- */
- public function setMapSint32Sint32(&$var)
- {
- $this->map_sint32_sint32 = $var;
- }
- /**
- * <code>map<sint64, sint64> map_sint64_sint64 = 76;</code>
- */
- public function getMapSint64Sint64()
- {
- return $this->map_sint64_sint64;
- }
- /**
- * <code>map<sint64, sint64> map_sint64_sint64 = 76;</code>
- */
- public function setMapSint64Sint64(&$var)
- {
- $this->map_sint64_sint64 = $var;
- }
- /**
- * <code>map<fixed32, fixed32> map_fixed32_fixed32 = 77;</code>
- */
- public function getMapFixed32Fixed32()
- {
- return $this->map_fixed32_fixed32;
- }
- /**
- * <code>map<fixed32, fixed32> map_fixed32_fixed32 = 77;</code>
- */
- public function setMapFixed32Fixed32(&$var)
- {
- $this->map_fixed32_fixed32 = $var;
- }
- /**
- * <code>map<fixed64, fixed64> map_fixed64_fixed64 = 78;</code>
- */
- public function getMapFixed64Fixed64()
- {
- return $this->map_fixed64_fixed64;
- }
- /**
- * <code>map<fixed64, fixed64> map_fixed64_fixed64 = 78;</code>
- */
- public function setMapFixed64Fixed64(&$var)
- {
- $this->map_fixed64_fixed64 = $var;
- }
- /**
- * <code>map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 79;</code>
- */
- public function getMapSfixed32Sfixed32()
- {
- return $this->map_sfixed32_sfixed32;
- }
- /**
- * <code>map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 79;</code>
- */
- public function setMapSfixed32Sfixed32(&$var)
- {
- $this->map_sfixed32_sfixed32 = $var;
- }
- /**
- * <code>map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 80;</code>
- */
- public function getMapSfixed64Sfixed64()
- {
- return $this->map_sfixed64_sfixed64;
- }
- /**
- * <code>map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 80;</code>
- */
- public function setMapSfixed64Sfixed64(&$var)
- {
- $this->map_sfixed64_sfixed64 = $var;
- }
- /**
- * <code>map<int32, float> map_int32_float = 81;</code>
- */
- public function getMapInt32Float()
- {
- return $this->map_int32_float;
- }
- /**
- * <code>map<int32, float> map_int32_float = 81;</code>
- */
- public function setMapInt32Float(&$var)
- {
- $this->map_int32_float = $var;
- }
- /**
- * <code>map<int32, double> map_int32_double = 82;</code>
- */
- public function getMapInt32Double()
- {
- return $this->map_int32_double;
- }
- /**
- * <code>map<int32, double> map_int32_double = 82;</code>
- */
- public function setMapInt32Double(&$var)
- {
- $this->map_int32_double = $var;
- }
- /**
- * <code>map<bool, bool> map_bool_bool = 83;</code>
- */
- public function getMapBoolBool()
- {
- return $this->map_bool_bool;
- }
- /**
- * <code>map<bool, bool> map_bool_bool = 83;</code>
- */
- public function setMapBoolBool(&$var)
- {
- $this->map_bool_bool = $var;
- }
- /**
- * <code>map<string, string> map_string_string = 84;</code>
- */
- public function getMapStringString()
- {
- return $this->map_string_string;
- }
- /**
- * <code>map<string, string> map_string_string = 84;</code>
- */
- public function setMapStringString(&$var)
- {
- $this->map_string_string = $var;
- }
- /**
- * <code>map<int32, bytes> map_int32_bytes = 85;</code>
- */
- public function getMapInt32Bytes()
- {
- return $this->map_int32_bytes;
- }
- /**
- * <code>map<int32, bytes> map_int32_bytes = 85;</code>
- */
- public function setMapInt32Bytes(&$var)
- {
- $this->map_int32_bytes = $var;
- }
- /**
- * <code>map<int32, .foo.TestEnum> map_int32_enum = 86;</code>
- */
- public function getMapInt32Enum()
- {
- return $this->map_int32_enum;
- }
- /**
- * <code>map<int32, .foo.TestEnum> map_int32_enum = 86;</code>
- */
- public function setMapInt32Enum(&$var)
- {
- $this->map_int32_enum = $var;
- }
- /**
- * <code>map<int32, .foo.TestMessage.Sub> map_int32_message = 87;</code>
- */
- public function getMapInt32Message()
- {
- return $this->map_int32_message;
- }
- /**
- * <code>map<int32, .foo.TestMessage.Sub> map_int32_message = 87;</code>
- */
- public function setMapInt32Message(&$var)
- {
- $this->map_int32_message = $var;
- }
- /**
- * <code>map<int32, .foo.TestMessage> map_recursive = 88;</code>
- */
- public function getMapRecursive()
- {
- return $this->map_recursive;
- }
- /**
- * <code>map<int32, .foo.TestMessage> map_recursive = 88;</code>
- */
- public function setMapRecursive(&$var)
- {
- $this->map_recursive = $var;
- }
- public function getMyOneof()
- {
- return $this->my_oneof;
- }
- }
- /**
- * Protobuf type <code>foo.TestMessage.Sub</code>
- */
- class TestMessage_Sub extends \Google\Protobuf\Internal\Message
- {
- /**
- * <code>optional int32 a = 1;</code>
- */
- private $a = 0;
- /**
- * <code>optional int32 a = 1;</code>
- */
- public function getA()
- {
- return $this->a;
- }
- /**
- * <code>optional int32 a = 1;</code>
- */
- public function setA($var)
- {
- GPBUtil::checkInt32($var);
- $this->a = $var;
- }
- }
- /**
- * Protobuf type <code>foo.TestPackedMessage</code>
- */
- class TestPackedMessage extends \Google\Protobuf\Internal\Message
- {
- /**
- * <code>repeated int32 repeated_int32 = 90 [packed = true];</code>
- */
- private $repeated_int32;
- /**
- * <code>repeated int64 repeated_int64 = 91 [packed = true];</code>
- */
- private $repeated_int64;
- /**
- * <code>repeated uint32 repeated_uint32 = 92 [packed = true];</code>
- */
- private $repeated_uint32;
- /**
- * <code>repeated uint64 repeated_uint64 = 93 [packed = true];</code>
- */
- private $repeated_uint64;
- /**
- * <code>repeated sint32 repeated_sint32 = 94 [packed = true];</code>
- */
- private $repeated_sint32;
- /**
- * <code>repeated sint64 repeated_sint64 = 95 [packed = true];</code>
- */
- private $repeated_sint64;
- /**
- * <code>repeated fixed32 repeated_fixed32 = 96 [packed = true];</code>
- */
- private $repeated_fixed32;
- /**
- * <code>repeated fixed64 repeated_fixed64 = 97 [packed = true];</code>
- */
- private $repeated_fixed64;
- /**
- * <code>repeated sfixed32 repeated_sfixed32 = 98 [packed = true];</code>
- */
- private $repeated_sfixed32;
- /**
- * <code>repeated sfixed64 repeated_sfixed64 = 99 [packed = true];</code>
- */
- private $repeated_sfixed64;
- /**
- * <code>repeated float repeated_float = 100 [packed = true];</code>
- */
- private $repeated_float;
- /**
- * <code>repeated double repeated_double = 101 [packed = true];</code>
- */
- private $repeated_double;
- /**
- * <code>repeated bool repeated_bool = 102 [packed = true];</code>
- */
- private $repeated_bool;
- /**
- * <code>repeated .foo.TestEnum repeated_enum = 103 [packed = true];</code>
- */
- private $repeated_enum;
- /**
- * <code>repeated int32 repeated_int32 = 90 [packed = true];</code>
- */
- public function getRepeatedInt32()
- {
- return $this->repeated_int32;
- }
- /**
- * <code>repeated int32 repeated_int32 = 90 [packed = true];</code>
- */
- public function setRepeatedInt32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::INT32);
- $this->repeated_int32 = $var;
- }
- /**
- * <code>repeated int64 repeated_int64 = 91 [packed = true];</code>
- */
- public function getRepeatedInt64()
- {
- return $this->repeated_int64;
- }
- /**
- * <code>repeated int64 repeated_int64 = 91 [packed = true];</code>
- */
- public function setRepeatedInt64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::INT64);
- $this->repeated_int64 = $var;
- }
- /**
- * <code>repeated uint32 repeated_uint32 = 92 [packed = true];</code>
- */
- public function getRepeatedUint32()
- {
- return $this->repeated_uint32;
- }
- /**
- * <code>repeated uint32 repeated_uint32 = 92 [packed = true];</code>
- */
- public function setRepeatedUint32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::UINT32);
- $this->repeated_uint32 = $var;
- }
- /**
- * <code>repeated uint64 repeated_uint64 = 93 [packed = true];</code>
- */
- public function getRepeatedUint64()
- {
- return $this->repeated_uint64;
- }
- /**
- * <code>repeated uint64 repeated_uint64 = 93 [packed = true];</code>
- */
- public function setRepeatedUint64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::UINT64);
- $this->repeated_uint64 = $var;
- }
- /**
- * <code>repeated sint32 repeated_sint32 = 94 [packed = true];</code>
- */
- public function getRepeatedSint32()
- {
- return $this->repeated_sint32;
- }
- /**
- * <code>repeated sint32 repeated_sint32 = 94 [packed = true];</code>
- */
- public function setRepeatedSint32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::SINT32);
- $this->repeated_sint32 = $var;
- }
- /**
- * <code>repeated sint64 repeated_sint64 = 95 [packed = true];</code>
- */
- public function getRepeatedSint64()
- {
- return $this->repeated_sint64;
- }
- /**
- * <code>repeated sint64 repeated_sint64 = 95 [packed = true];</code>
- */
- public function setRepeatedSint64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::SINT64);
- $this->repeated_sint64 = $var;
- }
- /**
- * <code>repeated fixed32 repeated_fixed32 = 96 [packed = true];</code>
- */
- public function getRepeatedFixed32()
- {
- return $this->repeated_fixed32;
- }
- /**
- * <code>repeated fixed32 repeated_fixed32 = 96 [packed = true];</code>
- */
- public function setRepeatedFixed32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::FIXED32);
- $this->repeated_fixed32 = $var;
- }
- /**
- * <code>repeated fixed64 repeated_fixed64 = 97 [packed = true];</code>
- */
- public function getRepeatedFixed64()
- {
- return $this->repeated_fixed64;
- }
- /**
- * <code>repeated fixed64 repeated_fixed64 = 97 [packed = true];</code>
- */
- public function setRepeatedFixed64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::FIXED64);
- $this->repeated_fixed64 = $var;
- }
- /**
- * <code>repeated sfixed32 repeated_sfixed32 = 98 [packed = true];</code>
- */
- public function getRepeatedSfixed32()
- {
- return $this->repeated_sfixed32;
- }
- /**
- * <code>repeated sfixed32 repeated_sfixed32 = 98 [packed = true];</code>
- */
- public function setRepeatedSfixed32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::SFIXED32);
- $this->repeated_sfixed32 = $var;
- }
- /**
- * <code>repeated sfixed64 repeated_sfixed64 = 99 [packed = true];</code>
- */
- public function getRepeatedSfixed64()
- {
- return $this->repeated_sfixed64;
- }
- /**
- * <code>repeated sfixed64 repeated_sfixed64 = 99 [packed = true];</code>
- */
- public function setRepeatedSfixed64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::SFIXED64);
- $this->repeated_sfixed64 = $var;
- }
- /**
- * <code>repeated float repeated_float = 100 [packed = true];</code>
- */
- public function getRepeatedFloat()
- {
- return $this->repeated_float;
- }
- /**
- * <code>repeated float repeated_float = 100 [packed = true];</code>
- */
- public function setRepeatedFloat(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::FLOAT);
- $this->repeated_float = $var;
- }
- /**
- * <code>repeated double repeated_double = 101 [packed = true];</code>
- */
- public function getRepeatedDouble()
- {
- return $this->repeated_double;
- }
- /**
- * <code>repeated double repeated_double = 101 [packed = true];</code>
- */
- public function setRepeatedDouble(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::DOUBLE);
- $this->repeated_double = $var;
- }
- /**
- * <code>repeated bool repeated_bool = 102 [packed = true];</code>
- */
- public function getRepeatedBool()
- {
- return $this->repeated_bool;
- }
- /**
- * <code>repeated bool repeated_bool = 102 [packed = true];</code>
- */
- public function setRepeatedBool(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::BOOL);
- $this->repeated_bool = $var;
- }
- /**
- * <code>repeated .foo.TestEnum repeated_enum = 103 [packed = true];</code>
- */
- public function getRepeatedEnum()
- {
- return $this->repeated_enum;
- }
- /**
- * <code>repeated .foo.TestEnum repeated_enum = 103 [packed = true];</code>
- */
- public function setRepeatedEnum(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::ENUM, Foo\TestEnum::class);
- $this->repeated_enum = $var;
- }
- }
- /**
- * <pre>
- * Need to be in sync with TestPackedMessage.
- * </pre>
- *
- * Protobuf type <code>foo.TestUnpackedMessage</code>
- */
- class TestUnpackedMessage extends \Google\Protobuf\Internal\Message
- {
- /**
- * <code>repeated int32 repeated_int32 = 90 [packed = false];</code>
- */
- private $repeated_int32;
- /**
- * <code>repeated int64 repeated_int64 = 91 [packed = false];</code>
- */
- private $repeated_int64;
- /**
- * <code>repeated uint32 repeated_uint32 = 92 [packed = false];</code>
- */
- private $repeated_uint32;
- /**
- * <code>repeated uint64 repeated_uint64 = 93 [packed = false];</code>
- */
- private $repeated_uint64;
- /**
- * <code>repeated sint32 repeated_sint32 = 94 [packed = false];</code>
- */
- private $repeated_sint32;
- /**
- * <code>repeated sint64 repeated_sint64 = 95 [packed = false];</code>
- */
- private $repeated_sint64;
- /**
- * <code>repeated fixed32 repeated_fixed32 = 96 [packed = false];</code>
- */
- private $repeated_fixed32;
- /**
- * <code>repeated fixed64 repeated_fixed64 = 97 [packed = false];</code>
- */
- private $repeated_fixed64;
- /**
- * <code>repeated sfixed32 repeated_sfixed32 = 98 [packed = false];</code>
- */
- private $repeated_sfixed32;
- /**
- * <code>repeated sfixed64 repeated_sfixed64 = 99 [packed = false];</code>
- */
- private $repeated_sfixed64;
- /**
- * <code>repeated float repeated_float = 100 [packed = false];</code>
- */
- private $repeated_float;
- /**
- * <code>repeated double repeated_double = 101 [packed = false];</code>
- */
- private $repeated_double;
- /**
- * <code>repeated bool repeated_bool = 102 [packed = false];</code>
- */
- private $repeated_bool;
- /**
- * <code>repeated .foo.TestEnum repeated_enum = 103 [packed = false];</code>
- */
- private $repeated_enum;
- /**
- * <code>repeated int32 repeated_int32 = 90 [packed = false];</code>
- */
- public function getRepeatedInt32()
- {
- return $this->repeated_int32;
- }
- /**
- * <code>repeated int32 repeated_int32 = 90 [packed = false];</code>
- */
- public function setRepeatedInt32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::INT32);
- $this->repeated_int32 = $var;
- }
- /**
- * <code>repeated int64 repeated_int64 = 91 [packed = false];</code>
- */
- public function getRepeatedInt64()
- {
- return $this->repeated_int64;
- }
- /**
- * <code>repeated int64 repeated_int64 = 91 [packed = false];</code>
- */
- public function setRepeatedInt64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::INT64);
- $this->repeated_int64 = $var;
- }
- /**
- * <code>repeated uint32 repeated_uint32 = 92 [packed = false];</code>
- */
- public function getRepeatedUint32()
- {
- return $this->repeated_uint32;
- }
- /**
- * <code>repeated uint32 repeated_uint32 = 92 [packed = false];</code>
- */
- public function setRepeatedUint32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::UINT32);
- $this->repeated_uint32 = $var;
- }
- /**
- * <code>repeated uint64 repeated_uint64 = 93 [packed = false];</code>
- */
- public function getRepeatedUint64()
- {
- return $this->repeated_uint64;
- }
- /**
- * <code>repeated uint64 repeated_uint64 = 93 [packed = false];</code>
- */
- public function setRepeatedUint64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::UINT64);
- $this->repeated_uint64 = $var;
- }
- /**
- * <code>repeated sint32 repeated_sint32 = 94 [packed = false];</code>
- */
- public function getRepeatedSint32()
- {
- return $this->repeated_sint32;
- }
- /**
- * <code>repeated sint32 repeated_sint32 = 94 [packed = false];</code>
- */
- public function setRepeatedSint32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::SINT32);
- $this->repeated_sint32 = $var;
- }
- /**
- * <code>repeated sint64 repeated_sint64 = 95 [packed = false];</code>
- */
- public function getRepeatedSint64()
- {
- return $this->repeated_sint64;
- }
- /**
- * <code>repeated sint64 repeated_sint64 = 95 [packed = false];</code>
- */
- public function setRepeatedSint64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::SINT64);
- $this->repeated_sint64 = $var;
- }
- /**
- * <code>repeated fixed32 repeated_fixed32 = 96 [packed = false];</code>
- */
- public function getRepeatedFixed32()
- {
- return $this->repeated_fixed32;
- }
- /**
- * <code>repeated fixed32 repeated_fixed32 = 96 [packed = false];</code>
- */
- public function setRepeatedFixed32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::FIXED32);
- $this->repeated_fixed32 = $var;
- }
- /**
- * <code>repeated fixed64 repeated_fixed64 = 97 [packed = false];</code>
- */
- public function getRepeatedFixed64()
- {
- return $this->repeated_fixed64;
- }
- /**
- * <code>repeated fixed64 repeated_fixed64 = 97 [packed = false];</code>
- */
- public function setRepeatedFixed64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::FIXED64);
- $this->repeated_fixed64 = $var;
- }
- /**
- * <code>repeated sfixed32 repeated_sfixed32 = 98 [packed = false];</code>
- */
- public function getRepeatedSfixed32()
- {
- return $this->repeated_sfixed32;
- }
- /**
- * <code>repeated sfixed32 repeated_sfixed32 = 98 [packed = false];</code>
- */
- public function setRepeatedSfixed32(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::SFIXED32);
- $this->repeated_sfixed32 = $var;
- }
- /**
- * <code>repeated sfixed64 repeated_sfixed64 = 99 [packed = false];</code>
- */
- public function getRepeatedSfixed64()
- {
- return $this->repeated_sfixed64;
- }
- /**
- * <code>repeated sfixed64 repeated_sfixed64 = 99 [packed = false];</code>
- */
- public function setRepeatedSfixed64(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::SFIXED64);
- $this->repeated_sfixed64 = $var;
- }
- /**
- * <code>repeated float repeated_float = 100 [packed = false];</code>
- */
- public function getRepeatedFloat()
- {
- return $this->repeated_float;
- }
- /**
- * <code>repeated float repeated_float = 100 [packed = false];</code>
- */
- public function setRepeatedFloat(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::FLOAT);
- $this->repeated_float = $var;
- }
- /**
- * <code>repeated double repeated_double = 101 [packed = false];</code>
- */
- public function getRepeatedDouble()
- {
- return $this->repeated_double;
- }
- /**
- * <code>repeated double repeated_double = 101 [packed = false];</code>
- */
- public function setRepeatedDouble(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::DOUBLE);
- $this->repeated_double = $var;
- }
- /**
- * <code>repeated bool repeated_bool = 102 [packed = false];</code>
- */
- public function getRepeatedBool()
- {
- return $this->repeated_bool;
- }
- /**
- * <code>repeated bool repeated_bool = 102 [packed = false];</code>
- */
- public function setRepeatedBool(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::BOOL);
- $this->repeated_bool = $var;
- }
- /**
- * <code>repeated .foo.TestEnum repeated_enum = 103 [packed = false];</code>
- */
- public function getRepeatedEnum()
- {
- return $this->repeated_enum;
- }
- /**
- * <code>repeated .foo.TestEnum repeated_enum = 103 [packed = false];</code>
- */
- public function setRepeatedEnum(&$var)
- {
- GPBUtil::checkRepeatedField($var, GPBType::ENUM, Foo\TestEnum::class);
- $this->repeated_enum = $var;
- }
- }
- /**
- * <pre>
- * /**/@<>&\{
- * </pre>
- *
- * Protobuf type <code>foo.TestPhpDoc</code>
- */
- class TestPhpDoc extends \Google\Protobuf\Internal\Message
- {
- /**
- * <code>optional int32 a = 1;</code>
- */
- private $a = 0;
- /**
- * <code>optional int32 a = 1;</code>
- */
- public function getA()
- {
- return $this->a;
- }
- /**
- * <code>optional int32 a = 1;</code>
- */
- public function setA($var)
- {
- GPBUtil::checkInt32($var);
- $this->a = $var;
- }
- }
- /**
- * Protobuf enum <code>foo.TestEnum</code>
- */
- class TestEnum
- {
- /**
- * <code>ZERO = 0;</code>
- */
- const ZERO = 0;
- /**
- * <code>ONE = 1;</code>
- */
- const ONE = 1;
- }
- $pool = DescriptorPool::getGeneratedPool();
- $pool->internalAddGeneratedFile(hex2bin(
- "0a9c250a0a746573742e70726f746f1203666f6f1a12746573745f696e63" .
- "6c7564652e70726f746f22be1d0a0b546573744d65737361676512160a0e" .
- "6f7074696f6e616c5f696e74333218012001280512160a0e6f7074696f6e" .
- "616c5f696e74363418022001280312170a0f6f7074696f6e616c5f75696e" .
- "74333218032001280d12170a0f6f7074696f6e616c5f75696e7436341804" .
- "2001280412170a0f6f7074696f6e616c5f73696e74333218052001281112" .
- "170a0f6f7074696f6e616c5f73696e74363418062001281212180a106f70" .
- "74696f6e616c5f6669786564333218072001280712180a106f7074696f6e" .
- "616c5f6669786564363418082001280612190a116f7074696f6e616c5f73" .
- "6669786564333218092001280f12190a116f7074696f6e616c5f73666978" .
- "65643634180a2001281012160a0e6f7074696f6e616c5f666c6f6174180b" .
- "2001280212170a0f6f7074696f6e616c5f646f75626c65180c2001280112" .
- "150a0d6f7074696f6e616c5f626f6f6c180d2001280812170a0f6f707469" .
- "6f6e616c5f737472696e67180e2001280912160a0e6f7074696f6e616c5f" .
- "6279746573180f2001280c12240a0d6f7074696f6e616c5f656e756d1810" .
- "2001280e320d2e666f6f2e54657374456e756d122e0a106f7074696f6e61" .
- "6c5f6d65737361676518112001280b32142e666f6f2e546573744d657373" .
- "6167652e53756212330a196f7074696f6e616c5f696e636c756465645f6d" .
- "65737361676518122001280b32102e6261722e54657374496e636c756465" .
- "12230a0972656375727369766518132001280b32102e666f6f2e54657374" .
- "4d65737361676512160a0e72657065617465645f696e743332181f200328" .
- "0512160a0e72657065617465645f696e74363418202003280312170a0f72" .
- "657065617465645f75696e74333218212003280d12170a0f726570656174" .
- "65645f75696e74363418222003280412170a0f72657065617465645f7369" .
- "6e74333218232003281112170a0f72657065617465645f73696e74363418" .
- "242003281212180a1072657065617465645f666978656433321825200328" .
- "0712180a1072657065617465645f6669786564363418262003280612190a" .
- "1172657065617465645f736669786564333218272003280f12190a117265" .
- "7065617465645f736669786564363418282003281012160a0e7265706561" .
- "7465645f666c6f617418292003280212170a0f72657065617465645f646f" .
- "75626c65182a2003280112150a0d72657065617465645f626f6f6c182b20" .
- "03280812170a0f72657065617465645f737472696e67182c200328091216" .
- "0a0e72657065617465645f6279746573182d2003280c12240a0d72657065" .
- "617465645f656e756d182e2003280e320d2e666f6f2e54657374456e756d" .
- "122e0a1072657065617465645f6d657373616765182f2003280b32142e66" .
- "6f6f2e546573744d6573736167652e537562122c0a127265706561746564" .
- "5f72656375727369766518302003280b32102e666f6f2e546573744d6573" .
- "7361676512150a0b6f6e656f665f696e743332183320012805480012150a" .
- "0b6f6e656f665f696e743634183420012803480012160a0c6f6e656f665f" .
- "75696e74333218352001280d480012160a0c6f6e656f665f75696e743634" .
- "183620012804480012160a0c6f6e656f665f73696e74333218372001280d" .
- "480012160a0c6f6e656f665f73696e743634183820012804480012170a0d" .
- "6f6e656f665f6669786564333218392001280d480012170a0d6f6e656f66" .
- "5f66697865643634183a20012804480012180a0e6f6e656f665f73666978" .
- "65643332183b2001280d480012180a0e6f6e656f665f7366697865643634" .
- "183c20012804480012160a0c6f6e656f665f646f75626c65183d20012801" .
- "480012150a0b6f6e656f665f666c6f6174183e20012802480012140a0a6f" .
- "6e656f665f626f6f6c183f20012808480012160a0c6f6e656f665f737472" .
- "696e67184020012809480012150a0b6f6e656f665f627974657318412001" .
- "280c480012230a0a6f6e656f665f656e756d18422001280e320d2e666f6f" .
- "2e54657374456e756d4800122d0a0d6f6e656f665f6d6573736167651843" .
- "2001280b32142e666f6f2e546573744d6573736167652e5375624800123c" .
- "0a0f6d61705f696e7433325f696e74333218472003280b32232e666f6f2e" .
- "546573744d6573736167652e4d6170496e743332496e743332456e747279" .
- "123c0a0f6d61705f696e7436345f696e74363418482003280b32232e666f" .
- "6f2e546573744d6573736167652e4d6170496e743634496e743634456e74" .
- "727912400a116d61705f75696e7433325f75696e74333218492003280b32" .
- "252e666f6f2e546573744d6573736167652e4d617055696e74333255696e" .
- "743332456e74727912400a116d61705f75696e7436345f75696e74363418" .
- "4a2003280b32252e666f6f2e546573744d6573736167652e4d617055696e" .
- "74363455696e743634456e74727912400a116d61705f73696e7433325f73" .
- "696e743332184b2003280b32252e666f6f2e546573744d6573736167652e" .
- "4d617053696e74333253696e743332456e74727912400a116d61705f7369" .
- "6e7436345f73696e743634184c2003280b32252e666f6f2e546573744d65" .
- "73736167652e4d617053696e74363453696e743634456e74727912440a13" .
- "6d61705f666978656433325f66697865643332184d2003280b32272e666f" .
- "6f2e546573744d6573736167652e4d617046697865643332466978656433" .
- "32456e74727912440a136d61705f666978656436345f6669786564363418" .
- "4e2003280b32272e666f6f2e546573744d6573736167652e4d6170466978" .
- "6564363446697865643634456e74727912480a156d61705f736669786564" .
- "33325f7366697865643332184f2003280b32292e666f6f2e546573744d65" .
- "73736167652e4d617053666978656433325366697865643332456e747279" .
- "12480a156d61705f73666978656436345f73666978656436341850200328" .
- "0b32292e666f6f2e546573744d6573736167652e4d617053666978656436" .
- "345366697865643634456e747279123c0a0f6d61705f696e7433325f666c" .
- "6f617418512003280b32232e666f6f2e546573744d6573736167652e4d61" .
- "70496e743332466c6f6174456e747279123e0a106d61705f696e7433325f" .
- "646f75626c6518522003280b32242e666f6f2e546573744d657373616765" .
- "2e4d6170496e743332446f75626c65456e74727912380a0d6d61705f626f" .
- "6f6c5f626f6f6c18532003280b32212e666f6f2e546573744d6573736167" .
- "652e4d6170426f6f6c426f6f6c456e74727912400a116d61705f73747269" .
- "6e675f737472696e6718542003280b32252e666f6f2e546573744d657373" .
- "6167652e4d6170537472696e67537472696e67456e747279123c0a0f6d61" .
- "705f696e7433325f627974657318552003280b32232e666f6f2e54657374" .
- "4d6573736167652e4d6170496e7433324279746573456e747279123a0a0e" .
- "6d61705f696e7433325f656e756d18562003280b32222e666f6f2e546573" .
- "744d6573736167652e4d6170496e743332456e756d456e74727912400a11" .
- "6d61705f696e7433325f6d65737361676518572003280b32252e666f6f2e" .
- "546573744d6573736167652e4d6170496e7433324d657373616765456e74" .
- "727912390a0d6d61705f72656375727369766518582003280b32222e666f" .
- "6f2e546573744d6573736167652e4d6170526563757273697665456e7472" .
- "791a340a124d6170496e743332496e743332456e747279120b0a036b6579" .
- "180120012805120d0a0576616c75651802200128053a0238011a340a124d" .
- "6170496e743634496e743634456e747279120b0a036b6579180120012803" .
- "120d0a0576616c75651802200128033a0238011a360a144d617055696e74" .
- "333255696e743332456e747279120b0a036b657918012001280d120d0a05" .
- "76616c756518022001280d3a0238011a360a144d617055696e7436345569" .
- "6e743634456e747279120b0a036b6579180120012804120d0a0576616c75" .
- "651802200128043a0238011a360a144d617053696e74333253696e743332" .
- "456e747279120b0a036b6579180120012811120d0a0576616c7565180220" .
- "0128113a0238011a360a144d617053696e74363453696e743634456e7472" .
- "79120b0a036b6579180120012812120d0a0576616c75651802200128123a" .
- "0238011a380a164d61704669786564333246697865643332456e74727912" .
- "0b0a036b6579180120012807120d0a0576616c75651802200128073a0238" .
- "011a380a164d61704669786564363446697865643634456e747279120b0a" .
- "036b6579180120012806120d0a0576616c75651802200128063a0238011a" .
- "3a0a184d617053666978656433325366697865643332456e747279120b0a" .
- "036b657918012001280f120d0a0576616c756518022001280f3a0238011a" .
- "3a0a184d617053666978656436345366697865643634456e747279120b0a" .
- "036b6579180120012810120d0a0576616c75651802200128103a0238011a" .
- "340a124d6170496e743332466c6f6174456e747279120b0a036b65791801" .
- "20012805120d0a0576616c75651802200128023a0238011a350a134d6170" .
- "496e743332446f75626c65456e747279120b0a036b657918012001280512" .
- "0d0a0576616c75651802200128013a0238011a320a104d6170426f6f6c42" .
- "6f6f6c456e747279120b0a036b6579180120012808120d0a0576616c7565" .
- "1802200128083a0238011a360a144d6170537472696e67537472696e6745" .
- "6e747279120b0a036b6579180120012809120d0a0576616c756518022001" .
- "28093a0238011a340a124d6170496e7433324279746573456e747279120b" .
- "0a036b6579180120012805120d0a0576616c756518022001280c3a023801" .
- "1a420a114d6170496e743332456e756d456e747279120b0a036b65791801" .
- "20012805121c0a0576616c756518022001280e320d2e666f6f2e54657374" .
- "456e756d3a0238011a4c0a144d6170496e7433324d657373616765456e74" .
- "7279120b0a036b657918012001280512230a0576616c756518022001280b" .
- "32142e666f6f2e546573744d6573736167652e5375623a0238011a450a11" .
- "4d6170526563757273697665456e747279120b0a036b6579180120012805" .
- "121f0a0576616c756518022001280b32102e666f6f2e546573744d657373" .
- "6167653a0238011a100a0353756212090a0161180120012805420a0a086d" .
- "795f6f6e656f6622b7030a11546573745061636b65644d65737361676512" .
- "1a0a0e72657065617465645f696e743332185a2003280542021001121a0a" .
- "0e72657065617465645f696e743634185b2003280342021001121b0a0f72" .
- "657065617465645f75696e743332185c2003280d42021001121b0a0f7265" .
- "7065617465645f75696e743634185d2003280442021001121b0a0f726570" .
- "65617465645f73696e743332185e2003281142021001121b0a0f72657065" .
- "617465645f73696e743634185f2003281242021001121c0a107265706561" .
- "7465645f6669786564333218602003280742021001121c0a107265706561" .
- "7465645f6669786564363418612003280642021001121d0a117265706561" .
- "7465645f736669786564333218622003280f42021001121d0a1172657065" .
- "617465645f736669786564363418632003281042021001121a0a0e726570" .
- "65617465645f666c6f617418642003280242021001121b0a0f7265706561" .
- "7465645f646f75626c651865200328014202100112190a0d726570656174" .
- "65645f626f6f6c1866200328084202100112280a0d72657065617465645f" .
- "656e756d18672003280e320d2e666f6f2e54657374456e756d4202100122" .
- "b9030a1354657374556e7061636b65644d657373616765121a0a0e726570" .
- "65617465645f696e743332185a2003280542021000121a0a0e7265706561" .
- "7465645f696e743634185b2003280342021000121b0a0f72657065617465" .
- "645f75696e743332185c2003280d42021000121b0a0f7265706561746564" .
- "5f75696e743634185d2003280442021000121b0a0f72657065617465645f" .
- "73696e743332185e2003281142021000121b0a0f72657065617465645f73" .
- "696e743634185f2003281242021000121c0a1072657065617465645f6669" .
- "786564333218602003280742021000121c0a1072657065617465645f6669" .
- "786564363418612003280642021000121d0a1172657065617465645f7366" .
- "69786564333218622003280f42021000121d0a1172657065617465645f73" .
- "6669786564363418632003281042021000121a0a0e72657065617465645f" .
- "666c6f617418642003280242021000121b0a0f72657065617465645f646f" .
- "75626c651865200328014202100012190a0d72657065617465645f626f6f" .
- "6c1866200328084202100012280a0d72657065617465645f656e756d1867" .
- "2003280e320d2e666f6f2e54657374456e756d4202100022170a0a546573" .
- "74506870446f6312090a01611801200128052a1d0a0854657374456e756d" .
- "12080a045a45524f100012070a034f4e451001620670726f746f33"
- ));
|