google-earth-dbroot-parser.js 413 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020
  1. (() => {
  2. // packages/engine/Source/ThirdParty/google-earth-dbroot-parser.js
  3. window.cesiumGoogleEarthDbRootParser = function($protobuf) {
  4. "use strict";
  5. var $Reader = $protobuf.Reader, $util = $protobuf.util;
  6. var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
  7. $root.keyhole = function() {
  8. var keyhole = {};
  9. keyhole.dbroot = function() {
  10. var dbroot = {};
  11. dbroot.StringEntryProto = function() {
  12. function StringEntryProto(properties) {
  13. if (properties) {
  14. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  15. if (properties[keys[i]] != null)
  16. this[keys[i]] = properties[keys[i]];
  17. }
  18. }
  19. StringEntryProto.prototype.stringId = 0;
  20. StringEntryProto.prototype.stringValue = "";
  21. StringEntryProto.decode = function decode(reader, length) {
  22. if (!(reader instanceof $Reader))
  23. reader = $Reader.create(reader);
  24. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.StringEntryProto();
  25. while (reader.pos < end) {
  26. var tag = reader.uint32();
  27. switch (tag >>> 3) {
  28. case 1: {
  29. message.stringId = reader.fixed32();
  30. break;
  31. }
  32. case 2: {
  33. message.stringValue = reader.string();
  34. break;
  35. }
  36. default:
  37. reader.skipType(tag & 7);
  38. break;
  39. }
  40. }
  41. if (!message.hasOwnProperty("stringId"))
  42. throw $util.ProtocolError("missing required 'stringId'", { instance: message });
  43. if (!message.hasOwnProperty("stringValue"))
  44. throw $util.ProtocolError("missing required 'stringValue'", { instance: message });
  45. return message;
  46. };
  47. StringEntryProto.verify = function verify(message) {
  48. if (typeof message !== "object" || message === null)
  49. return "object expected";
  50. if (!$util.isInteger(message.stringId))
  51. return "stringId: integer expected";
  52. if (!$util.isString(message.stringValue))
  53. return "stringValue: string expected";
  54. return null;
  55. };
  56. StringEntryProto.fromObject = function fromObject(object) {
  57. if (object instanceof $root.keyhole.dbroot.StringEntryProto)
  58. return object;
  59. var message = new $root.keyhole.dbroot.StringEntryProto();
  60. if (object.stringId != null)
  61. message.stringId = object.stringId >>> 0;
  62. if (object.stringValue != null)
  63. message.stringValue = String(object.stringValue);
  64. return message;
  65. };
  66. StringEntryProto.toObject = function toObject(message, options) {
  67. if (!options)
  68. options = {};
  69. var object = {};
  70. if (options.defaults) {
  71. object.stringId = 0;
  72. object.stringValue = "";
  73. }
  74. if (message.stringId != null && message.hasOwnProperty("stringId"))
  75. object.stringId = message.stringId;
  76. if (message.stringValue != null && message.hasOwnProperty("stringValue"))
  77. object.stringValue = message.stringValue;
  78. return object;
  79. };
  80. StringEntryProto.prototype.toJSON = function toJSON() {
  81. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  82. };
  83. StringEntryProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  84. if (typeUrlPrefix === void 0) {
  85. typeUrlPrefix = "type.googleapis.com";
  86. }
  87. return typeUrlPrefix + "/keyhole.dbroot.StringEntryProto";
  88. };
  89. return StringEntryProto;
  90. }();
  91. dbroot.StringIdOrValueProto = function() {
  92. function StringIdOrValueProto(properties) {
  93. if (properties) {
  94. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  95. if (properties[keys[i]] != null)
  96. this[keys[i]] = properties[keys[i]];
  97. }
  98. }
  99. StringIdOrValueProto.prototype.stringId = 0;
  100. StringIdOrValueProto.prototype.value = "";
  101. StringIdOrValueProto.decode = function decode(reader, length) {
  102. if (!(reader instanceof $Reader))
  103. reader = $Reader.create(reader);
  104. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.StringIdOrValueProto();
  105. while (reader.pos < end) {
  106. var tag = reader.uint32();
  107. switch (tag >>> 3) {
  108. case 1: {
  109. message.stringId = reader.fixed32();
  110. break;
  111. }
  112. case 2: {
  113. message.value = reader.string();
  114. break;
  115. }
  116. default:
  117. reader.skipType(tag & 7);
  118. break;
  119. }
  120. }
  121. return message;
  122. };
  123. StringIdOrValueProto.verify = function verify(message) {
  124. if (typeof message !== "object" || message === null)
  125. return "object expected";
  126. if (message.stringId != null && message.hasOwnProperty("stringId")) {
  127. if (!$util.isInteger(message.stringId))
  128. return "stringId: integer expected";
  129. }
  130. if (message.value != null && message.hasOwnProperty("value")) {
  131. if (!$util.isString(message.value))
  132. return "value: string expected";
  133. }
  134. return null;
  135. };
  136. StringIdOrValueProto.fromObject = function fromObject(object) {
  137. if (object instanceof $root.keyhole.dbroot.StringIdOrValueProto)
  138. return object;
  139. var message = new $root.keyhole.dbroot.StringIdOrValueProto();
  140. if (object.stringId != null)
  141. message.stringId = object.stringId >>> 0;
  142. if (object.value != null)
  143. message.value = String(object.value);
  144. return message;
  145. };
  146. StringIdOrValueProto.toObject = function toObject(message, options) {
  147. if (!options)
  148. options = {};
  149. var object = {};
  150. if (options.defaults) {
  151. object.stringId = 0;
  152. object.value = "";
  153. }
  154. if (message.stringId != null && message.hasOwnProperty("stringId"))
  155. object.stringId = message.stringId;
  156. if (message.value != null && message.hasOwnProperty("value"))
  157. object.value = message.value;
  158. return object;
  159. };
  160. StringIdOrValueProto.prototype.toJSON = function toJSON() {
  161. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  162. };
  163. StringIdOrValueProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  164. if (typeUrlPrefix === void 0) {
  165. typeUrlPrefix = "type.googleapis.com";
  166. }
  167. return typeUrlPrefix + "/keyhole.dbroot.StringIdOrValueProto";
  168. };
  169. return StringIdOrValueProto;
  170. }();
  171. dbroot.PlanetModelProto = function() {
  172. function PlanetModelProto(properties) {
  173. if (properties) {
  174. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  175. if (properties[keys[i]] != null)
  176. this[keys[i]] = properties[keys[i]];
  177. }
  178. }
  179. PlanetModelProto.prototype.radius = 6378.137;
  180. PlanetModelProto.prototype.flattening = 0.00335281066474748;
  181. PlanetModelProto.prototype.elevationBias = 0;
  182. PlanetModelProto.prototype.negativeAltitudeExponentBias = 0;
  183. PlanetModelProto.prototype.compressedNegativeAltitudeThreshold = 0;
  184. PlanetModelProto.decode = function decode(reader, length) {
  185. if (!(reader instanceof $Reader))
  186. reader = $Reader.create(reader);
  187. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.PlanetModelProto();
  188. while (reader.pos < end) {
  189. var tag = reader.uint32();
  190. switch (tag >>> 3) {
  191. case 1: {
  192. message.radius = reader.double();
  193. break;
  194. }
  195. case 2: {
  196. message.flattening = reader.double();
  197. break;
  198. }
  199. case 4: {
  200. message.elevationBias = reader.double();
  201. break;
  202. }
  203. case 5: {
  204. message.negativeAltitudeExponentBias = reader.int32();
  205. break;
  206. }
  207. case 6: {
  208. message.compressedNegativeAltitudeThreshold = reader.double();
  209. break;
  210. }
  211. default:
  212. reader.skipType(tag & 7);
  213. break;
  214. }
  215. }
  216. return message;
  217. };
  218. PlanetModelProto.verify = function verify(message) {
  219. if (typeof message !== "object" || message === null)
  220. return "object expected";
  221. if (message.radius != null && message.hasOwnProperty("radius")) {
  222. if (typeof message.radius !== "number")
  223. return "radius: number expected";
  224. }
  225. if (message.flattening != null && message.hasOwnProperty("flattening")) {
  226. if (typeof message.flattening !== "number")
  227. return "flattening: number expected";
  228. }
  229. if (message.elevationBias != null && message.hasOwnProperty("elevationBias")) {
  230. if (typeof message.elevationBias !== "number")
  231. return "elevationBias: number expected";
  232. }
  233. if (message.negativeAltitudeExponentBias != null && message.hasOwnProperty("negativeAltitudeExponentBias")) {
  234. if (!$util.isInteger(message.negativeAltitudeExponentBias))
  235. return "negativeAltitudeExponentBias: integer expected";
  236. }
  237. if (message.compressedNegativeAltitudeThreshold != null && message.hasOwnProperty("compressedNegativeAltitudeThreshold")) {
  238. if (typeof message.compressedNegativeAltitudeThreshold !== "number")
  239. return "compressedNegativeAltitudeThreshold: number expected";
  240. }
  241. return null;
  242. };
  243. PlanetModelProto.fromObject = function fromObject(object) {
  244. if (object instanceof $root.keyhole.dbroot.PlanetModelProto)
  245. return object;
  246. var message = new $root.keyhole.dbroot.PlanetModelProto();
  247. if (object.radius != null)
  248. message.radius = Number(object.radius);
  249. if (object.flattening != null)
  250. message.flattening = Number(object.flattening);
  251. if (object.elevationBias != null)
  252. message.elevationBias = Number(object.elevationBias);
  253. if (object.negativeAltitudeExponentBias != null)
  254. message.negativeAltitudeExponentBias = object.negativeAltitudeExponentBias | 0;
  255. if (object.compressedNegativeAltitudeThreshold != null)
  256. message.compressedNegativeAltitudeThreshold = Number(object.compressedNegativeAltitudeThreshold);
  257. return message;
  258. };
  259. PlanetModelProto.toObject = function toObject(message, options) {
  260. if (!options)
  261. options = {};
  262. var object = {};
  263. if (options.defaults) {
  264. object.radius = 6378.137;
  265. object.flattening = 0.00335281066474748;
  266. object.elevationBias = 0;
  267. object.negativeAltitudeExponentBias = 0;
  268. object.compressedNegativeAltitudeThreshold = 0;
  269. }
  270. if (message.radius != null && message.hasOwnProperty("radius"))
  271. object.radius = options.json && !isFinite(message.radius) ? String(message.radius) : message.radius;
  272. if (message.flattening != null && message.hasOwnProperty("flattening"))
  273. object.flattening = options.json && !isFinite(message.flattening) ? String(message.flattening) : message.flattening;
  274. if (message.elevationBias != null && message.hasOwnProperty("elevationBias"))
  275. object.elevationBias = options.json && !isFinite(message.elevationBias) ? String(message.elevationBias) : message.elevationBias;
  276. if (message.negativeAltitudeExponentBias != null && message.hasOwnProperty("negativeAltitudeExponentBias"))
  277. object.negativeAltitudeExponentBias = message.negativeAltitudeExponentBias;
  278. if (message.compressedNegativeAltitudeThreshold != null && message.hasOwnProperty("compressedNegativeAltitudeThreshold"))
  279. object.compressedNegativeAltitudeThreshold = options.json && !isFinite(message.compressedNegativeAltitudeThreshold) ? String(message.compressedNegativeAltitudeThreshold) : message.compressedNegativeAltitudeThreshold;
  280. return object;
  281. };
  282. PlanetModelProto.prototype.toJSON = function toJSON() {
  283. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  284. };
  285. PlanetModelProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  286. if (typeUrlPrefix === void 0) {
  287. typeUrlPrefix = "type.googleapis.com";
  288. }
  289. return typeUrlPrefix + "/keyhole.dbroot.PlanetModelProto";
  290. };
  291. return PlanetModelProto;
  292. }();
  293. dbroot.ProviderInfoProto = function() {
  294. function ProviderInfoProto(properties) {
  295. if (properties) {
  296. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  297. if (properties[keys[i]] != null)
  298. this[keys[i]] = properties[keys[i]];
  299. }
  300. }
  301. ProviderInfoProto.prototype.providerId = 0;
  302. ProviderInfoProto.prototype.copyrightString = null;
  303. ProviderInfoProto.prototype.verticalPixelOffset = -1;
  304. ProviderInfoProto.decode = function decode(reader, length) {
  305. if (!(reader instanceof $Reader))
  306. reader = $Reader.create(reader);
  307. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.ProviderInfoProto();
  308. while (reader.pos < end) {
  309. var tag = reader.uint32();
  310. switch (tag >>> 3) {
  311. case 1: {
  312. message.providerId = reader.int32();
  313. break;
  314. }
  315. case 2: {
  316. message.copyrightString = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  317. break;
  318. }
  319. case 3: {
  320. message.verticalPixelOffset = reader.int32();
  321. break;
  322. }
  323. default:
  324. reader.skipType(tag & 7);
  325. break;
  326. }
  327. }
  328. if (!message.hasOwnProperty("providerId"))
  329. throw $util.ProtocolError("missing required 'providerId'", { instance: message });
  330. return message;
  331. };
  332. ProviderInfoProto.verify = function verify(message) {
  333. if (typeof message !== "object" || message === null)
  334. return "object expected";
  335. if (!$util.isInteger(message.providerId))
  336. return "providerId: integer expected";
  337. if (message.copyrightString != null && message.hasOwnProperty("copyrightString")) {
  338. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.copyrightString);
  339. if (error)
  340. return "copyrightString." + error;
  341. }
  342. if (message.verticalPixelOffset != null && message.hasOwnProperty("verticalPixelOffset")) {
  343. if (!$util.isInteger(message.verticalPixelOffset))
  344. return "verticalPixelOffset: integer expected";
  345. }
  346. return null;
  347. };
  348. ProviderInfoProto.fromObject = function fromObject(object) {
  349. if (object instanceof $root.keyhole.dbroot.ProviderInfoProto)
  350. return object;
  351. var message = new $root.keyhole.dbroot.ProviderInfoProto();
  352. if (object.providerId != null)
  353. message.providerId = object.providerId | 0;
  354. if (object.copyrightString != null) {
  355. if (typeof object.copyrightString !== "object")
  356. throw TypeError(".keyhole.dbroot.ProviderInfoProto.copyrightString: object expected");
  357. message.copyrightString = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.copyrightString);
  358. }
  359. if (object.verticalPixelOffset != null)
  360. message.verticalPixelOffset = object.verticalPixelOffset | 0;
  361. return message;
  362. };
  363. ProviderInfoProto.toObject = function toObject(message, options) {
  364. if (!options)
  365. options = {};
  366. var object = {};
  367. if (options.defaults) {
  368. object.providerId = 0;
  369. object.copyrightString = null;
  370. object.verticalPixelOffset = -1;
  371. }
  372. if (message.providerId != null && message.hasOwnProperty("providerId"))
  373. object.providerId = message.providerId;
  374. if (message.copyrightString != null && message.hasOwnProperty("copyrightString"))
  375. object.copyrightString = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.copyrightString, options);
  376. if (message.verticalPixelOffset != null && message.hasOwnProperty("verticalPixelOffset"))
  377. object.verticalPixelOffset = message.verticalPixelOffset;
  378. return object;
  379. };
  380. ProviderInfoProto.prototype.toJSON = function toJSON() {
  381. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  382. };
  383. ProviderInfoProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  384. if (typeUrlPrefix === void 0) {
  385. typeUrlPrefix = "type.googleapis.com";
  386. }
  387. return typeUrlPrefix + "/keyhole.dbroot.ProviderInfoProto";
  388. };
  389. return ProviderInfoProto;
  390. }();
  391. dbroot.PopUpProto = function() {
  392. function PopUpProto(properties) {
  393. if (properties) {
  394. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  395. if (properties[keys[i]] != null)
  396. this[keys[i]] = properties[keys[i]];
  397. }
  398. }
  399. PopUpProto.prototype.isBalloonStyle = false;
  400. PopUpProto.prototype.text = null;
  401. PopUpProto.prototype.backgroundColorAbgr = 4294967295;
  402. PopUpProto.prototype.textColorAbgr = 4278190080;
  403. PopUpProto.decode = function decode(reader, length) {
  404. if (!(reader instanceof $Reader))
  405. reader = $Reader.create(reader);
  406. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.PopUpProto();
  407. while (reader.pos < end) {
  408. var tag = reader.uint32();
  409. switch (tag >>> 3) {
  410. case 1: {
  411. message.isBalloonStyle = reader.bool();
  412. break;
  413. }
  414. case 2: {
  415. message.text = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  416. break;
  417. }
  418. case 3: {
  419. message.backgroundColorAbgr = reader.fixed32();
  420. break;
  421. }
  422. case 4: {
  423. message.textColorAbgr = reader.fixed32();
  424. break;
  425. }
  426. default:
  427. reader.skipType(tag & 7);
  428. break;
  429. }
  430. }
  431. return message;
  432. };
  433. PopUpProto.verify = function verify(message) {
  434. if (typeof message !== "object" || message === null)
  435. return "object expected";
  436. if (message.isBalloonStyle != null && message.hasOwnProperty("isBalloonStyle")) {
  437. if (typeof message.isBalloonStyle !== "boolean")
  438. return "isBalloonStyle: boolean expected";
  439. }
  440. if (message.text != null && message.hasOwnProperty("text")) {
  441. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.text);
  442. if (error)
  443. return "text." + error;
  444. }
  445. if (message.backgroundColorAbgr != null && message.hasOwnProperty("backgroundColorAbgr")) {
  446. if (!$util.isInteger(message.backgroundColorAbgr))
  447. return "backgroundColorAbgr: integer expected";
  448. }
  449. if (message.textColorAbgr != null && message.hasOwnProperty("textColorAbgr")) {
  450. if (!$util.isInteger(message.textColorAbgr))
  451. return "textColorAbgr: integer expected";
  452. }
  453. return null;
  454. };
  455. PopUpProto.fromObject = function fromObject(object) {
  456. if (object instanceof $root.keyhole.dbroot.PopUpProto)
  457. return object;
  458. var message = new $root.keyhole.dbroot.PopUpProto();
  459. if (object.isBalloonStyle != null)
  460. message.isBalloonStyle = Boolean(object.isBalloonStyle);
  461. if (object.text != null) {
  462. if (typeof object.text !== "object")
  463. throw TypeError(".keyhole.dbroot.PopUpProto.text: object expected");
  464. message.text = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.text);
  465. }
  466. if (object.backgroundColorAbgr != null)
  467. message.backgroundColorAbgr = object.backgroundColorAbgr >>> 0;
  468. if (object.textColorAbgr != null)
  469. message.textColorAbgr = object.textColorAbgr >>> 0;
  470. return message;
  471. };
  472. PopUpProto.toObject = function toObject(message, options) {
  473. if (!options)
  474. options = {};
  475. var object = {};
  476. if (options.defaults) {
  477. object.isBalloonStyle = false;
  478. object.text = null;
  479. object.backgroundColorAbgr = 4294967295;
  480. object.textColorAbgr = 4278190080;
  481. }
  482. if (message.isBalloonStyle != null && message.hasOwnProperty("isBalloonStyle"))
  483. object.isBalloonStyle = message.isBalloonStyle;
  484. if (message.text != null && message.hasOwnProperty("text"))
  485. object.text = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.text, options);
  486. if (message.backgroundColorAbgr != null && message.hasOwnProperty("backgroundColorAbgr"))
  487. object.backgroundColorAbgr = message.backgroundColorAbgr;
  488. if (message.textColorAbgr != null && message.hasOwnProperty("textColorAbgr"))
  489. object.textColorAbgr = message.textColorAbgr;
  490. return object;
  491. };
  492. PopUpProto.prototype.toJSON = function toJSON() {
  493. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  494. };
  495. PopUpProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  496. if (typeUrlPrefix === void 0) {
  497. typeUrlPrefix = "type.googleapis.com";
  498. }
  499. return typeUrlPrefix + "/keyhole.dbroot.PopUpProto";
  500. };
  501. return PopUpProto;
  502. }();
  503. dbroot.StyleAttributeProto = function() {
  504. function StyleAttributeProto(properties) {
  505. this.drawFlag = [];
  506. if (properties) {
  507. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  508. if (properties[keys[i]] != null)
  509. this[keys[i]] = properties[keys[i]];
  510. }
  511. }
  512. StyleAttributeProto.prototype.styleId = "";
  513. StyleAttributeProto.prototype.providerId = 0;
  514. StyleAttributeProto.prototype.polyColorAbgr = 4294967295;
  515. StyleAttributeProto.prototype.lineColorAbgr = 4294967295;
  516. StyleAttributeProto.prototype.lineWidth = 1;
  517. StyleAttributeProto.prototype.labelColorAbgr = 4294967295;
  518. StyleAttributeProto.prototype.labelScale = 1;
  519. StyleAttributeProto.prototype.placemarkIconColorAbgr = 4294967295;
  520. StyleAttributeProto.prototype.placemarkIconScale = 1;
  521. StyleAttributeProto.prototype.placemarkIconPath = null;
  522. StyleAttributeProto.prototype.placemarkIconX = 0;
  523. StyleAttributeProto.prototype.placemarkIconY = 0;
  524. StyleAttributeProto.prototype.placemarkIconWidth = 32;
  525. StyleAttributeProto.prototype.placemarkIconHeight = 32;
  526. StyleAttributeProto.prototype.popUp = null;
  527. StyleAttributeProto.prototype.drawFlag = $util.emptyArray;
  528. StyleAttributeProto.decode = function decode(reader, length) {
  529. if (!(reader instanceof $Reader))
  530. reader = $Reader.create(reader);
  531. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.StyleAttributeProto();
  532. while (reader.pos < end) {
  533. var tag = reader.uint32();
  534. switch (tag >>> 3) {
  535. case 1: {
  536. message.styleId = reader.string();
  537. break;
  538. }
  539. case 3: {
  540. message.providerId = reader.int32();
  541. break;
  542. }
  543. case 4: {
  544. message.polyColorAbgr = reader.fixed32();
  545. break;
  546. }
  547. case 5: {
  548. message.lineColorAbgr = reader.fixed32();
  549. break;
  550. }
  551. case 6: {
  552. message.lineWidth = reader.float();
  553. break;
  554. }
  555. case 7: {
  556. message.labelColorAbgr = reader.fixed32();
  557. break;
  558. }
  559. case 8: {
  560. message.labelScale = reader.float();
  561. break;
  562. }
  563. case 9: {
  564. message.placemarkIconColorAbgr = reader.fixed32();
  565. break;
  566. }
  567. case 10: {
  568. message.placemarkIconScale = reader.float();
  569. break;
  570. }
  571. case 11: {
  572. message.placemarkIconPath = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  573. break;
  574. }
  575. case 12: {
  576. message.placemarkIconX = reader.int32();
  577. break;
  578. }
  579. case 13: {
  580. message.placemarkIconY = reader.int32();
  581. break;
  582. }
  583. case 14: {
  584. message.placemarkIconWidth = reader.int32();
  585. break;
  586. }
  587. case 15: {
  588. message.placemarkIconHeight = reader.int32();
  589. break;
  590. }
  591. case 16: {
  592. message.popUp = $root.keyhole.dbroot.PopUpProto.decode(reader, reader.uint32());
  593. break;
  594. }
  595. case 17: {
  596. if (!(message.drawFlag && message.drawFlag.length))
  597. message.drawFlag = [];
  598. message.drawFlag.push($root.keyhole.dbroot.DrawFlagProto.decode(reader, reader.uint32()));
  599. break;
  600. }
  601. default:
  602. reader.skipType(tag & 7);
  603. break;
  604. }
  605. }
  606. if (!message.hasOwnProperty("styleId"))
  607. throw $util.ProtocolError("missing required 'styleId'", { instance: message });
  608. return message;
  609. };
  610. StyleAttributeProto.verify = function verify(message) {
  611. if (typeof message !== "object" || message === null)
  612. return "object expected";
  613. if (!$util.isString(message.styleId))
  614. return "styleId: string expected";
  615. if (message.providerId != null && message.hasOwnProperty("providerId")) {
  616. if (!$util.isInteger(message.providerId))
  617. return "providerId: integer expected";
  618. }
  619. if (message.polyColorAbgr != null && message.hasOwnProperty("polyColorAbgr")) {
  620. if (!$util.isInteger(message.polyColorAbgr))
  621. return "polyColorAbgr: integer expected";
  622. }
  623. if (message.lineColorAbgr != null && message.hasOwnProperty("lineColorAbgr")) {
  624. if (!$util.isInteger(message.lineColorAbgr))
  625. return "lineColorAbgr: integer expected";
  626. }
  627. if (message.lineWidth != null && message.hasOwnProperty("lineWidth")) {
  628. if (typeof message.lineWidth !== "number")
  629. return "lineWidth: number expected";
  630. }
  631. if (message.labelColorAbgr != null && message.hasOwnProperty("labelColorAbgr")) {
  632. if (!$util.isInteger(message.labelColorAbgr))
  633. return "labelColorAbgr: integer expected";
  634. }
  635. if (message.labelScale != null && message.hasOwnProperty("labelScale")) {
  636. if (typeof message.labelScale !== "number")
  637. return "labelScale: number expected";
  638. }
  639. if (message.placemarkIconColorAbgr != null && message.hasOwnProperty("placemarkIconColorAbgr")) {
  640. if (!$util.isInteger(message.placemarkIconColorAbgr))
  641. return "placemarkIconColorAbgr: integer expected";
  642. }
  643. if (message.placemarkIconScale != null && message.hasOwnProperty("placemarkIconScale")) {
  644. if (typeof message.placemarkIconScale !== "number")
  645. return "placemarkIconScale: number expected";
  646. }
  647. if (message.placemarkIconPath != null && message.hasOwnProperty("placemarkIconPath")) {
  648. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.placemarkIconPath);
  649. if (error)
  650. return "placemarkIconPath." + error;
  651. }
  652. if (message.placemarkIconX != null && message.hasOwnProperty("placemarkIconX")) {
  653. if (!$util.isInteger(message.placemarkIconX))
  654. return "placemarkIconX: integer expected";
  655. }
  656. if (message.placemarkIconY != null && message.hasOwnProperty("placemarkIconY")) {
  657. if (!$util.isInteger(message.placemarkIconY))
  658. return "placemarkIconY: integer expected";
  659. }
  660. if (message.placemarkIconWidth != null && message.hasOwnProperty("placemarkIconWidth")) {
  661. if (!$util.isInteger(message.placemarkIconWidth))
  662. return "placemarkIconWidth: integer expected";
  663. }
  664. if (message.placemarkIconHeight != null && message.hasOwnProperty("placemarkIconHeight")) {
  665. if (!$util.isInteger(message.placemarkIconHeight))
  666. return "placemarkIconHeight: integer expected";
  667. }
  668. if (message.popUp != null && message.hasOwnProperty("popUp")) {
  669. var error = $root.keyhole.dbroot.PopUpProto.verify(message.popUp);
  670. if (error)
  671. return "popUp." + error;
  672. }
  673. if (message.drawFlag != null && message.hasOwnProperty("drawFlag")) {
  674. if (!Array.isArray(message.drawFlag))
  675. return "drawFlag: array expected";
  676. for (var i = 0; i < message.drawFlag.length; ++i) {
  677. var error = $root.keyhole.dbroot.DrawFlagProto.verify(message.drawFlag[i]);
  678. if (error)
  679. return "drawFlag." + error;
  680. }
  681. }
  682. return null;
  683. };
  684. StyleAttributeProto.fromObject = function fromObject(object) {
  685. if (object instanceof $root.keyhole.dbroot.StyleAttributeProto)
  686. return object;
  687. var message = new $root.keyhole.dbroot.StyleAttributeProto();
  688. if (object.styleId != null)
  689. message.styleId = String(object.styleId);
  690. if (object.providerId != null)
  691. message.providerId = object.providerId | 0;
  692. if (object.polyColorAbgr != null)
  693. message.polyColorAbgr = object.polyColorAbgr >>> 0;
  694. if (object.lineColorAbgr != null)
  695. message.lineColorAbgr = object.lineColorAbgr >>> 0;
  696. if (object.lineWidth != null)
  697. message.lineWidth = Number(object.lineWidth);
  698. if (object.labelColorAbgr != null)
  699. message.labelColorAbgr = object.labelColorAbgr >>> 0;
  700. if (object.labelScale != null)
  701. message.labelScale = Number(object.labelScale);
  702. if (object.placemarkIconColorAbgr != null)
  703. message.placemarkIconColorAbgr = object.placemarkIconColorAbgr >>> 0;
  704. if (object.placemarkIconScale != null)
  705. message.placemarkIconScale = Number(object.placemarkIconScale);
  706. if (object.placemarkIconPath != null) {
  707. if (typeof object.placemarkIconPath !== "object")
  708. throw TypeError(".keyhole.dbroot.StyleAttributeProto.placemarkIconPath: object expected");
  709. message.placemarkIconPath = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.placemarkIconPath);
  710. }
  711. if (object.placemarkIconX != null)
  712. message.placemarkIconX = object.placemarkIconX | 0;
  713. if (object.placemarkIconY != null)
  714. message.placemarkIconY = object.placemarkIconY | 0;
  715. if (object.placemarkIconWidth != null)
  716. message.placemarkIconWidth = object.placemarkIconWidth | 0;
  717. if (object.placemarkIconHeight != null)
  718. message.placemarkIconHeight = object.placemarkIconHeight | 0;
  719. if (object.popUp != null) {
  720. if (typeof object.popUp !== "object")
  721. throw TypeError(".keyhole.dbroot.StyleAttributeProto.popUp: object expected");
  722. message.popUp = $root.keyhole.dbroot.PopUpProto.fromObject(object.popUp);
  723. }
  724. if (object.drawFlag) {
  725. if (!Array.isArray(object.drawFlag))
  726. throw TypeError(".keyhole.dbroot.StyleAttributeProto.drawFlag: array expected");
  727. message.drawFlag = [];
  728. for (var i = 0; i < object.drawFlag.length; ++i) {
  729. if (typeof object.drawFlag[i] !== "object")
  730. throw TypeError(".keyhole.dbroot.StyleAttributeProto.drawFlag: object expected");
  731. message.drawFlag[i] = $root.keyhole.dbroot.DrawFlagProto.fromObject(object.drawFlag[i]);
  732. }
  733. }
  734. return message;
  735. };
  736. StyleAttributeProto.toObject = function toObject(message, options) {
  737. if (!options)
  738. options = {};
  739. var object = {};
  740. if (options.arrays || options.defaults)
  741. object.drawFlag = [];
  742. if (options.defaults) {
  743. object.styleId = "";
  744. object.providerId = 0;
  745. object.polyColorAbgr = 4294967295;
  746. object.lineColorAbgr = 4294967295;
  747. object.lineWidth = 1;
  748. object.labelColorAbgr = 4294967295;
  749. object.labelScale = 1;
  750. object.placemarkIconColorAbgr = 4294967295;
  751. object.placemarkIconScale = 1;
  752. object.placemarkIconPath = null;
  753. object.placemarkIconX = 0;
  754. object.placemarkIconY = 0;
  755. object.placemarkIconWidth = 32;
  756. object.placemarkIconHeight = 32;
  757. object.popUp = null;
  758. }
  759. if (message.styleId != null && message.hasOwnProperty("styleId"))
  760. object.styleId = message.styleId;
  761. if (message.providerId != null && message.hasOwnProperty("providerId"))
  762. object.providerId = message.providerId;
  763. if (message.polyColorAbgr != null && message.hasOwnProperty("polyColorAbgr"))
  764. object.polyColorAbgr = message.polyColorAbgr;
  765. if (message.lineColorAbgr != null && message.hasOwnProperty("lineColorAbgr"))
  766. object.lineColorAbgr = message.lineColorAbgr;
  767. if (message.lineWidth != null && message.hasOwnProperty("lineWidth"))
  768. object.lineWidth = options.json && !isFinite(message.lineWidth) ? String(message.lineWidth) : message.lineWidth;
  769. if (message.labelColorAbgr != null && message.hasOwnProperty("labelColorAbgr"))
  770. object.labelColorAbgr = message.labelColorAbgr;
  771. if (message.labelScale != null && message.hasOwnProperty("labelScale"))
  772. object.labelScale = options.json && !isFinite(message.labelScale) ? String(message.labelScale) : message.labelScale;
  773. if (message.placemarkIconColorAbgr != null && message.hasOwnProperty("placemarkIconColorAbgr"))
  774. object.placemarkIconColorAbgr = message.placemarkIconColorAbgr;
  775. if (message.placemarkIconScale != null && message.hasOwnProperty("placemarkIconScale"))
  776. object.placemarkIconScale = options.json && !isFinite(message.placemarkIconScale) ? String(message.placemarkIconScale) : message.placemarkIconScale;
  777. if (message.placemarkIconPath != null && message.hasOwnProperty("placemarkIconPath"))
  778. object.placemarkIconPath = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.placemarkIconPath, options);
  779. if (message.placemarkIconX != null && message.hasOwnProperty("placemarkIconX"))
  780. object.placemarkIconX = message.placemarkIconX;
  781. if (message.placemarkIconY != null && message.hasOwnProperty("placemarkIconY"))
  782. object.placemarkIconY = message.placemarkIconY;
  783. if (message.placemarkIconWidth != null && message.hasOwnProperty("placemarkIconWidth"))
  784. object.placemarkIconWidth = message.placemarkIconWidth;
  785. if (message.placemarkIconHeight != null && message.hasOwnProperty("placemarkIconHeight"))
  786. object.placemarkIconHeight = message.placemarkIconHeight;
  787. if (message.popUp != null && message.hasOwnProperty("popUp"))
  788. object.popUp = $root.keyhole.dbroot.PopUpProto.toObject(message.popUp, options);
  789. if (message.drawFlag && message.drawFlag.length) {
  790. object.drawFlag = [];
  791. for (var j = 0; j < message.drawFlag.length; ++j)
  792. object.drawFlag[j] = $root.keyhole.dbroot.DrawFlagProto.toObject(message.drawFlag[j], options);
  793. }
  794. return object;
  795. };
  796. StyleAttributeProto.prototype.toJSON = function toJSON() {
  797. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  798. };
  799. StyleAttributeProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  800. if (typeUrlPrefix === void 0) {
  801. typeUrlPrefix = "type.googleapis.com";
  802. }
  803. return typeUrlPrefix + "/keyhole.dbroot.StyleAttributeProto";
  804. };
  805. return StyleAttributeProto;
  806. }();
  807. dbroot.StyleMapProto = function() {
  808. function StyleMapProto(properties) {
  809. this.channelId = [];
  810. if (properties) {
  811. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  812. if (properties[keys[i]] != null)
  813. this[keys[i]] = properties[keys[i]];
  814. }
  815. }
  816. StyleMapProto.prototype.styleMapId = 0;
  817. StyleMapProto.prototype.channelId = $util.emptyArray;
  818. StyleMapProto.prototype.normalStyleAttribute = 0;
  819. StyleMapProto.prototype.highlightStyleAttribute = 0;
  820. StyleMapProto.decode = function decode(reader, length) {
  821. if (!(reader instanceof $Reader))
  822. reader = $Reader.create(reader);
  823. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.StyleMapProto();
  824. while (reader.pos < end) {
  825. var tag = reader.uint32();
  826. switch (tag >>> 3) {
  827. case 1: {
  828. message.styleMapId = reader.int32();
  829. break;
  830. }
  831. case 2: {
  832. if (!(message.channelId && message.channelId.length))
  833. message.channelId = [];
  834. if ((tag & 7) === 2) {
  835. var end2 = reader.uint32() + reader.pos;
  836. while (reader.pos < end2)
  837. message.channelId.push(reader.int32());
  838. } else
  839. message.channelId.push(reader.int32());
  840. break;
  841. }
  842. case 3: {
  843. message.normalStyleAttribute = reader.int32();
  844. break;
  845. }
  846. case 4: {
  847. message.highlightStyleAttribute = reader.int32();
  848. break;
  849. }
  850. default:
  851. reader.skipType(tag & 7);
  852. break;
  853. }
  854. }
  855. if (!message.hasOwnProperty("styleMapId"))
  856. throw $util.ProtocolError("missing required 'styleMapId'", { instance: message });
  857. return message;
  858. };
  859. StyleMapProto.verify = function verify(message) {
  860. if (typeof message !== "object" || message === null)
  861. return "object expected";
  862. if (!$util.isInteger(message.styleMapId))
  863. return "styleMapId: integer expected";
  864. if (message.channelId != null && message.hasOwnProperty("channelId")) {
  865. if (!Array.isArray(message.channelId))
  866. return "channelId: array expected";
  867. for (var i = 0; i < message.channelId.length; ++i)
  868. if (!$util.isInteger(message.channelId[i]))
  869. return "channelId: integer[] expected";
  870. }
  871. if (message.normalStyleAttribute != null && message.hasOwnProperty("normalStyleAttribute")) {
  872. if (!$util.isInteger(message.normalStyleAttribute))
  873. return "normalStyleAttribute: integer expected";
  874. }
  875. if (message.highlightStyleAttribute != null && message.hasOwnProperty("highlightStyleAttribute")) {
  876. if (!$util.isInteger(message.highlightStyleAttribute))
  877. return "highlightStyleAttribute: integer expected";
  878. }
  879. return null;
  880. };
  881. StyleMapProto.fromObject = function fromObject(object) {
  882. if (object instanceof $root.keyhole.dbroot.StyleMapProto)
  883. return object;
  884. var message = new $root.keyhole.dbroot.StyleMapProto();
  885. if (object.styleMapId != null)
  886. message.styleMapId = object.styleMapId | 0;
  887. if (object.channelId) {
  888. if (!Array.isArray(object.channelId))
  889. throw TypeError(".keyhole.dbroot.StyleMapProto.channelId: array expected");
  890. message.channelId = [];
  891. for (var i = 0; i < object.channelId.length; ++i)
  892. message.channelId[i] = object.channelId[i] | 0;
  893. }
  894. if (object.normalStyleAttribute != null)
  895. message.normalStyleAttribute = object.normalStyleAttribute | 0;
  896. if (object.highlightStyleAttribute != null)
  897. message.highlightStyleAttribute = object.highlightStyleAttribute | 0;
  898. return message;
  899. };
  900. StyleMapProto.toObject = function toObject(message, options) {
  901. if (!options)
  902. options = {};
  903. var object = {};
  904. if (options.arrays || options.defaults)
  905. object.channelId = [];
  906. if (options.defaults) {
  907. object.styleMapId = 0;
  908. object.normalStyleAttribute = 0;
  909. object.highlightStyleAttribute = 0;
  910. }
  911. if (message.styleMapId != null && message.hasOwnProperty("styleMapId"))
  912. object.styleMapId = message.styleMapId;
  913. if (message.channelId && message.channelId.length) {
  914. object.channelId = [];
  915. for (var j = 0; j < message.channelId.length; ++j)
  916. object.channelId[j] = message.channelId[j];
  917. }
  918. if (message.normalStyleAttribute != null && message.hasOwnProperty("normalStyleAttribute"))
  919. object.normalStyleAttribute = message.normalStyleAttribute;
  920. if (message.highlightStyleAttribute != null && message.hasOwnProperty("highlightStyleAttribute"))
  921. object.highlightStyleAttribute = message.highlightStyleAttribute;
  922. return object;
  923. };
  924. StyleMapProto.prototype.toJSON = function toJSON() {
  925. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  926. };
  927. StyleMapProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  928. if (typeUrlPrefix === void 0) {
  929. typeUrlPrefix = "type.googleapis.com";
  930. }
  931. return typeUrlPrefix + "/keyhole.dbroot.StyleMapProto";
  932. };
  933. return StyleMapProto;
  934. }();
  935. dbroot.ZoomRangeProto = function() {
  936. function ZoomRangeProto(properties) {
  937. if (properties) {
  938. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  939. if (properties[keys[i]] != null)
  940. this[keys[i]] = properties[keys[i]];
  941. }
  942. }
  943. ZoomRangeProto.prototype.minZoom = 0;
  944. ZoomRangeProto.prototype.maxZoom = 0;
  945. ZoomRangeProto.decode = function decode(reader, length) {
  946. if (!(reader instanceof $Reader))
  947. reader = $Reader.create(reader);
  948. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.ZoomRangeProto();
  949. while (reader.pos < end) {
  950. var tag = reader.uint32();
  951. switch (tag >>> 3) {
  952. case 1: {
  953. message.minZoom = reader.int32();
  954. break;
  955. }
  956. case 2: {
  957. message.maxZoom = reader.int32();
  958. break;
  959. }
  960. default:
  961. reader.skipType(tag & 7);
  962. break;
  963. }
  964. }
  965. if (!message.hasOwnProperty("minZoom"))
  966. throw $util.ProtocolError("missing required 'minZoom'", { instance: message });
  967. if (!message.hasOwnProperty("maxZoom"))
  968. throw $util.ProtocolError("missing required 'maxZoom'", { instance: message });
  969. return message;
  970. };
  971. ZoomRangeProto.verify = function verify(message) {
  972. if (typeof message !== "object" || message === null)
  973. return "object expected";
  974. if (!$util.isInteger(message.minZoom))
  975. return "minZoom: integer expected";
  976. if (!$util.isInteger(message.maxZoom))
  977. return "maxZoom: integer expected";
  978. return null;
  979. };
  980. ZoomRangeProto.fromObject = function fromObject(object) {
  981. if (object instanceof $root.keyhole.dbroot.ZoomRangeProto)
  982. return object;
  983. var message = new $root.keyhole.dbroot.ZoomRangeProto();
  984. if (object.minZoom != null)
  985. message.minZoom = object.minZoom | 0;
  986. if (object.maxZoom != null)
  987. message.maxZoom = object.maxZoom | 0;
  988. return message;
  989. };
  990. ZoomRangeProto.toObject = function toObject(message, options) {
  991. if (!options)
  992. options = {};
  993. var object = {};
  994. if (options.defaults) {
  995. object.minZoom = 0;
  996. object.maxZoom = 0;
  997. }
  998. if (message.minZoom != null && message.hasOwnProperty("minZoom"))
  999. object.minZoom = message.minZoom;
  1000. if (message.maxZoom != null && message.hasOwnProperty("maxZoom"))
  1001. object.maxZoom = message.maxZoom;
  1002. return object;
  1003. };
  1004. ZoomRangeProto.prototype.toJSON = function toJSON() {
  1005. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1006. };
  1007. ZoomRangeProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  1008. if (typeUrlPrefix === void 0) {
  1009. typeUrlPrefix = "type.googleapis.com";
  1010. }
  1011. return typeUrlPrefix + "/keyhole.dbroot.ZoomRangeProto";
  1012. };
  1013. return ZoomRangeProto;
  1014. }();
  1015. dbroot.DrawFlagProto = function() {
  1016. function DrawFlagProto(properties) {
  1017. if (properties) {
  1018. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  1019. if (properties[keys[i]] != null)
  1020. this[keys[i]] = properties[keys[i]];
  1021. }
  1022. }
  1023. DrawFlagProto.prototype.drawFlagType = 1;
  1024. DrawFlagProto.decode = function decode(reader, length) {
  1025. if (!(reader instanceof $Reader))
  1026. reader = $Reader.create(reader);
  1027. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.DrawFlagProto();
  1028. while (reader.pos < end) {
  1029. var tag = reader.uint32();
  1030. switch (tag >>> 3) {
  1031. case 1: {
  1032. message.drawFlagType = reader.int32();
  1033. break;
  1034. }
  1035. default:
  1036. reader.skipType(tag & 7);
  1037. break;
  1038. }
  1039. }
  1040. if (!message.hasOwnProperty("drawFlagType"))
  1041. throw $util.ProtocolError("missing required 'drawFlagType'", { instance: message });
  1042. return message;
  1043. };
  1044. DrawFlagProto.verify = function verify(message) {
  1045. if (typeof message !== "object" || message === null)
  1046. return "object expected";
  1047. switch (message.drawFlagType) {
  1048. default:
  1049. return "drawFlagType: enum value expected";
  1050. case 1:
  1051. case 2:
  1052. case 3:
  1053. case 4:
  1054. case 5:
  1055. break;
  1056. }
  1057. return null;
  1058. };
  1059. DrawFlagProto.fromObject = function fromObject(object) {
  1060. if (object instanceof $root.keyhole.dbroot.DrawFlagProto)
  1061. return object;
  1062. var message = new $root.keyhole.dbroot.DrawFlagProto();
  1063. switch (object.drawFlagType) {
  1064. case "TYPE_FILL_ONLY":
  1065. case 1:
  1066. message.drawFlagType = 1;
  1067. break;
  1068. case "TYPE_OUTLINE_ONLY":
  1069. case 2:
  1070. message.drawFlagType = 2;
  1071. break;
  1072. case "TYPE_FILL_AND_OUTLINE":
  1073. case 3:
  1074. message.drawFlagType = 3;
  1075. break;
  1076. case "TYPE_ANTIALIASING":
  1077. case 4:
  1078. message.drawFlagType = 4;
  1079. break;
  1080. case "TYPE_CENTER_LABEL":
  1081. case 5:
  1082. message.drawFlagType = 5;
  1083. break;
  1084. }
  1085. return message;
  1086. };
  1087. DrawFlagProto.toObject = function toObject(message, options) {
  1088. if (!options)
  1089. options = {};
  1090. var object = {};
  1091. if (options.defaults)
  1092. object.drawFlagType = options.enums === String ? "TYPE_FILL_ONLY" : 1;
  1093. if (message.drawFlagType != null && message.hasOwnProperty("drawFlagType"))
  1094. object.drawFlagType = options.enums === String ? $root.keyhole.dbroot.DrawFlagProto.DrawFlagType[message.drawFlagType] : message.drawFlagType;
  1095. return object;
  1096. };
  1097. DrawFlagProto.prototype.toJSON = function toJSON() {
  1098. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1099. };
  1100. DrawFlagProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  1101. if (typeUrlPrefix === void 0) {
  1102. typeUrlPrefix = "type.googleapis.com";
  1103. }
  1104. return typeUrlPrefix + "/keyhole.dbroot.DrawFlagProto";
  1105. };
  1106. DrawFlagProto.DrawFlagType = function() {
  1107. var valuesById = {}, values = Object.create(valuesById);
  1108. values[valuesById[1] = "TYPE_FILL_ONLY"] = 1;
  1109. values[valuesById[2] = "TYPE_OUTLINE_ONLY"] = 2;
  1110. values[valuesById[3] = "TYPE_FILL_AND_OUTLINE"] = 3;
  1111. values[valuesById[4] = "TYPE_ANTIALIASING"] = 4;
  1112. values[valuesById[5] = "TYPE_CENTER_LABEL"] = 5;
  1113. return values;
  1114. }();
  1115. return DrawFlagProto;
  1116. }();
  1117. dbroot.LayerProto = function() {
  1118. function LayerProto(properties) {
  1119. this.zoomRange = [];
  1120. if (properties) {
  1121. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  1122. if (properties[keys[i]] != null)
  1123. this[keys[i]] = properties[keys[i]];
  1124. }
  1125. }
  1126. LayerProto.prototype.zoomRange = $util.emptyArray;
  1127. LayerProto.prototype.preserveTextLevel = 30;
  1128. LayerProto.prototype.lodBeginTransition = false;
  1129. LayerProto.prototype.lodEndTransition = false;
  1130. LayerProto.decode = function decode(reader, length) {
  1131. if (!(reader instanceof $Reader))
  1132. reader = $Reader.create(reader);
  1133. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.LayerProto();
  1134. while (reader.pos < end) {
  1135. var tag = reader.uint32();
  1136. switch (tag >>> 3) {
  1137. case 1: {
  1138. if (!(message.zoomRange && message.zoomRange.length))
  1139. message.zoomRange = [];
  1140. message.zoomRange.push($root.keyhole.dbroot.ZoomRangeProto.decode(reader, reader.uint32()));
  1141. break;
  1142. }
  1143. case 2: {
  1144. message.preserveTextLevel = reader.int32();
  1145. break;
  1146. }
  1147. case 4: {
  1148. message.lodBeginTransition = reader.bool();
  1149. break;
  1150. }
  1151. case 5: {
  1152. message.lodEndTransition = reader.bool();
  1153. break;
  1154. }
  1155. default:
  1156. reader.skipType(tag & 7);
  1157. break;
  1158. }
  1159. }
  1160. return message;
  1161. };
  1162. LayerProto.verify = function verify(message) {
  1163. if (typeof message !== "object" || message === null)
  1164. return "object expected";
  1165. if (message.zoomRange != null && message.hasOwnProperty("zoomRange")) {
  1166. if (!Array.isArray(message.zoomRange))
  1167. return "zoomRange: array expected";
  1168. for (var i = 0; i < message.zoomRange.length; ++i) {
  1169. var error = $root.keyhole.dbroot.ZoomRangeProto.verify(message.zoomRange[i]);
  1170. if (error)
  1171. return "zoomRange." + error;
  1172. }
  1173. }
  1174. if (message.preserveTextLevel != null && message.hasOwnProperty("preserveTextLevel")) {
  1175. if (!$util.isInteger(message.preserveTextLevel))
  1176. return "preserveTextLevel: integer expected";
  1177. }
  1178. if (message.lodBeginTransition != null && message.hasOwnProperty("lodBeginTransition")) {
  1179. if (typeof message.lodBeginTransition !== "boolean")
  1180. return "lodBeginTransition: boolean expected";
  1181. }
  1182. if (message.lodEndTransition != null && message.hasOwnProperty("lodEndTransition")) {
  1183. if (typeof message.lodEndTransition !== "boolean")
  1184. return "lodEndTransition: boolean expected";
  1185. }
  1186. return null;
  1187. };
  1188. LayerProto.fromObject = function fromObject(object) {
  1189. if (object instanceof $root.keyhole.dbroot.LayerProto)
  1190. return object;
  1191. var message = new $root.keyhole.dbroot.LayerProto();
  1192. if (object.zoomRange) {
  1193. if (!Array.isArray(object.zoomRange))
  1194. throw TypeError(".keyhole.dbroot.LayerProto.zoomRange: array expected");
  1195. message.zoomRange = [];
  1196. for (var i = 0; i < object.zoomRange.length; ++i) {
  1197. if (typeof object.zoomRange[i] !== "object")
  1198. throw TypeError(".keyhole.dbroot.LayerProto.zoomRange: object expected");
  1199. message.zoomRange[i] = $root.keyhole.dbroot.ZoomRangeProto.fromObject(object.zoomRange[i]);
  1200. }
  1201. }
  1202. if (object.preserveTextLevel != null)
  1203. message.preserveTextLevel = object.preserveTextLevel | 0;
  1204. if (object.lodBeginTransition != null)
  1205. message.lodBeginTransition = Boolean(object.lodBeginTransition);
  1206. if (object.lodEndTransition != null)
  1207. message.lodEndTransition = Boolean(object.lodEndTransition);
  1208. return message;
  1209. };
  1210. LayerProto.toObject = function toObject(message, options) {
  1211. if (!options)
  1212. options = {};
  1213. var object = {};
  1214. if (options.arrays || options.defaults)
  1215. object.zoomRange = [];
  1216. if (options.defaults) {
  1217. object.preserveTextLevel = 30;
  1218. object.lodBeginTransition = false;
  1219. object.lodEndTransition = false;
  1220. }
  1221. if (message.zoomRange && message.zoomRange.length) {
  1222. object.zoomRange = [];
  1223. for (var j = 0; j < message.zoomRange.length; ++j)
  1224. object.zoomRange[j] = $root.keyhole.dbroot.ZoomRangeProto.toObject(message.zoomRange[j], options);
  1225. }
  1226. if (message.preserveTextLevel != null && message.hasOwnProperty("preserveTextLevel"))
  1227. object.preserveTextLevel = message.preserveTextLevel;
  1228. if (message.lodBeginTransition != null && message.hasOwnProperty("lodBeginTransition"))
  1229. object.lodBeginTransition = message.lodBeginTransition;
  1230. if (message.lodEndTransition != null && message.hasOwnProperty("lodEndTransition"))
  1231. object.lodEndTransition = message.lodEndTransition;
  1232. return object;
  1233. };
  1234. LayerProto.prototype.toJSON = function toJSON() {
  1235. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1236. };
  1237. LayerProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  1238. if (typeUrlPrefix === void 0) {
  1239. typeUrlPrefix = "type.googleapis.com";
  1240. }
  1241. return typeUrlPrefix + "/keyhole.dbroot.LayerProto";
  1242. };
  1243. return LayerProto;
  1244. }();
  1245. dbroot.FolderProto = function() {
  1246. function FolderProto(properties) {
  1247. if (properties) {
  1248. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  1249. if (properties[keys[i]] != null)
  1250. this[keys[i]] = properties[keys[i]];
  1251. }
  1252. }
  1253. FolderProto.prototype.isExpandable = true;
  1254. FolderProto.decode = function decode(reader, length) {
  1255. if (!(reader instanceof $Reader))
  1256. reader = $Reader.create(reader);
  1257. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.FolderProto();
  1258. while (reader.pos < end) {
  1259. var tag = reader.uint32();
  1260. switch (tag >>> 3) {
  1261. case 1: {
  1262. message.isExpandable = reader.bool();
  1263. break;
  1264. }
  1265. default:
  1266. reader.skipType(tag & 7);
  1267. break;
  1268. }
  1269. }
  1270. return message;
  1271. };
  1272. FolderProto.verify = function verify(message) {
  1273. if (typeof message !== "object" || message === null)
  1274. return "object expected";
  1275. if (message.isExpandable != null && message.hasOwnProperty("isExpandable")) {
  1276. if (typeof message.isExpandable !== "boolean")
  1277. return "isExpandable: boolean expected";
  1278. }
  1279. return null;
  1280. };
  1281. FolderProto.fromObject = function fromObject(object) {
  1282. if (object instanceof $root.keyhole.dbroot.FolderProto)
  1283. return object;
  1284. var message = new $root.keyhole.dbroot.FolderProto();
  1285. if (object.isExpandable != null)
  1286. message.isExpandable = Boolean(object.isExpandable);
  1287. return message;
  1288. };
  1289. FolderProto.toObject = function toObject(message, options) {
  1290. if (!options)
  1291. options = {};
  1292. var object = {};
  1293. if (options.defaults)
  1294. object.isExpandable = true;
  1295. if (message.isExpandable != null && message.hasOwnProperty("isExpandable"))
  1296. object.isExpandable = message.isExpandable;
  1297. return object;
  1298. };
  1299. FolderProto.prototype.toJSON = function toJSON() {
  1300. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1301. };
  1302. FolderProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  1303. if (typeUrlPrefix === void 0) {
  1304. typeUrlPrefix = "type.googleapis.com";
  1305. }
  1306. return typeUrlPrefix + "/keyhole.dbroot.FolderProto";
  1307. };
  1308. return FolderProto;
  1309. }();
  1310. dbroot.RequirementProto = function() {
  1311. function RequirementProto(properties) {
  1312. if (properties) {
  1313. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  1314. if (properties[keys[i]] != null)
  1315. this[keys[i]] = properties[keys[i]];
  1316. }
  1317. }
  1318. RequirementProto.prototype.requiredVram = "";
  1319. RequirementProto.prototype.requiredClientVer = "";
  1320. RequirementProto.prototype.probability = "";
  1321. RequirementProto.prototype.requiredUserAgent = "";
  1322. RequirementProto.prototype.requiredClientCapabilities = "";
  1323. RequirementProto.decode = function decode(reader, length) {
  1324. if (!(reader instanceof $Reader))
  1325. reader = $Reader.create(reader);
  1326. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.RequirementProto();
  1327. while (reader.pos < end) {
  1328. var tag = reader.uint32();
  1329. switch (tag >>> 3) {
  1330. case 3: {
  1331. message.requiredVram = reader.string();
  1332. break;
  1333. }
  1334. case 4: {
  1335. message.requiredClientVer = reader.string();
  1336. break;
  1337. }
  1338. case 5: {
  1339. message.probability = reader.string();
  1340. break;
  1341. }
  1342. case 6: {
  1343. message.requiredUserAgent = reader.string();
  1344. break;
  1345. }
  1346. case 7: {
  1347. message.requiredClientCapabilities = reader.string();
  1348. break;
  1349. }
  1350. default:
  1351. reader.skipType(tag & 7);
  1352. break;
  1353. }
  1354. }
  1355. return message;
  1356. };
  1357. RequirementProto.verify = function verify(message) {
  1358. if (typeof message !== "object" || message === null)
  1359. return "object expected";
  1360. if (message.requiredVram != null && message.hasOwnProperty("requiredVram")) {
  1361. if (!$util.isString(message.requiredVram))
  1362. return "requiredVram: string expected";
  1363. }
  1364. if (message.requiredClientVer != null && message.hasOwnProperty("requiredClientVer")) {
  1365. if (!$util.isString(message.requiredClientVer))
  1366. return "requiredClientVer: string expected";
  1367. }
  1368. if (message.probability != null && message.hasOwnProperty("probability")) {
  1369. if (!$util.isString(message.probability))
  1370. return "probability: string expected";
  1371. }
  1372. if (message.requiredUserAgent != null && message.hasOwnProperty("requiredUserAgent")) {
  1373. if (!$util.isString(message.requiredUserAgent))
  1374. return "requiredUserAgent: string expected";
  1375. }
  1376. if (message.requiredClientCapabilities != null && message.hasOwnProperty("requiredClientCapabilities")) {
  1377. if (!$util.isString(message.requiredClientCapabilities))
  1378. return "requiredClientCapabilities: string expected";
  1379. }
  1380. return null;
  1381. };
  1382. RequirementProto.fromObject = function fromObject(object) {
  1383. if (object instanceof $root.keyhole.dbroot.RequirementProto)
  1384. return object;
  1385. var message = new $root.keyhole.dbroot.RequirementProto();
  1386. if (object.requiredVram != null)
  1387. message.requiredVram = String(object.requiredVram);
  1388. if (object.requiredClientVer != null)
  1389. message.requiredClientVer = String(object.requiredClientVer);
  1390. if (object.probability != null)
  1391. message.probability = String(object.probability);
  1392. if (object.requiredUserAgent != null)
  1393. message.requiredUserAgent = String(object.requiredUserAgent);
  1394. if (object.requiredClientCapabilities != null)
  1395. message.requiredClientCapabilities = String(object.requiredClientCapabilities);
  1396. return message;
  1397. };
  1398. RequirementProto.toObject = function toObject(message, options) {
  1399. if (!options)
  1400. options = {};
  1401. var object = {};
  1402. if (options.defaults) {
  1403. object.requiredVram = "";
  1404. object.requiredClientVer = "";
  1405. object.probability = "";
  1406. object.requiredUserAgent = "";
  1407. object.requiredClientCapabilities = "";
  1408. }
  1409. if (message.requiredVram != null && message.hasOwnProperty("requiredVram"))
  1410. object.requiredVram = message.requiredVram;
  1411. if (message.requiredClientVer != null && message.hasOwnProperty("requiredClientVer"))
  1412. object.requiredClientVer = message.requiredClientVer;
  1413. if (message.probability != null && message.hasOwnProperty("probability"))
  1414. object.probability = message.probability;
  1415. if (message.requiredUserAgent != null && message.hasOwnProperty("requiredUserAgent"))
  1416. object.requiredUserAgent = message.requiredUserAgent;
  1417. if (message.requiredClientCapabilities != null && message.hasOwnProperty("requiredClientCapabilities"))
  1418. object.requiredClientCapabilities = message.requiredClientCapabilities;
  1419. return object;
  1420. };
  1421. RequirementProto.prototype.toJSON = function toJSON() {
  1422. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1423. };
  1424. RequirementProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  1425. if (typeUrlPrefix === void 0) {
  1426. typeUrlPrefix = "type.googleapis.com";
  1427. }
  1428. return typeUrlPrefix + "/keyhole.dbroot.RequirementProto";
  1429. };
  1430. return RequirementProto;
  1431. }();
  1432. dbroot.LookAtProto = function() {
  1433. function LookAtProto(properties) {
  1434. if (properties) {
  1435. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  1436. if (properties[keys[i]] != null)
  1437. this[keys[i]] = properties[keys[i]];
  1438. }
  1439. }
  1440. LookAtProto.prototype.longitude = 0;
  1441. LookAtProto.prototype.latitude = 0;
  1442. LookAtProto.prototype.range = 0;
  1443. LookAtProto.prototype.tilt = 0;
  1444. LookAtProto.prototype.heading = 0;
  1445. LookAtProto.decode = function decode(reader, length) {
  1446. if (!(reader instanceof $Reader))
  1447. reader = $Reader.create(reader);
  1448. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.LookAtProto();
  1449. while (reader.pos < end) {
  1450. var tag = reader.uint32();
  1451. switch (tag >>> 3) {
  1452. case 1: {
  1453. message.longitude = reader.float();
  1454. break;
  1455. }
  1456. case 2: {
  1457. message.latitude = reader.float();
  1458. break;
  1459. }
  1460. case 3: {
  1461. message.range = reader.float();
  1462. break;
  1463. }
  1464. case 4: {
  1465. message.tilt = reader.float();
  1466. break;
  1467. }
  1468. case 5: {
  1469. message.heading = reader.float();
  1470. break;
  1471. }
  1472. default:
  1473. reader.skipType(tag & 7);
  1474. break;
  1475. }
  1476. }
  1477. if (!message.hasOwnProperty("longitude"))
  1478. throw $util.ProtocolError("missing required 'longitude'", { instance: message });
  1479. if (!message.hasOwnProperty("latitude"))
  1480. throw $util.ProtocolError("missing required 'latitude'", { instance: message });
  1481. return message;
  1482. };
  1483. LookAtProto.verify = function verify(message) {
  1484. if (typeof message !== "object" || message === null)
  1485. return "object expected";
  1486. if (typeof message.longitude !== "number")
  1487. return "longitude: number expected";
  1488. if (typeof message.latitude !== "number")
  1489. return "latitude: number expected";
  1490. if (message.range != null && message.hasOwnProperty("range")) {
  1491. if (typeof message.range !== "number")
  1492. return "range: number expected";
  1493. }
  1494. if (message.tilt != null && message.hasOwnProperty("tilt")) {
  1495. if (typeof message.tilt !== "number")
  1496. return "tilt: number expected";
  1497. }
  1498. if (message.heading != null && message.hasOwnProperty("heading")) {
  1499. if (typeof message.heading !== "number")
  1500. return "heading: number expected";
  1501. }
  1502. return null;
  1503. };
  1504. LookAtProto.fromObject = function fromObject(object) {
  1505. if (object instanceof $root.keyhole.dbroot.LookAtProto)
  1506. return object;
  1507. var message = new $root.keyhole.dbroot.LookAtProto();
  1508. if (object.longitude != null)
  1509. message.longitude = Number(object.longitude);
  1510. if (object.latitude != null)
  1511. message.latitude = Number(object.latitude);
  1512. if (object.range != null)
  1513. message.range = Number(object.range);
  1514. if (object.tilt != null)
  1515. message.tilt = Number(object.tilt);
  1516. if (object.heading != null)
  1517. message.heading = Number(object.heading);
  1518. return message;
  1519. };
  1520. LookAtProto.toObject = function toObject(message, options) {
  1521. if (!options)
  1522. options = {};
  1523. var object = {};
  1524. if (options.defaults) {
  1525. object.longitude = 0;
  1526. object.latitude = 0;
  1527. object.range = 0;
  1528. object.tilt = 0;
  1529. object.heading = 0;
  1530. }
  1531. if (message.longitude != null && message.hasOwnProperty("longitude"))
  1532. object.longitude = options.json && !isFinite(message.longitude) ? String(message.longitude) : message.longitude;
  1533. if (message.latitude != null && message.hasOwnProperty("latitude"))
  1534. object.latitude = options.json && !isFinite(message.latitude) ? String(message.latitude) : message.latitude;
  1535. if (message.range != null && message.hasOwnProperty("range"))
  1536. object.range = options.json && !isFinite(message.range) ? String(message.range) : message.range;
  1537. if (message.tilt != null && message.hasOwnProperty("tilt"))
  1538. object.tilt = options.json && !isFinite(message.tilt) ? String(message.tilt) : message.tilt;
  1539. if (message.heading != null && message.hasOwnProperty("heading"))
  1540. object.heading = options.json && !isFinite(message.heading) ? String(message.heading) : message.heading;
  1541. return object;
  1542. };
  1543. LookAtProto.prototype.toJSON = function toJSON() {
  1544. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1545. };
  1546. LookAtProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  1547. if (typeUrlPrefix === void 0) {
  1548. typeUrlPrefix = "type.googleapis.com";
  1549. }
  1550. return typeUrlPrefix + "/keyhole.dbroot.LookAtProto";
  1551. };
  1552. return LookAtProto;
  1553. }();
  1554. dbroot.NestedFeatureProto = function() {
  1555. function NestedFeatureProto(properties) {
  1556. this.children = [];
  1557. if (properties) {
  1558. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  1559. if (properties[keys[i]] != null)
  1560. this[keys[i]] = properties[keys[i]];
  1561. }
  1562. }
  1563. NestedFeatureProto.prototype.featureType = 1;
  1564. NestedFeatureProto.prototype.kmlUrl = null;
  1565. NestedFeatureProto.prototype.databaseUrl = "";
  1566. NestedFeatureProto.prototype.layer = null;
  1567. NestedFeatureProto.prototype.folder = null;
  1568. NestedFeatureProto.prototype.requirement = null;
  1569. NestedFeatureProto.prototype.channelId = 0;
  1570. NestedFeatureProto.prototype.displayName = null;
  1571. NestedFeatureProto.prototype.isVisible = true;
  1572. NestedFeatureProto.prototype.isEnabled = true;
  1573. NestedFeatureProto.prototype.isChecked = false;
  1574. NestedFeatureProto.prototype.layerMenuIconPath = "icons/773_l.png";
  1575. NestedFeatureProto.prototype.description = null;
  1576. NestedFeatureProto.prototype.lookAt = null;
  1577. NestedFeatureProto.prototype.assetUuid = "";
  1578. NestedFeatureProto.prototype.isSaveLocked = true;
  1579. NestedFeatureProto.prototype.children = $util.emptyArray;
  1580. NestedFeatureProto.prototype.clientConfigScriptName = "";
  1581. NestedFeatureProto.prototype.dioramaDataChannelBase = -1;
  1582. NestedFeatureProto.prototype.replicaDataChannelBase = -1;
  1583. NestedFeatureProto.decode = function decode(reader, length) {
  1584. if (!(reader instanceof $Reader))
  1585. reader = $Reader.create(reader);
  1586. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.NestedFeatureProto();
  1587. while (reader.pos < end) {
  1588. var tag = reader.uint32();
  1589. switch (tag >>> 3) {
  1590. case 1: {
  1591. message.featureType = reader.int32();
  1592. break;
  1593. }
  1594. case 2: {
  1595. message.kmlUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  1596. break;
  1597. }
  1598. case 21: {
  1599. message.databaseUrl = reader.string();
  1600. break;
  1601. }
  1602. case 3: {
  1603. message.layer = $root.keyhole.dbroot.LayerProto.decode(reader, reader.uint32());
  1604. break;
  1605. }
  1606. case 4: {
  1607. message.folder = $root.keyhole.dbroot.FolderProto.decode(reader, reader.uint32());
  1608. break;
  1609. }
  1610. case 5: {
  1611. message.requirement = $root.keyhole.dbroot.RequirementProto.decode(reader, reader.uint32());
  1612. break;
  1613. }
  1614. case 6: {
  1615. message.channelId = reader.int32();
  1616. break;
  1617. }
  1618. case 7: {
  1619. message.displayName = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  1620. break;
  1621. }
  1622. case 8: {
  1623. message.isVisible = reader.bool();
  1624. break;
  1625. }
  1626. case 9: {
  1627. message.isEnabled = reader.bool();
  1628. break;
  1629. }
  1630. case 10: {
  1631. message.isChecked = reader.bool();
  1632. break;
  1633. }
  1634. case 11: {
  1635. message.layerMenuIconPath = reader.string();
  1636. break;
  1637. }
  1638. case 12: {
  1639. message.description = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  1640. break;
  1641. }
  1642. case 13: {
  1643. message.lookAt = $root.keyhole.dbroot.LookAtProto.decode(reader, reader.uint32());
  1644. break;
  1645. }
  1646. case 15: {
  1647. message.assetUuid = reader.string();
  1648. break;
  1649. }
  1650. case 16: {
  1651. message.isSaveLocked = reader.bool();
  1652. break;
  1653. }
  1654. case 17: {
  1655. if (!(message.children && message.children.length))
  1656. message.children = [];
  1657. message.children.push($root.keyhole.dbroot.NestedFeatureProto.decode(reader, reader.uint32()));
  1658. break;
  1659. }
  1660. case 18: {
  1661. message.clientConfigScriptName = reader.string();
  1662. break;
  1663. }
  1664. case 19: {
  1665. message.dioramaDataChannelBase = reader.int32();
  1666. break;
  1667. }
  1668. case 20: {
  1669. message.replicaDataChannelBase = reader.int32();
  1670. break;
  1671. }
  1672. default:
  1673. reader.skipType(tag & 7);
  1674. break;
  1675. }
  1676. }
  1677. if (!message.hasOwnProperty("channelId"))
  1678. throw $util.ProtocolError("missing required 'channelId'", { instance: message });
  1679. return message;
  1680. };
  1681. NestedFeatureProto.verify = function verify(message) {
  1682. if (typeof message !== "object" || message === null)
  1683. return "object expected";
  1684. if (message.featureType != null && message.hasOwnProperty("featureType"))
  1685. switch (message.featureType) {
  1686. default:
  1687. return "featureType: enum value expected";
  1688. case 1:
  1689. case 2:
  1690. case 3:
  1691. case 4:
  1692. break;
  1693. }
  1694. if (message.kmlUrl != null && message.hasOwnProperty("kmlUrl")) {
  1695. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.kmlUrl);
  1696. if (error)
  1697. return "kmlUrl." + error;
  1698. }
  1699. if (message.databaseUrl != null && message.hasOwnProperty("databaseUrl")) {
  1700. if (!$util.isString(message.databaseUrl))
  1701. return "databaseUrl: string expected";
  1702. }
  1703. if (message.layer != null && message.hasOwnProperty("layer")) {
  1704. var error = $root.keyhole.dbroot.LayerProto.verify(message.layer);
  1705. if (error)
  1706. return "layer." + error;
  1707. }
  1708. if (message.folder != null && message.hasOwnProperty("folder")) {
  1709. var error = $root.keyhole.dbroot.FolderProto.verify(message.folder);
  1710. if (error)
  1711. return "folder." + error;
  1712. }
  1713. if (message.requirement != null && message.hasOwnProperty("requirement")) {
  1714. var error = $root.keyhole.dbroot.RequirementProto.verify(message.requirement);
  1715. if (error)
  1716. return "requirement." + error;
  1717. }
  1718. if (!$util.isInteger(message.channelId))
  1719. return "channelId: integer expected";
  1720. if (message.displayName != null && message.hasOwnProperty("displayName")) {
  1721. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.displayName);
  1722. if (error)
  1723. return "displayName." + error;
  1724. }
  1725. if (message.isVisible != null && message.hasOwnProperty("isVisible")) {
  1726. if (typeof message.isVisible !== "boolean")
  1727. return "isVisible: boolean expected";
  1728. }
  1729. if (message.isEnabled != null && message.hasOwnProperty("isEnabled")) {
  1730. if (typeof message.isEnabled !== "boolean")
  1731. return "isEnabled: boolean expected";
  1732. }
  1733. if (message.isChecked != null && message.hasOwnProperty("isChecked")) {
  1734. if (typeof message.isChecked !== "boolean")
  1735. return "isChecked: boolean expected";
  1736. }
  1737. if (message.layerMenuIconPath != null && message.hasOwnProperty("layerMenuIconPath")) {
  1738. if (!$util.isString(message.layerMenuIconPath))
  1739. return "layerMenuIconPath: string expected";
  1740. }
  1741. if (message.description != null && message.hasOwnProperty("description")) {
  1742. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.description);
  1743. if (error)
  1744. return "description." + error;
  1745. }
  1746. if (message.lookAt != null && message.hasOwnProperty("lookAt")) {
  1747. var error = $root.keyhole.dbroot.LookAtProto.verify(message.lookAt);
  1748. if (error)
  1749. return "lookAt." + error;
  1750. }
  1751. if (message.assetUuid != null && message.hasOwnProperty("assetUuid")) {
  1752. if (!$util.isString(message.assetUuid))
  1753. return "assetUuid: string expected";
  1754. }
  1755. if (message.isSaveLocked != null && message.hasOwnProperty("isSaveLocked")) {
  1756. if (typeof message.isSaveLocked !== "boolean")
  1757. return "isSaveLocked: boolean expected";
  1758. }
  1759. if (message.children != null && message.hasOwnProperty("children")) {
  1760. if (!Array.isArray(message.children))
  1761. return "children: array expected";
  1762. for (var i = 0; i < message.children.length; ++i) {
  1763. var error = $root.keyhole.dbroot.NestedFeatureProto.verify(message.children[i]);
  1764. if (error)
  1765. return "children." + error;
  1766. }
  1767. }
  1768. if (message.clientConfigScriptName != null && message.hasOwnProperty("clientConfigScriptName")) {
  1769. if (!$util.isString(message.clientConfigScriptName))
  1770. return "clientConfigScriptName: string expected";
  1771. }
  1772. if (message.dioramaDataChannelBase != null && message.hasOwnProperty("dioramaDataChannelBase")) {
  1773. if (!$util.isInteger(message.dioramaDataChannelBase))
  1774. return "dioramaDataChannelBase: integer expected";
  1775. }
  1776. if (message.replicaDataChannelBase != null && message.hasOwnProperty("replicaDataChannelBase")) {
  1777. if (!$util.isInteger(message.replicaDataChannelBase))
  1778. return "replicaDataChannelBase: integer expected";
  1779. }
  1780. return null;
  1781. };
  1782. NestedFeatureProto.fromObject = function fromObject(object) {
  1783. if (object instanceof $root.keyhole.dbroot.NestedFeatureProto)
  1784. return object;
  1785. var message = new $root.keyhole.dbroot.NestedFeatureProto();
  1786. switch (object.featureType) {
  1787. case "TYPE_POINT_Z":
  1788. case 1:
  1789. message.featureType = 1;
  1790. break;
  1791. case "TYPE_POLYGON_Z":
  1792. case 2:
  1793. message.featureType = 2;
  1794. break;
  1795. case "TYPE_LINE_Z":
  1796. case 3:
  1797. message.featureType = 3;
  1798. break;
  1799. case "TYPE_TERRAIN":
  1800. case 4:
  1801. message.featureType = 4;
  1802. break;
  1803. }
  1804. if (object.kmlUrl != null) {
  1805. if (typeof object.kmlUrl !== "object")
  1806. throw TypeError(".keyhole.dbroot.NestedFeatureProto.kmlUrl: object expected");
  1807. message.kmlUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.kmlUrl);
  1808. }
  1809. if (object.databaseUrl != null)
  1810. message.databaseUrl = String(object.databaseUrl);
  1811. if (object.layer != null) {
  1812. if (typeof object.layer !== "object")
  1813. throw TypeError(".keyhole.dbroot.NestedFeatureProto.layer: object expected");
  1814. message.layer = $root.keyhole.dbroot.LayerProto.fromObject(object.layer);
  1815. }
  1816. if (object.folder != null) {
  1817. if (typeof object.folder !== "object")
  1818. throw TypeError(".keyhole.dbroot.NestedFeatureProto.folder: object expected");
  1819. message.folder = $root.keyhole.dbroot.FolderProto.fromObject(object.folder);
  1820. }
  1821. if (object.requirement != null) {
  1822. if (typeof object.requirement !== "object")
  1823. throw TypeError(".keyhole.dbroot.NestedFeatureProto.requirement: object expected");
  1824. message.requirement = $root.keyhole.dbroot.RequirementProto.fromObject(object.requirement);
  1825. }
  1826. if (object.channelId != null)
  1827. message.channelId = object.channelId | 0;
  1828. if (object.displayName != null) {
  1829. if (typeof object.displayName !== "object")
  1830. throw TypeError(".keyhole.dbroot.NestedFeatureProto.displayName: object expected");
  1831. message.displayName = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.displayName);
  1832. }
  1833. if (object.isVisible != null)
  1834. message.isVisible = Boolean(object.isVisible);
  1835. if (object.isEnabled != null)
  1836. message.isEnabled = Boolean(object.isEnabled);
  1837. if (object.isChecked != null)
  1838. message.isChecked = Boolean(object.isChecked);
  1839. if (object.layerMenuIconPath != null)
  1840. message.layerMenuIconPath = String(object.layerMenuIconPath);
  1841. if (object.description != null) {
  1842. if (typeof object.description !== "object")
  1843. throw TypeError(".keyhole.dbroot.NestedFeatureProto.description: object expected");
  1844. message.description = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.description);
  1845. }
  1846. if (object.lookAt != null) {
  1847. if (typeof object.lookAt !== "object")
  1848. throw TypeError(".keyhole.dbroot.NestedFeatureProto.lookAt: object expected");
  1849. message.lookAt = $root.keyhole.dbroot.LookAtProto.fromObject(object.lookAt);
  1850. }
  1851. if (object.assetUuid != null)
  1852. message.assetUuid = String(object.assetUuid);
  1853. if (object.isSaveLocked != null)
  1854. message.isSaveLocked = Boolean(object.isSaveLocked);
  1855. if (object.children) {
  1856. if (!Array.isArray(object.children))
  1857. throw TypeError(".keyhole.dbroot.NestedFeatureProto.children: array expected");
  1858. message.children = [];
  1859. for (var i = 0; i < object.children.length; ++i) {
  1860. if (typeof object.children[i] !== "object")
  1861. throw TypeError(".keyhole.dbroot.NestedFeatureProto.children: object expected");
  1862. message.children[i] = $root.keyhole.dbroot.NestedFeatureProto.fromObject(object.children[i]);
  1863. }
  1864. }
  1865. if (object.clientConfigScriptName != null)
  1866. message.clientConfigScriptName = String(object.clientConfigScriptName);
  1867. if (object.dioramaDataChannelBase != null)
  1868. message.dioramaDataChannelBase = object.dioramaDataChannelBase | 0;
  1869. if (object.replicaDataChannelBase != null)
  1870. message.replicaDataChannelBase = object.replicaDataChannelBase | 0;
  1871. return message;
  1872. };
  1873. NestedFeatureProto.toObject = function toObject(message, options) {
  1874. if (!options)
  1875. options = {};
  1876. var object = {};
  1877. if (options.arrays || options.defaults)
  1878. object.children = [];
  1879. if (options.defaults) {
  1880. object.featureType = options.enums === String ? "TYPE_POINT_Z" : 1;
  1881. object.kmlUrl = null;
  1882. object.layer = null;
  1883. object.folder = null;
  1884. object.requirement = null;
  1885. object.channelId = 0;
  1886. object.displayName = null;
  1887. object.isVisible = true;
  1888. object.isEnabled = true;
  1889. object.isChecked = false;
  1890. object.layerMenuIconPath = "icons/773_l.png";
  1891. object.description = null;
  1892. object.lookAt = null;
  1893. object.assetUuid = "";
  1894. object.isSaveLocked = true;
  1895. object.clientConfigScriptName = "";
  1896. object.dioramaDataChannelBase = -1;
  1897. object.replicaDataChannelBase = -1;
  1898. object.databaseUrl = "";
  1899. }
  1900. if (message.featureType != null && message.hasOwnProperty("featureType"))
  1901. object.featureType = options.enums === String ? $root.keyhole.dbroot.NestedFeatureProto.FeatureType[message.featureType] : message.featureType;
  1902. if (message.kmlUrl != null && message.hasOwnProperty("kmlUrl"))
  1903. object.kmlUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.kmlUrl, options);
  1904. if (message.layer != null && message.hasOwnProperty("layer"))
  1905. object.layer = $root.keyhole.dbroot.LayerProto.toObject(message.layer, options);
  1906. if (message.folder != null && message.hasOwnProperty("folder"))
  1907. object.folder = $root.keyhole.dbroot.FolderProto.toObject(message.folder, options);
  1908. if (message.requirement != null && message.hasOwnProperty("requirement"))
  1909. object.requirement = $root.keyhole.dbroot.RequirementProto.toObject(message.requirement, options);
  1910. if (message.channelId != null && message.hasOwnProperty("channelId"))
  1911. object.channelId = message.channelId;
  1912. if (message.displayName != null && message.hasOwnProperty("displayName"))
  1913. object.displayName = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.displayName, options);
  1914. if (message.isVisible != null && message.hasOwnProperty("isVisible"))
  1915. object.isVisible = message.isVisible;
  1916. if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
  1917. object.isEnabled = message.isEnabled;
  1918. if (message.isChecked != null && message.hasOwnProperty("isChecked"))
  1919. object.isChecked = message.isChecked;
  1920. if (message.layerMenuIconPath != null && message.hasOwnProperty("layerMenuIconPath"))
  1921. object.layerMenuIconPath = message.layerMenuIconPath;
  1922. if (message.description != null && message.hasOwnProperty("description"))
  1923. object.description = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.description, options);
  1924. if (message.lookAt != null && message.hasOwnProperty("lookAt"))
  1925. object.lookAt = $root.keyhole.dbroot.LookAtProto.toObject(message.lookAt, options);
  1926. if (message.assetUuid != null && message.hasOwnProperty("assetUuid"))
  1927. object.assetUuid = message.assetUuid;
  1928. if (message.isSaveLocked != null && message.hasOwnProperty("isSaveLocked"))
  1929. object.isSaveLocked = message.isSaveLocked;
  1930. if (message.children && message.children.length) {
  1931. object.children = [];
  1932. for (var j = 0; j < message.children.length; ++j)
  1933. object.children[j] = $root.keyhole.dbroot.NestedFeatureProto.toObject(message.children[j], options);
  1934. }
  1935. if (message.clientConfigScriptName != null && message.hasOwnProperty("clientConfigScriptName"))
  1936. object.clientConfigScriptName = message.clientConfigScriptName;
  1937. if (message.dioramaDataChannelBase != null && message.hasOwnProperty("dioramaDataChannelBase"))
  1938. object.dioramaDataChannelBase = message.dioramaDataChannelBase;
  1939. if (message.replicaDataChannelBase != null && message.hasOwnProperty("replicaDataChannelBase"))
  1940. object.replicaDataChannelBase = message.replicaDataChannelBase;
  1941. if (message.databaseUrl != null && message.hasOwnProperty("databaseUrl"))
  1942. object.databaseUrl = message.databaseUrl;
  1943. return object;
  1944. };
  1945. NestedFeatureProto.prototype.toJSON = function toJSON() {
  1946. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1947. };
  1948. NestedFeatureProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  1949. if (typeUrlPrefix === void 0) {
  1950. typeUrlPrefix = "type.googleapis.com";
  1951. }
  1952. return typeUrlPrefix + "/keyhole.dbroot.NestedFeatureProto";
  1953. };
  1954. NestedFeatureProto.FeatureType = function() {
  1955. var valuesById = {}, values = Object.create(valuesById);
  1956. values[valuesById[1] = "TYPE_POINT_Z"] = 1;
  1957. values[valuesById[2] = "TYPE_POLYGON_Z"] = 2;
  1958. values[valuesById[3] = "TYPE_LINE_Z"] = 3;
  1959. values[valuesById[4] = "TYPE_TERRAIN"] = 4;
  1960. return values;
  1961. }();
  1962. return NestedFeatureProto;
  1963. }();
  1964. dbroot.MfeDomainFeaturesProto = function() {
  1965. function MfeDomainFeaturesProto(properties) {
  1966. this.supportedFeatures = [];
  1967. if (properties) {
  1968. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  1969. if (properties[keys[i]] != null)
  1970. this[keys[i]] = properties[keys[i]];
  1971. }
  1972. }
  1973. MfeDomainFeaturesProto.prototype.countryCode = "";
  1974. MfeDomainFeaturesProto.prototype.domainName = "";
  1975. MfeDomainFeaturesProto.prototype.supportedFeatures = $util.emptyArray;
  1976. MfeDomainFeaturesProto.decode = function decode(reader, length) {
  1977. if (!(reader instanceof $Reader))
  1978. reader = $Reader.create(reader);
  1979. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.MfeDomainFeaturesProto();
  1980. while (reader.pos < end) {
  1981. var tag = reader.uint32();
  1982. switch (tag >>> 3) {
  1983. case 1: {
  1984. message.countryCode = reader.string();
  1985. break;
  1986. }
  1987. case 2: {
  1988. message.domainName = reader.string();
  1989. break;
  1990. }
  1991. case 3: {
  1992. if (!(message.supportedFeatures && message.supportedFeatures.length))
  1993. message.supportedFeatures = [];
  1994. if ((tag & 7) === 2) {
  1995. var end2 = reader.uint32() + reader.pos;
  1996. while (reader.pos < end2)
  1997. message.supportedFeatures.push(reader.int32());
  1998. } else
  1999. message.supportedFeatures.push(reader.int32());
  2000. break;
  2001. }
  2002. default:
  2003. reader.skipType(tag & 7);
  2004. break;
  2005. }
  2006. }
  2007. if (!message.hasOwnProperty("countryCode"))
  2008. throw $util.ProtocolError("missing required 'countryCode'", { instance: message });
  2009. if (!message.hasOwnProperty("domainName"))
  2010. throw $util.ProtocolError("missing required 'domainName'", { instance: message });
  2011. return message;
  2012. };
  2013. MfeDomainFeaturesProto.verify = function verify(message) {
  2014. if (typeof message !== "object" || message === null)
  2015. return "object expected";
  2016. if (!$util.isString(message.countryCode))
  2017. return "countryCode: string expected";
  2018. if (!$util.isString(message.domainName))
  2019. return "domainName: string expected";
  2020. if (message.supportedFeatures != null && message.hasOwnProperty("supportedFeatures")) {
  2021. if (!Array.isArray(message.supportedFeatures))
  2022. return "supportedFeatures: array expected";
  2023. for (var i = 0; i < message.supportedFeatures.length; ++i)
  2024. switch (message.supportedFeatures[i]) {
  2025. default:
  2026. return "supportedFeatures: enum value[] expected";
  2027. case 0:
  2028. case 1:
  2029. case 2:
  2030. break;
  2031. }
  2032. }
  2033. return null;
  2034. };
  2035. MfeDomainFeaturesProto.fromObject = function fromObject(object) {
  2036. if (object instanceof $root.keyhole.dbroot.MfeDomainFeaturesProto)
  2037. return object;
  2038. var message = new $root.keyhole.dbroot.MfeDomainFeaturesProto();
  2039. if (object.countryCode != null)
  2040. message.countryCode = String(object.countryCode);
  2041. if (object.domainName != null)
  2042. message.domainName = String(object.domainName);
  2043. if (object.supportedFeatures) {
  2044. if (!Array.isArray(object.supportedFeatures))
  2045. throw TypeError(".keyhole.dbroot.MfeDomainFeaturesProto.supportedFeatures: array expected");
  2046. message.supportedFeatures = [];
  2047. for (var i = 0; i < object.supportedFeatures.length; ++i)
  2048. switch (object.supportedFeatures[i]) {
  2049. default:
  2050. case "GEOCODING":
  2051. case 0:
  2052. message.supportedFeatures[i] = 0;
  2053. break;
  2054. case "LOCAL_SEARCH":
  2055. case 1:
  2056. message.supportedFeatures[i] = 1;
  2057. break;
  2058. case "DRIVING_DIRECTIONS":
  2059. case 2:
  2060. message.supportedFeatures[i] = 2;
  2061. break;
  2062. }
  2063. }
  2064. return message;
  2065. };
  2066. MfeDomainFeaturesProto.toObject = function toObject(message, options) {
  2067. if (!options)
  2068. options = {};
  2069. var object = {};
  2070. if (options.arrays || options.defaults)
  2071. object.supportedFeatures = [];
  2072. if (options.defaults) {
  2073. object.countryCode = "";
  2074. object.domainName = "";
  2075. }
  2076. if (message.countryCode != null && message.hasOwnProperty("countryCode"))
  2077. object.countryCode = message.countryCode;
  2078. if (message.domainName != null && message.hasOwnProperty("domainName"))
  2079. object.domainName = message.domainName;
  2080. if (message.supportedFeatures && message.supportedFeatures.length) {
  2081. object.supportedFeatures = [];
  2082. for (var j = 0; j < message.supportedFeatures.length; ++j)
  2083. object.supportedFeatures[j] = options.enums === String ? $root.keyhole.dbroot.MfeDomainFeaturesProto.SupportedFeature[message.supportedFeatures[j]] : message.supportedFeatures[j];
  2084. }
  2085. return object;
  2086. };
  2087. MfeDomainFeaturesProto.prototype.toJSON = function toJSON() {
  2088. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2089. };
  2090. MfeDomainFeaturesProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  2091. if (typeUrlPrefix === void 0) {
  2092. typeUrlPrefix = "type.googleapis.com";
  2093. }
  2094. return typeUrlPrefix + "/keyhole.dbroot.MfeDomainFeaturesProto";
  2095. };
  2096. MfeDomainFeaturesProto.SupportedFeature = function() {
  2097. var valuesById = {}, values = Object.create(valuesById);
  2098. values[valuesById[0] = "GEOCODING"] = 0;
  2099. values[valuesById[1] = "LOCAL_SEARCH"] = 1;
  2100. values[valuesById[2] = "DRIVING_DIRECTIONS"] = 2;
  2101. return values;
  2102. }();
  2103. return MfeDomainFeaturesProto;
  2104. }();
  2105. dbroot.ClientOptionsProto = function() {
  2106. function ClientOptionsProto(properties) {
  2107. if (properties) {
  2108. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2109. if (properties[keys[i]] != null)
  2110. this[keys[i]] = properties[keys[i]];
  2111. }
  2112. }
  2113. ClientOptionsProto.prototype.disableDiskCache = false;
  2114. ClientOptionsProto.prototype.disableEmbeddedBrowserVista = false;
  2115. ClientOptionsProto.prototype.drawAtmosphere = true;
  2116. ClientOptionsProto.prototype.drawStars = true;
  2117. ClientOptionsProto.prototype.shaderFilePrefix = "";
  2118. ClientOptionsProto.prototype.useProtobufQuadtreePackets = false;
  2119. ClientOptionsProto.prototype.useExtendedCopyrightIds = true;
  2120. ClientOptionsProto.prototype.precipitationsOptions = null;
  2121. ClientOptionsProto.prototype.captureOptions = null;
  2122. ClientOptionsProto.prototype.show_2dMapsIcon = true;
  2123. ClientOptionsProto.prototype.disableInternalBrowser = false;
  2124. ClientOptionsProto.prototype.internalBrowserBlacklist = "";
  2125. ClientOptionsProto.prototype.internalBrowserOriginWhitelist = "*";
  2126. ClientOptionsProto.prototype.polarTileMergingLevel = 0;
  2127. ClientOptionsProto.prototype.jsBridgeRequestWhitelist = "http://*.google.com/*";
  2128. ClientOptionsProto.prototype.mapsOptions = null;
  2129. ClientOptionsProto.decode = function decode(reader, length) {
  2130. if (!(reader instanceof $Reader))
  2131. reader = $Reader.create(reader);
  2132. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.ClientOptionsProto();
  2133. while (reader.pos < end) {
  2134. var tag = reader.uint32();
  2135. switch (tag >>> 3) {
  2136. case 1: {
  2137. message.disableDiskCache = reader.bool();
  2138. break;
  2139. }
  2140. case 2: {
  2141. message.disableEmbeddedBrowserVista = reader.bool();
  2142. break;
  2143. }
  2144. case 3: {
  2145. message.drawAtmosphere = reader.bool();
  2146. break;
  2147. }
  2148. case 4: {
  2149. message.drawStars = reader.bool();
  2150. break;
  2151. }
  2152. case 5: {
  2153. message.shaderFilePrefix = reader.string();
  2154. break;
  2155. }
  2156. case 6: {
  2157. message.useProtobufQuadtreePackets = reader.bool();
  2158. break;
  2159. }
  2160. case 7: {
  2161. message.useExtendedCopyrightIds = reader.bool();
  2162. break;
  2163. }
  2164. case 8: {
  2165. message.precipitationsOptions = $root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.decode(reader, reader.uint32());
  2166. break;
  2167. }
  2168. case 9: {
  2169. message.captureOptions = $root.keyhole.dbroot.ClientOptionsProto.CaptureOptions.decode(reader, reader.uint32());
  2170. break;
  2171. }
  2172. case 10: {
  2173. message.show_2dMapsIcon = reader.bool();
  2174. break;
  2175. }
  2176. case 11: {
  2177. message.disableInternalBrowser = reader.bool();
  2178. break;
  2179. }
  2180. case 12: {
  2181. message.internalBrowserBlacklist = reader.string();
  2182. break;
  2183. }
  2184. case 13: {
  2185. message.internalBrowserOriginWhitelist = reader.string();
  2186. break;
  2187. }
  2188. case 14: {
  2189. message.polarTileMergingLevel = reader.int32();
  2190. break;
  2191. }
  2192. case 15: {
  2193. message.jsBridgeRequestWhitelist = reader.string();
  2194. break;
  2195. }
  2196. case 16: {
  2197. message.mapsOptions = $root.keyhole.dbroot.ClientOptionsProto.MapsOptions.decode(reader, reader.uint32());
  2198. break;
  2199. }
  2200. default:
  2201. reader.skipType(tag & 7);
  2202. break;
  2203. }
  2204. }
  2205. return message;
  2206. };
  2207. ClientOptionsProto.verify = function verify(message) {
  2208. if (typeof message !== "object" || message === null)
  2209. return "object expected";
  2210. if (message.disableDiskCache != null && message.hasOwnProperty("disableDiskCache")) {
  2211. if (typeof message.disableDiskCache !== "boolean")
  2212. return "disableDiskCache: boolean expected";
  2213. }
  2214. if (message.disableEmbeddedBrowserVista != null && message.hasOwnProperty("disableEmbeddedBrowserVista")) {
  2215. if (typeof message.disableEmbeddedBrowserVista !== "boolean")
  2216. return "disableEmbeddedBrowserVista: boolean expected";
  2217. }
  2218. if (message.drawAtmosphere != null && message.hasOwnProperty("drawAtmosphere")) {
  2219. if (typeof message.drawAtmosphere !== "boolean")
  2220. return "drawAtmosphere: boolean expected";
  2221. }
  2222. if (message.drawStars != null && message.hasOwnProperty("drawStars")) {
  2223. if (typeof message.drawStars !== "boolean")
  2224. return "drawStars: boolean expected";
  2225. }
  2226. if (message.shaderFilePrefix != null && message.hasOwnProperty("shaderFilePrefix")) {
  2227. if (!$util.isString(message.shaderFilePrefix))
  2228. return "shaderFilePrefix: string expected";
  2229. }
  2230. if (message.useProtobufQuadtreePackets != null && message.hasOwnProperty("useProtobufQuadtreePackets")) {
  2231. if (typeof message.useProtobufQuadtreePackets !== "boolean")
  2232. return "useProtobufQuadtreePackets: boolean expected";
  2233. }
  2234. if (message.useExtendedCopyrightIds != null && message.hasOwnProperty("useExtendedCopyrightIds")) {
  2235. if (typeof message.useExtendedCopyrightIds !== "boolean")
  2236. return "useExtendedCopyrightIds: boolean expected";
  2237. }
  2238. if (message.precipitationsOptions != null && message.hasOwnProperty("precipitationsOptions")) {
  2239. var error = $root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.verify(message.precipitationsOptions);
  2240. if (error)
  2241. return "precipitationsOptions." + error;
  2242. }
  2243. if (message.captureOptions != null && message.hasOwnProperty("captureOptions")) {
  2244. var error = $root.keyhole.dbroot.ClientOptionsProto.CaptureOptions.verify(message.captureOptions);
  2245. if (error)
  2246. return "captureOptions." + error;
  2247. }
  2248. if (message.show_2dMapsIcon != null && message.hasOwnProperty("show_2dMapsIcon")) {
  2249. if (typeof message.show_2dMapsIcon !== "boolean")
  2250. return "show_2dMapsIcon: boolean expected";
  2251. }
  2252. if (message.disableInternalBrowser != null && message.hasOwnProperty("disableInternalBrowser")) {
  2253. if (typeof message.disableInternalBrowser !== "boolean")
  2254. return "disableInternalBrowser: boolean expected";
  2255. }
  2256. if (message.internalBrowserBlacklist != null && message.hasOwnProperty("internalBrowserBlacklist")) {
  2257. if (!$util.isString(message.internalBrowserBlacklist))
  2258. return "internalBrowserBlacklist: string expected";
  2259. }
  2260. if (message.internalBrowserOriginWhitelist != null && message.hasOwnProperty("internalBrowserOriginWhitelist")) {
  2261. if (!$util.isString(message.internalBrowserOriginWhitelist))
  2262. return "internalBrowserOriginWhitelist: string expected";
  2263. }
  2264. if (message.polarTileMergingLevel != null && message.hasOwnProperty("polarTileMergingLevel")) {
  2265. if (!$util.isInteger(message.polarTileMergingLevel))
  2266. return "polarTileMergingLevel: integer expected";
  2267. }
  2268. if (message.jsBridgeRequestWhitelist != null && message.hasOwnProperty("jsBridgeRequestWhitelist")) {
  2269. if (!$util.isString(message.jsBridgeRequestWhitelist))
  2270. return "jsBridgeRequestWhitelist: string expected";
  2271. }
  2272. if (message.mapsOptions != null && message.hasOwnProperty("mapsOptions")) {
  2273. var error = $root.keyhole.dbroot.ClientOptionsProto.MapsOptions.verify(message.mapsOptions);
  2274. if (error)
  2275. return "mapsOptions." + error;
  2276. }
  2277. return null;
  2278. };
  2279. ClientOptionsProto.fromObject = function fromObject(object) {
  2280. if (object instanceof $root.keyhole.dbroot.ClientOptionsProto)
  2281. return object;
  2282. var message = new $root.keyhole.dbroot.ClientOptionsProto();
  2283. if (object.disableDiskCache != null)
  2284. message.disableDiskCache = Boolean(object.disableDiskCache);
  2285. if (object.disableEmbeddedBrowserVista != null)
  2286. message.disableEmbeddedBrowserVista = Boolean(object.disableEmbeddedBrowserVista);
  2287. if (object.drawAtmosphere != null)
  2288. message.drawAtmosphere = Boolean(object.drawAtmosphere);
  2289. if (object.drawStars != null)
  2290. message.drawStars = Boolean(object.drawStars);
  2291. if (object.shaderFilePrefix != null)
  2292. message.shaderFilePrefix = String(object.shaderFilePrefix);
  2293. if (object.useProtobufQuadtreePackets != null)
  2294. message.useProtobufQuadtreePackets = Boolean(object.useProtobufQuadtreePackets);
  2295. if (object.useExtendedCopyrightIds != null)
  2296. message.useExtendedCopyrightIds = Boolean(object.useExtendedCopyrightIds);
  2297. if (object.precipitationsOptions != null) {
  2298. if (typeof object.precipitationsOptions !== "object")
  2299. throw TypeError(".keyhole.dbroot.ClientOptionsProto.precipitationsOptions: object expected");
  2300. message.precipitationsOptions = $root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.fromObject(object.precipitationsOptions);
  2301. }
  2302. if (object.captureOptions != null) {
  2303. if (typeof object.captureOptions !== "object")
  2304. throw TypeError(".keyhole.dbroot.ClientOptionsProto.captureOptions: object expected");
  2305. message.captureOptions = $root.keyhole.dbroot.ClientOptionsProto.CaptureOptions.fromObject(object.captureOptions);
  2306. }
  2307. if (object.show_2dMapsIcon != null)
  2308. message.show_2dMapsIcon = Boolean(object.show_2dMapsIcon);
  2309. if (object.disableInternalBrowser != null)
  2310. message.disableInternalBrowser = Boolean(object.disableInternalBrowser);
  2311. if (object.internalBrowserBlacklist != null)
  2312. message.internalBrowserBlacklist = String(object.internalBrowserBlacklist);
  2313. if (object.internalBrowserOriginWhitelist != null)
  2314. message.internalBrowserOriginWhitelist = String(object.internalBrowserOriginWhitelist);
  2315. if (object.polarTileMergingLevel != null)
  2316. message.polarTileMergingLevel = object.polarTileMergingLevel | 0;
  2317. if (object.jsBridgeRequestWhitelist != null)
  2318. message.jsBridgeRequestWhitelist = String(object.jsBridgeRequestWhitelist);
  2319. if (object.mapsOptions != null) {
  2320. if (typeof object.mapsOptions !== "object")
  2321. throw TypeError(".keyhole.dbroot.ClientOptionsProto.mapsOptions: object expected");
  2322. message.mapsOptions = $root.keyhole.dbroot.ClientOptionsProto.MapsOptions.fromObject(object.mapsOptions);
  2323. }
  2324. return message;
  2325. };
  2326. ClientOptionsProto.toObject = function toObject(message, options) {
  2327. if (!options)
  2328. options = {};
  2329. var object = {};
  2330. if (options.defaults) {
  2331. object.disableDiskCache = false;
  2332. object.disableEmbeddedBrowserVista = false;
  2333. object.drawAtmosphere = true;
  2334. object.drawStars = true;
  2335. object.shaderFilePrefix = "";
  2336. object.useProtobufQuadtreePackets = false;
  2337. object.useExtendedCopyrightIds = true;
  2338. object.precipitationsOptions = null;
  2339. object.captureOptions = null;
  2340. object.show_2dMapsIcon = true;
  2341. object.disableInternalBrowser = false;
  2342. object.internalBrowserBlacklist = "";
  2343. object.internalBrowserOriginWhitelist = "*";
  2344. object.polarTileMergingLevel = 0;
  2345. object.jsBridgeRequestWhitelist = "http://*.google.com/*";
  2346. object.mapsOptions = null;
  2347. }
  2348. if (message.disableDiskCache != null && message.hasOwnProperty("disableDiskCache"))
  2349. object.disableDiskCache = message.disableDiskCache;
  2350. if (message.disableEmbeddedBrowserVista != null && message.hasOwnProperty("disableEmbeddedBrowserVista"))
  2351. object.disableEmbeddedBrowserVista = message.disableEmbeddedBrowserVista;
  2352. if (message.drawAtmosphere != null && message.hasOwnProperty("drawAtmosphere"))
  2353. object.drawAtmosphere = message.drawAtmosphere;
  2354. if (message.drawStars != null && message.hasOwnProperty("drawStars"))
  2355. object.drawStars = message.drawStars;
  2356. if (message.shaderFilePrefix != null && message.hasOwnProperty("shaderFilePrefix"))
  2357. object.shaderFilePrefix = message.shaderFilePrefix;
  2358. if (message.useProtobufQuadtreePackets != null && message.hasOwnProperty("useProtobufQuadtreePackets"))
  2359. object.useProtobufQuadtreePackets = message.useProtobufQuadtreePackets;
  2360. if (message.useExtendedCopyrightIds != null && message.hasOwnProperty("useExtendedCopyrightIds"))
  2361. object.useExtendedCopyrightIds = message.useExtendedCopyrightIds;
  2362. if (message.precipitationsOptions != null && message.hasOwnProperty("precipitationsOptions"))
  2363. object.precipitationsOptions = $root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.toObject(message.precipitationsOptions, options);
  2364. if (message.captureOptions != null && message.hasOwnProperty("captureOptions"))
  2365. object.captureOptions = $root.keyhole.dbroot.ClientOptionsProto.CaptureOptions.toObject(message.captureOptions, options);
  2366. if (message.show_2dMapsIcon != null && message.hasOwnProperty("show_2dMapsIcon"))
  2367. object.show_2dMapsIcon = message.show_2dMapsIcon;
  2368. if (message.disableInternalBrowser != null && message.hasOwnProperty("disableInternalBrowser"))
  2369. object.disableInternalBrowser = message.disableInternalBrowser;
  2370. if (message.internalBrowserBlacklist != null && message.hasOwnProperty("internalBrowserBlacklist"))
  2371. object.internalBrowserBlacklist = message.internalBrowserBlacklist;
  2372. if (message.internalBrowserOriginWhitelist != null && message.hasOwnProperty("internalBrowserOriginWhitelist"))
  2373. object.internalBrowserOriginWhitelist = message.internalBrowserOriginWhitelist;
  2374. if (message.polarTileMergingLevel != null && message.hasOwnProperty("polarTileMergingLevel"))
  2375. object.polarTileMergingLevel = message.polarTileMergingLevel;
  2376. if (message.jsBridgeRequestWhitelist != null && message.hasOwnProperty("jsBridgeRequestWhitelist"))
  2377. object.jsBridgeRequestWhitelist = message.jsBridgeRequestWhitelist;
  2378. if (message.mapsOptions != null && message.hasOwnProperty("mapsOptions"))
  2379. object.mapsOptions = $root.keyhole.dbroot.ClientOptionsProto.MapsOptions.toObject(message.mapsOptions, options);
  2380. return object;
  2381. };
  2382. ClientOptionsProto.prototype.toJSON = function toJSON() {
  2383. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2384. };
  2385. ClientOptionsProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  2386. if (typeUrlPrefix === void 0) {
  2387. typeUrlPrefix = "type.googleapis.com";
  2388. }
  2389. return typeUrlPrefix + "/keyhole.dbroot.ClientOptionsProto";
  2390. };
  2391. ClientOptionsProto.PrecipitationsOptions = function() {
  2392. function PrecipitationsOptions(properties) {
  2393. this.weatherMapping = [];
  2394. if (properties) {
  2395. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2396. if (properties[keys[i]] != null)
  2397. this[keys[i]] = properties[keys[i]];
  2398. }
  2399. }
  2400. PrecipitationsOptions.prototype.imageUrl = "";
  2401. PrecipitationsOptions.prototype.imageExpireTime = 900;
  2402. PrecipitationsOptions.prototype.maxColorDistance = 20;
  2403. PrecipitationsOptions.prototype.imageLevel = 5;
  2404. PrecipitationsOptions.prototype.weatherMapping = $util.emptyArray;
  2405. PrecipitationsOptions.prototype.cloudsLayerUrl = "";
  2406. PrecipitationsOptions.prototype.animationDecelerationDelay = 20;
  2407. PrecipitationsOptions.decode = function decode(reader, length) {
  2408. if (!(reader instanceof $Reader))
  2409. reader = $Reader.create(reader);
  2410. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions();
  2411. while (reader.pos < end) {
  2412. var tag = reader.uint32();
  2413. switch (tag >>> 3) {
  2414. case 1: {
  2415. message.imageUrl = reader.string();
  2416. break;
  2417. }
  2418. case 2: {
  2419. message.imageExpireTime = reader.int32();
  2420. break;
  2421. }
  2422. case 3: {
  2423. message.maxColorDistance = reader.int32();
  2424. break;
  2425. }
  2426. case 4: {
  2427. message.imageLevel = reader.int32();
  2428. break;
  2429. }
  2430. case 5: {
  2431. if (!(message.weatherMapping && message.weatherMapping.length))
  2432. message.weatherMapping = [];
  2433. message.weatherMapping.push($root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.WeatherMapping.decode(reader, reader.uint32()));
  2434. break;
  2435. }
  2436. case 6: {
  2437. message.cloudsLayerUrl = reader.string();
  2438. break;
  2439. }
  2440. case 7: {
  2441. message.animationDecelerationDelay = reader.float();
  2442. break;
  2443. }
  2444. default:
  2445. reader.skipType(tag & 7);
  2446. break;
  2447. }
  2448. }
  2449. return message;
  2450. };
  2451. PrecipitationsOptions.verify = function verify(message) {
  2452. if (typeof message !== "object" || message === null)
  2453. return "object expected";
  2454. if (message.imageUrl != null && message.hasOwnProperty("imageUrl")) {
  2455. if (!$util.isString(message.imageUrl))
  2456. return "imageUrl: string expected";
  2457. }
  2458. if (message.imageExpireTime != null && message.hasOwnProperty("imageExpireTime")) {
  2459. if (!$util.isInteger(message.imageExpireTime))
  2460. return "imageExpireTime: integer expected";
  2461. }
  2462. if (message.maxColorDistance != null && message.hasOwnProperty("maxColorDistance")) {
  2463. if (!$util.isInteger(message.maxColorDistance))
  2464. return "maxColorDistance: integer expected";
  2465. }
  2466. if (message.imageLevel != null && message.hasOwnProperty("imageLevel")) {
  2467. if (!$util.isInteger(message.imageLevel))
  2468. return "imageLevel: integer expected";
  2469. }
  2470. if (message.weatherMapping != null && message.hasOwnProperty("weatherMapping")) {
  2471. if (!Array.isArray(message.weatherMapping))
  2472. return "weatherMapping: array expected";
  2473. for (var i = 0; i < message.weatherMapping.length; ++i) {
  2474. var error = $root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.WeatherMapping.verify(message.weatherMapping[i]);
  2475. if (error)
  2476. return "weatherMapping." + error;
  2477. }
  2478. }
  2479. if (message.cloudsLayerUrl != null && message.hasOwnProperty("cloudsLayerUrl")) {
  2480. if (!$util.isString(message.cloudsLayerUrl))
  2481. return "cloudsLayerUrl: string expected";
  2482. }
  2483. if (message.animationDecelerationDelay != null && message.hasOwnProperty("animationDecelerationDelay")) {
  2484. if (typeof message.animationDecelerationDelay !== "number")
  2485. return "animationDecelerationDelay: number expected";
  2486. }
  2487. return null;
  2488. };
  2489. PrecipitationsOptions.fromObject = function fromObject(object) {
  2490. if (object instanceof $root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions)
  2491. return object;
  2492. var message = new $root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions();
  2493. if (object.imageUrl != null)
  2494. message.imageUrl = String(object.imageUrl);
  2495. if (object.imageExpireTime != null)
  2496. message.imageExpireTime = object.imageExpireTime | 0;
  2497. if (object.maxColorDistance != null)
  2498. message.maxColorDistance = object.maxColorDistance | 0;
  2499. if (object.imageLevel != null)
  2500. message.imageLevel = object.imageLevel | 0;
  2501. if (object.weatherMapping) {
  2502. if (!Array.isArray(object.weatherMapping))
  2503. throw TypeError(".keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.weatherMapping: array expected");
  2504. message.weatherMapping = [];
  2505. for (var i = 0; i < object.weatherMapping.length; ++i) {
  2506. if (typeof object.weatherMapping[i] !== "object")
  2507. throw TypeError(".keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.weatherMapping: object expected");
  2508. message.weatherMapping[i] = $root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.WeatherMapping.fromObject(object.weatherMapping[i]);
  2509. }
  2510. }
  2511. if (object.cloudsLayerUrl != null)
  2512. message.cloudsLayerUrl = String(object.cloudsLayerUrl);
  2513. if (object.animationDecelerationDelay != null)
  2514. message.animationDecelerationDelay = Number(object.animationDecelerationDelay);
  2515. return message;
  2516. };
  2517. PrecipitationsOptions.toObject = function toObject(message, options) {
  2518. if (!options)
  2519. options = {};
  2520. var object = {};
  2521. if (options.arrays || options.defaults)
  2522. object.weatherMapping = [];
  2523. if (options.defaults) {
  2524. object.imageUrl = "";
  2525. object.imageExpireTime = 900;
  2526. object.maxColorDistance = 20;
  2527. object.imageLevel = 5;
  2528. object.cloudsLayerUrl = "";
  2529. object.animationDecelerationDelay = 20;
  2530. }
  2531. if (message.imageUrl != null && message.hasOwnProperty("imageUrl"))
  2532. object.imageUrl = message.imageUrl;
  2533. if (message.imageExpireTime != null && message.hasOwnProperty("imageExpireTime"))
  2534. object.imageExpireTime = message.imageExpireTime;
  2535. if (message.maxColorDistance != null && message.hasOwnProperty("maxColorDistance"))
  2536. object.maxColorDistance = message.maxColorDistance;
  2537. if (message.imageLevel != null && message.hasOwnProperty("imageLevel"))
  2538. object.imageLevel = message.imageLevel;
  2539. if (message.weatherMapping && message.weatherMapping.length) {
  2540. object.weatherMapping = [];
  2541. for (var j = 0; j < message.weatherMapping.length; ++j)
  2542. object.weatherMapping[j] = $root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.WeatherMapping.toObject(message.weatherMapping[j], options);
  2543. }
  2544. if (message.cloudsLayerUrl != null && message.hasOwnProperty("cloudsLayerUrl"))
  2545. object.cloudsLayerUrl = message.cloudsLayerUrl;
  2546. if (message.animationDecelerationDelay != null && message.hasOwnProperty("animationDecelerationDelay"))
  2547. object.animationDecelerationDelay = options.json && !isFinite(message.animationDecelerationDelay) ? String(message.animationDecelerationDelay) : message.animationDecelerationDelay;
  2548. return object;
  2549. };
  2550. PrecipitationsOptions.prototype.toJSON = function toJSON() {
  2551. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2552. };
  2553. PrecipitationsOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  2554. if (typeUrlPrefix === void 0) {
  2555. typeUrlPrefix = "type.googleapis.com";
  2556. }
  2557. return typeUrlPrefix + "/keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions";
  2558. };
  2559. PrecipitationsOptions.WeatherMapping = function() {
  2560. function WeatherMapping(properties) {
  2561. if (properties) {
  2562. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2563. if (properties[keys[i]] != null)
  2564. this[keys[i]] = properties[keys[i]];
  2565. }
  2566. }
  2567. WeatherMapping.prototype.colorAbgr = 0;
  2568. WeatherMapping.prototype.weatherType = 0;
  2569. WeatherMapping.prototype.elongation = 1;
  2570. WeatherMapping.prototype.opacity = 0;
  2571. WeatherMapping.prototype.fogDensity = 0;
  2572. WeatherMapping.prototype.speed0 = 0;
  2573. WeatherMapping.prototype.speed1 = 0;
  2574. WeatherMapping.prototype.speed2 = 0;
  2575. WeatherMapping.prototype.speed3 = 0;
  2576. WeatherMapping.decode = function decode(reader, length) {
  2577. if (!(reader instanceof $Reader))
  2578. reader = $Reader.create(reader);
  2579. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.WeatherMapping();
  2580. while (reader.pos < end) {
  2581. var tag = reader.uint32();
  2582. switch (tag >>> 3) {
  2583. case 1: {
  2584. message.colorAbgr = reader.uint32();
  2585. break;
  2586. }
  2587. case 2: {
  2588. message.weatherType = reader.int32();
  2589. break;
  2590. }
  2591. case 3: {
  2592. message.elongation = reader.float();
  2593. break;
  2594. }
  2595. case 4: {
  2596. message.opacity = reader.float();
  2597. break;
  2598. }
  2599. case 5: {
  2600. message.fogDensity = reader.float();
  2601. break;
  2602. }
  2603. case 6: {
  2604. message.speed0 = reader.float();
  2605. break;
  2606. }
  2607. case 7: {
  2608. message.speed1 = reader.float();
  2609. break;
  2610. }
  2611. case 8: {
  2612. message.speed2 = reader.float();
  2613. break;
  2614. }
  2615. case 9: {
  2616. message.speed3 = reader.float();
  2617. break;
  2618. }
  2619. default:
  2620. reader.skipType(tag & 7);
  2621. break;
  2622. }
  2623. }
  2624. if (!message.hasOwnProperty("colorAbgr"))
  2625. throw $util.ProtocolError("missing required 'colorAbgr'", { instance: message });
  2626. if (!message.hasOwnProperty("weatherType"))
  2627. throw $util.ProtocolError("missing required 'weatherType'", { instance: message });
  2628. return message;
  2629. };
  2630. WeatherMapping.verify = function verify(message) {
  2631. if (typeof message !== "object" || message === null)
  2632. return "object expected";
  2633. if (!$util.isInteger(message.colorAbgr))
  2634. return "colorAbgr: integer expected";
  2635. switch (message.weatherType) {
  2636. default:
  2637. return "weatherType: enum value expected";
  2638. case 0:
  2639. case 1:
  2640. case 2:
  2641. break;
  2642. }
  2643. if (message.elongation != null && message.hasOwnProperty("elongation")) {
  2644. if (typeof message.elongation !== "number")
  2645. return "elongation: number expected";
  2646. }
  2647. if (message.opacity != null && message.hasOwnProperty("opacity")) {
  2648. if (typeof message.opacity !== "number")
  2649. return "opacity: number expected";
  2650. }
  2651. if (message.fogDensity != null && message.hasOwnProperty("fogDensity")) {
  2652. if (typeof message.fogDensity !== "number")
  2653. return "fogDensity: number expected";
  2654. }
  2655. if (message.speed0 != null && message.hasOwnProperty("speed0")) {
  2656. if (typeof message.speed0 !== "number")
  2657. return "speed0: number expected";
  2658. }
  2659. if (message.speed1 != null && message.hasOwnProperty("speed1")) {
  2660. if (typeof message.speed1 !== "number")
  2661. return "speed1: number expected";
  2662. }
  2663. if (message.speed2 != null && message.hasOwnProperty("speed2")) {
  2664. if (typeof message.speed2 !== "number")
  2665. return "speed2: number expected";
  2666. }
  2667. if (message.speed3 != null && message.hasOwnProperty("speed3")) {
  2668. if (typeof message.speed3 !== "number")
  2669. return "speed3: number expected";
  2670. }
  2671. return null;
  2672. };
  2673. WeatherMapping.fromObject = function fromObject(object) {
  2674. if (object instanceof $root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.WeatherMapping)
  2675. return object;
  2676. var message = new $root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.WeatherMapping();
  2677. if (object.colorAbgr != null)
  2678. message.colorAbgr = object.colorAbgr >>> 0;
  2679. switch (object.weatherType) {
  2680. case "NO_PRECIPITATION":
  2681. case 0:
  2682. message.weatherType = 0;
  2683. break;
  2684. case "RAIN":
  2685. case 1:
  2686. message.weatherType = 1;
  2687. break;
  2688. case "SNOW":
  2689. case 2:
  2690. message.weatherType = 2;
  2691. break;
  2692. }
  2693. if (object.elongation != null)
  2694. message.elongation = Number(object.elongation);
  2695. if (object.opacity != null)
  2696. message.opacity = Number(object.opacity);
  2697. if (object.fogDensity != null)
  2698. message.fogDensity = Number(object.fogDensity);
  2699. if (object.speed0 != null)
  2700. message.speed0 = Number(object.speed0);
  2701. if (object.speed1 != null)
  2702. message.speed1 = Number(object.speed1);
  2703. if (object.speed2 != null)
  2704. message.speed2 = Number(object.speed2);
  2705. if (object.speed3 != null)
  2706. message.speed3 = Number(object.speed3);
  2707. return message;
  2708. };
  2709. WeatherMapping.toObject = function toObject(message, options) {
  2710. if (!options)
  2711. options = {};
  2712. var object = {};
  2713. if (options.defaults) {
  2714. object.colorAbgr = 0;
  2715. object.weatherType = options.enums === String ? "NO_PRECIPITATION" : 0;
  2716. object.elongation = 1;
  2717. object.opacity = 0;
  2718. object.fogDensity = 0;
  2719. object.speed0 = 0;
  2720. object.speed1 = 0;
  2721. object.speed2 = 0;
  2722. object.speed3 = 0;
  2723. }
  2724. if (message.colorAbgr != null && message.hasOwnProperty("colorAbgr"))
  2725. object.colorAbgr = message.colorAbgr;
  2726. if (message.weatherType != null && message.hasOwnProperty("weatherType"))
  2727. object.weatherType = options.enums === String ? $root.keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.WeatherMapping.WeatherType[message.weatherType] : message.weatherType;
  2728. if (message.elongation != null && message.hasOwnProperty("elongation"))
  2729. object.elongation = options.json && !isFinite(message.elongation) ? String(message.elongation) : message.elongation;
  2730. if (message.opacity != null && message.hasOwnProperty("opacity"))
  2731. object.opacity = options.json && !isFinite(message.opacity) ? String(message.opacity) : message.opacity;
  2732. if (message.fogDensity != null && message.hasOwnProperty("fogDensity"))
  2733. object.fogDensity = options.json && !isFinite(message.fogDensity) ? String(message.fogDensity) : message.fogDensity;
  2734. if (message.speed0 != null && message.hasOwnProperty("speed0"))
  2735. object.speed0 = options.json && !isFinite(message.speed0) ? String(message.speed0) : message.speed0;
  2736. if (message.speed1 != null && message.hasOwnProperty("speed1"))
  2737. object.speed1 = options.json && !isFinite(message.speed1) ? String(message.speed1) : message.speed1;
  2738. if (message.speed2 != null && message.hasOwnProperty("speed2"))
  2739. object.speed2 = options.json && !isFinite(message.speed2) ? String(message.speed2) : message.speed2;
  2740. if (message.speed3 != null && message.hasOwnProperty("speed3"))
  2741. object.speed3 = options.json && !isFinite(message.speed3) ? String(message.speed3) : message.speed3;
  2742. return object;
  2743. };
  2744. WeatherMapping.prototype.toJSON = function toJSON() {
  2745. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2746. };
  2747. WeatherMapping.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  2748. if (typeUrlPrefix === void 0) {
  2749. typeUrlPrefix = "type.googleapis.com";
  2750. }
  2751. return typeUrlPrefix + "/keyhole.dbroot.ClientOptionsProto.PrecipitationsOptions.WeatherMapping";
  2752. };
  2753. WeatherMapping.WeatherType = function() {
  2754. var valuesById = {}, values = Object.create(valuesById);
  2755. values[valuesById[0] = "NO_PRECIPITATION"] = 0;
  2756. values[valuesById[1] = "RAIN"] = 1;
  2757. values[valuesById[2] = "SNOW"] = 2;
  2758. return values;
  2759. }();
  2760. return WeatherMapping;
  2761. }();
  2762. return PrecipitationsOptions;
  2763. }();
  2764. ClientOptionsProto.CaptureOptions = function() {
  2765. function CaptureOptions(properties) {
  2766. if (properties) {
  2767. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2768. if (properties[keys[i]] != null)
  2769. this[keys[i]] = properties[keys[i]];
  2770. }
  2771. }
  2772. CaptureOptions.prototype.allowSaveAsImage = true;
  2773. CaptureOptions.prototype.maxFreeCaptureRes = 2400;
  2774. CaptureOptions.prototype.maxPremiumCaptureRes = 4800;
  2775. CaptureOptions.decode = function decode(reader, length) {
  2776. if (!(reader instanceof $Reader))
  2777. reader = $Reader.create(reader);
  2778. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.ClientOptionsProto.CaptureOptions();
  2779. while (reader.pos < end) {
  2780. var tag = reader.uint32();
  2781. switch (tag >>> 3) {
  2782. case 1: {
  2783. message.allowSaveAsImage = reader.bool();
  2784. break;
  2785. }
  2786. case 2: {
  2787. message.maxFreeCaptureRes = reader.int32();
  2788. break;
  2789. }
  2790. case 3: {
  2791. message.maxPremiumCaptureRes = reader.int32();
  2792. break;
  2793. }
  2794. default:
  2795. reader.skipType(tag & 7);
  2796. break;
  2797. }
  2798. }
  2799. return message;
  2800. };
  2801. CaptureOptions.verify = function verify(message) {
  2802. if (typeof message !== "object" || message === null)
  2803. return "object expected";
  2804. if (message.allowSaveAsImage != null && message.hasOwnProperty("allowSaveAsImage")) {
  2805. if (typeof message.allowSaveAsImage !== "boolean")
  2806. return "allowSaveAsImage: boolean expected";
  2807. }
  2808. if (message.maxFreeCaptureRes != null && message.hasOwnProperty("maxFreeCaptureRes")) {
  2809. if (!$util.isInteger(message.maxFreeCaptureRes))
  2810. return "maxFreeCaptureRes: integer expected";
  2811. }
  2812. if (message.maxPremiumCaptureRes != null && message.hasOwnProperty("maxPremiumCaptureRes")) {
  2813. if (!$util.isInteger(message.maxPremiumCaptureRes))
  2814. return "maxPremiumCaptureRes: integer expected";
  2815. }
  2816. return null;
  2817. };
  2818. CaptureOptions.fromObject = function fromObject(object) {
  2819. if (object instanceof $root.keyhole.dbroot.ClientOptionsProto.CaptureOptions)
  2820. return object;
  2821. var message = new $root.keyhole.dbroot.ClientOptionsProto.CaptureOptions();
  2822. if (object.allowSaveAsImage != null)
  2823. message.allowSaveAsImage = Boolean(object.allowSaveAsImage);
  2824. if (object.maxFreeCaptureRes != null)
  2825. message.maxFreeCaptureRes = object.maxFreeCaptureRes | 0;
  2826. if (object.maxPremiumCaptureRes != null)
  2827. message.maxPremiumCaptureRes = object.maxPremiumCaptureRes | 0;
  2828. return message;
  2829. };
  2830. CaptureOptions.toObject = function toObject(message, options) {
  2831. if (!options)
  2832. options = {};
  2833. var object = {};
  2834. if (options.defaults) {
  2835. object.allowSaveAsImage = true;
  2836. object.maxFreeCaptureRes = 2400;
  2837. object.maxPremiumCaptureRes = 4800;
  2838. }
  2839. if (message.allowSaveAsImage != null && message.hasOwnProperty("allowSaveAsImage"))
  2840. object.allowSaveAsImage = message.allowSaveAsImage;
  2841. if (message.maxFreeCaptureRes != null && message.hasOwnProperty("maxFreeCaptureRes"))
  2842. object.maxFreeCaptureRes = message.maxFreeCaptureRes;
  2843. if (message.maxPremiumCaptureRes != null && message.hasOwnProperty("maxPremiumCaptureRes"))
  2844. object.maxPremiumCaptureRes = message.maxPremiumCaptureRes;
  2845. return object;
  2846. };
  2847. CaptureOptions.prototype.toJSON = function toJSON() {
  2848. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2849. };
  2850. CaptureOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  2851. if (typeUrlPrefix === void 0) {
  2852. typeUrlPrefix = "type.googleapis.com";
  2853. }
  2854. return typeUrlPrefix + "/keyhole.dbroot.ClientOptionsProto.CaptureOptions";
  2855. };
  2856. return CaptureOptions;
  2857. }();
  2858. ClientOptionsProto.MapsOptions = function() {
  2859. function MapsOptions(properties) {
  2860. if (properties) {
  2861. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2862. if (properties[keys[i]] != null)
  2863. this[keys[i]] = properties[keys[i]];
  2864. }
  2865. }
  2866. MapsOptions.prototype.enableMaps = false;
  2867. MapsOptions.prototype.docsAutoDownloadEnabled = false;
  2868. MapsOptions.prototype.docsAutoDownloadInterval = 0;
  2869. MapsOptions.prototype.docsAutoUploadEnabled = false;
  2870. MapsOptions.prototype.docsAutoUploadDelay = 0;
  2871. MapsOptions.decode = function decode(reader, length) {
  2872. if (!(reader instanceof $Reader))
  2873. reader = $Reader.create(reader);
  2874. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.ClientOptionsProto.MapsOptions();
  2875. while (reader.pos < end) {
  2876. var tag = reader.uint32();
  2877. switch (tag >>> 3) {
  2878. case 1: {
  2879. message.enableMaps = reader.bool();
  2880. break;
  2881. }
  2882. case 2: {
  2883. message.docsAutoDownloadEnabled = reader.bool();
  2884. break;
  2885. }
  2886. case 3: {
  2887. message.docsAutoDownloadInterval = reader.int32();
  2888. break;
  2889. }
  2890. case 4: {
  2891. message.docsAutoUploadEnabled = reader.bool();
  2892. break;
  2893. }
  2894. case 5: {
  2895. message.docsAutoUploadDelay = reader.int32();
  2896. break;
  2897. }
  2898. default:
  2899. reader.skipType(tag & 7);
  2900. break;
  2901. }
  2902. }
  2903. return message;
  2904. };
  2905. MapsOptions.verify = function verify(message) {
  2906. if (typeof message !== "object" || message === null)
  2907. return "object expected";
  2908. if (message.enableMaps != null && message.hasOwnProperty("enableMaps")) {
  2909. if (typeof message.enableMaps !== "boolean")
  2910. return "enableMaps: boolean expected";
  2911. }
  2912. if (message.docsAutoDownloadEnabled != null && message.hasOwnProperty("docsAutoDownloadEnabled")) {
  2913. if (typeof message.docsAutoDownloadEnabled !== "boolean")
  2914. return "docsAutoDownloadEnabled: boolean expected";
  2915. }
  2916. if (message.docsAutoDownloadInterval != null && message.hasOwnProperty("docsAutoDownloadInterval")) {
  2917. if (!$util.isInteger(message.docsAutoDownloadInterval))
  2918. return "docsAutoDownloadInterval: integer expected";
  2919. }
  2920. if (message.docsAutoUploadEnabled != null && message.hasOwnProperty("docsAutoUploadEnabled")) {
  2921. if (typeof message.docsAutoUploadEnabled !== "boolean")
  2922. return "docsAutoUploadEnabled: boolean expected";
  2923. }
  2924. if (message.docsAutoUploadDelay != null && message.hasOwnProperty("docsAutoUploadDelay")) {
  2925. if (!$util.isInteger(message.docsAutoUploadDelay))
  2926. return "docsAutoUploadDelay: integer expected";
  2927. }
  2928. return null;
  2929. };
  2930. MapsOptions.fromObject = function fromObject(object) {
  2931. if (object instanceof $root.keyhole.dbroot.ClientOptionsProto.MapsOptions)
  2932. return object;
  2933. var message = new $root.keyhole.dbroot.ClientOptionsProto.MapsOptions();
  2934. if (object.enableMaps != null)
  2935. message.enableMaps = Boolean(object.enableMaps);
  2936. if (object.docsAutoDownloadEnabled != null)
  2937. message.docsAutoDownloadEnabled = Boolean(object.docsAutoDownloadEnabled);
  2938. if (object.docsAutoDownloadInterval != null)
  2939. message.docsAutoDownloadInterval = object.docsAutoDownloadInterval | 0;
  2940. if (object.docsAutoUploadEnabled != null)
  2941. message.docsAutoUploadEnabled = Boolean(object.docsAutoUploadEnabled);
  2942. if (object.docsAutoUploadDelay != null)
  2943. message.docsAutoUploadDelay = object.docsAutoUploadDelay | 0;
  2944. return message;
  2945. };
  2946. MapsOptions.toObject = function toObject(message, options) {
  2947. if (!options)
  2948. options = {};
  2949. var object = {};
  2950. if (options.defaults) {
  2951. object.enableMaps = false;
  2952. object.docsAutoDownloadEnabled = false;
  2953. object.docsAutoDownloadInterval = 0;
  2954. object.docsAutoUploadEnabled = false;
  2955. object.docsAutoUploadDelay = 0;
  2956. }
  2957. if (message.enableMaps != null && message.hasOwnProperty("enableMaps"))
  2958. object.enableMaps = message.enableMaps;
  2959. if (message.docsAutoDownloadEnabled != null && message.hasOwnProperty("docsAutoDownloadEnabled"))
  2960. object.docsAutoDownloadEnabled = message.docsAutoDownloadEnabled;
  2961. if (message.docsAutoDownloadInterval != null && message.hasOwnProperty("docsAutoDownloadInterval"))
  2962. object.docsAutoDownloadInterval = message.docsAutoDownloadInterval;
  2963. if (message.docsAutoUploadEnabled != null && message.hasOwnProperty("docsAutoUploadEnabled"))
  2964. object.docsAutoUploadEnabled = message.docsAutoUploadEnabled;
  2965. if (message.docsAutoUploadDelay != null && message.hasOwnProperty("docsAutoUploadDelay"))
  2966. object.docsAutoUploadDelay = message.docsAutoUploadDelay;
  2967. return object;
  2968. };
  2969. MapsOptions.prototype.toJSON = function toJSON() {
  2970. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2971. };
  2972. MapsOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  2973. if (typeUrlPrefix === void 0) {
  2974. typeUrlPrefix = "type.googleapis.com";
  2975. }
  2976. return typeUrlPrefix + "/keyhole.dbroot.ClientOptionsProto.MapsOptions";
  2977. };
  2978. return MapsOptions;
  2979. }();
  2980. return ClientOptionsProto;
  2981. }();
  2982. dbroot.FetchingOptionsProto = function() {
  2983. function FetchingOptionsProto(properties) {
  2984. if (properties) {
  2985. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2986. if (properties[keys[i]] != null)
  2987. this[keys[i]] = properties[keys[i]];
  2988. }
  2989. }
  2990. FetchingOptionsProto.prototype.maxRequestsPerQuery = 1;
  2991. FetchingOptionsProto.prototype.forceMaxRequestsPerQuery = false;
  2992. FetchingOptionsProto.prototype.sortBatches = false;
  2993. FetchingOptionsProto.prototype.maxDrawable = 2;
  2994. FetchingOptionsProto.prototype.maxImagery = 2;
  2995. FetchingOptionsProto.prototype.maxTerrain = 5;
  2996. FetchingOptionsProto.prototype.maxQuadtree = 5;
  2997. FetchingOptionsProto.prototype.maxDioramaMetadata = 1;
  2998. FetchingOptionsProto.prototype.maxDioramaData = 0;
  2999. FetchingOptionsProto.prototype.maxConsumerFetchRatio = 1;
  3000. FetchingOptionsProto.prototype.maxProEcFetchRatio = 0;
  3001. FetchingOptionsProto.prototype.safeOverallQps = 0;
  3002. FetchingOptionsProto.prototype.safeImageryQps = 0;
  3003. FetchingOptionsProto.prototype.domainsForHttps = "google.com gstatic.com";
  3004. FetchingOptionsProto.prototype.hostsForHttp = "";
  3005. FetchingOptionsProto.decode = function decode(reader, length) {
  3006. if (!(reader instanceof $Reader))
  3007. reader = $Reader.create(reader);
  3008. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.FetchingOptionsProto();
  3009. while (reader.pos < end) {
  3010. var tag = reader.uint32();
  3011. switch (tag >>> 3) {
  3012. case 1: {
  3013. message.maxRequestsPerQuery = reader.int32();
  3014. break;
  3015. }
  3016. case 12: {
  3017. message.forceMaxRequestsPerQuery = reader.bool();
  3018. break;
  3019. }
  3020. case 13: {
  3021. message.sortBatches = reader.bool();
  3022. break;
  3023. }
  3024. case 2: {
  3025. message.maxDrawable = reader.int32();
  3026. break;
  3027. }
  3028. case 3: {
  3029. message.maxImagery = reader.int32();
  3030. break;
  3031. }
  3032. case 4: {
  3033. message.maxTerrain = reader.int32();
  3034. break;
  3035. }
  3036. case 5: {
  3037. message.maxQuadtree = reader.int32();
  3038. break;
  3039. }
  3040. case 6: {
  3041. message.maxDioramaMetadata = reader.int32();
  3042. break;
  3043. }
  3044. case 7: {
  3045. message.maxDioramaData = reader.int32();
  3046. break;
  3047. }
  3048. case 8: {
  3049. message.maxConsumerFetchRatio = reader.float();
  3050. break;
  3051. }
  3052. case 9: {
  3053. message.maxProEcFetchRatio = reader.float();
  3054. break;
  3055. }
  3056. case 10: {
  3057. message.safeOverallQps = reader.float();
  3058. break;
  3059. }
  3060. case 11: {
  3061. message.safeImageryQps = reader.float();
  3062. break;
  3063. }
  3064. case 14: {
  3065. message.domainsForHttps = reader.string();
  3066. break;
  3067. }
  3068. case 15: {
  3069. message.hostsForHttp = reader.string();
  3070. break;
  3071. }
  3072. default:
  3073. reader.skipType(tag & 7);
  3074. break;
  3075. }
  3076. }
  3077. return message;
  3078. };
  3079. FetchingOptionsProto.verify = function verify(message) {
  3080. if (typeof message !== "object" || message === null)
  3081. return "object expected";
  3082. if (message.maxRequestsPerQuery != null && message.hasOwnProperty("maxRequestsPerQuery")) {
  3083. if (!$util.isInteger(message.maxRequestsPerQuery))
  3084. return "maxRequestsPerQuery: integer expected";
  3085. }
  3086. if (message.forceMaxRequestsPerQuery != null && message.hasOwnProperty("forceMaxRequestsPerQuery")) {
  3087. if (typeof message.forceMaxRequestsPerQuery !== "boolean")
  3088. return "forceMaxRequestsPerQuery: boolean expected";
  3089. }
  3090. if (message.sortBatches != null && message.hasOwnProperty("sortBatches")) {
  3091. if (typeof message.sortBatches !== "boolean")
  3092. return "sortBatches: boolean expected";
  3093. }
  3094. if (message.maxDrawable != null && message.hasOwnProperty("maxDrawable")) {
  3095. if (!$util.isInteger(message.maxDrawable))
  3096. return "maxDrawable: integer expected";
  3097. }
  3098. if (message.maxImagery != null && message.hasOwnProperty("maxImagery")) {
  3099. if (!$util.isInteger(message.maxImagery))
  3100. return "maxImagery: integer expected";
  3101. }
  3102. if (message.maxTerrain != null && message.hasOwnProperty("maxTerrain")) {
  3103. if (!$util.isInteger(message.maxTerrain))
  3104. return "maxTerrain: integer expected";
  3105. }
  3106. if (message.maxQuadtree != null && message.hasOwnProperty("maxQuadtree")) {
  3107. if (!$util.isInteger(message.maxQuadtree))
  3108. return "maxQuadtree: integer expected";
  3109. }
  3110. if (message.maxDioramaMetadata != null && message.hasOwnProperty("maxDioramaMetadata")) {
  3111. if (!$util.isInteger(message.maxDioramaMetadata))
  3112. return "maxDioramaMetadata: integer expected";
  3113. }
  3114. if (message.maxDioramaData != null && message.hasOwnProperty("maxDioramaData")) {
  3115. if (!$util.isInteger(message.maxDioramaData))
  3116. return "maxDioramaData: integer expected";
  3117. }
  3118. if (message.maxConsumerFetchRatio != null && message.hasOwnProperty("maxConsumerFetchRatio")) {
  3119. if (typeof message.maxConsumerFetchRatio !== "number")
  3120. return "maxConsumerFetchRatio: number expected";
  3121. }
  3122. if (message.maxProEcFetchRatio != null && message.hasOwnProperty("maxProEcFetchRatio")) {
  3123. if (typeof message.maxProEcFetchRatio !== "number")
  3124. return "maxProEcFetchRatio: number expected";
  3125. }
  3126. if (message.safeOverallQps != null && message.hasOwnProperty("safeOverallQps")) {
  3127. if (typeof message.safeOverallQps !== "number")
  3128. return "safeOverallQps: number expected";
  3129. }
  3130. if (message.safeImageryQps != null && message.hasOwnProperty("safeImageryQps")) {
  3131. if (typeof message.safeImageryQps !== "number")
  3132. return "safeImageryQps: number expected";
  3133. }
  3134. if (message.domainsForHttps != null && message.hasOwnProperty("domainsForHttps")) {
  3135. if (!$util.isString(message.domainsForHttps))
  3136. return "domainsForHttps: string expected";
  3137. }
  3138. if (message.hostsForHttp != null && message.hasOwnProperty("hostsForHttp")) {
  3139. if (!$util.isString(message.hostsForHttp))
  3140. return "hostsForHttp: string expected";
  3141. }
  3142. return null;
  3143. };
  3144. FetchingOptionsProto.fromObject = function fromObject(object) {
  3145. if (object instanceof $root.keyhole.dbroot.FetchingOptionsProto)
  3146. return object;
  3147. var message = new $root.keyhole.dbroot.FetchingOptionsProto();
  3148. if (object.maxRequestsPerQuery != null)
  3149. message.maxRequestsPerQuery = object.maxRequestsPerQuery | 0;
  3150. if (object.forceMaxRequestsPerQuery != null)
  3151. message.forceMaxRequestsPerQuery = Boolean(object.forceMaxRequestsPerQuery);
  3152. if (object.sortBatches != null)
  3153. message.sortBatches = Boolean(object.sortBatches);
  3154. if (object.maxDrawable != null)
  3155. message.maxDrawable = object.maxDrawable | 0;
  3156. if (object.maxImagery != null)
  3157. message.maxImagery = object.maxImagery | 0;
  3158. if (object.maxTerrain != null)
  3159. message.maxTerrain = object.maxTerrain | 0;
  3160. if (object.maxQuadtree != null)
  3161. message.maxQuadtree = object.maxQuadtree | 0;
  3162. if (object.maxDioramaMetadata != null)
  3163. message.maxDioramaMetadata = object.maxDioramaMetadata | 0;
  3164. if (object.maxDioramaData != null)
  3165. message.maxDioramaData = object.maxDioramaData | 0;
  3166. if (object.maxConsumerFetchRatio != null)
  3167. message.maxConsumerFetchRatio = Number(object.maxConsumerFetchRatio);
  3168. if (object.maxProEcFetchRatio != null)
  3169. message.maxProEcFetchRatio = Number(object.maxProEcFetchRatio);
  3170. if (object.safeOverallQps != null)
  3171. message.safeOverallQps = Number(object.safeOverallQps);
  3172. if (object.safeImageryQps != null)
  3173. message.safeImageryQps = Number(object.safeImageryQps);
  3174. if (object.domainsForHttps != null)
  3175. message.domainsForHttps = String(object.domainsForHttps);
  3176. if (object.hostsForHttp != null)
  3177. message.hostsForHttp = String(object.hostsForHttp);
  3178. return message;
  3179. };
  3180. FetchingOptionsProto.toObject = function toObject(message, options) {
  3181. if (!options)
  3182. options = {};
  3183. var object = {};
  3184. if (options.defaults) {
  3185. object.maxRequestsPerQuery = 1;
  3186. object.maxDrawable = 2;
  3187. object.maxImagery = 2;
  3188. object.maxTerrain = 5;
  3189. object.maxQuadtree = 5;
  3190. object.maxDioramaMetadata = 1;
  3191. object.maxDioramaData = 0;
  3192. object.maxConsumerFetchRatio = 1;
  3193. object.maxProEcFetchRatio = 0;
  3194. object.safeOverallQps = 0;
  3195. object.safeImageryQps = 0;
  3196. object.forceMaxRequestsPerQuery = false;
  3197. object.sortBatches = false;
  3198. object.domainsForHttps = "google.com gstatic.com";
  3199. object.hostsForHttp = "";
  3200. }
  3201. if (message.maxRequestsPerQuery != null && message.hasOwnProperty("maxRequestsPerQuery"))
  3202. object.maxRequestsPerQuery = message.maxRequestsPerQuery;
  3203. if (message.maxDrawable != null && message.hasOwnProperty("maxDrawable"))
  3204. object.maxDrawable = message.maxDrawable;
  3205. if (message.maxImagery != null && message.hasOwnProperty("maxImagery"))
  3206. object.maxImagery = message.maxImagery;
  3207. if (message.maxTerrain != null && message.hasOwnProperty("maxTerrain"))
  3208. object.maxTerrain = message.maxTerrain;
  3209. if (message.maxQuadtree != null && message.hasOwnProperty("maxQuadtree"))
  3210. object.maxQuadtree = message.maxQuadtree;
  3211. if (message.maxDioramaMetadata != null && message.hasOwnProperty("maxDioramaMetadata"))
  3212. object.maxDioramaMetadata = message.maxDioramaMetadata;
  3213. if (message.maxDioramaData != null && message.hasOwnProperty("maxDioramaData"))
  3214. object.maxDioramaData = message.maxDioramaData;
  3215. if (message.maxConsumerFetchRatio != null && message.hasOwnProperty("maxConsumerFetchRatio"))
  3216. object.maxConsumerFetchRatio = options.json && !isFinite(message.maxConsumerFetchRatio) ? String(message.maxConsumerFetchRatio) : message.maxConsumerFetchRatio;
  3217. if (message.maxProEcFetchRatio != null && message.hasOwnProperty("maxProEcFetchRatio"))
  3218. object.maxProEcFetchRatio = options.json && !isFinite(message.maxProEcFetchRatio) ? String(message.maxProEcFetchRatio) : message.maxProEcFetchRatio;
  3219. if (message.safeOverallQps != null && message.hasOwnProperty("safeOverallQps"))
  3220. object.safeOverallQps = options.json && !isFinite(message.safeOverallQps) ? String(message.safeOverallQps) : message.safeOverallQps;
  3221. if (message.safeImageryQps != null && message.hasOwnProperty("safeImageryQps"))
  3222. object.safeImageryQps = options.json && !isFinite(message.safeImageryQps) ? String(message.safeImageryQps) : message.safeImageryQps;
  3223. if (message.forceMaxRequestsPerQuery != null && message.hasOwnProperty("forceMaxRequestsPerQuery"))
  3224. object.forceMaxRequestsPerQuery = message.forceMaxRequestsPerQuery;
  3225. if (message.sortBatches != null && message.hasOwnProperty("sortBatches"))
  3226. object.sortBatches = message.sortBatches;
  3227. if (message.domainsForHttps != null && message.hasOwnProperty("domainsForHttps"))
  3228. object.domainsForHttps = message.domainsForHttps;
  3229. if (message.hostsForHttp != null && message.hasOwnProperty("hostsForHttp"))
  3230. object.hostsForHttp = message.hostsForHttp;
  3231. return object;
  3232. };
  3233. FetchingOptionsProto.prototype.toJSON = function toJSON() {
  3234. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3235. };
  3236. FetchingOptionsProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  3237. if (typeUrlPrefix === void 0) {
  3238. typeUrlPrefix = "type.googleapis.com";
  3239. }
  3240. return typeUrlPrefix + "/keyhole.dbroot.FetchingOptionsProto";
  3241. };
  3242. return FetchingOptionsProto;
  3243. }();
  3244. dbroot.TimeMachineOptionsProto = function() {
  3245. function TimeMachineOptionsProto(properties) {
  3246. if (properties) {
  3247. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3248. if (properties[keys[i]] != null)
  3249. this[keys[i]] = properties[keys[i]];
  3250. }
  3251. }
  3252. TimeMachineOptionsProto.prototype.serverUrl = "";
  3253. TimeMachineOptionsProto.prototype.isTimemachine = false;
  3254. TimeMachineOptionsProto.prototype.dwellTimeMs = 500;
  3255. TimeMachineOptionsProto.prototype.discoverabilityAltitudeMeters = 15e3;
  3256. TimeMachineOptionsProto.decode = function decode(reader, length) {
  3257. if (!(reader instanceof $Reader))
  3258. reader = $Reader.create(reader);
  3259. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.TimeMachineOptionsProto();
  3260. while (reader.pos < end) {
  3261. var tag = reader.uint32();
  3262. switch (tag >>> 3) {
  3263. case 1: {
  3264. message.serverUrl = reader.string();
  3265. break;
  3266. }
  3267. case 2: {
  3268. message.isTimemachine = reader.bool();
  3269. break;
  3270. }
  3271. case 3: {
  3272. message.dwellTimeMs = reader.int32();
  3273. break;
  3274. }
  3275. case 4: {
  3276. message.discoverabilityAltitudeMeters = reader.int32();
  3277. break;
  3278. }
  3279. default:
  3280. reader.skipType(tag & 7);
  3281. break;
  3282. }
  3283. }
  3284. return message;
  3285. };
  3286. TimeMachineOptionsProto.verify = function verify(message) {
  3287. if (typeof message !== "object" || message === null)
  3288. return "object expected";
  3289. if (message.serverUrl != null && message.hasOwnProperty("serverUrl")) {
  3290. if (!$util.isString(message.serverUrl))
  3291. return "serverUrl: string expected";
  3292. }
  3293. if (message.isTimemachine != null && message.hasOwnProperty("isTimemachine")) {
  3294. if (typeof message.isTimemachine !== "boolean")
  3295. return "isTimemachine: boolean expected";
  3296. }
  3297. if (message.dwellTimeMs != null && message.hasOwnProperty("dwellTimeMs")) {
  3298. if (!$util.isInteger(message.dwellTimeMs))
  3299. return "dwellTimeMs: integer expected";
  3300. }
  3301. if (message.discoverabilityAltitudeMeters != null && message.hasOwnProperty("discoverabilityAltitudeMeters")) {
  3302. if (!$util.isInteger(message.discoverabilityAltitudeMeters))
  3303. return "discoverabilityAltitudeMeters: integer expected";
  3304. }
  3305. return null;
  3306. };
  3307. TimeMachineOptionsProto.fromObject = function fromObject(object) {
  3308. if (object instanceof $root.keyhole.dbroot.TimeMachineOptionsProto)
  3309. return object;
  3310. var message = new $root.keyhole.dbroot.TimeMachineOptionsProto();
  3311. if (object.serverUrl != null)
  3312. message.serverUrl = String(object.serverUrl);
  3313. if (object.isTimemachine != null)
  3314. message.isTimemachine = Boolean(object.isTimemachine);
  3315. if (object.dwellTimeMs != null)
  3316. message.dwellTimeMs = object.dwellTimeMs | 0;
  3317. if (object.discoverabilityAltitudeMeters != null)
  3318. message.discoverabilityAltitudeMeters = object.discoverabilityAltitudeMeters | 0;
  3319. return message;
  3320. };
  3321. TimeMachineOptionsProto.toObject = function toObject(message, options) {
  3322. if (!options)
  3323. options = {};
  3324. var object = {};
  3325. if (options.defaults) {
  3326. object.serverUrl = "";
  3327. object.isTimemachine = false;
  3328. object.dwellTimeMs = 500;
  3329. object.discoverabilityAltitudeMeters = 15e3;
  3330. }
  3331. if (message.serverUrl != null && message.hasOwnProperty("serverUrl"))
  3332. object.serverUrl = message.serverUrl;
  3333. if (message.isTimemachine != null && message.hasOwnProperty("isTimemachine"))
  3334. object.isTimemachine = message.isTimemachine;
  3335. if (message.dwellTimeMs != null && message.hasOwnProperty("dwellTimeMs"))
  3336. object.dwellTimeMs = message.dwellTimeMs;
  3337. if (message.discoverabilityAltitudeMeters != null && message.hasOwnProperty("discoverabilityAltitudeMeters"))
  3338. object.discoverabilityAltitudeMeters = message.discoverabilityAltitudeMeters;
  3339. return object;
  3340. };
  3341. TimeMachineOptionsProto.prototype.toJSON = function toJSON() {
  3342. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3343. };
  3344. TimeMachineOptionsProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  3345. if (typeUrlPrefix === void 0) {
  3346. typeUrlPrefix = "type.googleapis.com";
  3347. }
  3348. return typeUrlPrefix + "/keyhole.dbroot.TimeMachineOptionsProto";
  3349. };
  3350. return TimeMachineOptionsProto;
  3351. }();
  3352. dbroot.AutopiaOptionsProto = function() {
  3353. function AutopiaOptionsProto(properties) {
  3354. if (properties) {
  3355. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3356. if (properties[keys[i]] != null)
  3357. this[keys[i]] = properties[keys[i]];
  3358. }
  3359. }
  3360. AutopiaOptionsProto.prototype.metadataServerUrl = "http://cbk0.google.com/cbk";
  3361. AutopiaOptionsProto.prototype.depthmapServerUrl = "http://cbk0.google.com/cbk";
  3362. AutopiaOptionsProto.prototype.coverageOverlayUrl = "";
  3363. AutopiaOptionsProto.prototype.maxImageryQps = 0;
  3364. AutopiaOptionsProto.prototype.maxMetadataDepthmapQps = 0;
  3365. AutopiaOptionsProto.decode = function decode(reader, length) {
  3366. if (!(reader instanceof $Reader))
  3367. reader = $Reader.create(reader);
  3368. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.AutopiaOptionsProto();
  3369. while (reader.pos < end) {
  3370. var tag = reader.uint32();
  3371. switch (tag >>> 3) {
  3372. case 1: {
  3373. message.metadataServerUrl = reader.string();
  3374. break;
  3375. }
  3376. case 2: {
  3377. message.depthmapServerUrl = reader.string();
  3378. break;
  3379. }
  3380. case 3: {
  3381. message.coverageOverlayUrl = reader.string();
  3382. break;
  3383. }
  3384. case 4: {
  3385. message.maxImageryQps = reader.float();
  3386. break;
  3387. }
  3388. case 5: {
  3389. message.maxMetadataDepthmapQps = reader.float();
  3390. break;
  3391. }
  3392. default:
  3393. reader.skipType(tag & 7);
  3394. break;
  3395. }
  3396. }
  3397. return message;
  3398. };
  3399. AutopiaOptionsProto.verify = function verify(message) {
  3400. if (typeof message !== "object" || message === null)
  3401. return "object expected";
  3402. if (message.metadataServerUrl != null && message.hasOwnProperty("metadataServerUrl")) {
  3403. if (!$util.isString(message.metadataServerUrl))
  3404. return "metadataServerUrl: string expected";
  3405. }
  3406. if (message.depthmapServerUrl != null && message.hasOwnProperty("depthmapServerUrl")) {
  3407. if (!$util.isString(message.depthmapServerUrl))
  3408. return "depthmapServerUrl: string expected";
  3409. }
  3410. if (message.coverageOverlayUrl != null && message.hasOwnProperty("coverageOverlayUrl")) {
  3411. if (!$util.isString(message.coverageOverlayUrl))
  3412. return "coverageOverlayUrl: string expected";
  3413. }
  3414. if (message.maxImageryQps != null && message.hasOwnProperty("maxImageryQps")) {
  3415. if (typeof message.maxImageryQps !== "number")
  3416. return "maxImageryQps: number expected";
  3417. }
  3418. if (message.maxMetadataDepthmapQps != null && message.hasOwnProperty("maxMetadataDepthmapQps")) {
  3419. if (typeof message.maxMetadataDepthmapQps !== "number")
  3420. return "maxMetadataDepthmapQps: number expected";
  3421. }
  3422. return null;
  3423. };
  3424. AutopiaOptionsProto.fromObject = function fromObject(object) {
  3425. if (object instanceof $root.keyhole.dbroot.AutopiaOptionsProto)
  3426. return object;
  3427. var message = new $root.keyhole.dbroot.AutopiaOptionsProto();
  3428. if (object.metadataServerUrl != null)
  3429. message.metadataServerUrl = String(object.metadataServerUrl);
  3430. if (object.depthmapServerUrl != null)
  3431. message.depthmapServerUrl = String(object.depthmapServerUrl);
  3432. if (object.coverageOverlayUrl != null)
  3433. message.coverageOverlayUrl = String(object.coverageOverlayUrl);
  3434. if (object.maxImageryQps != null)
  3435. message.maxImageryQps = Number(object.maxImageryQps);
  3436. if (object.maxMetadataDepthmapQps != null)
  3437. message.maxMetadataDepthmapQps = Number(object.maxMetadataDepthmapQps);
  3438. return message;
  3439. };
  3440. AutopiaOptionsProto.toObject = function toObject(message, options) {
  3441. if (!options)
  3442. options = {};
  3443. var object = {};
  3444. if (options.defaults) {
  3445. object.metadataServerUrl = "http://cbk0.google.com/cbk";
  3446. object.depthmapServerUrl = "http://cbk0.google.com/cbk";
  3447. object.coverageOverlayUrl = "";
  3448. object.maxImageryQps = 0;
  3449. object.maxMetadataDepthmapQps = 0;
  3450. }
  3451. if (message.metadataServerUrl != null && message.hasOwnProperty("metadataServerUrl"))
  3452. object.metadataServerUrl = message.metadataServerUrl;
  3453. if (message.depthmapServerUrl != null && message.hasOwnProperty("depthmapServerUrl"))
  3454. object.depthmapServerUrl = message.depthmapServerUrl;
  3455. if (message.coverageOverlayUrl != null && message.hasOwnProperty("coverageOverlayUrl"))
  3456. object.coverageOverlayUrl = message.coverageOverlayUrl;
  3457. if (message.maxImageryQps != null && message.hasOwnProperty("maxImageryQps"))
  3458. object.maxImageryQps = options.json && !isFinite(message.maxImageryQps) ? String(message.maxImageryQps) : message.maxImageryQps;
  3459. if (message.maxMetadataDepthmapQps != null && message.hasOwnProperty("maxMetadataDepthmapQps"))
  3460. object.maxMetadataDepthmapQps = options.json && !isFinite(message.maxMetadataDepthmapQps) ? String(message.maxMetadataDepthmapQps) : message.maxMetadataDepthmapQps;
  3461. return object;
  3462. };
  3463. AutopiaOptionsProto.prototype.toJSON = function toJSON() {
  3464. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3465. };
  3466. AutopiaOptionsProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  3467. if (typeUrlPrefix === void 0) {
  3468. typeUrlPrefix = "type.googleapis.com";
  3469. }
  3470. return typeUrlPrefix + "/keyhole.dbroot.AutopiaOptionsProto";
  3471. };
  3472. return AutopiaOptionsProto;
  3473. }();
  3474. dbroot.CSIOptionsProto = function() {
  3475. function CSIOptionsProto(properties) {
  3476. if (properties) {
  3477. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3478. if (properties[keys[i]] != null)
  3479. this[keys[i]] = properties[keys[i]];
  3480. }
  3481. }
  3482. CSIOptionsProto.prototype.samplingPercentage = 0;
  3483. CSIOptionsProto.prototype.experimentId = "";
  3484. CSIOptionsProto.decode = function decode(reader, length) {
  3485. if (!(reader instanceof $Reader))
  3486. reader = $Reader.create(reader);
  3487. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.CSIOptionsProto();
  3488. while (reader.pos < end) {
  3489. var tag = reader.uint32();
  3490. switch (tag >>> 3) {
  3491. case 1: {
  3492. message.samplingPercentage = reader.int32();
  3493. break;
  3494. }
  3495. case 2: {
  3496. message.experimentId = reader.string();
  3497. break;
  3498. }
  3499. default:
  3500. reader.skipType(tag & 7);
  3501. break;
  3502. }
  3503. }
  3504. return message;
  3505. };
  3506. CSIOptionsProto.verify = function verify(message) {
  3507. if (typeof message !== "object" || message === null)
  3508. return "object expected";
  3509. if (message.samplingPercentage != null && message.hasOwnProperty("samplingPercentage")) {
  3510. if (!$util.isInteger(message.samplingPercentage))
  3511. return "samplingPercentage: integer expected";
  3512. }
  3513. if (message.experimentId != null && message.hasOwnProperty("experimentId")) {
  3514. if (!$util.isString(message.experimentId))
  3515. return "experimentId: string expected";
  3516. }
  3517. return null;
  3518. };
  3519. CSIOptionsProto.fromObject = function fromObject(object) {
  3520. if (object instanceof $root.keyhole.dbroot.CSIOptionsProto)
  3521. return object;
  3522. var message = new $root.keyhole.dbroot.CSIOptionsProto();
  3523. if (object.samplingPercentage != null)
  3524. message.samplingPercentage = object.samplingPercentage | 0;
  3525. if (object.experimentId != null)
  3526. message.experimentId = String(object.experimentId);
  3527. return message;
  3528. };
  3529. CSIOptionsProto.toObject = function toObject(message, options) {
  3530. if (!options)
  3531. options = {};
  3532. var object = {};
  3533. if (options.defaults) {
  3534. object.samplingPercentage = 0;
  3535. object.experimentId = "";
  3536. }
  3537. if (message.samplingPercentage != null && message.hasOwnProperty("samplingPercentage"))
  3538. object.samplingPercentage = message.samplingPercentage;
  3539. if (message.experimentId != null && message.hasOwnProperty("experimentId"))
  3540. object.experimentId = message.experimentId;
  3541. return object;
  3542. };
  3543. CSIOptionsProto.prototype.toJSON = function toJSON() {
  3544. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3545. };
  3546. CSIOptionsProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  3547. if (typeUrlPrefix === void 0) {
  3548. typeUrlPrefix = "type.googleapis.com";
  3549. }
  3550. return typeUrlPrefix + "/keyhole.dbroot.CSIOptionsProto";
  3551. };
  3552. return CSIOptionsProto;
  3553. }();
  3554. dbroot.SearchTabProto = function() {
  3555. function SearchTabProto(properties) {
  3556. this.inputBox = [];
  3557. if (properties) {
  3558. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3559. if (properties[keys[i]] != null)
  3560. this[keys[i]] = properties[keys[i]];
  3561. }
  3562. }
  3563. SearchTabProto.prototype.isVisible = false;
  3564. SearchTabProto.prototype.tabLabel = null;
  3565. SearchTabProto.prototype.baseUrl = "";
  3566. SearchTabProto.prototype.viewportPrefix = "";
  3567. SearchTabProto.prototype.inputBox = $util.emptyArray;
  3568. SearchTabProto.prototype.requirement = null;
  3569. SearchTabProto.decode = function decode(reader, length) {
  3570. if (!(reader instanceof $Reader))
  3571. reader = $Reader.create(reader);
  3572. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.SearchTabProto();
  3573. while (reader.pos < end) {
  3574. var tag = reader.uint32();
  3575. switch (tag >>> 3) {
  3576. case 1: {
  3577. message.isVisible = reader.bool();
  3578. break;
  3579. }
  3580. case 2: {
  3581. message.tabLabel = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  3582. break;
  3583. }
  3584. case 3: {
  3585. message.baseUrl = reader.string();
  3586. break;
  3587. }
  3588. case 4: {
  3589. message.viewportPrefix = reader.string();
  3590. break;
  3591. }
  3592. case 5: {
  3593. if (!(message.inputBox && message.inputBox.length))
  3594. message.inputBox = [];
  3595. message.inputBox.push($root.keyhole.dbroot.SearchTabProto.InputBoxInfo.decode(reader, reader.uint32()));
  3596. break;
  3597. }
  3598. case 6: {
  3599. message.requirement = $root.keyhole.dbroot.RequirementProto.decode(reader, reader.uint32());
  3600. break;
  3601. }
  3602. default:
  3603. reader.skipType(tag & 7);
  3604. break;
  3605. }
  3606. }
  3607. if (!message.hasOwnProperty("isVisible"))
  3608. throw $util.ProtocolError("missing required 'isVisible'", { instance: message });
  3609. return message;
  3610. };
  3611. SearchTabProto.verify = function verify(message) {
  3612. if (typeof message !== "object" || message === null)
  3613. return "object expected";
  3614. if (typeof message.isVisible !== "boolean")
  3615. return "isVisible: boolean expected";
  3616. if (message.tabLabel != null && message.hasOwnProperty("tabLabel")) {
  3617. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.tabLabel);
  3618. if (error)
  3619. return "tabLabel." + error;
  3620. }
  3621. if (message.baseUrl != null && message.hasOwnProperty("baseUrl")) {
  3622. if (!$util.isString(message.baseUrl))
  3623. return "baseUrl: string expected";
  3624. }
  3625. if (message.viewportPrefix != null && message.hasOwnProperty("viewportPrefix")) {
  3626. if (!$util.isString(message.viewportPrefix))
  3627. return "viewportPrefix: string expected";
  3628. }
  3629. if (message.inputBox != null && message.hasOwnProperty("inputBox")) {
  3630. if (!Array.isArray(message.inputBox))
  3631. return "inputBox: array expected";
  3632. for (var i = 0; i < message.inputBox.length; ++i) {
  3633. var error = $root.keyhole.dbroot.SearchTabProto.InputBoxInfo.verify(message.inputBox[i]);
  3634. if (error)
  3635. return "inputBox." + error;
  3636. }
  3637. }
  3638. if (message.requirement != null && message.hasOwnProperty("requirement")) {
  3639. var error = $root.keyhole.dbroot.RequirementProto.verify(message.requirement);
  3640. if (error)
  3641. return "requirement." + error;
  3642. }
  3643. return null;
  3644. };
  3645. SearchTabProto.fromObject = function fromObject(object) {
  3646. if (object instanceof $root.keyhole.dbroot.SearchTabProto)
  3647. return object;
  3648. var message = new $root.keyhole.dbroot.SearchTabProto();
  3649. if (object.isVisible != null)
  3650. message.isVisible = Boolean(object.isVisible);
  3651. if (object.tabLabel != null) {
  3652. if (typeof object.tabLabel !== "object")
  3653. throw TypeError(".keyhole.dbroot.SearchTabProto.tabLabel: object expected");
  3654. message.tabLabel = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.tabLabel);
  3655. }
  3656. if (object.baseUrl != null)
  3657. message.baseUrl = String(object.baseUrl);
  3658. if (object.viewportPrefix != null)
  3659. message.viewportPrefix = String(object.viewportPrefix);
  3660. if (object.inputBox) {
  3661. if (!Array.isArray(object.inputBox))
  3662. throw TypeError(".keyhole.dbroot.SearchTabProto.inputBox: array expected");
  3663. message.inputBox = [];
  3664. for (var i = 0; i < object.inputBox.length; ++i) {
  3665. if (typeof object.inputBox[i] !== "object")
  3666. throw TypeError(".keyhole.dbroot.SearchTabProto.inputBox: object expected");
  3667. message.inputBox[i] = $root.keyhole.dbroot.SearchTabProto.InputBoxInfo.fromObject(object.inputBox[i]);
  3668. }
  3669. }
  3670. if (object.requirement != null) {
  3671. if (typeof object.requirement !== "object")
  3672. throw TypeError(".keyhole.dbroot.SearchTabProto.requirement: object expected");
  3673. message.requirement = $root.keyhole.dbroot.RequirementProto.fromObject(object.requirement);
  3674. }
  3675. return message;
  3676. };
  3677. SearchTabProto.toObject = function toObject(message, options) {
  3678. if (!options)
  3679. options = {};
  3680. var object = {};
  3681. if (options.arrays || options.defaults)
  3682. object.inputBox = [];
  3683. if (options.defaults) {
  3684. object.isVisible = false;
  3685. object.tabLabel = null;
  3686. object.baseUrl = "";
  3687. object.viewportPrefix = "";
  3688. object.requirement = null;
  3689. }
  3690. if (message.isVisible != null && message.hasOwnProperty("isVisible"))
  3691. object.isVisible = message.isVisible;
  3692. if (message.tabLabel != null && message.hasOwnProperty("tabLabel"))
  3693. object.tabLabel = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.tabLabel, options);
  3694. if (message.baseUrl != null && message.hasOwnProperty("baseUrl"))
  3695. object.baseUrl = message.baseUrl;
  3696. if (message.viewportPrefix != null && message.hasOwnProperty("viewportPrefix"))
  3697. object.viewportPrefix = message.viewportPrefix;
  3698. if (message.inputBox && message.inputBox.length) {
  3699. object.inputBox = [];
  3700. for (var j = 0; j < message.inputBox.length; ++j)
  3701. object.inputBox[j] = $root.keyhole.dbroot.SearchTabProto.InputBoxInfo.toObject(message.inputBox[j], options);
  3702. }
  3703. if (message.requirement != null && message.hasOwnProperty("requirement"))
  3704. object.requirement = $root.keyhole.dbroot.RequirementProto.toObject(message.requirement, options);
  3705. return object;
  3706. };
  3707. SearchTabProto.prototype.toJSON = function toJSON() {
  3708. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3709. };
  3710. SearchTabProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  3711. if (typeUrlPrefix === void 0) {
  3712. typeUrlPrefix = "type.googleapis.com";
  3713. }
  3714. return typeUrlPrefix + "/keyhole.dbroot.SearchTabProto";
  3715. };
  3716. SearchTabProto.InputBoxInfo = function() {
  3717. function InputBoxInfo(properties) {
  3718. if (properties) {
  3719. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3720. if (properties[keys[i]] != null)
  3721. this[keys[i]] = properties[keys[i]];
  3722. }
  3723. }
  3724. InputBoxInfo.prototype.label = null;
  3725. InputBoxInfo.prototype.queryVerb = "";
  3726. InputBoxInfo.prototype.queryPrepend = "";
  3727. InputBoxInfo.decode = function decode(reader, length) {
  3728. if (!(reader instanceof $Reader))
  3729. reader = $Reader.create(reader);
  3730. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.SearchTabProto.InputBoxInfo();
  3731. while (reader.pos < end) {
  3732. var tag = reader.uint32();
  3733. switch (tag >>> 3) {
  3734. case 1: {
  3735. message.label = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  3736. break;
  3737. }
  3738. case 2: {
  3739. message.queryVerb = reader.string();
  3740. break;
  3741. }
  3742. case 3: {
  3743. message.queryPrepend = reader.string();
  3744. break;
  3745. }
  3746. default:
  3747. reader.skipType(tag & 7);
  3748. break;
  3749. }
  3750. }
  3751. if (!message.hasOwnProperty("label"))
  3752. throw $util.ProtocolError("missing required 'label'", { instance: message });
  3753. if (!message.hasOwnProperty("queryVerb"))
  3754. throw $util.ProtocolError("missing required 'queryVerb'", { instance: message });
  3755. return message;
  3756. };
  3757. InputBoxInfo.verify = function verify(message) {
  3758. if (typeof message !== "object" || message === null)
  3759. return "object expected";
  3760. {
  3761. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.label);
  3762. if (error)
  3763. return "label." + error;
  3764. }
  3765. if (!$util.isString(message.queryVerb))
  3766. return "queryVerb: string expected";
  3767. if (message.queryPrepend != null && message.hasOwnProperty("queryPrepend")) {
  3768. if (!$util.isString(message.queryPrepend))
  3769. return "queryPrepend: string expected";
  3770. }
  3771. return null;
  3772. };
  3773. InputBoxInfo.fromObject = function fromObject(object) {
  3774. if (object instanceof $root.keyhole.dbroot.SearchTabProto.InputBoxInfo)
  3775. return object;
  3776. var message = new $root.keyhole.dbroot.SearchTabProto.InputBoxInfo();
  3777. if (object.label != null) {
  3778. if (typeof object.label !== "object")
  3779. throw TypeError(".keyhole.dbroot.SearchTabProto.InputBoxInfo.label: object expected");
  3780. message.label = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.label);
  3781. }
  3782. if (object.queryVerb != null)
  3783. message.queryVerb = String(object.queryVerb);
  3784. if (object.queryPrepend != null)
  3785. message.queryPrepend = String(object.queryPrepend);
  3786. return message;
  3787. };
  3788. InputBoxInfo.toObject = function toObject(message, options) {
  3789. if (!options)
  3790. options = {};
  3791. var object = {};
  3792. if (options.defaults) {
  3793. object.label = null;
  3794. object.queryVerb = "";
  3795. object.queryPrepend = "";
  3796. }
  3797. if (message.label != null && message.hasOwnProperty("label"))
  3798. object.label = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.label, options);
  3799. if (message.queryVerb != null && message.hasOwnProperty("queryVerb"))
  3800. object.queryVerb = message.queryVerb;
  3801. if (message.queryPrepend != null && message.hasOwnProperty("queryPrepend"))
  3802. object.queryPrepend = message.queryPrepend;
  3803. return object;
  3804. };
  3805. InputBoxInfo.prototype.toJSON = function toJSON() {
  3806. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3807. };
  3808. InputBoxInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  3809. if (typeUrlPrefix === void 0) {
  3810. typeUrlPrefix = "type.googleapis.com";
  3811. }
  3812. return typeUrlPrefix + "/keyhole.dbroot.SearchTabProto.InputBoxInfo";
  3813. };
  3814. return InputBoxInfo;
  3815. }();
  3816. return SearchTabProto;
  3817. }();
  3818. dbroot.CobrandProto = function() {
  3819. function CobrandProto(properties) {
  3820. if (properties) {
  3821. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3822. if (properties[keys[i]] != null)
  3823. this[keys[i]] = properties[keys[i]];
  3824. }
  3825. }
  3826. CobrandProto.prototype.logoUrl = "";
  3827. CobrandProto.prototype.xCoord = null;
  3828. CobrandProto.prototype.yCoord = null;
  3829. CobrandProto.prototype.tiePoint = 6;
  3830. CobrandProto.prototype.screenSize = 0;
  3831. CobrandProto.decode = function decode(reader, length) {
  3832. if (!(reader instanceof $Reader))
  3833. reader = $Reader.create(reader);
  3834. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.CobrandProto();
  3835. while (reader.pos < end) {
  3836. var tag = reader.uint32();
  3837. switch (tag >>> 3) {
  3838. case 1: {
  3839. message.logoUrl = reader.string();
  3840. break;
  3841. }
  3842. case 2: {
  3843. message.xCoord = $root.keyhole.dbroot.CobrandProto.Coord.decode(reader, reader.uint32());
  3844. break;
  3845. }
  3846. case 3: {
  3847. message.yCoord = $root.keyhole.dbroot.CobrandProto.Coord.decode(reader, reader.uint32());
  3848. break;
  3849. }
  3850. case 4: {
  3851. message.tiePoint = reader.int32();
  3852. break;
  3853. }
  3854. case 5: {
  3855. message.screenSize = reader.double();
  3856. break;
  3857. }
  3858. default:
  3859. reader.skipType(tag & 7);
  3860. break;
  3861. }
  3862. }
  3863. if (!message.hasOwnProperty("logoUrl"))
  3864. throw $util.ProtocolError("missing required 'logoUrl'", { instance: message });
  3865. return message;
  3866. };
  3867. CobrandProto.verify = function verify(message) {
  3868. if (typeof message !== "object" || message === null)
  3869. return "object expected";
  3870. if (!$util.isString(message.logoUrl))
  3871. return "logoUrl: string expected";
  3872. if (message.xCoord != null && message.hasOwnProperty("xCoord")) {
  3873. var error = $root.keyhole.dbroot.CobrandProto.Coord.verify(message.xCoord);
  3874. if (error)
  3875. return "xCoord." + error;
  3876. }
  3877. if (message.yCoord != null && message.hasOwnProperty("yCoord")) {
  3878. var error = $root.keyhole.dbroot.CobrandProto.Coord.verify(message.yCoord);
  3879. if (error)
  3880. return "yCoord." + error;
  3881. }
  3882. if (message.tiePoint != null && message.hasOwnProperty("tiePoint"))
  3883. switch (message.tiePoint) {
  3884. default:
  3885. return "tiePoint: enum value expected";
  3886. case 0:
  3887. case 1:
  3888. case 2:
  3889. case 3:
  3890. case 4:
  3891. case 5:
  3892. case 6:
  3893. case 7:
  3894. case 8:
  3895. break;
  3896. }
  3897. if (message.screenSize != null && message.hasOwnProperty("screenSize")) {
  3898. if (typeof message.screenSize !== "number")
  3899. return "screenSize: number expected";
  3900. }
  3901. return null;
  3902. };
  3903. CobrandProto.fromObject = function fromObject(object) {
  3904. if (object instanceof $root.keyhole.dbroot.CobrandProto)
  3905. return object;
  3906. var message = new $root.keyhole.dbroot.CobrandProto();
  3907. if (object.logoUrl != null)
  3908. message.logoUrl = String(object.logoUrl);
  3909. if (object.xCoord != null) {
  3910. if (typeof object.xCoord !== "object")
  3911. throw TypeError(".keyhole.dbroot.CobrandProto.xCoord: object expected");
  3912. message.xCoord = $root.keyhole.dbroot.CobrandProto.Coord.fromObject(object.xCoord);
  3913. }
  3914. if (object.yCoord != null) {
  3915. if (typeof object.yCoord !== "object")
  3916. throw TypeError(".keyhole.dbroot.CobrandProto.yCoord: object expected");
  3917. message.yCoord = $root.keyhole.dbroot.CobrandProto.Coord.fromObject(object.yCoord);
  3918. }
  3919. switch (object.tiePoint) {
  3920. case "TOP_LEFT":
  3921. case 0:
  3922. message.tiePoint = 0;
  3923. break;
  3924. case "TOP_CENTER":
  3925. case 1:
  3926. message.tiePoint = 1;
  3927. break;
  3928. case "TOP_RIGHT":
  3929. case 2:
  3930. message.tiePoint = 2;
  3931. break;
  3932. case "MID_LEFT":
  3933. case 3:
  3934. message.tiePoint = 3;
  3935. break;
  3936. case "MID_CENTER":
  3937. case 4:
  3938. message.tiePoint = 4;
  3939. break;
  3940. case "MID_RIGHT":
  3941. case 5:
  3942. message.tiePoint = 5;
  3943. break;
  3944. case "BOTTOM_LEFT":
  3945. case 6:
  3946. message.tiePoint = 6;
  3947. break;
  3948. case "BOTTOM_CENTER":
  3949. case 7:
  3950. message.tiePoint = 7;
  3951. break;
  3952. case "BOTTOM_RIGHT":
  3953. case 8:
  3954. message.tiePoint = 8;
  3955. break;
  3956. }
  3957. if (object.screenSize != null)
  3958. message.screenSize = Number(object.screenSize);
  3959. return message;
  3960. };
  3961. CobrandProto.toObject = function toObject(message, options) {
  3962. if (!options)
  3963. options = {};
  3964. var object = {};
  3965. if (options.defaults) {
  3966. object.logoUrl = "";
  3967. object.xCoord = null;
  3968. object.yCoord = null;
  3969. object.tiePoint = options.enums === String ? "BOTTOM_LEFT" : 6;
  3970. object.screenSize = 0;
  3971. }
  3972. if (message.logoUrl != null && message.hasOwnProperty("logoUrl"))
  3973. object.logoUrl = message.logoUrl;
  3974. if (message.xCoord != null && message.hasOwnProperty("xCoord"))
  3975. object.xCoord = $root.keyhole.dbroot.CobrandProto.Coord.toObject(message.xCoord, options);
  3976. if (message.yCoord != null && message.hasOwnProperty("yCoord"))
  3977. object.yCoord = $root.keyhole.dbroot.CobrandProto.Coord.toObject(message.yCoord, options);
  3978. if (message.tiePoint != null && message.hasOwnProperty("tiePoint"))
  3979. object.tiePoint = options.enums === String ? $root.keyhole.dbroot.CobrandProto.TiePoint[message.tiePoint] : message.tiePoint;
  3980. if (message.screenSize != null && message.hasOwnProperty("screenSize"))
  3981. object.screenSize = options.json && !isFinite(message.screenSize) ? String(message.screenSize) : message.screenSize;
  3982. return object;
  3983. };
  3984. CobrandProto.prototype.toJSON = function toJSON() {
  3985. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3986. };
  3987. CobrandProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  3988. if (typeUrlPrefix === void 0) {
  3989. typeUrlPrefix = "type.googleapis.com";
  3990. }
  3991. return typeUrlPrefix + "/keyhole.dbroot.CobrandProto";
  3992. };
  3993. CobrandProto.Coord = function() {
  3994. function Coord(properties) {
  3995. if (properties) {
  3996. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3997. if (properties[keys[i]] != null)
  3998. this[keys[i]] = properties[keys[i]];
  3999. }
  4000. }
  4001. Coord.prototype.value = 0;
  4002. Coord.prototype.isRelative = false;
  4003. Coord.decode = function decode(reader, length) {
  4004. if (!(reader instanceof $Reader))
  4005. reader = $Reader.create(reader);
  4006. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.CobrandProto.Coord();
  4007. while (reader.pos < end) {
  4008. var tag = reader.uint32();
  4009. switch (tag >>> 3) {
  4010. case 1: {
  4011. message.value = reader.double();
  4012. break;
  4013. }
  4014. case 2: {
  4015. message.isRelative = reader.bool();
  4016. break;
  4017. }
  4018. default:
  4019. reader.skipType(tag & 7);
  4020. break;
  4021. }
  4022. }
  4023. if (!message.hasOwnProperty("value"))
  4024. throw $util.ProtocolError("missing required 'value'", { instance: message });
  4025. return message;
  4026. };
  4027. Coord.verify = function verify(message) {
  4028. if (typeof message !== "object" || message === null)
  4029. return "object expected";
  4030. if (typeof message.value !== "number")
  4031. return "value: number expected";
  4032. if (message.isRelative != null && message.hasOwnProperty("isRelative")) {
  4033. if (typeof message.isRelative !== "boolean")
  4034. return "isRelative: boolean expected";
  4035. }
  4036. return null;
  4037. };
  4038. Coord.fromObject = function fromObject(object) {
  4039. if (object instanceof $root.keyhole.dbroot.CobrandProto.Coord)
  4040. return object;
  4041. var message = new $root.keyhole.dbroot.CobrandProto.Coord();
  4042. if (object.value != null)
  4043. message.value = Number(object.value);
  4044. if (object.isRelative != null)
  4045. message.isRelative = Boolean(object.isRelative);
  4046. return message;
  4047. };
  4048. Coord.toObject = function toObject(message, options) {
  4049. if (!options)
  4050. options = {};
  4051. var object = {};
  4052. if (options.defaults) {
  4053. object.value = 0;
  4054. object.isRelative = false;
  4055. }
  4056. if (message.value != null && message.hasOwnProperty("value"))
  4057. object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value;
  4058. if (message.isRelative != null && message.hasOwnProperty("isRelative"))
  4059. object.isRelative = message.isRelative;
  4060. return object;
  4061. };
  4062. Coord.prototype.toJSON = function toJSON() {
  4063. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4064. };
  4065. Coord.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  4066. if (typeUrlPrefix === void 0) {
  4067. typeUrlPrefix = "type.googleapis.com";
  4068. }
  4069. return typeUrlPrefix + "/keyhole.dbroot.CobrandProto.Coord";
  4070. };
  4071. return Coord;
  4072. }();
  4073. CobrandProto.TiePoint = function() {
  4074. var valuesById = {}, values = Object.create(valuesById);
  4075. values[valuesById[0] = "TOP_LEFT"] = 0;
  4076. values[valuesById[1] = "TOP_CENTER"] = 1;
  4077. values[valuesById[2] = "TOP_RIGHT"] = 2;
  4078. values[valuesById[3] = "MID_LEFT"] = 3;
  4079. values[valuesById[4] = "MID_CENTER"] = 4;
  4080. values[valuesById[5] = "MID_RIGHT"] = 5;
  4081. values[valuesById[6] = "BOTTOM_LEFT"] = 6;
  4082. values[valuesById[7] = "BOTTOM_CENTER"] = 7;
  4083. values[valuesById[8] = "BOTTOM_RIGHT"] = 8;
  4084. return values;
  4085. }();
  4086. return CobrandProto;
  4087. }();
  4088. dbroot.DatabaseDescriptionProto = function() {
  4089. function DatabaseDescriptionProto(properties) {
  4090. if (properties) {
  4091. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4092. if (properties[keys[i]] != null)
  4093. this[keys[i]] = properties[keys[i]];
  4094. }
  4095. }
  4096. DatabaseDescriptionProto.prototype.databaseName = null;
  4097. DatabaseDescriptionProto.prototype.databaseUrl = "";
  4098. DatabaseDescriptionProto.decode = function decode(reader, length) {
  4099. if (!(reader instanceof $Reader))
  4100. reader = $Reader.create(reader);
  4101. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.DatabaseDescriptionProto();
  4102. while (reader.pos < end) {
  4103. var tag = reader.uint32();
  4104. switch (tag >>> 3) {
  4105. case 1: {
  4106. message.databaseName = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4107. break;
  4108. }
  4109. case 2: {
  4110. message.databaseUrl = reader.string();
  4111. break;
  4112. }
  4113. default:
  4114. reader.skipType(tag & 7);
  4115. break;
  4116. }
  4117. }
  4118. if (!message.hasOwnProperty("databaseUrl"))
  4119. throw $util.ProtocolError("missing required 'databaseUrl'", { instance: message });
  4120. return message;
  4121. };
  4122. DatabaseDescriptionProto.verify = function verify(message) {
  4123. if (typeof message !== "object" || message === null)
  4124. return "object expected";
  4125. if (message.databaseName != null && message.hasOwnProperty("databaseName")) {
  4126. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.databaseName);
  4127. if (error)
  4128. return "databaseName." + error;
  4129. }
  4130. if (!$util.isString(message.databaseUrl))
  4131. return "databaseUrl: string expected";
  4132. return null;
  4133. };
  4134. DatabaseDescriptionProto.fromObject = function fromObject(object) {
  4135. if (object instanceof $root.keyhole.dbroot.DatabaseDescriptionProto)
  4136. return object;
  4137. var message = new $root.keyhole.dbroot.DatabaseDescriptionProto();
  4138. if (object.databaseName != null) {
  4139. if (typeof object.databaseName !== "object")
  4140. throw TypeError(".keyhole.dbroot.DatabaseDescriptionProto.databaseName: object expected");
  4141. message.databaseName = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.databaseName);
  4142. }
  4143. if (object.databaseUrl != null)
  4144. message.databaseUrl = String(object.databaseUrl);
  4145. return message;
  4146. };
  4147. DatabaseDescriptionProto.toObject = function toObject(message, options) {
  4148. if (!options)
  4149. options = {};
  4150. var object = {};
  4151. if (options.defaults) {
  4152. object.databaseName = null;
  4153. object.databaseUrl = "";
  4154. }
  4155. if (message.databaseName != null && message.hasOwnProperty("databaseName"))
  4156. object.databaseName = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.databaseName, options);
  4157. if (message.databaseUrl != null && message.hasOwnProperty("databaseUrl"))
  4158. object.databaseUrl = message.databaseUrl;
  4159. return object;
  4160. };
  4161. DatabaseDescriptionProto.prototype.toJSON = function toJSON() {
  4162. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4163. };
  4164. DatabaseDescriptionProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  4165. if (typeUrlPrefix === void 0) {
  4166. typeUrlPrefix = "type.googleapis.com";
  4167. }
  4168. return typeUrlPrefix + "/keyhole.dbroot.DatabaseDescriptionProto";
  4169. };
  4170. return DatabaseDescriptionProto;
  4171. }();
  4172. dbroot.ConfigScriptProto = function() {
  4173. function ConfigScriptProto(properties) {
  4174. if (properties) {
  4175. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4176. if (properties[keys[i]] != null)
  4177. this[keys[i]] = properties[keys[i]];
  4178. }
  4179. }
  4180. ConfigScriptProto.prototype.scriptName = "";
  4181. ConfigScriptProto.prototype.scriptData = "";
  4182. ConfigScriptProto.decode = function decode(reader, length) {
  4183. if (!(reader instanceof $Reader))
  4184. reader = $Reader.create(reader);
  4185. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.ConfigScriptProto();
  4186. while (reader.pos < end) {
  4187. var tag = reader.uint32();
  4188. switch (tag >>> 3) {
  4189. case 1: {
  4190. message.scriptName = reader.string();
  4191. break;
  4192. }
  4193. case 2: {
  4194. message.scriptData = reader.string();
  4195. break;
  4196. }
  4197. default:
  4198. reader.skipType(tag & 7);
  4199. break;
  4200. }
  4201. }
  4202. if (!message.hasOwnProperty("scriptName"))
  4203. throw $util.ProtocolError("missing required 'scriptName'", { instance: message });
  4204. if (!message.hasOwnProperty("scriptData"))
  4205. throw $util.ProtocolError("missing required 'scriptData'", { instance: message });
  4206. return message;
  4207. };
  4208. ConfigScriptProto.verify = function verify(message) {
  4209. if (typeof message !== "object" || message === null)
  4210. return "object expected";
  4211. if (!$util.isString(message.scriptName))
  4212. return "scriptName: string expected";
  4213. if (!$util.isString(message.scriptData))
  4214. return "scriptData: string expected";
  4215. return null;
  4216. };
  4217. ConfigScriptProto.fromObject = function fromObject(object) {
  4218. if (object instanceof $root.keyhole.dbroot.ConfigScriptProto)
  4219. return object;
  4220. var message = new $root.keyhole.dbroot.ConfigScriptProto();
  4221. if (object.scriptName != null)
  4222. message.scriptName = String(object.scriptName);
  4223. if (object.scriptData != null)
  4224. message.scriptData = String(object.scriptData);
  4225. return message;
  4226. };
  4227. ConfigScriptProto.toObject = function toObject(message, options) {
  4228. if (!options)
  4229. options = {};
  4230. var object = {};
  4231. if (options.defaults) {
  4232. object.scriptName = "";
  4233. object.scriptData = "";
  4234. }
  4235. if (message.scriptName != null && message.hasOwnProperty("scriptName"))
  4236. object.scriptName = message.scriptName;
  4237. if (message.scriptData != null && message.hasOwnProperty("scriptData"))
  4238. object.scriptData = message.scriptData;
  4239. return object;
  4240. };
  4241. ConfigScriptProto.prototype.toJSON = function toJSON() {
  4242. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4243. };
  4244. ConfigScriptProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  4245. if (typeUrlPrefix === void 0) {
  4246. typeUrlPrefix = "type.googleapis.com";
  4247. }
  4248. return typeUrlPrefix + "/keyhole.dbroot.ConfigScriptProto";
  4249. };
  4250. return ConfigScriptProto;
  4251. }();
  4252. dbroot.SwoopParamsProto = function() {
  4253. function SwoopParamsProto(properties) {
  4254. if (properties) {
  4255. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4256. if (properties[keys[i]] != null)
  4257. this[keys[i]] = properties[keys[i]];
  4258. }
  4259. }
  4260. SwoopParamsProto.prototype.startDistInMeters = 0;
  4261. SwoopParamsProto.decode = function decode(reader, length) {
  4262. if (!(reader instanceof $Reader))
  4263. reader = $Reader.create(reader);
  4264. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.SwoopParamsProto();
  4265. while (reader.pos < end) {
  4266. var tag = reader.uint32();
  4267. switch (tag >>> 3) {
  4268. case 1: {
  4269. message.startDistInMeters = reader.double();
  4270. break;
  4271. }
  4272. default:
  4273. reader.skipType(tag & 7);
  4274. break;
  4275. }
  4276. }
  4277. return message;
  4278. };
  4279. SwoopParamsProto.verify = function verify(message) {
  4280. if (typeof message !== "object" || message === null)
  4281. return "object expected";
  4282. if (message.startDistInMeters != null && message.hasOwnProperty("startDistInMeters")) {
  4283. if (typeof message.startDistInMeters !== "number")
  4284. return "startDistInMeters: number expected";
  4285. }
  4286. return null;
  4287. };
  4288. SwoopParamsProto.fromObject = function fromObject(object) {
  4289. if (object instanceof $root.keyhole.dbroot.SwoopParamsProto)
  4290. return object;
  4291. var message = new $root.keyhole.dbroot.SwoopParamsProto();
  4292. if (object.startDistInMeters != null)
  4293. message.startDistInMeters = Number(object.startDistInMeters);
  4294. return message;
  4295. };
  4296. SwoopParamsProto.toObject = function toObject(message, options) {
  4297. if (!options)
  4298. options = {};
  4299. var object = {};
  4300. if (options.defaults)
  4301. object.startDistInMeters = 0;
  4302. if (message.startDistInMeters != null && message.hasOwnProperty("startDistInMeters"))
  4303. object.startDistInMeters = options.json && !isFinite(message.startDistInMeters) ? String(message.startDistInMeters) : message.startDistInMeters;
  4304. return object;
  4305. };
  4306. SwoopParamsProto.prototype.toJSON = function toJSON() {
  4307. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4308. };
  4309. SwoopParamsProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  4310. if (typeUrlPrefix === void 0) {
  4311. typeUrlPrefix = "type.googleapis.com";
  4312. }
  4313. return typeUrlPrefix + "/keyhole.dbroot.SwoopParamsProto";
  4314. };
  4315. return SwoopParamsProto;
  4316. }();
  4317. dbroot.PostingServerProto = function() {
  4318. function PostingServerProto(properties) {
  4319. if (properties) {
  4320. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4321. if (properties[keys[i]] != null)
  4322. this[keys[i]] = properties[keys[i]];
  4323. }
  4324. }
  4325. PostingServerProto.prototype.name = null;
  4326. PostingServerProto.prototype.baseUrl = null;
  4327. PostingServerProto.prototype.postWizardPath = null;
  4328. PostingServerProto.prototype.fileSubmitPath = null;
  4329. PostingServerProto.decode = function decode(reader, length) {
  4330. if (!(reader instanceof $Reader))
  4331. reader = $Reader.create(reader);
  4332. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.PostingServerProto();
  4333. while (reader.pos < end) {
  4334. var tag = reader.uint32();
  4335. switch (tag >>> 3) {
  4336. case 1: {
  4337. message.name = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4338. break;
  4339. }
  4340. case 2: {
  4341. message.baseUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4342. break;
  4343. }
  4344. case 3: {
  4345. message.postWizardPath = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4346. break;
  4347. }
  4348. case 4: {
  4349. message.fileSubmitPath = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4350. break;
  4351. }
  4352. default:
  4353. reader.skipType(tag & 7);
  4354. break;
  4355. }
  4356. }
  4357. return message;
  4358. };
  4359. PostingServerProto.verify = function verify(message) {
  4360. if (typeof message !== "object" || message === null)
  4361. return "object expected";
  4362. if (message.name != null && message.hasOwnProperty("name")) {
  4363. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.name);
  4364. if (error)
  4365. return "name." + error;
  4366. }
  4367. if (message.baseUrl != null && message.hasOwnProperty("baseUrl")) {
  4368. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.baseUrl);
  4369. if (error)
  4370. return "baseUrl." + error;
  4371. }
  4372. if (message.postWizardPath != null && message.hasOwnProperty("postWizardPath")) {
  4373. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.postWizardPath);
  4374. if (error)
  4375. return "postWizardPath." + error;
  4376. }
  4377. if (message.fileSubmitPath != null && message.hasOwnProperty("fileSubmitPath")) {
  4378. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.fileSubmitPath);
  4379. if (error)
  4380. return "fileSubmitPath." + error;
  4381. }
  4382. return null;
  4383. };
  4384. PostingServerProto.fromObject = function fromObject(object) {
  4385. if (object instanceof $root.keyhole.dbroot.PostingServerProto)
  4386. return object;
  4387. var message = new $root.keyhole.dbroot.PostingServerProto();
  4388. if (object.name != null) {
  4389. if (typeof object.name !== "object")
  4390. throw TypeError(".keyhole.dbroot.PostingServerProto.name: object expected");
  4391. message.name = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.name);
  4392. }
  4393. if (object.baseUrl != null) {
  4394. if (typeof object.baseUrl !== "object")
  4395. throw TypeError(".keyhole.dbroot.PostingServerProto.baseUrl: object expected");
  4396. message.baseUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.baseUrl);
  4397. }
  4398. if (object.postWizardPath != null) {
  4399. if (typeof object.postWizardPath !== "object")
  4400. throw TypeError(".keyhole.dbroot.PostingServerProto.postWizardPath: object expected");
  4401. message.postWizardPath = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.postWizardPath);
  4402. }
  4403. if (object.fileSubmitPath != null) {
  4404. if (typeof object.fileSubmitPath !== "object")
  4405. throw TypeError(".keyhole.dbroot.PostingServerProto.fileSubmitPath: object expected");
  4406. message.fileSubmitPath = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.fileSubmitPath);
  4407. }
  4408. return message;
  4409. };
  4410. PostingServerProto.toObject = function toObject(message, options) {
  4411. if (!options)
  4412. options = {};
  4413. var object = {};
  4414. if (options.defaults) {
  4415. object.name = null;
  4416. object.baseUrl = null;
  4417. object.postWizardPath = null;
  4418. object.fileSubmitPath = null;
  4419. }
  4420. if (message.name != null && message.hasOwnProperty("name"))
  4421. object.name = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.name, options);
  4422. if (message.baseUrl != null && message.hasOwnProperty("baseUrl"))
  4423. object.baseUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.baseUrl, options);
  4424. if (message.postWizardPath != null && message.hasOwnProperty("postWizardPath"))
  4425. object.postWizardPath = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.postWizardPath, options);
  4426. if (message.fileSubmitPath != null && message.hasOwnProperty("fileSubmitPath"))
  4427. object.fileSubmitPath = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.fileSubmitPath, options);
  4428. return object;
  4429. };
  4430. PostingServerProto.prototype.toJSON = function toJSON() {
  4431. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4432. };
  4433. PostingServerProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  4434. if (typeUrlPrefix === void 0) {
  4435. typeUrlPrefix = "type.googleapis.com";
  4436. }
  4437. return typeUrlPrefix + "/keyhole.dbroot.PostingServerProto";
  4438. };
  4439. return PostingServerProto;
  4440. }();
  4441. dbroot.PlanetaryDatabaseProto = function() {
  4442. function PlanetaryDatabaseProto(properties) {
  4443. if (properties) {
  4444. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4445. if (properties[keys[i]] != null)
  4446. this[keys[i]] = properties[keys[i]];
  4447. }
  4448. }
  4449. PlanetaryDatabaseProto.prototype.url = null;
  4450. PlanetaryDatabaseProto.prototype.name = null;
  4451. PlanetaryDatabaseProto.decode = function decode(reader, length) {
  4452. if (!(reader instanceof $Reader))
  4453. reader = $Reader.create(reader);
  4454. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.PlanetaryDatabaseProto();
  4455. while (reader.pos < end) {
  4456. var tag = reader.uint32();
  4457. switch (tag >>> 3) {
  4458. case 1: {
  4459. message.url = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4460. break;
  4461. }
  4462. case 2: {
  4463. message.name = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4464. break;
  4465. }
  4466. default:
  4467. reader.skipType(tag & 7);
  4468. break;
  4469. }
  4470. }
  4471. if (!message.hasOwnProperty("url"))
  4472. throw $util.ProtocolError("missing required 'url'", { instance: message });
  4473. if (!message.hasOwnProperty("name"))
  4474. throw $util.ProtocolError("missing required 'name'", { instance: message });
  4475. return message;
  4476. };
  4477. PlanetaryDatabaseProto.verify = function verify(message) {
  4478. if (typeof message !== "object" || message === null)
  4479. return "object expected";
  4480. {
  4481. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.url);
  4482. if (error)
  4483. return "url." + error;
  4484. }
  4485. {
  4486. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.name);
  4487. if (error)
  4488. return "name." + error;
  4489. }
  4490. return null;
  4491. };
  4492. PlanetaryDatabaseProto.fromObject = function fromObject(object) {
  4493. if (object instanceof $root.keyhole.dbroot.PlanetaryDatabaseProto)
  4494. return object;
  4495. var message = new $root.keyhole.dbroot.PlanetaryDatabaseProto();
  4496. if (object.url != null) {
  4497. if (typeof object.url !== "object")
  4498. throw TypeError(".keyhole.dbroot.PlanetaryDatabaseProto.url: object expected");
  4499. message.url = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.url);
  4500. }
  4501. if (object.name != null) {
  4502. if (typeof object.name !== "object")
  4503. throw TypeError(".keyhole.dbroot.PlanetaryDatabaseProto.name: object expected");
  4504. message.name = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.name);
  4505. }
  4506. return message;
  4507. };
  4508. PlanetaryDatabaseProto.toObject = function toObject(message, options) {
  4509. if (!options)
  4510. options = {};
  4511. var object = {};
  4512. if (options.defaults) {
  4513. object.url = null;
  4514. object.name = null;
  4515. }
  4516. if (message.url != null && message.hasOwnProperty("url"))
  4517. object.url = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.url, options);
  4518. if (message.name != null && message.hasOwnProperty("name"))
  4519. object.name = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.name, options);
  4520. return object;
  4521. };
  4522. PlanetaryDatabaseProto.prototype.toJSON = function toJSON() {
  4523. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4524. };
  4525. PlanetaryDatabaseProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  4526. if (typeUrlPrefix === void 0) {
  4527. typeUrlPrefix = "type.googleapis.com";
  4528. }
  4529. return typeUrlPrefix + "/keyhole.dbroot.PlanetaryDatabaseProto";
  4530. };
  4531. return PlanetaryDatabaseProto;
  4532. }();
  4533. dbroot.LogServerProto = function() {
  4534. function LogServerProto(properties) {
  4535. if (properties) {
  4536. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4537. if (properties[keys[i]] != null)
  4538. this[keys[i]] = properties[keys[i]];
  4539. }
  4540. }
  4541. LogServerProto.prototype.url = null;
  4542. LogServerProto.prototype.enable = false;
  4543. LogServerProto.prototype.throttlingFactor = 1;
  4544. LogServerProto.decode = function decode(reader, length) {
  4545. if (!(reader instanceof $Reader))
  4546. reader = $Reader.create(reader);
  4547. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.LogServerProto();
  4548. while (reader.pos < end) {
  4549. var tag = reader.uint32();
  4550. switch (tag >>> 3) {
  4551. case 1: {
  4552. message.url = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4553. break;
  4554. }
  4555. case 2: {
  4556. message.enable = reader.bool();
  4557. break;
  4558. }
  4559. case 3: {
  4560. message.throttlingFactor = reader.int32();
  4561. break;
  4562. }
  4563. default:
  4564. reader.skipType(tag & 7);
  4565. break;
  4566. }
  4567. }
  4568. return message;
  4569. };
  4570. LogServerProto.verify = function verify(message) {
  4571. if (typeof message !== "object" || message === null)
  4572. return "object expected";
  4573. if (message.url != null && message.hasOwnProperty("url")) {
  4574. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.url);
  4575. if (error)
  4576. return "url." + error;
  4577. }
  4578. if (message.enable != null && message.hasOwnProperty("enable")) {
  4579. if (typeof message.enable !== "boolean")
  4580. return "enable: boolean expected";
  4581. }
  4582. if (message.throttlingFactor != null && message.hasOwnProperty("throttlingFactor")) {
  4583. if (!$util.isInteger(message.throttlingFactor))
  4584. return "throttlingFactor: integer expected";
  4585. }
  4586. return null;
  4587. };
  4588. LogServerProto.fromObject = function fromObject(object) {
  4589. if (object instanceof $root.keyhole.dbroot.LogServerProto)
  4590. return object;
  4591. var message = new $root.keyhole.dbroot.LogServerProto();
  4592. if (object.url != null) {
  4593. if (typeof object.url !== "object")
  4594. throw TypeError(".keyhole.dbroot.LogServerProto.url: object expected");
  4595. message.url = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.url);
  4596. }
  4597. if (object.enable != null)
  4598. message.enable = Boolean(object.enable);
  4599. if (object.throttlingFactor != null)
  4600. message.throttlingFactor = object.throttlingFactor | 0;
  4601. return message;
  4602. };
  4603. LogServerProto.toObject = function toObject(message, options) {
  4604. if (!options)
  4605. options = {};
  4606. var object = {};
  4607. if (options.defaults) {
  4608. object.url = null;
  4609. object.enable = false;
  4610. object.throttlingFactor = 1;
  4611. }
  4612. if (message.url != null && message.hasOwnProperty("url"))
  4613. object.url = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.url, options);
  4614. if (message.enable != null && message.hasOwnProperty("enable"))
  4615. object.enable = message.enable;
  4616. if (message.throttlingFactor != null && message.hasOwnProperty("throttlingFactor"))
  4617. object.throttlingFactor = message.throttlingFactor;
  4618. return object;
  4619. };
  4620. LogServerProto.prototype.toJSON = function toJSON() {
  4621. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4622. };
  4623. LogServerProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  4624. if (typeUrlPrefix === void 0) {
  4625. typeUrlPrefix = "type.googleapis.com";
  4626. }
  4627. return typeUrlPrefix + "/keyhole.dbroot.LogServerProto";
  4628. };
  4629. return LogServerProto;
  4630. }();
  4631. dbroot.EndSnippetProto = function() {
  4632. function EndSnippetProto(properties) {
  4633. this.mfeDomains = [];
  4634. this.searchTab = [];
  4635. this.cobrandInfo = [];
  4636. this.validDatabase = [];
  4637. this.configScript = [];
  4638. this.planetaryDatabase = [];
  4639. this.filmstripConfig = [];
  4640. if (properties) {
  4641. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4642. if (properties[keys[i]] != null)
  4643. this[keys[i]] = properties[keys[i]];
  4644. }
  4645. }
  4646. EndSnippetProto.prototype.model = null;
  4647. EndSnippetProto.prototype.authServerUrl = null;
  4648. EndSnippetProto.prototype.disableAuthentication = false;
  4649. EndSnippetProto.prototype.mfeDomains = $util.emptyArray;
  4650. EndSnippetProto.prototype.mfeLangParam = "hl=$5Bhl5D";
  4651. EndSnippetProto.prototype.adsUrlPatterns = "";
  4652. EndSnippetProto.prototype.reverseGeocoderUrl = null;
  4653. EndSnippetProto.prototype.reverseGeocoderProtocolVersion = 3;
  4654. EndSnippetProto.prototype.skyDatabaseIsAvailable = true;
  4655. EndSnippetProto.prototype.skyDatabaseUrl = null;
  4656. EndSnippetProto.prototype.defaultWebPageIntlUrl = null;
  4657. EndSnippetProto.prototype.numStartUpTips = 17;
  4658. EndSnippetProto.prototype.startUpTipsUrl = null;
  4659. EndSnippetProto.prototype.numProStartUpTips = 0;
  4660. EndSnippetProto.prototype.proStartUpTipsUrl = null;
  4661. EndSnippetProto.prototype.startupTipsIntlUrl = null;
  4662. EndSnippetProto.prototype.userGuideIntlUrl = null;
  4663. EndSnippetProto.prototype.supportCenterIntlUrl = null;
  4664. EndSnippetProto.prototype.businessListingIntlUrl = null;
  4665. EndSnippetProto.prototype.supportAnswerIntlUrl = null;
  4666. EndSnippetProto.prototype.supportTopicIntlUrl = null;
  4667. EndSnippetProto.prototype.supportRequestIntlUrl = null;
  4668. EndSnippetProto.prototype.earthIntlUrl = null;
  4669. EndSnippetProto.prototype.addContentUrl = null;
  4670. EndSnippetProto.prototype.sketchupNotInstalledUrl = null;
  4671. EndSnippetProto.prototype.sketchupErrorUrl = null;
  4672. EndSnippetProto.prototype.freeLicenseUrl = null;
  4673. EndSnippetProto.prototype.proLicenseUrl = null;
  4674. EndSnippetProto.prototype.tutorialUrl = null;
  4675. EndSnippetProto.prototype.keyboardShortcutsUrl = null;
  4676. EndSnippetProto.prototype.releaseNotesUrl = null;
  4677. EndSnippetProto.prototype.hideUserData = false;
  4678. EndSnippetProto.prototype.useGeLogo = true;
  4679. EndSnippetProto.prototype.dioramaDescriptionUrlBase = null;
  4680. EndSnippetProto.prototype.dioramaDefaultColor = 4291281607;
  4681. EndSnippetProto.prototype.dioramaBlacklistUrl = null;
  4682. EndSnippetProto.prototype.clientOptions = null;
  4683. EndSnippetProto.prototype.fetchingOptions = null;
  4684. EndSnippetProto.prototype.timeMachineOptions = null;
  4685. EndSnippetProto.prototype.csiOptions = null;
  4686. EndSnippetProto.prototype.searchTab = $util.emptyArray;
  4687. EndSnippetProto.prototype.cobrandInfo = $util.emptyArray;
  4688. EndSnippetProto.prototype.validDatabase = $util.emptyArray;
  4689. EndSnippetProto.prototype.configScript = $util.emptyArray;
  4690. EndSnippetProto.prototype.deauthServerUrl = null;
  4691. EndSnippetProto.prototype.swoopParameters = null;
  4692. EndSnippetProto.prototype.bbsServerInfo = null;
  4693. EndSnippetProto.prototype.dataErrorServerInfo = null;
  4694. EndSnippetProto.prototype.planetaryDatabase = $util.emptyArray;
  4695. EndSnippetProto.prototype.logServer = null;
  4696. EndSnippetProto.prototype.autopiaOptions = null;
  4697. EndSnippetProto.prototype.searchConfig = null;
  4698. EndSnippetProto.prototype.searchInfo = null;
  4699. EndSnippetProto.prototype.elevationServiceBaseUrl = "http://maps.google.com/maps/api/elevation/";
  4700. EndSnippetProto.prototype.elevationProfileQueryDelay = 500;
  4701. EndSnippetProto.prototype.proUpgradeUrl = null;
  4702. EndSnippetProto.prototype.earthCommunityUrl = null;
  4703. EndSnippetProto.prototype.googleMapsUrl = null;
  4704. EndSnippetProto.prototype.sharingUrl = null;
  4705. EndSnippetProto.prototype.privacyPolicyUrl = null;
  4706. EndSnippetProto.prototype.doGplusUserCheck = false;
  4707. EndSnippetProto.prototype.rocktreeDataProto = null;
  4708. EndSnippetProto.prototype.filmstripConfig = $util.emptyArray;
  4709. EndSnippetProto.prototype.showSigninButton = false;
  4710. EndSnippetProto.prototype.proMeasureUpsellUrl = null;
  4711. EndSnippetProto.prototype.proPrintUpsellUrl = null;
  4712. EndSnippetProto.prototype.starDataProto = null;
  4713. EndSnippetProto.prototype.feedbackUrl = null;
  4714. EndSnippetProto.prototype.oauth2LoginUrl = null;
  4715. EndSnippetProto.decode = function decode(reader, length) {
  4716. if (!(reader instanceof $Reader))
  4717. reader = $Reader.create(reader);
  4718. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.EndSnippetProto();
  4719. while (reader.pos < end) {
  4720. var tag = reader.uint32();
  4721. switch (tag >>> 3) {
  4722. case 1: {
  4723. message.model = $root.keyhole.dbroot.PlanetModelProto.decode(reader, reader.uint32());
  4724. break;
  4725. }
  4726. case 2: {
  4727. message.authServerUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4728. break;
  4729. }
  4730. case 3: {
  4731. message.disableAuthentication = reader.bool();
  4732. break;
  4733. }
  4734. case 4: {
  4735. if (!(message.mfeDomains && message.mfeDomains.length))
  4736. message.mfeDomains = [];
  4737. message.mfeDomains.push($root.keyhole.dbroot.MfeDomainFeaturesProto.decode(reader, reader.uint32()));
  4738. break;
  4739. }
  4740. case 5: {
  4741. message.mfeLangParam = reader.string();
  4742. break;
  4743. }
  4744. case 6: {
  4745. message.adsUrlPatterns = reader.string();
  4746. break;
  4747. }
  4748. case 7: {
  4749. message.reverseGeocoderUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4750. break;
  4751. }
  4752. case 8: {
  4753. message.reverseGeocoderProtocolVersion = reader.int32();
  4754. break;
  4755. }
  4756. case 9: {
  4757. message.skyDatabaseIsAvailable = reader.bool();
  4758. break;
  4759. }
  4760. case 10: {
  4761. message.skyDatabaseUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4762. break;
  4763. }
  4764. case 11: {
  4765. message.defaultWebPageIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4766. break;
  4767. }
  4768. case 12: {
  4769. message.numStartUpTips = reader.int32();
  4770. break;
  4771. }
  4772. case 13: {
  4773. message.startUpTipsUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4774. break;
  4775. }
  4776. case 51: {
  4777. message.numProStartUpTips = reader.int32();
  4778. break;
  4779. }
  4780. case 52: {
  4781. message.proStartUpTipsUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4782. break;
  4783. }
  4784. case 64: {
  4785. message.startupTipsIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4786. break;
  4787. }
  4788. case 14: {
  4789. message.userGuideIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4790. break;
  4791. }
  4792. case 15: {
  4793. message.supportCenterIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4794. break;
  4795. }
  4796. case 16: {
  4797. message.businessListingIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4798. break;
  4799. }
  4800. case 17: {
  4801. message.supportAnswerIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4802. break;
  4803. }
  4804. case 18: {
  4805. message.supportTopicIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4806. break;
  4807. }
  4808. case 19: {
  4809. message.supportRequestIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4810. break;
  4811. }
  4812. case 20: {
  4813. message.earthIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4814. break;
  4815. }
  4816. case 21: {
  4817. message.addContentUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4818. break;
  4819. }
  4820. case 22: {
  4821. message.sketchupNotInstalledUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4822. break;
  4823. }
  4824. case 23: {
  4825. message.sketchupErrorUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4826. break;
  4827. }
  4828. case 24: {
  4829. message.freeLicenseUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4830. break;
  4831. }
  4832. case 25: {
  4833. message.proLicenseUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4834. break;
  4835. }
  4836. case 48: {
  4837. message.tutorialUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4838. break;
  4839. }
  4840. case 49: {
  4841. message.keyboardShortcutsUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4842. break;
  4843. }
  4844. case 50: {
  4845. message.releaseNotesUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4846. break;
  4847. }
  4848. case 26: {
  4849. message.hideUserData = reader.bool();
  4850. break;
  4851. }
  4852. case 27: {
  4853. message.useGeLogo = reader.bool();
  4854. break;
  4855. }
  4856. case 28: {
  4857. message.dioramaDescriptionUrlBase = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4858. break;
  4859. }
  4860. case 29: {
  4861. message.dioramaDefaultColor = reader.uint32();
  4862. break;
  4863. }
  4864. case 53: {
  4865. message.dioramaBlacklistUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4866. break;
  4867. }
  4868. case 30: {
  4869. message.clientOptions = $root.keyhole.dbroot.ClientOptionsProto.decode(reader, reader.uint32());
  4870. break;
  4871. }
  4872. case 31: {
  4873. message.fetchingOptions = $root.keyhole.dbroot.FetchingOptionsProto.decode(reader, reader.uint32());
  4874. break;
  4875. }
  4876. case 32: {
  4877. message.timeMachineOptions = $root.keyhole.dbroot.TimeMachineOptionsProto.decode(reader, reader.uint32());
  4878. break;
  4879. }
  4880. case 33: {
  4881. message.csiOptions = $root.keyhole.dbroot.CSIOptionsProto.decode(reader, reader.uint32());
  4882. break;
  4883. }
  4884. case 34: {
  4885. if (!(message.searchTab && message.searchTab.length))
  4886. message.searchTab = [];
  4887. message.searchTab.push($root.keyhole.dbroot.SearchTabProto.decode(reader, reader.uint32()));
  4888. break;
  4889. }
  4890. case 35: {
  4891. if (!(message.cobrandInfo && message.cobrandInfo.length))
  4892. message.cobrandInfo = [];
  4893. message.cobrandInfo.push($root.keyhole.dbroot.CobrandProto.decode(reader, reader.uint32()));
  4894. break;
  4895. }
  4896. case 36: {
  4897. if (!(message.validDatabase && message.validDatabase.length))
  4898. message.validDatabase = [];
  4899. message.validDatabase.push($root.keyhole.dbroot.DatabaseDescriptionProto.decode(reader, reader.uint32()));
  4900. break;
  4901. }
  4902. case 37: {
  4903. if (!(message.configScript && message.configScript.length))
  4904. message.configScript = [];
  4905. message.configScript.push($root.keyhole.dbroot.ConfigScriptProto.decode(reader, reader.uint32()));
  4906. break;
  4907. }
  4908. case 38: {
  4909. message.deauthServerUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4910. break;
  4911. }
  4912. case 39: {
  4913. message.swoopParameters = $root.keyhole.dbroot.SwoopParamsProto.decode(reader, reader.uint32());
  4914. break;
  4915. }
  4916. case 40: {
  4917. message.bbsServerInfo = $root.keyhole.dbroot.PostingServerProto.decode(reader, reader.uint32());
  4918. break;
  4919. }
  4920. case 41: {
  4921. message.dataErrorServerInfo = $root.keyhole.dbroot.PostingServerProto.decode(reader, reader.uint32());
  4922. break;
  4923. }
  4924. case 42: {
  4925. if (!(message.planetaryDatabase && message.planetaryDatabase.length))
  4926. message.planetaryDatabase = [];
  4927. message.planetaryDatabase.push($root.keyhole.dbroot.PlanetaryDatabaseProto.decode(reader, reader.uint32()));
  4928. break;
  4929. }
  4930. case 43: {
  4931. message.logServer = $root.keyhole.dbroot.LogServerProto.decode(reader, reader.uint32());
  4932. break;
  4933. }
  4934. case 44: {
  4935. message.autopiaOptions = $root.keyhole.dbroot.AutopiaOptionsProto.decode(reader, reader.uint32());
  4936. break;
  4937. }
  4938. case 54: {
  4939. message.searchConfig = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.decode(reader, reader.uint32());
  4940. break;
  4941. }
  4942. case 45: {
  4943. message.searchInfo = $root.keyhole.dbroot.EndSnippetProto.SearchInfoProto.decode(reader, reader.uint32());
  4944. break;
  4945. }
  4946. case 46: {
  4947. message.elevationServiceBaseUrl = reader.string();
  4948. break;
  4949. }
  4950. case 47: {
  4951. message.elevationProfileQueryDelay = reader.int32();
  4952. break;
  4953. }
  4954. case 55: {
  4955. message.proUpgradeUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4956. break;
  4957. }
  4958. case 56: {
  4959. message.earthCommunityUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4960. break;
  4961. }
  4962. case 57: {
  4963. message.googleMapsUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4964. break;
  4965. }
  4966. case 58: {
  4967. message.sharingUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4968. break;
  4969. }
  4970. case 59: {
  4971. message.privacyPolicyUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4972. break;
  4973. }
  4974. case 60: {
  4975. message.doGplusUserCheck = reader.bool();
  4976. break;
  4977. }
  4978. case 61: {
  4979. message.rocktreeDataProto = $root.keyhole.dbroot.EndSnippetProto.RockTreeDataProto.decode(reader, reader.uint32());
  4980. break;
  4981. }
  4982. case 62: {
  4983. if (!(message.filmstripConfig && message.filmstripConfig.length))
  4984. message.filmstripConfig = [];
  4985. message.filmstripConfig.push($root.keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.decode(reader, reader.uint32()));
  4986. break;
  4987. }
  4988. case 63: {
  4989. message.showSigninButton = reader.bool();
  4990. break;
  4991. }
  4992. case 65: {
  4993. message.proMeasureUpsellUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4994. break;
  4995. }
  4996. case 66: {
  4997. message.proPrintUpsellUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  4998. break;
  4999. }
  5000. case 67: {
  5001. message.starDataProto = $root.keyhole.dbroot.EndSnippetProto.StarDataProto.decode(reader, reader.uint32());
  5002. break;
  5003. }
  5004. case 68: {
  5005. message.feedbackUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  5006. break;
  5007. }
  5008. case 69: {
  5009. message.oauth2LoginUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  5010. break;
  5011. }
  5012. default:
  5013. reader.skipType(tag & 7);
  5014. break;
  5015. }
  5016. }
  5017. return message;
  5018. };
  5019. EndSnippetProto.verify = function verify(message) {
  5020. if (typeof message !== "object" || message === null)
  5021. return "object expected";
  5022. if (message.model != null && message.hasOwnProperty("model")) {
  5023. var error = $root.keyhole.dbroot.PlanetModelProto.verify(message.model);
  5024. if (error)
  5025. return "model." + error;
  5026. }
  5027. if (message.authServerUrl != null && message.hasOwnProperty("authServerUrl")) {
  5028. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.authServerUrl);
  5029. if (error)
  5030. return "authServerUrl." + error;
  5031. }
  5032. if (message.disableAuthentication != null && message.hasOwnProperty("disableAuthentication")) {
  5033. if (typeof message.disableAuthentication !== "boolean")
  5034. return "disableAuthentication: boolean expected";
  5035. }
  5036. if (message.mfeDomains != null && message.hasOwnProperty("mfeDomains")) {
  5037. if (!Array.isArray(message.mfeDomains))
  5038. return "mfeDomains: array expected";
  5039. for (var i = 0; i < message.mfeDomains.length; ++i) {
  5040. var error = $root.keyhole.dbroot.MfeDomainFeaturesProto.verify(message.mfeDomains[i]);
  5041. if (error)
  5042. return "mfeDomains." + error;
  5043. }
  5044. }
  5045. if (message.mfeLangParam != null && message.hasOwnProperty("mfeLangParam")) {
  5046. if (!$util.isString(message.mfeLangParam))
  5047. return "mfeLangParam: string expected";
  5048. }
  5049. if (message.adsUrlPatterns != null && message.hasOwnProperty("adsUrlPatterns")) {
  5050. if (!$util.isString(message.adsUrlPatterns))
  5051. return "adsUrlPatterns: string expected";
  5052. }
  5053. if (message.reverseGeocoderUrl != null && message.hasOwnProperty("reverseGeocoderUrl")) {
  5054. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.reverseGeocoderUrl);
  5055. if (error)
  5056. return "reverseGeocoderUrl." + error;
  5057. }
  5058. if (message.reverseGeocoderProtocolVersion != null && message.hasOwnProperty("reverseGeocoderProtocolVersion")) {
  5059. if (!$util.isInteger(message.reverseGeocoderProtocolVersion))
  5060. return "reverseGeocoderProtocolVersion: integer expected";
  5061. }
  5062. if (message.skyDatabaseIsAvailable != null && message.hasOwnProperty("skyDatabaseIsAvailable")) {
  5063. if (typeof message.skyDatabaseIsAvailable !== "boolean")
  5064. return "skyDatabaseIsAvailable: boolean expected";
  5065. }
  5066. if (message.skyDatabaseUrl != null && message.hasOwnProperty("skyDatabaseUrl")) {
  5067. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.skyDatabaseUrl);
  5068. if (error)
  5069. return "skyDatabaseUrl." + error;
  5070. }
  5071. if (message.defaultWebPageIntlUrl != null && message.hasOwnProperty("defaultWebPageIntlUrl")) {
  5072. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.defaultWebPageIntlUrl);
  5073. if (error)
  5074. return "defaultWebPageIntlUrl." + error;
  5075. }
  5076. if (message.numStartUpTips != null && message.hasOwnProperty("numStartUpTips")) {
  5077. if (!$util.isInteger(message.numStartUpTips))
  5078. return "numStartUpTips: integer expected";
  5079. }
  5080. if (message.startUpTipsUrl != null && message.hasOwnProperty("startUpTipsUrl")) {
  5081. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.startUpTipsUrl);
  5082. if (error)
  5083. return "startUpTipsUrl." + error;
  5084. }
  5085. if (message.numProStartUpTips != null && message.hasOwnProperty("numProStartUpTips")) {
  5086. if (!$util.isInteger(message.numProStartUpTips))
  5087. return "numProStartUpTips: integer expected";
  5088. }
  5089. if (message.proStartUpTipsUrl != null && message.hasOwnProperty("proStartUpTipsUrl")) {
  5090. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.proStartUpTipsUrl);
  5091. if (error)
  5092. return "proStartUpTipsUrl." + error;
  5093. }
  5094. if (message.startupTipsIntlUrl != null && message.hasOwnProperty("startupTipsIntlUrl")) {
  5095. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.startupTipsIntlUrl);
  5096. if (error)
  5097. return "startupTipsIntlUrl." + error;
  5098. }
  5099. if (message.userGuideIntlUrl != null && message.hasOwnProperty("userGuideIntlUrl")) {
  5100. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.userGuideIntlUrl);
  5101. if (error)
  5102. return "userGuideIntlUrl." + error;
  5103. }
  5104. if (message.supportCenterIntlUrl != null && message.hasOwnProperty("supportCenterIntlUrl")) {
  5105. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.supportCenterIntlUrl);
  5106. if (error)
  5107. return "supportCenterIntlUrl." + error;
  5108. }
  5109. if (message.businessListingIntlUrl != null && message.hasOwnProperty("businessListingIntlUrl")) {
  5110. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.businessListingIntlUrl);
  5111. if (error)
  5112. return "businessListingIntlUrl." + error;
  5113. }
  5114. if (message.supportAnswerIntlUrl != null && message.hasOwnProperty("supportAnswerIntlUrl")) {
  5115. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.supportAnswerIntlUrl);
  5116. if (error)
  5117. return "supportAnswerIntlUrl." + error;
  5118. }
  5119. if (message.supportTopicIntlUrl != null && message.hasOwnProperty("supportTopicIntlUrl")) {
  5120. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.supportTopicIntlUrl);
  5121. if (error)
  5122. return "supportTopicIntlUrl." + error;
  5123. }
  5124. if (message.supportRequestIntlUrl != null && message.hasOwnProperty("supportRequestIntlUrl")) {
  5125. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.supportRequestIntlUrl);
  5126. if (error)
  5127. return "supportRequestIntlUrl." + error;
  5128. }
  5129. if (message.earthIntlUrl != null && message.hasOwnProperty("earthIntlUrl")) {
  5130. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.earthIntlUrl);
  5131. if (error)
  5132. return "earthIntlUrl." + error;
  5133. }
  5134. if (message.addContentUrl != null && message.hasOwnProperty("addContentUrl")) {
  5135. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.addContentUrl);
  5136. if (error)
  5137. return "addContentUrl." + error;
  5138. }
  5139. if (message.sketchupNotInstalledUrl != null && message.hasOwnProperty("sketchupNotInstalledUrl")) {
  5140. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.sketchupNotInstalledUrl);
  5141. if (error)
  5142. return "sketchupNotInstalledUrl." + error;
  5143. }
  5144. if (message.sketchupErrorUrl != null && message.hasOwnProperty("sketchupErrorUrl")) {
  5145. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.sketchupErrorUrl);
  5146. if (error)
  5147. return "sketchupErrorUrl." + error;
  5148. }
  5149. if (message.freeLicenseUrl != null && message.hasOwnProperty("freeLicenseUrl")) {
  5150. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.freeLicenseUrl);
  5151. if (error)
  5152. return "freeLicenseUrl." + error;
  5153. }
  5154. if (message.proLicenseUrl != null && message.hasOwnProperty("proLicenseUrl")) {
  5155. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.proLicenseUrl);
  5156. if (error)
  5157. return "proLicenseUrl." + error;
  5158. }
  5159. if (message.tutorialUrl != null && message.hasOwnProperty("tutorialUrl")) {
  5160. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.tutorialUrl);
  5161. if (error)
  5162. return "tutorialUrl." + error;
  5163. }
  5164. if (message.keyboardShortcutsUrl != null && message.hasOwnProperty("keyboardShortcutsUrl")) {
  5165. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.keyboardShortcutsUrl);
  5166. if (error)
  5167. return "keyboardShortcutsUrl." + error;
  5168. }
  5169. if (message.releaseNotesUrl != null && message.hasOwnProperty("releaseNotesUrl")) {
  5170. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.releaseNotesUrl);
  5171. if (error)
  5172. return "releaseNotesUrl." + error;
  5173. }
  5174. if (message.hideUserData != null && message.hasOwnProperty("hideUserData")) {
  5175. if (typeof message.hideUserData !== "boolean")
  5176. return "hideUserData: boolean expected";
  5177. }
  5178. if (message.useGeLogo != null && message.hasOwnProperty("useGeLogo")) {
  5179. if (typeof message.useGeLogo !== "boolean")
  5180. return "useGeLogo: boolean expected";
  5181. }
  5182. if (message.dioramaDescriptionUrlBase != null && message.hasOwnProperty("dioramaDescriptionUrlBase")) {
  5183. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.dioramaDescriptionUrlBase);
  5184. if (error)
  5185. return "dioramaDescriptionUrlBase." + error;
  5186. }
  5187. if (message.dioramaDefaultColor != null && message.hasOwnProperty("dioramaDefaultColor")) {
  5188. if (!$util.isInteger(message.dioramaDefaultColor))
  5189. return "dioramaDefaultColor: integer expected";
  5190. }
  5191. if (message.dioramaBlacklistUrl != null && message.hasOwnProperty("dioramaBlacklistUrl")) {
  5192. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.dioramaBlacklistUrl);
  5193. if (error)
  5194. return "dioramaBlacklistUrl." + error;
  5195. }
  5196. if (message.clientOptions != null && message.hasOwnProperty("clientOptions")) {
  5197. var error = $root.keyhole.dbroot.ClientOptionsProto.verify(message.clientOptions);
  5198. if (error)
  5199. return "clientOptions." + error;
  5200. }
  5201. if (message.fetchingOptions != null && message.hasOwnProperty("fetchingOptions")) {
  5202. var error = $root.keyhole.dbroot.FetchingOptionsProto.verify(message.fetchingOptions);
  5203. if (error)
  5204. return "fetchingOptions." + error;
  5205. }
  5206. if (message.timeMachineOptions != null && message.hasOwnProperty("timeMachineOptions")) {
  5207. var error = $root.keyhole.dbroot.TimeMachineOptionsProto.verify(message.timeMachineOptions);
  5208. if (error)
  5209. return "timeMachineOptions." + error;
  5210. }
  5211. if (message.csiOptions != null && message.hasOwnProperty("csiOptions")) {
  5212. var error = $root.keyhole.dbroot.CSIOptionsProto.verify(message.csiOptions);
  5213. if (error)
  5214. return "csiOptions." + error;
  5215. }
  5216. if (message.searchTab != null && message.hasOwnProperty("searchTab")) {
  5217. if (!Array.isArray(message.searchTab))
  5218. return "searchTab: array expected";
  5219. for (var i = 0; i < message.searchTab.length; ++i) {
  5220. var error = $root.keyhole.dbroot.SearchTabProto.verify(message.searchTab[i]);
  5221. if (error)
  5222. return "searchTab." + error;
  5223. }
  5224. }
  5225. if (message.cobrandInfo != null && message.hasOwnProperty("cobrandInfo")) {
  5226. if (!Array.isArray(message.cobrandInfo))
  5227. return "cobrandInfo: array expected";
  5228. for (var i = 0; i < message.cobrandInfo.length; ++i) {
  5229. var error = $root.keyhole.dbroot.CobrandProto.verify(message.cobrandInfo[i]);
  5230. if (error)
  5231. return "cobrandInfo." + error;
  5232. }
  5233. }
  5234. if (message.validDatabase != null && message.hasOwnProperty("validDatabase")) {
  5235. if (!Array.isArray(message.validDatabase))
  5236. return "validDatabase: array expected";
  5237. for (var i = 0; i < message.validDatabase.length; ++i) {
  5238. var error = $root.keyhole.dbroot.DatabaseDescriptionProto.verify(message.validDatabase[i]);
  5239. if (error)
  5240. return "validDatabase." + error;
  5241. }
  5242. }
  5243. if (message.configScript != null && message.hasOwnProperty("configScript")) {
  5244. if (!Array.isArray(message.configScript))
  5245. return "configScript: array expected";
  5246. for (var i = 0; i < message.configScript.length; ++i) {
  5247. var error = $root.keyhole.dbroot.ConfigScriptProto.verify(message.configScript[i]);
  5248. if (error)
  5249. return "configScript." + error;
  5250. }
  5251. }
  5252. if (message.deauthServerUrl != null && message.hasOwnProperty("deauthServerUrl")) {
  5253. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.deauthServerUrl);
  5254. if (error)
  5255. return "deauthServerUrl." + error;
  5256. }
  5257. if (message.swoopParameters != null && message.hasOwnProperty("swoopParameters")) {
  5258. var error = $root.keyhole.dbroot.SwoopParamsProto.verify(message.swoopParameters);
  5259. if (error)
  5260. return "swoopParameters." + error;
  5261. }
  5262. if (message.bbsServerInfo != null && message.hasOwnProperty("bbsServerInfo")) {
  5263. var error = $root.keyhole.dbroot.PostingServerProto.verify(message.bbsServerInfo);
  5264. if (error)
  5265. return "bbsServerInfo." + error;
  5266. }
  5267. if (message.dataErrorServerInfo != null && message.hasOwnProperty("dataErrorServerInfo")) {
  5268. var error = $root.keyhole.dbroot.PostingServerProto.verify(message.dataErrorServerInfo);
  5269. if (error)
  5270. return "dataErrorServerInfo." + error;
  5271. }
  5272. if (message.planetaryDatabase != null && message.hasOwnProperty("planetaryDatabase")) {
  5273. if (!Array.isArray(message.planetaryDatabase))
  5274. return "planetaryDatabase: array expected";
  5275. for (var i = 0; i < message.planetaryDatabase.length; ++i) {
  5276. var error = $root.keyhole.dbroot.PlanetaryDatabaseProto.verify(message.planetaryDatabase[i]);
  5277. if (error)
  5278. return "planetaryDatabase." + error;
  5279. }
  5280. }
  5281. if (message.logServer != null && message.hasOwnProperty("logServer")) {
  5282. var error = $root.keyhole.dbroot.LogServerProto.verify(message.logServer);
  5283. if (error)
  5284. return "logServer." + error;
  5285. }
  5286. if (message.autopiaOptions != null && message.hasOwnProperty("autopiaOptions")) {
  5287. var error = $root.keyhole.dbroot.AutopiaOptionsProto.verify(message.autopiaOptions);
  5288. if (error)
  5289. return "autopiaOptions." + error;
  5290. }
  5291. if (message.searchConfig != null && message.hasOwnProperty("searchConfig")) {
  5292. var error = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.verify(message.searchConfig);
  5293. if (error)
  5294. return "searchConfig." + error;
  5295. }
  5296. if (message.searchInfo != null && message.hasOwnProperty("searchInfo")) {
  5297. var error = $root.keyhole.dbroot.EndSnippetProto.SearchInfoProto.verify(message.searchInfo);
  5298. if (error)
  5299. return "searchInfo." + error;
  5300. }
  5301. if (message.elevationServiceBaseUrl != null && message.hasOwnProperty("elevationServiceBaseUrl")) {
  5302. if (!$util.isString(message.elevationServiceBaseUrl))
  5303. return "elevationServiceBaseUrl: string expected";
  5304. }
  5305. if (message.elevationProfileQueryDelay != null && message.hasOwnProperty("elevationProfileQueryDelay")) {
  5306. if (!$util.isInteger(message.elevationProfileQueryDelay))
  5307. return "elevationProfileQueryDelay: integer expected";
  5308. }
  5309. if (message.proUpgradeUrl != null && message.hasOwnProperty("proUpgradeUrl")) {
  5310. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.proUpgradeUrl);
  5311. if (error)
  5312. return "proUpgradeUrl." + error;
  5313. }
  5314. if (message.earthCommunityUrl != null && message.hasOwnProperty("earthCommunityUrl")) {
  5315. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.earthCommunityUrl);
  5316. if (error)
  5317. return "earthCommunityUrl." + error;
  5318. }
  5319. if (message.googleMapsUrl != null && message.hasOwnProperty("googleMapsUrl")) {
  5320. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.googleMapsUrl);
  5321. if (error)
  5322. return "googleMapsUrl." + error;
  5323. }
  5324. if (message.sharingUrl != null && message.hasOwnProperty("sharingUrl")) {
  5325. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.sharingUrl);
  5326. if (error)
  5327. return "sharingUrl." + error;
  5328. }
  5329. if (message.privacyPolicyUrl != null && message.hasOwnProperty("privacyPolicyUrl")) {
  5330. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.privacyPolicyUrl);
  5331. if (error)
  5332. return "privacyPolicyUrl." + error;
  5333. }
  5334. if (message.doGplusUserCheck != null && message.hasOwnProperty("doGplusUserCheck")) {
  5335. if (typeof message.doGplusUserCheck !== "boolean")
  5336. return "doGplusUserCheck: boolean expected";
  5337. }
  5338. if (message.rocktreeDataProto != null && message.hasOwnProperty("rocktreeDataProto")) {
  5339. var error = $root.keyhole.dbroot.EndSnippetProto.RockTreeDataProto.verify(message.rocktreeDataProto);
  5340. if (error)
  5341. return "rocktreeDataProto." + error;
  5342. }
  5343. if (message.filmstripConfig != null && message.hasOwnProperty("filmstripConfig")) {
  5344. if (!Array.isArray(message.filmstripConfig))
  5345. return "filmstripConfig: array expected";
  5346. for (var i = 0; i < message.filmstripConfig.length; ++i) {
  5347. var error = $root.keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.verify(message.filmstripConfig[i]);
  5348. if (error)
  5349. return "filmstripConfig." + error;
  5350. }
  5351. }
  5352. if (message.showSigninButton != null && message.hasOwnProperty("showSigninButton")) {
  5353. if (typeof message.showSigninButton !== "boolean")
  5354. return "showSigninButton: boolean expected";
  5355. }
  5356. if (message.proMeasureUpsellUrl != null && message.hasOwnProperty("proMeasureUpsellUrl")) {
  5357. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.proMeasureUpsellUrl);
  5358. if (error)
  5359. return "proMeasureUpsellUrl." + error;
  5360. }
  5361. if (message.proPrintUpsellUrl != null && message.hasOwnProperty("proPrintUpsellUrl")) {
  5362. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.proPrintUpsellUrl);
  5363. if (error)
  5364. return "proPrintUpsellUrl." + error;
  5365. }
  5366. if (message.starDataProto != null && message.hasOwnProperty("starDataProto")) {
  5367. var error = $root.keyhole.dbroot.EndSnippetProto.StarDataProto.verify(message.starDataProto);
  5368. if (error)
  5369. return "starDataProto." + error;
  5370. }
  5371. if (message.feedbackUrl != null && message.hasOwnProperty("feedbackUrl")) {
  5372. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.feedbackUrl);
  5373. if (error)
  5374. return "feedbackUrl." + error;
  5375. }
  5376. if (message.oauth2LoginUrl != null && message.hasOwnProperty("oauth2LoginUrl")) {
  5377. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.oauth2LoginUrl);
  5378. if (error)
  5379. return "oauth2LoginUrl." + error;
  5380. }
  5381. return null;
  5382. };
  5383. EndSnippetProto.fromObject = function fromObject(object) {
  5384. if (object instanceof $root.keyhole.dbroot.EndSnippetProto)
  5385. return object;
  5386. var message = new $root.keyhole.dbroot.EndSnippetProto();
  5387. if (object.model != null) {
  5388. if (typeof object.model !== "object")
  5389. throw TypeError(".keyhole.dbroot.EndSnippetProto.model: object expected");
  5390. message.model = $root.keyhole.dbroot.PlanetModelProto.fromObject(object.model);
  5391. }
  5392. if (object.authServerUrl != null) {
  5393. if (typeof object.authServerUrl !== "object")
  5394. throw TypeError(".keyhole.dbroot.EndSnippetProto.authServerUrl: object expected");
  5395. message.authServerUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.authServerUrl);
  5396. }
  5397. if (object.disableAuthentication != null)
  5398. message.disableAuthentication = Boolean(object.disableAuthentication);
  5399. if (object.mfeDomains) {
  5400. if (!Array.isArray(object.mfeDomains))
  5401. throw TypeError(".keyhole.dbroot.EndSnippetProto.mfeDomains: array expected");
  5402. message.mfeDomains = [];
  5403. for (var i = 0; i < object.mfeDomains.length; ++i) {
  5404. if (typeof object.mfeDomains[i] !== "object")
  5405. throw TypeError(".keyhole.dbroot.EndSnippetProto.mfeDomains: object expected");
  5406. message.mfeDomains[i] = $root.keyhole.dbroot.MfeDomainFeaturesProto.fromObject(object.mfeDomains[i]);
  5407. }
  5408. }
  5409. if (object.mfeLangParam != null)
  5410. message.mfeLangParam = String(object.mfeLangParam);
  5411. if (object.adsUrlPatterns != null)
  5412. message.adsUrlPatterns = String(object.adsUrlPatterns);
  5413. if (object.reverseGeocoderUrl != null) {
  5414. if (typeof object.reverseGeocoderUrl !== "object")
  5415. throw TypeError(".keyhole.dbroot.EndSnippetProto.reverseGeocoderUrl: object expected");
  5416. message.reverseGeocoderUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.reverseGeocoderUrl);
  5417. }
  5418. if (object.reverseGeocoderProtocolVersion != null)
  5419. message.reverseGeocoderProtocolVersion = object.reverseGeocoderProtocolVersion | 0;
  5420. if (object.skyDatabaseIsAvailable != null)
  5421. message.skyDatabaseIsAvailable = Boolean(object.skyDatabaseIsAvailable);
  5422. if (object.skyDatabaseUrl != null) {
  5423. if (typeof object.skyDatabaseUrl !== "object")
  5424. throw TypeError(".keyhole.dbroot.EndSnippetProto.skyDatabaseUrl: object expected");
  5425. message.skyDatabaseUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.skyDatabaseUrl);
  5426. }
  5427. if (object.defaultWebPageIntlUrl != null) {
  5428. if (typeof object.defaultWebPageIntlUrl !== "object")
  5429. throw TypeError(".keyhole.dbroot.EndSnippetProto.defaultWebPageIntlUrl: object expected");
  5430. message.defaultWebPageIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.defaultWebPageIntlUrl);
  5431. }
  5432. if (object.numStartUpTips != null)
  5433. message.numStartUpTips = object.numStartUpTips | 0;
  5434. if (object.startUpTipsUrl != null) {
  5435. if (typeof object.startUpTipsUrl !== "object")
  5436. throw TypeError(".keyhole.dbroot.EndSnippetProto.startUpTipsUrl: object expected");
  5437. message.startUpTipsUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.startUpTipsUrl);
  5438. }
  5439. if (object.numProStartUpTips != null)
  5440. message.numProStartUpTips = object.numProStartUpTips | 0;
  5441. if (object.proStartUpTipsUrl != null) {
  5442. if (typeof object.proStartUpTipsUrl !== "object")
  5443. throw TypeError(".keyhole.dbroot.EndSnippetProto.proStartUpTipsUrl: object expected");
  5444. message.proStartUpTipsUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.proStartUpTipsUrl);
  5445. }
  5446. if (object.startupTipsIntlUrl != null) {
  5447. if (typeof object.startupTipsIntlUrl !== "object")
  5448. throw TypeError(".keyhole.dbroot.EndSnippetProto.startupTipsIntlUrl: object expected");
  5449. message.startupTipsIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.startupTipsIntlUrl);
  5450. }
  5451. if (object.userGuideIntlUrl != null) {
  5452. if (typeof object.userGuideIntlUrl !== "object")
  5453. throw TypeError(".keyhole.dbroot.EndSnippetProto.userGuideIntlUrl: object expected");
  5454. message.userGuideIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.userGuideIntlUrl);
  5455. }
  5456. if (object.supportCenterIntlUrl != null) {
  5457. if (typeof object.supportCenterIntlUrl !== "object")
  5458. throw TypeError(".keyhole.dbroot.EndSnippetProto.supportCenterIntlUrl: object expected");
  5459. message.supportCenterIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.supportCenterIntlUrl);
  5460. }
  5461. if (object.businessListingIntlUrl != null) {
  5462. if (typeof object.businessListingIntlUrl !== "object")
  5463. throw TypeError(".keyhole.dbroot.EndSnippetProto.businessListingIntlUrl: object expected");
  5464. message.businessListingIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.businessListingIntlUrl);
  5465. }
  5466. if (object.supportAnswerIntlUrl != null) {
  5467. if (typeof object.supportAnswerIntlUrl !== "object")
  5468. throw TypeError(".keyhole.dbroot.EndSnippetProto.supportAnswerIntlUrl: object expected");
  5469. message.supportAnswerIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.supportAnswerIntlUrl);
  5470. }
  5471. if (object.supportTopicIntlUrl != null) {
  5472. if (typeof object.supportTopicIntlUrl !== "object")
  5473. throw TypeError(".keyhole.dbroot.EndSnippetProto.supportTopicIntlUrl: object expected");
  5474. message.supportTopicIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.supportTopicIntlUrl);
  5475. }
  5476. if (object.supportRequestIntlUrl != null) {
  5477. if (typeof object.supportRequestIntlUrl !== "object")
  5478. throw TypeError(".keyhole.dbroot.EndSnippetProto.supportRequestIntlUrl: object expected");
  5479. message.supportRequestIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.supportRequestIntlUrl);
  5480. }
  5481. if (object.earthIntlUrl != null) {
  5482. if (typeof object.earthIntlUrl !== "object")
  5483. throw TypeError(".keyhole.dbroot.EndSnippetProto.earthIntlUrl: object expected");
  5484. message.earthIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.earthIntlUrl);
  5485. }
  5486. if (object.addContentUrl != null) {
  5487. if (typeof object.addContentUrl !== "object")
  5488. throw TypeError(".keyhole.dbroot.EndSnippetProto.addContentUrl: object expected");
  5489. message.addContentUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.addContentUrl);
  5490. }
  5491. if (object.sketchupNotInstalledUrl != null) {
  5492. if (typeof object.sketchupNotInstalledUrl !== "object")
  5493. throw TypeError(".keyhole.dbroot.EndSnippetProto.sketchupNotInstalledUrl: object expected");
  5494. message.sketchupNotInstalledUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.sketchupNotInstalledUrl);
  5495. }
  5496. if (object.sketchupErrorUrl != null) {
  5497. if (typeof object.sketchupErrorUrl !== "object")
  5498. throw TypeError(".keyhole.dbroot.EndSnippetProto.sketchupErrorUrl: object expected");
  5499. message.sketchupErrorUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.sketchupErrorUrl);
  5500. }
  5501. if (object.freeLicenseUrl != null) {
  5502. if (typeof object.freeLicenseUrl !== "object")
  5503. throw TypeError(".keyhole.dbroot.EndSnippetProto.freeLicenseUrl: object expected");
  5504. message.freeLicenseUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.freeLicenseUrl);
  5505. }
  5506. if (object.proLicenseUrl != null) {
  5507. if (typeof object.proLicenseUrl !== "object")
  5508. throw TypeError(".keyhole.dbroot.EndSnippetProto.proLicenseUrl: object expected");
  5509. message.proLicenseUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.proLicenseUrl);
  5510. }
  5511. if (object.tutorialUrl != null) {
  5512. if (typeof object.tutorialUrl !== "object")
  5513. throw TypeError(".keyhole.dbroot.EndSnippetProto.tutorialUrl: object expected");
  5514. message.tutorialUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.tutorialUrl);
  5515. }
  5516. if (object.keyboardShortcutsUrl != null) {
  5517. if (typeof object.keyboardShortcutsUrl !== "object")
  5518. throw TypeError(".keyhole.dbroot.EndSnippetProto.keyboardShortcutsUrl: object expected");
  5519. message.keyboardShortcutsUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.keyboardShortcutsUrl);
  5520. }
  5521. if (object.releaseNotesUrl != null) {
  5522. if (typeof object.releaseNotesUrl !== "object")
  5523. throw TypeError(".keyhole.dbroot.EndSnippetProto.releaseNotesUrl: object expected");
  5524. message.releaseNotesUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.releaseNotesUrl);
  5525. }
  5526. if (object.hideUserData != null)
  5527. message.hideUserData = Boolean(object.hideUserData);
  5528. if (object.useGeLogo != null)
  5529. message.useGeLogo = Boolean(object.useGeLogo);
  5530. if (object.dioramaDescriptionUrlBase != null) {
  5531. if (typeof object.dioramaDescriptionUrlBase !== "object")
  5532. throw TypeError(".keyhole.dbroot.EndSnippetProto.dioramaDescriptionUrlBase: object expected");
  5533. message.dioramaDescriptionUrlBase = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.dioramaDescriptionUrlBase);
  5534. }
  5535. if (object.dioramaDefaultColor != null)
  5536. message.dioramaDefaultColor = object.dioramaDefaultColor >>> 0;
  5537. if (object.dioramaBlacklistUrl != null) {
  5538. if (typeof object.dioramaBlacklistUrl !== "object")
  5539. throw TypeError(".keyhole.dbroot.EndSnippetProto.dioramaBlacklistUrl: object expected");
  5540. message.dioramaBlacklistUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.dioramaBlacklistUrl);
  5541. }
  5542. if (object.clientOptions != null) {
  5543. if (typeof object.clientOptions !== "object")
  5544. throw TypeError(".keyhole.dbroot.EndSnippetProto.clientOptions: object expected");
  5545. message.clientOptions = $root.keyhole.dbroot.ClientOptionsProto.fromObject(object.clientOptions);
  5546. }
  5547. if (object.fetchingOptions != null) {
  5548. if (typeof object.fetchingOptions !== "object")
  5549. throw TypeError(".keyhole.dbroot.EndSnippetProto.fetchingOptions: object expected");
  5550. message.fetchingOptions = $root.keyhole.dbroot.FetchingOptionsProto.fromObject(object.fetchingOptions);
  5551. }
  5552. if (object.timeMachineOptions != null) {
  5553. if (typeof object.timeMachineOptions !== "object")
  5554. throw TypeError(".keyhole.dbroot.EndSnippetProto.timeMachineOptions: object expected");
  5555. message.timeMachineOptions = $root.keyhole.dbroot.TimeMachineOptionsProto.fromObject(object.timeMachineOptions);
  5556. }
  5557. if (object.csiOptions != null) {
  5558. if (typeof object.csiOptions !== "object")
  5559. throw TypeError(".keyhole.dbroot.EndSnippetProto.csiOptions: object expected");
  5560. message.csiOptions = $root.keyhole.dbroot.CSIOptionsProto.fromObject(object.csiOptions);
  5561. }
  5562. if (object.searchTab) {
  5563. if (!Array.isArray(object.searchTab))
  5564. throw TypeError(".keyhole.dbroot.EndSnippetProto.searchTab: array expected");
  5565. message.searchTab = [];
  5566. for (var i = 0; i < object.searchTab.length; ++i) {
  5567. if (typeof object.searchTab[i] !== "object")
  5568. throw TypeError(".keyhole.dbroot.EndSnippetProto.searchTab: object expected");
  5569. message.searchTab[i] = $root.keyhole.dbroot.SearchTabProto.fromObject(object.searchTab[i]);
  5570. }
  5571. }
  5572. if (object.cobrandInfo) {
  5573. if (!Array.isArray(object.cobrandInfo))
  5574. throw TypeError(".keyhole.dbroot.EndSnippetProto.cobrandInfo: array expected");
  5575. message.cobrandInfo = [];
  5576. for (var i = 0; i < object.cobrandInfo.length; ++i) {
  5577. if (typeof object.cobrandInfo[i] !== "object")
  5578. throw TypeError(".keyhole.dbroot.EndSnippetProto.cobrandInfo: object expected");
  5579. message.cobrandInfo[i] = $root.keyhole.dbroot.CobrandProto.fromObject(object.cobrandInfo[i]);
  5580. }
  5581. }
  5582. if (object.validDatabase) {
  5583. if (!Array.isArray(object.validDatabase))
  5584. throw TypeError(".keyhole.dbroot.EndSnippetProto.validDatabase: array expected");
  5585. message.validDatabase = [];
  5586. for (var i = 0; i < object.validDatabase.length; ++i) {
  5587. if (typeof object.validDatabase[i] !== "object")
  5588. throw TypeError(".keyhole.dbroot.EndSnippetProto.validDatabase: object expected");
  5589. message.validDatabase[i] = $root.keyhole.dbroot.DatabaseDescriptionProto.fromObject(object.validDatabase[i]);
  5590. }
  5591. }
  5592. if (object.configScript) {
  5593. if (!Array.isArray(object.configScript))
  5594. throw TypeError(".keyhole.dbroot.EndSnippetProto.configScript: array expected");
  5595. message.configScript = [];
  5596. for (var i = 0; i < object.configScript.length; ++i) {
  5597. if (typeof object.configScript[i] !== "object")
  5598. throw TypeError(".keyhole.dbroot.EndSnippetProto.configScript: object expected");
  5599. message.configScript[i] = $root.keyhole.dbroot.ConfigScriptProto.fromObject(object.configScript[i]);
  5600. }
  5601. }
  5602. if (object.deauthServerUrl != null) {
  5603. if (typeof object.deauthServerUrl !== "object")
  5604. throw TypeError(".keyhole.dbroot.EndSnippetProto.deauthServerUrl: object expected");
  5605. message.deauthServerUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.deauthServerUrl);
  5606. }
  5607. if (object.swoopParameters != null) {
  5608. if (typeof object.swoopParameters !== "object")
  5609. throw TypeError(".keyhole.dbroot.EndSnippetProto.swoopParameters: object expected");
  5610. message.swoopParameters = $root.keyhole.dbroot.SwoopParamsProto.fromObject(object.swoopParameters);
  5611. }
  5612. if (object.bbsServerInfo != null) {
  5613. if (typeof object.bbsServerInfo !== "object")
  5614. throw TypeError(".keyhole.dbroot.EndSnippetProto.bbsServerInfo: object expected");
  5615. message.bbsServerInfo = $root.keyhole.dbroot.PostingServerProto.fromObject(object.bbsServerInfo);
  5616. }
  5617. if (object.dataErrorServerInfo != null) {
  5618. if (typeof object.dataErrorServerInfo !== "object")
  5619. throw TypeError(".keyhole.dbroot.EndSnippetProto.dataErrorServerInfo: object expected");
  5620. message.dataErrorServerInfo = $root.keyhole.dbroot.PostingServerProto.fromObject(object.dataErrorServerInfo);
  5621. }
  5622. if (object.planetaryDatabase) {
  5623. if (!Array.isArray(object.planetaryDatabase))
  5624. throw TypeError(".keyhole.dbroot.EndSnippetProto.planetaryDatabase: array expected");
  5625. message.planetaryDatabase = [];
  5626. for (var i = 0; i < object.planetaryDatabase.length; ++i) {
  5627. if (typeof object.planetaryDatabase[i] !== "object")
  5628. throw TypeError(".keyhole.dbroot.EndSnippetProto.planetaryDatabase: object expected");
  5629. message.planetaryDatabase[i] = $root.keyhole.dbroot.PlanetaryDatabaseProto.fromObject(object.planetaryDatabase[i]);
  5630. }
  5631. }
  5632. if (object.logServer != null) {
  5633. if (typeof object.logServer !== "object")
  5634. throw TypeError(".keyhole.dbroot.EndSnippetProto.logServer: object expected");
  5635. message.logServer = $root.keyhole.dbroot.LogServerProto.fromObject(object.logServer);
  5636. }
  5637. if (object.autopiaOptions != null) {
  5638. if (typeof object.autopiaOptions !== "object")
  5639. throw TypeError(".keyhole.dbroot.EndSnippetProto.autopiaOptions: object expected");
  5640. message.autopiaOptions = $root.keyhole.dbroot.AutopiaOptionsProto.fromObject(object.autopiaOptions);
  5641. }
  5642. if (object.searchConfig != null) {
  5643. if (typeof object.searchConfig !== "object")
  5644. throw TypeError(".keyhole.dbroot.EndSnippetProto.searchConfig: object expected");
  5645. message.searchConfig = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.fromObject(object.searchConfig);
  5646. }
  5647. if (object.searchInfo != null) {
  5648. if (typeof object.searchInfo !== "object")
  5649. throw TypeError(".keyhole.dbroot.EndSnippetProto.searchInfo: object expected");
  5650. message.searchInfo = $root.keyhole.dbroot.EndSnippetProto.SearchInfoProto.fromObject(object.searchInfo);
  5651. }
  5652. if (object.elevationServiceBaseUrl != null)
  5653. message.elevationServiceBaseUrl = String(object.elevationServiceBaseUrl);
  5654. if (object.elevationProfileQueryDelay != null)
  5655. message.elevationProfileQueryDelay = object.elevationProfileQueryDelay | 0;
  5656. if (object.proUpgradeUrl != null) {
  5657. if (typeof object.proUpgradeUrl !== "object")
  5658. throw TypeError(".keyhole.dbroot.EndSnippetProto.proUpgradeUrl: object expected");
  5659. message.proUpgradeUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.proUpgradeUrl);
  5660. }
  5661. if (object.earthCommunityUrl != null) {
  5662. if (typeof object.earthCommunityUrl !== "object")
  5663. throw TypeError(".keyhole.dbroot.EndSnippetProto.earthCommunityUrl: object expected");
  5664. message.earthCommunityUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.earthCommunityUrl);
  5665. }
  5666. if (object.googleMapsUrl != null) {
  5667. if (typeof object.googleMapsUrl !== "object")
  5668. throw TypeError(".keyhole.dbroot.EndSnippetProto.googleMapsUrl: object expected");
  5669. message.googleMapsUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.googleMapsUrl);
  5670. }
  5671. if (object.sharingUrl != null) {
  5672. if (typeof object.sharingUrl !== "object")
  5673. throw TypeError(".keyhole.dbroot.EndSnippetProto.sharingUrl: object expected");
  5674. message.sharingUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.sharingUrl);
  5675. }
  5676. if (object.privacyPolicyUrl != null) {
  5677. if (typeof object.privacyPolicyUrl !== "object")
  5678. throw TypeError(".keyhole.dbroot.EndSnippetProto.privacyPolicyUrl: object expected");
  5679. message.privacyPolicyUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.privacyPolicyUrl);
  5680. }
  5681. if (object.doGplusUserCheck != null)
  5682. message.doGplusUserCheck = Boolean(object.doGplusUserCheck);
  5683. if (object.rocktreeDataProto != null) {
  5684. if (typeof object.rocktreeDataProto !== "object")
  5685. throw TypeError(".keyhole.dbroot.EndSnippetProto.rocktreeDataProto: object expected");
  5686. message.rocktreeDataProto = $root.keyhole.dbroot.EndSnippetProto.RockTreeDataProto.fromObject(object.rocktreeDataProto);
  5687. }
  5688. if (object.filmstripConfig) {
  5689. if (!Array.isArray(object.filmstripConfig))
  5690. throw TypeError(".keyhole.dbroot.EndSnippetProto.filmstripConfig: array expected");
  5691. message.filmstripConfig = [];
  5692. for (var i = 0; i < object.filmstripConfig.length; ++i) {
  5693. if (typeof object.filmstripConfig[i] !== "object")
  5694. throw TypeError(".keyhole.dbroot.EndSnippetProto.filmstripConfig: object expected");
  5695. message.filmstripConfig[i] = $root.keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.fromObject(object.filmstripConfig[i]);
  5696. }
  5697. }
  5698. if (object.showSigninButton != null)
  5699. message.showSigninButton = Boolean(object.showSigninButton);
  5700. if (object.proMeasureUpsellUrl != null) {
  5701. if (typeof object.proMeasureUpsellUrl !== "object")
  5702. throw TypeError(".keyhole.dbroot.EndSnippetProto.proMeasureUpsellUrl: object expected");
  5703. message.proMeasureUpsellUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.proMeasureUpsellUrl);
  5704. }
  5705. if (object.proPrintUpsellUrl != null) {
  5706. if (typeof object.proPrintUpsellUrl !== "object")
  5707. throw TypeError(".keyhole.dbroot.EndSnippetProto.proPrintUpsellUrl: object expected");
  5708. message.proPrintUpsellUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.proPrintUpsellUrl);
  5709. }
  5710. if (object.starDataProto != null) {
  5711. if (typeof object.starDataProto !== "object")
  5712. throw TypeError(".keyhole.dbroot.EndSnippetProto.starDataProto: object expected");
  5713. message.starDataProto = $root.keyhole.dbroot.EndSnippetProto.StarDataProto.fromObject(object.starDataProto);
  5714. }
  5715. if (object.feedbackUrl != null) {
  5716. if (typeof object.feedbackUrl !== "object")
  5717. throw TypeError(".keyhole.dbroot.EndSnippetProto.feedbackUrl: object expected");
  5718. message.feedbackUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.feedbackUrl);
  5719. }
  5720. if (object.oauth2LoginUrl != null) {
  5721. if (typeof object.oauth2LoginUrl !== "object")
  5722. throw TypeError(".keyhole.dbroot.EndSnippetProto.oauth2LoginUrl: object expected");
  5723. message.oauth2LoginUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.oauth2LoginUrl);
  5724. }
  5725. return message;
  5726. };
  5727. EndSnippetProto.toObject = function toObject(message, options) {
  5728. if (!options)
  5729. options = {};
  5730. var object = {};
  5731. if (options.arrays || options.defaults) {
  5732. object.mfeDomains = [];
  5733. object.searchTab = [];
  5734. object.cobrandInfo = [];
  5735. object.validDatabase = [];
  5736. object.configScript = [];
  5737. object.planetaryDatabase = [];
  5738. object.filmstripConfig = [];
  5739. }
  5740. if (options.defaults) {
  5741. object.model = null;
  5742. object.authServerUrl = null;
  5743. object.disableAuthentication = false;
  5744. object.mfeLangParam = "hl=$5Bhl5D";
  5745. object.adsUrlPatterns = "";
  5746. object.reverseGeocoderUrl = null;
  5747. object.reverseGeocoderProtocolVersion = 3;
  5748. object.skyDatabaseIsAvailable = true;
  5749. object.skyDatabaseUrl = null;
  5750. object.defaultWebPageIntlUrl = null;
  5751. object.numStartUpTips = 17;
  5752. object.startUpTipsUrl = null;
  5753. object.userGuideIntlUrl = null;
  5754. object.supportCenterIntlUrl = null;
  5755. object.businessListingIntlUrl = null;
  5756. object.supportAnswerIntlUrl = null;
  5757. object.supportTopicIntlUrl = null;
  5758. object.supportRequestIntlUrl = null;
  5759. object.earthIntlUrl = null;
  5760. object.addContentUrl = null;
  5761. object.sketchupNotInstalledUrl = null;
  5762. object.sketchupErrorUrl = null;
  5763. object.freeLicenseUrl = null;
  5764. object.proLicenseUrl = null;
  5765. object.hideUserData = false;
  5766. object.useGeLogo = true;
  5767. object.dioramaDescriptionUrlBase = null;
  5768. object.dioramaDefaultColor = 4291281607;
  5769. object.clientOptions = null;
  5770. object.fetchingOptions = null;
  5771. object.timeMachineOptions = null;
  5772. object.csiOptions = null;
  5773. object.deauthServerUrl = null;
  5774. object.swoopParameters = null;
  5775. object.bbsServerInfo = null;
  5776. object.dataErrorServerInfo = null;
  5777. object.logServer = null;
  5778. object.autopiaOptions = null;
  5779. object.searchInfo = null;
  5780. object.elevationServiceBaseUrl = "http://maps.google.com/maps/api/elevation/";
  5781. object.elevationProfileQueryDelay = 500;
  5782. object.tutorialUrl = null;
  5783. object.keyboardShortcutsUrl = null;
  5784. object.releaseNotesUrl = null;
  5785. object.numProStartUpTips = 0;
  5786. object.proStartUpTipsUrl = null;
  5787. object.dioramaBlacklistUrl = null;
  5788. object.searchConfig = null;
  5789. object.proUpgradeUrl = null;
  5790. object.earthCommunityUrl = null;
  5791. object.googleMapsUrl = null;
  5792. object.sharingUrl = null;
  5793. object.privacyPolicyUrl = null;
  5794. object.doGplusUserCheck = false;
  5795. object.rocktreeDataProto = null;
  5796. object.showSigninButton = false;
  5797. object.startupTipsIntlUrl = null;
  5798. object.proMeasureUpsellUrl = null;
  5799. object.proPrintUpsellUrl = null;
  5800. object.starDataProto = null;
  5801. object.feedbackUrl = null;
  5802. object.oauth2LoginUrl = null;
  5803. }
  5804. if (message.model != null && message.hasOwnProperty("model"))
  5805. object.model = $root.keyhole.dbroot.PlanetModelProto.toObject(message.model, options);
  5806. if (message.authServerUrl != null && message.hasOwnProperty("authServerUrl"))
  5807. object.authServerUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.authServerUrl, options);
  5808. if (message.disableAuthentication != null && message.hasOwnProperty("disableAuthentication"))
  5809. object.disableAuthentication = message.disableAuthentication;
  5810. if (message.mfeDomains && message.mfeDomains.length) {
  5811. object.mfeDomains = [];
  5812. for (var j = 0; j < message.mfeDomains.length; ++j)
  5813. object.mfeDomains[j] = $root.keyhole.dbroot.MfeDomainFeaturesProto.toObject(message.mfeDomains[j], options);
  5814. }
  5815. if (message.mfeLangParam != null && message.hasOwnProperty("mfeLangParam"))
  5816. object.mfeLangParam = message.mfeLangParam;
  5817. if (message.adsUrlPatterns != null && message.hasOwnProperty("adsUrlPatterns"))
  5818. object.adsUrlPatterns = message.adsUrlPatterns;
  5819. if (message.reverseGeocoderUrl != null && message.hasOwnProperty("reverseGeocoderUrl"))
  5820. object.reverseGeocoderUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.reverseGeocoderUrl, options);
  5821. if (message.reverseGeocoderProtocolVersion != null && message.hasOwnProperty("reverseGeocoderProtocolVersion"))
  5822. object.reverseGeocoderProtocolVersion = message.reverseGeocoderProtocolVersion;
  5823. if (message.skyDatabaseIsAvailable != null && message.hasOwnProperty("skyDatabaseIsAvailable"))
  5824. object.skyDatabaseIsAvailable = message.skyDatabaseIsAvailable;
  5825. if (message.skyDatabaseUrl != null && message.hasOwnProperty("skyDatabaseUrl"))
  5826. object.skyDatabaseUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.skyDatabaseUrl, options);
  5827. if (message.defaultWebPageIntlUrl != null && message.hasOwnProperty("defaultWebPageIntlUrl"))
  5828. object.defaultWebPageIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.defaultWebPageIntlUrl, options);
  5829. if (message.numStartUpTips != null && message.hasOwnProperty("numStartUpTips"))
  5830. object.numStartUpTips = message.numStartUpTips;
  5831. if (message.startUpTipsUrl != null && message.hasOwnProperty("startUpTipsUrl"))
  5832. object.startUpTipsUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.startUpTipsUrl, options);
  5833. if (message.userGuideIntlUrl != null && message.hasOwnProperty("userGuideIntlUrl"))
  5834. object.userGuideIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.userGuideIntlUrl, options);
  5835. if (message.supportCenterIntlUrl != null && message.hasOwnProperty("supportCenterIntlUrl"))
  5836. object.supportCenterIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.supportCenterIntlUrl, options);
  5837. if (message.businessListingIntlUrl != null && message.hasOwnProperty("businessListingIntlUrl"))
  5838. object.businessListingIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.businessListingIntlUrl, options);
  5839. if (message.supportAnswerIntlUrl != null && message.hasOwnProperty("supportAnswerIntlUrl"))
  5840. object.supportAnswerIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.supportAnswerIntlUrl, options);
  5841. if (message.supportTopicIntlUrl != null && message.hasOwnProperty("supportTopicIntlUrl"))
  5842. object.supportTopicIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.supportTopicIntlUrl, options);
  5843. if (message.supportRequestIntlUrl != null && message.hasOwnProperty("supportRequestIntlUrl"))
  5844. object.supportRequestIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.supportRequestIntlUrl, options);
  5845. if (message.earthIntlUrl != null && message.hasOwnProperty("earthIntlUrl"))
  5846. object.earthIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.earthIntlUrl, options);
  5847. if (message.addContentUrl != null && message.hasOwnProperty("addContentUrl"))
  5848. object.addContentUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.addContentUrl, options);
  5849. if (message.sketchupNotInstalledUrl != null && message.hasOwnProperty("sketchupNotInstalledUrl"))
  5850. object.sketchupNotInstalledUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.sketchupNotInstalledUrl, options);
  5851. if (message.sketchupErrorUrl != null && message.hasOwnProperty("sketchupErrorUrl"))
  5852. object.sketchupErrorUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.sketchupErrorUrl, options);
  5853. if (message.freeLicenseUrl != null && message.hasOwnProperty("freeLicenseUrl"))
  5854. object.freeLicenseUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.freeLicenseUrl, options);
  5855. if (message.proLicenseUrl != null && message.hasOwnProperty("proLicenseUrl"))
  5856. object.proLicenseUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.proLicenseUrl, options);
  5857. if (message.hideUserData != null && message.hasOwnProperty("hideUserData"))
  5858. object.hideUserData = message.hideUserData;
  5859. if (message.useGeLogo != null && message.hasOwnProperty("useGeLogo"))
  5860. object.useGeLogo = message.useGeLogo;
  5861. if (message.dioramaDescriptionUrlBase != null && message.hasOwnProperty("dioramaDescriptionUrlBase"))
  5862. object.dioramaDescriptionUrlBase = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.dioramaDescriptionUrlBase, options);
  5863. if (message.dioramaDefaultColor != null && message.hasOwnProperty("dioramaDefaultColor"))
  5864. object.dioramaDefaultColor = message.dioramaDefaultColor;
  5865. if (message.clientOptions != null && message.hasOwnProperty("clientOptions"))
  5866. object.clientOptions = $root.keyhole.dbroot.ClientOptionsProto.toObject(message.clientOptions, options);
  5867. if (message.fetchingOptions != null && message.hasOwnProperty("fetchingOptions"))
  5868. object.fetchingOptions = $root.keyhole.dbroot.FetchingOptionsProto.toObject(message.fetchingOptions, options);
  5869. if (message.timeMachineOptions != null && message.hasOwnProperty("timeMachineOptions"))
  5870. object.timeMachineOptions = $root.keyhole.dbroot.TimeMachineOptionsProto.toObject(message.timeMachineOptions, options);
  5871. if (message.csiOptions != null && message.hasOwnProperty("csiOptions"))
  5872. object.csiOptions = $root.keyhole.dbroot.CSIOptionsProto.toObject(message.csiOptions, options);
  5873. if (message.searchTab && message.searchTab.length) {
  5874. object.searchTab = [];
  5875. for (var j = 0; j < message.searchTab.length; ++j)
  5876. object.searchTab[j] = $root.keyhole.dbroot.SearchTabProto.toObject(message.searchTab[j], options);
  5877. }
  5878. if (message.cobrandInfo && message.cobrandInfo.length) {
  5879. object.cobrandInfo = [];
  5880. for (var j = 0; j < message.cobrandInfo.length; ++j)
  5881. object.cobrandInfo[j] = $root.keyhole.dbroot.CobrandProto.toObject(message.cobrandInfo[j], options);
  5882. }
  5883. if (message.validDatabase && message.validDatabase.length) {
  5884. object.validDatabase = [];
  5885. for (var j = 0; j < message.validDatabase.length; ++j)
  5886. object.validDatabase[j] = $root.keyhole.dbroot.DatabaseDescriptionProto.toObject(message.validDatabase[j], options);
  5887. }
  5888. if (message.configScript && message.configScript.length) {
  5889. object.configScript = [];
  5890. for (var j = 0; j < message.configScript.length; ++j)
  5891. object.configScript[j] = $root.keyhole.dbroot.ConfigScriptProto.toObject(message.configScript[j], options);
  5892. }
  5893. if (message.deauthServerUrl != null && message.hasOwnProperty("deauthServerUrl"))
  5894. object.deauthServerUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.deauthServerUrl, options);
  5895. if (message.swoopParameters != null && message.hasOwnProperty("swoopParameters"))
  5896. object.swoopParameters = $root.keyhole.dbroot.SwoopParamsProto.toObject(message.swoopParameters, options);
  5897. if (message.bbsServerInfo != null && message.hasOwnProperty("bbsServerInfo"))
  5898. object.bbsServerInfo = $root.keyhole.dbroot.PostingServerProto.toObject(message.bbsServerInfo, options);
  5899. if (message.dataErrorServerInfo != null && message.hasOwnProperty("dataErrorServerInfo"))
  5900. object.dataErrorServerInfo = $root.keyhole.dbroot.PostingServerProto.toObject(message.dataErrorServerInfo, options);
  5901. if (message.planetaryDatabase && message.planetaryDatabase.length) {
  5902. object.planetaryDatabase = [];
  5903. for (var j = 0; j < message.planetaryDatabase.length; ++j)
  5904. object.planetaryDatabase[j] = $root.keyhole.dbroot.PlanetaryDatabaseProto.toObject(message.planetaryDatabase[j], options);
  5905. }
  5906. if (message.logServer != null && message.hasOwnProperty("logServer"))
  5907. object.logServer = $root.keyhole.dbroot.LogServerProto.toObject(message.logServer, options);
  5908. if (message.autopiaOptions != null && message.hasOwnProperty("autopiaOptions"))
  5909. object.autopiaOptions = $root.keyhole.dbroot.AutopiaOptionsProto.toObject(message.autopiaOptions, options);
  5910. if (message.searchInfo != null && message.hasOwnProperty("searchInfo"))
  5911. object.searchInfo = $root.keyhole.dbroot.EndSnippetProto.SearchInfoProto.toObject(message.searchInfo, options);
  5912. if (message.elevationServiceBaseUrl != null && message.hasOwnProperty("elevationServiceBaseUrl"))
  5913. object.elevationServiceBaseUrl = message.elevationServiceBaseUrl;
  5914. if (message.elevationProfileQueryDelay != null && message.hasOwnProperty("elevationProfileQueryDelay"))
  5915. object.elevationProfileQueryDelay = message.elevationProfileQueryDelay;
  5916. if (message.tutorialUrl != null && message.hasOwnProperty("tutorialUrl"))
  5917. object.tutorialUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.tutorialUrl, options);
  5918. if (message.keyboardShortcutsUrl != null && message.hasOwnProperty("keyboardShortcutsUrl"))
  5919. object.keyboardShortcutsUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.keyboardShortcutsUrl, options);
  5920. if (message.releaseNotesUrl != null && message.hasOwnProperty("releaseNotesUrl"))
  5921. object.releaseNotesUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.releaseNotesUrl, options);
  5922. if (message.numProStartUpTips != null && message.hasOwnProperty("numProStartUpTips"))
  5923. object.numProStartUpTips = message.numProStartUpTips;
  5924. if (message.proStartUpTipsUrl != null && message.hasOwnProperty("proStartUpTipsUrl"))
  5925. object.proStartUpTipsUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.proStartUpTipsUrl, options);
  5926. if (message.dioramaBlacklistUrl != null && message.hasOwnProperty("dioramaBlacklistUrl"))
  5927. object.dioramaBlacklistUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.dioramaBlacklistUrl, options);
  5928. if (message.searchConfig != null && message.hasOwnProperty("searchConfig"))
  5929. object.searchConfig = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.toObject(message.searchConfig, options);
  5930. if (message.proUpgradeUrl != null && message.hasOwnProperty("proUpgradeUrl"))
  5931. object.proUpgradeUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.proUpgradeUrl, options);
  5932. if (message.earthCommunityUrl != null && message.hasOwnProperty("earthCommunityUrl"))
  5933. object.earthCommunityUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.earthCommunityUrl, options);
  5934. if (message.googleMapsUrl != null && message.hasOwnProperty("googleMapsUrl"))
  5935. object.googleMapsUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.googleMapsUrl, options);
  5936. if (message.sharingUrl != null && message.hasOwnProperty("sharingUrl"))
  5937. object.sharingUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.sharingUrl, options);
  5938. if (message.privacyPolicyUrl != null && message.hasOwnProperty("privacyPolicyUrl"))
  5939. object.privacyPolicyUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.privacyPolicyUrl, options);
  5940. if (message.doGplusUserCheck != null && message.hasOwnProperty("doGplusUserCheck"))
  5941. object.doGplusUserCheck = message.doGplusUserCheck;
  5942. if (message.rocktreeDataProto != null && message.hasOwnProperty("rocktreeDataProto"))
  5943. object.rocktreeDataProto = $root.keyhole.dbroot.EndSnippetProto.RockTreeDataProto.toObject(message.rocktreeDataProto, options);
  5944. if (message.filmstripConfig && message.filmstripConfig.length) {
  5945. object.filmstripConfig = [];
  5946. for (var j = 0; j < message.filmstripConfig.length; ++j)
  5947. object.filmstripConfig[j] = $root.keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.toObject(message.filmstripConfig[j], options);
  5948. }
  5949. if (message.showSigninButton != null && message.hasOwnProperty("showSigninButton"))
  5950. object.showSigninButton = message.showSigninButton;
  5951. if (message.startupTipsIntlUrl != null && message.hasOwnProperty("startupTipsIntlUrl"))
  5952. object.startupTipsIntlUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.startupTipsIntlUrl, options);
  5953. if (message.proMeasureUpsellUrl != null && message.hasOwnProperty("proMeasureUpsellUrl"))
  5954. object.proMeasureUpsellUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.proMeasureUpsellUrl, options);
  5955. if (message.proPrintUpsellUrl != null && message.hasOwnProperty("proPrintUpsellUrl"))
  5956. object.proPrintUpsellUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.proPrintUpsellUrl, options);
  5957. if (message.starDataProto != null && message.hasOwnProperty("starDataProto"))
  5958. object.starDataProto = $root.keyhole.dbroot.EndSnippetProto.StarDataProto.toObject(message.starDataProto, options);
  5959. if (message.feedbackUrl != null && message.hasOwnProperty("feedbackUrl"))
  5960. object.feedbackUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.feedbackUrl, options);
  5961. if (message.oauth2LoginUrl != null && message.hasOwnProperty("oauth2LoginUrl"))
  5962. object.oauth2LoginUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.oauth2LoginUrl, options);
  5963. return object;
  5964. };
  5965. EndSnippetProto.prototype.toJSON = function toJSON() {
  5966. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  5967. };
  5968. EndSnippetProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  5969. if (typeUrlPrefix === void 0) {
  5970. typeUrlPrefix = "type.googleapis.com";
  5971. }
  5972. return typeUrlPrefix + "/keyhole.dbroot.EndSnippetProto";
  5973. };
  5974. EndSnippetProto.SearchConfigProto = function() {
  5975. function SearchConfigProto(properties) {
  5976. this.searchServer = [];
  5977. this.oneboxService = [];
  5978. if (properties) {
  5979. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  5980. if (properties[keys[i]] != null)
  5981. this[keys[i]] = properties[keys[i]];
  5982. }
  5983. }
  5984. SearchConfigProto.prototype.searchServer = $util.emptyArray;
  5985. SearchConfigProto.prototype.oneboxService = $util.emptyArray;
  5986. SearchConfigProto.prototype.kmlSearchUrl = null;
  5987. SearchConfigProto.prototype.kmlRenderUrl = null;
  5988. SearchConfigProto.prototype.searchHistoryUrl = null;
  5989. SearchConfigProto.prototype.errorPageUrl = null;
  5990. SearchConfigProto.decode = function decode(reader, length) {
  5991. if (!(reader instanceof $Reader))
  5992. reader = $Reader.create(reader);
  5993. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto();
  5994. while (reader.pos < end) {
  5995. var tag = reader.uint32();
  5996. switch (tag >>> 3) {
  5997. case 1: {
  5998. if (!(message.searchServer && message.searchServer.length))
  5999. message.searchServer = [];
  6000. message.searchServer.push($root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.decode(reader, reader.uint32()));
  6001. break;
  6002. }
  6003. case 2: {
  6004. if (!(message.oneboxService && message.oneboxService.length))
  6005. message.oneboxService = [];
  6006. message.oneboxService.push($root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.OneboxServiceProto.decode(reader, reader.uint32()));
  6007. break;
  6008. }
  6009. case 3: {
  6010. message.kmlSearchUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6011. break;
  6012. }
  6013. case 4: {
  6014. message.kmlRenderUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6015. break;
  6016. }
  6017. case 6: {
  6018. message.searchHistoryUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6019. break;
  6020. }
  6021. case 5: {
  6022. message.errorPageUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6023. break;
  6024. }
  6025. default:
  6026. reader.skipType(tag & 7);
  6027. break;
  6028. }
  6029. }
  6030. return message;
  6031. };
  6032. SearchConfigProto.verify = function verify(message) {
  6033. if (typeof message !== "object" || message === null)
  6034. return "object expected";
  6035. if (message.searchServer != null && message.hasOwnProperty("searchServer")) {
  6036. if (!Array.isArray(message.searchServer))
  6037. return "searchServer: array expected";
  6038. for (var i = 0; i < message.searchServer.length; ++i) {
  6039. var error = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.verify(message.searchServer[i]);
  6040. if (error)
  6041. return "searchServer." + error;
  6042. }
  6043. }
  6044. if (message.oneboxService != null && message.hasOwnProperty("oneboxService")) {
  6045. if (!Array.isArray(message.oneboxService))
  6046. return "oneboxService: array expected";
  6047. for (var i = 0; i < message.oneboxService.length; ++i) {
  6048. var error = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.OneboxServiceProto.verify(message.oneboxService[i]);
  6049. if (error)
  6050. return "oneboxService." + error;
  6051. }
  6052. }
  6053. if (message.kmlSearchUrl != null && message.hasOwnProperty("kmlSearchUrl")) {
  6054. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.kmlSearchUrl);
  6055. if (error)
  6056. return "kmlSearchUrl." + error;
  6057. }
  6058. if (message.kmlRenderUrl != null && message.hasOwnProperty("kmlRenderUrl")) {
  6059. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.kmlRenderUrl);
  6060. if (error)
  6061. return "kmlRenderUrl." + error;
  6062. }
  6063. if (message.searchHistoryUrl != null && message.hasOwnProperty("searchHistoryUrl")) {
  6064. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.searchHistoryUrl);
  6065. if (error)
  6066. return "searchHistoryUrl." + error;
  6067. }
  6068. if (message.errorPageUrl != null && message.hasOwnProperty("errorPageUrl")) {
  6069. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.errorPageUrl);
  6070. if (error)
  6071. return "errorPageUrl." + error;
  6072. }
  6073. return null;
  6074. };
  6075. SearchConfigProto.fromObject = function fromObject(object) {
  6076. if (object instanceof $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto)
  6077. return object;
  6078. var message = new $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto();
  6079. if (object.searchServer) {
  6080. if (!Array.isArray(object.searchServer))
  6081. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.searchServer: array expected");
  6082. message.searchServer = [];
  6083. for (var i = 0; i < object.searchServer.length; ++i) {
  6084. if (typeof object.searchServer[i] !== "object")
  6085. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.searchServer: object expected");
  6086. message.searchServer[i] = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.fromObject(object.searchServer[i]);
  6087. }
  6088. }
  6089. if (object.oneboxService) {
  6090. if (!Array.isArray(object.oneboxService))
  6091. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.oneboxService: array expected");
  6092. message.oneboxService = [];
  6093. for (var i = 0; i < object.oneboxService.length; ++i) {
  6094. if (typeof object.oneboxService[i] !== "object")
  6095. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.oneboxService: object expected");
  6096. message.oneboxService[i] = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.OneboxServiceProto.fromObject(object.oneboxService[i]);
  6097. }
  6098. }
  6099. if (object.kmlSearchUrl != null) {
  6100. if (typeof object.kmlSearchUrl !== "object")
  6101. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.kmlSearchUrl: object expected");
  6102. message.kmlSearchUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.kmlSearchUrl);
  6103. }
  6104. if (object.kmlRenderUrl != null) {
  6105. if (typeof object.kmlRenderUrl !== "object")
  6106. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.kmlRenderUrl: object expected");
  6107. message.kmlRenderUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.kmlRenderUrl);
  6108. }
  6109. if (object.searchHistoryUrl != null) {
  6110. if (typeof object.searchHistoryUrl !== "object")
  6111. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.searchHistoryUrl: object expected");
  6112. message.searchHistoryUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.searchHistoryUrl);
  6113. }
  6114. if (object.errorPageUrl != null) {
  6115. if (typeof object.errorPageUrl !== "object")
  6116. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.errorPageUrl: object expected");
  6117. message.errorPageUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.errorPageUrl);
  6118. }
  6119. return message;
  6120. };
  6121. SearchConfigProto.toObject = function toObject(message, options) {
  6122. if (!options)
  6123. options = {};
  6124. var object = {};
  6125. if (options.arrays || options.defaults) {
  6126. object.searchServer = [];
  6127. object.oneboxService = [];
  6128. }
  6129. if (options.defaults) {
  6130. object.kmlSearchUrl = null;
  6131. object.kmlRenderUrl = null;
  6132. object.errorPageUrl = null;
  6133. object.searchHistoryUrl = null;
  6134. }
  6135. if (message.searchServer && message.searchServer.length) {
  6136. object.searchServer = [];
  6137. for (var j = 0; j < message.searchServer.length; ++j)
  6138. object.searchServer[j] = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.toObject(message.searchServer[j], options);
  6139. }
  6140. if (message.oneboxService && message.oneboxService.length) {
  6141. object.oneboxService = [];
  6142. for (var j = 0; j < message.oneboxService.length; ++j)
  6143. object.oneboxService[j] = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.OneboxServiceProto.toObject(message.oneboxService[j], options);
  6144. }
  6145. if (message.kmlSearchUrl != null && message.hasOwnProperty("kmlSearchUrl"))
  6146. object.kmlSearchUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.kmlSearchUrl, options);
  6147. if (message.kmlRenderUrl != null && message.hasOwnProperty("kmlRenderUrl"))
  6148. object.kmlRenderUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.kmlRenderUrl, options);
  6149. if (message.errorPageUrl != null && message.hasOwnProperty("errorPageUrl"))
  6150. object.errorPageUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.errorPageUrl, options);
  6151. if (message.searchHistoryUrl != null && message.hasOwnProperty("searchHistoryUrl"))
  6152. object.searchHistoryUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.searchHistoryUrl, options);
  6153. return object;
  6154. };
  6155. SearchConfigProto.prototype.toJSON = function toJSON() {
  6156. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6157. };
  6158. SearchConfigProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  6159. if (typeUrlPrefix === void 0) {
  6160. typeUrlPrefix = "type.googleapis.com";
  6161. }
  6162. return typeUrlPrefix + "/keyhole.dbroot.EndSnippetProto.SearchConfigProto";
  6163. };
  6164. SearchConfigProto.SearchServer = function() {
  6165. function SearchServer(properties) {
  6166. this.suggestion = [];
  6167. this.searchlet = [];
  6168. if (properties) {
  6169. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6170. if (properties[keys[i]] != null)
  6171. this[keys[i]] = properties[keys[i]];
  6172. }
  6173. }
  6174. SearchServer.prototype.name = null;
  6175. SearchServer.prototype.url = null;
  6176. SearchServer.prototype.type = 0;
  6177. SearchServer.prototype.htmlTransformUrl = null;
  6178. SearchServer.prototype.kmlTransformUrl = null;
  6179. SearchServer.prototype.supplementalUi = null;
  6180. SearchServer.prototype.suggestion = $util.emptyArray;
  6181. SearchServer.prototype.searchlet = $util.emptyArray;
  6182. SearchServer.prototype.requirements = null;
  6183. SearchServer.prototype.suggestServer = null;
  6184. SearchServer.decode = function decode(reader, length) {
  6185. if (!(reader instanceof $Reader))
  6186. reader = $Reader.create(reader);
  6187. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer();
  6188. while (reader.pos < end) {
  6189. var tag = reader.uint32();
  6190. switch (tag >>> 3) {
  6191. case 1: {
  6192. message.name = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6193. break;
  6194. }
  6195. case 2: {
  6196. message.url = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6197. break;
  6198. }
  6199. case 3: {
  6200. message.type = reader.int32();
  6201. break;
  6202. }
  6203. case 4: {
  6204. message.htmlTransformUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6205. break;
  6206. }
  6207. case 5: {
  6208. message.kmlTransformUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6209. break;
  6210. }
  6211. case 6: {
  6212. message.supplementalUi = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SupplementalUi.decode(reader, reader.uint32());
  6213. break;
  6214. }
  6215. case 9: {
  6216. if (!(message.suggestion && message.suggestion.length))
  6217. message.suggestion = [];
  6218. message.suggestion.push($root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32()));
  6219. break;
  6220. }
  6221. case 7: {
  6222. if (!(message.searchlet && message.searchlet.length))
  6223. message.searchlet = [];
  6224. message.searchlet.push($root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SearchletProto.decode(reader, reader.uint32()));
  6225. break;
  6226. }
  6227. case 8: {
  6228. message.requirements = $root.keyhole.dbroot.RequirementProto.decode(reader, reader.uint32());
  6229. break;
  6230. }
  6231. case 10: {
  6232. message.suggestServer = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6233. break;
  6234. }
  6235. default:
  6236. reader.skipType(tag & 7);
  6237. break;
  6238. }
  6239. }
  6240. return message;
  6241. };
  6242. SearchServer.verify = function verify(message) {
  6243. if (typeof message !== "object" || message === null)
  6244. return "object expected";
  6245. if (message.name != null && message.hasOwnProperty("name")) {
  6246. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.name);
  6247. if (error)
  6248. return "name." + error;
  6249. }
  6250. if (message.url != null && message.hasOwnProperty("url")) {
  6251. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.url);
  6252. if (error)
  6253. return "url." + error;
  6254. }
  6255. if (message.type != null && message.hasOwnProperty("type"))
  6256. switch (message.type) {
  6257. default:
  6258. return "type: enum value expected";
  6259. case 0:
  6260. case 1:
  6261. break;
  6262. }
  6263. if (message.htmlTransformUrl != null && message.hasOwnProperty("htmlTransformUrl")) {
  6264. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.htmlTransformUrl);
  6265. if (error)
  6266. return "htmlTransformUrl." + error;
  6267. }
  6268. if (message.kmlTransformUrl != null && message.hasOwnProperty("kmlTransformUrl")) {
  6269. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.kmlTransformUrl);
  6270. if (error)
  6271. return "kmlTransformUrl." + error;
  6272. }
  6273. if (message.supplementalUi != null && message.hasOwnProperty("supplementalUi")) {
  6274. var error = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SupplementalUi.verify(message.supplementalUi);
  6275. if (error)
  6276. return "supplementalUi." + error;
  6277. }
  6278. if (message.suggestion != null && message.hasOwnProperty("suggestion")) {
  6279. if (!Array.isArray(message.suggestion))
  6280. return "suggestion: array expected";
  6281. for (var i = 0; i < message.suggestion.length; ++i) {
  6282. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.suggestion[i]);
  6283. if (error)
  6284. return "suggestion." + error;
  6285. }
  6286. }
  6287. if (message.searchlet != null && message.hasOwnProperty("searchlet")) {
  6288. if (!Array.isArray(message.searchlet))
  6289. return "searchlet: array expected";
  6290. for (var i = 0; i < message.searchlet.length; ++i) {
  6291. var error = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SearchletProto.verify(message.searchlet[i]);
  6292. if (error)
  6293. return "searchlet." + error;
  6294. }
  6295. }
  6296. if (message.requirements != null && message.hasOwnProperty("requirements")) {
  6297. var error = $root.keyhole.dbroot.RequirementProto.verify(message.requirements);
  6298. if (error)
  6299. return "requirements." + error;
  6300. }
  6301. if (message.suggestServer != null && message.hasOwnProperty("suggestServer")) {
  6302. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.suggestServer);
  6303. if (error)
  6304. return "suggestServer." + error;
  6305. }
  6306. return null;
  6307. };
  6308. SearchServer.fromObject = function fromObject(object) {
  6309. if (object instanceof $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer)
  6310. return object;
  6311. var message = new $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer();
  6312. if (object.name != null) {
  6313. if (typeof object.name !== "object")
  6314. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.name: object expected");
  6315. message.name = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.name);
  6316. }
  6317. if (object.url != null) {
  6318. if (typeof object.url !== "object")
  6319. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.url: object expected");
  6320. message.url = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.url);
  6321. }
  6322. switch (object.type) {
  6323. case "RESULT_TYPE_KML":
  6324. case 0:
  6325. message.type = 0;
  6326. break;
  6327. case "RESULT_TYPE_XML":
  6328. case 1:
  6329. message.type = 1;
  6330. break;
  6331. }
  6332. if (object.htmlTransformUrl != null) {
  6333. if (typeof object.htmlTransformUrl !== "object")
  6334. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.htmlTransformUrl: object expected");
  6335. message.htmlTransformUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.htmlTransformUrl);
  6336. }
  6337. if (object.kmlTransformUrl != null) {
  6338. if (typeof object.kmlTransformUrl !== "object")
  6339. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.kmlTransformUrl: object expected");
  6340. message.kmlTransformUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.kmlTransformUrl);
  6341. }
  6342. if (object.supplementalUi != null) {
  6343. if (typeof object.supplementalUi !== "object")
  6344. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.supplementalUi: object expected");
  6345. message.supplementalUi = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SupplementalUi.fromObject(object.supplementalUi);
  6346. }
  6347. if (object.suggestion) {
  6348. if (!Array.isArray(object.suggestion))
  6349. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.suggestion: array expected");
  6350. message.suggestion = [];
  6351. for (var i = 0; i < object.suggestion.length; ++i) {
  6352. if (typeof object.suggestion[i] !== "object")
  6353. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.suggestion: object expected");
  6354. message.suggestion[i] = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.suggestion[i]);
  6355. }
  6356. }
  6357. if (object.searchlet) {
  6358. if (!Array.isArray(object.searchlet))
  6359. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.searchlet: array expected");
  6360. message.searchlet = [];
  6361. for (var i = 0; i < object.searchlet.length; ++i) {
  6362. if (typeof object.searchlet[i] !== "object")
  6363. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.searchlet: object expected");
  6364. message.searchlet[i] = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SearchletProto.fromObject(object.searchlet[i]);
  6365. }
  6366. }
  6367. if (object.requirements != null) {
  6368. if (typeof object.requirements !== "object")
  6369. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.requirements: object expected");
  6370. message.requirements = $root.keyhole.dbroot.RequirementProto.fromObject(object.requirements);
  6371. }
  6372. if (object.suggestServer != null) {
  6373. if (typeof object.suggestServer !== "object")
  6374. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.suggestServer: object expected");
  6375. message.suggestServer = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.suggestServer);
  6376. }
  6377. return message;
  6378. };
  6379. SearchServer.toObject = function toObject(message, options) {
  6380. if (!options)
  6381. options = {};
  6382. var object = {};
  6383. if (options.arrays || options.defaults) {
  6384. object.searchlet = [];
  6385. object.suggestion = [];
  6386. }
  6387. if (options.defaults) {
  6388. object.name = null;
  6389. object.url = null;
  6390. object.type = options.enums === String ? "RESULT_TYPE_KML" : 0;
  6391. object.htmlTransformUrl = null;
  6392. object.kmlTransformUrl = null;
  6393. object.supplementalUi = null;
  6394. object.requirements = null;
  6395. object.suggestServer = null;
  6396. }
  6397. if (message.name != null && message.hasOwnProperty("name"))
  6398. object.name = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.name, options);
  6399. if (message.url != null && message.hasOwnProperty("url"))
  6400. object.url = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.url, options);
  6401. if (message.type != null && message.hasOwnProperty("type"))
  6402. object.type = options.enums === String ? $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.ResultType[message.type] : message.type;
  6403. if (message.htmlTransformUrl != null && message.hasOwnProperty("htmlTransformUrl"))
  6404. object.htmlTransformUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.htmlTransformUrl, options);
  6405. if (message.kmlTransformUrl != null && message.hasOwnProperty("kmlTransformUrl"))
  6406. object.kmlTransformUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.kmlTransformUrl, options);
  6407. if (message.supplementalUi != null && message.hasOwnProperty("supplementalUi"))
  6408. object.supplementalUi = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SupplementalUi.toObject(message.supplementalUi, options);
  6409. if (message.searchlet && message.searchlet.length) {
  6410. object.searchlet = [];
  6411. for (var j = 0; j < message.searchlet.length; ++j)
  6412. object.searchlet[j] = $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SearchletProto.toObject(message.searchlet[j], options);
  6413. }
  6414. if (message.requirements != null && message.hasOwnProperty("requirements"))
  6415. object.requirements = $root.keyhole.dbroot.RequirementProto.toObject(message.requirements, options);
  6416. if (message.suggestion && message.suggestion.length) {
  6417. object.suggestion = [];
  6418. for (var j = 0; j < message.suggestion.length; ++j)
  6419. object.suggestion[j] = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.suggestion[j], options);
  6420. }
  6421. if (message.suggestServer != null && message.hasOwnProperty("suggestServer"))
  6422. object.suggestServer = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.suggestServer, options);
  6423. return object;
  6424. };
  6425. SearchServer.prototype.toJSON = function toJSON() {
  6426. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6427. };
  6428. SearchServer.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  6429. if (typeUrlPrefix === void 0) {
  6430. typeUrlPrefix = "type.googleapis.com";
  6431. }
  6432. return typeUrlPrefix + "/keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer";
  6433. };
  6434. SearchServer.ResultType = function() {
  6435. var valuesById = {}, values = Object.create(valuesById);
  6436. values[valuesById[0] = "RESULT_TYPE_KML"] = 0;
  6437. values[valuesById[1] = "RESULT_TYPE_XML"] = 1;
  6438. return values;
  6439. }();
  6440. SearchServer.SupplementalUi = function() {
  6441. function SupplementalUi(properties) {
  6442. if (properties) {
  6443. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6444. if (properties[keys[i]] != null)
  6445. this[keys[i]] = properties[keys[i]];
  6446. }
  6447. }
  6448. SupplementalUi.prototype.url = null;
  6449. SupplementalUi.prototype.label = null;
  6450. SupplementalUi.prototype.height = 160;
  6451. SupplementalUi.decode = function decode(reader, length) {
  6452. if (!(reader instanceof $Reader))
  6453. reader = $Reader.create(reader);
  6454. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SupplementalUi();
  6455. while (reader.pos < end) {
  6456. var tag = reader.uint32();
  6457. switch (tag >>> 3) {
  6458. case 1: {
  6459. message.url = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6460. break;
  6461. }
  6462. case 2: {
  6463. message.label = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6464. break;
  6465. }
  6466. case 3: {
  6467. message.height = reader.int32();
  6468. break;
  6469. }
  6470. default:
  6471. reader.skipType(tag & 7);
  6472. break;
  6473. }
  6474. }
  6475. return message;
  6476. };
  6477. SupplementalUi.verify = function verify(message) {
  6478. if (typeof message !== "object" || message === null)
  6479. return "object expected";
  6480. if (message.url != null && message.hasOwnProperty("url")) {
  6481. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.url);
  6482. if (error)
  6483. return "url." + error;
  6484. }
  6485. if (message.label != null && message.hasOwnProperty("label")) {
  6486. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.label);
  6487. if (error)
  6488. return "label." + error;
  6489. }
  6490. if (message.height != null && message.hasOwnProperty("height")) {
  6491. if (!$util.isInteger(message.height))
  6492. return "height: integer expected";
  6493. }
  6494. return null;
  6495. };
  6496. SupplementalUi.fromObject = function fromObject(object) {
  6497. if (object instanceof $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SupplementalUi)
  6498. return object;
  6499. var message = new $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SupplementalUi();
  6500. if (object.url != null) {
  6501. if (typeof object.url !== "object")
  6502. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SupplementalUi.url: object expected");
  6503. message.url = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.url);
  6504. }
  6505. if (object.label != null) {
  6506. if (typeof object.label !== "object")
  6507. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SupplementalUi.label: object expected");
  6508. message.label = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.label);
  6509. }
  6510. if (object.height != null)
  6511. message.height = object.height | 0;
  6512. return message;
  6513. };
  6514. SupplementalUi.toObject = function toObject(message, options) {
  6515. if (!options)
  6516. options = {};
  6517. var object = {};
  6518. if (options.defaults) {
  6519. object.url = null;
  6520. object.label = null;
  6521. object.height = 160;
  6522. }
  6523. if (message.url != null && message.hasOwnProperty("url"))
  6524. object.url = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.url, options);
  6525. if (message.label != null && message.hasOwnProperty("label"))
  6526. object.label = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.label, options);
  6527. if (message.height != null && message.hasOwnProperty("height"))
  6528. object.height = message.height;
  6529. return object;
  6530. };
  6531. SupplementalUi.prototype.toJSON = function toJSON() {
  6532. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6533. };
  6534. SupplementalUi.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  6535. if (typeUrlPrefix === void 0) {
  6536. typeUrlPrefix = "type.googleapis.com";
  6537. }
  6538. return typeUrlPrefix + "/keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SupplementalUi";
  6539. };
  6540. return SupplementalUi;
  6541. }();
  6542. SearchServer.SearchletProto = function() {
  6543. function SearchletProto(properties) {
  6544. if (properties) {
  6545. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6546. if (properties[keys[i]] != null)
  6547. this[keys[i]] = properties[keys[i]];
  6548. }
  6549. }
  6550. SearchletProto.prototype.url = null;
  6551. SearchletProto.prototype.name = null;
  6552. SearchletProto.prototype.requirements = null;
  6553. SearchletProto.decode = function decode(reader, length) {
  6554. if (!(reader instanceof $Reader))
  6555. reader = $Reader.create(reader);
  6556. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SearchletProto();
  6557. while (reader.pos < end) {
  6558. var tag = reader.uint32();
  6559. switch (tag >>> 3) {
  6560. case 1: {
  6561. message.url = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6562. break;
  6563. }
  6564. case 2: {
  6565. message.name = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6566. break;
  6567. }
  6568. case 3: {
  6569. message.requirements = $root.keyhole.dbroot.RequirementProto.decode(reader, reader.uint32());
  6570. break;
  6571. }
  6572. default:
  6573. reader.skipType(tag & 7);
  6574. break;
  6575. }
  6576. }
  6577. return message;
  6578. };
  6579. SearchletProto.verify = function verify(message) {
  6580. if (typeof message !== "object" || message === null)
  6581. return "object expected";
  6582. if (message.url != null && message.hasOwnProperty("url")) {
  6583. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.url);
  6584. if (error)
  6585. return "url." + error;
  6586. }
  6587. if (message.name != null && message.hasOwnProperty("name")) {
  6588. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.name);
  6589. if (error)
  6590. return "name." + error;
  6591. }
  6592. if (message.requirements != null && message.hasOwnProperty("requirements")) {
  6593. var error = $root.keyhole.dbroot.RequirementProto.verify(message.requirements);
  6594. if (error)
  6595. return "requirements." + error;
  6596. }
  6597. return null;
  6598. };
  6599. SearchletProto.fromObject = function fromObject(object) {
  6600. if (object instanceof $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SearchletProto)
  6601. return object;
  6602. var message = new $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SearchletProto();
  6603. if (object.url != null) {
  6604. if (typeof object.url !== "object")
  6605. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SearchletProto.url: object expected");
  6606. message.url = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.url);
  6607. }
  6608. if (object.name != null) {
  6609. if (typeof object.name !== "object")
  6610. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SearchletProto.name: object expected");
  6611. message.name = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.name);
  6612. }
  6613. if (object.requirements != null) {
  6614. if (typeof object.requirements !== "object")
  6615. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SearchletProto.requirements: object expected");
  6616. message.requirements = $root.keyhole.dbroot.RequirementProto.fromObject(object.requirements);
  6617. }
  6618. return message;
  6619. };
  6620. SearchletProto.toObject = function toObject(message, options) {
  6621. if (!options)
  6622. options = {};
  6623. var object = {};
  6624. if (options.defaults) {
  6625. object.url = null;
  6626. object.name = null;
  6627. object.requirements = null;
  6628. }
  6629. if (message.url != null && message.hasOwnProperty("url"))
  6630. object.url = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.url, options);
  6631. if (message.name != null && message.hasOwnProperty("name"))
  6632. object.name = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.name, options);
  6633. if (message.requirements != null && message.hasOwnProperty("requirements"))
  6634. object.requirements = $root.keyhole.dbroot.RequirementProto.toObject(message.requirements, options);
  6635. return object;
  6636. };
  6637. SearchletProto.prototype.toJSON = function toJSON() {
  6638. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6639. };
  6640. SearchletProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  6641. if (typeUrlPrefix === void 0) {
  6642. typeUrlPrefix = "type.googleapis.com";
  6643. }
  6644. return typeUrlPrefix + "/keyhole.dbroot.EndSnippetProto.SearchConfigProto.SearchServer.SearchletProto";
  6645. };
  6646. return SearchletProto;
  6647. }();
  6648. return SearchServer;
  6649. }();
  6650. SearchConfigProto.OneboxServiceProto = function() {
  6651. function OneboxServiceProto(properties) {
  6652. if (properties) {
  6653. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6654. if (properties[keys[i]] != null)
  6655. this[keys[i]] = properties[keys[i]];
  6656. }
  6657. }
  6658. OneboxServiceProto.prototype.serviceUrl = null;
  6659. OneboxServiceProto.prototype.requirements = null;
  6660. OneboxServiceProto.decode = function decode(reader, length) {
  6661. if (!(reader instanceof $Reader))
  6662. reader = $Reader.create(reader);
  6663. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.OneboxServiceProto();
  6664. while (reader.pos < end) {
  6665. var tag = reader.uint32();
  6666. switch (tag >>> 3) {
  6667. case 1: {
  6668. message.serviceUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6669. break;
  6670. }
  6671. case 2: {
  6672. message.requirements = $root.keyhole.dbroot.RequirementProto.decode(reader, reader.uint32());
  6673. break;
  6674. }
  6675. default:
  6676. reader.skipType(tag & 7);
  6677. break;
  6678. }
  6679. }
  6680. return message;
  6681. };
  6682. OneboxServiceProto.verify = function verify(message) {
  6683. if (typeof message !== "object" || message === null)
  6684. return "object expected";
  6685. if (message.serviceUrl != null && message.hasOwnProperty("serviceUrl")) {
  6686. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.serviceUrl);
  6687. if (error)
  6688. return "serviceUrl." + error;
  6689. }
  6690. if (message.requirements != null && message.hasOwnProperty("requirements")) {
  6691. var error = $root.keyhole.dbroot.RequirementProto.verify(message.requirements);
  6692. if (error)
  6693. return "requirements." + error;
  6694. }
  6695. return null;
  6696. };
  6697. OneboxServiceProto.fromObject = function fromObject(object) {
  6698. if (object instanceof $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.OneboxServiceProto)
  6699. return object;
  6700. var message = new $root.keyhole.dbroot.EndSnippetProto.SearchConfigProto.OneboxServiceProto();
  6701. if (object.serviceUrl != null) {
  6702. if (typeof object.serviceUrl !== "object")
  6703. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.OneboxServiceProto.serviceUrl: object expected");
  6704. message.serviceUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.serviceUrl);
  6705. }
  6706. if (object.requirements != null) {
  6707. if (typeof object.requirements !== "object")
  6708. throw TypeError(".keyhole.dbroot.EndSnippetProto.SearchConfigProto.OneboxServiceProto.requirements: object expected");
  6709. message.requirements = $root.keyhole.dbroot.RequirementProto.fromObject(object.requirements);
  6710. }
  6711. return message;
  6712. };
  6713. OneboxServiceProto.toObject = function toObject(message, options) {
  6714. if (!options)
  6715. options = {};
  6716. var object = {};
  6717. if (options.defaults) {
  6718. object.serviceUrl = null;
  6719. object.requirements = null;
  6720. }
  6721. if (message.serviceUrl != null && message.hasOwnProperty("serviceUrl"))
  6722. object.serviceUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.serviceUrl, options);
  6723. if (message.requirements != null && message.hasOwnProperty("requirements"))
  6724. object.requirements = $root.keyhole.dbroot.RequirementProto.toObject(message.requirements, options);
  6725. return object;
  6726. };
  6727. OneboxServiceProto.prototype.toJSON = function toJSON() {
  6728. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6729. };
  6730. OneboxServiceProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  6731. if (typeUrlPrefix === void 0) {
  6732. typeUrlPrefix = "type.googleapis.com";
  6733. }
  6734. return typeUrlPrefix + "/keyhole.dbroot.EndSnippetProto.SearchConfigProto.OneboxServiceProto";
  6735. };
  6736. return OneboxServiceProto;
  6737. }();
  6738. return SearchConfigProto;
  6739. }();
  6740. EndSnippetProto.SearchInfoProto = function() {
  6741. function SearchInfoProto(properties) {
  6742. if (properties) {
  6743. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6744. if (properties[keys[i]] != null)
  6745. this[keys[i]] = properties[keys[i]];
  6746. }
  6747. }
  6748. SearchInfoProto.prototype.defaultUrl = "http://maps.google.com/maps";
  6749. SearchInfoProto.prototype.geocodeParam = "q";
  6750. SearchInfoProto.decode = function decode(reader, length) {
  6751. if (!(reader instanceof $Reader))
  6752. reader = $Reader.create(reader);
  6753. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.EndSnippetProto.SearchInfoProto();
  6754. while (reader.pos < end) {
  6755. var tag = reader.uint32();
  6756. switch (tag >>> 3) {
  6757. case 1: {
  6758. message.defaultUrl = reader.string();
  6759. break;
  6760. }
  6761. case 2: {
  6762. message.geocodeParam = reader.string();
  6763. break;
  6764. }
  6765. default:
  6766. reader.skipType(tag & 7);
  6767. break;
  6768. }
  6769. }
  6770. return message;
  6771. };
  6772. SearchInfoProto.verify = function verify(message) {
  6773. if (typeof message !== "object" || message === null)
  6774. return "object expected";
  6775. if (message.defaultUrl != null && message.hasOwnProperty("defaultUrl")) {
  6776. if (!$util.isString(message.defaultUrl))
  6777. return "defaultUrl: string expected";
  6778. }
  6779. if (message.geocodeParam != null && message.hasOwnProperty("geocodeParam")) {
  6780. if (!$util.isString(message.geocodeParam))
  6781. return "geocodeParam: string expected";
  6782. }
  6783. return null;
  6784. };
  6785. SearchInfoProto.fromObject = function fromObject(object) {
  6786. if (object instanceof $root.keyhole.dbroot.EndSnippetProto.SearchInfoProto)
  6787. return object;
  6788. var message = new $root.keyhole.dbroot.EndSnippetProto.SearchInfoProto();
  6789. if (object.defaultUrl != null)
  6790. message.defaultUrl = String(object.defaultUrl);
  6791. if (object.geocodeParam != null)
  6792. message.geocodeParam = String(object.geocodeParam);
  6793. return message;
  6794. };
  6795. SearchInfoProto.toObject = function toObject(message, options) {
  6796. if (!options)
  6797. options = {};
  6798. var object = {};
  6799. if (options.defaults) {
  6800. object.defaultUrl = "http://maps.google.com/maps";
  6801. object.geocodeParam = "q";
  6802. }
  6803. if (message.defaultUrl != null && message.hasOwnProperty("defaultUrl"))
  6804. object.defaultUrl = message.defaultUrl;
  6805. if (message.geocodeParam != null && message.hasOwnProperty("geocodeParam"))
  6806. object.geocodeParam = message.geocodeParam;
  6807. return object;
  6808. };
  6809. SearchInfoProto.prototype.toJSON = function toJSON() {
  6810. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6811. };
  6812. SearchInfoProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  6813. if (typeUrlPrefix === void 0) {
  6814. typeUrlPrefix = "type.googleapis.com";
  6815. }
  6816. return typeUrlPrefix + "/keyhole.dbroot.EndSnippetProto.SearchInfoProto";
  6817. };
  6818. return SearchInfoProto;
  6819. }();
  6820. EndSnippetProto.RockTreeDataProto = function() {
  6821. function RockTreeDataProto(properties) {
  6822. if (properties) {
  6823. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6824. if (properties[keys[i]] != null)
  6825. this[keys[i]] = properties[keys[i]];
  6826. }
  6827. }
  6828. RockTreeDataProto.prototype.url = null;
  6829. RockTreeDataProto.decode = function decode(reader, length) {
  6830. if (!(reader instanceof $Reader))
  6831. reader = $Reader.create(reader);
  6832. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.EndSnippetProto.RockTreeDataProto();
  6833. while (reader.pos < end) {
  6834. var tag = reader.uint32();
  6835. switch (tag >>> 3) {
  6836. case 1: {
  6837. message.url = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6838. break;
  6839. }
  6840. default:
  6841. reader.skipType(tag & 7);
  6842. break;
  6843. }
  6844. }
  6845. return message;
  6846. };
  6847. RockTreeDataProto.verify = function verify(message) {
  6848. if (typeof message !== "object" || message === null)
  6849. return "object expected";
  6850. if (message.url != null && message.hasOwnProperty("url")) {
  6851. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.url);
  6852. if (error)
  6853. return "url." + error;
  6854. }
  6855. return null;
  6856. };
  6857. RockTreeDataProto.fromObject = function fromObject(object) {
  6858. if (object instanceof $root.keyhole.dbroot.EndSnippetProto.RockTreeDataProto)
  6859. return object;
  6860. var message = new $root.keyhole.dbroot.EndSnippetProto.RockTreeDataProto();
  6861. if (object.url != null) {
  6862. if (typeof object.url !== "object")
  6863. throw TypeError(".keyhole.dbroot.EndSnippetProto.RockTreeDataProto.url: object expected");
  6864. message.url = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.url);
  6865. }
  6866. return message;
  6867. };
  6868. RockTreeDataProto.toObject = function toObject(message, options) {
  6869. if (!options)
  6870. options = {};
  6871. var object = {};
  6872. if (options.defaults)
  6873. object.url = null;
  6874. if (message.url != null && message.hasOwnProperty("url"))
  6875. object.url = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.url, options);
  6876. return object;
  6877. };
  6878. RockTreeDataProto.prototype.toJSON = function toJSON() {
  6879. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6880. };
  6881. RockTreeDataProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  6882. if (typeUrlPrefix === void 0) {
  6883. typeUrlPrefix = "type.googleapis.com";
  6884. }
  6885. return typeUrlPrefix + "/keyhole.dbroot.EndSnippetProto.RockTreeDataProto";
  6886. };
  6887. return RockTreeDataProto;
  6888. }();
  6889. EndSnippetProto.FilmstripConfigProto = function() {
  6890. function FilmstripConfigProto(properties) {
  6891. this.imageryType = [];
  6892. if (properties) {
  6893. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6894. if (properties[keys[i]] != null)
  6895. this[keys[i]] = properties[keys[i]];
  6896. }
  6897. }
  6898. FilmstripConfigProto.prototype.requirements = null;
  6899. FilmstripConfigProto.prototype.alleycatUrlTemplate = null;
  6900. FilmstripConfigProto.prototype.fallbackAlleycatUrlTemplate = null;
  6901. FilmstripConfigProto.prototype.metadataUrlTemplate = null;
  6902. FilmstripConfigProto.prototype.thumbnailUrlTemplate = null;
  6903. FilmstripConfigProto.prototype.kmlUrlTemplate = null;
  6904. FilmstripConfigProto.prototype.featuredToursUrl = null;
  6905. FilmstripConfigProto.prototype.enableViewportFallback = false;
  6906. FilmstripConfigProto.prototype.viewportFallbackDistance = 0;
  6907. FilmstripConfigProto.prototype.imageryType = $util.emptyArray;
  6908. FilmstripConfigProto.decode = function decode(reader, length) {
  6909. if (!(reader instanceof $Reader))
  6910. reader = $Reader.create(reader);
  6911. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.EndSnippetProto.FilmstripConfigProto();
  6912. while (reader.pos < end) {
  6913. var tag = reader.uint32();
  6914. switch (tag >>> 3) {
  6915. case 1: {
  6916. message.requirements = $root.keyhole.dbroot.RequirementProto.decode(reader, reader.uint32());
  6917. break;
  6918. }
  6919. case 2: {
  6920. message.alleycatUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6921. break;
  6922. }
  6923. case 9: {
  6924. message.fallbackAlleycatUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6925. break;
  6926. }
  6927. case 3: {
  6928. message.metadataUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6929. break;
  6930. }
  6931. case 4: {
  6932. message.thumbnailUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6933. break;
  6934. }
  6935. case 5: {
  6936. message.kmlUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6937. break;
  6938. }
  6939. case 6: {
  6940. message.featuredToursUrl = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  6941. break;
  6942. }
  6943. case 7: {
  6944. message.enableViewportFallback = reader.bool();
  6945. break;
  6946. }
  6947. case 8: {
  6948. message.viewportFallbackDistance = reader.uint32();
  6949. break;
  6950. }
  6951. case 10: {
  6952. if (!(message.imageryType && message.imageryType.length))
  6953. message.imageryType = [];
  6954. message.imageryType.push($root.keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.AlleycatImageryTypeProto.decode(reader, reader.uint32()));
  6955. break;
  6956. }
  6957. default:
  6958. reader.skipType(tag & 7);
  6959. break;
  6960. }
  6961. }
  6962. return message;
  6963. };
  6964. FilmstripConfigProto.verify = function verify(message) {
  6965. if (typeof message !== "object" || message === null)
  6966. return "object expected";
  6967. if (message.requirements != null && message.hasOwnProperty("requirements")) {
  6968. var error = $root.keyhole.dbroot.RequirementProto.verify(message.requirements);
  6969. if (error)
  6970. return "requirements." + error;
  6971. }
  6972. if (message.alleycatUrlTemplate != null && message.hasOwnProperty("alleycatUrlTemplate")) {
  6973. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.alleycatUrlTemplate);
  6974. if (error)
  6975. return "alleycatUrlTemplate." + error;
  6976. }
  6977. if (message.fallbackAlleycatUrlTemplate != null && message.hasOwnProperty("fallbackAlleycatUrlTemplate")) {
  6978. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.fallbackAlleycatUrlTemplate);
  6979. if (error)
  6980. return "fallbackAlleycatUrlTemplate." + error;
  6981. }
  6982. if (message.metadataUrlTemplate != null && message.hasOwnProperty("metadataUrlTemplate")) {
  6983. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.metadataUrlTemplate);
  6984. if (error)
  6985. return "metadataUrlTemplate." + error;
  6986. }
  6987. if (message.thumbnailUrlTemplate != null && message.hasOwnProperty("thumbnailUrlTemplate")) {
  6988. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.thumbnailUrlTemplate);
  6989. if (error)
  6990. return "thumbnailUrlTemplate." + error;
  6991. }
  6992. if (message.kmlUrlTemplate != null && message.hasOwnProperty("kmlUrlTemplate")) {
  6993. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.kmlUrlTemplate);
  6994. if (error)
  6995. return "kmlUrlTemplate." + error;
  6996. }
  6997. if (message.featuredToursUrl != null && message.hasOwnProperty("featuredToursUrl")) {
  6998. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.featuredToursUrl);
  6999. if (error)
  7000. return "featuredToursUrl." + error;
  7001. }
  7002. if (message.enableViewportFallback != null && message.hasOwnProperty("enableViewportFallback")) {
  7003. if (typeof message.enableViewportFallback !== "boolean")
  7004. return "enableViewportFallback: boolean expected";
  7005. }
  7006. if (message.viewportFallbackDistance != null && message.hasOwnProperty("viewportFallbackDistance")) {
  7007. if (!$util.isInteger(message.viewportFallbackDistance))
  7008. return "viewportFallbackDistance: integer expected";
  7009. }
  7010. if (message.imageryType != null && message.hasOwnProperty("imageryType")) {
  7011. if (!Array.isArray(message.imageryType))
  7012. return "imageryType: array expected";
  7013. for (var i = 0; i < message.imageryType.length; ++i) {
  7014. var error = $root.keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.AlleycatImageryTypeProto.verify(message.imageryType[i]);
  7015. if (error)
  7016. return "imageryType." + error;
  7017. }
  7018. }
  7019. return null;
  7020. };
  7021. FilmstripConfigProto.fromObject = function fromObject(object) {
  7022. if (object instanceof $root.keyhole.dbroot.EndSnippetProto.FilmstripConfigProto)
  7023. return object;
  7024. var message = new $root.keyhole.dbroot.EndSnippetProto.FilmstripConfigProto();
  7025. if (object.requirements != null) {
  7026. if (typeof object.requirements !== "object")
  7027. throw TypeError(".keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.requirements: object expected");
  7028. message.requirements = $root.keyhole.dbroot.RequirementProto.fromObject(object.requirements);
  7029. }
  7030. if (object.alleycatUrlTemplate != null) {
  7031. if (typeof object.alleycatUrlTemplate !== "object")
  7032. throw TypeError(".keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.alleycatUrlTemplate: object expected");
  7033. message.alleycatUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.alleycatUrlTemplate);
  7034. }
  7035. if (object.fallbackAlleycatUrlTemplate != null) {
  7036. if (typeof object.fallbackAlleycatUrlTemplate !== "object")
  7037. throw TypeError(".keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.fallbackAlleycatUrlTemplate: object expected");
  7038. message.fallbackAlleycatUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.fallbackAlleycatUrlTemplate);
  7039. }
  7040. if (object.metadataUrlTemplate != null) {
  7041. if (typeof object.metadataUrlTemplate !== "object")
  7042. throw TypeError(".keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.metadataUrlTemplate: object expected");
  7043. message.metadataUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.metadataUrlTemplate);
  7044. }
  7045. if (object.thumbnailUrlTemplate != null) {
  7046. if (typeof object.thumbnailUrlTemplate !== "object")
  7047. throw TypeError(".keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.thumbnailUrlTemplate: object expected");
  7048. message.thumbnailUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.thumbnailUrlTemplate);
  7049. }
  7050. if (object.kmlUrlTemplate != null) {
  7051. if (typeof object.kmlUrlTemplate !== "object")
  7052. throw TypeError(".keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.kmlUrlTemplate: object expected");
  7053. message.kmlUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.kmlUrlTemplate);
  7054. }
  7055. if (object.featuredToursUrl != null) {
  7056. if (typeof object.featuredToursUrl !== "object")
  7057. throw TypeError(".keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.featuredToursUrl: object expected");
  7058. message.featuredToursUrl = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.featuredToursUrl);
  7059. }
  7060. if (object.enableViewportFallback != null)
  7061. message.enableViewportFallback = Boolean(object.enableViewportFallback);
  7062. if (object.viewportFallbackDistance != null)
  7063. message.viewportFallbackDistance = object.viewportFallbackDistance >>> 0;
  7064. if (object.imageryType) {
  7065. if (!Array.isArray(object.imageryType))
  7066. throw TypeError(".keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.imageryType: array expected");
  7067. message.imageryType = [];
  7068. for (var i = 0; i < object.imageryType.length; ++i) {
  7069. if (typeof object.imageryType[i] !== "object")
  7070. throw TypeError(".keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.imageryType: object expected");
  7071. message.imageryType[i] = $root.keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.AlleycatImageryTypeProto.fromObject(object.imageryType[i]);
  7072. }
  7073. }
  7074. return message;
  7075. };
  7076. FilmstripConfigProto.toObject = function toObject(message, options) {
  7077. if (!options)
  7078. options = {};
  7079. var object = {};
  7080. if (options.arrays || options.defaults)
  7081. object.imageryType = [];
  7082. if (options.defaults) {
  7083. object.requirements = null;
  7084. object.alleycatUrlTemplate = null;
  7085. object.metadataUrlTemplate = null;
  7086. object.thumbnailUrlTemplate = null;
  7087. object.kmlUrlTemplate = null;
  7088. object.featuredToursUrl = null;
  7089. object.enableViewportFallback = false;
  7090. object.viewportFallbackDistance = 0;
  7091. object.fallbackAlleycatUrlTemplate = null;
  7092. }
  7093. if (message.requirements != null && message.hasOwnProperty("requirements"))
  7094. object.requirements = $root.keyhole.dbroot.RequirementProto.toObject(message.requirements, options);
  7095. if (message.alleycatUrlTemplate != null && message.hasOwnProperty("alleycatUrlTemplate"))
  7096. object.alleycatUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.alleycatUrlTemplate, options);
  7097. if (message.metadataUrlTemplate != null && message.hasOwnProperty("metadataUrlTemplate"))
  7098. object.metadataUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.metadataUrlTemplate, options);
  7099. if (message.thumbnailUrlTemplate != null && message.hasOwnProperty("thumbnailUrlTemplate"))
  7100. object.thumbnailUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.thumbnailUrlTemplate, options);
  7101. if (message.kmlUrlTemplate != null && message.hasOwnProperty("kmlUrlTemplate"))
  7102. object.kmlUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.kmlUrlTemplate, options);
  7103. if (message.featuredToursUrl != null && message.hasOwnProperty("featuredToursUrl"))
  7104. object.featuredToursUrl = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.featuredToursUrl, options);
  7105. if (message.enableViewportFallback != null && message.hasOwnProperty("enableViewportFallback"))
  7106. object.enableViewportFallback = message.enableViewportFallback;
  7107. if (message.viewportFallbackDistance != null && message.hasOwnProperty("viewportFallbackDistance"))
  7108. object.viewportFallbackDistance = message.viewportFallbackDistance;
  7109. if (message.fallbackAlleycatUrlTemplate != null && message.hasOwnProperty("fallbackAlleycatUrlTemplate"))
  7110. object.fallbackAlleycatUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.fallbackAlleycatUrlTemplate, options);
  7111. if (message.imageryType && message.imageryType.length) {
  7112. object.imageryType = [];
  7113. for (var j = 0; j < message.imageryType.length; ++j)
  7114. object.imageryType[j] = $root.keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.AlleycatImageryTypeProto.toObject(message.imageryType[j], options);
  7115. }
  7116. return object;
  7117. };
  7118. FilmstripConfigProto.prototype.toJSON = function toJSON() {
  7119. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7120. };
  7121. FilmstripConfigProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  7122. if (typeUrlPrefix === void 0) {
  7123. typeUrlPrefix = "type.googleapis.com";
  7124. }
  7125. return typeUrlPrefix + "/keyhole.dbroot.EndSnippetProto.FilmstripConfigProto";
  7126. };
  7127. FilmstripConfigProto.AlleycatImageryTypeProto = function() {
  7128. function AlleycatImageryTypeProto(properties) {
  7129. if (properties) {
  7130. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7131. if (properties[keys[i]] != null)
  7132. this[keys[i]] = properties[keys[i]];
  7133. }
  7134. }
  7135. AlleycatImageryTypeProto.prototype.imageryTypeId = 0;
  7136. AlleycatImageryTypeProto.prototype.imageryTypeLabel = "";
  7137. AlleycatImageryTypeProto.prototype.metadataUrlTemplate = null;
  7138. AlleycatImageryTypeProto.prototype.thumbnailUrlTemplate = null;
  7139. AlleycatImageryTypeProto.prototype.kmlUrlTemplate = null;
  7140. AlleycatImageryTypeProto.decode = function decode(reader, length) {
  7141. if (!(reader instanceof $Reader))
  7142. reader = $Reader.create(reader);
  7143. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.AlleycatImageryTypeProto();
  7144. while (reader.pos < end) {
  7145. var tag = reader.uint32();
  7146. switch (tag >>> 3) {
  7147. case 1: {
  7148. message.imageryTypeId = reader.int32();
  7149. break;
  7150. }
  7151. case 2: {
  7152. message.imageryTypeLabel = reader.string();
  7153. break;
  7154. }
  7155. case 3: {
  7156. message.metadataUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  7157. break;
  7158. }
  7159. case 4: {
  7160. message.thumbnailUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  7161. break;
  7162. }
  7163. case 5: {
  7164. message.kmlUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  7165. break;
  7166. }
  7167. default:
  7168. reader.skipType(tag & 7);
  7169. break;
  7170. }
  7171. }
  7172. return message;
  7173. };
  7174. AlleycatImageryTypeProto.verify = function verify(message) {
  7175. if (typeof message !== "object" || message === null)
  7176. return "object expected";
  7177. if (message.imageryTypeId != null && message.hasOwnProperty("imageryTypeId")) {
  7178. if (!$util.isInteger(message.imageryTypeId))
  7179. return "imageryTypeId: integer expected";
  7180. }
  7181. if (message.imageryTypeLabel != null && message.hasOwnProperty("imageryTypeLabel")) {
  7182. if (!$util.isString(message.imageryTypeLabel))
  7183. return "imageryTypeLabel: string expected";
  7184. }
  7185. if (message.metadataUrlTemplate != null && message.hasOwnProperty("metadataUrlTemplate")) {
  7186. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.metadataUrlTemplate);
  7187. if (error)
  7188. return "metadataUrlTemplate." + error;
  7189. }
  7190. if (message.thumbnailUrlTemplate != null && message.hasOwnProperty("thumbnailUrlTemplate")) {
  7191. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.thumbnailUrlTemplate);
  7192. if (error)
  7193. return "thumbnailUrlTemplate." + error;
  7194. }
  7195. if (message.kmlUrlTemplate != null && message.hasOwnProperty("kmlUrlTemplate")) {
  7196. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.kmlUrlTemplate);
  7197. if (error)
  7198. return "kmlUrlTemplate." + error;
  7199. }
  7200. return null;
  7201. };
  7202. AlleycatImageryTypeProto.fromObject = function fromObject(object) {
  7203. if (object instanceof $root.keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.AlleycatImageryTypeProto)
  7204. return object;
  7205. var message = new $root.keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.AlleycatImageryTypeProto();
  7206. if (object.imageryTypeId != null)
  7207. message.imageryTypeId = object.imageryTypeId | 0;
  7208. if (object.imageryTypeLabel != null)
  7209. message.imageryTypeLabel = String(object.imageryTypeLabel);
  7210. if (object.metadataUrlTemplate != null) {
  7211. if (typeof object.metadataUrlTemplate !== "object")
  7212. throw TypeError(".keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.AlleycatImageryTypeProto.metadataUrlTemplate: object expected");
  7213. message.metadataUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.metadataUrlTemplate);
  7214. }
  7215. if (object.thumbnailUrlTemplate != null) {
  7216. if (typeof object.thumbnailUrlTemplate !== "object")
  7217. throw TypeError(".keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.AlleycatImageryTypeProto.thumbnailUrlTemplate: object expected");
  7218. message.thumbnailUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.thumbnailUrlTemplate);
  7219. }
  7220. if (object.kmlUrlTemplate != null) {
  7221. if (typeof object.kmlUrlTemplate !== "object")
  7222. throw TypeError(".keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.AlleycatImageryTypeProto.kmlUrlTemplate: object expected");
  7223. message.kmlUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.kmlUrlTemplate);
  7224. }
  7225. return message;
  7226. };
  7227. AlleycatImageryTypeProto.toObject = function toObject(message, options) {
  7228. if (!options)
  7229. options = {};
  7230. var object = {};
  7231. if (options.defaults) {
  7232. object.imageryTypeId = 0;
  7233. object.imageryTypeLabel = "";
  7234. object.metadataUrlTemplate = null;
  7235. object.thumbnailUrlTemplate = null;
  7236. object.kmlUrlTemplate = null;
  7237. }
  7238. if (message.imageryTypeId != null && message.hasOwnProperty("imageryTypeId"))
  7239. object.imageryTypeId = message.imageryTypeId;
  7240. if (message.imageryTypeLabel != null && message.hasOwnProperty("imageryTypeLabel"))
  7241. object.imageryTypeLabel = message.imageryTypeLabel;
  7242. if (message.metadataUrlTemplate != null && message.hasOwnProperty("metadataUrlTemplate"))
  7243. object.metadataUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.metadataUrlTemplate, options);
  7244. if (message.thumbnailUrlTemplate != null && message.hasOwnProperty("thumbnailUrlTemplate"))
  7245. object.thumbnailUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.thumbnailUrlTemplate, options);
  7246. if (message.kmlUrlTemplate != null && message.hasOwnProperty("kmlUrlTemplate"))
  7247. object.kmlUrlTemplate = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.kmlUrlTemplate, options);
  7248. return object;
  7249. };
  7250. AlleycatImageryTypeProto.prototype.toJSON = function toJSON() {
  7251. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7252. };
  7253. AlleycatImageryTypeProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  7254. if (typeUrlPrefix === void 0) {
  7255. typeUrlPrefix = "type.googleapis.com";
  7256. }
  7257. return typeUrlPrefix + "/keyhole.dbroot.EndSnippetProto.FilmstripConfigProto.AlleycatImageryTypeProto";
  7258. };
  7259. return AlleycatImageryTypeProto;
  7260. }();
  7261. return FilmstripConfigProto;
  7262. }();
  7263. EndSnippetProto.StarDataProto = function() {
  7264. function StarDataProto(properties) {
  7265. if (properties) {
  7266. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7267. if (properties[keys[i]] != null)
  7268. this[keys[i]] = properties[keys[i]];
  7269. }
  7270. }
  7271. StarDataProto.prototype.url = null;
  7272. StarDataProto.decode = function decode(reader, length) {
  7273. if (!(reader instanceof $Reader))
  7274. reader = $Reader.create(reader);
  7275. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.EndSnippetProto.StarDataProto();
  7276. while (reader.pos < end) {
  7277. var tag = reader.uint32();
  7278. switch (tag >>> 3) {
  7279. case 1: {
  7280. message.url = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  7281. break;
  7282. }
  7283. default:
  7284. reader.skipType(tag & 7);
  7285. break;
  7286. }
  7287. }
  7288. return message;
  7289. };
  7290. StarDataProto.verify = function verify(message) {
  7291. if (typeof message !== "object" || message === null)
  7292. return "object expected";
  7293. if (message.url != null && message.hasOwnProperty("url")) {
  7294. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.url);
  7295. if (error)
  7296. return "url." + error;
  7297. }
  7298. return null;
  7299. };
  7300. StarDataProto.fromObject = function fromObject(object) {
  7301. if (object instanceof $root.keyhole.dbroot.EndSnippetProto.StarDataProto)
  7302. return object;
  7303. var message = new $root.keyhole.dbroot.EndSnippetProto.StarDataProto();
  7304. if (object.url != null) {
  7305. if (typeof object.url !== "object")
  7306. throw TypeError(".keyhole.dbroot.EndSnippetProto.StarDataProto.url: object expected");
  7307. message.url = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.url);
  7308. }
  7309. return message;
  7310. };
  7311. StarDataProto.toObject = function toObject(message, options) {
  7312. if (!options)
  7313. options = {};
  7314. var object = {};
  7315. if (options.defaults)
  7316. object.url = null;
  7317. if (message.url != null && message.hasOwnProperty("url"))
  7318. object.url = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.url, options);
  7319. return object;
  7320. };
  7321. StarDataProto.prototype.toJSON = function toJSON() {
  7322. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7323. };
  7324. StarDataProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  7325. if (typeUrlPrefix === void 0) {
  7326. typeUrlPrefix = "type.googleapis.com";
  7327. }
  7328. return typeUrlPrefix + "/keyhole.dbroot.EndSnippetProto.StarDataProto";
  7329. };
  7330. return StarDataProto;
  7331. }();
  7332. return EndSnippetProto;
  7333. }();
  7334. dbroot.DbRootRefProto = function() {
  7335. function DbRootRefProto(properties) {
  7336. if (properties) {
  7337. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7338. if (properties[keys[i]] != null)
  7339. this[keys[i]] = properties[keys[i]];
  7340. }
  7341. }
  7342. DbRootRefProto.prototype.url = "";
  7343. DbRootRefProto.prototype.isCritical = false;
  7344. DbRootRefProto.prototype.requirements = null;
  7345. DbRootRefProto.decode = function decode(reader, length) {
  7346. if (!(reader instanceof $Reader))
  7347. reader = $Reader.create(reader);
  7348. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.DbRootRefProto();
  7349. while (reader.pos < end) {
  7350. var tag = reader.uint32();
  7351. switch (tag >>> 3) {
  7352. case 2: {
  7353. message.url = reader.string();
  7354. break;
  7355. }
  7356. case 1: {
  7357. message.isCritical = reader.bool();
  7358. break;
  7359. }
  7360. case 3: {
  7361. message.requirements = $root.keyhole.dbroot.RequirementProto.decode(reader, reader.uint32());
  7362. break;
  7363. }
  7364. default:
  7365. reader.skipType(tag & 7);
  7366. break;
  7367. }
  7368. }
  7369. if (!message.hasOwnProperty("url"))
  7370. throw $util.ProtocolError("missing required 'url'", { instance: message });
  7371. return message;
  7372. };
  7373. DbRootRefProto.verify = function verify(message) {
  7374. if (typeof message !== "object" || message === null)
  7375. return "object expected";
  7376. if (!$util.isString(message.url))
  7377. return "url: string expected";
  7378. if (message.isCritical != null && message.hasOwnProperty("isCritical")) {
  7379. if (typeof message.isCritical !== "boolean")
  7380. return "isCritical: boolean expected";
  7381. }
  7382. if (message.requirements != null && message.hasOwnProperty("requirements")) {
  7383. var error = $root.keyhole.dbroot.RequirementProto.verify(message.requirements);
  7384. if (error)
  7385. return "requirements." + error;
  7386. }
  7387. return null;
  7388. };
  7389. DbRootRefProto.fromObject = function fromObject(object) {
  7390. if (object instanceof $root.keyhole.dbroot.DbRootRefProto)
  7391. return object;
  7392. var message = new $root.keyhole.dbroot.DbRootRefProto();
  7393. if (object.url != null)
  7394. message.url = String(object.url);
  7395. if (object.isCritical != null)
  7396. message.isCritical = Boolean(object.isCritical);
  7397. if (object.requirements != null) {
  7398. if (typeof object.requirements !== "object")
  7399. throw TypeError(".keyhole.dbroot.DbRootRefProto.requirements: object expected");
  7400. message.requirements = $root.keyhole.dbroot.RequirementProto.fromObject(object.requirements);
  7401. }
  7402. return message;
  7403. };
  7404. DbRootRefProto.toObject = function toObject(message, options) {
  7405. if (!options)
  7406. options = {};
  7407. var object = {};
  7408. if (options.defaults) {
  7409. object.isCritical = false;
  7410. object.url = "";
  7411. object.requirements = null;
  7412. }
  7413. if (message.isCritical != null && message.hasOwnProperty("isCritical"))
  7414. object.isCritical = message.isCritical;
  7415. if (message.url != null && message.hasOwnProperty("url"))
  7416. object.url = message.url;
  7417. if (message.requirements != null && message.hasOwnProperty("requirements"))
  7418. object.requirements = $root.keyhole.dbroot.RequirementProto.toObject(message.requirements, options);
  7419. return object;
  7420. };
  7421. DbRootRefProto.prototype.toJSON = function toJSON() {
  7422. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7423. };
  7424. DbRootRefProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  7425. if (typeUrlPrefix === void 0) {
  7426. typeUrlPrefix = "type.googleapis.com";
  7427. }
  7428. return typeUrlPrefix + "/keyhole.dbroot.DbRootRefProto";
  7429. };
  7430. return DbRootRefProto;
  7431. }();
  7432. dbroot.DatabaseVersionProto = function() {
  7433. function DatabaseVersionProto(properties) {
  7434. if (properties) {
  7435. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7436. if (properties[keys[i]] != null)
  7437. this[keys[i]] = properties[keys[i]];
  7438. }
  7439. }
  7440. DatabaseVersionProto.prototype.quadtreeVersion = 0;
  7441. DatabaseVersionProto.decode = function decode(reader, length) {
  7442. if (!(reader instanceof $Reader))
  7443. reader = $Reader.create(reader);
  7444. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.DatabaseVersionProto();
  7445. while (reader.pos < end) {
  7446. var tag = reader.uint32();
  7447. switch (tag >>> 3) {
  7448. case 1: {
  7449. message.quadtreeVersion = reader.uint32();
  7450. break;
  7451. }
  7452. default:
  7453. reader.skipType(tag & 7);
  7454. break;
  7455. }
  7456. }
  7457. if (!message.hasOwnProperty("quadtreeVersion"))
  7458. throw $util.ProtocolError("missing required 'quadtreeVersion'", { instance: message });
  7459. return message;
  7460. };
  7461. DatabaseVersionProto.verify = function verify(message) {
  7462. if (typeof message !== "object" || message === null)
  7463. return "object expected";
  7464. if (!$util.isInteger(message.quadtreeVersion))
  7465. return "quadtreeVersion: integer expected";
  7466. return null;
  7467. };
  7468. DatabaseVersionProto.fromObject = function fromObject(object) {
  7469. if (object instanceof $root.keyhole.dbroot.DatabaseVersionProto)
  7470. return object;
  7471. var message = new $root.keyhole.dbroot.DatabaseVersionProto();
  7472. if (object.quadtreeVersion != null)
  7473. message.quadtreeVersion = object.quadtreeVersion >>> 0;
  7474. return message;
  7475. };
  7476. DatabaseVersionProto.toObject = function toObject(message, options) {
  7477. if (!options)
  7478. options = {};
  7479. var object = {};
  7480. if (options.defaults)
  7481. object.quadtreeVersion = 0;
  7482. if (message.quadtreeVersion != null && message.hasOwnProperty("quadtreeVersion"))
  7483. object.quadtreeVersion = message.quadtreeVersion;
  7484. return object;
  7485. };
  7486. DatabaseVersionProto.prototype.toJSON = function toJSON() {
  7487. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7488. };
  7489. DatabaseVersionProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  7490. if (typeUrlPrefix === void 0) {
  7491. typeUrlPrefix = "type.googleapis.com";
  7492. }
  7493. return typeUrlPrefix + "/keyhole.dbroot.DatabaseVersionProto";
  7494. };
  7495. return DatabaseVersionProto;
  7496. }();
  7497. dbroot.DbRootProto = function() {
  7498. function DbRootProto(properties) {
  7499. this.providerInfo = [];
  7500. this.nestedFeature = [];
  7501. this.styleAttribute = [];
  7502. this.styleMap = [];
  7503. this.translationEntry = [];
  7504. this.dbrootReference = [];
  7505. if (properties) {
  7506. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7507. if (properties[keys[i]] != null)
  7508. this[keys[i]] = properties[keys[i]];
  7509. }
  7510. }
  7511. DbRootProto.prototype.databaseName = null;
  7512. DbRootProto.prototype.imageryPresent = true;
  7513. DbRootProto.prototype.protoImagery = false;
  7514. DbRootProto.prototype.terrainPresent = false;
  7515. DbRootProto.prototype.providerInfo = $util.emptyArray;
  7516. DbRootProto.prototype.nestedFeature = $util.emptyArray;
  7517. DbRootProto.prototype.styleAttribute = $util.emptyArray;
  7518. DbRootProto.prototype.styleMap = $util.emptyArray;
  7519. DbRootProto.prototype.endSnippet = null;
  7520. DbRootProto.prototype.translationEntry = $util.emptyArray;
  7521. DbRootProto.prototype.language = "en";
  7522. DbRootProto.prototype.version = 5;
  7523. DbRootProto.prototype.dbrootReference = $util.emptyArray;
  7524. DbRootProto.prototype.databaseVersion = null;
  7525. DbRootProto.prototype.refreshTimeout = 0;
  7526. DbRootProto.decode = function decode(reader, length) {
  7527. if (!(reader instanceof $Reader))
  7528. reader = $Reader.create(reader);
  7529. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.DbRootProto();
  7530. while (reader.pos < end) {
  7531. var tag = reader.uint32();
  7532. switch (tag >>> 3) {
  7533. case 15: {
  7534. message.databaseName = $root.keyhole.dbroot.StringIdOrValueProto.decode(reader, reader.uint32());
  7535. break;
  7536. }
  7537. case 1: {
  7538. message.imageryPresent = reader.bool();
  7539. break;
  7540. }
  7541. case 14: {
  7542. message.protoImagery = reader.bool();
  7543. break;
  7544. }
  7545. case 2: {
  7546. message.terrainPresent = reader.bool();
  7547. break;
  7548. }
  7549. case 3: {
  7550. if (!(message.providerInfo && message.providerInfo.length))
  7551. message.providerInfo = [];
  7552. message.providerInfo.push($root.keyhole.dbroot.ProviderInfoProto.decode(reader, reader.uint32()));
  7553. break;
  7554. }
  7555. case 4: {
  7556. if (!(message.nestedFeature && message.nestedFeature.length))
  7557. message.nestedFeature = [];
  7558. message.nestedFeature.push($root.keyhole.dbroot.NestedFeatureProto.decode(reader, reader.uint32()));
  7559. break;
  7560. }
  7561. case 5: {
  7562. if (!(message.styleAttribute && message.styleAttribute.length))
  7563. message.styleAttribute = [];
  7564. message.styleAttribute.push($root.keyhole.dbroot.StyleAttributeProto.decode(reader, reader.uint32()));
  7565. break;
  7566. }
  7567. case 6: {
  7568. if (!(message.styleMap && message.styleMap.length))
  7569. message.styleMap = [];
  7570. message.styleMap.push($root.keyhole.dbroot.StyleMapProto.decode(reader, reader.uint32()));
  7571. break;
  7572. }
  7573. case 7: {
  7574. message.endSnippet = $root.keyhole.dbroot.EndSnippetProto.decode(reader, reader.uint32());
  7575. break;
  7576. }
  7577. case 8: {
  7578. if (!(message.translationEntry && message.translationEntry.length))
  7579. message.translationEntry = [];
  7580. message.translationEntry.push($root.keyhole.dbroot.StringEntryProto.decode(reader, reader.uint32()));
  7581. break;
  7582. }
  7583. case 9: {
  7584. message.language = reader.string();
  7585. break;
  7586. }
  7587. case 10: {
  7588. message.version = reader.int32();
  7589. break;
  7590. }
  7591. case 11: {
  7592. if (!(message.dbrootReference && message.dbrootReference.length))
  7593. message.dbrootReference = [];
  7594. message.dbrootReference.push($root.keyhole.dbroot.DbRootRefProto.decode(reader, reader.uint32()));
  7595. break;
  7596. }
  7597. case 13: {
  7598. message.databaseVersion = $root.keyhole.dbroot.DatabaseVersionProto.decode(reader, reader.uint32());
  7599. break;
  7600. }
  7601. case 16: {
  7602. message.refreshTimeout = reader.int32();
  7603. break;
  7604. }
  7605. default:
  7606. reader.skipType(tag & 7);
  7607. break;
  7608. }
  7609. }
  7610. return message;
  7611. };
  7612. DbRootProto.verify = function verify(message) {
  7613. if (typeof message !== "object" || message === null)
  7614. return "object expected";
  7615. if (message.databaseName != null && message.hasOwnProperty("databaseName")) {
  7616. var error = $root.keyhole.dbroot.StringIdOrValueProto.verify(message.databaseName);
  7617. if (error)
  7618. return "databaseName." + error;
  7619. }
  7620. if (message.imageryPresent != null && message.hasOwnProperty("imageryPresent")) {
  7621. if (typeof message.imageryPresent !== "boolean")
  7622. return "imageryPresent: boolean expected";
  7623. }
  7624. if (message.protoImagery != null && message.hasOwnProperty("protoImagery")) {
  7625. if (typeof message.protoImagery !== "boolean")
  7626. return "protoImagery: boolean expected";
  7627. }
  7628. if (message.terrainPresent != null && message.hasOwnProperty("terrainPresent")) {
  7629. if (typeof message.terrainPresent !== "boolean")
  7630. return "terrainPresent: boolean expected";
  7631. }
  7632. if (message.providerInfo != null && message.hasOwnProperty("providerInfo")) {
  7633. if (!Array.isArray(message.providerInfo))
  7634. return "providerInfo: array expected";
  7635. for (var i = 0; i < message.providerInfo.length; ++i) {
  7636. var error = $root.keyhole.dbroot.ProviderInfoProto.verify(message.providerInfo[i]);
  7637. if (error)
  7638. return "providerInfo." + error;
  7639. }
  7640. }
  7641. if (message.nestedFeature != null && message.hasOwnProperty("nestedFeature")) {
  7642. if (!Array.isArray(message.nestedFeature))
  7643. return "nestedFeature: array expected";
  7644. for (var i = 0; i < message.nestedFeature.length; ++i) {
  7645. var error = $root.keyhole.dbroot.NestedFeatureProto.verify(message.nestedFeature[i]);
  7646. if (error)
  7647. return "nestedFeature." + error;
  7648. }
  7649. }
  7650. if (message.styleAttribute != null && message.hasOwnProperty("styleAttribute")) {
  7651. if (!Array.isArray(message.styleAttribute))
  7652. return "styleAttribute: array expected";
  7653. for (var i = 0; i < message.styleAttribute.length; ++i) {
  7654. var error = $root.keyhole.dbroot.StyleAttributeProto.verify(message.styleAttribute[i]);
  7655. if (error)
  7656. return "styleAttribute." + error;
  7657. }
  7658. }
  7659. if (message.styleMap != null && message.hasOwnProperty("styleMap")) {
  7660. if (!Array.isArray(message.styleMap))
  7661. return "styleMap: array expected";
  7662. for (var i = 0; i < message.styleMap.length; ++i) {
  7663. var error = $root.keyhole.dbroot.StyleMapProto.verify(message.styleMap[i]);
  7664. if (error)
  7665. return "styleMap." + error;
  7666. }
  7667. }
  7668. if (message.endSnippet != null && message.hasOwnProperty("endSnippet")) {
  7669. var error = $root.keyhole.dbroot.EndSnippetProto.verify(message.endSnippet);
  7670. if (error)
  7671. return "endSnippet." + error;
  7672. }
  7673. if (message.translationEntry != null && message.hasOwnProperty("translationEntry")) {
  7674. if (!Array.isArray(message.translationEntry))
  7675. return "translationEntry: array expected";
  7676. for (var i = 0; i < message.translationEntry.length; ++i) {
  7677. var error = $root.keyhole.dbroot.StringEntryProto.verify(message.translationEntry[i]);
  7678. if (error)
  7679. return "translationEntry." + error;
  7680. }
  7681. }
  7682. if (message.language != null && message.hasOwnProperty("language")) {
  7683. if (!$util.isString(message.language))
  7684. return "language: string expected";
  7685. }
  7686. if (message.version != null && message.hasOwnProperty("version")) {
  7687. if (!$util.isInteger(message.version))
  7688. return "version: integer expected";
  7689. }
  7690. if (message.dbrootReference != null && message.hasOwnProperty("dbrootReference")) {
  7691. if (!Array.isArray(message.dbrootReference))
  7692. return "dbrootReference: array expected";
  7693. for (var i = 0; i < message.dbrootReference.length; ++i) {
  7694. var error = $root.keyhole.dbroot.DbRootRefProto.verify(message.dbrootReference[i]);
  7695. if (error)
  7696. return "dbrootReference." + error;
  7697. }
  7698. }
  7699. if (message.databaseVersion != null && message.hasOwnProperty("databaseVersion")) {
  7700. var error = $root.keyhole.dbroot.DatabaseVersionProto.verify(message.databaseVersion);
  7701. if (error)
  7702. return "databaseVersion." + error;
  7703. }
  7704. if (message.refreshTimeout != null && message.hasOwnProperty("refreshTimeout")) {
  7705. if (!$util.isInteger(message.refreshTimeout))
  7706. return "refreshTimeout: integer expected";
  7707. }
  7708. return null;
  7709. };
  7710. DbRootProto.fromObject = function fromObject(object) {
  7711. if (object instanceof $root.keyhole.dbroot.DbRootProto)
  7712. return object;
  7713. var message = new $root.keyhole.dbroot.DbRootProto();
  7714. if (object.databaseName != null) {
  7715. if (typeof object.databaseName !== "object")
  7716. throw TypeError(".keyhole.dbroot.DbRootProto.databaseName: object expected");
  7717. message.databaseName = $root.keyhole.dbroot.StringIdOrValueProto.fromObject(object.databaseName);
  7718. }
  7719. if (object.imageryPresent != null)
  7720. message.imageryPresent = Boolean(object.imageryPresent);
  7721. if (object.protoImagery != null)
  7722. message.protoImagery = Boolean(object.protoImagery);
  7723. if (object.terrainPresent != null)
  7724. message.terrainPresent = Boolean(object.terrainPresent);
  7725. if (object.providerInfo) {
  7726. if (!Array.isArray(object.providerInfo))
  7727. throw TypeError(".keyhole.dbroot.DbRootProto.providerInfo: array expected");
  7728. message.providerInfo = [];
  7729. for (var i = 0; i < object.providerInfo.length; ++i) {
  7730. if (typeof object.providerInfo[i] !== "object")
  7731. throw TypeError(".keyhole.dbroot.DbRootProto.providerInfo: object expected");
  7732. message.providerInfo[i] = $root.keyhole.dbroot.ProviderInfoProto.fromObject(object.providerInfo[i]);
  7733. }
  7734. }
  7735. if (object.nestedFeature) {
  7736. if (!Array.isArray(object.nestedFeature))
  7737. throw TypeError(".keyhole.dbroot.DbRootProto.nestedFeature: array expected");
  7738. message.nestedFeature = [];
  7739. for (var i = 0; i < object.nestedFeature.length; ++i) {
  7740. if (typeof object.nestedFeature[i] !== "object")
  7741. throw TypeError(".keyhole.dbroot.DbRootProto.nestedFeature: object expected");
  7742. message.nestedFeature[i] = $root.keyhole.dbroot.NestedFeatureProto.fromObject(object.nestedFeature[i]);
  7743. }
  7744. }
  7745. if (object.styleAttribute) {
  7746. if (!Array.isArray(object.styleAttribute))
  7747. throw TypeError(".keyhole.dbroot.DbRootProto.styleAttribute: array expected");
  7748. message.styleAttribute = [];
  7749. for (var i = 0; i < object.styleAttribute.length; ++i) {
  7750. if (typeof object.styleAttribute[i] !== "object")
  7751. throw TypeError(".keyhole.dbroot.DbRootProto.styleAttribute: object expected");
  7752. message.styleAttribute[i] = $root.keyhole.dbroot.StyleAttributeProto.fromObject(object.styleAttribute[i]);
  7753. }
  7754. }
  7755. if (object.styleMap) {
  7756. if (!Array.isArray(object.styleMap))
  7757. throw TypeError(".keyhole.dbroot.DbRootProto.styleMap: array expected");
  7758. message.styleMap = [];
  7759. for (var i = 0; i < object.styleMap.length; ++i) {
  7760. if (typeof object.styleMap[i] !== "object")
  7761. throw TypeError(".keyhole.dbroot.DbRootProto.styleMap: object expected");
  7762. message.styleMap[i] = $root.keyhole.dbroot.StyleMapProto.fromObject(object.styleMap[i]);
  7763. }
  7764. }
  7765. if (object.endSnippet != null) {
  7766. if (typeof object.endSnippet !== "object")
  7767. throw TypeError(".keyhole.dbroot.DbRootProto.endSnippet: object expected");
  7768. message.endSnippet = $root.keyhole.dbroot.EndSnippetProto.fromObject(object.endSnippet);
  7769. }
  7770. if (object.translationEntry) {
  7771. if (!Array.isArray(object.translationEntry))
  7772. throw TypeError(".keyhole.dbroot.DbRootProto.translationEntry: array expected");
  7773. message.translationEntry = [];
  7774. for (var i = 0; i < object.translationEntry.length; ++i) {
  7775. if (typeof object.translationEntry[i] !== "object")
  7776. throw TypeError(".keyhole.dbroot.DbRootProto.translationEntry: object expected");
  7777. message.translationEntry[i] = $root.keyhole.dbroot.StringEntryProto.fromObject(object.translationEntry[i]);
  7778. }
  7779. }
  7780. if (object.language != null)
  7781. message.language = String(object.language);
  7782. if (object.version != null)
  7783. message.version = object.version | 0;
  7784. if (object.dbrootReference) {
  7785. if (!Array.isArray(object.dbrootReference))
  7786. throw TypeError(".keyhole.dbroot.DbRootProto.dbrootReference: array expected");
  7787. message.dbrootReference = [];
  7788. for (var i = 0; i < object.dbrootReference.length; ++i) {
  7789. if (typeof object.dbrootReference[i] !== "object")
  7790. throw TypeError(".keyhole.dbroot.DbRootProto.dbrootReference: object expected");
  7791. message.dbrootReference[i] = $root.keyhole.dbroot.DbRootRefProto.fromObject(object.dbrootReference[i]);
  7792. }
  7793. }
  7794. if (object.databaseVersion != null) {
  7795. if (typeof object.databaseVersion !== "object")
  7796. throw TypeError(".keyhole.dbroot.DbRootProto.databaseVersion: object expected");
  7797. message.databaseVersion = $root.keyhole.dbroot.DatabaseVersionProto.fromObject(object.databaseVersion);
  7798. }
  7799. if (object.refreshTimeout != null)
  7800. message.refreshTimeout = object.refreshTimeout | 0;
  7801. return message;
  7802. };
  7803. DbRootProto.toObject = function toObject(message, options) {
  7804. if (!options)
  7805. options = {};
  7806. var object = {};
  7807. if (options.arrays || options.defaults) {
  7808. object.providerInfo = [];
  7809. object.nestedFeature = [];
  7810. object.styleAttribute = [];
  7811. object.styleMap = [];
  7812. object.translationEntry = [];
  7813. object.dbrootReference = [];
  7814. }
  7815. if (options.defaults) {
  7816. object.imageryPresent = true;
  7817. object.terrainPresent = false;
  7818. object.endSnippet = null;
  7819. object.language = "en";
  7820. object.version = 5;
  7821. object.databaseVersion = null;
  7822. object.protoImagery = false;
  7823. object.databaseName = null;
  7824. object.refreshTimeout = 0;
  7825. }
  7826. if (message.imageryPresent != null && message.hasOwnProperty("imageryPresent"))
  7827. object.imageryPresent = message.imageryPresent;
  7828. if (message.terrainPresent != null && message.hasOwnProperty("terrainPresent"))
  7829. object.terrainPresent = message.terrainPresent;
  7830. if (message.providerInfo && message.providerInfo.length) {
  7831. object.providerInfo = [];
  7832. for (var j = 0; j < message.providerInfo.length; ++j)
  7833. object.providerInfo[j] = $root.keyhole.dbroot.ProviderInfoProto.toObject(message.providerInfo[j], options);
  7834. }
  7835. if (message.nestedFeature && message.nestedFeature.length) {
  7836. object.nestedFeature = [];
  7837. for (var j = 0; j < message.nestedFeature.length; ++j)
  7838. object.nestedFeature[j] = $root.keyhole.dbroot.NestedFeatureProto.toObject(message.nestedFeature[j], options);
  7839. }
  7840. if (message.styleAttribute && message.styleAttribute.length) {
  7841. object.styleAttribute = [];
  7842. for (var j = 0; j < message.styleAttribute.length; ++j)
  7843. object.styleAttribute[j] = $root.keyhole.dbroot.StyleAttributeProto.toObject(message.styleAttribute[j], options);
  7844. }
  7845. if (message.styleMap && message.styleMap.length) {
  7846. object.styleMap = [];
  7847. for (var j = 0; j < message.styleMap.length; ++j)
  7848. object.styleMap[j] = $root.keyhole.dbroot.StyleMapProto.toObject(message.styleMap[j], options);
  7849. }
  7850. if (message.endSnippet != null && message.hasOwnProperty("endSnippet"))
  7851. object.endSnippet = $root.keyhole.dbroot.EndSnippetProto.toObject(message.endSnippet, options);
  7852. if (message.translationEntry && message.translationEntry.length) {
  7853. object.translationEntry = [];
  7854. for (var j = 0; j < message.translationEntry.length; ++j)
  7855. object.translationEntry[j] = $root.keyhole.dbroot.StringEntryProto.toObject(message.translationEntry[j], options);
  7856. }
  7857. if (message.language != null && message.hasOwnProperty("language"))
  7858. object.language = message.language;
  7859. if (message.version != null && message.hasOwnProperty("version"))
  7860. object.version = message.version;
  7861. if (message.dbrootReference && message.dbrootReference.length) {
  7862. object.dbrootReference = [];
  7863. for (var j = 0; j < message.dbrootReference.length; ++j)
  7864. object.dbrootReference[j] = $root.keyhole.dbroot.DbRootRefProto.toObject(message.dbrootReference[j], options);
  7865. }
  7866. if (message.databaseVersion != null && message.hasOwnProperty("databaseVersion"))
  7867. object.databaseVersion = $root.keyhole.dbroot.DatabaseVersionProto.toObject(message.databaseVersion, options);
  7868. if (message.protoImagery != null && message.hasOwnProperty("protoImagery"))
  7869. object.protoImagery = message.protoImagery;
  7870. if (message.databaseName != null && message.hasOwnProperty("databaseName"))
  7871. object.databaseName = $root.keyhole.dbroot.StringIdOrValueProto.toObject(message.databaseName, options);
  7872. if (message.refreshTimeout != null && message.hasOwnProperty("refreshTimeout"))
  7873. object.refreshTimeout = message.refreshTimeout;
  7874. return object;
  7875. };
  7876. DbRootProto.prototype.toJSON = function toJSON() {
  7877. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7878. };
  7879. DbRootProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  7880. if (typeUrlPrefix === void 0) {
  7881. typeUrlPrefix = "type.googleapis.com";
  7882. }
  7883. return typeUrlPrefix + "/keyhole.dbroot.DbRootProto";
  7884. };
  7885. return DbRootProto;
  7886. }();
  7887. dbroot.EncryptedDbRootProto = function() {
  7888. function EncryptedDbRootProto(properties) {
  7889. if (properties) {
  7890. for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7891. if (properties[keys[i]] != null)
  7892. this[keys[i]] = properties[keys[i]];
  7893. }
  7894. }
  7895. EncryptedDbRootProto.prototype.encryptionType = 0;
  7896. EncryptedDbRootProto.prototype.encryptionData = $util.newBuffer([]);
  7897. EncryptedDbRootProto.prototype.dbrootData = $util.newBuffer([]);
  7898. EncryptedDbRootProto.decode = function decode(reader, length) {
  7899. if (!(reader instanceof $Reader))
  7900. reader = $Reader.create(reader);
  7901. var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.EncryptedDbRootProto();
  7902. while (reader.pos < end) {
  7903. var tag = reader.uint32();
  7904. switch (tag >>> 3) {
  7905. case 1: {
  7906. message.encryptionType = reader.int32();
  7907. break;
  7908. }
  7909. case 2: {
  7910. message.encryptionData = reader.bytes();
  7911. break;
  7912. }
  7913. case 3: {
  7914. message.dbrootData = reader.bytes();
  7915. break;
  7916. }
  7917. default:
  7918. reader.skipType(tag & 7);
  7919. break;
  7920. }
  7921. }
  7922. return message;
  7923. };
  7924. EncryptedDbRootProto.verify = function verify(message) {
  7925. if (typeof message !== "object" || message === null)
  7926. return "object expected";
  7927. if (message.encryptionType != null && message.hasOwnProperty("encryptionType"))
  7928. switch (message.encryptionType) {
  7929. default:
  7930. return "encryptionType: enum value expected";
  7931. case 0:
  7932. break;
  7933. }
  7934. if (message.encryptionData != null && message.hasOwnProperty("encryptionData")) {
  7935. if (!(message.encryptionData && typeof message.encryptionData.length === "number" || $util.isString(message.encryptionData)))
  7936. return "encryptionData: buffer expected";
  7937. }
  7938. if (message.dbrootData != null && message.hasOwnProperty("dbrootData")) {
  7939. if (!(message.dbrootData && typeof message.dbrootData.length === "number" || $util.isString(message.dbrootData)))
  7940. return "dbrootData: buffer expected";
  7941. }
  7942. return null;
  7943. };
  7944. EncryptedDbRootProto.fromObject = function fromObject(object) {
  7945. if (object instanceof $root.keyhole.dbroot.EncryptedDbRootProto)
  7946. return object;
  7947. var message = new $root.keyhole.dbroot.EncryptedDbRootProto();
  7948. switch (object.encryptionType) {
  7949. case "ENCRYPTION_XOR":
  7950. case 0:
  7951. message.encryptionType = 0;
  7952. break;
  7953. }
  7954. if (object.encryptionData != null) {
  7955. if (typeof object.encryptionData === "string")
  7956. $util.base64.decode(object.encryptionData, message.encryptionData = $util.newBuffer($util.base64.length(object.encryptionData)), 0);
  7957. else if (object.encryptionData.length >= 0)
  7958. message.encryptionData = object.encryptionData;
  7959. }
  7960. if (object.dbrootData != null) {
  7961. if (typeof object.dbrootData === "string")
  7962. $util.base64.decode(object.dbrootData, message.dbrootData = $util.newBuffer($util.base64.length(object.dbrootData)), 0);
  7963. else if (object.dbrootData.length >= 0)
  7964. message.dbrootData = object.dbrootData;
  7965. }
  7966. return message;
  7967. };
  7968. EncryptedDbRootProto.toObject = function toObject(message, options) {
  7969. if (!options)
  7970. options = {};
  7971. var object = {};
  7972. if (options.defaults) {
  7973. object.encryptionType = options.enums === String ? "ENCRYPTION_XOR" : 0;
  7974. if (options.bytes === String)
  7975. object.encryptionData = "";
  7976. else {
  7977. object.encryptionData = [];
  7978. if (options.bytes !== Array)
  7979. object.encryptionData = $util.newBuffer(object.encryptionData);
  7980. }
  7981. if (options.bytes === String)
  7982. object.dbrootData = "";
  7983. else {
  7984. object.dbrootData = [];
  7985. if (options.bytes !== Array)
  7986. object.dbrootData = $util.newBuffer(object.dbrootData);
  7987. }
  7988. }
  7989. if (message.encryptionType != null && message.hasOwnProperty("encryptionType"))
  7990. object.encryptionType = options.enums === String ? $root.keyhole.dbroot.EncryptedDbRootProto.EncryptionType[message.encryptionType] : message.encryptionType;
  7991. if (message.encryptionData != null && message.hasOwnProperty("encryptionData"))
  7992. object.encryptionData = options.bytes === String ? $util.base64.encode(message.encryptionData, 0, message.encryptionData.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptionData) : message.encryptionData;
  7993. if (message.dbrootData != null && message.hasOwnProperty("dbrootData"))
  7994. object.dbrootData = options.bytes === String ? $util.base64.encode(message.dbrootData, 0, message.dbrootData.length) : options.bytes === Array ? Array.prototype.slice.call(message.dbrootData) : message.dbrootData;
  7995. return object;
  7996. };
  7997. EncryptedDbRootProto.prototype.toJSON = function toJSON() {
  7998. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7999. };
  8000. EncryptedDbRootProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
  8001. if (typeUrlPrefix === void 0) {
  8002. typeUrlPrefix = "type.googleapis.com";
  8003. }
  8004. return typeUrlPrefix + "/keyhole.dbroot.EncryptedDbRootProto";
  8005. };
  8006. EncryptedDbRootProto.EncryptionType = function() {
  8007. var valuesById = {}, values = Object.create(valuesById);
  8008. values[valuesById[0] = "ENCRYPTION_XOR"] = 0;
  8009. return values;
  8010. }();
  8011. return EncryptedDbRootProto;
  8012. }();
  8013. return dbroot;
  8014. }();
  8015. return keyhole;
  8016. }();
  8017. return $root.keyhole.dbroot;
  8018. };
  8019. })();
  8020. //# sourceMappingURL=google-earth-dbroot-parser.js.map