12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: Common.proto
- package com.fdkankan.model.proto;
- public final class Common {
- private Common() {}
- public interface Affine3fOrBuilder extends
- // @@protoc_insertion_point(interface_extends:tutorial.Affine3f)
- com.google.protobuf.MessageOrBuilder {
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- boolean hasRotation();
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- Quaternionf getRotation();
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- QuaternionfOrBuilder getRotationOrBuilder();
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- boolean hasTranslation();
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- Vector3f getTranslation();
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- Vector3fOrBuilder getTranslationOrBuilder();
- }
- /**
- * Protobuf type {@code tutorial.Affine3f}
- */
- public static final class Affine3f extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:tutorial.Affine3f)
- Affine3fOrBuilder {
- // Use Affine3f.newBuilder() to construct.
- private Affine3f(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Affine3f(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final Affine3f defaultInstance;
- public static Affine3f getDefaultInstance() {
- return defaultInstance;
- }
- public Affine3f getDefaultInstanceForType() {
- return defaultInstance;
- }
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Affine3f(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- Quaternionf.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- subBuilder = rotation_.toBuilder();
- }
- rotation_ = input.readMessage(Quaternionf.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(rotation_);
- rotation_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 18: {
- Vector3f.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- subBuilder = translation_.toBuilder();
- }
- translation_ = input.readMessage(Vector3f.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(translation_);
- translation_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000002;
- break;
- }
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Common.internal_static_tutorial_Affine3f_descriptor;
- }
- protected FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Common.internal_static_tutorial_Affine3f_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- Affine3f.class, Builder.class);
- }
- public static com.google.protobuf.Parser<Affine3f> PARSER =
- new com.google.protobuf.AbstractParser<Affine3f>() {
- public Affine3f parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Affine3f(input, extensionRegistry);
- }
- };
- @Override
- public com.google.protobuf.Parser<Affine3f> getParserForType() {
- return PARSER;
- }
- private int bitField0_;
- public static final int ROTATION_FIELD_NUMBER = 1;
- private Quaternionf rotation_;
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- public boolean hasRotation() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- public Quaternionf getRotation() {
- return rotation_;
- }
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- public QuaternionfOrBuilder getRotationOrBuilder() {
- return rotation_;
- }
- public static final int TRANSLATION_FIELD_NUMBER = 2;
- private Vector3f translation_;
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- public boolean hasTranslation() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- public Vector3f getTranslation() {
- return translation_;
- }
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- public Vector3fOrBuilder getTranslationOrBuilder() {
- return translation_;
- }
- private void initFields() {
- rotation_ = Quaternionf.getDefaultInstance();
- translation_ = Vector3f.getDefaultInstance();
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
- memoizedIsInitialized = 1;
- return true;
- }
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, rotation_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, translation_);
- }
- getUnknownFields().writeTo(output);
- }
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, rotation_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, translation_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
- private static final long serialVersionUID = 0L;
- @Override
- protected Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
- public static Affine3f parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static Affine3f parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static Affine3f parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static Affine3f parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static Affine3f parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static Affine3f parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static Affine3f parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static Affine3f parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static Affine3f parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static Affine3f parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(Affine3f prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code tutorial.Affine3f}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:tutorial.Affine3f)
- Affine3fOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Common.internal_static_tutorial_Affine3f_descriptor;
- }
- protected FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Common.internal_static_tutorial_Affine3f_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- Affine3f.class, Builder.class);
- }
- // Construct using com.fdkankan.common.proto.Common.Affine3f.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
- private Builder(
- BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getRotationFieldBuilder();
- getTranslationFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
- public Builder clear() {
- super.clear();
- if (rotationBuilder_ == null) {
- rotation_ = Quaternionf.getDefaultInstance();
- } else {
- rotationBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- if (translationBuilder_ == null) {
- translation_ = Vector3f.getDefaultInstance();
- } else {
- translationBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return Common.internal_static_tutorial_Affine3f_descriptor;
- }
- public Affine3f getDefaultInstanceForType() {
- return Affine3f.getDefaultInstance();
- }
- public Affine3f build() {
- Affine3f result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
- public Affine3f buildPartial() {
- Affine3f result = new Affine3f(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- if (rotationBuilder_ == null) {
- result.rotation_ = rotation_;
- } else {
- result.rotation_ = rotationBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- if (translationBuilder_ == null) {
- result.translation_ = translation_;
- } else {
- result.translation_ = translationBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof Affine3f) {
- return mergeFrom((Affine3f)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(Affine3f other) {
- if (other == Affine3f.getDefaultInstance()) return this;
- if (other.hasRotation()) {
- mergeRotation(other.getRotation());
- }
- if (other.hasTranslation()) {
- mergeTranslation(other.getTranslation());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
- public final boolean isInitialized() {
- return true;
- }
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Affine3f parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Affine3f) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
- private Quaternionf rotation_ = Quaternionf.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
- Quaternionf, Quaternionf.Builder, QuaternionfOrBuilder> rotationBuilder_;
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- public boolean hasRotation() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- public Quaternionf getRotation() {
- if (rotationBuilder_ == null) {
- return rotation_;
- } else {
- return rotationBuilder_.getMessage();
- }
- }
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- public Builder setRotation(Quaternionf value) {
- if (rotationBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- rotation_ = value;
- onChanged();
- } else {
- rotationBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- public Builder setRotation(
- Quaternionf.Builder builderForValue) {
- if (rotationBuilder_ == null) {
- rotation_ = builderForValue.build();
- onChanged();
- } else {
- rotationBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- public Builder mergeRotation(Quaternionf value) {
- if (rotationBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001) &&
- rotation_ != Quaternionf.getDefaultInstance()) {
- rotation_ =
- Quaternionf.newBuilder(rotation_).mergeFrom(value).buildPartial();
- } else {
- rotation_ = value;
- }
- onChanged();
- } else {
- rotationBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- public Builder clearRotation() {
- if (rotationBuilder_ == null) {
- rotation_ = Quaternionf.getDefaultInstance();
- onChanged();
- } else {
- rotationBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- public Quaternionf.Builder getRotationBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getRotationFieldBuilder().getBuilder();
- }
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- public QuaternionfOrBuilder getRotationOrBuilder() {
- if (rotationBuilder_ != null) {
- return rotationBuilder_.getMessageOrBuilder();
- } else {
- return rotation_;
- }
- }
- /**
- * <code>optional .tutorial.Quaternionf rotation = 1;</code>
- */
- private com.google.protobuf.SingleFieldBuilder<
- Quaternionf, Quaternionf.Builder, QuaternionfOrBuilder>
- getRotationFieldBuilder() {
- if (rotationBuilder_ == null) {
- rotationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- Quaternionf, Quaternionf.Builder, QuaternionfOrBuilder>(
- getRotation(),
- getParentForChildren(),
- isClean());
- rotation_ = null;
- }
- return rotationBuilder_;
- }
- private Vector3f translation_ = Vector3f.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
- Vector3f, Vector3f.Builder, Vector3fOrBuilder> translationBuilder_;
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- public boolean hasTranslation() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- public Vector3f getTranslation() {
- if (translationBuilder_ == null) {
- return translation_;
- } else {
- return translationBuilder_.getMessage();
- }
- }
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- public Builder setTranslation(Vector3f value) {
- if (translationBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- translation_ = value;
- onChanged();
- } else {
- translationBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000002;
- return this;
- }
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- public Builder setTranslation(
- Vector3f.Builder builderForValue) {
- if (translationBuilder_ == null) {
- translation_ = builderForValue.build();
- onChanged();
- } else {
- translationBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000002;
- return this;
- }
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- public Builder mergeTranslation(Vector3f value) {
- if (translationBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002) &&
- translation_ != Vector3f.getDefaultInstance()) {
- translation_ =
- Vector3f.newBuilder(translation_).mergeFrom(value).buildPartial();
- } else {
- translation_ = value;
- }
- onChanged();
- } else {
- translationBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000002;
- return this;
- }
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- public Builder clearTranslation() {
- if (translationBuilder_ == null) {
- translation_ = Vector3f.getDefaultInstance();
- onChanged();
- } else {
- translationBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- public Vector3f.Builder getTranslationBuilder() {
- bitField0_ |= 0x00000002;
- onChanged();
- return getTranslationFieldBuilder().getBuilder();
- }
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- public Vector3fOrBuilder getTranslationOrBuilder() {
- if (translationBuilder_ != null) {
- return translationBuilder_.getMessageOrBuilder();
- } else {
- return translation_;
- }
- }
- /**
- * <code>optional .tutorial.Vector3f translation = 2;</code>
- */
- private com.google.protobuf.SingleFieldBuilder<
- Vector3f, Vector3f.Builder, Vector3fOrBuilder>
- getTranslationFieldBuilder() {
- if (translationBuilder_ == null) {
- translationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- Vector3f, Vector3f.Builder, Vector3fOrBuilder>(
- getTranslation(),
- getParentForChildren(),
- isClean());
- translation_ = null;
- }
- return translationBuilder_;
- }
- // @@protoc_insertion_point(builder_scope:tutorial.Affine3f)
- }
- static {
- defaultInstance = new Affine3f(true);
- defaultInstance.initFields();
- }
- // @@protoc_insertion_point(class_scope:tutorial.Affine3f)
- }
- public interface QuaternionfOrBuilder extends
- // @@protoc_insertion_point(interface_extends:tutorial.Quaternionf)
- com.google.protobuf.MessageOrBuilder {
- /**
- * <code>optional float w = 1;</code>
- */
- boolean hasW();
- /**
- * <code>optional float w = 1;</code>
- */
- float getW();
- /**
- * <code>optional float x = 2;</code>
- */
- boolean hasX();
- /**
- * <code>optional float x = 2;</code>
- */
- float getX();
- /**
- * <code>optional float y = 3;</code>
- */
- boolean hasY();
- /**
- * <code>optional float y = 3;</code>
- */
- float getY();
- /**
- * <code>optional float z = 4;</code>
- */
- boolean hasZ();
- /**
- * <code>optional float z = 4;</code>
- */
- float getZ();
- }
- /**
- * Protobuf type {@code tutorial.Quaternionf}
- */
- public static final class Quaternionf extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:tutorial.Quaternionf)
- QuaternionfOrBuilder {
- // Use Quaternionf.newBuilder() to construct.
- private Quaternionf(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Quaternionf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final Quaternionf defaultInstance;
- public static Quaternionf getDefaultInstance() {
- return defaultInstance;
- }
- public Quaternionf getDefaultInstanceForType() {
- return defaultInstance;
- }
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Quaternionf(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 13: {
- bitField0_ |= 0x00000001;
- w_ = input.readFloat();
- break;
- }
- case 21: {
- bitField0_ |= 0x00000002;
- x_ = input.readFloat();
- break;
- }
- case 29: {
- bitField0_ |= 0x00000004;
- y_ = input.readFloat();
- break;
- }
- case 37: {
- bitField0_ |= 0x00000008;
- z_ = input.readFloat();
- break;
- }
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Common.internal_static_tutorial_Quaternionf_descriptor;
- }
- protected FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Common.internal_static_tutorial_Quaternionf_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- Quaternionf.class, Builder.class);
- }
- public static com.google.protobuf.Parser<Quaternionf> PARSER =
- new com.google.protobuf.AbstractParser<Quaternionf>() {
- public Quaternionf parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Quaternionf(input, extensionRegistry);
- }
- };
- @Override
- public com.google.protobuf.Parser<Quaternionf> getParserForType() {
- return PARSER;
- }
- private int bitField0_;
- public static final int W_FIELD_NUMBER = 1;
- private float w_;
- /**
- * <code>optional float w = 1;</code>
- */
- public boolean hasW() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional float w = 1;</code>
- */
- public float getW() {
- return w_;
- }
- public static final int X_FIELD_NUMBER = 2;
- private float x_;
- /**
- * <code>optional float x = 2;</code>
- */
- public boolean hasX() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional float x = 2;</code>
- */
- public float getX() {
- return x_;
- }
- public static final int Y_FIELD_NUMBER = 3;
- private float y_;
- /**
- * <code>optional float y = 3;</code>
- */
- public boolean hasY() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional float y = 3;</code>
- */
- public float getY() {
- return y_;
- }
- public static final int Z_FIELD_NUMBER = 4;
- private float z_;
- /**
- * <code>optional float z = 4;</code>
- */
- public boolean hasZ() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional float z = 4;</code>
- */
- public float getZ() {
- return z_;
- }
- private void initFields() {
- w_ = 0F;
- x_ = 0F;
- y_ = 0F;
- z_ = 0F;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
- memoizedIsInitialized = 1;
- return true;
- }
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeFloat(1, w_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeFloat(2, x_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeFloat(3, y_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeFloat(4, z_);
- }
- getUnknownFields().writeTo(output);
- }
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(1, w_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(2, x_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(3, y_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(4, z_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
- private static final long serialVersionUID = 0L;
- @Override
- protected Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
- public static Quaternionf parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static Quaternionf parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static Quaternionf parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static Quaternionf parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static Quaternionf parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static Quaternionf parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static Quaternionf parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static Quaternionf parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static Quaternionf parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static Quaternionf parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(Quaternionf prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code tutorial.Quaternionf}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:tutorial.Quaternionf)
- QuaternionfOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Common.internal_static_tutorial_Quaternionf_descriptor;
- }
- protected FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Common.internal_static_tutorial_Quaternionf_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- Quaternionf.class, Builder.class);
- }
- // Construct using com.fdkankan.common.proto.Common.Quaternionf.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
- private Builder(
- BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
- public Builder clear() {
- super.clear();
- w_ = 0F;
- bitField0_ = (bitField0_ & ~0x00000001);
- x_ = 0F;
- bitField0_ = (bitField0_ & ~0x00000002);
- y_ = 0F;
- bitField0_ = (bitField0_ & ~0x00000004);
- z_ = 0F;
- bitField0_ = (bitField0_ & ~0x00000008);
- return this;
- }
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return Common.internal_static_tutorial_Quaternionf_descriptor;
- }
- public Quaternionf getDefaultInstanceForType() {
- return Quaternionf.getDefaultInstance();
- }
- public Quaternionf build() {
- Quaternionf result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
- public Quaternionf buildPartial() {
- Quaternionf result = new Quaternionf(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.w_ = w_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.x_ = x_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.y_ = y_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.z_ = z_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof Quaternionf) {
- return mergeFrom((Quaternionf)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(Quaternionf other) {
- if (other == Quaternionf.getDefaultInstance()) return this;
- if (other.hasW()) {
- setW(other.getW());
- }
- if (other.hasX()) {
- setX(other.getX());
- }
- if (other.hasY()) {
- setY(other.getY());
- }
- if (other.hasZ()) {
- setZ(other.getZ());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
- public final boolean isInitialized() {
- return true;
- }
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Quaternionf parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Quaternionf) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
- private float w_ ;
- /**
- * <code>optional float w = 1;</code>
- */
- public boolean hasW() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional float w = 1;</code>
- */
- public float getW() {
- return w_;
- }
- /**
- * <code>optional float w = 1;</code>
- */
- public Builder setW(float value) {
- bitField0_ |= 0x00000001;
- w_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional float w = 1;</code>
- */
- public Builder clearW() {
- bitField0_ = (bitField0_ & ~0x00000001);
- w_ = 0F;
- onChanged();
- return this;
- }
- private float x_ ;
- /**
- * <code>optional float x = 2;</code>
- */
- public boolean hasX() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional float x = 2;</code>
- */
- public float getX() {
- return x_;
- }
- /**
- * <code>optional float x = 2;</code>
- */
- public Builder setX(float value) {
- bitField0_ |= 0x00000002;
- x_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional float x = 2;</code>
- */
- public Builder clearX() {
- bitField0_ = (bitField0_ & ~0x00000002);
- x_ = 0F;
- onChanged();
- return this;
- }
- private float y_ ;
- /**
- * <code>optional float y = 3;</code>
- */
- public boolean hasY() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional float y = 3;</code>
- */
- public float getY() {
- return y_;
- }
- /**
- * <code>optional float y = 3;</code>
- */
- public Builder setY(float value) {
- bitField0_ |= 0x00000004;
- y_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional float y = 3;</code>
- */
- public Builder clearY() {
- bitField0_ = (bitField0_ & ~0x00000004);
- y_ = 0F;
- onChanged();
- return this;
- }
- private float z_ ;
- /**
- * <code>optional float z = 4;</code>
- */
- public boolean hasZ() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional float z = 4;</code>
- */
- public float getZ() {
- return z_;
- }
- /**
- * <code>optional float z = 4;</code>
- */
- public Builder setZ(float value) {
- bitField0_ |= 0x00000008;
- z_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional float z = 4;</code>
- */
- public Builder clearZ() {
- bitField0_ = (bitField0_ & ~0x00000008);
- z_ = 0F;
- onChanged();
- return this;
- }
- // @@protoc_insertion_point(builder_scope:tutorial.Quaternionf)
- }
- static {
- defaultInstance = new Quaternionf(true);
- defaultInstance.initFields();
- }
- // @@protoc_insertion_point(class_scope:tutorial.Quaternionf)
- }
- public interface Vector3fOrBuilder extends
- // @@protoc_insertion_point(interface_extends:tutorial.Vector3f)
- com.google.protobuf.MessageOrBuilder {
- /**
- * <code>optional float x = 1;</code>
- */
- boolean hasX();
- /**
- * <code>optional float x = 1;</code>
- */
- float getX();
- /**
- * <code>optional float y = 2;</code>
- */
- boolean hasY();
- /**
- * <code>optional float y = 2;</code>
- */
- float getY();
- /**
- * <code>optional float z = 3;</code>
- */
- boolean hasZ();
- /**
- * <code>optional float z = 3;</code>
- */
- float getZ();
- }
- /**
- * Protobuf type {@code tutorial.Vector3f}
- */
- public static final class Vector3f extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:tutorial.Vector3f)
- Vector3fOrBuilder {
- // Use Vector3f.newBuilder() to construct.
- private Vector3f(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Vector3f(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final Vector3f defaultInstance;
- public static Vector3f getDefaultInstance() {
- return defaultInstance;
- }
- public Vector3f getDefaultInstanceForType() {
- return defaultInstance;
- }
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Vector3f(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 13: {
- bitField0_ |= 0x00000001;
- x_ = input.readFloat();
- break;
- }
- case 21: {
- bitField0_ |= 0x00000002;
- y_ = input.readFloat();
- break;
- }
- case 29: {
- bitField0_ |= 0x00000004;
- z_ = input.readFloat();
- break;
- }
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Common.internal_static_tutorial_Vector3f_descriptor;
- }
- protected FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Common.internal_static_tutorial_Vector3f_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- Vector3f.class, Builder.class);
- }
- public static com.google.protobuf.Parser<Vector3f> PARSER =
- new com.google.protobuf.AbstractParser<Vector3f>() {
- public Vector3f parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Vector3f(input, extensionRegistry);
- }
- };
- @Override
- public com.google.protobuf.Parser<Vector3f> getParserForType() {
- return PARSER;
- }
- private int bitField0_;
- public static final int X_FIELD_NUMBER = 1;
- private float x_;
- /**
- * <code>optional float x = 1;</code>
- */
- public boolean hasX() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional float x = 1;</code>
- */
- public float getX() {
- return x_;
- }
- public static final int Y_FIELD_NUMBER = 2;
- private float y_;
- /**
- * <code>optional float y = 2;</code>
- */
- public boolean hasY() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional float y = 2;</code>
- */
- public float getY() {
- return y_;
- }
- public static final int Z_FIELD_NUMBER = 3;
- private float z_;
- /**
- * <code>optional float z = 3;</code>
- */
- public boolean hasZ() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional float z = 3;</code>
- */
- public float getZ() {
- return z_;
- }
- private void initFields() {
- x_ = 0F;
- y_ = 0F;
- z_ = 0F;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
- memoizedIsInitialized = 1;
- return true;
- }
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeFloat(1, x_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeFloat(2, y_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeFloat(3, z_);
- }
- getUnknownFields().writeTo(output);
- }
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(1, x_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(2, y_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(3, z_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
- private static final long serialVersionUID = 0L;
- @Override
- protected Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
- public static Vector3f parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static Vector3f parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static Vector3f parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static Vector3f parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static Vector3f parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static Vector3f parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static Vector3f parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static Vector3f parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static Vector3f parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static Vector3f parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(Vector3f prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code tutorial.Vector3f}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:tutorial.Vector3f)
- Vector3fOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Common.internal_static_tutorial_Vector3f_descriptor;
- }
- protected FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Common.internal_static_tutorial_Vector3f_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- Vector3f.class, Builder.class);
- }
- // Construct using com.fdkankan.common.proto.Common.Vector3f.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
- private Builder(
- BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
- public Builder clear() {
- super.clear();
- x_ = 0F;
- bitField0_ = (bitField0_ & ~0x00000001);
- y_ = 0F;
- bitField0_ = (bitField0_ & ~0x00000002);
- z_ = 0F;
- bitField0_ = (bitField0_ & ~0x00000004);
- return this;
- }
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return Common.internal_static_tutorial_Vector3f_descriptor;
- }
- public Vector3f getDefaultInstanceForType() {
- return Vector3f.getDefaultInstance();
- }
- public Vector3f build() {
- Vector3f result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
- public Vector3f buildPartial() {
- Vector3f result = new Vector3f(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.x_ = x_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.y_ = y_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.z_ = z_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof Vector3f) {
- return mergeFrom((Vector3f)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(Vector3f other) {
- if (other == Vector3f.getDefaultInstance()) return this;
- if (other.hasX()) {
- setX(other.getX());
- }
- if (other.hasY()) {
- setY(other.getY());
- }
- if (other.hasZ()) {
- setZ(other.getZ());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
- public final boolean isInitialized() {
- return true;
- }
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Vector3f parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Vector3f) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
- private float x_ ;
- /**
- * <code>optional float x = 1;</code>
- */
- public boolean hasX() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional float x = 1;</code>
- */
- public float getX() {
- return x_;
- }
- /**
- * <code>optional float x = 1;</code>
- */
- public Builder setX(float value) {
- bitField0_ |= 0x00000001;
- x_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional float x = 1;</code>
- */
- public Builder clearX() {
- bitField0_ = (bitField0_ & ~0x00000001);
- x_ = 0F;
- onChanged();
- return this;
- }
- private float y_ ;
- /**
- * <code>optional float y = 2;</code>
- */
- public boolean hasY() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional float y = 2;</code>
- */
- public float getY() {
- return y_;
- }
- /**
- * <code>optional float y = 2;</code>
- */
- public Builder setY(float value) {
- bitField0_ |= 0x00000002;
- y_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional float y = 2;</code>
- */
- public Builder clearY() {
- bitField0_ = (bitField0_ & ~0x00000002);
- y_ = 0F;
- onChanged();
- return this;
- }
- private float z_ ;
- /**
- * <code>optional float z = 3;</code>
- */
- public boolean hasZ() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional float z = 3;</code>
- */
- public float getZ() {
- return z_;
- }
- /**
- * <code>optional float z = 3;</code>
- */
- public Builder setZ(float value) {
- bitField0_ |= 0x00000004;
- z_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional float z = 3;</code>
- */
- public Builder clearZ() {
- bitField0_ = (bitField0_ & ~0x00000004);
- z_ = 0F;
- onChanged();
- return this;
- }
- // @@protoc_insertion_point(builder_scope:tutorial.Vector3f)
- }
- static {
- defaultInstance = new Vector3f(true);
- defaultInstance.initFields();
- }
- // @@protoc_insertion_point(class_scope:tutorial.Vector3f)
- }
- public interface SweepLocationOrBuilder extends
- // @@protoc_insertion_point(interface_extends:tutorial.SweepLocation)
- com.google.protobuf.MessageOrBuilder {
- /**
- * <code>optional bytes uuid = 1;</code>
- *
- * <pre>
- * uuid
- * </pre>
- */
- boolean hasUuid();
- /**
- * <code>optional bytes uuid = 1;</code>
- *
- * <pre>
- * uuid
- * </pre>
- */
- com.google.protobuf.ByteString getUuid();
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- boolean hasPose();
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- Affine3f getPose();
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- Affine3fOrBuilder getPoseOrBuilder();
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- boolean hasPuck();
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- Vector3f getPuck();
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- Vector3fOrBuilder getPuckOrBuilder();
- /**
- * <code>optional int32 group = 4;</code>
- *
- * <pre>
- * floor index
- * </pre>
- */
- boolean hasGroup();
- /**
- * <code>optional int32 group = 4;</code>
- *
- * <pre>
- * floor index
- * </pre>
- */
- int getGroup();
- /**
- * <code>optional int32 subgroup = 5;</code>
- *
- * <pre>
- * room index
- * </pre>
- */
- boolean hasSubgroup();
- /**
- * <code>optional int32 subgroup = 5;</code>
- *
- * <pre>
- * room index
- * </pre>
- */
- int getSubgroup();
- /**
- * <code>repeated int32 visibles = 6;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- java.util.List<Integer> getVisiblesList();
- /**
- * <code>repeated int32 visibles = 6;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- int getVisiblesCount();
- /**
- * <code>repeated int32 visibles = 6;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- int getVisibles(int index);
- /**
- * <code>repeated float scores = 7;</code>
- *
- * <pre>
- * used as part of scoring function for determining which puck to go to next
- * </pre>
- */
- java.util.List<Float> getScoresList();
- /**
- * <code>repeated float scores = 7;</code>
- *
- * <pre>
- * used as part of scoring function for determining which puck to go to next
- * </pre>
- */
- int getScoresCount();
- /**
- * <code>repeated float scores = 7;</code>
- *
- * <pre>
- * used as part of scoring function for determining which puck to go to next
- * </pre>
- */
- float getScores(int index);
- /**
- * <code>repeated int32 visibles2 = 8;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- java.util.List<Integer> getVisibles2List();
- /**
- * <code>repeated int32 visibles2 = 8;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- int getVisibles2Count();
- /**
- * <code>repeated int32 visibles2 = 8;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- int getVisibles2(int index);
- /**
- * <code>repeated int32 visibles3 = 9;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- java.util.List<Integer> getVisibles3List();
- /**
- * <code>repeated int32 visibles3 = 9;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- int getVisibles3Count();
- /**
- * <code>repeated int32 visibles3 = 9;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- int getVisibles3(int index);
- }
- /**
- * Protobuf type {@code tutorial.SweepLocation}
- *
- * <pre>
- * One sweep / pano
- * </pre>
- */
- public static final class SweepLocation extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:tutorial.SweepLocation)
- SweepLocationOrBuilder {
- // Use SweepLocation.newBuilder() to construct.
- private SweepLocation(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private SweepLocation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final SweepLocation defaultInstance;
- public static SweepLocation getDefaultInstance() {
- return defaultInstance;
- }
- public SweepLocation getDefaultInstanceForType() {
- return defaultInstance;
- }
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private SweepLocation(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- bitField0_ |= 0x00000001;
- uuid_ = input.readBytes();
- break;
- }
- case 18: {
- Affine3f.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- subBuilder = pose_.toBuilder();
- }
- pose_ = input.readMessage(Affine3f.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(pose_);
- pose_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000002;
- break;
- }
- case 26: {
- Vector3f.Builder subBuilder = null;
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- subBuilder = puck_.toBuilder();
- }
- puck_ = input.readMessage(Vector3f.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(puck_);
- puck_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000004;
- break;
- }
- case 32: {
- bitField0_ |= 0x00000008;
- group_ = input.readInt32();
- break;
- }
- case 40: {
- bitField0_ |= 0x00000010;
- subgroup_ = input.readInt32();
- break;
- }
- case 48: {
- if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- visibles_ = new java.util.ArrayList<Integer>();
- mutable_bitField0_ |= 0x00000020;
- }
- visibles_.add(input.readInt32());
- break;
- }
- case 50: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
- visibles_ = new java.util.ArrayList<Integer>();
- mutable_bitField0_ |= 0x00000020;
- }
- while (input.getBytesUntilLimit() > 0) {
- visibles_.add(input.readInt32());
- }
- input.popLimit(limit);
- break;
- }
- case 61: {
- if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- scores_ = new java.util.ArrayList<Float>();
- mutable_bitField0_ |= 0x00000040;
- }
- scores_.add(input.readFloat());
- break;
- }
- case 58: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
- scores_ = new java.util.ArrayList<Float>();
- mutable_bitField0_ |= 0x00000040;
- }
- while (input.getBytesUntilLimit() > 0) {
- scores_.add(input.readFloat());
- }
- input.popLimit(limit);
- break;
- }
- case 64: {
- if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
- visibles2_ = new java.util.ArrayList<Integer>();
- mutable_bitField0_ |= 0x00000080;
- }
- visibles2_.add(input.readInt32());
- break;
- }
- case 66: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) {
- visibles2_ = new java.util.ArrayList<Integer>();
- mutable_bitField0_ |= 0x00000080;
- }
- while (input.getBytesUntilLimit() > 0) {
- visibles2_.add(input.readInt32());
- }
- input.popLimit(limit);
- break;
- }
- case 72: {
- if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
- visibles3_ = new java.util.ArrayList<Integer>();
- mutable_bitField0_ |= 0x00000100;
- }
- visibles3_.add(input.readInt32());
- break;
- }
- case 74: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) {
- visibles3_ = new java.util.ArrayList<Integer>();
- mutable_bitField0_ |= 0x00000100;
- }
- while (input.getBytesUntilLimit() > 0) {
- visibles3_.add(input.readInt32());
- }
- input.popLimit(limit);
- break;
- }
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- visibles_ = java.util.Collections.unmodifiableList(visibles_);
- }
- if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- scores_ = java.util.Collections.unmodifiableList(scores_);
- }
- if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
- visibles2_ = java.util.Collections.unmodifiableList(visibles2_);
- }
- if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
- visibles3_ = java.util.Collections.unmodifiableList(visibles3_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Common.internal_static_tutorial_SweepLocation_descriptor;
- }
- protected FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Common.internal_static_tutorial_SweepLocation_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- SweepLocation.class, Builder.class);
- }
- public static com.google.protobuf.Parser<SweepLocation> PARSER =
- new com.google.protobuf.AbstractParser<SweepLocation>() {
- public SweepLocation parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new SweepLocation(input, extensionRegistry);
- }
- };
- @Override
- public com.google.protobuf.Parser<SweepLocation> getParserForType() {
- return PARSER;
- }
- private int bitField0_;
- public static final int UUID_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString uuid_;
- /**
- * <code>optional bytes uuid = 1;</code>
- *
- * <pre>
- * uuid
- * </pre>
- */
- public boolean hasUuid() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional bytes uuid = 1;</code>
- *
- * <pre>
- * uuid
- * </pre>
- */
- public com.google.protobuf.ByteString getUuid() {
- return uuid_;
- }
- public static final int POSE_FIELD_NUMBER = 2;
- private Affine3f pose_;
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- public boolean hasPose() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- public Affine3f getPose() {
- return pose_;
- }
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- public Affine3fOrBuilder getPoseOrBuilder() {
- return pose_;
- }
- public static final int PUCK_FIELD_NUMBER = 3;
- private Vector3f puck_;
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- public boolean hasPuck() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- public Vector3f getPuck() {
- return puck_;
- }
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- public Vector3fOrBuilder getPuckOrBuilder() {
- return puck_;
- }
- public static final int GROUP_FIELD_NUMBER = 4;
- private int group_;
- /**
- * <code>optional int32 group = 4;</code>
- *
- * <pre>
- * floor index
- * </pre>
- */
- public boolean hasGroup() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional int32 group = 4;</code>
- *
- * <pre>
- * floor index
- * </pre>
- */
- public int getGroup() {
- return group_;
- }
- public static final int SUBGROUP_FIELD_NUMBER = 5;
- private int subgroup_;
- /**
- * <code>optional int32 subgroup = 5;</code>
- *
- * <pre>
- * room index
- * </pre>
- */
- public boolean hasSubgroup() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>optional int32 subgroup = 5;</code>
- *
- * <pre>
- * room index
- * </pre>
- */
- public int getSubgroup() {
- return subgroup_;
- }
- public static final int VISIBLES_FIELD_NUMBER = 6;
- private java.util.List<Integer> visibles_;
- /**
- * <code>repeated int32 visibles = 6;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public java.util.List<Integer>
- getVisiblesList() {
- return visibles_;
- }
- /**
- * <code>repeated int32 visibles = 6;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public int getVisiblesCount() {
- return visibles_.size();
- }
- /**
- * <code>repeated int32 visibles = 6;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public int getVisibles(int index) {
- return visibles_.get(index);
- }
- public static final int SCORES_FIELD_NUMBER = 7;
- private java.util.List<Float> scores_;
- /**
- * <code>repeated float scores = 7;</code>
- *
- * <pre>
- * used as part of scoring function for determining which puck to go to next
- * </pre>
- */
- public java.util.List<Float>
- getScoresList() {
- return scores_;
- }
- /**
- * <code>repeated float scores = 7;</code>
- *
- * <pre>
- * used as part of scoring function for determining which puck to go to next
- * </pre>
- */
- public int getScoresCount() {
- return scores_.size();
- }
- /**
- * <code>repeated float scores = 7;</code>
- *
- * <pre>
- * used as part of scoring function for determining which puck to go to next
- * </pre>
- */
- public float getScores(int index) {
- return scores_.get(index);
- }
- public static final int VISIBLES2_FIELD_NUMBER = 8;
- private java.util.List<Integer> visibles2_;
- /**
- * <code>repeated int32 visibles2 = 8;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public java.util.List<Integer>
- getVisibles2List() {
- return visibles2_;
- }
- /**
- * <code>repeated int32 visibles2 = 8;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public int getVisibles2Count() {
- return visibles2_.size();
- }
- /**
- * <code>repeated int32 visibles2 = 8;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public int getVisibles2(int index) {
- return visibles2_.get(index);
- }
- public static final int VISIBLES3_FIELD_NUMBER = 9;
- private java.util.List<Integer> visibles3_;
- /**
- * <code>repeated int32 visibles3 = 9;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public java.util.List<Integer>
- getVisibles3List() {
- return visibles3_;
- }
- /**
- * <code>repeated int32 visibles3 = 9;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public int getVisibles3Count() {
- return visibles3_.size();
- }
- /**
- * <code>repeated int32 visibles3 = 9;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public int getVisibles3(int index) {
- return visibles3_.get(index);
- }
- private void initFields() {
- uuid_ = com.google.protobuf.ByteString.EMPTY;
- pose_ = Affine3f.getDefaultInstance();
- puck_ = Vector3f.getDefaultInstance();
- group_ = 0;
- subgroup_ = 0;
- visibles_ = java.util.Collections.emptyList();
- scores_ = java.util.Collections.emptyList();
- visibles2_ = java.util.Collections.emptyList();
- visibles3_ = java.util.Collections.emptyList();
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
- memoizedIsInitialized = 1;
- return true;
- }
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, uuid_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, pose_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(3, puck_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeInt32(4, group_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeInt32(5, subgroup_);
- }
- for (int i = 0; i < visibles_.size(); i++) {
- output.writeInt32(6, visibles_.get(i));
- }
- for (int i = 0; i < scores_.size(); i++) {
- output.writeFloat(7, scores_.get(i));
- }
- for (int i = 0; i < visibles2_.size(); i++) {
- output.writeInt32(8, visibles2_.get(i));
- }
- for (int i = 0; i < visibles3_.size(); i++) {
- output.writeInt32(9, visibles3_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, uuid_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, pose_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, puck_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(4, group_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(5, subgroup_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < visibles_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(visibles_.get(i));
- }
- size += dataSize;
- size += 1 * getVisiblesList().size();
- }
- {
- int dataSize = 0;
- dataSize = 4 * getScoresList().size();
- size += dataSize;
- size += 1 * getScoresList().size();
- }
- {
- int dataSize = 0;
- for (int i = 0; i < visibles2_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(visibles2_.get(i));
- }
- size += dataSize;
- size += 1 * getVisibles2List().size();
- }
- {
- int dataSize = 0;
- for (int i = 0; i < visibles3_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(visibles3_.get(i));
- }
- size += dataSize;
- size += 1 * getVisibles3List().size();
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
- private static final long serialVersionUID = 0L;
- @Override
- protected Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
- public static SweepLocation parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static SweepLocation parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static SweepLocation parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static SweepLocation parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static SweepLocation parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static SweepLocation parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static SweepLocation parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static SweepLocation parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static SweepLocation parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static SweepLocation parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(SweepLocation prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code tutorial.SweepLocation}
- *
- * <pre>
- * One sweep / pano
- * </pre>
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:tutorial.SweepLocation)
- SweepLocationOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Common.internal_static_tutorial_SweepLocation_descriptor;
- }
- protected FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Common.internal_static_tutorial_SweepLocation_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- SweepLocation.class, Builder.class);
- }
- // Construct using com.fdkankan.common.proto.Common.SweepLocation.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
- private Builder(
- BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getPoseFieldBuilder();
- getPuckFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
- public Builder clear() {
- super.clear();
- uuid_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
- if (poseBuilder_ == null) {
- pose_ = Affine3f.getDefaultInstance();
- } else {
- poseBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000002);
- if (puckBuilder_ == null) {
- puck_ = Vector3f.getDefaultInstance();
- } else {
- puckBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000004);
- group_ = 0;
- bitField0_ = (bitField0_ & ~0x00000008);
- subgroup_ = 0;
- bitField0_ = (bitField0_ & ~0x00000010);
- visibles_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000020);
- scores_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
- visibles2_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000080);
- visibles3_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
- return this;
- }
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return Common.internal_static_tutorial_SweepLocation_descriptor;
- }
- public SweepLocation getDefaultInstanceForType() {
- return SweepLocation.getDefaultInstance();
- }
- public SweepLocation build() {
- SweepLocation result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
- public SweepLocation buildPartial() {
- SweepLocation result = new SweepLocation(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.uuid_ = uuid_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- if (poseBuilder_ == null) {
- result.pose_ = pose_;
- } else {
- result.pose_ = poseBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- if (puckBuilder_ == null) {
- result.puck_ = puck_;
- } else {
- result.puck_ = puckBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.group_ = group_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000010;
- }
- result.subgroup_ = subgroup_;
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- visibles_ = java.util.Collections.unmodifiableList(visibles_);
- bitField0_ = (bitField0_ & ~0x00000020);
- }
- result.visibles_ = visibles_;
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- scores_ = java.util.Collections.unmodifiableList(scores_);
- bitField0_ = (bitField0_ & ~0x00000040);
- }
- result.scores_ = scores_;
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- visibles2_ = java.util.Collections.unmodifiableList(visibles2_);
- bitField0_ = (bitField0_ & ~0x00000080);
- }
- result.visibles2_ = visibles2_;
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- visibles3_ = java.util.Collections.unmodifiableList(visibles3_);
- bitField0_ = (bitField0_ & ~0x00000100);
- }
- result.visibles3_ = visibles3_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof SweepLocation) {
- return mergeFrom((SweepLocation)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(SweepLocation other) {
- if (other == SweepLocation.getDefaultInstance()) return this;
- if (other.hasUuid()) {
- setUuid(other.getUuid());
- }
- if (other.hasPose()) {
- mergePose(other.getPose());
- }
- if (other.hasPuck()) {
- mergePuck(other.getPuck());
- }
- if (other.hasGroup()) {
- setGroup(other.getGroup());
- }
- if (other.hasSubgroup()) {
- setSubgroup(other.getSubgroup());
- }
- if (!other.visibles_.isEmpty()) {
- if (visibles_.isEmpty()) {
- visibles_ = other.visibles_;
- bitField0_ = (bitField0_ & ~0x00000020);
- } else {
- ensureVisiblesIsMutable();
- visibles_.addAll(other.visibles_);
- }
- onChanged();
- }
- if (!other.scores_.isEmpty()) {
- if (scores_.isEmpty()) {
- scores_ = other.scores_;
- bitField0_ = (bitField0_ & ~0x00000040);
- } else {
- ensureScoresIsMutable();
- scores_.addAll(other.scores_);
- }
- onChanged();
- }
- if (!other.visibles2_.isEmpty()) {
- if (visibles2_.isEmpty()) {
- visibles2_ = other.visibles2_;
- bitField0_ = (bitField0_ & ~0x00000080);
- } else {
- ensureVisibles2IsMutable();
- visibles2_.addAll(other.visibles2_);
- }
- onChanged();
- }
- if (!other.visibles3_.isEmpty()) {
- if (visibles3_.isEmpty()) {
- visibles3_ = other.visibles3_;
- bitField0_ = (bitField0_ & ~0x00000100);
- } else {
- ensureVisibles3IsMutable();
- visibles3_.addAll(other.visibles3_);
- }
- onChanged();
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
- public final boolean isInitialized() {
- return true;
- }
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- SweepLocation parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (SweepLocation) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
- private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * <code>optional bytes uuid = 1;</code>
- *
- * <pre>
- * uuid
- * </pre>
- */
- public boolean hasUuid() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional bytes uuid = 1;</code>
- *
- * <pre>
- * uuid
- * </pre>
- */
- public com.google.protobuf.ByteString getUuid() {
- return uuid_;
- }
- /**
- * <code>optional bytes uuid = 1;</code>
- *
- * <pre>
- * uuid
- * </pre>
- */
- public Builder setUuid(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- uuid_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional bytes uuid = 1;</code>
- *
- * <pre>
- * uuid
- * </pre>
- */
- public Builder clearUuid() {
- bitField0_ = (bitField0_ & ~0x00000001);
- uuid_ = getDefaultInstance().getUuid();
- onChanged();
- return this;
- }
- private Affine3f pose_ = Affine3f.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
- Affine3f, Affine3f.Builder, Affine3fOrBuilder> poseBuilder_;
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- public boolean hasPose() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- public Affine3f getPose() {
- if (poseBuilder_ == null) {
- return pose_;
- } else {
- return poseBuilder_.getMessage();
- }
- }
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- public Builder setPose(Affine3f value) {
- if (poseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- pose_ = value;
- onChanged();
- } else {
- poseBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000002;
- return this;
- }
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- public Builder setPose(
- Affine3f.Builder builderForValue) {
- if (poseBuilder_ == null) {
- pose_ = builderForValue.build();
- onChanged();
- } else {
- poseBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000002;
- return this;
- }
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- public Builder mergePose(Affine3f value) {
- if (poseBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002) &&
- pose_ != Affine3f.getDefaultInstance()) {
- pose_ =
- Affine3f.newBuilder(pose_).mergeFrom(value).buildPartial();
- } else {
- pose_ = value;
- }
- onChanged();
- } else {
- poseBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000002;
- return this;
- }
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- public Builder clearPose() {
- if (poseBuilder_ == null) {
- pose_ = Affine3f.getDefaultInstance();
- onChanged();
- } else {
- poseBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- public Affine3f.Builder getPoseBuilder() {
- bitField0_ |= 0x00000002;
- onChanged();
- return getPoseFieldBuilder().getBuilder();
- }
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- public Affine3fOrBuilder getPoseOrBuilder() {
- if (poseBuilder_ != null) {
- return poseBuilder_.getMessageOrBuilder();
- } else {
- return pose_;
- }
- }
- /**
- * <code>optional .tutorial.Affine3f pose = 2;</code>
- *
- * <pre>
- * camera pose (x, y,z) in meter and a quaternion
- * </pre>
- */
- private com.google.protobuf.SingleFieldBuilder<
- Affine3f, Affine3f.Builder, Affine3fOrBuilder>
- getPoseFieldBuilder() {
- if (poseBuilder_ == null) {
- poseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- Affine3f, Affine3f.Builder, Affine3fOrBuilder>(
- getPose(),
- getParentForChildren(),
- isClean());
- pose_ = null;
- }
- return poseBuilder_;
- }
- private Vector3f puck_ = Vector3f.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
- Vector3f, Vector3f.Builder, Vector3fOrBuilder> puckBuilder_;
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- public boolean hasPuck() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- public Vector3f getPuck() {
- if (puckBuilder_ == null) {
- return puck_;
- } else {
- return puckBuilder_.getMessage();
- }
- }
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- public Builder setPuck(Vector3f value) {
- if (puckBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- puck_ = value;
- onChanged();
- } else {
- puckBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000004;
- return this;
- }
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- public Builder setPuck(
- Vector3f.Builder builderForValue) {
- if (puckBuilder_ == null) {
- puck_ = builderForValue.build();
- onChanged();
- } else {
- puckBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000004;
- return this;
- }
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- public Builder mergePuck(Vector3f value) {
- if (puckBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004) &&
- puck_ != Vector3f.getDefaultInstance()) {
- puck_ =
- Vector3f.newBuilder(puck_).mergeFrom(value).buildPartial();
- } else {
- puck_ = value;
- }
- onChanged();
- } else {
- puckBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000004;
- return this;
- }
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- public Builder clearPuck() {
- if (puckBuilder_ == null) {
- puck_ = Vector3f.getDefaultInstance();
- onChanged();
- } else {
- puckBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000004);
- return this;
- }
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- public Vector3f.Builder getPuckBuilder() {
- bitField0_ |= 0x00000004;
- onChanged();
- return getPuckFieldBuilder().getBuilder();
- }
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- public Vector3fOrBuilder getPuckOrBuilder() {
- if (puckBuilder_ != null) {
- return puckBuilder_.getMessageOrBuilder();
- } else {
- return puck_;
- }
- }
- /**
- * <code>optional .tutorial.Vector3f puck = 3;</code>
- *
- * <pre>
- * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
- * </pre>
- */
- private com.google.protobuf.SingleFieldBuilder<
- Vector3f, Vector3f.Builder, Vector3fOrBuilder>
- getPuckFieldBuilder() {
- if (puckBuilder_ == null) {
- puckBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- Vector3f, Vector3f.Builder, Vector3fOrBuilder>(
- getPuck(),
- getParentForChildren(),
- isClean());
- puck_ = null;
- }
- return puckBuilder_;
- }
- private int group_ ;
- /**
- * <code>optional int32 group = 4;</code>
- *
- * <pre>
- * floor index
- * </pre>
- */
- public boolean hasGroup() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional int32 group = 4;</code>
- *
- * <pre>
- * floor index
- * </pre>
- */
- public int getGroup() {
- return group_;
- }
- /**
- * <code>optional int32 group = 4;</code>
- *
- * <pre>
- * floor index
- * </pre>
- */
- public Builder setGroup(int value) {
- bitField0_ |= 0x00000008;
- group_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional int32 group = 4;</code>
- *
- * <pre>
- * floor index
- * </pre>
- */
- public Builder clearGroup() {
- bitField0_ = (bitField0_ & ~0x00000008);
- group_ = 0;
- onChanged();
- return this;
- }
- private int subgroup_ ;
- /**
- * <code>optional int32 subgroup = 5;</code>
- *
- * <pre>
- * room index
- * </pre>
- */
- public boolean hasSubgroup() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>optional int32 subgroup = 5;</code>
- *
- * <pre>
- * room index
- * </pre>
- */
- public int getSubgroup() {
- return subgroup_;
- }
- /**
- * <code>optional int32 subgroup = 5;</code>
- *
- * <pre>
- * room index
- * </pre>
- */
- public Builder setSubgroup(int value) {
- bitField0_ |= 0x00000010;
- subgroup_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional int32 subgroup = 5;</code>
- *
- * <pre>
- * room index
- * </pre>
- */
- public Builder clearSubgroup() {
- bitField0_ = (bitField0_ & ~0x00000010);
- subgroup_ = 0;
- onChanged();
- return this;
- }
- private java.util.List<Integer> visibles_ = java.util.Collections.emptyList();
- private void ensureVisiblesIsMutable() {
- if (!((bitField0_ & 0x00000020) == 0x00000020)) {
- visibles_ = new java.util.ArrayList<Integer>(visibles_);
- bitField0_ |= 0x00000020;
- }
- }
- /**
- * <code>repeated int32 visibles = 6;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public java.util.List<Integer>
- getVisiblesList() {
- return java.util.Collections.unmodifiableList(visibles_);
- }
- /**
- * <code>repeated int32 visibles = 6;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public int getVisiblesCount() {
- return visibles_.size();
- }
- /**
- * <code>repeated int32 visibles = 6;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public int getVisibles(int index) {
- return visibles_.get(index);
- }
- /**
- * <code>repeated int32 visibles = 6;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public Builder setVisibles(
- int index, int value) {
- ensureVisiblesIsMutable();
- visibles_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated int32 visibles = 6;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public Builder addVisibles(int value) {
- ensureVisiblesIsMutable();
- visibles_.add(value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated int32 visibles = 6;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public Builder addAllVisibles(
- Iterable<? extends Integer> values) {
- ensureVisiblesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, visibles_);
- onChanged();
- return this;
- }
- /**
- * <code>repeated int32 visibles = 6;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public Builder clearVisibles() {
- visibles_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000020);
- onChanged();
- return this;
- }
- private java.util.List<Float> scores_ = java.util.Collections.emptyList();
- private void ensureScoresIsMutable() {
- if (!((bitField0_ & 0x00000040) == 0x00000040)) {
- scores_ = new java.util.ArrayList<Float>(scores_);
- bitField0_ |= 0x00000040;
- }
- }
- /**
- * <code>repeated float scores = 7;</code>
- *
- * <pre>
- * used as part of scoring function for determining which puck to go to next
- * </pre>
- */
- public java.util.List<Float>
- getScoresList() {
- return java.util.Collections.unmodifiableList(scores_);
- }
- /**
- * <code>repeated float scores = 7;</code>
- *
- * <pre>
- * used as part of scoring function for determining which puck to go to next
- * </pre>
- */
- public int getScoresCount() {
- return scores_.size();
- }
- /**
- * <code>repeated float scores = 7;</code>
- *
- * <pre>
- * used as part of scoring function for determining which puck to go to next
- * </pre>
- */
- public float getScores(int index) {
- return scores_.get(index);
- }
- /**
- * <code>repeated float scores = 7;</code>
- *
- * <pre>
- * used as part of scoring function for determining which puck to go to next
- * </pre>
- */
- public Builder setScores(
- int index, float value) {
- ensureScoresIsMutable();
- scores_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated float scores = 7;</code>
- *
- * <pre>
- * used as part of scoring function for determining which puck to go to next
- * </pre>
- */
- public Builder addScores(float value) {
- ensureScoresIsMutable();
- scores_.add(value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated float scores = 7;</code>
- *
- * <pre>
- * used as part of scoring function for determining which puck to go to next
- * </pre>
- */
- public Builder addAllScores(
- Iterable<? extends Float> values) {
- ensureScoresIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, scores_);
- onChanged();
- return this;
- }
- /**
- * <code>repeated float scores = 7;</code>
- *
- * <pre>
- * used as part of scoring function for determining which puck to go to next
- * </pre>
- */
- public Builder clearScores() {
- scores_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
- onChanged();
- return this;
- }
- private java.util.List<Integer> visibles2_ = java.util.Collections.emptyList();
- private void ensureVisibles2IsMutable() {
- if (!((bitField0_ & 0x00000080) == 0x00000080)) {
- visibles2_ = new java.util.ArrayList<Integer>(visibles2_);
- bitField0_ |= 0x00000080;
- }
- }
- /**
- * <code>repeated int32 visibles2 = 8;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public java.util.List<Integer>
- getVisibles2List() {
- return java.util.Collections.unmodifiableList(visibles2_);
- }
- /**
- * <code>repeated int32 visibles2 = 8;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public int getVisibles2Count() {
- return visibles2_.size();
- }
- /**
- * <code>repeated int32 visibles2 = 8;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public int getVisibles2(int index) {
- return visibles2_.get(index);
- }
- /**
- * <code>repeated int32 visibles2 = 8;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public Builder setVisibles2(
- int index, int value) {
- ensureVisibles2IsMutable();
- visibles2_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated int32 visibles2 = 8;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public Builder addVisibles2(int value) {
- ensureVisibles2IsMutable();
- visibles2_.add(value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated int32 visibles2 = 8;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public Builder addAllVisibles2(
- Iterable<? extends Integer> values) {
- ensureVisibles2IsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, visibles2_);
- onChanged();
- return this;
- }
- /**
- * <code>repeated int32 visibles2 = 8;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public Builder clearVisibles2() {
- visibles2_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000080);
- onChanged();
- return this;
- }
- private java.util.List<Integer> visibles3_ = java.util.Collections.emptyList();
- private void ensureVisibles3IsMutable() {
- if (!((bitField0_ & 0x00000100) == 0x00000100)) {
- visibles3_ = new java.util.ArrayList<Integer>(visibles3_);
- bitField0_ |= 0x00000100;
- }
- }
- /**
- * <code>repeated int32 visibles3 = 9;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public java.util.List<Integer>
- getVisibles3List() {
- return java.util.Collections.unmodifiableList(visibles3_);
- }
- /**
- * <code>repeated int32 visibles3 = 9;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public int getVisibles3Count() {
- return visibles3_.size();
- }
- /**
- * <code>repeated int32 visibles3 = 9;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public int getVisibles3(int index) {
- return visibles3_.get(index);
- }
- /**
- * <code>repeated int32 visibles3 = 9;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public Builder setVisibles3(
- int index, int value) {
- ensureVisibles3IsMutable();
- visibles3_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated int32 visibles3 = 9;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public Builder addVisibles3(int value) {
- ensureVisibles3IsMutable();
- visibles3_.add(value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated int32 visibles3 = 9;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public Builder addAllVisibles3(
- Iterable<? extends Integer> values) {
- ensureVisibles3IsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, visibles3_);
- onChanged();
- return this;
- }
- /**
- * <code>repeated int32 visibles3 = 9;</code>
- *
- * <pre>
- * list of indices to all pucks visible from this puck
- * </pre>
- */
- public Builder clearVisibles3() {
- visibles3_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
- onChanged();
- return this;
- }
- // @@protoc_insertion_point(builder_scope:tutorial.SweepLocation)
- }
- static {
- defaultInstance = new SweepLocation(true);
- defaultInstance.initFields();
- }
- // @@protoc_insertion_point(class_scope:tutorial.SweepLocation)
- }
- public interface NavigationInfoOrBuilder extends
- // @@protoc_insertion_point(interface_extends:tutorial.NavigationInfo)
- com.google.protobuf.MessageOrBuilder {
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- java.util.List<SweepLocation>
- getSweepLocationsList();
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- SweepLocation getSweepLocations(int index);
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- int getSweepLocationsCount();
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- // java.util.List<? extends SweepLocationOrBuilder>
- // getSweepLocationsOrBuilderList();
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- SweepLocationOrBuilder getSweepLocationsOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code tutorial.NavigationInfo}
- *
- * <pre>
- * All pucks in a model. Pucks are stored in scanning order.
- * </pre>
- */
- public static final class NavigationInfo extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:tutorial.NavigationInfo)
- NavigationInfoOrBuilder {
- // Use NavigationInfo.newBuilder() to construct.
- private NavigationInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private NavigationInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final NavigationInfo defaultInstance;
- public static NavigationInfo getDefaultInstance() {
- return defaultInstance;
- }
- public NavigationInfo getDefaultInstanceForType() {
- return defaultInstance;
- }
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private NavigationInfo(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- sweepLocations_ = new java.util.ArrayList<SweepLocation>();
- mutable_bitField0_ |= 0x00000001;
- }
- sweepLocations_.add(input.readMessage(SweepLocation.PARSER, extensionRegistry));
- break;
- }
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- sweepLocations_ = java.util.Collections.unmodifiableList(sweepLocations_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Common.internal_static_tutorial_NavigationInfo_descriptor;
- }
- protected FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Common.internal_static_tutorial_NavigationInfo_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- NavigationInfo.class, Builder.class);
- }
- public static com.google.protobuf.Parser<NavigationInfo> PARSER =
- new com.google.protobuf.AbstractParser<NavigationInfo>() {
- public NavigationInfo parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new NavigationInfo(input, extensionRegistry);
- }
- };
- @Override
- public com.google.protobuf.Parser<NavigationInfo> getParserForType() {
- return PARSER;
- }
- public static final int SWEEPLOCATIONS_FIELD_NUMBER = 1;
- private java.util.List<SweepLocation> sweepLocations_;
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public java.util.List<SweepLocation> getSweepLocationsList() {
- return sweepLocations_;
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- // public java.util.List<? extends SweepLocationOrBuilder>
- // getSweepLocationsOrBuilderList() {
- // return sweepLocations_;
- // }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public int getSweepLocationsCount() {
- return sweepLocations_.size();
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public SweepLocation getSweepLocations(int index) {
- return sweepLocations_.get(index);
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public SweepLocationOrBuilder getSweepLocationsOrBuilder(
- int index) {
- return sweepLocations_.get(index);
- }
- private void initFields() {
- sweepLocations_ = java.util.Collections.emptyList();
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
- memoizedIsInitialized = 1;
- return true;
- }
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- for (int i = 0; i < sweepLocations_.size(); i++) {
- output.writeMessage(1, sweepLocations_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- for (int i = 0; i < sweepLocations_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, sweepLocations_.get(i));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
- private static final long serialVersionUID = 0L;
- @Override
- protected Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
- public static NavigationInfo parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static NavigationInfo parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static NavigationInfo parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static NavigationInfo parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static NavigationInfo parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static NavigationInfo parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static NavigationInfo parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static NavigationInfo parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static NavigationInfo parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static NavigationInfo parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(NavigationInfo prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code tutorial.NavigationInfo}
- *
- * <pre>
- * All pucks in a model. Pucks are stored in scanning order.
- * </pre>
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:tutorial.NavigationInfo)
- NavigationInfoOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return Common.internal_static_tutorial_NavigationInfo_descriptor;
- }
- protected FieldAccessorTable
- internalGetFieldAccessorTable() {
- return Common.internal_static_tutorial_NavigationInfo_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- NavigationInfo.class, Builder.class);
- }
- // Construct using com.fdkankan.common.proto.Common.NavigationInfo.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
- private Builder(
- BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getSweepLocationsFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
- public Builder clear() {
- super.clear();
- if (sweepLocationsBuilder_ == null) {
- sweepLocations_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- sweepLocationsBuilder_.clear();
- }
- return this;
- }
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return Common.internal_static_tutorial_NavigationInfo_descriptor;
- }
- public NavigationInfo getDefaultInstanceForType() {
- return NavigationInfo.getDefaultInstance();
- }
- public NavigationInfo build() {
- NavigationInfo result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
- public NavigationInfo buildPartial() {
- NavigationInfo result = new NavigationInfo(this);
- int from_bitField0_ = bitField0_;
- if (sweepLocationsBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- sweepLocations_ = java.util.Collections.unmodifiableList(sweepLocations_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.sweepLocations_ = sweepLocations_;
- } else {
- result.sweepLocations_ = sweepLocationsBuilder_.build();
- }
- onBuilt();
- return result;
- }
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof NavigationInfo) {
- return mergeFrom((NavigationInfo)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(NavigationInfo other) {
- if (other == NavigationInfo.getDefaultInstance()) return this;
- if (sweepLocationsBuilder_ == null) {
- if (!other.sweepLocations_.isEmpty()) {
- if (sweepLocations_.isEmpty()) {
- sweepLocations_ = other.sweepLocations_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensureSweepLocationsIsMutable();
- sweepLocations_.addAll(other.sweepLocations_);
- }
- onChanged();
- }
- } else {
- if (!other.sweepLocations_.isEmpty()) {
- if (sweepLocationsBuilder_.isEmpty()) {
- sweepLocationsBuilder_.dispose();
- sweepLocationsBuilder_ = null;
- sweepLocations_ = other.sweepLocations_;
- bitField0_ = (bitField0_ & ~0x00000001);
- sweepLocationsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getSweepLocationsFieldBuilder() : null;
- } else {
- sweepLocationsBuilder_.addAllMessages(other.sweepLocations_);
- }
- }
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
- public final boolean isInitialized() {
- return true;
- }
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- NavigationInfo parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (NavigationInfo) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
- private java.util.List<SweepLocation> sweepLocations_ =
- java.util.Collections.emptyList();
- private void ensureSweepLocationsIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
- sweepLocations_ = new java.util.ArrayList<SweepLocation>(sweepLocations_);
- bitField0_ |= 0x00000001;
- }
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- SweepLocation, SweepLocation.Builder, SweepLocationOrBuilder> sweepLocationsBuilder_;
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public java.util.List<SweepLocation> getSweepLocationsList() {
- if (sweepLocationsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(sweepLocations_);
- } else {
- return sweepLocationsBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public int getSweepLocationsCount() {
- if (sweepLocationsBuilder_ == null) {
- return sweepLocations_.size();
- } else {
- return sweepLocationsBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public SweepLocation getSweepLocations(int index) {
- if (sweepLocationsBuilder_ == null) {
- return sweepLocations_.get(index);
- } else {
- return sweepLocationsBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public Builder setSweepLocations(
- int index, SweepLocation value) {
- if (sweepLocationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSweepLocationsIsMutable();
- sweepLocations_.set(index, value);
- onChanged();
- } else {
- sweepLocationsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public Builder setSweepLocations(
- int index, SweepLocation.Builder builderForValue) {
- if (sweepLocationsBuilder_ == null) {
- ensureSweepLocationsIsMutable();
- sweepLocations_.set(index, builderForValue.build());
- onChanged();
- } else {
- sweepLocationsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public Builder addSweepLocations(SweepLocation value) {
- if (sweepLocationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSweepLocationsIsMutable();
- sweepLocations_.add(value);
- onChanged();
- } else {
- sweepLocationsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public Builder addSweepLocations(
- int index, SweepLocation value) {
- if (sweepLocationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSweepLocationsIsMutable();
- sweepLocations_.add(index, value);
- onChanged();
- } else {
- sweepLocationsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public Builder addSweepLocations(
- SweepLocation.Builder builderForValue) {
- if (sweepLocationsBuilder_ == null) {
- ensureSweepLocationsIsMutable();
- sweepLocations_.add(builderForValue.build());
- onChanged();
- } else {
- sweepLocationsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public Builder addSweepLocations(
- int index, SweepLocation.Builder builderForValue) {
- if (sweepLocationsBuilder_ == null) {
- ensureSweepLocationsIsMutable();
- sweepLocations_.add(index, builderForValue.build());
- onChanged();
- } else {
- sweepLocationsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public Builder addAllSweepLocations(
- Iterable<? extends SweepLocation> values) {
- if (sweepLocationsBuilder_ == null) {
- ensureSweepLocationsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, sweepLocations_);
- onChanged();
- } else {
- sweepLocationsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public Builder clearSweepLocations() {
- if (sweepLocationsBuilder_ == null) {
- sweepLocations_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- sweepLocationsBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public Builder removeSweepLocations(int index) {
- if (sweepLocationsBuilder_ == null) {
- ensureSweepLocationsIsMutable();
- sweepLocations_.remove(index);
- onChanged();
- } else {
- sweepLocationsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public SweepLocation.Builder getSweepLocationsBuilder(
- int index) {
- return getSweepLocationsFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public SweepLocationOrBuilder getSweepLocationsOrBuilder(
- int index) {
- if (sweepLocationsBuilder_ == null) {
- return sweepLocations_.get(index); } else {
- return sweepLocationsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- // public java.util.List<? extends SweepLocationOrBuilder>
- // getSweepLocationsOrBuilderList() {
- // if (sweepLocationsBuilder_ != null) {
- // return sweepLocationsBuilder_.getMessageOrBuilderList();
- // } else {
- // return java.util.Collections.unmodifiableList(sweepLocations_);
- // }
- // }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public SweepLocation.Builder addSweepLocationsBuilder() {
- return getSweepLocationsFieldBuilder().addBuilder(
- SweepLocation.getDefaultInstance());
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public SweepLocation.Builder addSweepLocationsBuilder(
- int index) {
- return getSweepLocationsFieldBuilder().addBuilder(
- index, SweepLocation.getDefaultInstance());
- }
- /**
- * <code>repeated .tutorial.SweepLocation sweepLocations = 1;</code>
- */
- public java.util.List<SweepLocation.Builder>
- getSweepLocationsBuilderList() {
- return getSweepLocationsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- SweepLocation, SweepLocation.Builder, SweepLocationOrBuilder>
- getSweepLocationsFieldBuilder() {
- if (sweepLocationsBuilder_ == null) {
- sweepLocationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- SweepLocation, SweepLocation.Builder, SweepLocationOrBuilder>(
- sweepLocations_,
- ((bitField0_ & 0x00000001) == 0x00000001),
- getParentForChildren(),
- isClean());
- sweepLocations_ = null;
- }
- return sweepLocationsBuilder_;
- }
- // @@protoc_insertion_point(builder_scope:tutorial.NavigationInfo)
- }
- static {
- defaultInstance = new NavigationInfo(true);
- defaultInstance.initFields();
- }
- // @@protoc_insertion_point(class_scope:tutorial.NavigationInfo)
- }
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tutorial_Affine3f_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_tutorial_Affine3f_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tutorial_Quaternionf_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_tutorial_Quaternionf_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tutorial_Vector3f_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_tutorial_Vector3f_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tutorial_SweepLocation_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_tutorial_SweepLocation_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_tutorial_NavigationInfo_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_tutorial_NavigationInfo_fieldAccessorTable;
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- String[] descriptorData = {
- "\n\014Common.proto\022\010tutorial\"\\\n\010Affine3f\022\'\n\010" +
- "rotation\030\001 \001(\0132\025.tutorial.Quaternionf\022\'\n" +
- "\013translation\030\002 \001(\0132\022.tutorial.Vector3f\"9" +
- "\n\013Quaternionf\022\t\n\001w\030\001 \001(\002\022\t\n\001x\030\002 \001(\002\022\t\n\001y" +
- "\030\003 \001(\002\022\t\n\001z\030\004 \001(\002\"+\n\010Vector3f\022\t\n\001x\030\001 \001(\002" +
- "\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002\"\312\001\n\rSweepLocation" +
- "\022\014\n\004uuid\030\001 \001(\014\022 \n\004pose\030\002 \001(\0132\022.tutorial." +
- "Affine3f\022 \n\004puck\030\003 \001(\0132\022.tutorial.Vector" +
- "3f\022\r\n\005group\030\004 \001(\005\022\020\n\010subgroup\030\005 \001(\005\022\020\n\010v" +
- "isibles\030\006 \003(\005\022\016\n\006scores\030\007 \003(\002\022\021\n\tvisible",
- "s2\030\010 \003(\005\022\021\n\tvisibles3\030\t \003(\005\"A\n\016Navigatio" +
- "nInfo\022/\n\016sweepLocations\030\001 \003(\0132\027.tutorial" +
- ".SweepLocationB\035\n\023com.fdage.web.protoB\006c" +
- "ommon"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- }, assigner);
- internal_static_tutorial_Affine3f_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_tutorial_Affine3f_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_tutorial_Affine3f_descriptor,
- new String[] { "Rotation", "Translation", });
- internal_static_tutorial_Quaternionf_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_tutorial_Quaternionf_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_tutorial_Quaternionf_descriptor,
- new String[] { "W", "X", "Y", "Z", });
- internal_static_tutorial_Vector3f_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_tutorial_Vector3f_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_tutorial_Vector3f_descriptor,
- new String[] { "X", "Y", "Z", });
- internal_static_tutorial_SweepLocation_descriptor =
- getDescriptor().getMessageTypes().get(3);
- internal_static_tutorial_SweepLocation_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_tutorial_SweepLocation_descriptor,
- new String[] { "Uuid", "Pose", "Puck", "Group", "Subgroup", "Visibles", "Scores", "Visibles2", "Visibles3", });
- internal_static_tutorial_NavigationInfo_descriptor =
- getDescriptor().getMessageTypes().get(4);
- internal_static_tutorial_NavigationInfo_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_tutorial_NavigationInfo_descriptor,
- new String[] { "SweepLocations", });
- }
- // @@protoc_insertion_point(outer_class_scope)
- }
|