8 lines
703 KiB
Plaintext
8 lines
703 KiB
Plaintext
|
{
|
||
|
"version": 3,
|
||
|
"sources": ["../../../packages/engine/Source/ThirdParty/google-earth-dbroot-parser.js"],
|
||
|
"sourcesContent": ["window.cesiumGoogleEarthDbRootParser = function(\n $protobuf) {\n /* jshint curly: false, sub: true, newcap: false, shadow: true, unused: false*/\n 'use strict';\n\n //\n // Creates a parser for a dbroot protocol buffer\n // Below code is generated using protobufjs with the following command\n //\n // ./pbjs --no-encode --no-create --no-comments --no-delimited -w amd -t static dbroot_v2.proto\n //\n // .proto file can be found here: https://github.com/google/earthenterprise/blob/master/earth_enterprise/src/keyhole/proto/dbroot/dbroot_v2.proto\n var $Reader = $protobuf.Reader, $util = $protobuf.util;\n\n var $root = $protobuf.roots[\"default\"] || ($protobuf.roots[\"default\"] = {});\n \n $root.keyhole = (function() {\n \n var keyhole = {};\n \n keyhole.dbroot = (function() {\n \n var dbroot = {};\n \n dbroot.StringEntryProto = (function() {\n \n function StringEntryProto(properties) {\n if (properties)\n for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)\n if (properties[keys[i]] != null)\n this[keys[i]] = properties[keys[i]];\n }\n \n StringEntryProto.prototype.stringId = 0;\n StringEntryProto.prototype.stringValue = \"\";\n \n StringEntryProto.decode = function decode(reader, length) {\n if (!(reader instanceof $Reader))\n reader = $Reader.create(reader);\n var end = length === undefined ? reader.len : reader.pos + length, message = new $root.keyhole.dbroot.StringEntryProto();\n while (reader.pos < end) {\n var tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n message.stringId = reader.fixed32();\n break;\n }\n case 2: {\n message.stringValue = reader.string();\n break;\n }\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n if (!message.hasOwnProperty(\"stringId\"))\n throw $util.ProtocolError(\"missing required 'stringId'\", { instance: message });\n if (!message.hasOwnProperty(\"stringValue\"))\n throw $util.ProtocolError(\"missing required 'stringValue'\", { instance: message });\n return message;\n };\n \n StringEntryProto.verify = function verify(message) {\n if (typeof message !== \"object\" || message === null)\n return \"object expected\";\n if (!$util.isInteger(message.stringId))\n return \"stringId: integer expected\";\n if (!$util.isString(message.stringValue))\n return \"stringValue: string expected\";\n return null;\n };\n \n StringEntryProto.fromObject = function fromObject(object) {\n if (object instanceof $root.keyhole.dbroot.StringEntryProto)\n return object;\n var message = new $root.keyhole.dbroot.StringEntryProto();\n if (object.stringId != null)\n message.stringId = object.stringId >>> 0;\n if (object.stringValue != null)\n message.stringValue = String(object.stringValue);\n return message;\n };\n \n StringEntryProto.toObject = function toObject(message, options) {\n if (!options)\n
|
||
|
"mappings": ";;AAAA,SAAO,gCAAgC,SACnC,WAAW;AAEX;AASA,QAAI,UAAU,UAAU,QAAQ,QAAQ,UAAU;AAElD,QAAI,QAAQ,UAAU,MAAM,SAAS,MAAM,UAAU,MAAM,SAAS,IAAI,CAAC;AAEzE,UAAM,UAAW,WAAW;AAExB,UAAI,UAAU,CAAC;AAEf,cAAQ,SAAU,WAAW;AAEzB,YAAI,SAAS,CAAC;AAEd,eAAO,mBAAoB,WAAW;AAElC,mBAAS,iBAAiB,YAAY;AAClC,gBAAI;AACA,uBAAS,OAAO,OAAO,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,KAAK,QAAQ,EAAE;AAC/D,oBAAI,WAAW,KAAK,CAAC,CAAC,KAAK;AACvB,uBAAK,KAAK,CAAC,CAAC,IAAI,WAAW,KAAK,CAAC,CAAC;AAAA;AAAA,UAClD;AAEA,2BAAiB,UAAU,WAAW;AACtC,2BAAiB,UAAU,cAAc;AAEzC,2BAAiB,SAAS,SAAS,OAAO,QAAQ,QAAQ;AACtD,gBAAI,EAAE,kBAAkB;AACpB,uBAAS,QAAQ,OAAO,MAAM;AAClC,gBAAI,MAAM,WAAW,SAAY,OAAO,MAAM,OAAO,MAAM,QAAQ,UAAU,IAAI,MAAM,QAAQ,OAAO,iBAAiB;AACvH,mBAAO,OAAO,MAAM,KAAK;AACrB,kBAAI,MAAM,OAAO,OAAO;AACxB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