Common.java 141 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: Common.proto
  3. package com.fdkankan.model.proto;
  4. public final class Common {
  5. private Common() {}
  6. public interface Affine3fOrBuilder extends
  7. // @@protoc_insertion_point(interface_extends:tutorial.Affine3f)
  8. com.google.protobuf.MessageOrBuilder {
  9. /**
  10. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  11. */
  12. boolean hasRotation();
  13. /**
  14. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  15. */
  16. Quaternionf getRotation();
  17. /**
  18. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  19. */
  20. QuaternionfOrBuilder getRotationOrBuilder();
  21. /**
  22. * <code>optional .tutorial.Vector3f translation = 2;</code>
  23. */
  24. boolean hasTranslation();
  25. /**
  26. * <code>optional .tutorial.Vector3f translation = 2;</code>
  27. */
  28. Vector3f getTranslation();
  29. /**
  30. * <code>optional .tutorial.Vector3f translation = 2;</code>
  31. */
  32. Vector3fOrBuilder getTranslationOrBuilder();
  33. }
  34. /**
  35. * Protobuf type {@code tutorial.Affine3f}
  36. */
  37. public static final class Affine3f extends
  38. com.google.protobuf.GeneratedMessage implements
  39. // @@protoc_insertion_point(message_implements:tutorial.Affine3f)
  40. Affine3fOrBuilder {
  41. // Use Affine3f.newBuilder() to construct.
  42. private Affine3f(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
  43. super(builder);
  44. this.unknownFields = builder.getUnknownFields();
  45. }
  46. private Affine3f(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
  47. private static final Affine3f defaultInstance;
  48. public static Affine3f getDefaultInstance() {
  49. return defaultInstance;
  50. }
  51. public Affine3f getDefaultInstanceForType() {
  52. return defaultInstance;
  53. }
  54. private final com.google.protobuf.UnknownFieldSet unknownFields;
  55. @Override
  56. public final com.google.protobuf.UnknownFieldSet
  57. getUnknownFields() {
  58. return this.unknownFields;
  59. }
  60. private Affine3f(
  61. com.google.protobuf.CodedInputStream input,
  62. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  63. throws com.google.protobuf.InvalidProtocolBufferException {
  64. initFields();
  65. int mutable_bitField0_ = 0;
  66. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  67. com.google.protobuf.UnknownFieldSet.newBuilder();
  68. try {
  69. boolean done = false;
  70. while (!done) {
  71. int tag = input.readTag();
  72. switch (tag) {
  73. case 0:
  74. done = true;
  75. break;
  76. case 10: {
  77. Quaternionf.Builder subBuilder = null;
  78. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  79. subBuilder = rotation_.toBuilder();
  80. }
  81. rotation_ = input.readMessage(Quaternionf.PARSER, extensionRegistry);
  82. if (subBuilder != null) {
  83. subBuilder.mergeFrom(rotation_);
  84. rotation_ = subBuilder.buildPartial();
  85. }
  86. bitField0_ |= 0x00000001;
  87. break;
  88. }
  89. case 18: {
  90. Vector3f.Builder subBuilder = null;
  91. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  92. subBuilder = translation_.toBuilder();
  93. }
  94. translation_ = input.readMessage(Vector3f.PARSER, extensionRegistry);
  95. if (subBuilder != null) {
  96. subBuilder.mergeFrom(translation_);
  97. translation_ = subBuilder.buildPartial();
  98. }
  99. bitField0_ |= 0x00000002;
  100. break;
  101. }
  102. default: {
  103. if (!parseUnknownField(input, unknownFields,
  104. extensionRegistry, tag)) {
  105. done = true;
  106. }
  107. break;
  108. }
  109. }
  110. }
  111. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  112. throw e.setUnfinishedMessage(this);
  113. } catch (java.io.IOException e) {
  114. throw new com.google.protobuf.InvalidProtocolBufferException(
  115. e.getMessage()).setUnfinishedMessage(this);
  116. } finally {
  117. this.unknownFields = unknownFields.build();
  118. makeExtensionsImmutable();
  119. }
  120. }
  121. public static final com.google.protobuf.Descriptors.Descriptor
  122. getDescriptor() {
  123. return Common.internal_static_tutorial_Affine3f_descriptor;
  124. }
  125. protected FieldAccessorTable
  126. internalGetFieldAccessorTable() {
  127. return Common.internal_static_tutorial_Affine3f_fieldAccessorTable
  128. .ensureFieldAccessorsInitialized(
  129. Affine3f.class, Builder.class);
  130. }
  131. public static com.google.protobuf.Parser<Affine3f> PARSER =
  132. new com.google.protobuf.AbstractParser<Affine3f>() {
  133. public Affine3f parsePartialFrom(
  134. com.google.protobuf.CodedInputStream input,
  135. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  136. throws com.google.protobuf.InvalidProtocolBufferException {
  137. return new Affine3f(input, extensionRegistry);
  138. }
  139. };
  140. @Override
  141. public com.google.protobuf.Parser<Affine3f> getParserForType() {
  142. return PARSER;
  143. }
  144. private int bitField0_;
  145. public static final int ROTATION_FIELD_NUMBER = 1;
  146. private Quaternionf rotation_;
  147. /**
  148. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  149. */
  150. public boolean hasRotation() {
  151. return ((bitField0_ & 0x00000001) == 0x00000001);
  152. }
  153. /**
  154. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  155. */
  156. public Quaternionf getRotation() {
  157. return rotation_;
  158. }
  159. /**
  160. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  161. */
  162. public QuaternionfOrBuilder getRotationOrBuilder() {
  163. return rotation_;
  164. }
  165. public static final int TRANSLATION_FIELD_NUMBER = 2;
  166. private Vector3f translation_;
  167. /**
  168. * <code>optional .tutorial.Vector3f translation = 2;</code>
  169. */
  170. public boolean hasTranslation() {
  171. return ((bitField0_ & 0x00000002) == 0x00000002);
  172. }
  173. /**
  174. * <code>optional .tutorial.Vector3f translation = 2;</code>
  175. */
  176. public Vector3f getTranslation() {
  177. return translation_;
  178. }
  179. /**
  180. * <code>optional .tutorial.Vector3f translation = 2;</code>
  181. */
  182. public Vector3fOrBuilder getTranslationOrBuilder() {
  183. return translation_;
  184. }
  185. private void initFields() {
  186. rotation_ = Quaternionf.getDefaultInstance();
  187. translation_ = Vector3f.getDefaultInstance();
  188. }
  189. private byte memoizedIsInitialized = -1;
  190. public final boolean isInitialized() {
  191. byte isInitialized = memoizedIsInitialized;
  192. if (isInitialized == 1) return true;
  193. if (isInitialized == 0) return false;
  194. memoizedIsInitialized = 1;
  195. return true;
  196. }
  197. public void writeTo(com.google.protobuf.CodedOutputStream output)
  198. throws java.io.IOException {
  199. getSerializedSize();
  200. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  201. output.writeMessage(1, rotation_);
  202. }
  203. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  204. output.writeMessage(2, translation_);
  205. }
  206. getUnknownFields().writeTo(output);
  207. }
  208. private int memoizedSerializedSize = -1;
  209. public int getSerializedSize() {
  210. int size = memoizedSerializedSize;
  211. if (size != -1) return size;
  212. size = 0;
  213. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  214. size += com.google.protobuf.CodedOutputStream
  215. .computeMessageSize(1, rotation_);
  216. }
  217. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  218. size += com.google.protobuf.CodedOutputStream
  219. .computeMessageSize(2, translation_);
  220. }
  221. size += getUnknownFields().getSerializedSize();
  222. memoizedSerializedSize = size;
  223. return size;
  224. }
  225. private static final long serialVersionUID = 0L;
  226. @Override
  227. protected Object writeReplace()
  228. throws java.io.ObjectStreamException {
  229. return super.writeReplace();
  230. }
  231. public static Affine3f parseFrom(
  232. com.google.protobuf.ByteString data)
  233. throws com.google.protobuf.InvalidProtocolBufferException {
  234. return PARSER.parseFrom(data);
  235. }
  236. public static Affine3f parseFrom(
  237. com.google.protobuf.ByteString data,
  238. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  239. throws com.google.protobuf.InvalidProtocolBufferException {
  240. return PARSER.parseFrom(data, extensionRegistry);
  241. }
  242. public static Affine3f parseFrom(byte[] data)
  243. throws com.google.protobuf.InvalidProtocolBufferException {
  244. return PARSER.parseFrom(data);
  245. }
  246. public static Affine3f parseFrom(
  247. byte[] data,
  248. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  249. throws com.google.protobuf.InvalidProtocolBufferException {
  250. return PARSER.parseFrom(data, extensionRegistry);
  251. }
  252. public static Affine3f parseFrom(java.io.InputStream input)
  253. throws java.io.IOException {
  254. return PARSER.parseFrom(input);
  255. }
  256. public static Affine3f parseFrom(
  257. java.io.InputStream input,
  258. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  259. throws java.io.IOException {
  260. return PARSER.parseFrom(input, extensionRegistry);
  261. }
  262. public static Affine3f parseDelimitedFrom(java.io.InputStream input)
  263. throws java.io.IOException {
  264. return PARSER.parseDelimitedFrom(input);
  265. }
  266. public static Affine3f parseDelimitedFrom(
  267. java.io.InputStream input,
  268. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  269. throws java.io.IOException {
  270. return PARSER.parseDelimitedFrom(input, extensionRegistry);
  271. }
  272. public static Affine3f parseFrom(
  273. com.google.protobuf.CodedInputStream input)
  274. throws java.io.IOException {
  275. return PARSER.parseFrom(input);
  276. }
  277. public static Affine3f parseFrom(
  278. com.google.protobuf.CodedInputStream input,
  279. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  280. throws java.io.IOException {
  281. return PARSER.parseFrom(input, extensionRegistry);
  282. }
  283. public static Builder newBuilder() { return Builder.create(); }
  284. public Builder newBuilderForType() { return newBuilder(); }
  285. public static Builder newBuilder(Affine3f prototype) {
  286. return newBuilder().mergeFrom(prototype);
  287. }
  288. public Builder toBuilder() { return newBuilder(this); }
  289. @Override
  290. protected Builder newBuilderForType(
  291. BuilderParent parent) {
  292. Builder builder = new Builder(parent);
  293. return builder;
  294. }
  295. /**
  296. * Protobuf type {@code tutorial.Affine3f}
  297. */
  298. public static final class Builder extends
  299. com.google.protobuf.GeneratedMessage.Builder<Builder> implements
  300. // @@protoc_insertion_point(builder_implements:tutorial.Affine3f)
  301. Affine3fOrBuilder {
  302. public static final com.google.protobuf.Descriptors.Descriptor
  303. getDescriptor() {
  304. return Common.internal_static_tutorial_Affine3f_descriptor;
  305. }
  306. protected FieldAccessorTable
  307. internalGetFieldAccessorTable() {
  308. return Common.internal_static_tutorial_Affine3f_fieldAccessorTable
  309. .ensureFieldAccessorsInitialized(
  310. Affine3f.class, Builder.class);
  311. }
  312. // Construct using com.fdkankan.common.proto.Common.Affine3f.newBuilder()
  313. private Builder() {
  314. maybeForceBuilderInitialization();
  315. }
  316. private Builder(
  317. BuilderParent parent) {
  318. super(parent);
  319. maybeForceBuilderInitialization();
  320. }
  321. private void maybeForceBuilderInitialization() {
  322. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  323. getRotationFieldBuilder();
  324. getTranslationFieldBuilder();
  325. }
  326. }
  327. private static Builder create() {
  328. return new Builder();
  329. }
  330. public Builder clear() {
  331. super.clear();
  332. if (rotationBuilder_ == null) {
  333. rotation_ = Quaternionf.getDefaultInstance();
  334. } else {
  335. rotationBuilder_.clear();
  336. }
  337. bitField0_ = (bitField0_ & ~0x00000001);
  338. if (translationBuilder_ == null) {
  339. translation_ = Vector3f.getDefaultInstance();
  340. } else {
  341. translationBuilder_.clear();
  342. }
  343. bitField0_ = (bitField0_ & ~0x00000002);
  344. return this;
  345. }
  346. public com.google.protobuf.Descriptors.Descriptor
  347. getDescriptorForType() {
  348. return Common.internal_static_tutorial_Affine3f_descriptor;
  349. }
  350. public Affine3f getDefaultInstanceForType() {
  351. return Affine3f.getDefaultInstance();
  352. }
  353. public Affine3f build() {
  354. Affine3f result = buildPartial();
  355. if (!result.isInitialized()) {
  356. throw newUninitializedMessageException(result);
  357. }
  358. return result;
  359. }
  360. public Affine3f buildPartial() {
  361. Affine3f result = new Affine3f(this);
  362. int from_bitField0_ = bitField0_;
  363. int to_bitField0_ = 0;
  364. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  365. to_bitField0_ |= 0x00000001;
  366. }
  367. if (rotationBuilder_ == null) {
  368. result.rotation_ = rotation_;
  369. } else {
  370. result.rotation_ = rotationBuilder_.build();
  371. }
  372. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  373. to_bitField0_ |= 0x00000002;
  374. }
  375. if (translationBuilder_ == null) {
  376. result.translation_ = translation_;
  377. } else {
  378. result.translation_ = translationBuilder_.build();
  379. }
  380. result.bitField0_ = to_bitField0_;
  381. onBuilt();
  382. return result;
  383. }
  384. public Builder mergeFrom(com.google.protobuf.Message other) {
  385. if (other instanceof Affine3f) {
  386. return mergeFrom((Affine3f)other);
  387. } else {
  388. super.mergeFrom(other);
  389. return this;
  390. }
  391. }
  392. public Builder mergeFrom(Affine3f other) {
  393. if (other == Affine3f.getDefaultInstance()) return this;
  394. if (other.hasRotation()) {
  395. mergeRotation(other.getRotation());
  396. }
  397. if (other.hasTranslation()) {
  398. mergeTranslation(other.getTranslation());
  399. }
  400. this.mergeUnknownFields(other.getUnknownFields());
  401. return this;
  402. }
  403. public final boolean isInitialized() {
  404. return true;
  405. }
  406. public Builder mergeFrom(
  407. com.google.protobuf.CodedInputStream input,
  408. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  409. throws java.io.IOException {
  410. Affine3f parsedMessage = null;
  411. try {
  412. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  413. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  414. parsedMessage = (Affine3f) e.getUnfinishedMessage();
  415. throw e;
  416. } finally {
  417. if (parsedMessage != null) {
  418. mergeFrom(parsedMessage);
  419. }
  420. }
  421. return this;
  422. }
  423. private int bitField0_;
  424. private Quaternionf rotation_ = Quaternionf.getDefaultInstance();
  425. private com.google.protobuf.SingleFieldBuilder<
  426. Quaternionf, Quaternionf.Builder, QuaternionfOrBuilder> rotationBuilder_;
  427. /**
  428. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  429. */
  430. public boolean hasRotation() {
  431. return ((bitField0_ & 0x00000001) == 0x00000001);
  432. }
  433. /**
  434. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  435. */
  436. public Quaternionf getRotation() {
  437. if (rotationBuilder_ == null) {
  438. return rotation_;
  439. } else {
  440. return rotationBuilder_.getMessage();
  441. }
  442. }
  443. /**
  444. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  445. */
  446. public Builder setRotation(Quaternionf value) {
  447. if (rotationBuilder_ == null) {
  448. if (value == null) {
  449. throw new NullPointerException();
  450. }
  451. rotation_ = value;
  452. onChanged();
  453. } else {
  454. rotationBuilder_.setMessage(value);
  455. }
  456. bitField0_ |= 0x00000001;
  457. return this;
  458. }
  459. /**
  460. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  461. */
  462. public Builder setRotation(
  463. Quaternionf.Builder builderForValue) {
  464. if (rotationBuilder_ == null) {
  465. rotation_ = builderForValue.build();
  466. onChanged();
  467. } else {
  468. rotationBuilder_.setMessage(builderForValue.build());
  469. }
  470. bitField0_ |= 0x00000001;
  471. return this;
  472. }
  473. /**
  474. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  475. */
  476. public Builder mergeRotation(Quaternionf value) {
  477. if (rotationBuilder_ == null) {
  478. if (((bitField0_ & 0x00000001) == 0x00000001) &&
  479. rotation_ != Quaternionf.getDefaultInstance()) {
  480. rotation_ =
  481. Quaternionf.newBuilder(rotation_).mergeFrom(value).buildPartial();
  482. } else {
  483. rotation_ = value;
  484. }
  485. onChanged();
  486. } else {
  487. rotationBuilder_.mergeFrom(value);
  488. }
  489. bitField0_ |= 0x00000001;
  490. return this;
  491. }
  492. /**
  493. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  494. */
  495. public Builder clearRotation() {
  496. if (rotationBuilder_ == null) {
  497. rotation_ = Quaternionf.getDefaultInstance();
  498. onChanged();
  499. } else {
  500. rotationBuilder_.clear();
  501. }
  502. bitField0_ = (bitField0_ & ~0x00000001);
  503. return this;
  504. }
  505. /**
  506. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  507. */
  508. public Quaternionf.Builder getRotationBuilder() {
  509. bitField0_ |= 0x00000001;
  510. onChanged();
  511. return getRotationFieldBuilder().getBuilder();
  512. }
  513. /**
  514. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  515. */
  516. public QuaternionfOrBuilder getRotationOrBuilder() {
  517. if (rotationBuilder_ != null) {
  518. return rotationBuilder_.getMessageOrBuilder();
  519. } else {
  520. return rotation_;
  521. }
  522. }
  523. /**
  524. * <code>optional .tutorial.Quaternionf rotation = 1;</code>
  525. */
  526. private com.google.protobuf.SingleFieldBuilder<
  527. Quaternionf, Quaternionf.Builder, QuaternionfOrBuilder>
  528. getRotationFieldBuilder() {
  529. if (rotationBuilder_ == null) {
  530. rotationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
  531. Quaternionf, Quaternionf.Builder, QuaternionfOrBuilder>(
  532. getRotation(),
  533. getParentForChildren(),
  534. isClean());
  535. rotation_ = null;
  536. }
  537. return rotationBuilder_;
  538. }
  539. private Vector3f translation_ = Vector3f.getDefaultInstance();
  540. private com.google.protobuf.SingleFieldBuilder<
  541. Vector3f, Vector3f.Builder, Vector3fOrBuilder> translationBuilder_;
  542. /**
  543. * <code>optional .tutorial.Vector3f translation = 2;</code>
  544. */
  545. public boolean hasTranslation() {
  546. return ((bitField0_ & 0x00000002) == 0x00000002);
  547. }
  548. /**
  549. * <code>optional .tutorial.Vector3f translation = 2;</code>
  550. */
  551. public Vector3f getTranslation() {
  552. if (translationBuilder_ == null) {
  553. return translation_;
  554. } else {
  555. return translationBuilder_.getMessage();
  556. }
  557. }
  558. /**
  559. * <code>optional .tutorial.Vector3f translation = 2;</code>
  560. */
  561. public Builder setTranslation(Vector3f value) {
  562. if (translationBuilder_ == null) {
  563. if (value == null) {
  564. throw new NullPointerException();
  565. }
  566. translation_ = value;
  567. onChanged();
  568. } else {
  569. translationBuilder_.setMessage(value);
  570. }
  571. bitField0_ |= 0x00000002;
  572. return this;
  573. }
  574. /**
  575. * <code>optional .tutorial.Vector3f translation = 2;</code>
  576. */
  577. public Builder setTranslation(
  578. Vector3f.Builder builderForValue) {
  579. if (translationBuilder_ == null) {
  580. translation_ = builderForValue.build();
  581. onChanged();
  582. } else {
  583. translationBuilder_.setMessage(builderForValue.build());
  584. }
  585. bitField0_ |= 0x00000002;
  586. return this;
  587. }
  588. /**
  589. * <code>optional .tutorial.Vector3f translation = 2;</code>
  590. */
  591. public Builder mergeTranslation(Vector3f value) {
  592. if (translationBuilder_ == null) {
  593. if (((bitField0_ & 0x00000002) == 0x00000002) &&
  594. translation_ != Vector3f.getDefaultInstance()) {
  595. translation_ =
  596. Vector3f.newBuilder(translation_).mergeFrom(value).buildPartial();
  597. } else {
  598. translation_ = value;
  599. }
  600. onChanged();
  601. } else {
  602. translationBuilder_.mergeFrom(value);
  603. }
  604. bitField0_ |= 0x00000002;
  605. return this;
  606. }
  607. /**
  608. * <code>optional .tutorial.Vector3f translation = 2;</code>
  609. */
  610. public Builder clearTranslation() {
  611. if (translationBuilder_ == null) {
  612. translation_ = Vector3f.getDefaultInstance();
  613. onChanged();
  614. } else {
  615. translationBuilder_.clear();
  616. }
  617. bitField0_ = (bitField0_ & ~0x00000002);
  618. return this;
  619. }
  620. /**
  621. * <code>optional .tutorial.Vector3f translation = 2;</code>
  622. */
  623. public Vector3f.Builder getTranslationBuilder() {
  624. bitField0_ |= 0x00000002;
  625. onChanged();
  626. return getTranslationFieldBuilder().getBuilder();
  627. }
  628. /**
  629. * <code>optional .tutorial.Vector3f translation = 2;</code>
  630. */
  631. public Vector3fOrBuilder getTranslationOrBuilder() {
  632. if (translationBuilder_ != null) {
  633. return translationBuilder_.getMessageOrBuilder();
  634. } else {
  635. return translation_;
  636. }
  637. }
  638. /**
  639. * <code>optional .tutorial.Vector3f translation = 2;</code>
  640. */
  641. private com.google.protobuf.SingleFieldBuilder<
  642. Vector3f, Vector3f.Builder, Vector3fOrBuilder>
  643. getTranslationFieldBuilder() {
  644. if (translationBuilder_ == null) {
  645. translationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
  646. Vector3f, Vector3f.Builder, Vector3fOrBuilder>(
  647. getTranslation(),
  648. getParentForChildren(),
  649. isClean());
  650. translation_ = null;
  651. }
  652. return translationBuilder_;
  653. }
  654. // @@protoc_insertion_point(builder_scope:tutorial.Affine3f)
  655. }
  656. static {
  657. defaultInstance = new Affine3f(true);
  658. defaultInstance.initFields();
  659. }
  660. // @@protoc_insertion_point(class_scope:tutorial.Affine3f)
  661. }
  662. public interface QuaternionfOrBuilder extends
  663. // @@protoc_insertion_point(interface_extends:tutorial.Quaternionf)
  664. com.google.protobuf.MessageOrBuilder {
  665. /**
  666. * <code>optional float w = 1;</code>
  667. */
  668. boolean hasW();
  669. /**
  670. * <code>optional float w = 1;</code>
  671. */
  672. float getW();
  673. /**
  674. * <code>optional float x = 2;</code>
  675. */
  676. boolean hasX();
  677. /**
  678. * <code>optional float x = 2;</code>
  679. */
  680. float getX();
  681. /**
  682. * <code>optional float y = 3;</code>
  683. */
  684. boolean hasY();
  685. /**
  686. * <code>optional float y = 3;</code>
  687. */
  688. float getY();
  689. /**
  690. * <code>optional float z = 4;</code>
  691. */
  692. boolean hasZ();
  693. /**
  694. * <code>optional float z = 4;</code>
  695. */
  696. float getZ();
  697. }
  698. /**
  699. * Protobuf type {@code tutorial.Quaternionf}
  700. */
  701. public static final class Quaternionf extends
  702. com.google.protobuf.GeneratedMessage implements
  703. // @@protoc_insertion_point(message_implements:tutorial.Quaternionf)
  704. QuaternionfOrBuilder {
  705. // Use Quaternionf.newBuilder() to construct.
  706. private Quaternionf(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
  707. super(builder);
  708. this.unknownFields = builder.getUnknownFields();
  709. }
  710. private Quaternionf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
  711. private static final Quaternionf defaultInstance;
  712. public static Quaternionf getDefaultInstance() {
  713. return defaultInstance;
  714. }
  715. public Quaternionf getDefaultInstanceForType() {
  716. return defaultInstance;
  717. }
  718. private final com.google.protobuf.UnknownFieldSet unknownFields;
  719. @Override
  720. public final com.google.protobuf.UnknownFieldSet
  721. getUnknownFields() {
  722. return this.unknownFields;
  723. }
  724. private Quaternionf(
  725. com.google.protobuf.CodedInputStream input,
  726. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  727. throws com.google.protobuf.InvalidProtocolBufferException {
  728. initFields();
  729. int mutable_bitField0_ = 0;
  730. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  731. com.google.protobuf.UnknownFieldSet.newBuilder();
  732. try {
  733. boolean done = false;
  734. while (!done) {
  735. int tag = input.readTag();
  736. switch (tag) {
  737. case 0:
  738. done = true;
  739. break;
  740. case 13: {
  741. bitField0_ |= 0x00000001;
  742. w_ = input.readFloat();
  743. break;
  744. }
  745. case 21: {
  746. bitField0_ |= 0x00000002;
  747. x_ = input.readFloat();
  748. break;
  749. }
  750. case 29: {
  751. bitField0_ |= 0x00000004;
  752. y_ = input.readFloat();
  753. break;
  754. }
  755. case 37: {
  756. bitField0_ |= 0x00000008;
  757. z_ = input.readFloat();
  758. break;
  759. }
  760. default: {
  761. if (!parseUnknownField(input, unknownFields,
  762. extensionRegistry, tag)) {
  763. done = true;
  764. }
  765. break;
  766. }
  767. }
  768. }
  769. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  770. throw e.setUnfinishedMessage(this);
  771. } catch (java.io.IOException e) {
  772. throw new com.google.protobuf.InvalidProtocolBufferException(
  773. e.getMessage()).setUnfinishedMessage(this);
  774. } finally {
  775. this.unknownFields = unknownFields.build();
  776. makeExtensionsImmutable();
  777. }
  778. }
  779. public static final com.google.protobuf.Descriptors.Descriptor
  780. getDescriptor() {
  781. return Common.internal_static_tutorial_Quaternionf_descriptor;
  782. }
  783. protected FieldAccessorTable
  784. internalGetFieldAccessorTable() {
  785. return Common.internal_static_tutorial_Quaternionf_fieldAccessorTable
  786. .ensureFieldAccessorsInitialized(
  787. Quaternionf.class, Builder.class);
  788. }
  789. public static com.google.protobuf.Parser<Quaternionf> PARSER =
  790. new com.google.protobuf.AbstractParser<Quaternionf>() {
  791. public Quaternionf parsePartialFrom(
  792. com.google.protobuf.CodedInputStream input,
  793. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  794. throws com.google.protobuf.InvalidProtocolBufferException {
  795. return new Quaternionf(input, extensionRegistry);
  796. }
  797. };
  798. @Override
  799. public com.google.protobuf.Parser<Quaternionf> getParserForType() {
  800. return PARSER;
  801. }
  802. private int bitField0_;
  803. public static final int W_FIELD_NUMBER = 1;
  804. private float w_;
  805. /**
  806. * <code>optional float w = 1;</code>
  807. */
  808. public boolean hasW() {
  809. return ((bitField0_ & 0x00000001) == 0x00000001);
  810. }
  811. /**
  812. * <code>optional float w = 1;</code>
  813. */
  814. public float getW() {
  815. return w_;
  816. }
  817. public static final int X_FIELD_NUMBER = 2;
  818. private float x_;
  819. /**
  820. * <code>optional float x = 2;</code>
  821. */
  822. public boolean hasX() {
  823. return ((bitField0_ & 0x00000002) == 0x00000002);
  824. }
  825. /**
  826. * <code>optional float x = 2;</code>
  827. */
  828. public float getX() {
  829. return x_;
  830. }
  831. public static final int Y_FIELD_NUMBER = 3;
  832. private float y_;
  833. /**
  834. * <code>optional float y = 3;</code>
  835. */
  836. public boolean hasY() {
  837. return ((bitField0_ & 0x00000004) == 0x00000004);
  838. }
  839. /**
  840. * <code>optional float y = 3;</code>
  841. */
  842. public float getY() {
  843. return y_;
  844. }
  845. public static final int Z_FIELD_NUMBER = 4;
  846. private float z_;
  847. /**
  848. * <code>optional float z = 4;</code>
  849. */
  850. public boolean hasZ() {
  851. return ((bitField0_ & 0x00000008) == 0x00000008);
  852. }
  853. /**
  854. * <code>optional float z = 4;</code>
  855. */
  856. public float getZ() {
  857. return z_;
  858. }
  859. private void initFields() {
  860. w_ = 0F;
  861. x_ = 0F;
  862. y_ = 0F;
  863. z_ = 0F;
  864. }
  865. private byte memoizedIsInitialized = -1;
  866. public final boolean isInitialized() {
  867. byte isInitialized = memoizedIsInitialized;
  868. if (isInitialized == 1) return true;
  869. if (isInitialized == 0) return false;
  870. memoizedIsInitialized = 1;
  871. return true;
  872. }
  873. public void writeTo(com.google.protobuf.CodedOutputStream output)
  874. throws java.io.IOException {
  875. getSerializedSize();
  876. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  877. output.writeFloat(1, w_);
  878. }
  879. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  880. output.writeFloat(2, x_);
  881. }
  882. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  883. output.writeFloat(3, y_);
  884. }
  885. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  886. output.writeFloat(4, z_);
  887. }
  888. getUnknownFields().writeTo(output);
  889. }
  890. private int memoizedSerializedSize = -1;
  891. public int getSerializedSize() {
  892. int size = memoizedSerializedSize;
  893. if (size != -1) return size;
  894. size = 0;
  895. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  896. size += com.google.protobuf.CodedOutputStream
  897. .computeFloatSize(1, w_);
  898. }
  899. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  900. size += com.google.protobuf.CodedOutputStream
  901. .computeFloatSize(2, x_);
  902. }
  903. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  904. size += com.google.protobuf.CodedOutputStream
  905. .computeFloatSize(3, y_);
  906. }
  907. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  908. size += com.google.protobuf.CodedOutputStream
  909. .computeFloatSize(4, z_);
  910. }
  911. size += getUnknownFields().getSerializedSize();
  912. memoizedSerializedSize = size;
  913. return size;
  914. }
  915. private static final long serialVersionUID = 0L;
  916. @Override
  917. protected Object writeReplace()
  918. throws java.io.ObjectStreamException {
  919. return super.writeReplace();
  920. }
  921. public static Quaternionf parseFrom(
  922. com.google.protobuf.ByteString data)
  923. throws com.google.protobuf.InvalidProtocolBufferException {
  924. return PARSER.parseFrom(data);
  925. }
  926. public static Quaternionf parseFrom(
  927. com.google.protobuf.ByteString data,
  928. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  929. throws com.google.protobuf.InvalidProtocolBufferException {
  930. return PARSER.parseFrom(data, extensionRegistry);
  931. }
  932. public static Quaternionf parseFrom(byte[] data)
  933. throws com.google.protobuf.InvalidProtocolBufferException {
  934. return PARSER.parseFrom(data);
  935. }
  936. public static Quaternionf parseFrom(
  937. byte[] data,
  938. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  939. throws com.google.protobuf.InvalidProtocolBufferException {
  940. return PARSER.parseFrom(data, extensionRegistry);
  941. }
  942. public static Quaternionf parseFrom(java.io.InputStream input)
  943. throws java.io.IOException {
  944. return PARSER.parseFrom(input);
  945. }
  946. public static Quaternionf parseFrom(
  947. java.io.InputStream input,
  948. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  949. throws java.io.IOException {
  950. return PARSER.parseFrom(input, extensionRegistry);
  951. }
  952. public static Quaternionf parseDelimitedFrom(java.io.InputStream input)
  953. throws java.io.IOException {
  954. return PARSER.parseDelimitedFrom(input);
  955. }
  956. public static Quaternionf parseDelimitedFrom(
  957. java.io.InputStream input,
  958. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  959. throws java.io.IOException {
  960. return PARSER.parseDelimitedFrom(input, extensionRegistry);
  961. }
  962. public static Quaternionf parseFrom(
  963. com.google.protobuf.CodedInputStream input)
  964. throws java.io.IOException {
  965. return PARSER.parseFrom(input);
  966. }
  967. public static Quaternionf parseFrom(
  968. com.google.protobuf.CodedInputStream input,
  969. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  970. throws java.io.IOException {
  971. return PARSER.parseFrom(input, extensionRegistry);
  972. }
  973. public static Builder newBuilder() { return Builder.create(); }
  974. public Builder newBuilderForType() { return newBuilder(); }
  975. public static Builder newBuilder(Quaternionf prototype) {
  976. return newBuilder().mergeFrom(prototype);
  977. }
  978. public Builder toBuilder() { return newBuilder(this); }
  979. @Override
  980. protected Builder newBuilderForType(
  981. BuilderParent parent) {
  982. Builder builder = new Builder(parent);
  983. return builder;
  984. }
  985. /**
  986. * Protobuf type {@code tutorial.Quaternionf}
  987. */
  988. public static final class Builder extends
  989. com.google.protobuf.GeneratedMessage.Builder<Builder> implements
  990. // @@protoc_insertion_point(builder_implements:tutorial.Quaternionf)
  991. QuaternionfOrBuilder {
  992. public static final com.google.protobuf.Descriptors.Descriptor
  993. getDescriptor() {
  994. return Common.internal_static_tutorial_Quaternionf_descriptor;
  995. }
  996. protected FieldAccessorTable
  997. internalGetFieldAccessorTable() {
  998. return Common.internal_static_tutorial_Quaternionf_fieldAccessorTable
  999. .ensureFieldAccessorsInitialized(
  1000. Quaternionf.class, Builder.class);
  1001. }
  1002. // Construct using com.fdkankan.common.proto.Common.Quaternionf.newBuilder()
  1003. private Builder() {
  1004. maybeForceBuilderInitialization();
  1005. }
  1006. private Builder(
  1007. BuilderParent parent) {
  1008. super(parent);
  1009. maybeForceBuilderInitialization();
  1010. }
  1011. private void maybeForceBuilderInitialization() {
  1012. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  1013. }
  1014. }
  1015. private static Builder create() {
  1016. return new Builder();
  1017. }
  1018. public Builder clear() {
  1019. super.clear();
  1020. w_ = 0F;
  1021. bitField0_ = (bitField0_ & ~0x00000001);
  1022. x_ = 0F;
  1023. bitField0_ = (bitField0_ & ~0x00000002);
  1024. y_ = 0F;
  1025. bitField0_ = (bitField0_ & ~0x00000004);
  1026. z_ = 0F;
  1027. bitField0_ = (bitField0_ & ~0x00000008);
  1028. return this;
  1029. }
  1030. public com.google.protobuf.Descriptors.Descriptor
  1031. getDescriptorForType() {
  1032. return Common.internal_static_tutorial_Quaternionf_descriptor;
  1033. }
  1034. public Quaternionf getDefaultInstanceForType() {
  1035. return Quaternionf.getDefaultInstance();
  1036. }
  1037. public Quaternionf build() {
  1038. Quaternionf result = buildPartial();
  1039. if (!result.isInitialized()) {
  1040. throw newUninitializedMessageException(result);
  1041. }
  1042. return result;
  1043. }
  1044. public Quaternionf buildPartial() {
  1045. Quaternionf result = new Quaternionf(this);
  1046. int from_bitField0_ = bitField0_;
  1047. int to_bitField0_ = 0;
  1048. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  1049. to_bitField0_ |= 0x00000001;
  1050. }
  1051. result.w_ = w_;
  1052. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  1053. to_bitField0_ |= 0x00000002;
  1054. }
  1055. result.x_ = x_;
  1056. if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  1057. to_bitField0_ |= 0x00000004;
  1058. }
  1059. result.y_ = y_;
  1060. if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
  1061. to_bitField0_ |= 0x00000008;
  1062. }
  1063. result.z_ = z_;
  1064. result.bitField0_ = to_bitField0_;
  1065. onBuilt();
  1066. return result;
  1067. }
  1068. public Builder mergeFrom(com.google.protobuf.Message other) {
  1069. if (other instanceof Quaternionf) {
  1070. return mergeFrom((Quaternionf)other);
  1071. } else {
  1072. super.mergeFrom(other);
  1073. return this;
  1074. }
  1075. }
  1076. public Builder mergeFrom(Quaternionf other) {
  1077. if (other == Quaternionf.getDefaultInstance()) return this;
  1078. if (other.hasW()) {
  1079. setW(other.getW());
  1080. }
  1081. if (other.hasX()) {
  1082. setX(other.getX());
  1083. }
  1084. if (other.hasY()) {
  1085. setY(other.getY());
  1086. }
  1087. if (other.hasZ()) {
  1088. setZ(other.getZ());
  1089. }
  1090. this.mergeUnknownFields(other.getUnknownFields());
  1091. return this;
  1092. }
  1093. public final boolean isInitialized() {
  1094. return true;
  1095. }
  1096. public Builder mergeFrom(
  1097. com.google.protobuf.CodedInputStream input,
  1098. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1099. throws java.io.IOException {
  1100. Quaternionf parsedMessage = null;
  1101. try {
  1102. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  1103. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  1104. parsedMessage = (Quaternionf) e.getUnfinishedMessage();
  1105. throw e;
  1106. } finally {
  1107. if (parsedMessage != null) {
  1108. mergeFrom(parsedMessage);
  1109. }
  1110. }
  1111. return this;
  1112. }
  1113. private int bitField0_;
  1114. private float w_ ;
  1115. /**
  1116. * <code>optional float w = 1;</code>
  1117. */
  1118. public boolean hasW() {
  1119. return ((bitField0_ & 0x00000001) == 0x00000001);
  1120. }
  1121. /**
  1122. * <code>optional float w = 1;</code>
  1123. */
  1124. public float getW() {
  1125. return w_;
  1126. }
  1127. /**
  1128. * <code>optional float w = 1;</code>
  1129. */
  1130. public Builder setW(float value) {
  1131. bitField0_ |= 0x00000001;
  1132. w_ = value;
  1133. onChanged();
  1134. return this;
  1135. }
  1136. /**
  1137. * <code>optional float w = 1;</code>
  1138. */
  1139. public Builder clearW() {
  1140. bitField0_ = (bitField0_ & ~0x00000001);
  1141. w_ = 0F;
  1142. onChanged();
  1143. return this;
  1144. }
  1145. private float x_ ;
  1146. /**
  1147. * <code>optional float x = 2;</code>
  1148. */
  1149. public boolean hasX() {
  1150. return ((bitField0_ & 0x00000002) == 0x00000002);
  1151. }
  1152. /**
  1153. * <code>optional float x = 2;</code>
  1154. */
  1155. public float getX() {
  1156. return x_;
  1157. }
  1158. /**
  1159. * <code>optional float x = 2;</code>
  1160. */
  1161. public Builder setX(float value) {
  1162. bitField0_ |= 0x00000002;
  1163. x_ = value;
  1164. onChanged();
  1165. return this;
  1166. }
  1167. /**
  1168. * <code>optional float x = 2;</code>
  1169. */
  1170. public Builder clearX() {
  1171. bitField0_ = (bitField0_ & ~0x00000002);
  1172. x_ = 0F;
  1173. onChanged();
  1174. return this;
  1175. }
  1176. private float y_ ;
  1177. /**
  1178. * <code>optional float y = 3;</code>
  1179. */
  1180. public boolean hasY() {
  1181. return ((bitField0_ & 0x00000004) == 0x00000004);
  1182. }
  1183. /**
  1184. * <code>optional float y = 3;</code>
  1185. */
  1186. public float getY() {
  1187. return y_;
  1188. }
  1189. /**
  1190. * <code>optional float y = 3;</code>
  1191. */
  1192. public Builder setY(float value) {
  1193. bitField0_ |= 0x00000004;
  1194. y_ = value;
  1195. onChanged();
  1196. return this;
  1197. }
  1198. /**
  1199. * <code>optional float y = 3;</code>
  1200. */
  1201. public Builder clearY() {
  1202. bitField0_ = (bitField0_ & ~0x00000004);
  1203. y_ = 0F;
  1204. onChanged();
  1205. return this;
  1206. }
  1207. private float z_ ;
  1208. /**
  1209. * <code>optional float z = 4;</code>
  1210. */
  1211. public boolean hasZ() {
  1212. return ((bitField0_ & 0x00000008) == 0x00000008);
  1213. }
  1214. /**
  1215. * <code>optional float z = 4;</code>
  1216. */
  1217. public float getZ() {
  1218. return z_;
  1219. }
  1220. /**
  1221. * <code>optional float z = 4;</code>
  1222. */
  1223. public Builder setZ(float value) {
  1224. bitField0_ |= 0x00000008;
  1225. z_ = value;
  1226. onChanged();
  1227. return this;
  1228. }
  1229. /**
  1230. * <code>optional float z = 4;</code>
  1231. */
  1232. public Builder clearZ() {
  1233. bitField0_ = (bitField0_ & ~0x00000008);
  1234. z_ = 0F;
  1235. onChanged();
  1236. return this;
  1237. }
  1238. // @@protoc_insertion_point(builder_scope:tutorial.Quaternionf)
  1239. }
  1240. static {
  1241. defaultInstance = new Quaternionf(true);
  1242. defaultInstance.initFields();
  1243. }
  1244. // @@protoc_insertion_point(class_scope:tutorial.Quaternionf)
  1245. }
  1246. public interface Vector3fOrBuilder extends
  1247. // @@protoc_insertion_point(interface_extends:tutorial.Vector3f)
  1248. com.google.protobuf.MessageOrBuilder {
  1249. /**
  1250. * <code>optional float x = 1;</code>
  1251. */
  1252. boolean hasX();
  1253. /**
  1254. * <code>optional float x = 1;</code>
  1255. */
  1256. float getX();
  1257. /**
  1258. * <code>optional float y = 2;</code>
  1259. */
  1260. boolean hasY();
  1261. /**
  1262. * <code>optional float y = 2;</code>
  1263. */
  1264. float getY();
  1265. /**
  1266. * <code>optional float z = 3;</code>
  1267. */
  1268. boolean hasZ();
  1269. /**
  1270. * <code>optional float z = 3;</code>
  1271. */
  1272. float getZ();
  1273. }
  1274. /**
  1275. * Protobuf type {@code tutorial.Vector3f}
  1276. */
  1277. public static final class Vector3f extends
  1278. com.google.protobuf.GeneratedMessage implements
  1279. // @@protoc_insertion_point(message_implements:tutorial.Vector3f)
  1280. Vector3fOrBuilder {
  1281. // Use Vector3f.newBuilder() to construct.
  1282. private Vector3f(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
  1283. super(builder);
  1284. this.unknownFields = builder.getUnknownFields();
  1285. }
  1286. private Vector3f(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
  1287. private static final Vector3f defaultInstance;
  1288. public static Vector3f getDefaultInstance() {
  1289. return defaultInstance;
  1290. }
  1291. public Vector3f getDefaultInstanceForType() {
  1292. return defaultInstance;
  1293. }
  1294. private final com.google.protobuf.UnknownFieldSet unknownFields;
  1295. @Override
  1296. public final com.google.protobuf.UnknownFieldSet
  1297. getUnknownFields() {
  1298. return this.unknownFields;
  1299. }
  1300. private Vector3f(
  1301. com.google.protobuf.CodedInputStream input,
  1302. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1303. throws com.google.protobuf.InvalidProtocolBufferException {
  1304. initFields();
  1305. int mutable_bitField0_ = 0;
  1306. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  1307. com.google.protobuf.UnknownFieldSet.newBuilder();
  1308. try {
  1309. boolean done = false;
  1310. while (!done) {
  1311. int tag = input.readTag();
  1312. switch (tag) {
  1313. case 0:
  1314. done = true;
  1315. break;
  1316. case 13: {
  1317. bitField0_ |= 0x00000001;
  1318. x_ = input.readFloat();
  1319. break;
  1320. }
  1321. case 21: {
  1322. bitField0_ |= 0x00000002;
  1323. y_ = input.readFloat();
  1324. break;
  1325. }
  1326. case 29: {
  1327. bitField0_ |= 0x00000004;
  1328. z_ = input.readFloat();
  1329. break;
  1330. }
  1331. default: {
  1332. if (!parseUnknownField(input, unknownFields,
  1333. extensionRegistry, tag)) {
  1334. done = true;
  1335. }
  1336. break;
  1337. }
  1338. }
  1339. }
  1340. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  1341. throw e.setUnfinishedMessage(this);
  1342. } catch (java.io.IOException e) {
  1343. throw new com.google.protobuf.InvalidProtocolBufferException(
  1344. e.getMessage()).setUnfinishedMessage(this);
  1345. } finally {
  1346. this.unknownFields = unknownFields.build();
  1347. makeExtensionsImmutable();
  1348. }
  1349. }
  1350. public static final com.google.protobuf.Descriptors.Descriptor
  1351. getDescriptor() {
  1352. return Common.internal_static_tutorial_Vector3f_descriptor;
  1353. }
  1354. protected FieldAccessorTable
  1355. internalGetFieldAccessorTable() {
  1356. return Common.internal_static_tutorial_Vector3f_fieldAccessorTable
  1357. .ensureFieldAccessorsInitialized(
  1358. Vector3f.class, Builder.class);
  1359. }
  1360. public static com.google.protobuf.Parser<Vector3f> PARSER =
  1361. new com.google.protobuf.AbstractParser<Vector3f>() {
  1362. public Vector3f parsePartialFrom(
  1363. com.google.protobuf.CodedInputStream input,
  1364. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1365. throws com.google.protobuf.InvalidProtocolBufferException {
  1366. return new Vector3f(input, extensionRegistry);
  1367. }
  1368. };
  1369. @Override
  1370. public com.google.protobuf.Parser<Vector3f> getParserForType() {
  1371. return PARSER;
  1372. }
  1373. private int bitField0_;
  1374. public static final int X_FIELD_NUMBER = 1;
  1375. private float x_;
  1376. /**
  1377. * <code>optional float x = 1;</code>
  1378. */
  1379. public boolean hasX() {
  1380. return ((bitField0_ & 0x00000001) == 0x00000001);
  1381. }
  1382. /**
  1383. * <code>optional float x = 1;</code>
  1384. */
  1385. public float getX() {
  1386. return x_;
  1387. }
  1388. public static final int Y_FIELD_NUMBER = 2;
  1389. private float y_;
  1390. /**
  1391. * <code>optional float y = 2;</code>
  1392. */
  1393. public boolean hasY() {
  1394. return ((bitField0_ & 0x00000002) == 0x00000002);
  1395. }
  1396. /**
  1397. * <code>optional float y = 2;</code>
  1398. */
  1399. public float getY() {
  1400. return y_;
  1401. }
  1402. public static final int Z_FIELD_NUMBER = 3;
  1403. private float z_;
  1404. /**
  1405. * <code>optional float z = 3;</code>
  1406. */
  1407. public boolean hasZ() {
  1408. return ((bitField0_ & 0x00000004) == 0x00000004);
  1409. }
  1410. /**
  1411. * <code>optional float z = 3;</code>
  1412. */
  1413. public float getZ() {
  1414. return z_;
  1415. }
  1416. private void initFields() {
  1417. x_ = 0F;
  1418. y_ = 0F;
  1419. z_ = 0F;
  1420. }
  1421. private byte memoizedIsInitialized = -1;
  1422. public final boolean isInitialized() {
  1423. byte isInitialized = memoizedIsInitialized;
  1424. if (isInitialized == 1) return true;
  1425. if (isInitialized == 0) return false;
  1426. memoizedIsInitialized = 1;
  1427. return true;
  1428. }
  1429. public void writeTo(com.google.protobuf.CodedOutputStream output)
  1430. throws java.io.IOException {
  1431. getSerializedSize();
  1432. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  1433. output.writeFloat(1, x_);
  1434. }
  1435. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  1436. output.writeFloat(2, y_);
  1437. }
  1438. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  1439. output.writeFloat(3, z_);
  1440. }
  1441. getUnknownFields().writeTo(output);
  1442. }
  1443. private int memoizedSerializedSize = -1;
  1444. public int getSerializedSize() {
  1445. int size = memoizedSerializedSize;
  1446. if (size != -1) return size;
  1447. size = 0;
  1448. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  1449. size += com.google.protobuf.CodedOutputStream
  1450. .computeFloatSize(1, x_);
  1451. }
  1452. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  1453. size += com.google.protobuf.CodedOutputStream
  1454. .computeFloatSize(2, y_);
  1455. }
  1456. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  1457. size += com.google.protobuf.CodedOutputStream
  1458. .computeFloatSize(3, z_);
  1459. }
  1460. size += getUnknownFields().getSerializedSize();
  1461. memoizedSerializedSize = size;
  1462. return size;
  1463. }
  1464. private static final long serialVersionUID = 0L;
  1465. @Override
  1466. protected Object writeReplace()
  1467. throws java.io.ObjectStreamException {
  1468. return super.writeReplace();
  1469. }
  1470. public static Vector3f parseFrom(
  1471. com.google.protobuf.ByteString data)
  1472. throws com.google.protobuf.InvalidProtocolBufferException {
  1473. return PARSER.parseFrom(data);
  1474. }
  1475. public static Vector3f parseFrom(
  1476. com.google.protobuf.ByteString data,
  1477. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1478. throws com.google.protobuf.InvalidProtocolBufferException {
  1479. return PARSER.parseFrom(data, extensionRegistry);
  1480. }
  1481. public static Vector3f parseFrom(byte[] data)
  1482. throws com.google.protobuf.InvalidProtocolBufferException {
  1483. return PARSER.parseFrom(data);
  1484. }
  1485. public static Vector3f parseFrom(
  1486. byte[] data,
  1487. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1488. throws com.google.protobuf.InvalidProtocolBufferException {
  1489. return PARSER.parseFrom(data, extensionRegistry);
  1490. }
  1491. public static Vector3f parseFrom(java.io.InputStream input)
  1492. throws java.io.IOException {
  1493. return PARSER.parseFrom(input);
  1494. }
  1495. public static Vector3f parseFrom(
  1496. java.io.InputStream input,
  1497. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1498. throws java.io.IOException {
  1499. return PARSER.parseFrom(input, extensionRegistry);
  1500. }
  1501. public static Vector3f parseDelimitedFrom(java.io.InputStream input)
  1502. throws java.io.IOException {
  1503. return PARSER.parseDelimitedFrom(input);
  1504. }
  1505. public static Vector3f parseDelimitedFrom(
  1506. java.io.InputStream input,
  1507. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1508. throws java.io.IOException {
  1509. return PARSER.parseDelimitedFrom(input, extensionRegistry);
  1510. }
  1511. public static Vector3f parseFrom(
  1512. com.google.protobuf.CodedInputStream input)
  1513. throws java.io.IOException {
  1514. return PARSER.parseFrom(input);
  1515. }
  1516. public static Vector3f parseFrom(
  1517. com.google.protobuf.CodedInputStream input,
  1518. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1519. throws java.io.IOException {
  1520. return PARSER.parseFrom(input, extensionRegistry);
  1521. }
  1522. public static Builder newBuilder() { return Builder.create(); }
  1523. public Builder newBuilderForType() { return newBuilder(); }
  1524. public static Builder newBuilder(Vector3f prototype) {
  1525. return newBuilder().mergeFrom(prototype);
  1526. }
  1527. public Builder toBuilder() { return newBuilder(this); }
  1528. @Override
  1529. protected Builder newBuilderForType(
  1530. BuilderParent parent) {
  1531. Builder builder = new Builder(parent);
  1532. return builder;
  1533. }
  1534. /**
  1535. * Protobuf type {@code tutorial.Vector3f}
  1536. */
  1537. public static final class Builder extends
  1538. com.google.protobuf.GeneratedMessage.Builder<Builder> implements
  1539. // @@protoc_insertion_point(builder_implements:tutorial.Vector3f)
  1540. Vector3fOrBuilder {
  1541. public static final com.google.protobuf.Descriptors.Descriptor
  1542. getDescriptor() {
  1543. return Common.internal_static_tutorial_Vector3f_descriptor;
  1544. }
  1545. protected FieldAccessorTable
  1546. internalGetFieldAccessorTable() {
  1547. return Common.internal_static_tutorial_Vector3f_fieldAccessorTable
  1548. .ensureFieldAccessorsInitialized(
  1549. Vector3f.class, Builder.class);
  1550. }
  1551. // Construct using com.fdkankan.common.proto.Common.Vector3f.newBuilder()
  1552. private Builder() {
  1553. maybeForceBuilderInitialization();
  1554. }
  1555. private Builder(
  1556. BuilderParent parent) {
  1557. super(parent);
  1558. maybeForceBuilderInitialization();
  1559. }
  1560. private void maybeForceBuilderInitialization() {
  1561. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  1562. }
  1563. }
  1564. private static Builder create() {
  1565. return new Builder();
  1566. }
  1567. public Builder clear() {
  1568. super.clear();
  1569. x_ = 0F;
  1570. bitField0_ = (bitField0_ & ~0x00000001);
  1571. y_ = 0F;
  1572. bitField0_ = (bitField0_ & ~0x00000002);
  1573. z_ = 0F;
  1574. bitField0_ = (bitField0_ & ~0x00000004);
  1575. return this;
  1576. }
  1577. public com.google.protobuf.Descriptors.Descriptor
  1578. getDescriptorForType() {
  1579. return Common.internal_static_tutorial_Vector3f_descriptor;
  1580. }
  1581. public Vector3f getDefaultInstanceForType() {
  1582. return Vector3f.getDefaultInstance();
  1583. }
  1584. public Vector3f build() {
  1585. Vector3f result = buildPartial();
  1586. if (!result.isInitialized()) {
  1587. throw newUninitializedMessageException(result);
  1588. }
  1589. return result;
  1590. }
  1591. public Vector3f buildPartial() {
  1592. Vector3f result = new Vector3f(this);
  1593. int from_bitField0_ = bitField0_;
  1594. int to_bitField0_ = 0;
  1595. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  1596. to_bitField0_ |= 0x00000001;
  1597. }
  1598. result.x_ = x_;
  1599. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  1600. to_bitField0_ |= 0x00000002;
  1601. }
  1602. result.y_ = y_;
  1603. if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  1604. to_bitField0_ |= 0x00000004;
  1605. }
  1606. result.z_ = z_;
  1607. result.bitField0_ = to_bitField0_;
  1608. onBuilt();
  1609. return result;
  1610. }
  1611. public Builder mergeFrom(com.google.protobuf.Message other) {
  1612. if (other instanceof Vector3f) {
  1613. return mergeFrom((Vector3f)other);
  1614. } else {
  1615. super.mergeFrom(other);
  1616. return this;
  1617. }
  1618. }
  1619. public Builder mergeFrom(Vector3f other) {
  1620. if (other == Vector3f.getDefaultInstance()) return this;
  1621. if (other.hasX()) {
  1622. setX(other.getX());
  1623. }
  1624. if (other.hasY()) {
  1625. setY(other.getY());
  1626. }
  1627. if (other.hasZ()) {
  1628. setZ(other.getZ());
  1629. }
  1630. this.mergeUnknownFields(other.getUnknownFields());
  1631. return this;
  1632. }
  1633. public final boolean isInitialized() {
  1634. return true;
  1635. }
  1636. public Builder mergeFrom(
  1637. com.google.protobuf.CodedInputStream input,
  1638. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1639. throws java.io.IOException {
  1640. Vector3f parsedMessage = null;
  1641. try {
  1642. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  1643. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  1644. parsedMessage = (Vector3f) e.getUnfinishedMessage();
  1645. throw e;
  1646. } finally {
  1647. if (parsedMessage != null) {
  1648. mergeFrom(parsedMessage);
  1649. }
  1650. }
  1651. return this;
  1652. }
  1653. private int bitField0_;
  1654. private float x_ ;
  1655. /**
  1656. * <code>optional float x = 1;</code>
  1657. */
  1658. public boolean hasX() {
  1659. return ((bitField0_ & 0x00000001) == 0x00000001);
  1660. }
  1661. /**
  1662. * <code>optional float x = 1;</code>
  1663. */
  1664. public float getX() {
  1665. return x_;
  1666. }
  1667. /**
  1668. * <code>optional float x = 1;</code>
  1669. */
  1670. public Builder setX(float value) {
  1671. bitField0_ |= 0x00000001;
  1672. x_ = value;
  1673. onChanged();
  1674. return this;
  1675. }
  1676. /**
  1677. * <code>optional float x = 1;</code>
  1678. */
  1679. public Builder clearX() {
  1680. bitField0_ = (bitField0_ & ~0x00000001);
  1681. x_ = 0F;
  1682. onChanged();
  1683. return this;
  1684. }
  1685. private float y_ ;
  1686. /**
  1687. * <code>optional float y = 2;</code>
  1688. */
  1689. public boolean hasY() {
  1690. return ((bitField0_ & 0x00000002) == 0x00000002);
  1691. }
  1692. /**
  1693. * <code>optional float y = 2;</code>
  1694. */
  1695. public float getY() {
  1696. return y_;
  1697. }
  1698. /**
  1699. * <code>optional float y = 2;</code>
  1700. */
  1701. public Builder setY(float value) {
  1702. bitField0_ |= 0x00000002;
  1703. y_ = value;
  1704. onChanged();
  1705. return this;
  1706. }
  1707. /**
  1708. * <code>optional float y = 2;</code>
  1709. */
  1710. public Builder clearY() {
  1711. bitField0_ = (bitField0_ & ~0x00000002);
  1712. y_ = 0F;
  1713. onChanged();
  1714. return this;
  1715. }
  1716. private float z_ ;
  1717. /**
  1718. * <code>optional float z = 3;</code>
  1719. */
  1720. public boolean hasZ() {
  1721. return ((bitField0_ & 0x00000004) == 0x00000004);
  1722. }
  1723. /**
  1724. * <code>optional float z = 3;</code>
  1725. */
  1726. public float getZ() {
  1727. return z_;
  1728. }
  1729. /**
  1730. * <code>optional float z = 3;</code>
  1731. */
  1732. public Builder setZ(float value) {
  1733. bitField0_ |= 0x00000004;
  1734. z_ = value;
  1735. onChanged();
  1736. return this;
  1737. }
  1738. /**
  1739. * <code>optional float z = 3;</code>
  1740. */
  1741. public Builder clearZ() {
  1742. bitField0_ = (bitField0_ & ~0x00000004);
  1743. z_ = 0F;
  1744. onChanged();
  1745. return this;
  1746. }
  1747. // @@protoc_insertion_point(builder_scope:tutorial.Vector3f)
  1748. }
  1749. static {
  1750. defaultInstance = new Vector3f(true);
  1751. defaultInstance.initFields();
  1752. }
  1753. // @@protoc_insertion_point(class_scope:tutorial.Vector3f)
  1754. }
  1755. public interface SweepLocationOrBuilder extends
  1756. // @@protoc_insertion_point(interface_extends:tutorial.SweepLocation)
  1757. com.google.protobuf.MessageOrBuilder {
  1758. /**
  1759. * <code>optional bytes uuid = 1;</code>
  1760. *
  1761. * <pre>
  1762. * uuid
  1763. * </pre>
  1764. */
  1765. boolean hasUuid();
  1766. /**
  1767. * <code>optional bytes uuid = 1;</code>
  1768. *
  1769. * <pre>
  1770. * uuid
  1771. * </pre>
  1772. */
  1773. com.google.protobuf.ByteString getUuid();
  1774. /**
  1775. * <code>optional .tutorial.Affine3f pose = 2;</code>
  1776. *
  1777. * <pre>
  1778. * camera pose (x, y,z) in meter and a quaternion
  1779. * </pre>
  1780. */
  1781. boolean hasPose();
  1782. /**
  1783. * <code>optional .tutorial.Affine3f pose = 2;</code>
  1784. *
  1785. * <pre>
  1786. * camera pose (x, y,z) in meter and a quaternion
  1787. * </pre>
  1788. */
  1789. Affine3f getPose();
  1790. /**
  1791. * <code>optional .tutorial.Affine3f pose = 2;</code>
  1792. *
  1793. * <pre>
  1794. * camera pose (x, y,z) in meter and a quaternion
  1795. * </pre>
  1796. */
  1797. Affine3fOrBuilder getPoseOrBuilder();
  1798. /**
  1799. * <code>optional .tutorial.Vector3f puck = 3;</code>
  1800. *
  1801. * <pre>
  1802. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  1803. * </pre>
  1804. */
  1805. boolean hasPuck();
  1806. /**
  1807. * <code>optional .tutorial.Vector3f puck = 3;</code>
  1808. *
  1809. * <pre>
  1810. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  1811. * </pre>
  1812. */
  1813. Vector3f getPuck();
  1814. /**
  1815. * <code>optional .tutorial.Vector3f puck = 3;</code>
  1816. *
  1817. * <pre>
  1818. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  1819. * </pre>
  1820. */
  1821. Vector3fOrBuilder getPuckOrBuilder();
  1822. /**
  1823. * <code>optional int32 group = 4;</code>
  1824. *
  1825. * <pre>
  1826. * floor index
  1827. * </pre>
  1828. */
  1829. boolean hasGroup();
  1830. /**
  1831. * <code>optional int32 group = 4;</code>
  1832. *
  1833. * <pre>
  1834. * floor index
  1835. * </pre>
  1836. */
  1837. int getGroup();
  1838. /**
  1839. * <code>optional int32 subgroup = 5;</code>
  1840. *
  1841. * <pre>
  1842. * room index
  1843. * </pre>
  1844. */
  1845. boolean hasSubgroup();
  1846. /**
  1847. * <code>optional int32 subgroup = 5;</code>
  1848. *
  1849. * <pre>
  1850. * room index
  1851. * </pre>
  1852. */
  1853. int getSubgroup();
  1854. /**
  1855. * <code>repeated int32 visibles = 6;</code>
  1856. *
  1857. * <pre>
  1858. * list of indices to all pucks visible from this puck
  1859. * </pre>
  1860. */
  1861. java.util.List<Integer> getVisiblesList();
  1862. /**
  1863. * <code>repeated int32 visibles = 6;</code>
  1864. *
  1865. * <pre>
  1866. * list of indices to all pucks visible from this puck
  1867. * </pre>
  1868. */
  1869. int getVisiblesCount();
  1870. /**
  1871. * <code>repeated int32 visibles = 6;</code>
  1872. *
  1873. * <pre>
  1874. * list of indices to all pucks visible from this puck
  1875. * </pre>
  1876. */
  1877. int getVisibles(int index);
  1878. /**
  1879. * <code>repeated float scores = 7;</code>
  1880. *
  1881. * <pre>
  1882. * used as part of scoring function for determining which puck to go to next
  1883. * </pre>
  1884. */
  1885. java.util.List<Float> getScoresList();
  1886. /**
  1887. * <code>repeated float scores = 7;</code>
  1888. *
  1889. * <pre>
  1890. * used as part of scoring function for determining which puck to go to next
  1891. * </pre>
  1892. */
  1893. int getScoresCount();
  1894. /**
  1895. * <code>repeated float scores = 7;</code>
  1896. *
  1897. * <pre>
  1898. * used as part of scoring function for determining which puck to go to next
  1899. * </pre>
  1900. */
  1901. float getScores(int index);
  1902. /**
  1903. * <code>repeated int32 visibles2 = 8;</code>
  1904. *
  1905. * <pre>
  1906. * list of indices to all pucks visible from this puck
  1907. * </pre>
  1908. */
  1909. java.util.List<Integer> getVisibles2List();
  1910. /**
  1911. * <code>repeated int32 visibles2 = 8;</code>
  1912. *
  1913. * <pre>
  1914. * list of indices to all pucks visible from this puck
  1915. * </pre>
  1916. */
  1917. int getVisibles2Count();
  1918. /**
  1919. * <code>repeated int32 visibles2 = 8;</code>
  1920. *
  1921. * <pre>
  1922. * list of indices to all pucks visible from this puck
  1923. * </pre>
  1924. */
  1925. int getVisibles2(int index);
  1926. /**
  1927. * <code>repeated int32 visibles3 = 9;</code>
  1928. *
  1929. * <pre>
  1930. * list of indices to all pucks visible from this puck
  1931. * </pre>
  1932. */
  1933. java.util.List<Integer> getVisibles3List();
  1934. /**
  1935. * <code>repeated int32 visibles3 = 9;</code>
  1936. *
  1937. * <pre>
  1938. * list of indices to all pucks visible from this puck
  1939. * </pre>
  1940. */
  1941. int getVisibles3Count();
  1942. /**
  1943. * <code>repeated int32 visibles3 = 9;</code>
  1944. *
  1945. * <pre>
  1946. * list of indices to all pucks visible from this puck
  1947. * </pre>
  1948. */
  1949. int getVisibles3(int index);
  1950. }
  1951. /**
  1952. * Protobuf type {@code tutorial.SweepLocation}
  1953. *
  1954. * <pre>
  1955. * One sweep / pano
  1956. * </pre>
  1957. */
  1958. public static final class SweepLocation extends
  1959. com.google.protobuf.GeneratedMessage implements
  1960. // @@protoc_insertion_point(message_implements:tutorial.SweepLocation)
  1961. SweepLocationOrBuilder {
  1962. // Use SweepLocation.newBuilder() to construct.
  1963. private SweepLocation(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
  1964. super(builder);
  1965. this.unknownFields = builder.getUnknownFields();
  1966. }
  1967. private SweepLocation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
  1968. private static final SweepLocation defaultInstance;
  1969. public static SweepLocation getDefaultInstance() {
  1970. return defaultInstance;
  1971. }
  1972. public SweepLocation getDefaultInstanceForType() {
  1973. return defaultInstance;
  1974. }
  1975. private final com.google.protobuf.UnknownFieldSet unknownFields;
  1976. @Override
  1977. public final com.google.protobuf.UnknownFieldSet
  1978. getUnknownFields() {
  1979. return this.unknownFields;
  1980. }
  1981. private SweepLocation(
  1982. com.google.protobuf.CodedInputStream input,
  1983. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1984. throws com.google.protobuf.InvalidProtocolBufferException {
  1985. initFields();
  1986. int mutable_bitField0_ = 0;
  1987. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  1988. com.google.protobuf.UnknownFieldSet.newBuilder();
  1989. try {
  1990. boolean done = false;
  1991. while (!done) {
  1992. int tag = input.readTag();
  1993. switch (tag) {
  1994. case 0:
  1995. done = true;
  1996. break;
  1997. case 10: {
  1998. bitField0_ |= 0x00000001;
  1999. uuid_ = input.readBytes();
  2000. break;
  2001. }
  2002. case 18: {
  2003. Affine3f.Builder subBuilder = null;
  2004. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  2005. subBuilder = pose_.toBuilder();
  2006. }
  2007. pose_ = input.readMessage(Affine3f.PARSER, extensionRegistry);
  2008. if (subBuilder != null) {
  2009. subBuilder.mergeFrom(pose_);
  2010. pose_ = subBuilder.buildPartial();
  2011. }
  2012. bitField0_ |= 0x00000002;
  2013. break;
  2014. }
  2015. case 26: {
  2016. Vector3f.Builder subBuilder = null;
  2017. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  2018. subBuilder = puck_.toBuilder();
  2019. }
  2020. puck_ = input.readMessage(Vector3f.PARSER, extensionRegistry);
  2021. if (subBuilder != null) {
  2022. subBuilder.mergeFrom(puck_);
  2023. puck_ = subBuilder.buildPartial();
  2024. }
  2025. bitField0_ |= 0x00000004;
  2026. break;
  2027. }
  2028. case 32: {
  2029. bitField0_ |= 0x00000008;
  2030. group_ = input.readInt32();
  2031. break;
  2032. }
  2033. case 40: {
  2034. bitField0_ |= 0x00000010;
  2035. subgroup_ = input.readInt32();
  2036. break;
  2037. }
  2038. case 48: {
  2039. if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
  2040. visibles_ = new java.util.ArrayList<Integer>();
  2041. mutable_bitField0_ |= 0x00000020;
  2042. }
  2043. visibles_.add(input.readInt32());
  2044. break;
  2045. }
  2046. case 50: {
  2047. int length = input.readRawVarint32();
  2048. int limit = input.pushLimit(length);
  2049. if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
  2050. visibles_ = new java.util.ArrayList<Integer>();
  2051. mutable_bitField0_ |= 0x00000020;
  2052. }
  2053. while (input.getBytesUntilLimit() > 0) {
  2054. visibles_.add(input.readInt32());
  2055. }
  2056. input.popLimit(limit);
  2057. break;
  2058. }
  2059. case 61: {
  2060. if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
  2061. scores_ = new java.util.ArrayList<Float>();
  2062. mutable_bitField0_ |= 0x00000040;
  2063. }
  2064. scores_.add(input.readFloat());
  2065. break;
  2066. }
  2067. case 58: {
  2068. int length = input.readRawVarint32();
  2069. int limit = input.pushLimit(length);
  2070. if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
  2071. scores_ = new java.util.ArrayList<Float>();
  2072. mutable_bitField0_ |= 0x00000040;
  2073. }
  2074. while (input.getBytesUntilLimit() > 0) {
  2075. scores_.add(input.readFloat());
  2076. }
  2077. input.popLimit(limit);
  2078. break;
  2079. }
  2080. case 64: {
  2081. if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
  2082. visibles2_ = new java.util.ArrayList<Integer>();
  2083. mutable_bitField0_ |= 0x00000080;
  2084. }
  2085. visibles2_.add(input.readInt32());
  2086. break;
  2087. }
  2088. case 66: {
  2089. int length = input.readRawVarint32();
  2090. int limit = input.pushLimit(length);
  2091. if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) {
  2092. visibles2_ = new java.util.ArrayList<Integer>();
  2093. mutable_bitField0_ |= 0x00000080;
  2094. }
  2095. while (input.getBytesUntilLimit() > 0) {
  2096. visibles2_.add(input.readInt32());
  2097. }
  2098. input.popLimit(limit);
  2099. break;
  2100. }
  2101. case 72: {
  2102. if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
  2103. visibles3_ = new java.util.ArrayList<Integer>();
  2104. mutable_bitField0_ |= 0x00000100;
  2105. }
  2106. visibles3_.add(input.readInt32());
  2107. break;
  2108. }
  2109. case 74: {
  2110. int length = input.readRawVarint32();
  2111. int limit = input.pushLimit(length);
  2112. if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) {
  2113. visibles3_ = new java.util.ArrayList<Integer>();
  2114. mutable_bitField0_ |= 0x00000100;
  2115. }
  2116. while (input.getBytesUntilLimit() > 0) {
  2117. visibles3_.add(input.readInt32());
  2118. }
  2119. input.popLimit(limit);
  2120. break;
  2121. }
  2122. default: {
  2123. if (!parseUnknownField(input, unknownFields,
  2124. extensionRegistry, tag)) {
  2125. done = true;
  2126. }
  2127. break;
  2128. }
  2129. }
  2130. }
  2131. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  2132. throw e.setUnfinishedMessage(this);
  2133. } catch (java.io.IOException e) {
  2134. throw new com.google.protobuf.InvalidProtocolBufferException(
  2135. e.getMessage()).setUnfinishedMessage(this);
  2136. } finally {
  2137. if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
  2138. visibles_ = java.util.Collections.unmodifiableList(visibles_);
  2139. }
  2140. if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
  2141. scores_ = java.util.Collections.unmodifiableList(scores_);
  2142. }
  2143. if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
  2144. visibles2_ = java.util.Collections.unmodifiableList(visibles2_);
  2145. }
  2146. if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
  2147. visibles3_ = java.util.Collections.unmodifiableList(visibles3_);
  2148. }
  2149. this.unknownFields = unknownFields.build();
  2150. makeExtensionsImmutable();
  2151. }
  2152. }
  2153. public static final com.google.protobuf.Descriptors.Descriptor
  2154. getDescriptor() {
  2155. return Common.internal_static_tutorial_SweepLocation_descriptor;
  2156. }
  2157. protected FieldAccessorTable
  2158. internalGetFieldAccessorTable() {
  2159. return Common.internal_static_tutorial_SweepLocation_fieldAccessorTable
  2160. .ensureFieldAccessorsInitialized(
  2161. SweepLocation.class, Builder.class);
  2162. }
  2163. public static com.google.protobuf.Parser<SweepLocation> PARSER =
  2164. new com.google.protobuf.AbstractParser<SweepLocation>() {
  2165. public SweepLocation parsePartialFrom(
  2166. com.google.protobuf.CodedInputStream input,
  2167. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2168. throws com.google.protobuf.InvalidProtocolBufferException {
  2169. return new SweepLocation(input, extensionRegistry);
  2170. }
  2171. };
  2172. @Override
  2173. public com.google.protobuf.Parser<SweepLocation> getParserForType() {
  2174. return PARSER;
  2175. }
  2176. private int bitField0_;
  2177. public static final int UUID_FIELD_NUMBER = 1;
  2178. private com.google.protobuf.ByteString uuid_;
  2179. /**
  2180. * <code>optional bytes uuid = 1;</code>
  2181. *
  2182. * <pre>
  2183. * uuid
  2184. * </pre>
  2185. */
  2186. public boolean hasUuid() {
  2187. return ((bitField0_ & 0x00000001) == 0x00000001);
  2188. }
  2189. /**
  2190. * <code>optional bytes uuid = 1;</code>
  2191. *
  2192. * <pre>
  2193. * uuid
  2194. * </pre>
  2195. */
  2196. public com.google.protobuf.ByteString getUuid() {
  2197. return uuid_;
  2198. }
  2199. public static final int POSE_FIELD_NUMBER = 2;
  2200. private Affine3f pose_;
  2201. /**
  2202. * <code>optional .tutorial.Affine3f pose = 2;</code>
  2203. *
  2204. * <pre>
  2205. * camera pose (x, y,z) in meter and a quaternion
  2206. * </pre>
  2207. */
  2208. public boolean hasPose() {
  2209. return ((bitField0_ & 0x00000002) == 0x00000002);
  2210. }
  2211. /**
  2212. * <code>optional .tutorial.Affine3f pose = 2;</code>
  2213. *
  2214. * <pre>
  2215. * camera pose (x, y,z) in meter and a quaternion
  2216. * </pre>
  2217. */
  2218. public Affine3f getPose() {
  2219. return pose_;
  2220. }
  2221. /**
  2222. * <code>optional .tutorial.Affine3f pose = 2;</code>
  2223. *
  2224. * <pre>
  2225. * camera pose (x, y,z) in meter and a quaternion
  2226. * </pre>
  2227. */
  2228. public Affine3fOrBuilder getPoseOrBuilder() {
  2229. return pose_;
  2230. }
  2231. public static final int PUCK_FIELD_NUMBER = 3;
  2232. private Vector3f puck_;
  2233. /**
  2234. * <code>optional .tutorial.Vector3f puck = 3;</code>
  2235. *
  2236. * <pre>
  2237. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  2238. * </pre>
  2239. */
  2240. public boolean hasPuck() {
  2241. return ((bitField0_ & 0x00000004) == 0x00000004);
  2242. }
  2243. /**
  2244. * <code>optional .tutorial.Vector3f puck = 3;</code>
  2245. *
  2246. * <pre>
  2247. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  2248. * </pre>
  2249. */
  2250. public Vector3f getPuck() {
  2251. return puck_;
  2252. }
  2253. /**
  2254. * <code>optional .tutorial.Vector3f puck = 3;</code>
  2255. *
  2256. * <pre>
  2257. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  2258. * </pre>
  2259. */
  2260. public Vector3fOrBuilder getPuckOrBuilder() {
  2261. return puck_;
  2262. }
  2263. public static final int GROUP_FIELD_NUMBER = 4;
  2264. private int group_;
  2265. /**
  2266. * <code>optional int32 group = 4;</code>
  2267. *
  2268. * <pre>
  2269. * floor index
  2270. * </pre>
  2271. */
  2272. public boolean hasGroup() {
  2273. return ((bitField0_ & 0x00000008) == 0x00000008);
  2274. }
  2275. /**
  2276. * <code>optional int32 group = 4;</code>
  2277. *
  2278. * <pre>
  2279. * floor index
  2280. * </pre>
  2281. */
  2282. public int getGroup() {
  2283. return group_;
  2284. }
  2285. public static final int SUBGROUP_FIELD_NUMBER = 5;
  2286. private int subgroup_;
  2287. /**
  2288. * <code>optional int32 subgroup = 5;</code>
  2289. *
  2290. * <pre>
  2291. * room index
  2292. * </pre>
  2293. */
  2294. public boolean hasSubgroup() {
  2295. return ((bitField0_ & 0x00000010) == 0x00000010);
  2296. }
  2297. /**
  2298. * <code>optional int32 subgroup = 5;</code>
  2299. *
  2300. * <pre>
  2301. * room index
  2302. * </pre>
  2303. */
  2304. public int getSubgroup() {
  2305. return subgroup_;
  2306. }
  2307. public static final int VISIBLES_FIELD_NUMBER = 6;
  2308. private java.util.List<Integer> visibles_;
  2309. /**
  2310. * <code>repeated int32 visibles = 6;</code>
  2311. *
  2312. * <pre>
  2313. * list of indices to all pucks visible from this puck
  2314. * </pre>
  2315. */
  2316. public java.util.List<Integer>
  2317. getVisiblesList() {
  2318. return visibles_;
  2319. }
  2320. /**
  2321. * <code>repeated int32 visibles = 6;</code>
  2322. *
  2323. * <pre>
  2324. * list of indices to all pucks visible from this puck
  2325. * </pre>
  2326. */
  2327. public int getVisiblesCount() {
  2328. return visibles_.size();
  2329. }
  2330. /**
  2331. * <code>repeated int32 visibles = 6;</code>
  2332. *
  2333. * <pre>
  2334. * list of indices to all pucks visible from this puck
  2335. * </pre>
  2336. */
  2337. public int getVisibles(int index) {
  2338. return visibles_.get(index);
  2339. }
  2340. public static final int SCORES_FIELD_NUMBER = 7;
  2341. private java.util.List<Float> scores_;
  2342. /**
  2343. * <code>repeated float scores = 7;</code>
  2344. *
  2345. * <pre>
  2346. * used as part of scoring function for determining which puck to go to next
  2347. * </pre>
  2348. */
  2349. public java.util.List<Float>
  2350. getScoresList() {
  2351. return scores_;
  2352. }
  2353. /**
  2354. * <code>repeated float scores = 7;</code>
  2355. *
  2356. * <pre>
  2357. * used as part of scoring function for determining which puck to go to next
  2358. * </pre>
  2359. */
  2360. public int getScoresCount() {
  2361. return scores_.size();
  2362. }
  2363. /**
  2364. * <code>repeated float scores = 7;</code>
  2365. *
  2366. * <pre>
  2367. * used as part of scoring function for determining which puck to go to next
  2368. * </pre>
  2369. */
  2370. public float getScores(int index) {
  2371. return scores_.get(index);
  2372. }
  2373. public static final int VISIBLES2_FIELD_NUMBER = 8;
  2374. private java.util.List<Integer> visibles2_;
  2375. /**
  2376. * <code>repeated int32 visibles2 = 8;</code>
  2377. *
  2378. * <pre>
  2379. * list of indices to all pucks visible from this puck
  2380. * </pre>
  2381. */
  2382. public java.util.List<Integer>
  2383. getVisibles2List() {
  2384. return visibles2_;
  2385. }
  2386. /**
  2387. * <code>repeated int32 visibles2 = 8;</code>
  2388. *
  2389. * <pre>
  2390. * list of indices to all pucks visible from this puck
  2391. * </pre>
  2392. */
  2393. public int getVisibles2Count() {
  2394. return visibles2_.size();
  2395. }
  2396. /**
  2397. * <code>repeated int32 visibles2 = 8;</code>
  2398. *
  2399. * <pre>
  2400. * list of indices to all pucks visible from this puck
  2401. * </pre>
  2402. */
  2403. public int getVisibles2(int index) {
  2404. return visibles2_.get(index);
  2405. }
  2406. public static final int VISIBLES3_FIELD_NUMBER = 9;
  2407. private java.util.List<Integer> visibles3_;
  2408. /**
  2409. * <code>repeated int32 visibles3 = 9;</code>
  2410. *
  2411. * <pre>
  2412. * list of indices to all pucks visible from this puck
  2413. * </pre>
  2414. */
  2415. public java.util.List<Integer>
  2416. getVisibles3List() {
  2417. return visibles3_;
  2418. }
  2419. /**
  2420. * <code>repeated int32 visibles3 = 9;</code>
  2421. *
  2422. * <pre>
  2423. * list of indices to all pucks visible from this puck
  2424. * </pre>
  2425. */
  2426. public int getVisibles3Count() {
  2427. return visibles3_.size();
  2428. }
  2429. /**
  2430. * <code>repeated int32 visibles3 = 9;</code>
  2431. *
  2432. * <pre>
  2433. * list of indices to all pucks visible from this puck
  2434. * </pre>
  2435. */
  2436. public int getVisibles3(int index) {
  2437. return visibles3_.get(index);
  2438. }
  2439. private void initFields() {
  2440. uuid_ = com.google.protobuf.ByteString.EMPTY;
  2441. pose_ = Affine3f.getDefaultInstance();
  2442. puck_ = Vector3f.getDefaultInstance();
  2443. group_ = 0;
  2444. subgroup_ = 0;
  2445. visibles_ = java.util.Collections.emptyList();
  2446. scores_ = java.util.Collections.emptyList();
  2447. visibles2_ = java.util.Collections.emptyList();
  2448. visibles3_ = java.util.Collections.emptyList();
  2449. }
  2450. private byte memoizedIsInitialized = -1;
  2451. public final boolean isInitialized() {
  2452. byte isInitialized = memoizedIsInitialized;
  2453. if (isInitialized == 1) return true;
  2454. if (isInitialized == 0) return false;
  2455. memoizedIsInitialized = 1;
  2456. return true;
  2457. }
  2458. public void writeTo(com.google.protobuf.CodedOutputStream output)
  2459. throws java.io.IOException {
  2460. getSerializedSize();
  2461. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  2462. output.writeBytes(1, uuid_);
  2463. }
  2464. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  2465. output.writeMessage(2, pose_);
  2466. }
  2467. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  2468. output.writeMessage(3, puck_);
  2469. }
  2470. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  2471. output.writeInt32(4, group_);
  2472. }
  2473. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  2474. output.writeInt32(5, subgroup_);
  2475. }
  2476. for (int i = 0; i < visibles_.size(); i++) {
  2477. output.writeInt32(6, visibles_.get(i));
  2478. }
  2479. for (int i = 0; i < scores_.size(); i++) {
  2480. output.writeFloat(7, scores_.get(i));
  2481. }
  2482. for (int i = 0; i < visibles2_.size(); i++) {
  2483. output.writeInt32(8, visibles2_.get(i));
  2484. }
  2485. for (int i = 0; i < visibles3_.size(); i++) {
  2486. output.writeInt32(9, visibles3_.get(i));
  2487. }
  2488. getUnknownFields().writeTo(output);
  2489. }
  2490. private int memoizedSerializedSize = -1;
  2491. public int getSerializedSize() {
  2492. int size = memoizedSerializedSize;
  2493. if (size != -1) return size;
  2494. size = 0;
  2495. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  2496. size += com.google.protobuf.CodedOutputStream
  2497. .computeBytesSize(1, uuid_);
  2498. }
  2499. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  2500. size += com.google.protobuf.CodedOutputStream
  2501. .computeMessageSize(2, pose_);
  2502. }
  2503. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  2504. size += com.google.protobuf.CodedOutputStream
  2505. .computeMessageSize(3, puck_);
  2506. }
  2507. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  2508. size += com.google.protobuf.CodedOutputStream
  2509. .computeInt32Size(4, group_);
  2510. }
  2511. if (((bitField0_ & 0x00000010) == 0x00000010)) {
  2512. size += com.google.protobuf.CodedOutputStream
  2513. .computeInt32Size(5, subgroup_);
  2514. }
  2515. {
  2516. int dataSize = 0;
  2517. for (int i = 0; i < visibles_.size(); i++) {
  2518. dataSize += com.google.protobuf.CodedOutputStream
  2519. .computeInt32SizeNoTag(visibles_.get(i));
  2520. }
  2521. size += dataSize;
  2522. size += 1 * getVisiblesList().size();
  2523. }
  2524. {
  2525. int dataSize = 0;
  2526. dataSize = 4 * getScoresList().size();
  2527. size += dataSize;
  2528. size += 1 * getScoresList().size();
  2529. }
  2530. {
  2531. int dataSize = 0;
  2532. for (int i = 0; i < visibles2_.size(); i++) {
  2533. dataSize += com.google.protobuf.CodedOutputStream
  2534. .computeInt32SizeNoTag(visibles2_.get(i));
  2535. }
  2536. size += dataSize;
  2537. size += 1 * getVisibles2List().size();
  2538. }
  2539. {
  2540. int dataSize = 0;
  2541. for (int i = 0; i < visibles3_.size(); i++) {
  2542. dataSize += com.google.protobuf.CodedOutputStream
  2543. .computeInt32SizeNoTag(visibles3_.get(i));
  2544. }
  2545. size += dataSize;
  2546. size += 1 * getVisibles3List().size();
  2547. }
  2548. size += getUnknownFields().getSerializedSize();
  2549. memoizedSerializedSize = size;
  2550. return size;
  2551. }
  2552. private static final long serialVersionUID = 0L;
  2553. @Override
  2554. protected Object writeReplace()
  2555. throws java.io.ObjectStreamException {
  2556. return super.writeReplace();
  2557. }
  2558. public static SweepLocation parseFrom(
  2559. com.google.protobuf.ByteString data)
  2560. throws com.google.protobuf.InvalidProtocolBufferException {
  2561. return PARSER.parseFrom(data);
  2562. }
  2563. public static SweepLocation parseFrom(
  2564. com.google.protobuf.ByteString data,
  2565. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2566. throws com.google.protobuf.InvalidProtocolBufferException {
  2567. return PARSER.parseFrom(data, extensionRegistry);
  2568. }
  2569. public static SweepLocation parseFrom(byte[] data)
  2570. throws com.google.protobuf.InvalidProtocolBufferException {
  2571. return PARSER.parseFrom(data);
  2572. }
  2573. public static SweepLocation parseFrom(
  2574. byte[] data,
  2575. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2576. throws com.google.protobuf.InvalidProtocolBufferException {
  2577. return PARSER.parseFrom(data, extensionRegistry);
  2578. }
  2579. public static SweepLocation parseFrom(java.io.InputStream input)
  2580. throws java.io.IOException {
  2581. return PARSER.parseFrom(input);
  2582. }
  2583. public static SweepLocation parseFrom(
  2584. java.io.InputStream input,
  2585. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2586. throws java.io.IOException {
  2587. return PARSER.parseFrom(input, extensionRegistry);
  2588. }
  2589. public static SweepLocation parseDelimitedFrom(java.io.InputStream input)
  2590. throws java.io.IOException {
  2591. return PARSER.parseDelimitedFrom(input);
  2592. }
  2593. public static SweepLocation parseDelimitedFrom(
  2594. java.io.InputStream input,
  2595. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2596. throws java.io.IOException {
  2597. return PARSER.parseDelimitedFrom(input, extensionRegistry);
  2598. }
  2599. public static SweepLocation parseFrom(
  2600. com.google.protobuf.CodedInputStream input)
  2601. throws java.io.IOException {
  2602. return PARSER.parseFrom(input);
  2603. }
  2604. public static SweepLocation parseFrom(
  2605. com.google.protobuf.CodedInputStream input,
  2606. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2607. throws java.io.IOException {
  2608. return PARSER.parseFrom(input, extensionRegistry);
  2609. }
  2610. public static Builder newBuilder() { return Builder.create(); }
  2611. public Builder newBuilderForType() { return newBuilder(); }
  2612. public static Builder newBuilder(SweepLocation prototype) {
  2613. return newBuilder().mergeFrom(prototype);
  2614. }
  2615. public Builder toBuilder() { return newBuilder(this); }
  2616. @Override
  2617. protected Builder newBuilderForType(
  2618. BuilderParent parent) {
  2619. Builder builder = new Builder(parent);
  2620. return builder;
  2621. }
  2622. /**
  2623. * Protobuf type {@code tutorial.SweepLocation}
  2624. *
  2625. * <pre>
  2626. * One sweep / pano
  2627. * </pre>
  2628. */
  2629. public static final class Builder extends
  2630. com.google.protobuf.GeneratedMessage.Builder<Builder> implements
  2631. // @@protoc_insertion_point(builder_implements:tutorial.SweepLocation)
  2632. SweepLocationOrBuilder {
  2633. public static final com.google.protobuf.Descriptors.Descriptor
  2634. getDescriptor() {
  2635. return Common.internal_static_tutorial_SweepLocation_descriptor;
  2636. }
  2637. protected FieldAccessorTable
  2638. internalGetFieldAccessorTable() {
  2639. return Common.internal_static_tutorial_SweepLocation_fieldAccessorTable
  2640. .ensureFieldAccessorsInitialized(
  2641. SweepLocation.class, Builder.class);
  2642. }
  2643. // Construct using com.fdkankan.common.proto.Common.SweepLocation.newBuilder()
  2644. private Builder() {
  2645. maybeForceBuilderInitialization();
  2646. }
  2647. private Builder(
  2648. BuilderParent parent) {
  2649. super(parent);
  2650. maybeForceBuilderInitialization();
  2651. }
  2652. private void maybeForceBuilderInitialization() {
  2653. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  2654. getPoseFieldBuilder();
  2655. getPuckFieldBuilder();
  2656. }
  2657. }
  2658. private static Builder create() {
  2659. return new Builder();
  2660. }
  2661. public Builder clear() {
  2662. super.clear();
  2663. uuid_ = com.google.protobuf.ByteString.EMPTY;
  2664. bitField0_ = (bitField0_ & ~0x00000001);
  2665. if (poseBuilder_ == null) {
  2666. pose_ = Affine3f.getDefaultInstance();
  2667. } else {
  2668. poseBuilder_.clear();
  2669. }
  2670. bitField0_ = (bitField0_ & ~0x00000002);
  2671. if (puckBuilder_ == null) {
  2672. puck_ = Vector3f.getDefaultInstance();
  2673. } else {
  2674. puckBuilder_.clear();
  2675. }
  2676. bitField0_ = (bitField0_ & ~0x00000004);
  2677. group_ = 0;
  2678. bitField0_ = (bitField0_ & ~0x00000008);
  2679. subgroup_ = 0;
  2680. bitField0_ = (bitField0_ & ~0x00000010);
  2681. visibles_ = java.util.Collections.emptyList();
  2682. bitField0_ = (bitField0_ & ~0x00000020);
  2683. scores_ = java.util.Collections.emptyList();
  2684. bitField0_ = (bitField0_ & ~0x00000040);
  2685. visibles2_ = java.util.Collections.emptyList();
  2686. bitField0_ = (bitField0_ & ~0x00000080);
  2687. visibles3_ = java.util.Collections.emptyList();
  2688. bitField0_ = (bitField0_ & ~0x00000100);
  2689. return this;
  2690. }
  2691. public com.google.protobuf.Descriptors.Descriptor
  2692. getDescriptorForType() {
  2693. return Common.internal_static_tutorial_SweepLocation_descriptor;
  2694. }
  2695. public SweepLocation getDefaultInstanceForType() {
  2696. return SweepLocation.getDefaultInstance();
  2697. }
  2698. public SweepLocation build() {
  2699. SweepLocation result = buildPartial();
  2700. if (!result.isInitialized()) {
  2701. throw newUninitializedMessageException(result);
  2702. }
  2703. return result;
  2704. }
  2705. public SweepLocation buildPartial() {
  2706. SweepLocation result = new SweepLocation(this);
  2707. int from_bitField0_ = bitField0_;
  2708. int to_bitField0_ = 0;
  2709. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  2710. to_bitField0_ |= 0x00000001;
  2711. }
  2712. result.uuid_ = uuid_;
  2713. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  2714. to_bitField0_ |= 0x00000002;
  2715. }
  2716. if (poseBuilder_ == null) {
  2717. result.pose_ = pose_;
  2718. } else {
  2719. result.pose_ = poseBuilder_.build();
  2720. }
  2721. if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  2722. to_bitField0_ |= 0x00000004;
  2723. }
  2724. if (puckBuilder_ == null) {
  2725. result.puck_ = puck_;
  2726. } else {
  2727. result.puck_ = puckBuilder_.build();
  2728. }
  2729. if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
  2730. to_bitField0_ |= 0x00000008;
  2731. }
  2732. result.group_ = group_;
  2733. if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
  2734. to_bitField0_ |= 0x00000010;
  2735. }
  2736. result.subgroup_ = subgroup_;
  2737. if (((bitField0_ & 0x00000020) == 0x00000020)) {
  2738. visibles_ = java.util.Collections.unmodifiableList(visibles_);
  2739. bitField0_ = (bitField0_ & ~0x00000020);
  2740. }
  2741. result.visibles_ = visibles_;
  2742. if (((bitField0_ & 0x00000040) == 0x00000040)) {
  2743. scores_ = java.util.Collections.unmodifiableList(scores_);
  2744. bitField0_ = (bitField0_ & ~0x00000040);
  2745. }
  2746. result.scores_ = scores_;
  2747. if (((bitField0_ & 0x00000080) == 0x00000080)) {
  2748. visibles2_ = java.util.Collections.unmodifiableList(visibles2_);
  2749. bitField0_ = (bitField0_ & ~0x00000080);
  2750. }
  2751. result.visibles2_ = visibles2_;
  2752. if (((bitField0_ & 0x00000100) == 0x00000100)) {
  2753. visibles3_ = java.util.Collections.unmodifiableList(visibles3_);
  2754. bitField0_ = (bitField0_ & ~0x00000100);
  2755. }
  2756. result.visibles3_ = visibles3_;
  2757. result.bitField0_ = to_bitField0_;
  2758. onBuilt();
  2759. return result;
  2760. }
  2761. public Builder mergeFrom(com.google.protobuf.Message other) {
  2762. if (other instanceof SweepLocation) {
  2763. return mergeFrom((SweepLocation)other);
  2764. } else {
  2765. super.mergeFrom(other);
  2766. return this;
  2767. }
  2768. }
  2769. public Builder mergeFrom(SweepLocation other) {
  2770. if (other == SweepLocation.getDefaultInstance()) return this;
  2771. if (other.hasUuid()) {
  2772. setUuid(other.getUuid());
  2773. }
  2774. if (other.hasPose()) {
  2775. mergePose(other.getPose());
  2776. }
  2777. if (other.hasPuck()) {
  2778. mergePuck(other.getPuck());
  2779. }
  2780. if (other.hasGroup()) {
  2781. setGroup(other.getGroup());
  2782. }
  2783. if (other.hasSubgroup()) {
  2784. setSubgroup(other.getSubgroup());
  2785. }
  2786. if (!other.visibles_.isEmpty()) {
  2787. if (visibles_.isEmpty()) {
  2788. visibles_ = other.visibles_;
  2789. bitField0_ = (bitField0_ & ~0x00000020);
  2790. } else {
  2791. ensureVisiblesIsMutable();
  2792. visibles_.addAll(other.visibles_);
  2793. }
  2794. onChanged();
  2795. }
  2796. if (!other.scores_.isEmpty()) {
  2797. if (scores_.isEmpty()) {
  2798. scores_ = other.scores_;
  2799. bitField0_ = (bitField0_ & ~0x00000040);
  2800. } else {
  2801. ensureScoresIsMutable();
  2802. scores_.addAll(other.scores_);
  2803. }
  2804. onChanged();
  2805. }
  2806. if (!other.visibles2_.isEmpty()) {
  2807. if (visibles2_.isEmpty()) {
  2808. visibles2_ = other.visibles2_;
  2809. bitField0_ = (bitField0_ & ~0x00000080);
  2810. } else {
  2811. ensureVisibles2IsMutable();
  2812. visibles2_.addAll(other.visibles2_);
  2813. }
  2814. onChanged();
  2815. }
  2816. if (!other.visibles3_.isEmpty()) {
  2817. if (visibles3_.isEmpty()) {
  2818. visibles3_ = other.visibles3_;
  2819. bitField0_ = (bitField0_ & ~0x00000100);
  2820. } else {
  2821. ensureVisibles3IsMutable();
  2822. visibles3_.addAll(other.visibles3_);
  2823. }
  2824. onChanged();
  2825. }
  2826. this.mergeUnknownFields(other.getUnknownFields());
  2827. return this;
  2828. }
  2829. public final boolean isInitialized() {
  2830. return true;
  2831. }
  2832. public Builder mergeFrom(
  2833. com.google.protobuf.CodedInputStream input,
  2834. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  2835. throws java.io.IOException {
  2836. SweepLocation parsedMessage = null;
  2837. try {
  2838. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  2839. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  2840. parsedMessage = (SweepLocation) e.getUnfinishedMessage();
  2841. throw e;
  2842. } finally {
  2843. if (parsedMessage != null) {
  2844. mergeFrom(parsedMessage);
  2845. }
  2846. }
  2847. return this;
  2848. }
  2849. private int bitField0_;
  2850. private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY;
  2851. /**
  2852. * <code>optional bytes uuid = 1;</code>
  2853. *
  2854. * <pre>
  2855. * uuid
  2856. * </pre>
  2857. */
  2858. public boolean hasUuid() {
  2859. return ((bitField0_ & 0x00000001) == 0x00000001);
  2860. }
  2861. /**
  2862. * <code>optional bytes uuid = 1;</code>
  2863. *
  2864. * <pre>
  2865. * uuid
  2866. * </pre>
  2867. */
  2868. public com.google.protobuf.ByteString getUuid() {
  2869. return uuid_;
  2870. }
  2871. /**
  2872. * <code>optional bytes uuid = 1;</code>
  2873. *
  2874. * <pre>
  2875. * uuid
  2876. * </pre>
  2877. */
  2878. public Builder setUuid(com.google.protobuf.ByteString value) {
  2879. if (value == null) {
  2880. throw new NullPointerException();
  2881. }
  2882. bitField0_ |= 0x00000001;
  2883. uuid_ = value;
  2884. onChanged();
  2885. return this;
  2886. }
  2887. /**
  2888. * <code>optional bytes uuid = 1;</code>
  2889. *
  2890. * <pre>
  2891. * uuid
  2892. * </pre>
  2893. */
  2894. public Builder clearUuid() {
  2895. bitField0_ = (bitField0_ & ~0x00000001);
  2896. uuid_ = getDefaultInstance().getUuid();
  2897. onChanged();
  2898. return this;
  2899. }
  2900. private Affine3f pose_ = Affine3f.getDefaultInstance();
  2901. private com.google.protobuf.SingleFieldBuilder<
  2902. Affine3f, Affine3f.Builder, Affine3fOrBuilder> poseBuilder_;
  2903. /**
  2904. * <code>optional .tutorial.Affine3f pose = 2;</code>
  2905. *
  2906. * <pre>
  2907. * camera pose (x, y,z) in meter and a quaternion
  2908. * </pre>
  2909. */
  2910. public boolean hasPose() {
  2911. return ((bitField0_ & 0x00000002) == 0x00000002);
  2912. }
  2913. /**
  2914. * <code>optional .tutorial.Affine3f pose = 2;</code>
  2915. *
  2916. * <pre>
  2917. * camera pose (x, y,z) in meter and a quaternion
  2918. * </pre>
  2919. */
  2920. public Affine3f getPose() {
  2921. if (poseBuilder_ == null) {
  2922. return pose_;
  2923. } else {
  2924. return poseBuilder_.getMessage();
  2925. }
  2926. }
  2927. /**
  2928. * <code>optional .tutorial.Affine3f pose = 2;</code>
  2929. *
  2930. * <pre>
  2931. * camera pose (x, y,z) in meter and a quaternion
  2932. * </pre>
  2933. */
  2934. public Builder setPose(Affine3f value) {
  2935. if (poseBuilder_ == null) {
  2936. if (value == null) {
  2937. throw new NullPointerException();
  2938. }
  2939. pose_ = value;
  2940. onChanged();
  2941. } else {
  2942. poseBuilder_.setMessage(value);
  2943. }
  2944. bitField0_ |= 0x00000002;
  2945. return this;
  2946. }
  2947. /**
  2948. * <code>optional .tutorial.Affine3f pose = 2;</code>
  2949. *
  2950. * <pre>
  2951. * camera pose (x, y,z) in meter and a quaternion
  2952. * </pre>
  2953. */
  2954. public Builder setPose(
  2955. Affine3f.Builder builderForValue) {
  2956. if (poseBuilder_ == null) {
  2957. pose_ = builderForValue.build();
  2958. onChanged();
  2959. } else {
  2960. poseBuilder_.setMessage(builderForValue.build());
  2961. }
  2962. bitField0_ |= 0x00000002;
  2963. return this;
  2964. }
  2965. /**
  2966. * <code>optional .tutorial.Affine3f pose = 2;</code>
  2967. *
  2968. * <pre>
  2969. * camera pose (x, y,z) in meter and a quaternion
  2970. * </pre>
  2971. */
  2972. public Builder mergePose(Affine3f value) {
  2973. if (poseBuilder_ == null) {
  2974. if (((bitField0_ & 0x00000002) == 0x00000002) &&
  2975. pose_ != Affine3f.getDefaultInstance()) {
  2976. pose_ =
  2977. Affine3f.newBuilder(pose_).mergeFrom(value).buildPartial();
  2978. } else {
  2979. pose_ = value;
  2980. }
  2981. onChanged();
  2982. } else {
  2983. poseBuilder_.mergeFrom(value);
  2984. }
  2985. bitField0_ |= 0x00000002;
  2986. return this;
  2987. }
  2988. /**
  2989. * <code>optional .tutorial.Affine3f pose = 2;</code>
  2990. *
  2991. * <pre>
  2992. * camera pose (x, y,z) in meter and a quaternion
  2993. * </pre>
  2994. */
  2995. public Builder clearPose() {
  2996. if (poseBuilder_ == null) {
  2997. pose_ = Affine3f.getDefaultInstance();
  2998. onChanged();
  2999. } else {
  3000. poseBuilder_.clear();
  3001. }
  3002. bitField0_ = (bitField0_ & ~0x00000002);
  3003. return this;
  3004. }
  3005. /**
  3006. * <code>optional .tutorial.Affine3f pose = 2;</code>
  3007. *
  3008. * <pre>
  3009. * camera pose (x, y,z) in meter and a quaternion
  3010. * </pre>
  3011. */
  3012. public Affine3f.Builder getPoseBuilder() {
  3013. bitField0_ |= 0x00000002;
  3014. onChanged();
  3015. return getPoseFieldBuilder().getBuilder();
  3016. }
  3017. /**
  3018. * <code>optional .tutorial.Affine3f pose = 2;</code>
  3019. *
  3020. * <pre>
  3021. * camera pose (x, y,z) in meter and a quaternion
  3022. * </pre>
  3023. */
  3024. public Affine3fOrBuilder getPoseOrBuilder() {
  3025. if (poseBuilder_ != null) {
  3026. return poseBuilder_.getMessageOrBuilder();
  3027. } else {
  3028. return pose_;
  3029. }
  3030. }
  3031. /**
  3032. * <code>optional .tutorial.Affine3f pose = 2;</code>
  3033. *
  3034. * <pre>
  3035. * camera pose (x, y,z) in meter and a quaternion
  3036. * </pre>
  3037. */
  3038. private com.google.protobuf.SingleFieldBuilder<
  3039. Affine3f, Affine3f.Builder, Affine3fOrBuilder>
  3040. getPoseFieldBuilder() {
  3041. if (poseBuilder_ == null) {
  3042. poseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
  3043. Affine3f, Affine3f.Builder, Affine3fOrBuilder>(
  3044. getPose(),
  3045. getParentForChildren(),
  3046. isClean());
  3047. pose_ = null;
  3048. }
  3049. return poseBuilder_;
  3050. }
  3051. private Vector3f puck_ = Vector3f.getDefaultInstance();
  3052. private com.google.protobuf.SingleFieldBuilder<
  3053. Vector3f, Vector3f.Builder, Vector3fOrBuilder> puckBuilder_;
  3054. /**
  3055. * <code>optional .tutorial.Vector3f puck = 3;</code>
  3056. *
  3057. * <pre>
  3058. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  3059. * </pre>
  3060. */
  3061. public boolean hasPuck() {
  3062. return ((bitField0_ & 0x00000004) == 0x00000004);
  3063. }
  3064. /**
  3065. * <code>optional .tutorial.Vector3f puck = 3;</code>
  3066. *
  3067. * <pre>
  3068. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  3069. * </pre>
  3070. */
  3071. public Vector3f getPuck() {
  3072. if (puckBuilder_ == null) {
  3073. return puck_;
  3074. } else {
  3075. return puckBuilder_.getMessage();
  3076. }
  3077. }
  3078. /**
  3079. * <code>optional .tutorial.Vector3f puck = 3;</code>
  3080. *
  3081. * <pre>
  3082. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  3083. * </pre>
  3084. */
  3085. public Builder setPuck(Vector3f value) {
  3086. if (puckBuilder_ == null) {
  3087. if (value == null) {
  3088. throw new NullPointerException();
  3089. }
  3090. puck_ = value;
  3091. onChanged();
  3092. } else {
  3093. puckBuilder_.setMessage(value);
  3094. }
  3095. bitField0_ |= 0x00000004;
  3096. return this;
  3097. }
  3098. /**
  3099. * <code>optional .tutorial.Vector3f puck = 3;</code>
  3100. *
  3101. * <pre>
  3102. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  3103. * </pre>
  3104. */
  3105. public Builder setPuck(
  3106. Vector3f.Builder builderForValue) {
  3107. if (puckBuilder_ == null) {
  3108. puck_ = builderForValue.build();
  3109. onChanged();
  3110. } else {
  3111. puckBuilder_.setMessage(builderForValue.build());
  3112. }
  3113. bitField0_ |= 0x00000004;
  3114. return this;
  3115. }
  3116. /**
  3117. * <code>optional .tutorial.Vector3f puck = 3;</code>
  3118. *
  3119. * <pre>
  3120. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  3121. * </pre>
  3122. */
  3123. public Builder mergePuck(Vector3f value) {
  3124. if (puckBuilder_ == null) {
  3125. if (((bitField0_ & 0x00000004) == 0x00000004) &&
  3126. puck_ != Vector3f.getDefaultInstance()) {
  3127. puck_ =
  3128. Vector3f.newBuilder(puck_).mergeFrom(value).buildPartial();
  3129. } else {
  3130. puck_ = value;
  3131. }
  3132. onChanged();
  3133. } else {
  3134. puckBuilder_.mergeFrom(value);
  3135. }
  3136. bitField0_ |= 0x00000004;
  3137. return this;
  3138. }
  3139. /**
  3140. * <code>optional .tutorial.Vector3f puck = 3;</code>
  3141. *
  3142. * <pre>
  3143. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  3144. * </pre>
  3145. */
  3146. public Builder clearPuck() {
  3147. if (puckBuilder_ == null) {
  3148. puck_ = Vector3f.getDefaultInstance();
  3149. onChanged();
  3150. } else {
  3151. puckBuilder_.clear();
  3152. }
  3153. bitField0_ = (bitField0_ & ~0x00000004);
  3154. return this;
  3155. }
  3156. /**
  3157. * <code>optional .tutorial.Vector3f puck = 3;</code>
  3158. *
  3159. * <pre>
  3160. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  3161. * </pre>
  3162. */
  3163. public Vector3f.Builder getPuckBuilder() {
  3164. bitField0_ |= 0x00000004;
  3165. onChanged();
  3166. return getPuckFieldBuilder().getBuilder();
  3167. }
  3168. /**
  3169. * <code>optional .tutorial.Vector3f puck = 3;</code>
  3170. *
  3171. * <pre>
  3172. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  3173. * </pre>
  3174. */
  3175. public Vector3fOrBuilder getPuckOrBuilder() {
  3176. if (puckBuilder_ != null) {
  3177. return puckBuilder_.getMessageOrBuilder();
  3178. } else {
  3179. return puck_;
  3180. }
  3181. }
  3182. /**
  3183. * <code>optional .tutorial.Vector3f puck = 3;</code>
  3184. *
  3185. * <pre>
  3186. * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
  3187. * </pre>
  3188. */
  3189. private com.google.protobuf.SingleFieldBuilder<
  3190. Vector3f, Vector3f.Builder, Vector3fOrBuilder>
  3191. getPuckFieldBuilder() {
  3192. if (puckBuilder_ == null) {
  3193. puckBuilder_ = new com.google.protobuf.SingleFieldBuilder<
  3194. Vector3f, Vector3f.Builder, Vector3fOrBuilder>(
  3195. getPuck(),
  3196. getParentForChildren(),
  3197. isClean());
  3198. puck_ = null;
  3199. }
  3200. return puckBuilder_;
  3201. }
  3202. private int group_ ;
  3203. /**
  3204. * <code>optional int32 group = 4;</code>
  3205. *
  3206. * <pre>
  3207. * floor index
  3208. * </pre>
  3209. */
  3210. public boolean hasGroup() {
  3211. return ((bitField0_ & 0x00000008) == 0x00000008);
  3212. }
  3213. /**
  3214. * <code>optional int32 group = 4;</code>
  3215. *
  3216. * <pre>
  3217. * floor index
  3218. * </pre>
  3219. */
  3220. public int getGroup() {
  3221. return group_;
  3222. }
  3223. /**
  3224. * <code>optional int32 group = 4;</code>
  3225. *
  3226. * <pre>
  3227. * floor index
  3228. * </pre>
  3229. */
  3230. public Builder setGroup(int value) {
  3231. bitField0_ |= 0x00000008;
  3232. group_ = value;
  3233. onChanged();
  3234. return this;
  3235. }
  3236. /**
  3237. * <code>optional int32 group = 4;</code>
  3238. *
  3239. * <pre>
  3240. * floor index
  3241. * </pre>
  3242. */
  3243. public Builder clearGroup() {
  3244. bitField0_ = (bitField0_ & ~0x00000008);
  3245. group_ = 0;
  3246. onChanged();
  3247. return this;
  3248. }
  3249. private int subgroup_ ;
  3250. /**
  3251. * <code>optional int32 subgroup = 5;</code>
  3252. *
  3253. * <pre>
  3254. * room index
  3255. * </pre>
  3256. */
  3257. public boolean hasSubgroup() {
  3258. return ((bitField0_ & 0x00000010) == 0x00000010);
  3259. }
  3260. /**
  3261. * <code>optional int32 subgroup = 5;</code>
  3262. *
  3263. * <pre>
  3264. * room index
  3265. * </pre>
  3266. */
  3267. public int getSubgroup() {
  3268. return subgroup_;
  3269. }
  3270. /**
  3271. * <code>optional int32 subgroup = 5;</code>
  3272. *
  3273. * <pre>
  3274. * room index
  3275. * </pre>
  3276. */
  3277. public Builder setSubgroup(int value) {
  3278. bitField0_ |= 0x00000010;
  3279. subgroup_ = value;
  3280. onChanged();
  3281. return this;
  3282. }
  3283. /**
  3284. * <code>optional int32 subgroup = 5;</code>
  3285. *
  3286. * <pre>
  3287. * room index
  3288. * </pre>
  3289. */
  3290. public Builder clearSubgroup() {
  3291. bitField0_ = (bitField0_ & ~0x00000010);
  3292. subgroup_ = 0;
  3293. onChanged();
  3294. return this;
  3295. }
  3296. private java.util.List<Integer> visibles_ = java.util.Collections.emptyList();
  3297. private void ensureVisiblesIsMutable() {
  3298. if (!((bitField0_ & 0x00000020) == 0x00000020)) {
  3299. visibles_ = new java.util.ArrayList<Integer>(visibles_);
  3300. bitField0_ |= 0x00000020;
  3301. }
  3302. }
  3303. /**
  3304. * <code>repeated int32 visibles = 6;</code>
  3305. *
  3306. * <pre>
  3307. * list of indices to all pucks visible from this puck
  3308. * </pre>
  3309. */
  3310. public java.util.List<Integer>
  3311. getVisiblesList() {
  3312. return java.util.Collections.unmodifiableList(visibles_);
  3313. }
  3314. /**
  3315. * <code>repeated int32 visibles = 6;</code>
  3316. *
  3317. * <pre>
  3318. * list of indices to all pucks visible from this puck
  3319. * </pre>
  3320. */
  3321. public int getVisiblesCount() {
  3322. return visibles_.size();
  3323. }
  3324. /**
  3325. * <code>repeated int32 visibles = 6;</code>
  3326. *
  3327. * <pre>
  3328. * list of indices to all pucks visible from this puck
  3329. * </pre>
  3330. */
  3331. public int getVisibles(int index) {
  3332. return visibles_.get(index);
  3333. }
  3334. /**
  3335. * <code>repeated int32 visibles = 6;</code>
  3336. *
  3337. * <pre>
  3338. * list of indices to all pucks visible from this puck
  3339. * </pre>
  3340. */
  3341. public Builder setVisibles(
  3342. int index, int value) {
  3343. ensureVisiblesIsMutable();
  3344. visibles_.set(index, value);
  3345. onChanged();
  3346. return this;
  3347. }
  3348. /**
  3349. * <code>repeated int32 visibles = 6;</code>
  3350. *
  3351. * <pre>
  3352. * list of indices to all pucks visible from this puck
  3353. * </pre>
  3354. */
  3355. public Builder addVisibles(int value) {
  3356. ensureVisiblesIsMutable();
  3357. visibles_.add(value);
  3358. onChanged();
  3359. return this;
  3360. }
  3361. /**
  3362. * <code>repeated int32 visibles = 6;</code>
  3363. *
  3364. * <pre>
  3365. * list of indices to all pucks visible from this puck
  3366. * </pre>
  3367. */
  3368. public Builder addAllVisibles(
  3369. Iterable<? extends Integer> values) {
  3370. ensureVisiblesIsMutable();
  3371. com.google.protobuf.AbstractMessageLite.Builder.addAll(
  3372. values, visibles_);
  3373. onChanged();
  3374. return this;
  3375. }
  3376. /**
  3377. * <code>repeated int32 visibles = 6;</code>
  3378. *
  3379. * <pre>
  3380. * list of indices to all pucks visible from this puck
  3381. * </pre>
  3382. */
  3383. public Builder clearVisibles() {
  3384. visibles_ = java.util.Collections.emptyList();
  3385. bitField0_ = (bitField0_ & ~0x00000020);
  3386. onChanged();
  3387. return this;
  3388. }
  3389. private java.util.List<Float> scores_ = java.util.Collections.emptyList();
  3390. private void ensureScoresIsMutable() {
  3391. if (!((bitField0_ & 0x00000040) == 0x00000040)) {
  3392. scores_ = new java.util.ArrayList<Float>(scores_);
  3393. bitField0_ |= 0x00000040;
  3394. }
  3395. }
  3396. /**
  3397. * <code>repeated float scores = 7;</code>
  3398. *
  3399. * <pre>
  3400. * used as part of scoring function for determining which puck to go to next
  3401. * </pre>
  3402. */
  3403. public java.util.List<Float>
  3404. getScoresList() {
  3405. return java.util.Collections.unmodifiableList(scores_);
  3406. }
  3407. /**
  3408. * <code>repeated float scores = 7;</code>
  3409. *
  3410. * <pre>
  3411. * used as part of scoring function for determining which puck to go to next
  3412. * </pre>
  3413. */
  3414. public int getScoresCount() {
  3415. return scores_.size();
  3416. }
  3417. /**
  3418. * <code>repeated float scores = 7;</code>
  3419. *
  3420. * <pre>
  3421. * used as part of scoring function for determining which puck to go to next
  3422. * </pre>
  3423. */
  3424. public float getScores(int index) {
  3425. return scores_.get(index);
  3426. }
  3427. /**
  3428. * <code>repeated float scores = 7;</code>
  3429. *
  3430. * <pre>
  3431. * used as part of scoring function for determining which puck to go to next
  3432. * </pre>
  3433. */
  3434. public Builder setScores(
  3435. int index, float value) {
  3436. ensureScoresIsMutable();
  3437. scores_.set(index, value);
  3438. onChanged();
  3439. return this;
  3440. }
  3441. /**
  3442. * <code>repeated float scores = 7;</code>
  3443. *
  3444. * <pre>
  3445. * used as part of scoring function for determining which puck to go to next
  3446. * </pre>
  3447. */
  3448. public Builder addScores(float value) {
  3449. ensureScoresIsMutable();
  3450. scores_.add(value);
  3451. onChanged();
  3452. return this;
  3453. }
  3454. /**
  3455. * <code>repeated float scores = 7;</code>
  3456. *
  3457. * <pre>
  3458. * used as part of scoring function for determining which puck to go to next
  3459. * </pre>
  3460. */
  3461. public Builder addAllScores(
  3462. Iterable<? extends Float> values) {
  3463. ensureScoresIsMutable();
  3464. com.google.protobuf.AbstractMessageLite.Builder.addAll(
  3465. values, scores_);
  3466. onChanged();
  3467. return this;
  3468. }
  3469. /**
  3470. * <code>repeated float scores = 7;</code>
  3471. *
  3472. * <pre>
  3473. * used as part of scoring function for determining which puck to go to next
  3474. * </pre>
  3475. */
  3476. public Builder clearScores() {
  3477. scores_ = java.util.Collections.emptyList();
  3478. bitField0_ = (bitField0_ & ~0x00000040);
  3479. onChanged();
  3480. return this;
  3481. }
  3482. private java.util.List<Integer> visibles2_ = java.util.Collections.emptyList();
  3483. private void ensureVisibles2IsMutable() {
  3484. if (!((bitField0_ & 0x00000080) == 0x00000080)) {
  3485. visibles2_ = new java.util.ArrayList<Integer>(visibles2_);
  3486. bitField0_ |= 0x00000080;
  3487. }
  3488. }
  3489. /**
  3490. * <code>repeated int32 visibles2 = 8;</code>
  3491. *
  3492. * <pre>
  3493. * list of indices to all pucks visible from this puck
  3494. * </pre>
  3495. */
  3496. public java.util.List<Integer>
  3497. getVisibles2List() {
  3498. return java.util.Collections.unmodifiableList(visibles2_);
  3499. }
  3500. /**
  3501. * <code>repeated int32 visibles2 = 8;</code>
  3502. *
  3503. * <pre>
  3504. * list of indices to all pucks visible from this puck
  3505. * </pre>
  3506. */
  3507. public int getVisibles2Count() {
  3508. return visibles2_.size();
  3509. }
  3510. /**
  3511. * <code>repeated int32 visibles2 = 8;</code>
  3512. *
  3513. * <pre>
  3514. * list of indices to all pucks visible from this puck
  3515. * </pre>
  3516. */
  3517. public int getVisibles2(int index) {
  3518. return visibles2_.get(index);
  3519. }
  3520. /**
  3521. * <code>repeated int32 visibles2 = 8;</code>
  3522. *
  3523. * <pre>
  3524. * list of indices to all pucks visible from this puck
  3525. * </pre>
  3526. */
  3527. public Builder setVisibles2(
  3528. int index, int value) {
  3529. ensureVisibles2IsMutable();
  3530. visibles2_.set(index, value);
  3531. onChanged();
  3532. return this;
  3533. }
  3534. /**
  3535. * <code>repeated int32 visibles2 = 8;</code>
  3536. *
  3537. * <pre>
  3538. * list of indices to all pucks visible from this puck
  3539. * </pre>
  3540. */
  3541. public Builder addVisibles2(int value) {
  3542. ensureVisibles2IsMutable();
  3543. visibles2_.add(value);
  3544. onChanged();
  3545. return this;
  3546. }
  3547. /**
  3548. * <code>repeated int32 visibles2 = 8;</code>
  3549. *
  3550. * <pre>
  3551. * list of indices to all pucks visible from this puck
  3552. * </pre>
  3553. */
  3554. public Builder addAllVisibles2(
  3555. Iterable<? extends Integer> values) {
  3556. ensureVisibles2IsMutable();
  3557. com.google.protobuf.AbstractMessageLite.Builder.addAll(
  3558. values, visibles2_);
  3559. onChanged();
  3560. return this;
  3561. }
  3562. /**
  3563. * <code>repeated int32 visibles2 = 8;</code>
  3564. *
  3565. * <pre>
  3566. * list of indices to all pucks visible from this puck
  3567. * </pre>
  3568. */
  3569. public Builder clearVisibles2() {
  3570. visibles2_ = java.util.Collections.emptyList();
  3571. bitField0_ = (bitField0_ & ~0x00000080);
  3572. onChanged();
  3573. return this;
  3574. }
  3575. private java.util.List<Integer> visibles3_ = java.util.Collections.emptyList();
  3576. private void ensureVisibles3IsMutable() {
  3577. if (!((bitField0_ & 0x00000100) == 0x00000100)) {
  3578. visibles3_ = new java.util.ArrayList<Integer>(visibles3_);
  3579. bitField0_ |= 0x00000100;
  3580. }
  3581. }
  3582. /**
  3583. * <code>repeated int32 visibles3 = 9;</code>
  3584. *
  3585. * <pre>
  3586. * list of indices to all pucks visible from this puck
  3587. * </pre>
  3588. */
  3589. public java.util.List<Integer>
  3590. getVisibles3List() {
  3591. return java.util.Collections.unmodifiableList(visibles3_);
  3592. }
  3593. /**
  3594. * <code>repeated int32 visibles3 = 9;</code>
  3595. *
  3596. * <pre>
  3597. * list of indices to all pucks visible from this puck
  3598. * </pre>
  3599. */
  3600. public int getVisibles3Count() {
  3601. return visibles3_.size();
  3602. }
  3603. /**
  3604. * <code>repeated int32 visibles3 = 9;</code>
  3605. *
  3606. * <pre>
  3607. * list of indices to all pucks visible from this puck
  3608. * </pre>
  3609. */
  3610. public int getVisibles3(int index) {
  3611. return visibles3_.get(index);
  3612. }
  3613. /**
  3614. * <code>repeated int32 visibles3 = 9;</code>
  3615. *
  3616. * <pre>
  3617. * list of indices to all pucks visible from this puck
  3618. * </pre>
  3619. */
  3620. public Builder setVisibles3(
  3621. int index, int value) {
  3622. ensureVisibles3IsMutable();
  3623. visibles3_.set(index, value);
  3624. onChanged();
  3625. return this;
  3626. }
  3627. /**
  3628. * <code>repeated int32 visibles3 = 9;</code>
  3629. *
  3630. * <pre>
  3631. * list of indices to all pucks visible from this puck
  3632. * </pre>
  3633. */
  3634. public Builder addVisibles3(int value) {
  3635. ensureVisibles3IsMutable();
  3636. visibles3_.add(value);
  3637. onChanged();
  3638. return this;
  3639. }
  3640. /**
  3641. * <code>repeated int32 visibles3 = 9;</code>
  3642. *
  3643. * <pre>
  3644. * list of indices to all pucks visible from this puck
  3645. * </pre>
  3646. */
  3647. public Builder addAllVisibles3(
  3648. Iterable<? extends Integer> values) {
  3649. ensureVisibles3IsMutable();
  3650. com.google.protobuf.AbstractMessageLite.Builder.addAll(
  3651. values, visibles3_);
  3652. onChanged();
  3653. return this;
  3654. }
  3655. /**
  3656. * <code>repeated int32 visibles3 = 9;</code>
  3657. *
  3658. * <pre>
  3659. * list of indices to all pucks visible from this puck
  3660. * </pre>
  3661. */
  3662. public Builder clearVisibles3() {
  3663. visibles3_ = java.util.Collections.emptyList();
  3664. bitField0_ = (bitField0_ & ~0x00000100);
  3665. onChanged();
  3666. return this;
  3667. }
  3668. // @@protoc_insertion_point(builder_scope:tutorial.SweepLocation)
  3669. }
  3670. static {
  3671. defaultInstance = new SweepLocation(true);
  3672. defaultInstance.initFields();
  3673. }
  3674. // @@protoc_insertion_point(class_scope:tutorial.SweepLocation)
  3675. }
  3676. public interface NavigationInfoOrBuilder extends
  3677. // @@protoc_insertion_point(interface_extends:tutorial.NavigationInfo)
  3678. com.google.protobuf.MessageOrBuilder {
  3679. /**
  3680. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  3681. */
  3682. java.util.List<SweepLocation>
  3683. getSweepLocationsList();
  3684. /**
  3685. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  3686. */
  3687. SweepLocation getSweepLocations(int index);
  3688. /**
  3689. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  3690. */
  3691. int getSweepLocationsCount();
  3692. /**
  3693. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  3694. */
  3695. // java.util.List<? extends SweepLocationOrBuilder>
  3696. // getSweepLocationsOrBuilderList();
  3697. /**
  3698. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  3699. */
  3700. SweepLocationOrBuilder getSweepLocationsOrBuilder(
  3701. int index);
  3702. }
  3703. /**
  3704. * Protobuf type {@code tutorial.NavigationInfo}
  3705. *
  3706. * <pre>
  3707. * All pucks in a model. Pucks are stored in scanning order.
  3708. * </pre>
  3709. */
  3710. public static final class NavigationInfo extends
  3711. com.google.protobuf.GeneratedMessage implements
  3712. // @@protoc_insertion_point(message_implements:tutorial.NavigationInfo)
  3713. NavigationInfoOrBuilder {
  3714. // Use NavigationInfo.newBuilder() to construct.
  3715. private NavigationInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
  3716. super(builder);
  3717. this.unknownFields = builder.getUnknownFields();
  3718. }
  3719. private NavigationInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
  3720. private static final NavigationInfo defaultInstance;
  3721. public static NavigationInfo getDefaultInstance() {
  3722. return defaultInstance;
  3723. }
  3724. public NavigationInfo getDefaultInstanceForType() {
  3725. return defaultInstance;
  3726. }
  3727. private final com.google.protobuf.UnknownFieldSet unknownFields;
  3728. @Override
  3729. public final com.google.protobuf.UnknownFieldSet
  3730. getUnknownFields() {
  3731. return this.unknownFields;
  3732. }
  3733. private NavigationInfo(
  3734. com.google.protobuf.CodedInputStream input,
  3735. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3736. throws com.google.protobuf.InvalidProtocolBufferException {
  3737. initFields();
  3738. int mutable_bitField0_ = 0;
  3739. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  3740. com.google.protobuf.UnknownFieldSet.newBuilder();
  3741. try {
  3742. boolean done = false;
  3743. while (!done) {
  3744. int tag = input.readTag();
  3745. switch (tag) {
  3746. case 0:
  3747. done = true;
  3748. break;
  3749. case 10: {
  3750. if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
  3751. sweepLocations_ = new java.util.ArrayList<SweepLocation>();
  3752. mutable_bitField0_ |= 0x00000001;
  3753. }
  3754. sweepLocations_.add(input.readMessage(SweepLocation.PARSER, extensionRegistry));
  3755. break;
  3756. }
  3757. default: {
  3758. if (!parseUnknownField(input, unknownFields,
  3759. extensionRegistry, tag)) {
  3760. done = true;
  3761. }
  3762. break;
  3763. }
  3764. }
  3765. }
  3766. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  3767. throw e.setUnfinishedMessage(this);
  3768. } catch (java.io.IOException e) {
  3769. throw new com.google.protobuf.InvalidProtocolBufferException(
  3770. e.getMessage()).setUnfinishedMessage(this);
  3771. } finally {
  3772. if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
  3773. sweepLocations_ = java.util.Collections.unmodifiableList(sweepLocations_);
  3774. }
  3775. this.unknownFields = unknownFields.build();
  3776. makeExtensionsImmutable();
  3777. }
  3778. }
  3779. public static final com.google.protobuf.Descriptors.Descriptor
  3780. getDescriptor() {
  3781. return Common.internal_static_tutorial_NavigationInfo_descriptor;
  3782. }
  3783. protected FieldAccessorTable
  3784. internalGetFieldAccessorTable() {
  3785. return Common.internal_static_tutorial_NavigationInfo_fieldAccessorTable
  3786. .ensureFieldAccessorsInitialized(
  3787. NavigationInfo.class, Builder.class);
  3788. }
  3789. public static com.google.protobuf.Parser<NavigationInfo> PARSER =
  3790. new com.google.protobuf.AbstractParser<NavigationInfo>() {
  3791. public NavigationInfo parsePartialFrom(
  3792. com.google.protobuf.CodedInputStream input,
  3793. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3794. throws com.google.protobuf.InvalidProtocolBufferException {
  3795. return new NavigationInfo(input, extensionRegistry);
  3796. }
  3797. };
  3798. @Override
  3799. public com.google.protobuf.Parser<NavigationInfo> getParserForType() {
  3800. return PARSER;
  3801. }
  3802. public static final int SWEEPLOCATIONS_FIELD_NUMBER = 1;
  3803. private java.util.List<SweepLocation> sweepLocations_;
  3804. /**
  3805. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  3806. */
  3807. public java.util.List<SweepLocation> getSweepLocationsList() {
  3808. return sweepLocations_;
  3809. }
  3810. /**
  3811. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  3812. */
  3813. // public java.util.List<? extends SweepLocationOrBuilder>
  3814. // getSweepLocationsOrBuilderList() {
  3815. // return sweepLocations_;
  3816. // }
  3817. /**
  3818. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  3819. */
  3820. public int getSweepLocationsCount() {
  3821. return sweepLocations_.size();
  3822. }
  3823. /**
  3824. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  3825. */
  3826. public SweepLocation getSweepLocations(int index) {
  3827. return sweepLocations_.get(index);
  3828. }
  3829. /**
  3830. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  3831. */
  3832. public SweepLocationOrBuilder getSweepLocationsOrBuilder(
  3833. int index) {
  3834. return sweepLocations_.get(index);
  3835. }
  3836. private void initFields() {
  3837. sweepLocations_ = java.util.Collections.emptyList();
  3838. }
  3839. private byte memoizedIsInitialized = -1;
  3840. public final boolean isInitialized() {
  3841. byte isInitialized = memoizedIsInitialized;
  3842. if (isInitialized == 1) return true;
  3843. if (isInitialized == 0) return false;
  3844. memoizedIsInitialized = 1;
  3845. return true;
  3846. }
  3847. public void writeTo(com.google.protobuf.CodedOutputStream output)
  3848. throws java.io.IOException {
  3849. getSerializedSize();
  3850. for (int i = 0; i < sweepLocations_.size(); i++) {
  3851. output.writeMessage(1, sweepLocations_.get(i));
  3852. }
  3853. getUnknownFields().writeTo(output);
  3854. }
  3855. private int memoizedSerializedSize = -1;
  3856. public int getSerializedSize() {
  3857. int size = memoizedSerializedSize;
  3858. if (size != -1) return size;
  3859. size = 0;
  3860. for (int i = 0; i < sweepLocations_.size(); i++) {
  3861. size += com.google.protobuf.CodedOutputStream
  3862. .computeMessageSize(1, sweepLocations_.get(i));
  3863. }
  3864. size += getUnknownFields().getSerializedSize();
  3865. memoizedSerializedSize = size;
  3866. return size;
  3867. }
  3868. private static final long serialVersionUID = 0L;
  3869. @Override
  3870. protected Object writeReplace()
  3871. throws java.io.ObjectStreamException {
  3872. return super.writeReplace();
  3873. }
  3874. public static NavigationInfo parseFrom(
  3875. com.google.protobuf.ByteString data)
  3876. throws com.google.protobuf.InvalidProtocolBufferException {
  3877. return PARSER.parseFrom(data);
  3878. }
  3879. public static NavigationInfo parseFrom(
  3880. com.google.protobuf.ByteString data,
  3881. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3882. throws com.google.protobuf.InvalidProtocolBufferException {
  3883. return PARSER.parseFrom(data, extensionRegistry);
  3884. }
  3885. public static NavigationInfo parseFrom(byte[] data)
  3886. throws com.google.protobuf.InvalidProtocolBufferException {
  3887. return PARSER.parseFrom(data);
  3888. }
  3889. public static NavigationInfo parseFrom(
  3890. byte[] data,
  3891. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3892. throws com.google.protobuf.InvalidProtocolBufferException {
  3893. return PARSER.parseFrom(data, extensionRegistry);
  3894. }
  3895. public static NavigationInfo parseFrom(java.io.InputStream input)
  3896. throws java.io.IOException {
  3897. return PARSER.parseFrom(input);
  3898. }
  3899. public static NavigationInfo parseFrom(
  3900. java.io.InputStream input,
  3901. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3902. throws java.io.IOException {
  3903. return PARSER.parseFrom(input, extensionRegistry);
  3904. }
  3905. public static NavigationInfo parseDelimitedFrom(java.io.InputStream input)
  3906. throws java.io.IOException {
  3907. return PARSER.parseDelimitedFrom(input);
  3908. }
  3909. public static NavigationInfo parseDelimitedFrom(
  3910. java.io.InputStream input,
  3911. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3912. throws java.io.IOException {
  3913. return PARSER.parseDelimitedFrom(input, extensionRegistry);
  3914. }
  3915. public static NavigationInfo parseFrom(
  3916. com.google.protobuf.CodedInputStream input)
  3917. throws java.io.IOException {
  3918. return PARSER.parseFrom(input);
  3919. }
  3920. public static NavigationInfo parseFrom(
  3921. com.google.protobuf.CodedInputStream input,
  3922. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  3923. throws java.io.IOException {
  3924. return PARSER.parseFrom(input, extensionRegistry);
  3925. }
  3926. public static Builder newBuilder() { return Builder.create(); }
  3927. public Builder newBuilderForType() { return newBuilder(); }
  3928. public static Builder newBuilder(NavigationInfo prototype) {
  3929. return newBuilder().mergeFrom(prototype);
  3930. }
  3931. public Builder toBuilder() { return newBuilder(this); }
  3932. @Override
  3933. protected Builder newBuilderForType(
  3934. BuilderParent parent) {
  3935. Builder builder = new Builder(parent);
  3936. return builder;
  3937. }
  3938. /**
  3939. * Protobuf type {@code tutorial.NavigationInfo}
  3940. *
  3941. * <pre>
  3942. * All pucks in a model. Pucks are stored in scanning order.
  3943. * </pre>
  3944. */
  3945. public static final class Builder extends
  3946. com.google.protobuf.GeneratedMessage.Builder<Builder> implements
  3947. // @@protoc_insertion_point(builder_implements:tutorial.NavigationInfo)
  3948. NavigationInfoOrBuilder {
  3949. public static final com.google.protobuf.Descriptors.Descriptor
  3950. getDescriptor() {
  3951. return Common.internal_static_tutorial_NavigationInfo_descriptor;
  3952. }
  3953. protected FieldAccessorTable
  3954. internalGetFieldAccessorTable() {
  3955. return Common.internal_static_tutorial_NavigationInfo_fieldAccessorTable
  3956. .ensureFieldAccessorsInitialized(
  3957. NavigationInfo.class, Builder.class);
  3958. }
  3959. // Construct using com.fdkankan.common.proto.Common.NavigationInfo.newBuilder()
  3960. private Builder() {
  3961. maybeForceBuilderInitialization();
  3962. }
  3963. private Builder(
  3964. BuilderParent parent) {
  3965. super(parent);
  3966. maybeForceBuilderInitialization();
  3967. }
  3968. private void maybeForceBuilderInitialization() {
  3969. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  3970. getSweepLocationsFieldBuilder();
  3971. }
  3972. }
  3973. private static Builder create() {
  3974. return new Builder();
  3975. }
  3976. public Builder clear() {
  3977. super.clear();
  3978. if (sweepLocationsBuilder_ == null) {
  3979. sweepLocations_ = java.util.Collections.emptyList();
  3980. bitField0_ = (bitField0_ & ~0x00000001);
  3981. } else {
  3982. sweepLocationsBuilder_.clear();
  3983. }
  3984. return this;
  3985. }
  3986. public com.google.protobuf.Descriptors.Descriptor
  3987. getDescriptorForType() {
  3988. return Common.internal_static_tutorial_NavigationInfo_descriptor;
  3989. }
  3990. public NavigationInfo getDefaultInstanceForType() {
  3991. return NavigationInfo.getDefaultInstance();
  3992. }
  3993. public NavigationInfo build() {
  3994. NavigationInfo result = buildPartial();
  3995. if (!result.isInitialized()) {
  3996. throw newUninitializedMessageException(result);
  3997. }
  3998. return result;
  3999. }
  4000. public NavigationInfo buildPartial() {
  4001. NavigationInfo result = new NavigationInfo(this);
  4002. int from_bitField0_ = bitField0_;
  4003. if (sweepLocationsBuilder_ == null) {
  4004. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  4005. sweepLocations_ = java.util.Collections.unmodifiableList(sweepLocations_);
  4006. bitField0_ = (bitField0_ & ~0x00000001);
  4007. }
  4008. result.sweepLocations_ = sweepLocations_;
  4009. } else {
  4010. result.sweepLocations_ = sweepLocationsBuilder_.build();
  4011. }
  4012. onBuilt();
  4013. return result;
  4014. }
  4015. public Builder mergeFrom(com.google.protobuf.Message other) {
  4016. if (other instanceof NavigationInfo) {
  4017. return mergeFrom((NavigationInfo)other);
  4018. } else {
  4019. super.mergeFrom(other);
  4020. return this;
  4021. }
  4022. }
  4023. public Builder mergeFrom(NavigationInfo other) {
  4024. if (other == NavigationInfo.getDefaultInstance()) return this;
  4025. if (sweepLocationsBuilder_ == null) {
  4026. if (!other.sweepLocations_.isEmpty()) {
  4027. if (sweepLocations_.isEmpty()) {
  4028. sweepLocations_ = other.sweepLocations_;
  4029. bitField0_ = (bitField0_ & ~0x00000001);
  4030. } else {
  4031. ensureSweepLocationsIsMutable();
  4032. sweepLocations_.addAll(other.sweepLocations_);
  4033. }
  4034. onChanged();
  4035. }
  4036. } else {
  4037. if (!other.sweepLocations_.isEmpty()) {
  4038. if (sweepLocationsBuilder_.isEmpty()) {
  4039. sweepLocationsBuilder_.dispose();
  4040. sweepLocationsBuilder_ = null;
  4041. sweepLocations_ = other.sweepLocations_;
  4042. bitField0_ = (bitField0_ & ~0x00000001);
  4043. sweepLocationsBuilder_ =
  4044. com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
  4045. getSweepLocationsFieldBuilder() : null;
  4046. } else {
  4047. sweepLocationsBuilder_.addAllMessages(other.sweepLocations_);
  4048. }
  4049. }
  4050. }
  4051. this.mergeUnknownFields(other.getUnknownFields());
  4052. return this;
  4053. }
  4054. public final boolean isInitialized() {
  4055. return true;
  4056. }
  4057. public Builder mergeFrom(
  4058. com.google.protobuf.CodedInputStream input,
  4059. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  4060. throws java.io.IOException {
  4061. NavigationInfo parsedMessage = null;
  4062. try {
  4063. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  4064. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  4065. parsedMessage = (NavigationInfo) e.getUnfinishedMessage();
  4066. throw e;
  4067. } finally {
  4068. if (parsedMessage != null) {
  4069. mergeFrom(parsedMessage);
  4070. }
  4071. }
  4072. return this;
  4073. }
  4074. private int bitField0_;
  4075. private java.util.List<SweepLocation> sweepLocations_ =
  4076. java.util.Collections.emptyList();
  4077. private void ensureSweepLocationsIsMutable() {
  4078. if (!((bitField0_ & 0x00000001) == 0x00000001)) {
  4079. sweepLocations_ = new java.util.ArrayList<SweepLocation>(sweepLocations_);
  4080. bitField0_ |= 0x00000001;
  4081. }
  4082. }
  4083. private com.google.protobuf.RepeatedFieldBuilder<
  4084. SweepLocation, SweepLocation.Builder, SweepLocationOrBuilder> sweepLocationsBuilder_;
  4085. /**
  4086. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4087. */
  4088. public java.util.List<SweepLocation> getSweepLocationsList() {
  4089. if (sweepLocationsBuilder_ == null) {
  4090. return java.util.Collections.unmodifiableList(sweepLocations_);
  4091. } else {
  4092. return sweepLocationsBuilder_.getMessageList();
  4093. }
  4094. }
  4095. /**
  4096. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4097. */
  4098. public int getSweepLocationsCount() {
  4099. if (sweepLocationsBuilder_ == null) {
  4100. return sweepLocations_.size();
  4101. } else {
  4102. return sweepLocationsBuilder_.getCount();
  4103. }
  4104. }
  4105. /**
  4106. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4107. */
  4108. public SweepLocation getSweepLocations(int index) {
  4109. if (sweepLocationsBuilder_ == null) {
  4110. return sweepLocations_.get(index);
  4111. } else {
  4112. return sweepLocationsBuilder_.getMessage(index);
  4113. }
  4114. }
  4115. /**
  4116. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4117. */
  4118. public Builder setSweepLocations(
  4119. int index, SweepLocation value) {
  4120. if (sweepLocationsBuilder_ == null) {
  4121. if (value == null) {
  4122. throw new NullPointerException();
  4123. }
  4124. ensureSweepLocationsIsMutable();
  4125. sweepLocations_.set(index, value);
  4126. onChanged();
  4127. } else {
  4128. sweepLocationsBuilder_.setMessage(index, value);
  4129. }
  4130. return this;
  4131. }
  4132. /**
  4133. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4134. */
  4135. public Builder setSweepLocations(
  4136. int index, SweepLocation.Builder builderForValue) {
  4137. if (sweepLocationsBuilder_ == null) {
  4138. ensureSweepLocationsIsMutable();
  4139. sweepLocations_.set(index, builderForValue.build());
  4140. onChanged();
  4141. } else {
  4142. sweepLocationsBuilder_.setMessage(index, builderForValue.build());
  4143. }
  4144. return this;
  4145. }
  4146. /**
  4147. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4148. */
  4149. public Builder addSweepLocations(SweepLocation value) {
  4150. if (sweepLocationsBuilder_ == null) {
  4151. if (value == null) {
  4152. throw new NullPointerException();
  4153. }
  4154. ensureSweepLocationsIsMutable();
  4155. sweepLocations_.add(value);
  4156. onChanged();
  4157. } else {
  4158. sweepLocationsBuilder_.addMessage(value);
  4159. }
  4160. return this;
  4161. }
  4162. /**
  4163. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4164. */
  4165. public Builder addSweepLocations(
  4166. int index, SweepLocation value) {
  4167. if (sweepLocationsBuilder_ == null) {
  4168. if (value == null) {
  4169. throw new NullPointerException();
  4170. }
  4171. ensureSweepLocationsIsMutable();
  4172. sweepLocations_.add(index, value);
  4173. onChanged();
  4174. } else {
  4175. sweepLocationsBuilder_.addMessage(index, value);
  4176. }
  4177. return this;
  4178. }
  4179. /**
  4180. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4181. */
  4182. public Builder addSweepLocations(
  4183. SweepLocation.Builder builderForValue) {
  4184. if (sweepLocationsBuilder_ == null) {
  4185. ensureSweepLocationsIsMutable();
  4186. sweepLocations_.add(builderForValue.build());
  4187. onChanged();
  4188. } else {
  4189. sweepLocationsBuilder_.addMessage(builderForValue.build());
  4190. }
  4191. return this;
  4192. }
  4193. /**
  4194. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4195. */
  4196. public Builder addSweepLocations(
  4197. int index, SweepLocation.Builder builderForValue) {
  4198. if (sweepLocationsBuilder_ == null) {
  4199. ensureSweepLocationsIsMutable();
  4200. sweepLocations_.add(index, builderForValue.build());
  4201. onChanged();
  4202. } else {
  4203. sweepLocationsBuilder_.addMessage(index, builderForValue.build());
  4204. }
  4205. return this;
  4206. }
  4207. /**
  4208. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4209. */
  4210. public Builder addAllSweepLocations(
  4211. Iterable<? extends SweepLocation> values) {
  4212. if (sweepLocationsBuilder_ == null) {
  4213. ensureSweepLocationsIsMutable();
  4214. com.google.protobuf.AbstractMessageLite.Builder.addAll(
  4215. values, sweepLocations_);
  4216. onChanged();
  4217. } else {
  4218. sweepLocationsBuilder_.addAllMessages(values);
  4219. }
  4220. return this;
  4221. }
  4222. /**
  4223. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4224. */
  4225. public Builder clearSweepLocations() {
  4226. if (sweepLocationsBuilder_ == null) {
  4227. sweepLocations_ = java.util.Collections.emptyList();
  4228. bitField0_ = (bitField0_ & ~0x00000001);
  4229. onChanged();
  4230. } else {
  4231. sweepLocationsBuilder_.clear();
  4232. }
  4233. return this;
  4234. }
  4235. /**
  4236. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4237. */
  4238. public Builder removeSweepLocations(int index) {
  4239. if (sweepLocationsBuilder_ == null) {
  4240. ensureSweepLocationsIsMutable();
  4241. sweepLocations_.remove(index);
  4242. onChanged();
  4243. } else {
  4244. sweepLocationsBuilder_.remove(index);
  4245. }
  4246. return this;
  4247. }
  4248. /**
  4249. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4250. */
  4251. public SweepLocation.Builder getSweepLocationsBuilder(
  4252. int index) {
  4253. return getSweepLocationsFieldBuilder().getBuilder(index);
  4254. }
  4255. /**
  4256. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4257. */
  4258. public SweepLocationOrBuilder getSweepLocationsOrBuilder(
  4259. int index) {
  4260. if (sweepLocationsBuilder_ == null) {
  4261. return sweepLocations_.get(index); } else {
  4262. return sweepLocationsBuilder_.getMessageOrBuilder(index);
  4263. }
  4264. }
  4265. /**
  4266. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4267. */
  4268. // public java.util.List<? extends SweepLocationOrBuilder>
  4269. // getSweepLocationsOrBuilderList() {
  4270. // if (sweepLocationsBuilder_ != null) {
  4271. // return sweepLocationsBuilder_.getMessageOrBuilderList();
  4272. // } else {
  4273. // return java.util.Collections.unmodifiableList(sweepLocations_);
  4274. // }
  4275. // }
  4276. /**
  4277. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4278. */
  4279. public SweepLocation.Builder addSweepLocationsBuilder() {
  4280. return getSweepLocationsFieldBuilder().addBuilder(
  4281. SweepLocation.getDefaultInstance());
  4282. }
  4283. /**
  4284. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4285. */
  4286. public SweepLocation.Builder addSweepLocationsBuilder(
  4287. int index) {
  4288. return getSweepLocationsFieldBuilder().addBuilder(
  4289. index, SweepLocation.getDefaultInstance());
  4290. }
  4291. /**
  4292. * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
  4293. */
  4294. public java.util.List<SweepLocation.Builder>
  4295. getSweepLocationsBuilderList() {
  4296. return getSweepLocationsFieldBuilder().getBuilderList();
  4297. }
  4298. private com.google.protobuf.RepeatedFieldBuilder<
  4299. SweepLocation, SweepLocation.Builder, SweepLocationOrBuilder>
  4300. getSweepLocationsFieldBuilder() {
  4301. if (sweepLocationsBuilder_ == null) {
  4302. sweepLocationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
  4303. SweepLocation, SweepLocation.Builder, SweepLocationOrBuilder>(
  4304. sweepLocations_,
  4305. ((bitField0_ & 0x00000001) == 0x00000001),
  4306. getParentForChildren(),
  4307. isClean());
  4308. sweepLocations_ = null;
  4309. }
  4310. return sweepLocationsBuilder_;
  4311. }
  4312. // @@protoc_insertion_point(builder_scope:tutorial.NavigationInfo)
  4313. }
  4314. static {
  4315. defaultInstance = new NavigationInfo(true);
  4316. defaultInstance.initFields();
  4317. }
  4318. // @@protoc_insertion_point(class_scope:tutorial.NavigationInfo)
  4319. }
  4320. private static final com.google.protobuf.Descriptors.Descriptor
  4321. internal_static_tutorial_Affine3f_descriptor;
  4322. private static
  4323. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4324. internal_static_tutorial_Affine3f_fieldAccessorTable;
  4325. private static final com.google.protobuf.Descriptors.Descriptor
  4326. internal_static_tutorial_Quaternionf_descriptor;
  4327. private static
  4328. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4329. internal_static_tutorial_Quaternionf_fieldAccessorTable;
  4330. private static final com.google.protobuf.Descriptors.Descriptor
  4331. internal_static_tutorial_Vector3f_descriptor;
  4332. private static
  4333. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4334. internal_static_tutorial_Vector3f_fieldAccessorTable;
  4335. private static final com.google.protobuf.Descriptors.Descriptor
  4336. internal_static_tutorial_SweepLocation_descriptor;
  4337. private static
  4338. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4339. internal_static_tutorial_SweepLocation_fieldAccessorTable;
  4340. private static final com.google.protobuf.Descriptors.Descriptor
  4341. internal_static_tutorial_NavigationInfo_descriptor;
  4342. private static
  4343. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  4344. internal_static_tutorial_NavigationInfo_fieldAccessorTable;
  4345. public static com.google.protobuf.Descriptors.FileDescriptor
  4346. getDescriptor() {
  4347. return descriptor;
  4348. }
  4349. private static com.google.protobuf.Descriptors.FileDescriptor
  4350. descriptor;
  4351. static {
  4352. String[] descriptorData = {
  4353. "\n\014Common.proto\022\010tutorial\"\\\n\010Affine3f\022\'\n\010" +
  4354. "rotation\030\001 \001(\0132\025.tutorial.Quaternionf\022\'\n" +
  4355. "\013translation\030\002 \001(\0132\022.tutorial.Vector3f\"9" +
  4356. "\n\013Quaternionf\022\t\n\001w\030\001 \001(\002\022\t\n\001x\030\002 \001(\002\022\t\n\001y" +
  4357. "\030\003 \001(\002\022\t\n\001z\030\004 \001(\002\"+\n\010Vector3f\022\t\n\001x\030\001 \001(\002" +
  4358. "\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002\"\312\001\n\rSweepLocation" +
  4359. "\022\014\n\004uuid\030\001 \001(\014\022 \n\004pose\030\002 \001(\0132\022.tutorial." +
  4360. "Affine3f\022 \n\004puck\030\003 \001(\0132\022.tutorial.Vector" +
  4361. "3f\022\r\n\005group\030\004 \001(\005\022\020\n\010subgroup\030\005 \001(\005\022\020\n\010v" +
  4362. "isibles\030\006 \003(\005\022\016\n\006scores\030\007 \003(\002\022\021\n\tvisible",
  4363. "s2\030\010 \003(\005\022\021\n\tvisibles3\030\t \003(\005\"A\n\016Navigatio" +
  4364. "nInfo\022/\n\016sweepLocations\030\001 \003(\0132\027.tutorial" +
  4365. ".SweepLocationB\035\n\023com.fdage.web.protoB\006c" +
  4366. "ommon"
  4367. };
  4368. com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
  4369. new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
  4370. public com.google.protobuf.ExtensionRegistry assignDescriptors(
  4371. com.google.protobuf.Descriptors.FileDescriptor root) {
  4372. descriptor = root;
  4373. return null;
  4374. }
  4375. };
  4376. com.google.protobuf.Descriptors.FileDescriptor
  4377. .internalBuildGeneratedFileFrom(descriptorData,
  4378. new com.google.protobuf.Descriptors.FileDescriptor[] {
  4379. }, assigner);
  4380. internal_static_tutorial_Affine3f_descriptor =
  4381. getDescriptor().getMessageTypes().get(0);
  4382. internal_static_tutorial_Affine3f_fieldAccessorTable = new
  4383. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4384. internal_static_tutorial_Affine3f_descriptor,
  4385. new String[] { "Rotation", "Translation", });
  4386. internal_static_tutorial_Quaternionf_descriptor =
  4387. getDescriptor().getMessageTypes().get(1);
  4388. internal_static_tutorial_Quaternionf_fieldAccessorTable = new
  4389. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4390. internal_static_tutorial_Quaternionf_descriptor,
  4391. new String[] { "W", "X", "Y", "Z", });
  4392. internal_static_tutorial_Vector3f_descriptor =
  4393. getDescriptor().getMessageTypes().get(2);
  4394. internal_static_tutorial_Vector3f_fieldAccessorTable = new
  4395. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4396. internal_static_tutorial_Vector3f_descriptor,
  4397. new String[] { "X", "Y", "Z", });
  4398. internal_static_tutorial_SweepLocation_descriptor =
  4399. getDescriptor().getMessageTypes().get(3);
  4400. internal_static_tutorial_SweepLocation_fieldAccessorTable = new
  4401. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4402. internal_static_tutorial_SweepLocation_descriptor,
  4403. new String[] { "Uuid", "Pose", "Puck", "Group", "Subgroup", "Visibles", "Scores", "Visibles2", "Visibles3", });
  4404. internal_static_tutorial_NavigationInfo_descriptor =
  4405. getDescriptor().getMessageTypes().get(4);
  4406. internal_static_tutorial_NavigationInfo_fieldAccessorTable = new
  4407. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  4408. internal_static_tutorial_NavigationInfo_descriptor,
  4409. new String[] { "SweepLocations", });
  4410. }
  4411. // @@protoc_insertion_point(outer_class_scope)
  4412. }