diff --git a/bower.json b/bower.json index 86792f58a..a1048b093 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "protobuf", "description": "Protocol Buffers for JavaScript. Finally.", - "version": "5.0.1", + "version": "5.0.2", "main": "dist/protobuf.js", "license": "Apache-2.0", "homepage": "http://dcode.io/", diff --git a/dist/protobuf-light.js b/dist/protobuf-light.js index a8843426f..5dd8ab836 100644 --- a/dist/protobuf-light.js +++ b/dist/protobuf-light.js @@ -57,7 +57,7 @@ * @const * @expose */ - ProtoBuf.VERSION = "5.0.1"; + ProtoBuf.VERSION = "5.0.2"; /** * Wire types. @@ -3745,7 +3745,11 @@ root = require("path")['resolve'](root); if (root.indexOf("\\") >= 0 || filename.file.indexOf("\\") >= 0) delim = '\\'; - var fname = root + delim + filename.file; + var fname; + if (ProtoBuf.Util.IS_NODE) + fname = require("path")['join'](root, filename.file); + else + fname = root + delim + filename.file; if (this.files[fname] === true) return this.reset(); this.files[fname] = true; @@ -3791,7 +3795,10 @@ var importFilename = json['imports'][i]; if (importFilename === "google/protobuf/descriptor.proto") continue; // Not needed and therefore not used - importFilename = importRoot + delim + importFilename; + if (ProtoBuf.Util.IS_NODE) + importFilename = require("path")['join'](importRoot, importFilename); + else + importFilename = importRoot + delim + importFilename; if (this.files[importFilename] === true) continue; // Already imported if (/\.proto$/i.test(importFilename) && !ProtoBuf.DotProto) // If this is a light build diff --git a/dist/protobuf-light.min.js b/dist/protobuf-light.min.js index 5f6306a1f..60a0cc925 100644 --- a/dist/protobuf-light.min.js +++ b/dist/protobuf-light.min.js @@ -3,86 +3,92 @@ Released under the Apache License, Version 2.0 see: https://github.com/dcodeIO/protobuf.js for details */ -(function(h,y){"function"===typeof define&&define.amd?define(["bytebuffer"],y):"function"===typeof require&&"object"===typeof module&&module&&module.exports?module.exports=y(require("bytebuffer"),!0):(h.dcodeIO=h.dcodeIO||{}).ProtoBuf=y(h.dcodeIO.ByteBuffer)})(this,function(h,y){var d={};d.ByteBuffer=h;d.Long=h.Long||null;d.VERSION="5.0.1";d.WIRE_TYPES={};d.WIRE_TYPES.VARINT=0;d.WIRE_TYPES.BITS64=1;d.WIRE_TYPES.LDELIM=2;d.WIRE_TYPES.STARTGROUP=3;d.WIRE_TYPES.ENDGROUP=4;d.WIRE_TYPES.BITS32=5;d.PACKABLE_WIRE_TYPES= +var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,p,d){if(d.get||d.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[p]=d.value)};$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; +$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(e){return $jscomp.SYMBOL_PREFIX+(e||"")+$jscomp.symbolCounter_++}; +$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var e=$jscomp.global.Symbol.iterator;e||(e=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[e]&&$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(e){var p=0;return $jscomp.iteratorPrototype(function(){return p]/g,RULE:/^(?:required|optional|repeated|map)$/, +d.TYPES.int64,d.TYPES.sint64,d.TYPES.sfixed64,d.TYPES.uint64,d.TYPES.fixed64,d.TYPES.bool,d.TYPES.string,d.TYPES.bytes];d.ID_MIN=1;d.ID_MAX=536870911;d.convertFieldsToCamelCase=!1;d.populateAccessors=!0;d.populateDefaults=!0;d.Util=function(){var c={};c.IS_NODE=!("object"!==typeof process||"[object process]"!==process+""||process.browser);c.XHR=function(){for(var c=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")}, +function(){return new ActiveXObject("Microsoft.XMLHTTP")}],d=null,e=0;e]/g,RULE:/^(?:required|optional|repeated|map)$/, TYPE:/^(?:double|float|int32|uint32|sint32|int64|uint64|sint64|fixed32|sfixed32|fixed64|sfixed64|bool|string|bytes)$/,NAME:/^[a-zA-Z_][a-zA-Z_0-9]*$/,TYPEDEF:/^[a-zA-Z][a-zA-Z_0-9]*$/,TYPEREF:/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)+$/,FQTYPEREF:/^(?:\.[a-zA-Z][a-zA-Z_0-9]*)+$/,NUMBER:/^-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+|([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?)|inf|nan)$/,NUMBER_DEC:/^(?:[1-9][0-9]*|0)$/,NUMBER_HEX:/^0[xX][0-9a-fA-F]+$/,NUMBER_OCT:/^0[0-7]+$/,NUMBER_FLT:/^([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?|inf|nan)$/, -BOOL:/^(?:true|false)$/i,ID:/^(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,NEGID:/^\-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,WHITESPACE:/\s/,STRING:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")|(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,STRING_DQ:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,STRING_SQ:/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g};d.Reflect=function(b){function d(a,g){if(a&&"number"===typeof a.low&&"number"===typeof a.high&&"boolean"===typeof a.unsigned&&a.low===a.low&&a.high===a.high)return new b.Long(a.low,a.high,"undefined"=== -typeof g?a.unsigned:g);if("string"===typeof a)return b.Long.fromString(a,g||!1,10);if("number"===typeof a)return b.Long.fromNumber(a,g||!1);throw Error("not convertible to Long");}function t(a,g){var m=g.readVarint32(),c=m&7,m=m>>>3;switch(c){case b.WIRE_TYPES.VARINT:do m=g.readUint8();while(128===(m&128));break;case b.WIRE_TYPES.BITS64:g.offset+=8;break;case b.WIRE_TYPES.LDELIM:m=g.readVarint32();g.offset+=m;break;case b.WIRE_TYPES.STARTGROUP:t(m,g);break;case b.WIRE_TYPES.ENDGROUP:if(m===a)return!1; -throw Error("Illegal GROUPEND after unknown group: "+m+" ("+a+" expected)");case b.WIRE_TYPES.BITS32:g.offset+=4;break;default:throw Error("Illegal wire type in unknown group "+a+": "+c);}return!0}var n={},k=function(a,g,b){this.builder=a;this.parent=g;this.name=b},f=k.prototype;f.fqn=function(){var a=this.name,g=this;do{g=g.parent;if(null==g)break;a=g.name+"."+a}while(1);return a};f.toString=function(a){return(a?this.className+" ":"")+this.fqn()};f.build=function(){throw Error(this.toString(!0)+ -" cannot be built directly");};n.T=k;var c=function(a,g,b,c,s){k.call(this,a,g,b);this.className="Namespace";this.children=[];this.options=c||{};this.syntax=s||"proto2"},f=c.prototype=Object.create(k.prototype);f.getChildren=function(a){a=a||null;if(null==a)return this.children.slice();for(var g=[],b=0,c=this.children.length;bb.MAP_KEY_TYPES.indexOf(a))throw Error("Invalid map key type: "+a.name);},e=l.prototype;l.defaultFieldValue=function(a){"string"===typeof a&&(a=b.TYPES[a]);if("undefined"===typeof a.defaultValue)throw Error("default value for type "+a.name+" is not supported");return a==b.TYPES.bytes?new h(0):a.defaultValue};e.toString=function(){return(this.name||"")+(this.isMapKey?"map":"value")+" element"};e.verifyValue=function(a){function g(a, -b){throw Error("Illegal value for "+c.toString(!0)+" of type "+c.type.name+": "+a+" ("+b+")");}var c=this;switch(this.type){case b.TYPES.int32:case b.TYPES.sint32:case b.TYPES.sfixed32:return("number"!==typeof a||a===a&&0!==a%1)&&g(typeof a,"not an integer"),4294967295a?a>>>0:a;case b.TYPES.int64:case b.TYPES.sint64:case b.TYPES.sfixed64:if(b.Long)try{return d(a,!1)}catch(e){g(typeof a, -e.message)}else g(typeof a,"requires Long.js");case b.TYPES.uint64:case b.TYPES.fixed64:if(b.Long)try{return d(a,!0)}catch(s){g(typeof a,s.message)}else g(typeof a,"requires Long.js");case b.TYPES.bool:return"boolean"!==typeof a&&g(typeof a,"not a boolean"),a;case b.TYPES["float"]:case b.TYPES["double"]:return"number"!==typeof a&&g(typeof a,"not a number"),a;case b.TYPES.string:return"string"===typeof a||a&&a instanceof String||g(typeof a,"not a string"),""+a;case b.TYPES.bytes:return h.isByteBuffer(a)? -a:h.wrap(a,"base64");case b.TYPES["enum"]:for(var v=this.resolvedType.getChildren(b.Reflect.Enum.Value),f=0;fa)&&g(typeof a,"not in range for uint32"),a;g(a,"not a valid enum value");case b.TYPES.group:case b.TYPES.message:a&&"object"===typeof a||g(typeof a,"object expected");if(a instanceof this.resolvedType.clazz)return a;if(a instanceof -b.Builder.Message){var v={},f;for(f in a)a.hasOwnProperty(f)&&(v[f]=a[f]);a=v}return new this.resolvedType.clazz(a)}throw Error("[INTERNAL] Illegal value for "+this.toString(!0)+": "+a+" (undefined type "+this.type+")");};e.calculateLength=function(a,g){if(null===g)return 0;var c;switch(this.type){case b.TYPES.int32:return 0>g?h.calculateVarint64(g):h.calculateVarint32(g);case b.TYPES.uint32:return h.calculateVarint32(g);case b.TYPES.sint32:return h.calculateVarint32(h.zigZagEncode32(g));case b.TYPES.fixed32:case b.TYPES.sfixed32:case b.TYPES["float"]:return 4; -case b.TYPES.int64:case b.TYPES.uint64:return h.calculateVarint64(g);case b.TYPES.sint64:return h.calculateVarint64(h.zigZagEncode64(g));case b.TYPES.fixed64:case b.TYPES.sfixed64:return 8;case b.TYPES.bool:return 1;case b.TYPES["enum"]:return h.calculateVarint32(g);case b.TYPES["double"]:return 8;case b.TYPES.string:return c=h.calculateUTF8Bytes(g),h.calculateVarint32(c)+c;case b.TYPES.bytes:if(0>g.remaining())throw Error("Illegal value for "+this.toString(!0)+": "+g.remaining()+" bytes remaining"); -return h.calculateVarint32(g.remaining())+g.remaining();case b.TYPES.message:return c=this.resolvedType.calculate(g),h.calculateVarint32(c)+c;case b.TYPES.group:return c=this.resolvedType.calculate(g),c+h.calculateVarint32(a<<3|b.WIRE_TYPES.ENDGROUP)}throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+g+" (unknown type)");};e.encodeValue=function(a,g,c){if(null===g)return c;switch(this.type){case b.TYPES.int32:0>g?c.writeVarint64(g):c.writeVarint32(g);break;case b.TYPES.uint32:c.writeVarint32(g); -break;case b.TYPES.sint32:c.writeVarint32ZigZag(g);break;case b.TYPES.fixed32:c.writeUint32(g);break;case b.TYPES.sfixed32:c.writeInt32(g);break;case b.TYPES.int64:case b.TYPES.uint64:c.writeVarint64(g);break;case b.TYPES.sint64:c.writeVarint64ZigZag(g);break;case b.TYPES.fixed64:c.writeUint64(g);break;case b.TYPES.sfixed64:c.writeInt64(g);break;case b.TYPES.bool:"string"===typeof g?c.writeVarint32("false"===g.toLowerCase()?0:!!g):c.writeVarint32(g?1:0);break;case b.TYPES["enum"]:c.writeVarint32(g); -break;case b.TYPES["float"]:c.writeFloat32(g);break;case b.TYPES["double"]:c.writeFloat64(g);break;case b.TYPES.string:c.writeVString(g);break;case b.TYPES.bytes:if(0>g.remaining())throw Error("Illegal value for "+this.toString(!0)+": "+g.remaining()+" bytes remaining");a=g.offset;c.writeVarint32(g.remaining());c.append(g);g.offset=a;break;case b.TYPES.message:a=(new h).LE();this.resolvedType.encode(g,a);c.writeVarint32(a.offset);c.append(a.flip());break;case b.TYPES.group:this.resolvedType.encode(g, -c);c.writeVarint32(a<<3|b.WIRE_TYPES.ENDGROUP);break;default:throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+g+" (unknown type)");}return c};e.decode=function(a,g,c){if(g!=this.type.wireType)throw Error("Unexpected wire type for element");switch(this.type){case b.TYPES.int32:return a.readVarint32()|0;case b.TYPES.uint32:return a.readVarint32()>>>0;case b.TYPES.sint32:return a.readVarint32ZigZag()|0;case b.TYPES.fixed32:return a.readUint32()>>>0;case b.TYPES.sfixed32:return a.readInt32()| -0;case b.TYPES.int64:return a.readVarint64();case b.TYPES.uint64:return a.readVarint64().toUnsigned();case b.TYPES.sint64:return a.readVarint64ZigZag();case b.TYPES.fixed64:return a.readUint64();case b.TYPES.sfixed64:return a.readInt64();case b.TYPES.bool:return!!a.readVarint32();case b.TYPES["enum"]:return a.readVarint32();case b.TYPES["float"]:return a.readFloat();case b.TYPES["double"]:return a.readDouble();case b.TYPES.string:return a.readVString();case b.TYPES.bytes:c=a.readVarint32();if(a.remaining()< -c)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+c+" required but got only "+a.remaining());g=a.clone();g.limit=g.offset+c;a.offset+=c;return g;case b.TYPES.message:return c=a.readVarint32(),this.resolvedType.decode(a,c);case b.TYPES.group:return this.resolvedType.decode(a,-1,c)}throw Error("[INTERNAL] Illegal decode type");};e.valueFromString=function(a){if(!this.isMapKey)throw Error("valueFromString() called on non-map-key element");switch(this.type){case b.TYPES.int32:case b.TYPES.sint32:case b.TYPES.sfixed32:case b.TYPES.uint32:case b.TYPES.fixed32:return this.verifyValue(parseInt(a)); -case b.TYPES.int64:case b.TYPES.sint64:case b.TYPES.sfixed64:case b.TYPES.uint64:case b.TYPES.fixed64:return this.verifyValue(a);case b.TYPES.bool:return"true"===a;case b.TYPES.string:return this.verifyValue(a);case b.TYPES.bytes:return h.fromBinary(a)}};e.valueToString=function(a){if(!this.isMapKey)throw Error("valueToString() called on non-map-key element");return this.type===b.TYPES.bytes?a.toString("binary"):a.toString()};n.Element=l;var p=function(a,b,d,e,s,f){c.call(this,a,b,d,e,f);this.className= -"Message";this.extensions=void 0;this.clazz=null;this.isGroup=!!s;this._fieldsByName=this._fieldsById=this._fields=null},e=p.prototype=Object.create(c.prototype);e.build=function(a){if(this.clazz&&!a)return this.clazz;a=function(a,b){function g(b,c,d,e){if(null===b||"object"!==typeof b){if(e&&e instanceof a.Reflect.Enum){var m=a.Reflect.Enum.getName(e.object,b);if(null!==m)return m}return b}if(h.isByteBuffer(b))return c?b.toBase64():b.toBuffer();if(a.Long.isLong(b))return d?b.toString():a.Long.fromValue(b); -var f;if(Array.isArray(b))return f=[],b.forEach(function(a,b){f[b]=g(a,c,d,e)}),f;f={};if(b instanceof a.Map){for(var m=b.entries(),l=m.next();!l.done;l=m.next())f[b.keyElem.valueToString(l.value[0])]=g(l.value[1],c,d,b.valueElem.resolvedType);return f}var m=b.$type,l=void 0,r;for(r in b)b.hasOwnProperty(r)&&(m&&(l=m.getChild(r))?f[r]=g(b[r],c,d,l.resolvedType):f[r]=g(b[r],c,d));return f}var c=b.getChildren(a.Reflect.Message.Field),d=b.getChildren(a.Reflect.Message.OneOf),m=function(g,e){a.Builder.Message.call(this); -for(var f=0,l=d.length;fa.remaining())return null;var c=a.offset, -d=a.readVarint32();if(a.remaining()>>3;if(l===b.WIRE_TYPES.ENDGROUP){if(p!==c)throw Error("Illegal group end indicator for "+ -this.toString(!0)+": "+p+" ("+(c?c+" expected":"not a group")+")");break}if(f=this._fieldsById[p])f.repeated&&!f.options.packed?e[f.name].push(f.decode(l,a)):f.map?(l=f.decode(l,a),e[f.name].set(l[0],l[1])):(e[f.name]=f.decode(l,a),f.oneof&&(l=e[f.oneof.name],null!==l&&l!==f.name&&(e[l]=null),e[f.oneof.name]=f.name));else switch(l){case b.WIRE_TYPES.VARINT:a.readVarint32();break;case b.WIRE_TYPES.BITS32:a.offset+=4;break;case b.WIRE_TYPES.BITS64:a.offset+=8;break;case b.WIRE_TYPES.LDELIM:f=a.readVarint32(); -a.offset+=f;break;case b.WIRE_TYPES.STARTGROUP:for(;t(p,a););break;default:throw Error("Illegal wire type for unknown field "+p+" in "+this.toString(!0)+"#decode: "+l);}}a=0;for(g=this._fields.length;a>>=3,1===c)e=this.keyElement.decode(f,a,c);else if(2===c)d= -this.element.decode(f,a,c);else throw Error("Unexpected tag in map field key/value submessage");return[e,d]}return this.element.decode(c,a,this.id)};n.Message.Field=z;e=function(a,c,b,d,e,f,l){z.call(this,a,c,b,null,d,e,f,l)};e.prototype=Object.create(z.prototype);n.Message.ExtensionField=e;n.Message.OneOf=function(a,c,b){k.call(this,a,c,b);this.fields=[]};var x=function(a,b,d,e,f){c.call(this,a,b,d,e,f);this.className="Enum";this.object=null};x.getName=function(a,c){for(var b=Object.keys(a),d=0, -e;d=a[0]&&c.id<=a[1]&&(d=!0)});if(!d)throw Error("illegal extended field id in "+f.name+": "+c.id+" (not within valid ranges)");}var e=c.name;this.options.convertFieldsToCamelCase&&(e=b.Util.toCamelCase(e));var e=new h.Message.ExtensionField(this,f,c.rule,c.type,this.ptr.fqn()+"."+e,c.id,c.options), -a=new h.Extension(this,this.ptr,c.name,e);e.extension=a;this.ptr.addChild(a);f.addChild(e)},this);else{if(!/\.?google\.protobuf\./.test(e.ref))throw Error("extended message "+e.ref+" is not defined");}else throw Error("not a valid definition: "+JSON.stringify(e));f=e=null}c=null;this.ptr=this.ptr.parent}this.resolved=!1;this.result=null;return this};f["import"]=function(c,d){var e="/";if("string"===typeof d){b.Util.IS_NODE&&(d=require("path").resolve(d));if(!0===this.files[d])return this.reset(); -this.files[d]=!0}else if("object"===typeof d){var f=d.root;b.Util.IS_NODE&&(f=require("path").resolve(f));if(0<=f.indexOf("\\")||0<=d.file.indexOf("\\"))e="\\";f=f+e+d.file;if(!0===this.files[f])return this.reset();this.files[f]=!0}if(c.imports&&0>>3;switch(b){case c.WIRE_TYPES.VARINT:do h=g.readUint8();while(128===(h&128));break;case c.WIRE_TYPES.BITS64:g.offset+=8;break;case c.WIRE_TYPES.LDELIM:h=g.readVarint32();g.offset+=h;break;case c.WIRE_TYPES.STARTGROUP:z(h,g);break;case c.WIRE_TYPES.ENDGROUP:if(h===a)return!1; +throw Error("Illegal GROUPEND after unknown group: "+h+" ("+a+" expected)");case c.WIRE_TYPES.BITS32:g.offset+=4;break;default:throw Error("Illegal wire type in unknown group "+a+": "+b);}return!0}var r={},k=function(a,g,c){this.builder=a;this.parent=g;this.name=c},l=k.prototype;l.fqn=function(){var a=this.name,g=this;do{g=g.parent;if(null==g)break;a=g.name+"."+a}while(1);return a};l.toString=function(a){return(a?this.className+" ":"")+this.fqn()};l.build=function(){throw Error(this.toString(!0)+ +" cannot be built directly");};r.T=k;var b=function(a,g,c,b,e){k.call(this,a,g,c);this.className="Namespace";this.children=[];this.options=b||{};this.syntax=e||"proto2"},l=b.prototype=Object.create(k.prototype);l.getChildren=function(a){a=a||null;if(null==a)return this.children.slice();for(var g=[],c=0,b=this.children.length;cc.MAP_KEY_TYPES.indexOf(a))throw Error("Invalid map key type: "+a.name);},f=m.prototype;m.defaultFieldValue=function(a){"string"===typeof a&&(a=c.TYPES[a]);if("undefined"===typeof a.defaultValue)throw Error("default value for type "+a.name+" is not supported");return a==c.TYPES.bytes?new e(0):a.defaultValue};f.toString=function(){return(this.name||"")+(this.isMapKey?"map":"value")+" element"};f.verifyValue=function(a){function g(a, +c){throw Error("Illegal value for "+b.toString(!0)+" of type "+b.type.name+": "+a+" ("+c+")");}var b=this;switch(this.type){case c.TYPES.int32:case c.TYPES.sint32:case c.TYPES.sfixed32:return("number"!==typeof a||a===a&&0!==a%1)&&g(typeof a,"not an integer"),4294967295a?a>>>0:a;case c.TYPES.int64:case c.TYPES.sint64:case c.TYPES.sfixed64:if(c.Long)try{return d(a,!1)}catch(w){g(typeof a, +w.message)}else g(typeof a,"requires Long.js");case c.TYPES.uint64:case c.TYPES.fixed64:if(c.Long)try{return d(a,!0)}catch(w){g(typeof a,w.message)}else g(typeof a,"requires Long.js");case c.TYPES.bool:return"boolean"!==typeof a&&g(typeof a,"not a boolean"),a;case c.TYPES["float"]:case c.TYPES["double"]:return"number"!==typeof a&&g(typeof a,"not a number"),a;case c.TYPES.string:return"string"===typeof a||a&&a instanceof String||g(typeof a,"not a string"),""+a;case c.TYPES.bytes:return e.isByteBuffer(a)? +a:e.wrap(a,"base64");case c.TYPES["enum"]:for(var v=this.resolvedType.getChildren(c.Reflect.Enum.Value),q=0;qa)&&g(typeof a,"not in range for uint32"),a;g(a,"not a valid enum value");case c.TYPES.group:case c.TYPES.message:a&&"object"===typeof a||g(typeof a,"object expected");if(a instanceof this.resolvedType.clazz)return a;if(a instanceof +c.Builder.Message){var v={},q;for(q in a)a.hasOwnProperty(q)&&(v[q]=a[q]);a=v}return new this.resolvedType.clazz(a)}throw Error("[INTERNAL] Illegal value for "+this.toString(!0)+": "+a+" (undefined type "+this.type+")");};f.calculateLength=function(a,g){if(null===g)return 0;var b;switch(this.type){case c.TYPES.int32:return 0>g?e.calculateVarint64(g):e.calculateVarint32(g);case c.TYPES.uint32:return e.calculateVarint32(g);case c.TYPES.sint32:return e.calculateVarint32(e.zigZagEncode32(g));case c.TYPES.fixed32:case c.TYPES.sfixed32:case c.TYPES["float"]:return 4; +case c.TYPES.int64:case c.TYPES.uint64:return e.calculateVarint64(g);case c.TYPES.sint64:return e.calculateVarint64(e.zigZagEncode64(g));case c.TYPES.fixed64:case c.TYPES.sfixed64:return 8;case c.TYPES.bool:return 1;case c.TYPES["enum"]:return e.calculateVarint32(g);case c.TYPES["double"]:return 8;case c.TYPES.string:return b=e.calculateUTF8Bytes(g),e.calculateVarint32(b)+b;case c.TYPES.bytes:if(0>g.remaining())throw Error("Illegal value for "+this.toString(!0)+": "+g.remaining()+" bytes remaining"); +return e.calculateVarint32(g.remaining())+g.remaining();case c.TYPES.message:return b=this.resolvedType.calculate(g),e.calculateVarint32(b)+b;case c.TYPES.group:return b=this.resolvedType.calculate(g),b+e.calculateVarint32(a<<3|c.WIRE_TYPES.ENDGROUP)}throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+g+" (unknown type)");};f.encodeValue=function(a,g,b){if(null===g)return b;switch(this.type){case c.TYPES.int32:0>g?b.writeVarint64(g):b.writeVarint32(g);break;case c.TYPES.uint32:b.writeVarint32(g); +break;case c.TYPES.sint32:b.writeVarint32ZigZag(g);break;case c.TYPES.fixed32:b.writeUint32(g);break;case c.TYPES.sfixed32:b.writeInt32(g);break;case c.TYPES.int64:case c.TYPES.uint64:b.writeVarint64(g);break;case c.TYPES.sint64:b.writeVarint64ZigZag(g);break;case c.TYPES.fixed64:b.writeUint64(g);break;case c.TYPES.sfixed64:b.writeInt64(g);break;case c.TYPES.bool:"string"===typeof g?b.writeVarint32("false"===g.toLowerCase()?0:!!g):b.writeVarint32(g?1:0);break;case c.TYPES["enum"]:b.writeVarint32(g); +break;case c.TYPES["float"]:b.writeFloat32(g);break;case c.TYPES["double"]:b.writeFloat64(g);break;case c.TYPES.string:b.writeVString(g);break;case c.TYPES.bytes:if(0>g.remaining())throw Error("Illegal value for "+this.toString(!0)+": "+g.remaining()+" bytes remaining");a=g.offset;b.writeVarint32(g.remaining());b.append(g);g.offset=a;break;case c.TYPES.message:a=(new e).LE();this.resolvedType.encode(g,a);b.writeVarint32(a.offset);b.append(a.flip());break;case c.TYPES.group:this.resolvedType.encode(g, +b);b.writeVarint32(a<<3|c.WIRE_TYPES.ENDGROUP);break;default:throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+g+" (unknown type)");}return b};f.decode=function(a,b,e){if(b!=this.type.wireType)throw Error("Unexpected wire type for element");switch(this.type){case c.TYPES.int32:return a.readVarint32()|0;case c.TYPES.uint32:return a.readVarint32()>>>0;case c.TYPES.sint32:return a.readVarint32ZigZag()|0;case c.TYPES.fixed32:return a.readUint32()>>>0;case c.TYPES.sfixed32:return a.readInt32()| +0;case c.TYPES.int64:return a.readVarint64();case c.TYPES.uint64:return a.readVarint64().toUnsigned();case c.TYPES.sint64:return a.readVarint64ZigZag();case c.TYPES.fixed64:return a.readUint64();case c.TYPES.sfixed64:return a.readInt64();case c.TYPES.bool:return!!a.readVarint32();case c.TYPES["enum"]:return a.readVarint32();case c.TYPES["float"]:return a.readFloat();case c.TYPES["double"]:return a.readDouble();case c.TYPES.string:return a.readVString();case c.TYPES.bytes:e=a.readVarint32();if(a.remaining()< +e)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+e+" required but got only "+a.remaining());b=a.clone();b.limit=b.offset+e;a.offset+=e;return b;case c.TYPES.message:return e=a.readVarint32(),this.resolvedType.decode(a,e);case c.TYPES.group:return this.resolvedType.decode(a,-1,e)}throw Error("[INTERNAL] Illegal decode type");};f.valueFromString=function(a){if(!this.isMapKey)throw Error("valueFromString() called on non-map-key element");switch(this.type){case c.TYPES.int32:case c.TYPES.sint32:case c.TYPES.sfixed32:case c.TYPES.uint32:case c.TYPES.fixed32:return this.verifyValue(parseInt(a)); +case c.TYPES.int64:case c.TYPES.sint64:case c.TYPES.sfixed64:case c.TYPES.uint64:case c.TYPES.fixed64:return this.verifyValue(a);case c.TYPES.bool:return"true"===a;case c.TYPES.string:return this.verifyValue(a);case c.TYPES.bytes:return e.fromBinary(a)}};f.valueToString=function(a){if(!this.isMapKey)throw Error("valueToString() called on non-map-key element");return this.type===c.TYPES.bytes?a.toString("binary"):a.toString()};r.Element=m;var u=function(a,c,e,d,q,f){b.call(this,a,c,e,d,f);this.className= +"Message";this.extensions=void 0;this.clazz=null;this.isGroup=!!q;this._fieldsByName=this._fieldsById=this._fields=null},f=u.prototype=Object.create(b.prototype);f.build=function(a){if(this.clazz&&!a)return this.clazz;a=function(a,c){function b(c,g,f,d){if(null===c||"object"!==typeof c){if(d&&d instanceof a.Reflect.Enum){var h=a.Reflect.Enum.getName(d.object,c);if(null!==h)return h}return c}if(e.isByteBuffer(c))return g?c.toBase64():c.toBuffer();if(a.Long.isLong(c))return f?c.toString():a.Long.fromValue(c); +var n;if(Array.isArray(c))return n=[],c.forEach(function(a,c){n[c]=b(a,g,f,d)}),n;n={};if(c instanceof a.Map){for(var h=c.entries(),m=h.next();!m.done;m=h.next())n[c.keyElem.valueToString(m.value[0])]=b(m.value[1],g,f,c.valueElem.resolvedType);return n}var h=c.$type,m=void 0,q;for(q in c)c.hasOwnProperty(q)&&(h&&(m=h.getChild(q))?n[q]=b(c[q],g,f,m.resolvedType):n[q]=b(c[q],g,f));return n}var g=c.getChildren(a.Reflect.Message.Field),d=c.getChildren(a.Reflect.Message.OneOf),f=function(b,h){a.Builder.Message.call(this); +for(var n=0,m=d.length;na.remaining())return null;var g=a.offset, +f=a.readVarint32();if(a.remaining()>>3;if(h===c.WIRE_TYPES.ENDGROUP){if(m!==f)throw Error("Illegal group end indicator for "+ +this.toString(!0)+": "+m+" ("+(f?f+" expected":"not a group")+")");break}if(d=this._fieldsById[m])d.repeated&&!d.options.packed?e[d.name].push(d.decode(h,a)):d.map?(h=d.decode(h,a),e[d.name].set(h[0],h[1])):(e[d.name]=d.decode(h,a),d.oneof&&(h=e[d.oneof.name],null!==h&&h!==d.name&&(e[h]=null),e[d.oneof.name]=d.name));else switch(h){case c.WIRE_TYPES.VARINT:a.readVarint32();break;case c.WIRE_TYPES.BITS32:a.offset+=4;break;case c.WIRE_TYPES.BITS64:a.offset+=8;break;case c.WIRE_TYPES.LDELIM:d=a.readVarint32(); +a.offset+=d;break;case c.WIRE_TYPES.STARTGROUP:for(;z(m,a););break;default:throw Error("Illegal wire type for unknown field "+m+" in "+this.toString(!0)+"#decode: "+h);}}a=0;for(b=this._fields.length;a>>=3,1===b)g=this.keyElement.decode(d,a,b);else if(2===b)f= +this.element.decode(d,a,b);else throw Error("Unexpected tag in map field key/value submessage");return[g,f]}return this.element.decode(b,a,this.id)};r.Message.Field=p;f=function(a,b,c,f,d,e,m){p.call(this,a,b,c,null,f,d,e,m)};f.prototype=Object.create(p.prototype);r.Message.ExtensionField=f;r.Message.OneOf=function(a,b,c){k.call(this,a,b,c);this.fields=[]};var x=function(a,c,f,d,e){b.call(this,a,c,f,d,e);this.className="Enum";this.object=null};x.getName=function(a,b){for(var c=Object.keys(a),f=0, +g;f=a[0]&&b.id<=a[1]&&(f=!0)});if(!f)throw Error("illegal extended field id in "+l.name+": "+b.id+" (not within valid ranges)");}var d=b.name;this.options.convertFieldsToCamelCase&&(d=c.Util.toCamelCase(d));var d=new e.Message.ExtensionField(this,l,b.rule,b.type,this.ptr.fqn()+"."+d,b.id,b.options), +a=new e.Extension(this,this.ptr,b.name,d);d.extension=a;this.ptr.addChild(a);l.addChild(d)},this);else{if(!/\.?google\.protobuf\./.test(f.ref))throw Error("extended message "+f.ref+" is not defined");}else throw Error("not a valid definition: "+JSON.stringify(f));l=f=null}b=null;this.ptr=this.ptr.parent}this.resolved=!1;this.result=null;return this};l["import"]=function(b,d){var f="/";if("string"===typeof d){c.Util.IS_NODE&&(d=require("path").resolve(d));if(!0===this.files[d])return this.reset(); +this.files[d]=!0}else if("object"===typeof d){var e=d.root;c.Util.IS_NODE&&(e=require("path").resolve(e));if(0<=e.indexOf("\\")||0<=d.file.indexOf("\\"))f="\\";e=c.Util.IS_NODE?require("path").join(e,d.file):e+f+d.file;if(!0===this.files[e])return this.reset();this.files[e]=!0}if(b.imports&&0= 0 || filename.file.indexOf("\\") >= 0) delim = '\\'; - var fname = root + delim + filename.file; + var fname; + if (ProtoBuf.Util.IS_NODE) + fname = require("path")['join'](root, filename.file); + else + fname = root + delim + filename.file; if (this.files[fname] === true) return this.reset(); this.files[fname] = true; @@ -4703,7 +4707,10 @@ var importFilename = json['imports'][i]; if (importFilename === "google/protobuf/descriptor.proto") continue; // Not needed and therefore not used - importFilename = importRoot + delim + importFilename; + if (ProtoBuf.Util.IS_NODE) + importFilename = require("path")['join'](importRoot, importFilename); + else + importFilename = importRoot + delim + importFilename; if (this.files[importFilename] === true) continue; // Already imported if (/\.proto$/i.test(importFilename) && !ProtoBuf.DotProto) // If this is a light build diff --git a/dist/protobuf.min.js b/dist/protobuf.min.js index 3b94e8656..3369c1068 100644 --- a/dist/protobuf.min.js +++ b/dist/protobuf.min.js @@ -3,108 +3,114 @@ Released under the Apache License, Version 2.0 see: https://github.com/dcodeIO/protobuf.js for details */ -(function(g,u){"function"===typeof define&&define.amd?define(["bytebuffer"],u):"function"===typeof require&&"object"===typeof module&&module&&module.exports?module.exports=u(require("bytebuffer"),!0):(g.dcodeIO=g.dcodeIO||{}).ProtoBuf=u(g.dcodeIO.ByteBuffer)})(this,function(g,u){var d={};d.ByteBuffer=g;d.Long=g.Long||null;d.VERSION="5.0.1";d.WIRE_TYPES={};d.WIRE_TYPES.VARINT=0;d.WIRE_TYPES.BITS64=1;d.WIRE_TYPES.LDELIM=2;d.WIRE_TYPES.STARTGROUP=3;d.WIRE_TYPES.ENDGROUP=4;d.WIRE_TYPES.BITS32=5;d.PACKABLE_WIRE_TYPES= +var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,p,d){if(d.get||d.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[p]=d.value)};$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; +$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(e){return $jscomp.SYMBOL_PREFIX+(e||"")+$jscomp.symbolCounter_++}; +$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var e=$jscomp.global.Symbol.iterator;e||(e=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[e]&&$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(e){var p=0;return $jscomp.iteratorPrototype(function(){return p]/g,RULE:/^(?:required|optional|repeated|map)$/, +function(){return new ActiveXObject("Microsoft.XMLHTTP")}],d=null,e=0;e]/g,RULE:/^(?:required|optional|repeated|map)$/, TYPE:/^(?:double|float|int32|uint32|sint32|int64|uint64|sint64|fixed32|sfixed32|fixed64|sfixed64|bool|string|bytes)$/,NAME:/^[a-zA-Z_][a-zA-Z_0-9]*$/,TYPEDEF:/^[a-zA-Z][a-zA-Z_0-9]*$/,TYPEREF:/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)+$/,FQTYPEREF:/^(?:\.[a-zA-Z][a-zA-Z_0-9]*)+$/,NUMBER:/^-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+|([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?)|inf|nan)$/,NUMBER_DEC:/^(?:[1-9][0-9]*|0)$/,NUMBER_HEX:/^0[xX][0-9a-fA-F]+$/,NUMBER_OCT:/^0[0-7]+$/,NUMBER_FLT:/^([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?|inf|nan)$/, -BOOL:/^(?:true|false)$/i,ID:/^(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,NEGID:/^\-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,WHITESPACE:/\s/,STRING:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")|(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,STRING_DQ:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,STRING_SQ:/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g};d.DotProto=function(b,d){function g(b,c){var a=-1,k=1;"-"==b.charAt(0)&&(k=-1,b=b.substring(1));if(d.NUMBER_DEC.test(b))a=parseInt(b);else if(d.NUMBER_HEX.test(b))a=parseInt(b.substring(2),16); -else if(d.NUMBER_OCT.test(b))a=parseInt(b.substring(1),8);else throw Error("illegal id value: "+(0>k?"-":"")+b);a=k*a|0;if(!c&&0>a)throw Error("illegal id value: "+(0>k?"-":"")+b);return a}function q(b){var c=1;"-"==b.charAt(0)&&(c=-1,b=b.substring(1));if(d.NUMBER_DEC.test(b))return c*parseInt(b,10);if(d.NUMBER_HEX.test(b))return c*parseInt(b.substring(2),16);if(d.NUMBER_OCT.test(b))return c*parseInt(b.substring(1),8);if("inf"===b)return Infinity*c;if("nan"===b)return NaN;if(d.NUMBER_FLT.test(b))return c* -parseFloat(b);throw Error("illegal number value: "+(0>c?"-":"")+b);}function n(b,c,d){"undefined"===typeof b[c]?b[c]=d:(Array.isArray(b[c])||(b[c]=[b[c]]),b[c].push(d))}var h={},a=function(b){this.source=b+"";this.index=0;this.line=1;this.stack=[];this._stringOpen=null},e=a.prototype;e._readString=function(){var b='"'===this._stringOpen?d.STRING_DQ:d.STRING_SQ;b.lastIndex=this.index-1;var c=b.exec(this.source);if(!c)throw Error("unterminated string");this.index=b.lastIndex;this.stack.push(this._stringOpen); -this._stringOpen=null;return c[1]};e.next=function(){if(0=this.source.length)return null;if(null!==this._stringOpen)return this._readString();var b,c;do{for(b=!1;d.WHITESPACE.test(c=this.source.charAt(this.index));)if("\n"===c&&++this.line,++this.index===this.source.length)return null;if("/"===this.source.charAt(this.index))if(++this.index,"/"===this.source.charAt(this.index)){for(;"\n"!==this.source.charAt(++this.index);)if(this.index==this.source.length)return null; -++this.index;++this.line;b=!0}else if("*"===(c=this.source.charAt(this.index))){do{"\n"===c&&++this.line;if(++this.index===this.source.length)return null;b=c;c=this.source.charAt(this.index)}while("*"!==b||"/"!==c);++this.index;b=!0}else return"/"}while(b);if(this.index===this.source.length)return null;c=this.index;d.DELIM.lastIndex=0;if(!d.DELIM.test(this.source.charAt(c++)))for(;c");c=this.tn.next(); -if(!d.NAME.test(c))throw Error("illegal message field name: "+c);e.name=c;this.tn.skip("=");e.id=g(this.tn.next());c=this.tn.peek();"["===c&&this._parseFieldOptions(e);this.tn.skip(";")}else if(a="undefined"!==typeof a?a:this.tn.next(),"group"===a){c=this._parseMessage(b,e);if(!/^[A-Z]/.test(c.name))throw Error("illegal group name: "+c.name);e.type=c.name;e.name=c.name.toLowerCase();this.tn.omit(";")}else{if(!d.TYPE.test(a)&&!d.TYPEREF.test(a))throw Error("illegal message field type: "+a);e.type= -a;c=this.tn.next();if(!d.NAME.test(c))throw Error("illegal message field name: "+c);e.name=c;this.tn.skip("=");e.id=g(this.tn.next());c=this.tn.peek();"["===c&&this._parseFieldOptions(e);this.tn.skip(";")}b.fields.push(e);return e};e._parseMessageOneOf=function(b){var c=this.tn.next();if(!d.NAME.test(c))throw Error("illegal oneof name: "+c);var a=c,e=[];for(this.tn.skip("{");"}"!==(c=this.tn.next());)c=this._parseMessageField(b,"optional",c),c.oneof=a,e.push(c.id);this.tn.omit(";");b.oneofs[a]=e}; -e._parseFieldOptions=function(b){this.tn.skip("[");for(var c=!0;"]"!==this.tn.peek();)c||this.tn.skip(","),this._parseOption(b,!0),c=!1;this.tn.next()};e._parseEnum=function(b){var c={name:"",values:[],options:{}},a=this.tn.next();if(!d.NAME.test(a))throw Error("illegal name: "+a);c.name=a;for(this.tn.skip("{");"}"!==(a=this.tn.next());)if("option"===a)this._parseOption(c);else{if(!d.NAME.test(a))throw Error("illegal name: "+a);this.tn.skip("=");var e={name:a,id:g(this.tn.next(),!0)},a=this.tn.peek(); -"["===a&&this._parseFieldOptions({options:{}});this.tn.skip(";");c.values.push(e)}this.tn.omit(";");b.enums.push(c)};e._parseExtensionRanges=function(){var a=[],c,d;do{for(d=[];;){c=this.tn.next();switch(c){case "min":c=b.ID_MIN;break;case "max":c=b.ID_MAX;break;default:c=q(c)}d.push(c);if(2===d.length)break;if("to"!==this.tn.peek()){d.push(c);break}this.tn.next()}a.push(d)}while(this.tn.omit(","));this.tn.skip(";");return a};e._parseExtend=function(b){var a=this.tn.next();if(!d.TYPEREF.test(a))throw Error("illegal extend reference: "+ -a);var e={ref:a,fields:[]};for(this.tn.skip("{");"}"!==(a=this.tn.next());)if(d.RULE.test(a))this._parseMessageField(e,a);else if(d.TYPEREF.test(a)){if(!this.proto3)throw Error("illegal field rule: "+a);this._parseMessageField(e,"optional",a)}else throw Error("illegal extend token: "+a);this.tn.omit(";");b.messages.push(e);return e};e.toString=function(){return"Parser at line "+this.tn.line};h.Parser=l;return h}(d,d.Lang);d.Reflect=function(b){function d(f,m){if(f&&"number"===typeof f.low&&"number"=== -typeof f.high&&"boolean"===typeof f.unsigned&&f.low===f.low&&f.high===f.high)return new b.Long(f.low,f.high,"undefined"===typeof m?f.unsigned:m);if("string"===typeof f)return b.Long.fromString(f,m||!1,10);if("number"===typeof f)return b.Long.fromNumber(f,m||!1);throw Error("not convertible to Long");}function p(f,m){var a=m.readVarint32(),c=a&7,a=a>>>3;switch(c){case b.WIRE_TYPES.VARINT:do a=m.readUint8();while(128===(a&128));break;case b.WIRE_TYPES.BITS64:m.offset+=8;break;case b.WIRE_TYPES.LDELIM:a= -m.readVarint32();m.offset+=a;break;case b.WIRE_TYPES.STARTGROUP:p(a,m);break;case b.WIRE_TYPES.ENDGROUP:if(a===f)return!1;throw Error("Illegal GROUPEND after unknown group: "+a+" ("+f+" expected)");case b.WIRE_TYPES.BITS32:m.offset+=4;break;default:throw Error("Illegal wire type in unknown group "+f+": "+c);}return!0}var q={},n=function(f,b,a){this.builder=f;this.parent=b;this.name=a},h=n.prototype;h.fqn=function(){var f=this.name,b=this;do{b=b.parent;if(null==b)break;f=b.name+"."+f}while(1);return f}; -h.toString=function(f){return(f?this.className+" ":"")+this.fqn()};h.build=function(){throw Error(this.toString(!0)+" cannot be built directly");};q.T=n;var a=function(f,b,a,c,d){n.call(this,f,b,a);this.className="Namespace";this.children=[];this.options=c||{};this.syntax=d||"proto2"},h=a.prototype=Object.create(n.prototype);h.getChildren=function(b){b=b||null;if(null==b)return this.children.slice();for(var a=[],c=0,d=this.children.length;cb.MAP_KEY_TYPES.indexOf(f))throw Error("Invalid map key type: "+f.name);},l=e.prototype;e.defaultFieldValue=function(f){"string"===typeof f&&(f=b.TYPES[f]);if("undefined"===typeof f.defaultValue)throw Error("default value for type "+f.name+" is not supported");return f==b.TYPES.bytes?new g(0):f.defaultValue}; -l.toString=function(){return(this.name||"")+(this.isMapKey?"map":"value")+" element"};l.verifyValue=function(f){function a(b,f){throw Error("Illegal value for "+c.toString(!0)+" of type "+c.type.name+": "+b+" ("+f+")");}var c=this;switch(this.type){case b.TYPES.int32:case b.TYPES.sint32:case b.TYPES.sfixed32:return("number"!==typeof f||f===f&&0!==f%1)&&a(typeof f,"not an integer"),4294967295f?f>>>0:f;case b.TYPES.int64:case b.TYPES.sint64:case b.TYPES.sfixed64:if(b.Long)try{return d(f,!1)}catch(e){a(typeof f,e.message)}else a(typeof f,"requires Long.js");case b.TYPES.uint64:case b.TYPES.fixed64:if(b.Long)try{return d(f,!0)}catch(k){a(typeof f,k.message)}else a(typeof f,"requires Long.js");case b.TYPES.bool:return"boolean"!==typeof f&&a(typeof f,"not a boolean"),f;case b.TYPES["float"]:case b.TYPES["double"]:return"number"!==typeof f&&a(typeof f,"not a number"),f;case b.TYPES.string:return"string"=== -typeof f||f&&f instanceof String||a(typeof f,"not a string"),""+f;case b.TYPES.bytes:return g.isByteBuffer(f)?f:g.wrap(f,"base64");case b.TYPES["enum"]:for(var l=this.resolvedType.getChildren(b.Reflect.Enum.Value),h=0;hf)&&a(typeof f,"not in range for uint32"),f;a(f,"not a valid enum value");case b.TYPES.group:case b.TYPES.message:f&& -"object"===typeof f||a(typeof f,"object expected");if(f instanceof this.resolvedType.clazz)return f;if(f instanceof b.Builder.Message){var l={},h;for(h in f)f.hasOwnProperty(h)&&(l[h]=f[h]);f=l}return new this.resolvedType.clazz(f)}throw Error("[INTERNAL] Illegal value for "+this.toString(!0)+": "+f+" (undefined type "+this.type+")");};l.calculateLength=function(f,a){if(null===a)return 0;var c;switch(this.type){case b.TYPES.int32:return 0>a?g.calculateVarint64(a):g.calculateVarint32(a);case b.TYPES.uint32:return g.calculateVarint32(a); -case b.TYPES.sint32:return g.calculateVarint32(g.zigZagEncode32(a));case b.TYPES.fixed32:case b.TYPES.sfixed32:case b.TYPES["float"]:return 4;case b.TYPES.int64:case b.TYPES.uint64:return g.calculateVarint64(a);case b.TYPES.sint64:return g.calculateVarint64(g.zigZagEncode64(a));case b.TYPES.fixed64:case b.TYPES.sfixed64:return 8;case b.TYPES.bool:return 1;case b.TYPES["enum"]:return g.calculateVarint32(a);case b.TYPES["double"]:return 8;case b.TYPES.string:return c=g.calculateUTF8Bytes(a),g.calculateVarint32(c)+ -c;case b.TYPES.bytes:if(0>a.remaining())throw Error("Illegal value for "+this.toString(!0)+": "+a.remaining()+" bytes remaining");return g.calculateVarint32(a.remaining())+a.remaining();case b.TYPES.message:return c=this.resolvedType.calculate(a),g.calculateVarint32(c)+c;case b.TYPES.group:return c=this.resolvedType.calculate(a),c+g.calculateVarint32(f<<3|b.WIRE_TYPES.ENDGROUP)}throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+a+" (unknown type)");};l.encodeValue=function(f, +BOOL:/^(?:true|false)$/i,ID:/^(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,NEGID:/^\-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,WHITESPACE:/\s/,STRING:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")|(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,STRING_DQ:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,STRING_SQ:/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g};d.DotProto=function(b,d){function e(b,c){var l,a=1;"-"==b.charAt(0)&&(a=-1,b=b.substring(1));if(d.NUMBER_DEC.test(b))l=parseInt(b);else if(d.NUMBER_HEX.test(b))l=parseInt(b.substring(2),16);else if(d.NUMBER_OCT.test(b))l= +parseInt(b.substring(1),8);else throw Error("illegal id value: "+(0>a?"-":"")+b);l=a*l|0;if(!c&&0>l)throw Error("illegal id value: "+(0>a?"-":"")+b);return l}function t(b){var c=1;"-"==b.charAt(0)&&(c=-1,b=b.substring(1));if(d.NUMBER_DEC.test(b))return c*parseInt(b,10);if(d.NUMBER_HEX.test(b))return c*parseInt(b.substring(2),16);if(d.NUMBER_OCT.test(b))return c*parseInt(b.substring(1),8);if("inf"===b)return Infinity*c;if("nan"===b)return NaN;if(d.NUMBER_FLT.test(b))return c*parseFloat(b);throw Error("illegal number value: "+ +(0>c?"-":"")+b);}function m(b,c,d){"undefined"===typeof b[c]?b[c]=d:(Array.isArray(b[c])||(b[c]=[b[c]]),b[c].push(d))}var n={},a=function(b){this.source=b+"";this.index=0;this.line=1;this.stack=[];this._stringOpen=null},g=a.prototype;g._readString=function(){var b='"'===this._stringOpen?d.STRING_DQ:d.STRING_SQ;b.lastIndex=this.index-1;var c=b.exec(this.source);if(!c)throw Error("unterminated string");this.index=b.lastIndex;this.stack.push(this._stringOpen);this._stringOpen=null;return c[1]};g.next= +function(){if(0=this.source.length)return null;if(null!==this._stringOpen)return this._readString();var b,c;do{for(b=!1;d.WHITESPACE.test(c=this.source.charAt(this.index));)if("\n"===c&&++this.line,++this.index===this.source.length)return null;if("/"===this.source.charAt(this.index))if(++this.index,"/"===this.source.charAt(this.index)){for(;"\n"!==this.source.charAt(++this.index);)if(this.index==this.source.length)return null;++this.index; +++this.line;b=!0}else if("*"===(c=this.source.charAt(this.index))){do{"\n"===c&&++this.line;if(++this.index===this.source.length)return null;b=c;c=this.source.charAt(this.index)}while("*"!==b||"/"!==c);++this.index;b=!0}else return"/"}while(b);if(this.index===this.source.length)return null;c=this.index;d.DELIM.lastIndex=0;if(!d.DELIM.test(this.source.charAt(c++)))for(;c");c=this.tn.next(); +if(!d.NAME.test(c))throw Error("illegal message field name: "+c);g.name=c;this.tn.skip("=");g.id=e(this.tn.next());c=this.tn.peek();"["===c&&this._parseFieldOptions(g);this.tn.skip(";")}else if(a="undefined"!==typeof a?a:this.tn.next(),"group"===a){c=this._parseMessage(b,g);if(!/^[A-Z]/.test(c.name))throw Error("illegal group name: "+c.name);g.type=c.name;g.name=c.name.toLowerCase();this.tn.omit(";")}else{if(!d.TYPE.test(a)&&!d.TYPEREF.test(a))throw Error("illegal message field type: "+a);g.type= +a;c=this.tn.next();if(!d.NAME.test(c))throw Error("illegal message field name: "+c);g.name=c;this.tn.skip("=");g.id=e(this.tn.next());c=this.tn.peek();"["===c&&this._parseFieldOptions(g);this.tn.skip(";")}b.fields.push(g);return g};g._parseMessageOneOf=function(b){var c=this.tn.next();if(!d.NAME.test(c))throw Error("illegal oneof name: "+c);var a=c,g=[];for(this.tn.skip("{");"}"!==(c=this.tn.next());)c=this._parseMessageField(b,"optional",c),c.oneof=a,g.push(c.id);this.tn.omit(";");b.oneofs[a]=g}; +g._parseFieldOptions=function(b){this.tn.skip("[");for(var c=!0;"]"!==this.tn.peek();)c||this.tn.skip(","),this._parseOption(b,!0),c=!1;this.tn.next()};g._parseEnum=function(b){var c={name:"",values:[],options:{}},a=this.tn.next();if(!d.NAME.test(a))throw Error("illegal name: "+a);c.name=a;for(this.tn.skip("{");"}"!==(a=this.tn.next());)if("option"===a)this._parseOption(c);else{if(!d.NAME.test(a))throw Error("illegal name: "+a);this.tn.skip("=");var g={name:a,id:e(this.tn.next(),!0)},a=this.tn.peek(); +"["===a&&this._parseFieldOptions({options:{}});this.tn.skip(";");c.values.push(g)}this.tn.omit(";");b.enums.push(c)};g._parseExtensionRanges=function(){var a=[],c,d;do{for(d=[];;){c=this.tn.next();switch(c){case "min":c=b.ID_MIN;break;case "max":c=b.ID_MAX;break;default:c=t(c)}d.push(c);if(2===d.length)break;if("to"!==this.tn.peek()){d.push(c);break}this.tn.next()}a.push(d)}while(this.tn.omit(","));this.tn.skip(";");return a};g._parseExtend=function(b){var a=this.tn.next();if(!d.TYPEREF.test(a))throw Error("illegal extend reference: "+ +a);var g={ref:a,fields:[]};for(this.tn.skip("{");"}"!==(a=this.tn.next());)if(d.RULE.test(a))this._parseMessageField(g,a);else if(d.TYPEREF.test(a)){if(!this.proto3)throw Error("illegal field rule: "+a);this._parseMessageField(g,"optional",a)}else throw Error("illegal extend token: "+a);this.tn.omit(";");b.messages.push(g);return g};g.toString=function(){return"Parser at line "+this.tn.line};n.Parser=h;return n}(d,d.Lang);d.Reflect=function(b){function d(f,k){if(f&&"number"===typeof f.low&&"number"=== +typeof f.high&&"boolean"===typeof f.unsigned&&f.low===f.low&&f.high===f.high)return new b.Long(f.low,f.high,"undefined"===typeof k?f.unsigned:k);if("string"===typeof f)return b.Long.fromString(f,k||!1,10);if("number"===typeof f)return b.Long.fromNumber(f,k||!1);throw Error("not convertible to Long");}function y(f,k){var a=k.readVarint32(),c=a&7,a=a>>>3;switch(c){case b.WIRE_TYPES.VARINT:do a=k.readUint8();while(128===(a&128));break;case b.WIRE_TYPES.BITS64:k.offset+=8;break;case b.WIRE_TYPES.LDELIM:a= +k.readVarint32();k.offset+=a;break;case b.WIRE_TYPES.STARTGROUP:y(a,k);break;case b.WIRE_TYPES.ENDGROUP:if(a===f)return!1;throw Error("Illegal GROUPEND after unknown group: "+a+" ("+f+" expected)");case b.WIRE_TYPES.BITS32:k.offset+=4;break;default:throw Error("Illegal wire type in unknown group "+f+": "+c);}return!0}var r={},m=function(b,k,a){this.builder=b;this.parent=k;this.name=a},n=m.prototype;n.fqn=function(){var b=this.name,k=this;do{k=k.parent;if(null==k)break;b=k.name+"."+b}while(1);return b}; +n.toString=function(b){return(b?this.className+" ":"")+this.fqn()};n.build=function(){throw Error(this.toString(!0)+" cannot be built directly");};r.T=m;var a=function(b,k,a,c,d){m.call(this,b,k,a);this.className="Namespace";this.children=[];this.options=c||{};this.syntax=d||"proto2"},n=a.prototype=Object.create(m.prototype);n.getChildren=function(b){b=b||null;if(null==b)return this.children.slice();for(var f=[],a=0,c=this.children.length;ab.MAP_KEY_TYPES.indexOf(f))throw Error("Invalid map key type: "+f.name);},h=g.prototype;g.defaultFieldValue=function(f){"string"===typeof f&&(f=b.TYPES[f]);if("undefined"===typeof f.defaultValue)throw Error("default value for type "+f.name+" is not supported");return f==b.TYPES.bytes?new e(0):f.defaultValue}; +h.toString=function(){return(this.name||"")+(this.isMapKey?"map":"value")+" element"};h.verifyValue=function(f){function a(b,f){throw Error("Illegal value for "+c.toString(!0)+" of type "+c.type.name+": "+b+" ("+f+")");}var c=this;switch(this.type){case b.TYPES.int32:case b.TYPES.sint32:case b.TYPES.sfixed32:return("number"!==typeof f||f===f&&0!==f%1)&&a(typeof f,"not an integer"),4294967295f?f>>>0:f;case b.TYPES.int64:case b.TYPES.sint64:case b.TYPES.sfixed64:if(b.Long)try{return d(f,!1)}catch(x){a(typeof f,x.message)}else a(typeof f,"requires Long.js");case b.TYPES.uint64:case b.TYPES.fixed64:if(b.Long)try{return d(f,!0)}catch(x){a(typeof f,x.message)}else a(typeof f,"requires Long.js");case b.TYPES.bool:return"boolean"!==typeof f&&a(typeof f,"not a boolean"),f;case b.TYPES["float"]:case b.TYPES["double"]:return"number"!==typeof f&&a(typeof f,"not a number"),f;case b.TYPES.string:return"string"=== +typeof f||f&&f instanceof String||a(typeof f,"not a string"),""+f;case b.TYPES.bytes:return e.isByteBuffer(f)?f:e.wrap(f,"base64");case b.TYPES["enum"]:for(var g=this.resolvedType.getChildren(b.Reflect.Enum.Value),h=0;hf)&&a(typeof f,"not in range for uint32"),f;a(f,"not a valid enum value");case b.TYPES.group:case b.TYPES.message:f&& +"object"===typeof f||a(typeof f,"object expected");if(f instanceof this.resolvedType.clazz)return f;if(f instanceof b.Builder.Message){var g={},h;for(h in f)f.hasOwnProperty(h)&&(g[h]=f[h]);f=g}return new this.resolvedType.clazz(f)}throw Error("[INTERNAL] Illegal value for "+this.toString(!0)+": "+f+" (undefined type "+this.type+")");};h.calculateLength=function(f,a){if(null===a)return 0;var c;switch(this.type){case b.TYPES.int32:return 0>a?e.calculateVarint64(a):e.calculateVarint32(a);case b.TYPES.uint32:return e.calculateVarint32(a); +case b.TYPES.sint32:return e.calculateVarint32(e.zigZagEncode32(a));case b.TYPES.fixed32:case b.TYPES.sfixed32:case b.TYPES["float"]:return 4;case b.TYPES.int64:case b.TYPES.uint64:return e.calculateVarint64(a);case b.TYPES.sint64:return e.calculateVarint64(e.zigZagEncode64(a));case b.TYPES.fixed64:case b.TYPES.sfixed64:return 8;case b.TYPES.bool:return 1;case b.TYPES["enum"]:return e.calculateVarint32(a);case b.TYPES["double"]:return 8;case b.TYPES.string:return c=e.calculateUTF8Bytes(a),e.calculateVarint32(c)+ +c;case b.TYPES.bytes:if(0>a.remaining())throw Error("Illegal value for "+this.toString(!0)+": "+a.remaining()+" bytes remaining");return e.calculateVarint32(a.remaining())+a.remaining();case b.TYPES.message:return c=this.resolvedType.calculate(a),e.calculateVarint32(c)+c;case b.TYPES.group:return c=this.resolvedType.calculate(a),c+e.calculateVarint32(f<<3|b.WIRE_TYPES.ENDGROUP)}throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+a+" (unknown type)");};h.encodeValue=function(f, a,c){if(null===a)return c;switch(this.type){case b.TYPES.int32:0>a?c.writeVarint64(a):c.writeVarint32(a);break;case b.TYPES.uint32:c.writeVarint32(a);break;case b.TYPES.sint32:c.writeVarint32ZigZag(a);break;case b.TYPES.fixed32:c.writeUint32(a);break;case b.TYPES.sfixed32:c.writeInt32(a);break;case b.TYPES.int64:case b.TYPES.uint64:c.writeVarint64(a);break;case b.TYPES.sint64:c.writeVarint64ZigZag(a);break;case b.TYPES.fixed64:c.writeUint64(a);break;case b.TYPES.sfixed64:c.writeInt64(a);break;case b.TYPES.bool:"string"=== -typeof a?c.writeVarint32("false"===a.toLowerCase()?0:!!a):c.writeVarint32(a?1:0);break;case b.TYPES["enum"]:c.writeVarint32(a);break;case b.TYPES["float"]:c.writeFloat32(a);break;case b.TYPES["double"]:c.writeFloat64(a);break;case b.TYPES.string:c.writeVString(a);break;case b.TYPES.bytes:if(0>a.remaining())throw Error("Illegal value for "+this.toString(!0)+": "+a.remaining()+" bytes remaining");f=a.offset;c.writeVarint32(a.remaining());c.append(a);a.offset=f;break;case b.TYPES.message:f=(new g).LE(); -this.resolvedType.encode(a,f);c.writeVarint32(f.offset);c.append(f.flip());break;case b.TYPES.group:this.resolvedType.encode(a,c);c.writeVarint32(f<<3|b.WIRE_TYPES.ENDGROUP);break;default:throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+a+" (unknown type)");}return c};l.decode=function(a,c,d){if(c!=this.type.wireType)throw Error("Unexpected wire type for element");switch(this.type){case b.TYPES.int32:return a.readVarint32()|0;case b.TYPES.uint32:return a.readVarint32()>>> +typeof a?c.writeVarint32("false"===a.toLowerCase()?0:!!a):c.writeVarint32(a?1:0);break;case b.TYPES["enum"]:c.writeVarint32(a);break;case b.TYPES["float"]:c.writeFloat32(a);break;case b.TYPES["double"]:c.writeFloat64(a);break;case b.TYPES.string:c.writeVString(a);break;case b.TYPES.bytes:if(0>a.remaining())throw Error("Illegal value for "+this.toString(!0)+": "+a.remaining()+" bytes remaining");f=a.offset;c.writeVarint32(a.remaining());c.append(a);a.offset=f;break;case b.TYPES.message:f=(new e).LE(); +this.resolvedType.encode(a,f);c.writeVarint32(f.offset);c.append(f.flip());break;case b.TYPES.group:this.resolvedType.encode(a,c);c.writeVarint32(f<<3|b.WIRE_TYPES.ENDGROUP);break;default:throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+a+" (unknown type)");}return c};h.decode=function(a,c,d){if(c!=this.type.wireType)throw Error("Unexpected wire type for element");switch(this.type){case b.TYPES.int32:return a.readVarint32()|0;case b.TYPES.uint32:return a.readVarint32()>>> 0;case b.TYPES.sint32:return a.readVarint32ZigZag()|0;case b.TYPES.fixed32:return a.readUint32()>>>0;case b.TYPES.sfixed32:return a.readInt32()|0;case b.TYPES.int64:return a.readVarint64();case b.TYPES.uint64:return a.readVarint64().toUnsigned();case b.TYPES.sint64:return a.readVarint64ZigZag();case b.TYPES.fixed64:return a.readUint64();case b.TYPES.sfixed64:return a.readInt64();case b.TYPES.bool:return!!a.readVarint32();case b.TYPES["enum"]:return a.readVarint32();case b.TYPES["float"]:return a.readFloat(); -case b.TYPES["double"]:return a.readDouble();case b.TYPES.string:return a.readVString();case b.TYPES.bytes:d=a.readVarint32();if(a.remaining()b.remaining())return null;var f=b.offset,e=b.readVarint32();if(b.remaining()>>3;if(h===b.WIRE_TYPES.ENDGROUP){if(s!==e)throw Error("Illegal group end indicator for "+this.toString(!0)+": "+s+" ("+(e?e+" expected":"not a group")+")");break}if(l=this._fieldsById[s])l.repeated&&!l.options.packed?k[l.name].push(l.decode(h, -a)):l.map?(h=l.decode(h,a),k[l.name].set(h[0],h[1])):(k[l.name]=l.decode(h,a),l.oneof&&(h=k[l.oneof.name],null!==h&&h!==l.name&&(k[h]=null),k[l.oneof.name]=l.name));else switch(h){case b.WIRE_TYPES.VARINT:a.readVarint32();break;case b.WIRE_TYPES.BITS32:a.offset+=4;break;case b.WIRE_TYPES.BITS64:a.offset+=8;break;case b.WIRE_TYPES.LDELIM:l=a.readVarint32();a.offset+=l;break;case b.WIRE_TYPES.STARTGROUP:for(;p(s,a););break;default:throw Error("Illegal wire type for unknown field "+s+" in "+this.toString(!0)+ -"#decode: "+h);}}a=0;for(c=this._fields.length;ab.remaining())return null;var c=b.offset,d=b.readVarint32();if(b.remaining()>>3;if(h===b.WIRE_TYPES.ENDGROUP){if(e!==d)throw Error("Illegal group end indicator for "+this.toString(!0)+": "+e+" ("+(d?d+" expected":"not a group")+")");break}if(k=this._fieldsById[e])k.repeated&&!k.options.packed?g[k.name].push(k.decode(h, +a)):k.map?(h=k.decode(h,a),g[k.name].set(h[0],h[1])):(g[k.name]=k.decode(h,a),k.oneof&&(h=g[k.oneof.name],null!==h&&h!==k.name&&(g[h]=null),g[k.oneof.name]=k.name));else switch(h){case b.WIRE_TYPES.VARINT:a.readVarint32();break;case b.WIRE_TYPES.BITS32:a.offset+=4;break;case b.WIRE_TYPES.BITS64:a.offset+=8;break;case b.WIRE_TYPES.LDELIM:k=a.readVarint32();a.offset+=k;break;case b.WIRE_TYPES.STARTGROUP:for(;y(e,a););break;default:throw Error("Illegal wire type for unknown field "+e+" in "+this.toString(!0)+ +"#decode: "+h);}}a=0;for(c=this._fields.length;a>>=3,1===c)k=this.keyElement.decode(l,a,c);else if(2===c)d=this.element.decode(l,a,c);else throw Error("Unexpected tag in map field key/value submessage"); -return[k,d]}return this.element.decode(c,a,this.id)};q.Message.Field=c;l=function(a,b,e,d,k,l,h){c.call(this,a,b,e,null,d,k,l,h)};l.prototype=Object.create(c.prototype);q.Message.ExtensionField=l;q.Message.OneOf=function(a,b,c){n.call(this,a,b,c);this.fields=[]};var t=function(b,c,e,d,k){a.call(this,b,c,e,d,k);this.className="Enum";this.object=null};t.getName=function(a,b){for(var c=Object.keys(a),e=0,d;e=b[0]&&a.id<=b[1]&&(c=!0)});if(!c)throw Error("illegal extended field id in "+h.name+": "+a.id+" (not within valid ranges)");}var d=a.name;this.options.convertFieldsToCamelCase&&(d=b.Util.toCamelCase(d));var d=new g.Message.ExtensionField(this,h,a.rule,a.type,this.ptr.fqn()+"."+d,a.id,a.options),e=new g.Extension(this,this.ptr,a.name,d);d.extension=e;this.ptr.addChild(e);h.addChild(d)},this);else{if(!/\.?google\.protobuf\./.test(d.ref))throw Error("extended message "+ -d.ref+" is not defined");}else throw Error("not a valid definition: "+JSON.stringify(d));h=d=null}a=null;this.ptr=this.ptr.parent}this.resolved=!1;this.result=null;return this};h["import"]=function(a,d){var h="/";if("string"===typeof d){b.Util.IS_NODE&&(d=require("path").resolve(d));if(!0===this.files[d])return this.reset();this.files[d]=!0}else if("object"===typeof d){var g=d.root;b.Util.IS_NODE&&(g=require("path").resolve(g));if(0<=g.indexOf("\\")||0<=d.file.indexOf("\\"))h="\\";g=g+h+d.file;if(!0=== -this.files[g])return this.reset();this.files[g]=!0}if(a.imports&&0>>=3,1===c)f=this.keyElement.decode(h,a,c);else if(2===c)d=this.element.decode(h,a,c);else throw Error("Unexpected tag in map field key/value submessage"); +return[f,d]}return this.element.decode(c,a,this.id)};r.Message.Field=c;h=function(a,b,d,g,h,e,l){c.call(this,a,b,d,null,g,h,e,l)};h.prototype=Object.create(c.prototype);r.Message.ExtensionField=h;r.Message.OneOf=function(a,b,c){m.call(this,a,b,c);this.fields=[]};var v=function(b,c,d,g,h){a.call(this,b,c,d,g,h);this.className="Enum";this.object=null};v.getName=function(a,b){for(var c=Object.keys(a),d=0,g;d=b[0]&&a.id<=b[1]&&(c=!0)});if(!c)throw Error("illegal extended field id in "+l.name+": "+a.id+" (not within valid ranges)");}var d=a.name;this.options.convertFieldsToCamelCase&&(d=b.Util.toCamelCase(d));var d=new e.Message.ExtensionField(this,l,a.rule,a.type,this.ptr.fqn()+"."+d,a.id,a.options),g=new e.Extension(this,this.ptr,a.name,d);d.extension=g;this.ptr.addChild(g);l.addChild(d)},this);else{if(!/\.?google\.protobuf\./.test(h.ref))throw Error("extended message "+ +h.ref+" is not defined");}else throw Error("not a valid definition: "+JSON.stringify(h));l=h=null}a=null;this.ptr=this.ptr.parent}this.resolved=!1;this.result=null;return this};n["import"]=function(a,d){var g="/";if("string"===typeof d){b.Util.IS_NODE&&(d=require("path").resolve(d));if(!0===this.files[d])return this.reset();this.files[d]=!0}else if("object"===typeof d){var e=d.root;b.Util.IS_NODE&&(e=require("path").resolve(e));if(0<=e.indexOf("\\")||0<=d.file.indexOf("\\"))g="\\";e=b.Util.IS_NODE? +require("path").join(e,d.file):e+g+d.file;if(!0===this.files[e])return this.reset();this.files[e]=!0}if(a.imports&&0Class: Message +
-

- ProtoBuf.Builder. - - Message -

-

Barebone of all runtime messages.

+

+ ProtoBuf.Builder. + + Message +

+ +

Barebone of all runtime messages.

+
+ - -
+

Constructor

+ +

new Message(values, …var_args)

-
-
- -
-

Constructs a new runtime Message.

-
- - - +
+

Constructs a new runtime Message.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -153,10 +159,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -190,25 +206,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be created +

If the message cannot be created

+
@@ -222,20 +239,18 @@
Throws:
+
- - - - - -
+ + + @@ -250,34 +265,41 @@
Throws:

Members

-
+ -
-

(static) $options :Object.<string, *>

+

(static) $options :Object.<string, *>

- -
-
- -
-

Message options.

-
- - -
Type:
-
    -
  • - + + +
    +

    Message options.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, *> -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -311,39 +333,45 @@
Type:
- - -
+ + -
-

(static, non-null) $type :ProtoBuf.Reflect.Message

+

(static, non-null) $type :ProtoBuf.Reflect.Message

- -
-
- -
-

Reflection type.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -377,39 +405,45 @@
Type:
- - -
+ + -
-

$options :Object.<string, *>

+

$options :Object.<string, *>

- -
-
- -
-

Message options.

-
- - -
Type:
-
    -
  • - + + +
    +

    Message options.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, *> -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -443,39 +477,45 @@
Type:
- - -
+ + -
-

(non-null) $type :ProtoBuf.Reflect.Message

+

(non-null) $type :ProtoBuf.Reflect.Message

- -
-
- -
-

Reflection type.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -509,39 +549,41 @@
Type:
- - -
-
+ + +

Methods

-
+ -
-

(static) decode(buffer, lengthopt, encopt) → (non-null) {ProtoBuf.Builder.Message}

-
-
- -
-

Decodes a message from the specified buffer or string.

-
- +

(static) decode(buffer, lengthopt, encopt) → (non-null) {ProtoBuf.Builder.Message}

- + +
+

Decodes a message from the specified buffer or string.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -675,10 +717,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -710,9 +762,9 @@
Parameters:
See:
@@ -721,25 +773,27 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be decoded or if required fields are missing. The later still returns the decoded message with missing fields in the `decoded` property on the error. +

If the message cannot be decoded or if required fields are missing. The later still + returns the decoded message with missing fields in the decoded property on the error.

+
@@ -753,15 +807,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Decoded message

@@ -780,33 +835,35 @@
Returns:
- - - + + -
-

(static) decode64(str) → (non-null) {ProtoBuf.Builder.Message}

-
-
- -
-

Decodes the message from the specified base64 encoded string.

-
- +

(static) decode64(str) → (non-null) {ProtoBuf.Builder.Message}

- + +
+

Decodes the message from the specified base64 encoded string.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -852,10 +909,20 @@
Parameters:
- - + + + + +
+ + + + + + + @@ -889,25 +956,27 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be decoded or if required fields are missing. The later still returns the decoded message with missing fields in the `decoded` property on the error. +

If the message cannot be decoded or if required fields are missing. The later still + returns the decoded message with missing fields in the decoded property on the error.

+
@@ -921,15 +990,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Decoded message

@@ -948,33 +1018,35 @@
Returns:
- - - + + -
-

(static) decodeDelimited(buffer, encopt) → {ProtoBuf.Builder.Message}

-
-
- -
-

Decodes a varint32 length-delimited message from the specified buffer or string.

-
- +

(static) decodeDelimited(buffer, encopt) → {ProtoBuf.Builder.Message}

- + +
+

Decodes a varint32 length-delimited message from the specified buffer or string.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1072,10 +1144,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1109,25 +1191,27 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be decoded or if required fields are missing. The later still returns the decoded message with missing fields in the `decoded` property on the error. +

If the message cannot be decoded or if required fields are missing. The later still + returns the decoded message with missing fields in the decoded property on the error.

+
@@ -1141,15 +1225,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Decoded message or null if not enough bytes are available yet

@@ -1168,33 +1253,35 @@
Returns:
- - - + + -
-

(static) decodeHex(str) → (non-null) {ProtoBuf.Builder.Message}

-
-
- -
-

Decodes the message from the specified hex encoded string.

-
- +

(static) decodeHex(str) → (non-null) {ProtoBuf.Builder.Message}

- + +
+

Decodes the message from the specified hex encoded string.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1240,10 +1327,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1277,25 +1374,27 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be decoded or if required fields are missing. The later still returns the decoded message with missing fields in the `decoded` property on the error. +

If the message cannot be decoded or if required fields are missing. The later still + returns the decoded message with missing fields in the decoded property on the error.

+
@@ -1309,15 +1408,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Decoded message

@@ -1336,33 +1436,35 @@
Returns:
- - - + + -
-

(static) decodeJSON(str) → (non-null) {ProtoBuf.Builder.Message}

-
-
- -
-

Decodes the message from a JSON string.

-
- +

(static) decodeJSON(str) → (non-null) {ProtoBuf.Builder.Message}

- + +
+

Decodes the message from a JSON string.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1408,10 +1510,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1445,25 +1557,27 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be decoded or if required fields are missing. +

If the message cannot be decoded or if required fields are +missing.

+
@@ -1477,15 +1591,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Decoded message

@@ -1504,33 +1619,35 @@
Returns:
- - - + + -
-

$add(key, value, noAssertopt) → (non-null) {ProtoBuf.Builder.Message}

-
-
- -
-

Adds a value to a repeated field. This is an alias for ProtoBuf.Builder.Message#add.

-
- +

$add(key, value, noAssertopt) → (non-null) {ProtoBuf.Builder.Message}

- + +
+

Adds a value to a repeated field. This is an alias for ProtoBuf.Builder.Message#add.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1650,10 +1767,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1687,25 +1814,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the value cannot be added +

If the value cannot be added

+
@@ -1719,15 +1847,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

this

@@ -1746,33 +1875,35 @@
Returns:
- - - + + -
-

$encode(bufferopt, noVerifyopt) → (non-null) {ByteBuffer}

-
-
- -
-

Encodes the message.

-
- +

$encode(bufferopt, noVerifyopt) → (non-null) {ByteBuffer}

- + +
+

Encodes the message.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1866,10 +1997,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1914,25 +2055,27 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be encoded or if required fields are missing. The later still returns the encoded ByteBuffer in the `encoded` property on the error. +

If the message cannot be encoded or if required fields are missing. The later still + returns the encoded ByteBuffer in the encoded property on the error.

+
@@ -1946,15 +2089,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Encoded message as a ByteBuffer

@@ -1973,33 +2117,35 @@
Returns:
- - - + + -
-

$get(key) → {*}

-
-
- -
-

Gets a field's value. This is an alias for ProtoBuf.Builder.Message#$get.

-
- +

$get(key) → {*}

- + +
+

Gets a field's value. This is an alias for ProtoBuf.Builder.Message#$get.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2045,10 +2191,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2082,25 +2238,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If there is no such field +

If there is no such field

+
@@ -2114,15 +2271,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Value

@@ -2141,33 +2299,35 @@
Returns:
- - - + + -
-

$set(keyOrObj, valueopt, noAssertopt)

-
-
- -
-

Sets a field's value. This is an alias for [@link ProtoBuf.Builder.Message#set}.

-
- +

$set(keyOrObj, valueopt, noAssertopt)

- + +
+

Sets a field's value. This is an alias for [@link ProtoBuf.Builder.Message#set}.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2295,10 +2455,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2332,25 +2502,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the value cannot be set +

If the value cannot be set

+
@@ -2364,38 +2535,41 @@
Throws:
+
- - - - + + + -
-

add(key, value, noAssertopt) → (non-null) {ProtoBuf.Builder.Message}

-
-
- -
-

Adds a value to a repeated field.

-
- +

add(key, value, noAssertopt) → (non-null) {ProtoBuf.Builder.Message}

- + +
+

Adds a value to a repeated field.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2515,10 +2689,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2552,25 +2736,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the value cannot be added +

If the value cannot be added

+
@@ -2584,15 +2769,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

this

@@ -2611,34 +2797,45 @@
Returns:
- - - + + -
-

calculate() → {number}

-
-
- -
-

Calculates the byte length of the message.

-
- +

calculate() → {number}

+ + +
+

Calculates the byte length of the message.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -2672,26 +2869,27 @@

calculate - - - - - -
Throws:
- - -
-
-
- If the message cannot be calculated or if required fields are missing. -
-
-
+ + + + +
Throws:
+ + + +
+
+
+

If the message cannot be calculated or if required fields are missing.

+
+
+
+
Type @@ -2704,15 +2902,16 @@
Throws:

+
- - - -
Returns:
- + + +
Returns:
+ +

Byte length

@@ -2731,34 +2930,45 @@
Returns:
- - - + + -
-

encode64() → {string}

-
-
- -
-

Directly encodes the message to a base64 encoded string.

-
- +

encode64() → {string}

+ + +
+

Directly encodes the message to a base64 encoded string.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -2792,25 +3002,27 @@

encode64 - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the underlying buffer cannot be encoded or if required fields are missing. The later still returns the encoded base64 string in the `encoded` property on the error. +

If the underlying buffer cannot be encoded or if required fields are missing. The later + still returns the encoded base64 string in the encoded property on the error.

+
@@ -2824,15 +3036,16 @@
Throws:

+
- - - -
Returns:
- + + +
Returns:
+ +

Base64 encoded string

@@ -2851,34 +3064,45 @@
Returns:
- - - + + -
-

encodeAB() → {ArrayBuffer}

-
-
- -
-

Directly encodes the message to an ArrayBuffer.

-
- +

encodeAB() → {ArrayBuffer}

+ + +
+

Directly encodes the message to an ArrayBuffer.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -2912,25 +3136,27 @@

encodeAB - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be encoded or if required fields are missing. The later still returns the encoded ArrayBuffer in the `encoded` property on the error. +

If the message cannot be encoded or if required fields are missing. The later still + returns the encoded ArrayBuffer in the encoded property on the error.

+
@@ -2944,15 +3170,16 @@
Throws:

+
- - - -
Returns:
- + + +
Returns:
+ +

Encoded message as ArrayBuffer

@@ -2971,33 +3198,35 @@
Returns:
- - - + + -
-

encodeDelimited(bufferopt, noVerifyopt) → (non-null) {ByteBuffer}

-
-
- -
-

Encodes the varint32 length-delimited message.

-
- +

encodeDelimited(bufferopt, noVerifyopt) → (non-null) {ByteBuffer}

- + +
+

Encodes the varint32 length-delimited message.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -3091,10 +3320,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -3128,25 +3367,27 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be encoded or if required fields are missing. The later still returns the encoded ByteBuffer in the `encoded` property on the error. +

If the message cannot be encoded or if required fields are missing. The later still + returns the encoded ByteBuffer in the encoded property on the error.

+
@@ -3160,15 +3401,16 @@
Throws:
+
- - - -
Returns:
- + + +
Returns:
+ +

Encoded message as a ByteBuffer

@@ -3187,34 +3429,45 @@
Returns:
- - - + + -
-

encodeHex() → {string}

-
-
- -
-

Directly encodes the message to a hex encoded string.

-
- +

encodeHex() → {string}

+ + +
+

Directly encodes the message to a hex encoded string.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -3248,25 +3501,27 @@

encodeHex - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the underlying buffer cannot be encoded or if required fields are missing. The later still returns the encoded hex string in the `encoded` property on the error. +

If the underlying buffer cannot be encoded or if required fields are missing. The later + still returns the encoded hex string in the encoded property on the error.

+
@@ -3280,15 +3535,16 @@
Throws:

+
- - -
Returns:
- - + + +
Returns:
+ +

Hex encoded string

@@ -3307,34 +3563,45 @@
Returns:
- - - + + -
-

encodeJSON() → {string}

-
-
- -
-

Encodes a message to JSON.

-
- +

encodeJSON() → {string}

+ + +
+

Encodes a message to JSON.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -3368,20 +3635,20 @@

encodeJSON<

- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

JSON string

@@ -3400,34 +3667,45 @@
Returns:
- - - + + -
-

encodeNB() → (non-null) {Buffer}

-
-
- -
-

Directly encodes the message to a node Buffer.

-
- +

encodeNB() → (non-null) {Buffer}

+ + +
+

Directly encodes the message to a node Buffer.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -3461,25 +3739,27 @@

encodeNB - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be encoded, not running under node.js or if required fields are missing. The later still returns the encoded node Buffer in the `encoded` property on the error. +

If the message cannot be encoded, not running under node.js or if required fields are + missing. The later still returns the encoded node Buffer in the encoded property on the error.

+
@@ -3493,15 +3773,16 @@
Throws:

+
- - - -
Returns:
- + + +
Returns:
+ +
@@ -3516,33 +3797,35 @@
Returns:
- - - + + -
-

get(key, noAssertopt) → {*}

-
-
- -
-

Gets a field's value.

-
- +

get(key, noAssertopt) → {*}

- + +
+

Gets a field's value.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -3631,10 +3914,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -3668,25 +3961,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If there is no such field +

If there is no such field

+
@@ -3700,15 +3994,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Value

@@ -3727,35 +4022,46 @@
Returns:
- - - + + -
-

(abstract) get[SomeField]() → {*}

-
-
+ +

(abstract) get[SomeField]() → {*}

-
-

Gets a value. This method is present for each field, but only if there is no name conflict with + + + +

+

Gets a value. This method is present for each field, but only if there is no name conflict with another field.

-
- +
+ + + + + - + + + + + + + +
-
+ @@ -3789,20 +4095,20 @@

(abstract) - - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The value

@@ -3821,35 +4127,46 @@
Returns:

- - - + + -
-

(abstract) get_[some_field]() → {*}

-
-
+ +

(abstract) get_[some_field]() → {*}

-
-

Gets a value. This method is present for each field, but only if there is no name conflict with + + + +

+

Gets a value. This method is present for each field, but only if there is no name conflict with another field.

-
- +
+ + + + - + + + + + + + + +
-
+ @@ -3883,20 +4200,20 @@

(abstract) <

- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The value

@@ -3915,33 +4232,35 @@
Returns:
- - - + + -
-

set(keyOrObj, valueopt, noAssertopt) → (non-null) {ProtoBuf.Builder.Message}

-
-
- -
-

Sets a field's value.

-
- +

set(keyOrObj, valueopt, noAssertopt) → (non-null) {ProtoBuf.Builder.Message}

- + +
+

Sets a field's value.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -4069,10 +4388,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -4106,25 +4435,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the value cannot be set +

If the value cannot be set

+
@@ -4138,15 +4468,16 @@
Throws:
+
- - - -
Returns:
- + + +
Returns:
+ +

this

@@ -4165,34 +4496,36 @@
Returns:
- - - + + -
-

(abstract) set[SomeField](value, noAssertopt) → (non-null) {ProtoBuf.Builder.Message}

-
-
+ +

(abstract) set[SomeField](value, noAssertopt) → (non-null) {ProtoBuf.Builder.Message}

-
-

Sets a value. This method is present for each field, but only if there is no name conflict with + + + +

+

Sets a value. This method is present for each field, but only if there is no name conflict with another field.

-
- +
- - + + + + + + +
Parameters:
-
Parameters:
- @@ -4281,10 +4614,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -4318,25 +4661,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the value cannot be set +

If the value cannot be set

+
@@ -4350,15 +4694,16 @@
Throws:
+
- - - -
Returns:
- + + +
Returns:
+ +

this

@@ -4377,34 +4722,36 @@
Returns:
- - - + + -
-

(abstract) set_[some_field](value, noAssertopt) → (non-null) {ProtoBuf.Builder.Message}

-
-
+ +

(abstract) set_[some_field](value, noAssertopt) → (non-null) {ProtoBuf.Builder.Message}

-
-

Sets a value. This method is present for each field, but only if there is no name conflict with + + + +

+

Sets a value. This method is present for each field, but only if there is no name conflict with another field.

-
- +
+ + - - + + + + +
Parameters:
-
Parameters:
- @@ -4493,10 +4840,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -4530,25 +4887,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the value cannot be set +

If the value cannot be set

+
@@ -4562,15 +4920,16 @@
Throws:
+
- - - -
Returns:
- + + +
Returns:
+ +

this

@@ -4589,34 +4948,45 @@
Returns:
- - - + + -
-

toArrayBuffer() → {ArrayBuffer}

-
-
- -
-

Returns the message as an ArrayBuffer. This is an alias for ProtoBuf.Builder.Message#encodeAB.

-
- +

toArrayBuffer() → {ArrayBuffer}

+ + +
+

Returns the message as an ArrayBuffer. This is an alias for ProtoBuf.Builder.Message#encodeAB.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -4650,25 +5020,27 @@

toArrayB

- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be encoded or if required fields are missing. The later still returns the encoded ArrayBuffer in the `encoded` property on the error. +

If the message cannot be encoded or if required fields are missing. The later still + returns the encoded ArrayBuffer in the encoded property on the error.

+
@@ -4682,15 +5054,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Encoded message as ArrayBuffer

@@ -4709,34 +5082,45 @@
Returns:
- - - + + -
-

toBase64() → {string}

-
-
- -
-

Returns the message as a base64 encoded string. This is an alias for ProtoBuf.Builder.Message#encode64.

-
- +

toBase64() → {string}

+ + +
+

Returns the message as a base64 encoded string. This is an alias for ProtoBuf.Builder.Message#encode64.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -4770,25 +5154,27 @@

toBase64 - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be encoded or if required fields are missing. The later still returns the encoded base64 string in the `encoded` property on the error. +

If the message cannot be encoded or if required fields are missing. The later still + returns the encoded base64 string in the encoded property on the error.

+
@@ -4802,15 +5188,16 @@
Throws:

+
- - - -
Returns:
- + + +
Returns:
+ +

Base64 encoded string

@@ -4829,34 +5216,45 @@
Returns:
- - - + + -
-

toBuffer() → (non-null) {Buffer}

-
-
- -
-

Returns the message as a node Buffer. This is an alias for ProtoBuf.Builder.Message#encodeNB.

-
- +

toBuffer() → (non-null) {Buffer}

+ + +
+

Returns the message as a node Buffer. This is an alias for ProtoBuf.Builder.Message#encodeNB.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -4890,25 +5288,27 @@

toBuffer - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be encoded or if required fields are missing. The later still returns the encoded node Buffer in the `encoded` property on the error. +

If the message cannot be encoded or if required fields are missing. The later still + returns the encoded node Buffer in the encoded property on the error.

+
@@ -4922,15 +5322,16 @@
Throws:

+
- - -
Returns:
- - + + +
Returns:
+ +
@@ -4945,34 +5346,45 @@
Returns:
- - - + + -
-

toHex() → {string}

-
-
- -
-

Returns the message as a hex encoded string. This is an alias for ProtoBuf.Builder.Message#encodeHex.

-
- +

toHex() → {string}

+ + +
+

Returns the message as a hex encoded string. This is an alias for ProtoBuf.Builder.Message#encodeHex.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -5006,25 +5418,27 @@

toHex - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be encoded or if required fields are missing. The later still returns the encoded hex string in the `encoded` property on the error. +

If the message cannot be encoded or if required fields are missing. The later still + returns the encoded hex string in the encoded property on the error.

+
@@ -5038,15 +5452,16 @@
Throws:

+
- - - -
Returns:
- + + +
Returns:
+ +

Hex encoded string

@@ -5065,33 +5480,35 @@
Returns:
- - - + + -
-

toRaw(binaryAsBase64opt, longsAsStrings) → {Object.<string, *>}

-
-
- -
-

Returns the message's raw payload.

-
- +

toRaw(binaryAsBase64opt, longsAsStrings) → {Object.<string, *>}

- + +
+

Returns the message's raw payload.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -5180,10 +5597,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -5217,20 +5644,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

Raw payload

@@ -5249,34 +5676,45 @@
Returns:
- - - + + -
-

toString() → {string}

-
-
- -
-

Returns a string representation of this Message.

-
- +

toString() → {string}

+ + +
+

Returns a string representation of this Message.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -5310,20 +5748,20 @@

toString - - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

String representation as of ".Fully.Qualified.MessageName"

@@ -5342,12 +5780,11 @@
Returns:

- - - - + + + @@ -5363,13 +5800,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Builder.Service.html b/docs/ProtoBuf.Builder.Service.html index 93e4c317a..85a526241 100644 --- a/docs/ProtoBuf.Builder.Service.html +++ b/docs/ProtoBuf.Builder.Service.html @@ -23,45 +23,51 @@

Class: Service

+
-

- ProtoBuf.Builder. - - Service -

-

Barebone of all runtime services.

+

+ ProtoBuf.Builder. + + Service +

+ +

Barebone of all runtime services.

+
+ - -
+

Constructor

+ +

new Service(rpcImplopt)

-
-
- -
-

Constructs a new runtime Service.

-
- - - +
+

Constructs a new runtime Service.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -119,10 +125,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -156,25 +172,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the service cannot be created +

If the service cannot be created

+
@@ -188,20 +205,18 @@
Throws:
+
- - - - - -
+ + + @@ -216,34 +231,41 @@
Throws:

Members

-
+ -
-

(static) $options :Object.<string, *>

+

(static) $options :Object.<string, *>

- -
-
- -
-

Service options.

-
- - -
Type:
-
    -
  • - + + +
    +

    Service options.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, *> -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -277,39 +299,45 @@
Type:
- - -
+ + -
-

(static, non-null) $type :ProtoBuf.Reflect.Service

+

(static, non-null) $type :ProtoBuf.Reflect.Service

- -
-
- -
-

Reflection type.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -343,39 +371,45 @@
Type:
- - -
+ + -
-

$options :Object.<string, *>

+

$options :Object.<string, *>

- -
-
- -
-

Service options.

-
- - -
Type:
-
    -
  • - + + +
    +

    Service options.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, *> -
    • -
    +
  • +
+ + + + + +
+ + + -
+ @@ -409,39 +443,45 @@
Type:
- - -
+ + -
-

(non-null) $type :ProtoBuf.Reflect.Service

+

(non-null) $type :ProtoBuf.Reflect.Service

- -
-
- -
-

Reflection type.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -475,39 +515,45 @@
Type:
- - -
+ + -
-

(non-null) rpcImpl :function

+

(non-null) rpcImpl :function

- -
-
- -
-

Service implementation.

-
- - -
Type:
-
    -
  • - + + +
    +

    Service implementation.

    +
    + + + +
    Type:
    +
      +
    • + function -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -541,39 +587,41 @@
Type:
- - -
-
+ + +

Methods

-
+ -
-

(abstract, static) [Method](rpcImplnon-null, req, callback)

-
-
- -
-

Asynchronously performs an RPC call using the given RPC implementation.

-
- +

(abstract, static) [Method](rpcImplnon-null, req, callback)

- + +
+

Asynchronously performs an RPC call using the given RPC implementation.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -666,10 +714,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -703,43 +761,45 @@
Parameters:
- - - - - - - -
+ + + + + + + -
-

(abstract) [Method](req, callback)

-
-
- -
-

Asynchronously performs an RPC call using the instance's RPC implementation.

-
- +

(abstract) [Method](req, callback)

- + +
+

Asynchronously performs an RPC call using the instance's RPC implementation.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -809,10 +869,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -846,22 +916,21 @@
Parameters:
- - - - - - - -
-
+ + + + + + + + @@ -877,13 +946,13 @@
Parameters:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Builder.html b/docs/ProtoBuf.Builder.html index 65780b1d5..9a5a4eecc 100644 --- a/docs/ProtoBuf.Builder.html +++ b/docs/ProtoBuf.Builder.html @@ -23,45 +23,51 @@

Class: Builder

+
-

- ProtoBuf. - - Builder -

-

Provides the functionality to build protocol messages.

+

+ ProtoBuf. + + Builder +

+ +

Provides the functionality to build protocol messages.

+
+ - -
+

Constructor

+ +

new Builder(optionsopt)

-
-
- -
-

Constructs a new Builder.

-
- - - +
+

Constructs a new Builder.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -119,10 +125,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -156,25 +172,22 @@
Parameters:
- - - - - - - -
- -
+ + + + + + + @@ -199,34 +212,41 @@

Classes

Members

-
+ -
-

files :Array.<string>

+

files :Array.<string>

- -
-
- -
-

Imported files.

-
- - -
Type:
-
    -
  • - + + +
    +

    Imported files.

    +
    + + + +
    Type:
    +
      +
    • + Array.<string> -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -260,39 +280,45 @@
Type:
- - -
+ + -
-

(nullable) importRoot :string

+

(nullable) importRoot :string

- -
-
- -
-

Import root override.

-
- - -
Type:
-
    -
  • - + + +
    +

    Import root override.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -326,39 +352,45 @@
Type:
- - -
+ + -
-

ns :ProtoBuf.Reflect.Namespace

+

ns :ProtoBuf.Reflect.Namespace

- -
-
- -
-

Namespace.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -392,39 +424,45 @@
Type:
- - -
+ + -
-

(non-null) options :Object.<string, *>

+

(non-null) options :Object.<string, *>

- -
-
- -
-

Options.

-
- - -
Type:
-
    -
  • - + + +
    +

    Options.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, *> -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -458,39 +496,45 @@
Type:
- - -
+ + -
-

ptr :ProtoBuf.Reflect.T

+

ptr :ProtoBuf.Reflect.T

- -
-
- -
-

Namespace pointer.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -524,39 +568,45 @@
Type:
- - -
+ + -
-

resolved :boolean

+

resolved :boolean

- -
-
- -
-

Resolved flag.

-
- - -
Type:
-
    -
  • - + + +
    +

    Resolved flag.

    +
    + + + +
    Type:
    +
      +
    • + boolean -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -590,42 +640,48 @@
Type:
- - -
+ + -
-

result :Object.<string, (ProtoBuf.Builder.Message|Object)>|null

+

result :Object.<string, (ProtoBuf.Builder.Message|Object)>|null

- -
-
- -
-

The current building result.

-
- - -
Type:
-
    -
  • - + + +
    +

    The current building result.

    +
    + + + +
    Type:
    + +
  • +
+ + + + + +
+ -
+ + + @@ -659,39 +715,41 @@
Type:
- - -
-
+ + +

Methods

-
+ -
-

(static) isEnum(defnon-null) → {boolean}

-
-
- -
-

Tests if a definition most likely describes an enum.

-
- +

(static) isEnum(defnon-null) → {boolean}

- + +
+

Tests if a definition most likely describes an enum.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -737,10 +795,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -774,20 +842,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -802,33 +870,35 @@
Returns:
- - - + + -
-

(static) isExtend(defnon-null) → {boolean}

-
-
- -
-

Tests if a definition most likely describes an extended message

-
- +

(static) isExtend(defnon-null) → {boolean}

- + +
+

Tests if a definition most likely describes an extended message

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -874,10 +944,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -911,20 +991,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -939,33 +1019,35 @@
Returns:
- - - + + -
-

(static) isMessage(defnon-null) → {boolean}

-
-
- -
-

Tests if a definition most likely describes a message.

-
- +

(static) isMessage(defnon-null) → {boolean}

- + +
+

Tests if a definition most likely describes a message.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1011,10 +1093,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1048,20 +1140,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -1076,33 +1168,35 @@
Returns:
- - - + + -
-

(static) isMessageField(defnon-null) → {boolean}

-
-
- -
-

Tests if a definition most likely describes a message field.

-
- +

(static) isMessageField(defnon-null) → {boolean}

- + +
+

Tests if a definition most likely describes a message field.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1148,10 +1242,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1185,20 +1289,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -1213,33 +1317,35 @@
Returns:
- - - + + -
-

(static) isService(defnon-null) → {boolean}

-
-
- -
-

Tests if a definition most likely describes a service.

-
- +

(static) isService(defnon-null) → {boolean}

- + +
+

Tests if a definition most likely describes a service.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1285,10 +1391,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1322,20 +1438,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -1350,33 +1466,35 @@
Returns:
- - - + + -
-

"import"](json, filenameopt) → (non-null) {ProtoBuf.Builder}

-
-
- -
-

Imports another definition into this builder.

-
- +

"import"](json, filenameopt) → (non-null) {ProtoBuf.Builder}

- + +
+

Imports another definition into this builder.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1468,10 +1586,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1505,25 +1633,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the definition or file cannot be imported +

If the definition or file cannot be imported

+
@@ -1537,15 +1666,16 @@
Throws:
+
- - - -
Returns:
- + + +
Returns:
+ +

this

@@ -1564,34 +1694,36 @@
Returns:
- - - + + -
-

build(pathopt) → {ProtoBuf.Builder.Message|!Object.<string, *>}

-
-
+ +

build(pathopt) → {ProtoBuf.Builder.Message|!Object.<string, *>}

-
-

Builds the protocol. This will first try to resolve all definitions and, if this has been successful, + + + +

+

Builds the protocol. This will first try to resolve all definitions and, if this has been successful, return the built package.

-
- +
- - + + + + + + +
Parameters:
-
Parameters:
- @@ -1652,10 +1784,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1677,7 +1819,7 @@
Parameters:
Source:
@@ -1689,25 +1831,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If a type could not be resolved +

If a type could not be resolved

+
@@ -1721,15 +1864,16 @@
Throws:
+
- - - -
Returns:
- + + +
Returns:
+ +
@@ -1747,33 +1891,35 @@
Returns:
- - - + + -
-

create(defsnon-null) → (non-null) {ProtoBuf.Builder}

-
-
- -
-

Creates the specified definitions at the current pointer position.

-
- +

create(defsnon-null) → (non-null) {ProtoBuf.Builder}

- + +
+

Creates the specified definitions at the current pointer position.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1803,7 +1949,7 @@
Parameters:
-Array.<Object> +Array.<!Object> @@ -1819,10 +1965,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1856,25 +2012,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If a message definition is invalid +

If a message definition is invalid

+
@@ -1888,15 +2045,16 @@
Throws:
+
- - - -
Returns:
- + + +
Returns:
+ +

this

@@ -1915,33 +2073,35 @@
Returns:
- - - + + -
-

define(namespace) → (non-null) {ProtoBuf.Builder}

-
-
- -
-

Defines a namespace on top of the current pointer position and places the pointer on it.

-
- +

define(namespace) → (non-null) {ProtoBuf.Builder}

- + +
+

Defines a namespace on top of the current pointer position and places the pointer on it.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1987,10 +2147,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2024,20 +2194,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

this

@@ -2056,33 +2226,35 @@
Returns:
- - - + + -
-

lookup(pathopt, excludeNonNamespaceopt) → (nullable) {ProtoBuf.Reflect.T}

-
-
- -
-

Similar to ProtoBuf.Builder#build, but looks up the internal reflection descriptor.

-
- +

lookup(pathopt, excludeNonNamespaceopt) → (nullable) {ProtoBuf.Reflect.T}

- + +
+

Similar to ProtoBuf.Builder#build, but looks up the internal reflection descriptor.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2173,10 +2345,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2198,7 +2380,7 @@
Parameters:
Source:
@@ -2210,20 +2392,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

Reflection descriptor or null if not found

@@ -2242,34 +2424,45 @@
Returns:
- - - + + -
-

reset() → (non-null) {ProtoBuf.Builder}

-
-
- -
-

Resets the pointer to the root namespace.

-
- +

reset() → (non-null) {ProtoBuf.Builder}

+ + +
+

Resets the pointer to the root namespace.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -2303,20 +2496,20 @@

reset - - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

this

@@ -2335,34 +2528,45 @@
Returns:

- - - + + -
-

resolveAll() → (non-null) {ProtoBuf.Builder}

-
-
- -
-

Resolves all namespace objects.

-
- +

resolveAll() → (non-null) {ProtoBuf.Builder}

+ + +
+

Resolves all namespace objects.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -2384,7 +2588,7 @@

resolveAll<
Source:
@@ -2396,25 +2600,26 @@

resolveAll<

- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If a type cannot be resolved +

If a type cannot be resolved

+
@@ -2428,15 +2633,16 @@
Throws:
+
- - - -
Returns:
- + + +
Returns:
+ +

this

@@ -2455,34 +2661,45 @@
Returns:
- - - + + -
-

toString() → {string}

-
-
- -
-

Returns a string representation of this object.

-
- +

toString() → {string}

+ + +
+

Returns a string representation of this object.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -2504,7 +2721,7 @@

toStringSource:
@@ -2516,20 +2733,20 @@

toString - - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

String representation as of "Builder"

@@ -2548,12 +2765,11 @@
Returns:

- - - - + + + @@ -2569,13 +2785,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.DotProto.Parser.html b/docs/ProtoBuf.DotProto.Parser.html index 6a5af1314..81cdf3849 100644 --- a/docs/ProtoBuf.DotProto.Parser.html +++ b/docs/ProtoBuf.DotProto.Parser.html @@ -23,45 +23,51 @@

Class: Parser

+
-

- ProtoBuf.DotProto. - - Parser -

-

prototype parser

+

+ ProtoBuf.DotProto. + + Parser +

+ +

prototype parser

+
+ - -
+

Constructor

+ +

new Parser(source)

-
-
- -
-

Constructs a new Parser.

-
- - - +
+

Constructs a new Parser.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -107,10 +113,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -144,25 +160,22 @@
Parameters:
- - - - - - - -
- -
+ + + + + + + @@ -177,34 +190,41 @@
Parameters:

Members

-
+ -
-

proto3 :boolean

+

proto3 :boolean

- -
-
- -
-

Whether parsing proto3 or not.

-
- - -
Type:
-
    -
  • - + + +
    +

    Whether parsing proto3 or not.

    +
    + + + +
    Type:
    +
      +
    • + boolean -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -238,39 +258,45 @@
Type:
- - -
+ + -
-

(non-null) tn :ProtoBuf.DotProto.Tokenizer

+

(non-null) tn :ProtoBuf.DotProto.Tokenizer

- -
-
- -
-

Tokenizer.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -304,40 +330,51 @@
Type:
- - -
-
+ + +

Methods

-
+ -
-

(static) parse() → (non-null) {Object}

-
-
- -
-

Parses the specified source.

-
- +

(static) parse() → (non-null) {Object}

+ + +
+

Parses the specified source.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -371,25 +408,26 @@

(static) parse - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the source cannot be parsed +

If the source cannot be parsed

+
@@ -403,15 +441,16 @@
Throws:

+
- - - -
Returns:
- + + +
Returns:
+ +
@@ -426,34 +465,45 @@
Returns:
- - - + + -
-

parse() → (non-null) {Object}

-
-
- -
-

Parses the source.

-
- +

parse() → (non-null) {Object}

+ + +
+

Parses the source.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -487,25 +537,26 @@

parse - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the source cannot be parsed +

If the source cannot be parsed

+
@@ -519,15 +570,16 @@
Throws:

+
- - - -
Returns:
- + + +
Returns:
+ +
@@ -542,34 +594,45 @@
Returns:
- - - + + -
-

toString() → {string}

-
-
- -
-

Returns a string representation of this parser.

-
- +

toString() → {string}

+ + +
+

Returns a string representation of this parser.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -603,20 +666,20 @@

toString - - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -631,12 +694,11 @@
Returns:

- - - - + + + @@ -652,13 +714,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.DotProto.Tokenizer.html b/docs/ProtoBuf.DotProto.Tokenizer.html index a6533ff7c..8ad872780 100644 --- a/docs/ProtoBuf.DotProto.Tokenizer.html +++ b/docs/ProtoBuf.DotProto.Tokenizer.html @@ -23,45 +23,51 @@

Class: Tokenizer

+
-

- ProtoBuf.DotProto. - - Tokenizer -

-

prototype tokenizer

+

+ ProtoBuf.DotProto. + + Tokenizer +

+ +

prototype tokenizer

+
+ - -
+

Constructor

+ +

new Tokenizer(proto)

-
-
- -
-

Constructs a new Tokenizer.

-
- - - +
+

Constructs a new Tokenizer.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -107,10 +113,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -144,25 +160,22 @@
Parameters:
- - - - - - - -
- -
+ + + + + + + @@ -177,34 +190,41 @@
Parameters:

Members

-
+ -
-

index :number

+

index :number

- -
-
- -
-

Current index.

-
- - -
Type:
-
    -
  • - + + +
    +

    Current index.

    +
    + + + +
    Type:
    +
      +
    • + number -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -238,39 +258,45 @@
Type:
- - -
+ + -
-

line :number

+

line :number

- -
-
- -
-

Current line.

-
- - -
Type:
-
    -
  • - + + +
    +

    Current line.

    +
    + + + +
    Type:
    +
      +
    • + number -
    • -
    +
  • +
+ + + + + +
+ + + -
+ @@ -304,39 +330,45 @@
Type:
- - -
+ + -
-

source :string

+

source :string

- -
-
- -
-

Source to parse.

-
- - -
Type:
-
    -
  • - + + +
    +

    Source to parse.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -370,39 +402,45 @@
Type:
- - -
+ + -
-

(non-null) stack :Array.<string>

+

(non-null) stack :Array.<string>

- -
-
- -
-

Token stack.

-
- - -
Type:
-
    -
  • - + + +
    +

    Token stack.

    +
    + + + +
    Type:
    +
      +
    • + Array.<string> -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -436,40 +474,51 @@
Type:
- - -
-
+ + +

Methods

-
+ -
-

next() → (nullable) {string}

-
-
- -
-

Gets the next token and advances by one.

-
- +

next() → (nullable) {string}

+ + +
+

Gets the next token and advances by one.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -503,20 +552,20 @@

next

Token or null on EOF

@@ -535,33 +584,35 @@
Returns:

- - - + + -
-

omit(expected) → {boolean}

-
-
- -
-

Omits an optional token.

-
- +

omit(expected) → {boolean}

- + +
+

Omits an optional token.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -607,10 +658,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -644,20 +705,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

true if the token exists

@@ -676,34 +737,45 @@
Returns:
- - - + + -
-

peek() → (nullable) {string}

-
-
- -
-

Peeks for the next token.

-
- +

peek() → (nullable) {string}

+ + +
+

Peeks for the next token.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -737,20 +809,20 @@

peek

Token or null on EOF

@@ -769,33 +841,35 @@
Returns:

- - - + + -
-

skip(expected)

-
-
- -
-

Skips a specific token and throws if it differs.

-
- +

skip(expected)

- + +
+

Skips a specific token and throws if it differs.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -841,10 +915,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -878,25 +962,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the actual token differs +

If the actual token differs

+
@@ -910,39 +995,51 @@
Throws:
+
- - - - + + + -
-

toString() → {string}

-
-
- -
-

Returns a string representation of this object.

-
- +

toString() → {string}

+ + +
+

Returns a string representation of this object.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -976,20 +1073,20 @@

toString - - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

String representation as of "Tokenizer(index/length)"

@@ -1008,12 +1105,11 @@
Returns:

- - - - + + + @@ -1029,13 +1125,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.DotProto.html b/docs/ProtoBuf.DotProto.html index 469218dcb..744f9568e 100644 --- a/docs/ProtoBuf.DotProto.html +++ b/docs/ProtoBuf.DotProto.html @@ -23,28 +23,38 @@

Namespace: DotProto

+
-

- ProtoBuf. - DotProto -

+

+ ProtoBuf. + + DotProto +

+
- -

Utilities to parse .proto files.

+ +
+ + + + + + + @@ -87,8 +97,6 @@

- -

Classes

@@ -121,13 +129,13 @@

Classes

-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Map.html b/docs/ProtoBuf.Map.html index 29831d1ca..bf81c463f 100644 --- a/docs/ProtoBuf.Map.html +++ b/docs/ProtoBuf.Map.html @@ -23,46 +23,50 @@

Class: Map

+
-

- ProtoBuf. - Map -

+

+ ProtoBuf. + + Map +

+
+ - -
+

new Map(fieldnon-null, contentsopt)

-
-
- -
-

Constructs a new Map. A Map is a container that is used to implement map + + +

+

Constructs a new Map. A Map is a container that is used to implement map fields on message objects. It closely follows the ES6 Map API; however, it is distinct because we do not want to depend on external polyfills or on ES6 itself.

-
- +
+ + - - + + + + +
Parameters:
-
Parameters:
- @@ -151,10 +155,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -176,7 +190,7 @@
Parameters:
Source:
@@ -188,25 +202,22 @@
Parameters:
- - - - - - - -
- -
+ + + + + + + @@ -221,34 +232,41 @@
Parameters:

Members

-
+ -
-

(non-null) field :ProtoBuf.Reflect.Field

+

(non-null) field :ProtoBuf.Reflect.Field

- -
-
- -
-

The field corresponding to this map.

-
- - -
Type:
-
    -
  • - + + +
    +

    The field corresponding to this map.

    +
    + + + +
    Type:
    +
      +
    • + ProtoBuf.Reflect.Field -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -270,7 +288,7 @@
Type:
Source:
@@ -282,39 +300,45 @@
Type:
- - -
+ + -
-

(non-null) keyElem :ProtoBuf.Reflect.Element

+

(non-null) keyElem :ProtoBuf.Reflect.Element

- -
-
- -
-

Element instance corresponding to key type.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -336,7 +360,7 @@
Type:
Source:
@@ -348,22 +372,19 @@
Type:
- - -
+ + -
-

(non-null) map :Object.<string, Object>

+

(non-null) map :Object.<string, {key: *, value: *}>

- -
-
- -
-

Internal map: stores mapping of (string form of key) -> (key, value) + + + +

+

Internal map: stores mapping of (string form of key) -> (key, value) pair.

We provide map semantics for arbitrary key types, but we build on top of an Object, which has only string keys. In order to avoid the need @@ -372,23 +393,32 @@

(non-null) map -

- +
+ + + +
Type:
+
    +
  • + +Object.<string, {key: *, value: *}> + + +
  • +
+ - -
Type:
-
    -
  • - -Object.<string, Object> -
  • -
+ +
+ -
+ + + @@ -410,7 +440,7 @@
Type:
Source:
@@ -422,39 +452,45 @@
Type:
- - -
+ + -
-

(non-null) valueElem :ProtoBuf.Reflect.Element

+

(non-null) valueElem :ProtoBuf.Reflect.Element

- -
-
- -
-

Element instance corresponding to value type.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -476,7 +512,7 @@
Type:
Source:
@@ -488,12 +524,11 @@
Type:
- - -
-
+ + + @@ -511,13 +546,13 @@
Type:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Reflect.Element.html b/docs/ProtoBuf.Reflect.Element.html index 128d771ad..b1ab78062 100644 --- a/docs/ProtoBuf.Reflect.Element.html +++ b/docs/ProtoBuf.Reflect.Element.html @@ -23,48 +23,52 @@

Class: Element

+
-

- ProtoBuf.Reflect. - Element -

+

+ ProtoBuf.Reflect. + + Element +

+
+ - -
+

new Element(type, resolvedType, isMapKey, syntax, name)

-
-
- -
-

Constructs a new Element implementation that checks and converts values for a + + +

+

Constructs a new Element implementation that checks and converts values for a particular field type, as appropriate.

An Element represents a single value: either the value of a singular field, or a value contained in one entry of a repeated field or map field. This class does not implement these higher-level concepts; it only encapsulates the low-level typechecking and conversion.

-
- +
+ + - - + + + + +
Parameters:
-
Parameters:
- @@ -209,10 +213,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -246,25 +260,22 @@
Parameters:
- - - - - - - -
- -
+ + + + + + + @@ -279,34 +290,41 @@
Parameters:

Members

-
+ -
-

isMapKey :boolean

+

isMapKey :boolean

- -
-
- -
-

Element is a map key.

-
- - -
Type:
-
    -
  • - + + +
    +

    Element is a map key.

    +
    + + + +
    Type:
    +
      +
    • + boolean -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -340,39 +358,45 @@
Type:
- - -
+ + -
-

name :string

+

name :string

- -
-
- -
-

Name of the field containing this element (for error messages)

-
- - -
Type:
-
    -
  • - + + +
    +

    Name of the field containing this element (for error messages)

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -406,42 +430,48 @@
Type:
- - -
+ + -
-

resolvedType :ProtoBuf.Reflect.T|null

+

resolvedType :ProtoBuf.Reflect.T|null

- -
-
- -
-

Element type reference to submessage or enum definition, if needed.

-
- - -
Type:
-
    -
  • - + + +
    +

    Element type reference to submessage or enum definition, if needed.

    +
    + + + +
    Type:
    + +
  • +
+ + + + + +
+ -
+ + + @@ -475,39 +505,45 @@
Type:
- - -
+ + -
-

syntax :string

+

syntax :string

- -
-
- -
-

Syntax level of defining message type, e.g., proto2 or proto3.

-
- - -
Type:
-
    -
  • - + + +
    +

    Syntax level of defining message type, e.g., proto2 or proto3.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -541,39 +577,45 @@
Type:
- - -
+ + -
-

type :Object

+

type :Object

- -
-
- -
-

Element type, as a string (e.g., int32).

-
- - -
Type:
-
    -
  • - + + +
    +

    Element type, as a string (e.g., int32).

    +
    + + + +
    Type:
    +
      +
    • + Object -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -607,39 +649,41 @@
Type:
- - -
-
+ + +

Methods

-
+ -
-

(static) defaultFieldValue(type) → {*}

-
-
- -
-

Returns the default value for this field in proto3.

-
- +

(static) defaultFieldValue(type) → {*}

- + +
+

Returns the default value for this field in proto3.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -688,10 +732,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -725,20 +779,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

Default value

@@ -757,12 +811,11 @@
Returns:
- - - - + + + @@ -778,13 +831,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Reflect.Enum.Value.html b/docs/ProtoBuf.Reflect.Enum.Value.html index c7619a3d0..a88498f13 100644 --- a/docs/ProtoBuf.Reflect.Enum.Value.html +++ b/docs/ProtoBuf.Reflect.Enum.Value.html @@ -23,43 +23,47 @@

Class: Value

+
-

- ProtoBuf.Reflect.Enum. - Value -

+

+ ProtoBuf.Reflect.Enum. + + Value +

+
+ - -
+

new Value(buildernon-null, enmnon-null, name, id)

-
-
- -
-

Constructs a new Enum Value.

-
- - - +
+

Constructs a new Enum Value.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -174,10 +178,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -211,20 +225,19 @@
Parameters:
- - - - - - - -
+ + + + + + +
@@ -232,10 +245,13 @@
Parameters:

Extends

- - + + + + + @@ -250,35 +266,34 @@

Extends

Members

-
+ -
-

(non-null) builder :ProtoBuf.Builder

+

(non-null) builder :ProtoBuf.Builder

- -
-
- -
-

Builder reference.

-
- - -
Type:
-
    -
  • - + + +
    +

    Builder reference.

    +
    + + + +
    Type:
    + - +
  • +
+ + + + -
- @@ -288,7 +303,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -316,25 +339,50 @@
Type:
- - - + + -
-

className

+

className :string

+ + + + +
+

Fully qualified class name

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
-
-
+ -
+
Overrides:
+
@@ -356,7 +404,7 @@

classNameSource:
@@ -368,39 +416,45 @@

className - - -

+ + -
-

id :number

+

id :number

- -
-
- -
-

Unique enum value id.

-
- - -
Type:
-
    -
  • - + + +
    +

    Unique enum value id.

    +
    + + + +
    Type:
    +
      +
    • + number -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -434,40 +488,38 @@
Type:
- - -
+ + -
-

name :string

+

name :string

- -
-
- -
-

Object name in namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Object name in namespace.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
- @@ -477,7 +529,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -505,40 +565,38 @@
Type:
- - - + + -
-

(nullable) parent :ProtoBuf.Reflect.T

+

(nullable) parent :ProtoBuf.Reflect.T

- -
-
- -
-

Parent object.

-
- - -
Type:
- + + + + -
- @@ -548,7 +606,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -576,41 +642,44 @@
Type:
- - - - + + +

Methods

-
+ -
-

build()

-
-
- -
-

Builds this type.

-
- +

build()

- - - +
+

Builds this type.

+
+ + + + + + + + + + + + +
- @@ -620,7 +689,15 @@

buildInherited From:
+

+ + + + + + + + @@ -648,25 +725,26 @@

build - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If this type cannot be built directly +

If this type cannot be built directly

+
@@ -680,40 +758,44 @@
Throws:
+
- - - - + + + -
-

fqn() → {string}

-
-
- -
-

Returns the fully qualified name of this object.

-
- +

fqn() → {string}

- - - +
+

Returns the fully qualified name of this object.

+
+ + + + + + + + + + + + +
- @@ -723,7 +805,15 @@

fqnInherited From:
+

+ + + + + + + + @@ -751,20 +841,20 @@

fqn

Fully qualified name as of ".PATH.TO.THIS"

@@ -783,33 +873,35 @@
Returns:

- - - + + -
-

toString(includeClassopt)

-
-
- -
-

Returns a string representation of this Reflect object (its fully qualified name).

-
- +

toString(includeClassopt)

- + +
+

Returns a string representation of this Reflect object (its fully qualified name).

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -867,11 +959,13 @@
Parameters:
- - + + + + +
- @@ -881,7 +975,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -909,32 +1011,31 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

String representation

- - - - + + + @@ -950,13 +1051,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Reflect.Enum.html b/docs/ProtoBuf.Reflect.Enum.html index b6a700440..366a0ab05 100644 --- a/docs/ProtoBuf.Reflect.Enum.html +++ b/docs/ProtoBuf.Reflect.Enum.html @@ -23,43 +23,47 @@

Class: Enum

+
-

- ProtoBuf.Reflect. - Enum -

+

+ ProtoBuf.Reflect. + + Enum +

+
+ - -
+

new Enum(buildernon-null, parentnon-null, name, optionsopt, syntaxnullable)

-
-
- -
-

Constructs a new Enum.

-
- - - +
+

Constructs a new Enum.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -243,10 +247,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -280,20 +294,19 @@
Parameters:
- - - - - - - -
+ + + + + + +
@@ -301,10 +314,13 @@
Parameters:

Extends

- - + + + + + @@ -326,35 +342,34 @@

Classes

Members

-
+ -
-

(non-null) builder :ProtoBuf.Builder

+

(non-null) builder :ProtoBuf.Builder

- -
-
- -
-

Builder reference.

-
- - -
Type:
-
    -
  • - + + +
    +

    Builder reference.

    +
    + + + +
    Type:
    + - +
  • +
+ + + + -
- @@ -364,7 +379,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -392,40 +415,38 @@
Type:
- - - + + -
-

(non-null) children :Array.<ProtoBuf.Reflect.T>

+

(non-null) children :Array.<ProtoBuf.Reflect.T>

- -
-
- -
-

Children inside the namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Children inside the namespace.

    +
    + + + +
    Type:
    + - +
  • +
+ + + + -
- @@ -435,7 +456,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -463,25 +492,50 @@
Type:
- - - + + -
-

className

+

className :string

+ + + + +
+

Fully qualified class name

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
-
-
+ -
+
Overrides:
+
@@ -503,7 +557,7 @@

classNameSource:
@@ -515,40 +569,38 @@

className - - -

+ + -
-

name :string

+

name :string

- -
-
- -
-

Object name in namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Object name in namespace.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
- @@ -558,7 +610,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -586,42 +646,48 @@
Type:
- - - + + -
-

object :Object.<string, number>|null

+

object :Object.<string, number>|null

- -
-
- -
-

Runtime enum object.

-
- - -
Type:
-
    -
  • - + + +
    +

    Runtime enum object.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, number> | null -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -655,40 +721,38 @@
Type:
- - -
+ + -
-

(non-null) options :Object.<string, *>

+

(non-null) options :Object.<string, *>

- -
-
- -
-

Options.

-
- - -
Type:
-
    -
  • - + + +
    +

    Options.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, *> -
    • -
    - +
  • +
+ + + + -
- @@ -698,7 +762,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -726,50 +798,56 @@
Type:
- - - + + -
-

(nullable) parent :ProtoBuf.Reflect.T

+

(nullable) parent :ProtoBuf.Reflect.T

- -
-
- -
-

Parent object.

-
- - -
Type:
- - +
+

Parent object.

+
- -
- - - +
Type:
+ + + + + + +
+ + + + + +
Inherited From:
+
+ + + + + + + + @@ -797,40 +875,38 @@
Type:
- - - + + -
-

(non-null) syntax :string

+

(non-null) syntax :string

- -
-
- -
-

Syntax level (e.g., proto2 or proto3).

-
- - -
Type:
-
    -
  • - + + +
    +

    Syntax level (e.g., proto2 or proto3).

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
- @@ -840,7 +916,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -868,39 +952,41 @@
Type:
- - - - + + +

Methods

-
+ -
-

(static) getName(enmnon-null, value) → (nullable) {string}

-
-
- -
-

Gets the string name of an enum value.

-
- +

(static) getName(enmnon-null, value) → (nullable) {string}

- + +
+

Gets the string name of an enum value.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -969,10 +1055,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1006,20 +1102,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

Name or null if not present

@@ -1038,33 +1134,35 @@
Returns:
- - - + + -
-

addChild(child)

-
-
- -
-

Adds a child to the namespace.

-
- +

addChild(child)

- + +
+

Adds a child to the namespace.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1110,11 +1208,13 @@
Parameters:
- - + + + + +
- @@ -1124,7 +1224,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -1152,25 +1260,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the child cannot be added (duplicate) +

If the child cannot be added (duplicate)

+
@@ -1184,38 +1293,41 @@
Throws:
+
- - - - + + + -
-

build(rebuild) → (non-null) {Object.<string, number>}

-
-
- -
-

Builds this enum and returns the runtime counterpart.

-
- +

build(rebuild) → (non-null) {Object.<string, number>}

- + +
+

Builds this enum and returns the runtime counterpart.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1261,10 +1373,25 @@
Parameters:
+ + + + + + +
+ -
+ + + + +
Overrides:
+
@@ -1298,20 +1425,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -1326,35 +1453,38 @@
Returns:
- - - + + -
-

buildOpt() → {Object.<string, *>}

-
-
- -
-

Builds the namespace's '$options' property.

-
- +

buildOpt() → {Object.<string, *>}

- - - +
+

Builds the namespace's '$options' property.

+
+ + + + + + + + + + + + +
- @@ -1364,7 +1494,15 @@

buildOptInherited From:
+

+ + + + + + + + @@ -1392,20 +1530,20 @@

buildOpt - - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -1420,35 +1558,38 @@
Returns:
- - - + + -
-

fqn() → {string}

-
-
- -
-

Returns the fully qualified name of this object.

-
- +

fqn() → {string}

- - - +
+

Returns the fully qualified name of this object.

+
+ + + + + + + + + + + + +
- @@ -1458,7 +1599,15 @@

fqnInherited From:
+

+ + + + + + + + @@ -1486,20 +1635,20 @@

fqn

Fully qualified name as of ".PATH.TO.THIS"

@@ -1518,33 +1667,35 @@
Returns:
- - - + + -
-

getChild(nameOrId) → (nullable) {ProtoBuf.Reflect.T}

-
-
- -
-

Gets a child by its name or id.

-
- +

getChild(nameOrId) → (nullable) {ProtoBuf.Reflect.T}

- + +
+

Gets a child by its name or id.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1593,11 +1744,13 @@
Parameters:
- - + + + + +
- @@ -1607,7 +1760,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -1635,20 +1796,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The child or null if not found

@@ -1667,33 +1828,35 @@
Returns:
- - - + + -
-

getChildren(typeopt) → {Array.<ProtoBuf.Reflect.T>}

-
-
- -
-

Returns an array of the namespace's children.

-
- +

getChildren(typeopt) → {Array.<ProtoBuf.Reflect.T>}

- + +
+

Returns an array of the namespace's children.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1749,12 +1912,25 @@
Parameters:
- -
+ + + + + + + + +
+ + + -
+
Inherited From:
+
@@ -1762,10 +1938,7 @@
Parameters:
-
Inherited From:
-
+ @@ -1793,20 +1966,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -1821,33 +1994,35 @@
Returns:
- - - + + -
-

getOption(nameopt) → {*|Object.<string, *>}

-
-
- -
-

Gets the value assigned to the option with the specified name.

-
- +

getOption(nameopt) → {*|Object.<string, *>}

- + +
+

Gets the value assigned to the option with the specified name.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1905,11 +2080,13 @@
Parameters:
- - + + + + +
- @@ -1919,7 +2096,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -1947,20 +2132,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

null} Option value or NULL if there is no such option

@@ -1982,33 +2167,35 @@
Returns:
- - - + + -
-

qn(tnon-null) → {string}

-
-
- -
-

Determines the shortest qualified name of the specified type, if any, relative to this namespace.

-
- +

qn(tnon-null) → {string}

- + +
+

Determines the shortest qualified name of the specified type, if any, relative to this namespace.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2054,11 +2241,13 @@
Parameters:
- - + + + + +
- @@ -2068,7 +2257,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -2096,20 +2293,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The shortest qualified name or, if there is none, the fqn

@@ -2128,33 +2325,35 @@
Returns:
- - - + + -
-

resolve(qn, excludeNonNamespaceopt) → (nullable) {ProtoBuf.Reflect.Namespace}

-
-
- -
-

Resolves a reflect object inside of this namespace.

-
- +

resolve(qn, excludeNonNamespaceopt) → (nullable) {ProtoBuf.Reflect.Namespace}

- + +
+

Resolves a reflect object inside of this namespace.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2246,11 +2445,13 @@
Parameters:
- - + + + + +
- @@ -2260,7 +2461,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -2288,20 +2497,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The resolved type or null if not found

@@ -2320,33 +2529,35 @@
Returns:
- - - + + -
-

toString(includeClassopt)

-
-
- -
-

Returns a string representation of this Reflect object (its fully qualified name).

-
- +

toString(includeClassopt)

- + +
+

Returns a string representation of this Reflect object (its fully qualified name).

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2404,11 +2615,13 @@
Parameters:
- - + + + + +
- @@ -2418,7 +2631,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -2446,32 +2667,31 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

String representation

- - - - + + + @@ -2487,13 +2707,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Reflect.Extension.html b/docs/ProtoBuf.Reflect.Extension.html index 56f1eaa67..29afcb155 100644 --- a/docs/ProtoBuf.Reflect.Extension.html +++ b/docs/ProtoBuf.Reflect.Extension.html @@ -23,43 +23,47 @@

Class: Extension

+
-

- ProtoBuf.Reflect. - Extension -

+

+ ProtoBuf.Reflect. + + Extension +

+
+ - -
+

new Extension(buildernon-null, parentnon-null, name, fieldnon-null)

-
-
- -
-

An extension (field).

-
- - - +
+

An extension (field).

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -174,10 +178,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -211,25 +225,22 @@
Parameters:
- - - - - - - -
- -
+ + + + + + + @@ -244,34 +255,41 @@
Parameters:

Members

-
+ -
-

(non-null) field :ProtoBuf.Reflect.Message.Field

+

(non-null) field :ProtoBuf.Reflect.Message.Field

- -
-
- -
-

Extended message field.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -305,12 +323,11 @@
Type:
- - -
-
+ + + @@ -328,13 +345,13 @@
Type:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Reflect.Message.ExtensionField.html b/docs/ProtoBuf.Reflect.Message.ExtensionField.html index 3d1d98503..259cc9c3a 100644 --- a/docs/ProtoBuf.Reflect.Message.ExtensionField.html +++ b/docs/ProtoBuf.Reflect.Message.ExtensionField.html @@ -23,43 +23,47 @@

Class: ExtensionField

+
-

- ProtoBuf.Reflect.Message. - ExtensionField -

+

+ ProtoBuf.Reflect.Message. + + ExtensionField +

+
+ - -
+

new ExtensionField(buildernon-null, messagenon-null, rule, type, name, id, optionsopt, non-null)

-
-
- -
-

Constructs a new Message ExtensionField.

-
- - - +
+

Constructs a new Message ExtensionField.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -303,10 +307,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -340,20 +354,19 @@
Parameters:
- - - - - - - -
+ + + + + + +
@@ -361,10 +374,13 @@
Parameters:

Extends

- - + + + + + @@ -379,35 +395,34 @@

Extends

Members

-
+ -
-

(non-null) builder :ProtoBuf.Builder

+

(non-null) builder :ProtoBuf.Builder

- -
-
- -
-

Builder reference.

-
- - -
Type:
-
    -
  • - + + +
    +

    Builder reference.

    +
    + + + +
    Type:
    + - +
  • +
+ + + + -
- @@ -417,7 +432,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -445,25 +468,48 @@
Type:
- - - + + -
-

className

+

className :string

+ + + + +
+

Fully qualified class name

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
- -
-
-
+
Inherited From:
+
@@ -471,10 +517,7 @@

classNameInherited From: -
+ @@ -490,7 +533,7 @@

classNameSource:
@@ -502,40 +545,38 @@

className - - -

+ + -
-

defaultValue :*

+

defaultValue :*

- -
-
- -
-

Default value.

-
- - -
Type:
-
    -
  • - + + +
    +

    Default value.

    +
    + + + +
    Type:
    +
      +
    • + * -
    • -
    - +
  • +
+ + + + -
- @@ -545,7 +586,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -573,40 +622,38 @@
Type:
- - - + + -
-

element :ProtoBuf.Element

+

element :ProtoBuf.Element

- -
-
- -
-

Element implementation. Created in build() after types are resolved.

-
- - -
Type:
-
    -
  • - + + +
    +

    Element implementation. Created in build() after types are resolved.

    +
    + + + +
    Type:
    +
      +
    • + ProtoBuf.Element -
    • -
    - +
  • +
+ + + + -
- @@ -616,7 +663,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -644,39 +699,45 @@
Type:
- - - + + -
-

(non-null) extension :ProtoBuf.Reflect.Extension

+

(non-null) extension :ProtoBuf.Reflect.Extension

- -
-
- -
-

Extension reference.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -710,40 +771,38 @@
Type:
- - -
+ + -
-

id :number

+

id :number

- -
-
- -
-

Unique message field id.

-
- - -
Type:
-
    -
  • - + + +
    +

    Unique message field id.

    +
    + + + +
    Type:
    +
      +
    • + number -
    • -
    - +
  • +
+ + + + -
- @@ -753,7 +812,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -781,41 +848,39 @@
Type:
- - - + + -
-

keyElement :ProtoBuf.Element

+

keyElement :ProtoBuf.Element

+ + + + +
+

Key element implementation, for map fields. Created in build() after +types are resolved.

+
+ + + +
Type:
+
    +
  • + +ProtoBuf.Element + + +
  • +
- -
-
- -
-

Key element implementation, for map fields. Created in build() after -types are resolved.

-
- - -
Type:
-
    -
  • - -ProtoBuf.Element -
  • -
- -
- @@ -825,7 +890,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -853,31 +926,28 @@
Type:
- - - + + -
-

keyType :string|Object|null

+

keyType :string|Object|null

- -
-
- -
-

Message field key type. Type reference string if unresolved, protobuf + + + +

+

Message field key type. Type reference string if unresolved, protobuf type if resolved. Valid only if this.map === true, null otherwise.

-
- +
- -
Type:
-
    -
  • - + + +
    Type:
    +
      +
    • + string | @@ -887,13 +957,14 @@
      Type:
      null -
    • -
    - +
  • +
+ + + + -
- @@ -903,7 +974,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -931,40 +1010,38 @@
Type:
- - - + + -
-

map :boolean

+

map :boolean

- -
-
- -
-

Message field map flag.

-
- - -
Type:
-
    -
  • - + + +
    +

    Message field map flag.

    +
    + + + +
    Type:
    +
      +
    • + boolean -
    • -
    - +
  • +
+ + + + -
- @@ -974,7 +1051,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -1002,40 +1087,38 @@
Type:
- - - + + -
-

name :string

+

name :string

- -
-
- -
-

Object name in namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Object name in namespace.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
- @@ -1045,7 +1128,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -1073,40 +1164,38 @@
Type:
- - - + + -
-

(nullable) oneof :ProtoBuf.Reflect.Message.OneOf

+

(nullable) oneof :ProtoBuf.Reflect.Message.OneOf

- -
-
- -
-

Enclosing OneOf.

-
- - -
Type:
- + + + + -
- @@ -1116,7 +1205,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -1144,40 +1241,38 @@
Type:
- - - + + -
-

(non-null) options :Object.<string, *>

+

(non-null) options :Object.<string, *>

- -
-
- -
-

Message field options.

-
- - -
Type:
-
    -
  • - + + +
    +

    Message field options.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, *> -
    • -
    - +
  • +
+ + + + -
- @@ -1187,7 +1282,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -1215,40 +1318,38 @@
Type:
- - - + + -
-

originalName :string

+

originalName :string

- -
-
- -
-

Original field name.

-
- - -
Type:
-
    -
  • - + + +
    +

    Original field name.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
- @@ -1258,7 +1359,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -1286,40 +1395,38 @@
Type:
- - - + + -
-

(nullable) parent :ProtoBuf.Reflect.T

+

(nullable) parent :ProtoBuf.Reflect.T

- -
-
- -
-

Parent object.

-
- - -
Type:
- + + + + -
- @@ -1329,7 +1436,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -1357,40 +1472,38 @@
Type:
- - - + + -
-

repeated :boolean

+

repeated :boolean

- -
-
- -
-

Message field repeated flag.

-
- - -
Type:
-
    -
  • - + + +
    +

    Message field repeated flag.

    +
    + + + +
    Type:
    +
      +
    • + boolean -
    • -
    - +
  • +
+ + + + -
- @@ -1400,7 +1513,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -1428,40 +1549,38 @@
Type:
- - - + + -
-

required :boolean

+

required :boolean

- -
-
- -
-

Message field required flag.

-
- - -
Type:
-
    -
  • - + + +
    +

    Message field required flag.

    +
    + + + +
    Type:
    +
      +
    • + boolean -
    • -
    - +
  • +
+ + + + -
- @@ -1471,7 +1590,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -1499,43 +1626,41 @@
Type:
- - - + + -
-

resolvedType :ProtoBuf.Reflect.T|null

+

resolvedType :ProtoBuf.Reflect.T|null

- -
-
- -
-

Resolved type reference inside the global namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Resolved type reference inside the global namespace.

    +
    + + + +
    Type:
    + - +
  • +
+ + + + -
- @@ -1545,7 +1670,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -1573,40 +1706,38 @@
Type:
- - - + + -
-

syntax :string

+

syntax :string

- -
-
- -
-

Syntax level of this definition (e.g., proto3).

-
- - -
Type:
-
    -
  • - + + +
    +

    Syntax level of this definition (e.g., proto3).

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
- @@ -1616,7 +1747,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -1644,44 +1783,42 @@
Type:
- - - + + -
-

type :string|Object

+

type :string|Object

- -
-
- -
-

Message field type. Type reference string if unresolved, protobuf type if + + + +

+

Message field type. Type reference string if unresolved, protobuf type if resolved. In a map field, this is the value type.

-
- +
- -
Type:
-
    -
  • - + + +
    Type:
    +
      +
    • + string | Object -
    • -
    - +
  • +
+ + + + -
- @@ -1691,7 +1828,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -1719,40 +1864,54 @@
Type:
- - - - + + +

Methods

-
+ -
-

build()

-
-
- -
-

Builds the field.

-
- +

build()

+ + +
+

Builds this type.

+
+ + + + + + + + + + + + + +
+ -
+
Inherited From:
+
@@ -1760,10 +1919,7 @@

buildInherited From: -
+ @@ -1779,7 +1935,7 @@

buildSource:
@@ -1791,43 +1947,74 @@

build - - - - - - + + + + +
Throws:
+ + + +
+
+
+

If this type cannot be built directly

+
+
+
+
+
+
+ Type +
+
+ +Error + + +
+
+
+
+
+ -

+ + + + -
-

calculate(value, messagenon-null) → {number}

-
-
- -
-

Calculates the length of this field's value on the network level.

-
- +

calculate(value, messagenon-null) → {number}

- + +
+

Calculates the length of this field's value on the network level.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1896,11 +2083,13 @@
Parameters:
- - + + + + +
- @@ -1910,7 +2099,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -1938,20 +2135,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

Byte length

@@ -1970,33 +2167,35 @@
Returns:
- - - + + -
-

decode(wireType, buffer, skipRepeatedopt) → {*}

-
-
- -
-

Decode the field value from the specified buffer.

-
- +

decode(wireType, buffer, skipRepeatedopt) → {*}

- + +
+

Decode the field value from the specified buffer.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2116,11 +2315,13 @@
Parameters:
- - + + + + +
- @@ -2130,7 +2331,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -2158,25 +2367,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the field cannot be decoded +

If the field cannot be decoded

+
@@ -2190,15 +2400,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Decoded value: array for packed repeated fields, [key, value] for map fields, or an individual value otherwise.

@@ -2218,33 +2429,35 @@
Returns:
- - - + + -
-

encode(value, buffer, messagenon-null) → {ByteBuffer}

-
-
- -
-

Encodes the specified field value to the specified buffer.

-
- +

encode(value, buffer, messagenon-null) → {ByteBuffer}

- + +
+

Encodes the specified field value to the specified buffer.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2336,10 +2549,23 @@
Parameters:
+ + + + + + +
+ -
+ + +
Inherited From:
+
@@ -2347,10 +2573,7 @@
Parameters:
-
Inherited From:
-
+ @@ -2378,25 +2601,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the field cannot be encoded +

If the field cannot be encoded

+
@@ -2410,15 +2634,16 @@
Throws:
+
- - - -
Returns:
- + + +
Returns:
+ +

The ByteBuffer for chaining

@@ -2437,35 +2662,38 @@
Returns:
- - - + + -
-

fqn() → {string}

-
-
- -
-

Returns the fully qualified name of this object.

-
- +

fqn() → {string}

- - - +
+

Returns the fully qualified name of this object.

+
+ + + + + + + + + + + + +
- @@ -2475,7 +2703,15 @@

fqnInherited From:
+

+ + + + + + + + @@ -2503,20 +2739,20 @@

fqn

Fully qualified name as of ".PATH.TO.THIS"

@@ -2535,34 +2771,36 @@
Returns:
- - - + + -
-

hasWirePresence(value, messagenon-null) → {boolean}

-
-
+ +

hasWirePresence(value, messagenon-null) → {boolean}

-
-

Determines whether the field will have a presence on the wire given its + + + +

+

Determines whether the field will have a presence on the wire given its value.

-
- +
+ + - - + + + + +
Parameters:
-
Parameters:
- @@ -2631,11 +2869,13 @@
Parameters:
- - + + + + +
- @@ -2645,7 +2885,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -2673,20 +2921,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

Whether the field will be present on the wire

@@ -2705,33 +2953,35 @@
Returns:
- - - + + -
-

toString(includeClassopt)

-
-
- -
-

Returns a string representation of this Reflect object (its fully qualified name).

-
- +

toString(includeClassopt)

- + +
+

Returns a string representation of this Reflect object (its fully qualified name).

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2789,11 +3039,13 @@
Parameters:
- - + + + + +
- @@ -2803,7 +3055,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -2831,53 +3091,55 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

String representation

- - - + + -
-

verifyValue(value, skipRepeatedopt) → {*}

-
-
- -
-

Checks if the given value can be set for this field.

-
- +

verifyValue(value, skipRepeatedopt) → {*}

- + +
+

Checks if the given value can be set for this field.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2966,11 +3228,13 @@
Parameters:
- - + + + + +
- @@ -2980,7 +3244,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -3008,25 +3280,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the value cannot be set for this field +

If the value cannot be set for this field

+
@@ -3040,15 +3313,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Verified, maybe adjusted, value

@@ -3067,12 +3341,11 @@
Returns:
- - - - + + + @@ -3088,13 +3361,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Reflect.Message.Field.html b/docs/ProtoBuf.Reflect.Message.Field.html index 9da8563f3..f9c678b89 100644 --- a/docs/ProtoBuf.Reflect.Message.Field.html +++ b/docs/ProtoBuf.Reflect.Message.Field.html @@ -23,43 +23,47 @@

Class: Field

+
-

- ProtoBuf.Reflect.Message. - Field -

+

+ ProtoBuf.Reflect.Message. + + Field +

+
+ - -
+

new Field(buildernon-null, messagenon-null, rule, keytypenullable, type, name, id, optionsopt, oneofopt, non-null, syntaxnullable)

-
-
- -
-

Constructs a new Message Field.

-
- - - +
+

Constructs a new Message Field.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -402,10 +406,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -439,20 +453,19 @@
Parameters:
- - - - - - - -
+ + + + + + +
@@ -460,10 +473,13 @@
Parameters:

Extends

- - + + + + + @@ -478,35 +494,34 @@

Extends

Members

-
+ -
-

(non-null) builder :ProtoBuf.Builder

+

(non-null) builder :ProtoBuf.Builder

- -
-
- -
-

Builder reference.

-
- - -
Type:
-
    -
  • - + + +
    +

    Builder reference.

    +
    + + + +
    Type:
    + - +
  • +
+ + + + -
- @@ -516,7 +531,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -544,25 +567,50 @@
Type:
- - - + + -
-

className

+

className :string

+ + + + +
+

Fully qualified class name

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
-
-
+ -
+
Overrides:
+
@@ -584,7 +632,7 @@

classNameSource:
@@ -596,39 +644,45 @@

className - - -

+ + -
-

defaultValue :*

+

defaultValue :*

- -
-
- -
-

Default value.

-
- - -
Type:
-
    -
  • - + + +
    +

    Default value.

    +
    + + + +
    Type:
    +
      +
    • + * -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -662,39 +716,45 @@
Type:
- - -
+ + -
-

element :ProtoBuf.Element

+

element :ProtoBuf.Element

- -
-
- -
-

Element implementation. Created in build() after types are resolved.

-
- - -
Type:
-
    -
  • - + + +
    +

    Element implementation. Created in build() after types are resolved.

    +
    + + + +
    Type:
    +
      +
    • + ProtoBuf.Element -
    • -
    +
  • +
+ + + + + +
+ + + -
+ @@ -728,39 +788,45 @@
Type:
- - -
+ + -
-

id :number

+

id :number

- -
-
- -
-

Unique message field id.

-
- - -
Type:
-
    -
  • - + + +
    +

    Unique message field id.

    +
    + + + +
    Type:
    +
      +
    • + number -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -794,40 +860,46 @@
Type:
- - -
+ + -
-

keyElement :ProtoBuf.Element

+

keyElement :ProtoBuf.Element

- -
-
- -
-

Key element implementation, for map fields. Created in build() after + + + +

+

Key element implementation, for map fields. Created in build() after types are resolved.

-
- +
- -
Type:
-
    -
  • - + + +
    Type:
    +
      +
    • + ProtoBuf.Element -
    • -
    +
  • +
+ + + + + +
+ + + -
+ @@ -861,31 +933,28 @@
Type:
- - -
+ + -
-

keyType :string|Object|null

+

keyType :string|Object|null

- -
-
- -
-

Message field key type. Type reference string if unresolved, protobuf + + + +

+

Message field key type. Type reference string if unresolved, protobuf type if resolved. Valid only if this.map === true, null otherwise.

-
- +
- -
Type:
-
    -
  • - + + +
    Type:
    +
      +
    • + string | @@ -895,12 +964,21 @@
      Type:
      null -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -934,39 +1012,45 @@
Type:
- - -
+ + -
-

map :boolean

+

map :boolean

- -
-
- -
-

Message field map flag.

-
- - -
Type:
-
    -
  • - + + +
    +

    Message field map flag.

    +
    + + + +
    Type:
    +
      +
    • + boolean -
    • -
    +
  • +
+ + + + + +
+ + + -
+ @@ -1000,39 +1084,39 @@
Type:
- - -
+ + -
-

name :string

+

name :string

- -
-
- -
-

Object name in namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Object name in namespace.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
+ @@ -1040,10 +1124,16 @@
Type:
-
Inherited From:
-
+ + + + + + @@ -1071,39 +1161,45 @@
Type:
- - -
+ + -
-

(nullable) oneof :ProtoBuf.Reflect.Message.OneOf

+

(nullable) oneof :ProtoBuf.Reflect.Message.OneOf

- -
-
- -
-

Enclosing OneOf.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -1137,39 +1233,45 @@
Type:
- - -
+ + -
-

(non-null) options :Object.<string, *>

+

(non-null) options :Object.<string, *>

- -
-
- -
-

Message field options.

-
- - -
Type:
-
    -
  • - + + +
    +

    Message field options.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, *> -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -1203,39 +1305,45 @@
Type:
- - -
+ + -
-

originalName :string

+

originalName :string

- -
-
- -
-

Original field name.

-
- - -
Type:
-
    -
  • - + + +
    +

    Original field name.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -1269,40 +1377,38 @@
Type:
- - -
+ + -
-

(nullable) parent :ProtoBuf.Reflect.T

+

(nullable) parent :ProtoBuf.Reflect.T

- -
-
- -
-

Parent object.

-
- - -
Type:
- + + + + -
- @@ -1312,7 +1418,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -1340,39 +1454,45 @@
Type:
- - - + + -
-

repeated :boolean

+

repeated :boolean

- -
-
- -
-

Message field repeated flag.

-
- - -
Type:
-
    -
  • - + + +
    +

    Message field repeated flag.

    +
    + + + +
    Type:
    +
      +
    • + boolean -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -1406,39 +1526,45 @@
Type:
- - -
+ + -
-

required :boolean

+

required :boolean

- -
-
- -
-

Message field required flag.

-
- - -
Type:
-
    -
  • - + + +
    +

    Message field required flag.

    +
    + + + +
    Type:
    +
      +
    • + boolean -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -1472,42 +1598,48 @@
Type:
- - -
+ + -
-

resolvedType :ProtoBuf.Reflect.T|null

+

resolvedType :ProtoBuf.Reflect.T|null

- -
-
- -
-

Resolved type reference inside the global namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Resolved type reference inside the global namespace.

    +
    + + + +
    Type:
    + +
  • +
+ + + + + +
+ -
+ + + @@ -1541,39 +1673,45 @@
Type:
- - -
+ + -
-

syntax :string

+

syntax :string

- -
-
- -
-

Syntax level of this definition (e.g., proto3).

-
- - -
Type:
-
    -
  • - + + +
    +

    Syntax level of this definition (e.g., proto3).

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -1607,43 +1745,49 @@
Type:
- - -
+ + -
-

type :string|Object

+

type :string|Object

- -
-
- -
-

Message field type. Type reference string if unresolved, protobuf type if + + + +

+

Message field type. Type reference string if unresolved, protobuf type if resolved. In a map field, this is the value type.

-
- +
- -
Type:
-
    -
  • - + + +
    Type:
    +
      +
    • + string | Object -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -1677,31 +1821,44 @@
Type:
- - -
- + + +

Methods

-
+ -
-

build()

-
-
+ +

build()

-
-

Builds the field.

-
- + + + +
+

Builds this type.

+
+ + + + + + + + + + + + + +
@@ -1710,7 +1867,10 @@

build +
Overrides:
+
@@ -1732,7 +1892,7 @@

buildSource:
@@ -1744,43 +1904,74 @@

build - - - - - - + + + + +
Throws:
+ + + +
+
+
+

If this type cannot be built directly

+
+
+
+
+
+
+ Type +
+
+ +Error + + +
+
+
+
+
+ -

+ + + + -
-

calculate(value, messagenon-null) → {number}

-
-
- -
-

Calculates the length of this field's value on the network level.

-
- +

calculate(value, messagenon-null) → {number}

- + +
+

Calculates the length of this field's value on the network level.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1849,10 +2040,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1886,20 +2087,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

Byte length

@@ -1918,33 +2119,35 @@
Returns:
- - - + + -
-

decode(wireType, buffer, skipRepeatedopt) → {*}

-
-
- -
-

Decode the field value from the specified buffer.

-
- +

decode(wireType, buffer, skipRepeatedopt) → {*}

- + +
+

Decode the field value from the specified buffer.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2064,10 +2267,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2101,25 +2314,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the field cannot be decoded +

If the field cannot be decoded

+
@@ -2133,15 +2347,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Decoded value: array for packed repeated fields, [key, value] for map fields, or an individual value otherwise.

@@ -2161,33 +2376,35 @@
Returns:
- - - + + -
-

encode(value, buffer, messagenon-null) → {ByteBuffer}

-
-
+ +

encode(value, buffer, messagenon-null) → {ByteBuffer}

-
-

Encodes the specified field value to the specified buffer.

-
- - - +
+

Encodes the specified field value to the specified buffer.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2279,10 +2496,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2316,25 +2543,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the field cannot be encoded +

If the field cannot be encoded

+
@@ -2348,15 +2576,16 @@
Throws:
+
- - - -
Returns:
- + + +
Returns:
+ +

The ByteBuffer for chaining

@@ -2375,35 +2604,38 @@
Returns:
- - - + + -
-

fqn() → {string}

-
-
- -
-

Returns the fully qualified name of this object.

-
- +

fqn() → {string}

- - - +
+

Returns the fully qualified name of this object.

+
+ + + + + + + + + + + + +
- @@ -2413,7 +2645,15 @@

fqnInherited From:
+

+ + + + + + + + @@ -2441,20 +2681,20 @@

fqn

Fully qualified name as of ".PATH.TO.THIS"

@@ -2473,34 +2713,36 @@
Returns:
- - - + + -
-

hasWirePresence(value, messagenon-null) → {boolean}

-
-
+ +

hasWirePresence(value, messagenon-null) → {boolean}

-
-

Determines whether the field will have a presence on the wire given its + + + +

+

Determines whether the field will have a presence on the wire given its value.

-
- +
- - + + + + + + +
Parameters:
-
Parameters:
- @@ -2569,10 +2811,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2606,20 +2858,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

Whether the field will be present on the wire

@@ -2638,33 +2890,35 @@
Returns:
- - - + + -
-

toString(includeClassopt)

-
-
- -
-

Returns a string representation of this Reflect object (its fully qualified name).

-
- +

toString(includeClassopt)

- + +
+

Returns a string representation of this Reflect object (its fully qualified name).

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2722,11 +2976,13 @@
Parameters:
- - + + + + +
- @@ -2736,7 +2992,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -2764,53 +3028,55 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

String representation

- - - + + -
-

verifyValue(value, skipRepeatedopt) → {*}

-
-
- -
-

Checks if the given value can be set for this field.

-
- +

verifyValue(value, skipRepeatedopt) → {*}

- + +
+

Checks if the given value can be set for this field.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2899,10 +3165,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2936,25 +3212,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the value cannot be set for this field +

If the value cannot be set for this field

+
@@ -2968,15 +3245,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Verified, maybe adjusted, value

@@ -2995,12 +3273,11 @@
Returns:
- - - - + + + @@ -3016,13 +3293,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Reflect.Message.OneOf.html b/docs/ProtoBuf.Reflect.Message.OneOf.html index 808cd063a..9c8d04211 100644 --- a/docs/ProtoBuf.Reflect.Message.OneOf.html +++ b/docs/ProtoBuf.Reflect.Message.OneOf.html @@ -23,43 +23,47 @@

Class: OneOf

+
-

- ProtoBuf.Reflect.Message. - OneOf -

+

+ ProtoBuf.Reflect.Message. + + OneOf +

+
+ - -
+

new OneOf(buildernon-null, messagenon-null, name)

-
-
- -
-

Constructs a new Message OneOf.

-
- - - +
+

Constructs a new Message OneOf.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -151,10 +155,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -188,20 +202,19 @@
Parameters:
- - - - - - - -
+ + + + + + +
@@ -209,10 +222,13 @@
Parameters:

Extends

- - + + + + + @@ -227,35 +243,34 @@

Extends

Members

-
+ -
-

(non-null) builder :ProtoBuf.Builder

+

(non-null) builder :ProtoBuf.Builder

- -
-
- -
-

Builder reference.

-
- - -
Type:
-
    -
  • - + + +
    +

    Builder reference.

    +
    + + + +
    Type:
    + - +
  • +
+ + + + -
- @@ -265,7 +280,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -293,40 +316,38 @@
Type:
- - - + + -
-

className :string

+

className :string

- -
-
- -
-

Fully qualified class name

-
- - -
Type:
-
    -
  • - + + +
    +

    Fully qualified class name

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
- @@ -336,7 +357,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -364,39 +393,45 @@
Type:
- - - + + -
-

(non-null) fields :Array.<ProtoBuf.Reflect.Message.Field>

+

(non-null) fields :Array.<!ProtoBuf.Reflect.Message.Field>

+ + + + +
+

Enclosed fields.

+
+ + + +
Type:
+ - -
-
- -
-

Enclosed fields.

-
- - -
Type:
- + +
+ -
+ + + @@ -430,40 +465,38 @@
Type:
- - -
+ + -
-

name :string

+

name :string

- -
-
- -
-

Object name in namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Object name in namespace.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
- @@ -473,7 +506,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -501,40 +542,38 @@
Type:
- - - + + -
-

(nullable) parent :ProtoBuf.Reflect.T

+

(nullable) parent :ProtoBuf.Reflect.T

- -
-
- -
-

Parent object.

-
- - -
Type:
- + + + + -
- @@ -544,7 +583,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -572,41 +619,44 @@
Type:
- - - - + + +

Methods

-
+ -
-

build()

-
-
- -
-

Builds this type.

-
- +

build()

- - - +
+

Builds this type.

+
+ + + + + + + + + + + + +
- @@ -616,7 +666,15 @@

buildInherited From:
+

+ + + + + + + + @@ -644,25 +702,26 @@

build - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If this type cannot be built directly +

If this type cannot be built directly

+
@@ -676,40 +735,44 @@
Throws:
+
- - - - + + + -
-

fqn() → {string}

-
-
- -
-

Returns the fully qualified name of this object.

-
- +

fqn() → {string}

- - - +
+

Returns the fully qualified name of this object.

+
+ + + + + + + + + + + + +
- @@ -719,7 +782,15 @@

fqnInherited From:
+

+ + + + + + + + @@ -747,20 +818,20 @@

fqn

Fully qualified name as of ".PATH.TO.THIS"

@@ -779,33 +850,35 @@
Returns:

- - - + + -
-

toString(includeClassopt)

-
-
- -
-

Returns a string representation of this Reflect object (its fully qualified name).

-
- +

toString(includeClassopt)

- + +
+

Returns a string representation of this Reflect object (its fully qualified name).

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -863,11 +936,13 @@
Parameters:
- - + + + + +
- @@ -877,7 +952,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -905,32 +988,31 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

String representation

- - - - + + + @@ -946,13 +1028,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Reflect.Message.html b/docs/ProtoBuf.Reflect.Message.html index 42690ba7f..48292bc6a 100644 --- a/docs/ProtoBuf.Reflect.Message.html +++ b/docs/ProtoBuf.Reflect.Message.html @@ -23,43 +23,47 @@

Class: Message

+
-

- ProtoBuf.Reflect. - Message -

+

+ ProtoBuf.Reflect. + + Message +

+
+ - -
+

new Message(buildernon-null, parentnon-null, name, optionsopt, isGroupopt, syntaxnullable)

-
-
- -
-

Constructs a new Message.

-
- - - +
+

Constructs a new Message.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -276,10 +280,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -313,20 +327,19 @@
Parameters:
- - - - - - - -
+ + + + + + +
@@ -334,10 +347,13 @@
Parameters:

Extends

- - + + + + + @@ -365,35 +381,34 @@

Classes

Members

-
+ -
-

(non-null) builder :ProtoBuf.Builder

+

(non-null) builder :ProtoBuf.Builder

- -
-
- -
-

Builder reference.

-
- - -
Type:
-
    -
  • - + + +
    +

    Builder reference.

    +
    + + + +
    Type:
    + - +
  • +
+ + + + -
- @@ -403,7 +418,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -431,40 +454,38 @@
Type:
- - - + + -
-

(non-null) children :Array.<ProtoBuf.Reflect.T>

+

(non-null) children :Array.<ProtoBuf.Reflect.T>

- -
-
- -
-

Children inside the namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Children inside the namespace.

    +
    + + + +
    Type:
    + - +
  • +
+ + + + -
- @@ -474,7 +495,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -502,25 +531,50 @@
Type:
- - - + + -
-

className

+

className :string

+ + + + +
+

Fully qualified class name

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
-
-
+ -
+
Overrides:
+
@@ -542,7 +596,7 @@

classNameSource:
@@ -554,39 +608,45 @@

className - - -

+ + -
-

(nullable) clazz :function

+

(nullable) clazz :function

- -
-
- -
-

Runtime message class.

-
- - -
Type:
-
    -
  • - + + +
    +

    Runtime message class.

    +
    + + + +
    Type:
    +
      +
    • + function -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -620,42 +680,48 @@
Type:
- - -
+ + -
-

extensions :!Array.<number>|undefined

+

extensions :!Array.<number>|undefined

- -
-
- -
-

Extensions range.

-
- - -
Type:
-
    -
  • - + + +
    +

    Extensions range.

    +
    + + + +
    Type:
    +
      +
    • + !Array.<number> | undefined -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -689,39 +755,45 @@
Type:
- - -
+ + -
-

isGroup :boolean

+

isGroup :boolean

- -
-
- -
-

Whether this is a legacy group or not.

-
- - -
Type:
-
    -
  • - + + +
    +

    Whether this is a legacy group or not.

    +
    + + + +
    Type:
    +
      +
    • + boolean -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -755,42 +827,40 @@
Type:
- - -
+ + -
-

name :string

+

name :string

- -
-
- -
-

Object name in namespace.

-
- - -
Type:
-
    -
  • - -string -
  • -
- +
+

Object name in namespace.

+
- -
- - + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + @@ -798,7 +868,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -826,40 +904,38 @@
Type:
- - - + + -
-

(non-null) options :Object.<string, *>

+

(non-null) options :Object.<string, *>

- -
-
- -
-

Options.

-
- - -
Type:
-
    -
  • - + + +
    +

    Options.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, *> -
    • -
    - +
  • +
+ + + + -
- @@ -869,7 +945,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -897,40 +981,38 @@
Type:
- - - + + -
-

(nullable) parent :ProtoBuf.Reflect.T

+

(nullable) parent :ProtoBuf.Reflect.T

- -
-
- -
-

Parent object.

-
- - -
Type:
- + + + + -
- @@ -940,7 +1022,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -968,40 +1058,38 @@
Type:
- - - + + -
-

(non-null) syntax :string

+

(non-null) syntax :string

- -
-
- -
-

Syntax level (e.g., proto2 or proto3).

-
- - -
Type:
-
    -
  • - + + +
    +

    Syntax level (e.g., proto2 or proto3).

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
- @@ -1011,7 +1099,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -1039,39 +1135,41 @@
Type:
- - - - + + +

Methods

-
+ -
-

addChild(child)

-
-
- -
-

Adds a child to the namespace.

-
- +

addChild(child)

- + +
+

Adds a child to the namespace.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1117,11 +1215,13 @@
Parameters:
- - + + + + +
- @@ -1131,7 +1231,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -1159,25 +1267,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the child cannot be added (duplicate) +

If the child cannot be added (duplicate)

+
@@ -1191,38 +1300,41 @@
Throws:
+
- - - - + + + -
-

build(rebuildopt) → {ProtoBuf.Reflect.Message}

-
-
- -
-

Builds the message and returns the runtime counterpart, which is a fully functional class.

-
- +

build(rebuildopt) → {ProtoBuf.Reflect.Message}

- + +
+

Builds the message and returns the runtime counterpart, which is a fully functional class.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1280,10 +1392,25 @@
Parameters:
+ + + + + + +
+ -
+ + + + +
Overrides:
+
@@ -1324,25 +1451,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be built +

If the message cannot be built

+
@@ -1356,15 +1484,16 @@
Throws:
+
- - - -
Returns:
- + + +
Returns:
+ +

Message class

@@ -1383,35 +1512,38 @@
Returns:
- - - + + -
-

buildOpt() → {Object.<string, *>}

-
-
- -
-

Builds the namespace's '$options' property.

-
- +

buildOpt() → {Object.<string, *>}

- - - +
+

Builds the namespace's '$options' property.

+
+ + + + + + + + + + + + +
- @@ -1421,7 +1553,15 @@

buildOptInherited From:
+

+ + + + + + + + @@ -1449,20 +1589,20 @@

buildOpt - - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -1477,33 +1617,35 @@
Returns:
- - - + + -
-

calculate(messagenon-null) → {number}

-
-
- -
-

Calculates a runtime message's byte length.

-
- +

calculate(messagenon-null) → {number}

- + +
+

Calculates a runtime message's byte length.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1549,10 +1691,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1586,25 +1738,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If required fields are missing or the message cannot be calculated for another reason +

If required fields are missing or the message cannot be calculated for another reason

+
@@ -1618,15 +1771,16 @@
Throws:
+
- + + + +
Returns:
- -
Returns:
- - +

Byte length

@@ -1645,33 +1799,35 @@
Returns:
- - - + + -
-

decode(buffer, lengthopt, expectedGroupEndIdopt) → {ProtoBuf.Builder.Message}

-
-
- -
-

Decodes an encoded message and returns the decoded message.

-
- +

decode(buffer, lengthopt, expectedGroupEndIdopt) → {ProtoBuf.Builder.Message}

- + +
+

Decodes an encoded message and returns the decoded message.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1793,10 +1949,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1830,25 +1996,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be decoded +

If the message cannot be decoded

+
@@ -1862,15 +2029,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Decoded message

@@ -1889,33 +2057,35 @@
Returns:
- - - + + -
-

encode(messagenon-null, buffer, noVerifyopt) → {ByteBuffer}

-
-
- -
-

Encodes a runtime message's contents to the specified buffer.

-
- +

encode(messagenon-null, buffer, noVerifyopt) → {ByteBuffer}

- + +
+

Encodes a runtime message's contents to the specified buffer.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2035,10 +2205,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2072,25 +2252,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If required fields are missing or the message cannot be encoded for another reason +

If required fields are missing or the message cannot be encoded for another reason

+
@@ -2104,15 +2285,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

The ByteBuffer for chaining

@@ -2131,35 +2313,38 @@
Returns:
- - - + + -
-

fqn() → {string}

-
-
- -
-

Returns the fully qualified name of this object.

-
- +

fqn() → {string}

- - - +
+

Returns the fully qualified name of this object.

+
+ + + + + + + + + + + + +
- @@ -2169,7 +2354,15 @@

fqnInherited From:
+

+ + + + + + + + @@ -2197,20 +2390,20 @@

fqn

Fully qualified name as of ".PATH.TO.THIS"

@@ -2229,33 +2422,35 @@
Returns:
- - - + + -
-

getChild(nameOrId) → (nullable) {ProtoBuf.Reflect.T}

-
-
- -
-

Gets a child by its name or id.

-
- +

getChild(nameOrId) → (nullable) {ProtoBuf.Reflect.T}

- + +
+

Gets a child by its name or id.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2304,11 +2499,13 @@
Parameters:
- - + + + + +
- @@ -2318,7 +2515,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -2346,20 +2551,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The child or null if not found

@@ -2378,33 +2583,35 @@
Returns:
- - - + + -
-

getChildren(typeopt) → {Array.<ProtoBuf.Reflect.T>}

-
-
- -
-

Returns an array of the namespace's children.

-
- +

getChildren(typeopt) → {Array.<ProtoBuf.Reflect.T>}

- + +
+

Returns an array of the namespace's children.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2460,12 +2667,25 @@
Parameters:
- -
+ + + + + + + + +
+ + + -
+
Inherited From:
+
@@ -2473,10 +2693,7 @@
Parameters:
-
Inherited From:
-
+ @@ -2504,20 +2721,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -2532,33 +2749,35 @@
Returns:
- - - + + -
-

getOption(nameopt) → {*|Object.<string, *>}

-
-
- -
-

Gets the value assigned to the option with the specified name.

-
- +

getOption(nameopt) → {*|Object.<string, *>}

- + +
+

Gets the value assigned to the option with the specified name.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2616,11 +2835,13 @@
Parameters:
- - + + + + +
- @@ -2630,7 +2851,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -2658,20 +2887,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

null} Option value or NULL if there is no such option

@@ -2693,33 +2922,35 @@
Returns:
- - - + + -
-

qn(tnon-null) → {string}

-
-
- -
-

Determines the shortest qualified name of the specified type, if any, relative to this namespace.

-
- +

qn(tnon-null) → {string}

- + +
+

Determines the shortest qualified name of the specified type, if any, relative to this namespace.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2765,11 +2996,13 @@
Parameters:
- - + + + + +
- @@ -2779,7 +3012,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -2807,20 +3048,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The shortest qualified name or, if there is none, the fqn

@@ -2839,33 +3080,35 @@
Returns:
- - - + + -
-

resolve(qn, excludeNonNamespaceopt) → (nullable) {ProtoBuf.Reflect.Namespace}

-
-
- -
-

Resolves a reflect object inside of this namespace.

-
- +

resolve(qn, excludeNonNamespaceopt) → (nullable) {ProtoBuf.Reflect.Namespace}

- + +
+

Resolves a reflect object inside of this namespace.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2957,11 +3200,13 @@
Parameters:
- - + + + + +
- @@ -2971,7 +3216,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -2999,20 +3252,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The resolved type or null if not found

@@ -3031,33 +3284,35 @@
Returns:
- - - + + -
-

toString(includeClassopt)

-
-
- -
-

Returns a string representation of this Reflect object (its fully qualified name).

-
- +

toString(includeClassopt)

- + +
+

Returns a string representation of this Reflect object (its fully qualified name).

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -3115,11 +3370,13 @@
Parameters:
- - + + + + +
- @@ -3129,7 +3386,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -3157,32 +3422,31 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

String representation

- - - - + + + @@ -3198,13 +3462,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Reflect.Namespace.html b/docs/ProtoBuf.Reflect.Namespace.html index d99f8c1fc..6fce41431 100644 --- a/docs/ProtoBuf.Reflect.Namespace.html +++ b/docs/ProtoBuf.Reflect.Namespace.html @@ -23,43 +23,47 @@

Class: Namespace

+
-

- ProtoBuf.Reflect. - Namespace -

+

+ ProtoBuf.Reflect. + + Namespace +

+
+ - -
+

new Namespace(buildernon-null, parentnullable, name, optionsopt, syntaxnullable)

-
-
- -
-

Constructs a new Namespace.

-
- - - +
+

Constructs a new Namespace.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -245,10 +249,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -282,20 +296,19 @@
Parameters:
- - - - - - - -
+ + + + + + +
@@ -303,10 +316,13 @@
Parameters:

Extends

- - + + + + + @@ -321,35 +337,34 @@

Extends

Members

-
+ -
-

(non-null) builder :ProtoBuf.Builder

+

(non-null) builder :ProtoBuf.Builder

- -
-
- -
-

Builder reference.

-
- - -
Type:
-
    -
  • - + + +
    +

    Builder reference.

    +
    + + + +
    Type:
    + - +
  • +
+ + + + -
- @@ -359,7 +374,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -387,39 +410,45 @@
Type:
- - - + + -
-

(non-null) children :Array.<ProtoBuf.Reflect.T>

+

(non-null) children :Array.<ProtoBuf.Reflect.T>

- -
-
- -
-

Children inside the namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Children inside the namespace.

    +
    + + + +
    Type:
    + +
  • +
+ + + + + +
+ -
+ + + @@ -453,25 +482,50 @@
Type:
- - -
+ + -
-

className

+

className :string

+ + + + +
+

Fully qualified class name

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
-
-
+ -
+
Overrides:
+
@@ -493,7 +547,7 @@

classNameSource:
@@ -505,40 +559,38 @@

className - - -

+ + -
-

name :string

+

name :string

- -
-
- -
-

Object name in namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Object name in namespace.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
- @@ -548,7 +600,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -576,39 +636,45 @@
Type:
- - - + + -
-

(non-null) options :Object.<string, *>

+

(non-null) options :Object.<string, *>

- -
-
- -
-

Options.

-
- - -
Type:
-
    -
  • - + + +
    +

    Options.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, *> -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -642,40 +708,38 @@
Type:
- - -
+ + -
-

(nullable) parent :ProtoBuf.Reflect.T

+

(nullable) parent :ProtoBuf.Reflect.T

- -
-
- -
-

Parent object.

-
- - -
Type:
- + + + + -
- @@ -685,7 +749,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -713,39 +785,45 @@
Type:
- - - + + -
-

(non-null) syntax :string

+

(non-null) syntax :string

- -
-
- -
-

Syntax level (e.g., proto2 or proto3).

-
- - -
Type:
-
    -
  • - + + +
    +

    Syntax level (e.g., proto2 or proto3).

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -779,39 +857,41 @@
Type:
- - -
- + + +

Methods

-
+ -
-

addChild(child)

-
-
- -
-

Adds a child to the namespace.

-
- +

addChild(child)

- + +
+

Adds a child to the namespace.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -857,10 +937,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -894,25 +984,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the child cannot be added (duplicate) +

If the child cannot be added (duplicate)

+
@@ -926,30 +1017,44 @@
Throws:
+
- - - - + + + -
-

build() → {Object.<string, function(), Object>}

-
-
+ +

build() → {Object.<string, (function()|Object)>}

-
-

Builds the namespace and returns the runtime counterpart.

-
- + + + +
+

Builds the namespace and returns the runtime counterpart.

+
+ + + + + + + + + + + + + +
@@ -958,7 +1063,10 @@

build +
Overrides:
+
@@ -992,20 +1100,20 @@

build - - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

Runtime namespace

@@ -1018,40 +1126,51 @@
Returns:
-Object.<string, function(), Object> +Object.<string, (function()|Object)>

- - -
+ + -
-

buildOpt() → {Object.<string, *>}

-
-
- -
-

Builds the namespace's '$options' property.

-
- +

buildOpt() → {Object.<string, *>}

+ + +
+

Builds the namespace's '$options' property.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -1085,20 +1204,20 @@

buildOpt - - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -1113,35 +1232,38 @@
Returns:

- - - + + -
-

fqn() → {string}

-
-
- -
-

Returns the fully qualified name of this object.

-
- +

fqn() → {string}

- - - +
+

Returns the fully qualified name of this object.

+
+ + + + + + + + + + + + +
- @@ -1151,7 +1273,15 @@

fqnInherited From:
+

+ + + + + + + + @@ -1179,20 +1309,20 @@

fqn

Fully qualified name as of ".PATH.TO.THIS"

@@ -1211,33 +1341,35 @@
Returns:
- - - + + -
-

getChild(nameOrId) → (nullable) {ProtoBuf.Reflect.T}

-
-
- -
-

Gets a child by its name or id.

-
- +

getChild(nameOrId) → (nullable) {ProtoBuf.Reflect.T}

- + +
+

Gets a child by its name or id.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1286,10 +1418,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1323,20 +1465,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The child or null if not found

@@ -1355,33 +1497,35 @@
Returns:
+ + + + + - - - -

getChildren(typeopt) → {Array.<ProtoBuf.Reflect.T>}

-
-
- -
-

Returns an array of the namespace's children.

-
- - - +
+

Returns an array of the namespace's children.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -1439,10 +1583,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1476,20 +1630,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -1504,33 +1658,35 @@
Returns:
- - - + + -
-

getOption(nameopt) → {*|Object.<string, *>}

-
-
- -
-

Gets the value assigned to the option with the specified name.

-
- +

getOption(nameopt) → {*|Object.<string, *>}

- + +
+

Gets the value assigned to the option with the specified name.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1588,10 +1744,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1625,20 +1791,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

null} Option value or NULL if there is no such option

@@ -1660,33 +1826,35 @@
Returns:
- - - + + -
-

qn(tnon-null) → {string}

-
-
- -
-

Determines the shortest qualified name of the specified type, if any, relative to this namespace.

-
- +

qn(tnon-null) → {string}

- + +
+

Determines the shortest qualified name of the specified type, if any, relative to this namespace.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1732,10 +1900,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1769,20 +1947,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The shortest qualified name or, if there is none, the fqn

@@ -1801,33 +1979,35 @@
Returns:
- - - + + -
-

resolve(qn, excludeNonNamespaceopt) → (nullable) {ProtoBuf.Reflect.Namespace}

-
-
- -
-

Resolves a reflect object inside of this namespace.

-
- +

resolve(qn, excludeNonNamespaceopt) → (nullable) {ProtoBuf.Reflect.Namespace}

- + +
+

Resolves a reflect object inside of this namespace.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1919,10 +2099,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1956,20 +2146,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The resolved type or null if not found

@@ -1988,33 +2178,35 @@
Returns:
- - - + + -
-

toString(includeClassopt)

-
-
- -
-

Returns a string representation of this Reflect object (its fully qualified name).

-
- +

toString(includeClassopt)

- + +
+

Returns a string representation of this Reflect object (its fully qualified name).

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2072,11 +2264,13 @@
Parameters:
- - + + + + +
- @@ -2086,7 +2280,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -2114,32 +2316,31 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

String representation

- - - - + + + @@ -2155,13 +2356,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Reflect.Service.Method.html b/docs/ProtoBuf.Reflect.Service.Method.html index 2a19389fc..72a5ed3dd 100644 --- a/docs/ProtoBuf.Reflect.Service.Method.html +++ b/docs/ProtoBuf.Reflect.Service.Method.html @@ -23,43 +23,47 @@

Class: Method

+
-

- ProtoBuf.Reflect.Service. - Method -

+

+ ProtoBuf.Reflect.Service. + + Method +

+
+ - -
+

new Method(buildernon-null, svcnon-null, name, optionsopt)

-
-
- -
-

Abstract service method.

-
- - - +
+

Abstract service method.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -210,10 +214,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -247,20 +261,19 @@
Parameters:
- - - - - - - -
+ + + + + + +
@@ -268,10 +281,13 @@
Parameters:

Extends

- - + + + + + @@ -286,35 +302,34 @@

Extends

Members

-
+ -
-

(non-null) builder :ProtoBuf.Builder

+

(non-null) builder :ProtoBuf.Builder

- -
-
- -
-

Builder reference.

-
- - -
Type:
-
    -
  • - + + +
    +

    Builder reference.

    +
    + + + +
    Type:
    + - +
  • +
+ + + + -
- @@ -324,7 +339,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -352,25 +375,50 @@
Type:
- - - + + -
-

className

+

className :string

+ + + + +
+

Fully qualified class name

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
-
-
+ -
+
Overrides:
+
@@ -392,7 +440,7 @@

classNameSource:
@@ -404,40 +452,38 @@

className - - -

+ + -
-

name :string

+

name :string

- -
-
- -
-

Object name in namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Object name in namespace.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
- @@ -447,7 +493,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -475,39 +529,45 @@
Type:
- - - + + -
-

options :Object.<string, *>

+

options :Object.<string, *>

- -
-
- -
-

Options.

-
- - -
Type:
-
    -
  • - + + +
    +

    Options.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, *> -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -541,40 +601,38 @@
Type:
- - -
+ + -
-

(nullable) parent :ProtoBuf.Reflect.T

+

(nullable) parent :ProtoBuf.Reflect.T

- -
-
- -
-

Parent object.

-
- - -
Type:
- + + + + -
- @@ -584,7 +642,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -612,41 +678,44 @@
Type:
- - - - + + +

Methods

-
+ -
-

build()

-
-
- -
-

Builds this type.

-
- +

build()

- - - +
+

Builds this type.

+
+ + + + + + + + + + + + +
- @@ -656,7 +725,15 @@

buildInherited From:
+

+ + + + + + + + @@ -684,25 +761,26 @@

build - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If this type cannot be built directly +

If this type cannot be built directly

+
@@ -716,39 +794,51 @@
Throws:
+
- - - - + + + -
-

buildOpt() → {Object.<string, *>}

-
-
- -
-

Builds the method's '$options' property.

-
- +

buildOpt() → {Object.<string, *>}

+ + +
+

Builds the method's '$options' property.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -782,20 +872,20 @@

buildOpt - - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -810,35 +900,38 @@
Returns:

- - - + + -
-

fqn() → {string}

-
-
- -
-

Returns the fully qualified name of this object.

-
- +

fqn() → {string}

- - - +
+

Returns the fully qualified name of this object.

+
+ + + + + + + + + + + + +
- @@ -848,7 +941,15 @@

fqnInherited From:
+

+ + + + + + + + @@ -876,20 +977,20 @@

fqn

Fully qualified name as of ".PATH.TO.THIS"

@@ -908,33 +1009,35 @@
Returns:
- - - + + -
-

toString(includeClassopt)

-
-
- -
-

Returns a string representation of this Reflect object (its fully qualified name).

-
- +

toString(includeClassopt)

- + +
+

Returns a string representation of this Reflect object (its fully qualified name).

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -992,11 +1095,13 @@
Parameters:
- - + + + + +
- @@ -1006,7 +1111,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -1034,32 +1147,31 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

String representation

- - - - + + + @@ -1075,13 +1187,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Reflect.Service.RPCMethod.html b/docs/ProtoBuf.Reflect.Service.RPCMethod.html index 5a2809d8a..e58dc6910 100644 --- a/docs/ProtoBuf.Reflect.Service.RPCMethod.html +++ b/docs/ProtoBuf.Reflect.Service.RPCMethod.html @@ -23,43 +23,47 @@

Class: RPCMethod

+
-

- ProtoBuf.Reflect.Service. - RPCMethod -

+

+ ProtoBuf.Reflect.Service. + + RPCMethod +

+
+ - -
+

new RPCMethod(buildernon-null, svcnon-null, name, request, response, request_stream, response_stream, optionsopt)

-
-
- -
-

RPC service method.

-
- - - +
+

RPC service method.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -334,10 +338,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -371,20 +385,19 @@
Parameters:
- - - - - - - -
+ + + + + + +
@@ -392,10 +405,13 @@
Parameters:

Extends

- - + + + + + @@ -410,35 +426,34 @@

Extends

Members

-
+ -
-

(non-null) builder :ProtoBuf.Builder

+

(non-null) builder :ProtoBuf.Builder

- -
-
- -
-

Builder reference.

-
- - -
Type:
-
    -
  • - + + +
    +

    Builder reference.

    +
    + + + +
    Type:
    + - +
  • +
+ + + + -
- @@ -448,7 +463,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -476,25 +499,50 @@
Type:
- - - + + -
-

className

+

className :string

+ + + + +
+

Fully qualified class name

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
-
-
+ -
+
Overrides:
+
@@ -516,7 +564,7 @@

classNameSource:
@@ -528,40 +576,38 @@

className - - -

+ + -
-

name :string

+

name :string

- -
-
- -
-

Object name in namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Object name in namespace.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
- @@ -571,7 +617,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -599,40 +653,38 @@
Type:
- - - + + -
-

options :Object.<string, *>

+

options :Object.<string, *>

- -
-
- -
-

Options.

-
- - -
Type:
-
    -
  • - + + +
    +

    Options.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, *> -
    • -
    - +
  • +
+ + + + -
- @@ -642,7 +694,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -670,40 +730,38 @@
Type:
- - - + + -
-

(nullable) parent :ProtoBuf.Reflect.T

+

(nullable) parent :ProtoBuf.Reflect.T

- -
-
- -
-

Parent object.

-
- - -
Type:
- + + + + -
- @@ -713,7 +771,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -741,39 +807,45 @@
Type:
- - - + + -
-

requestName :string

+

requestName :string

- -
-
- -
-

Request message name.

-
- - -
Type:
-
    -
  • - + + +
    +

    Request message name.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -807,46 +879,52 @@
Type:
- - -
+ + -
-

requestStream :bool

+

requestStream :bool

- -
-
- -
-

Whether requests are streamed

-
- - -
Type:
-
    -
  • - -bool -
  • -
- +
+

Whether requests are streamed

+
- -
- - - +
Type:
+
    +
  • + +bool - + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + @@ -873,39 +951,45 @@
Type:
- - -
+ + -
-

resolvedRequestType :ProtoBuf.Reflect.Message

+

resolvedRequestType :ProtoBuf.Reflect.Message

- -
-
- -
-

Resolved request message type.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -939,39 +1023,45 @@
Type:
- - -
+ + -
-

resolvedResponseType :ProtoBuf.Reflect.Message

+

resolvedResponseType :ProtoBuf.Reflect.Message

- -
-
- -
-

Resolved response message type.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -1005,39 +1095,45 @@
Type:
- - -
+ + -
-

responseName :string

+

responseName :string

- -
-
- -
-

Response message name.

-
- - -
Type:
-
    -
  • - + + +
    +

    Response message name.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -1071,39 +1167,45 @@
Type:
- - -
+ + -
-

responseStream :bool

+

responseStream :bool

- -
-
- -
-

Whether responses are streamed

-
- - -
Type:
-
    -
  • - + + +
    +

    Whether responses are streamed

    +
    + + + +
    Type:
    +
      +
    • + bool -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -1137,41 +1239,44 @@
Type:
- - -
- + + +

Methods

-
+ -
-

build()

-
-
- -
-

Builds this type.

-
- +

build()

- - - +
+

Builds this type.

+
+ + + + + + + + + + + + +
- @@ -1181,7 +1286,15 @@

buildInherited From:
+

+ + + + + + + + @@ -1209,25 +1322,26 @@

build - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If this type cannot be built directly +

If this type cannot be built directly

+
@@ -1241,40 +1355,44 @@
Throws:
+
- - - - + + + -
-

buildOpt() → {Object.<string, *>}

-
-
- -
-

Builds the method's '$options' property.

-
- +

buildOpt() → {Object.<string, *>}

- - - +
+

Builds the method's '$options' property.

+
+ + + + + + + + + + + + +
- @@ -1284,7 +1402,15 @@

buildOptInherited From:
+

+ + + + + + + + @@ -1312,20 +1438,20 @@

buildOpt - - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -1340,35 +1466,38 @@
Returns:
- - - + + -
-

fqn() → {string}

-
-
- -
-

Returns the fully qualified name of this object.

-
- +

fqn() → {string}

- - - +
+

Returns the fully qualified name of this object.

+
+ + + + + + + + + + + + +
- @@ -1378,7 +1507,15 @@

fqnInherited From:
+

+ + + + + + + + @@ -1406,20 +1543,20 @@

fqn

Fully qualified name as of ".PATH.TO.THIS"

@@ -1438,33 +1575,35 @@
Returns:

- - - + + -
-

toString(includeClassopt)

-
-
- -
-

Returns a string representation of this Reflect object (its fully qualified name).

-
- +

toString(includeClassopt)

- + +
+

Returns a string representation of this Reflect object (its fully qualified name).

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1522,11 +1661,13 @@
Parameters:
- - + + + + +
- @@ -1536,7 +1677,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -1564,32 +1713,31 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

String representation

- - - - + + + @@ -1605,13 +1753,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Reflect.Service.html b/docs/ProtoBuf.Reflect.Service.html index d7e12fc78..8cb30c6ef 100644 --- a/docs/ProtoBuf.Reflect.Service.html +++ b/docs/ProtoBuf.Reflect.Service.html @@ -23,43 +23,47 @@

Class: Service

+
-

- ProtoBuf.Reflect. - Service -

+

+ ProtoBuf.Reflect. + + Service +

+
+ - -
+

new Service(buildernon-null, rootnon-null, name, optionsopt)

-
-
- -
-

Constructs a new Service.

-
- - - +
+

Constructs a new Service.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -210,10 +214,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -247,20 +261,19 @@
Parameters:
- - - - - - - -
+ + + + + + +
@@ -268,10 +281,13 @@
Parameters:

Extends

- - + + + + + @@ -296,35 +312,34 @@

Classes

Members

-
+ -
-

(non-null) builder :ProtoBuf.Builder

+

(non-null) builder :ProtoBuf.Builder

- -
-
- -
-

Builder reference.

-
- - -
Type:
-
    -
  • - + + +
    +

    Builder reference.

    +
    + + + +
    Type:
    + - +
  • +
+ + + + -
- @@ -334,7 +349,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -362,40 +385,38 @@
Type:
- - - + + -
-

(non-null) children :Array.<ProtoBuf.Reflect.T>

+

(non-null) children :Array.<ProtoBuf.Reflect.T>

- -
-
- -
-

Children inside the namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Children inside the namespace.

    +
    + + + +
    Type:
    + - +
  • +
+ + + + -
- @@ -405,7 +426,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -433,25 +462,50 @@
Type:
- - - + + -
-

className

+

className :string

+ + + + +
+

Fully qualified class name

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
-
-
+ -
+
Overrides:
+
@@ -473,7 +527,7 @@

classNameSource:
@@ -485,39 +539,45 @@

className - - -

+ + -
-

(nullable) clazz :function

+

(nullable) clazz :function

- -
-
- -
-

Built runtime service class.

-
- - -
Type:
-
    -
  • - + + +
    +

    Built runtime service class.

    +
    + + + +
    Type:
    +
      +
    • + function -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -551,40 +611,38 @@
Type:
- - -
+ + -
-

name :string

+

name :string

- -
-
- -
-

Object name in namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Object name in namespace.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
- @@ -594,7 +652,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -622,40 +688,38 @@
Type:
- - - + + -
-

(non-null) options :Object.<string, *>

+

(non-null) options :Object.<string, *>

- -
-
- -
-

Options.

-
- - -
Type:
-
    -
  • - + + +
    +

    Options.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, *> -
    • -
    - +
  • +
+ + + + -
- @@ -665,7 +729,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -693,40 +765,38 @@
Type:
- - - + + -
-

(nullable) parent :ProtoBuf.Reflect.T

+

(nullable) parent :ProtoBuf.Reflect.T

- -
-
- -
-

Parent object.

-
- - -
Type:
- + + + + -
- @@ -736,7 +806,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -764,40 +842,38 @@
Type:
- - - + + -
-

(non-null) syntax :string

+

(non-null) syntax :string

- -
-
- -
-

Syntax level (e.g., proto2 or proto3).

-
- - -
Type:
-
    -
  • - + + +
    +

    Syntax level (e.g., proto2 or proto3).

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    - +
  • +
+ + + + -
- @@ -807,7 +883,15 @@
Type:
Inherited From:
+
+ + + + + + + + @@ -835,39 +919,41 @@
Type:
- - - - + + +

Methods

-
+ -
-

addChild(child)

-
-
- -
-

Adds a child to the namespace.

-
- +

addChild(child)

- + +
+

Adds a child to the namespace.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -913,11 +999,13 @@
Parameters:
- - + + + + +
- @@ -927,7 +1015,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -955,25 +1051,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the child cannot be added (duplicate) +

If the child cannot be added (duplicate)

+
@@ -987,38 +1084,41 @@
Throws:
+
- - - - + + + -
-

build(rebuildopt) → {function}

-
-
- -
-

Builds the service and returns the runtime counterpart, which is a fully functional class.

-
- +

build(rebuildopt) → {function}

- + +
+

Builds the service and returns the runtime counterpart, which is a fully functional class.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1076,10 +1176,25 @@
Parameters:
+ + + + + + +
+ -
+ + + + +
Overrides:
+
@@ -1120,25 +1235,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the message cannot be built +

If the message cannot be built

+
@@ -1152,15 +1268,16 @@
Throws:
+
- - - -
Returns:
- + + +
Returns:
+ +

Service class

@@ -1179,35 +1296,38 @@
Returns:
- - - + + -
-

buildOpt() → {Object.<string, *>}

-
-
- -
-

Builds the namespace's '$options' property.

-
- +

buildOpt() → {Object.<string, *>}

- - - +
+

Builds the namespace's '$options' property.

+
+ + + + + + + + + + + + +
- @@ -1217,7 +1337,15 @@

buildOptInherited From:
+

+ + + + + + + + @@ -1245,20 +1373,20 @@

buildOpt - - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -1273,35 +1401,38 @@
Returns:
- - - + + -
-

fqn() → {string}

-
-
- -
-

Returns the fully qualified name of this object.

-
- +

fqn() → {string}

- - - +
+

Returns the fully qualified name of this object.

+
+ + + + + + + + + + + + +
- @@ -1311,7 +1442,15 @@

fqnInherited From:
+

+ + + + + + + + @@ -1339,20 +1478,20 @@

fqn

Fully qualified name as of ".PATH.TO.THIS"

@@ -1371,33 +1510,35 @@
Returns:
- - - + + -
-

getChild(nameOrId) → (nullable) {ProtoBuf.Reflect.T}

-
-
- -
-

Gets a child by its name or id.

-
- +

getChild(nameOrId) → (nullable) {ProtoBuf.Reflect.T}

- + +
+

Gets a child by its name or id.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1446,11 +1587,13 @@
Parameters:
- - + + + + +
- @@ -1460,7 +1603,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -1488,20 +1639,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The child or null if not found

@@ -1520,33 +1671,35 @@
Returns:
- - - + + -
-

getChildren(typeopt) → {Array.<ProtoBuf.Reflect.T>}

-
-
- -
-

Returns an array of the namespace's children.

-
- +

getChildren(typeopt) → {Array.<ProtoBuf.Reflect.T>}

- + +
+

Returns an array of the namespace's children.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1602,12 +1755,25 @@
Parameters:
- -
+ + + + + + + + +
+ + + -
+
Inherited From:
+
@@ -1615,10 +1781,7 @@
Parameters:
-
Inherited From:
-
+ @@ -1646,20 +1809,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -1674,33 +1837,35 @@
Returns:
- - - + + -
-

getOption(nameopt) → {*|Object.<string, *>}

-
-
- -
-

Gets the value assigned to the option with the specified name.

-
- +

getOption(nameopt) → {*|Object.<string, *>}

- + +
+

Gets the value assigned to the option with the specified name.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1758,11 +1923,13 @@
Parameters:
- - + + + + +
- @@ -1772,7 +1939,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -1800,20 +1975,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

null} Option value or NULL if there is no such option

@@ -1835,33 +2010,35 @@
Returns:
- - - + + -
-

qn(tnon-null) → {string}

-
-
- -
-

Determines the shortest qualified name of the specified type, if any, relative to this namespace.

-
- +

qn(tnon-null) → {string}

- + +
+

Determines the shortest qualified name of the specified type, if any, relative to this namespace.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1907,11 +2084,13 @@
Parameters:
- - + + + + +
- @@ -1921,7 +2100,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -1949,20 +2136,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The shortest qualified name or, if there is none, the fqn

@@ -1981,33 +2168,35 @@
Returns:
- - - + + -
-

resolve(qn, excludeNonNamespaceopt) → (nullable) {ProtoBuf.Reflect.Namespace}

-
-
- -
-

Resolves a reflect object inside of this namespace.

-
- +

resolve(qn, excludeNonNamespaceopt) → (nullable) {ProtoBuf.Reflect.Namespace}

- + +
+

Resolves a reflect object inside of this namespace.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2099,11 +2288,13 @@
Parameters:
- - + + + + +
- @@ -2113,7 +2304,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -2141,20 +2340,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The resolved type or null if not found

@@ -2173,33 +2372,35 @@
Returns:
- - - + + -
-

toString(includeClassopt)

-
-
- -
-

Returns a string representation of this Reflect object (its fully qualified name).

-
- +

toString(includeClassopt)

- + +
+

Returns a string representation of this Reflect object (its fully qualified name).

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2257,11 +2458,13 @@
Parameters:
- - + + + + +
- @@ -2271,7 +2474,15 @@
Parameters:
Inherited From:
+
+ + + + + + + + @@ -2299,32 +2510,31 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

String representation

- - - - + + + @@ -2340,13 +2550,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Reflect.T.html b/docs/ProtoBuf.Reflect.T.html index 38a198877..bf94703dd 100644 --- a/docs/ProtoBuf.Reflect.T.html +++ b/docs/ProtoBuf.Reflect.T.html @@ -23,43 +23,47 @@

Class: T

+
-

- ProtoBuf.Reflect. - T -

+

+ ProtoBuf.Reflect. + + T +

+
+ - -
+

(abstract) new T(buildernon-null, parentnullable, name)

-
-
- -
-

Constructs a Reflect base class.

-
- - - +
+

Constructs a Reflect base class.

+
+ + + + + + + + +
Parameters:
-
Parameters:
- @@ -179,10 +183,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -216,25 +230,22 @@
Parameters:
- - - - - - - -
- -
+ + + + + + + @@ -249,34 +260,41 @@
Parameters:

Members

-
+ -
-

(non-null) builder :ProtoBuf.Builder

+

(non-null) builder :ProtoBuf.Builder

- -
-
- -
-

Builder reference.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -310,39 +328,45 @@
Type:
- - -
+ + -
-

className :string

+

className :string

- -
-
- -
-

Fully qualified class name

-
- - -
Type:
-
    -
  • - + + +
    +

    Fully qualified class name

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -376,39 +400,45 @@
Type:
- - -
+ + -
-

name :string

+

name :string

- -
-
- -
-

Object name in namespace.

-
- - -
Type:
-
    -
  • - + + +
    +

    Object name in namespace.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -442,39 +472,45 @@
Type:
- - -
+ + -
-

(nullable) parent :ProtoBuf.Reflect.T

+

(nullable) parent :ProtoBuf.Reflect.T

- -
-
- -
-

Parent object.

-
- - -
Type:
- + + + + + +
+ -
+ + + @@ -508,40 +544,51 @@
Type:
- - -
-
+ + +

Methods

-
+ -
-

build()

-
-
- -
-

Builds this type.

-
- +

build()

+ + +
+

Builds this type.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -575,25 +622,26 @@

build - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If this type cannot be built directly +

If this type cannot be built directly

+
@@ -607,39 +655,51 @@
Throws:

+
- - - - + + + -
-

fqn() → {string}

-
-
- -
-

Returns the fully qualified name of this object.

-
- +

fqn() → {string}

+ + +
+

Returns the fully qualified name of this object.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -673,20 +733,20 @@

fqn

Fully qualified name as of ".PATH.TO.THIS"

@@ -705,33 +765,35 @@
Returns:

- - - + + -
-

toString(includeClassopt)

-
-
- -
-

Returns a string representation of this Reflect object (its fully qualified name).

-
- +

toString(includeClassopt)

- + +
+

Returns a string representation of this Reflect object (its fully qualified name).

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -789,10 +851,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -826,32 +898,31 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

String representation

- - -
- + + + @@ -867,13 +938,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Reflect.html b/docs/ProtoBuf.Reflect.html index 29fe3cc9c..7bc475136 100644 --- a/docs/ProtoBuf.Reflect.html +++ b/docs/ProtoBuf.Reflect.html @@ -23,28 +23,38 @@

Namespace: Reflect

+
-

- ProtoBuf. - Reflect -

+

+ ProtoBuf. + + Reflect +

+
- -

Reflection types.

+ +
+ + + + + + + @@ -87,8 +97,6 @@

- -

Classes

@@ -136,13 +144,13 @@

Classes

-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.Util.html b/docs/ProtoBuf.Util.html index 21b43975b..46a958c4f 100644 --- a/docs/ProtoBuf.Util.html +++ b/docs/ProtoBuf.Util.html @@ -23,28 +23,38 @@

Namespace: Util

+
-

- ProtoBuf. - Util -

+

+ ProtoBuf. + + Util +

+
- -

ProtoBuf utilities.

+ +
+ + + + + + + @@ -88,8 +98,6 @@

- - @@ -97,34 +105,41 @@

Members

-
+ -
-

(static, constant) IS_NODE :boolean

+

(static, constant) IS_NODE :boolean

- -
-
- -
-

Flag if running in node or not.

-
- - -
Type:
-
    -
  • - + + +
    +

    Flag if running in node or not.

    +
    + + + +
    Type:
    +
      +
    • + boolean -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -158,39 +173,41 @@
Type:
- - -
-
+ + +

Methods

-
+ -
-

(static) fetch(path, callbackopt) → {string|undefined}

-
-
- -
-

Fetches a resource.

-
- +

(static) fetch(path, callbackopt) → {string|undefined}

- + +
+

Fetches a resource.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -280,10 +297,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -317,20 +344,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

Resource contents if callback is omitted (null if the request failed), else undefined.

@@ -352,33 +379,35 @@
Returns:
- - - + + -
-

(static) toCamelCase(str) → {string}

-
-
- -
-

Converts a string to camel case.

-
- +

(static) toCamelCase(str) → {string}

- + +
+

Converts a string to camel case.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -424,10 +453,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -461,20 +500,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +
@@ -489,34 +528,45 @@
Returns:
- - - + + -
-

(static) XHR() → {XMLHttpRequest}

-
-
- -
-

Constructs a XMLHttpRequest object.

-
- +

(static) XHR() → {XMLHttpRequest}

+ + +
+

Constructs a XMLHttpRequest object.

+
+ + + + + + + + + + + + + +
+ -
+ @@ -550,25 +600,26 @@

(static) XHR - - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If XMLHttpRequest is not supported +

If XMLHttpRequest is not supported

+
@@ -582,15 +633,16 @@
Throws:

+
- - -
Returns:
- - + + +
Returns:
+ +
@@ -605,12 +657,11 @@
Returns:
- - - - + + + @@ -626,13 +677,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.html b/docs/ProtoBuf.html index 2b901ed52..855809c12 100644 --- a/docs/ProtoBuf.html +++ b/docs/ProtoBuf.html @@ -23,26 +23,36 @@

Namespace: ProtoBuf

+
-

- ProtoBuf -

+ +

+ ProtoBuf +

+
- -

The ProtoBuf namespace.

+ +
+ + + + + + + @@ -85,8 +95,6 @@

- -

Classes

@@ -104,13 +112,13 @@

Classes

Namespaces

-
DotProto
+
DotProto
-
Reflect
+
Reflect
-
Util
+
Util
@@ -118,30 +126,37 @@

Namespaces

Members

-
+ -
-

(static, non-null) ByteBuffer :function

+

(static, non-null) ByteBuffer :function

- -
-
- - -
Type:
-
    -
  • - + + + + +
    Type:
    +
      +
    • + function -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -175,40 +190,46 @@
Type:
- - -
+ + -
-

(static) convertFieldsToCamelCase :boolean

+

(static) convertFieldsToCamelCase :boolean

- -
-
- -
-

If set to true, field names will be converted from underscore notation to camel case. Defaults to false. + + + +

+

If set to true, field names will be converted from underscore notation to camel case. Defaults to false. Must be set prior to parsing.

-
- +
- -
Type:
-
    -
  • - + + +
    Type:
    +
      +
    • + boolean -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -242,39 +263,45 @@
Type:
- - -
+ + -
-

(static, constant) ID_MAX :number

+

(static, constant) ID_MAX :number

- -
-
- -
-

Maximum field id.

-
- - -
Type:
-
    -
  • - + + +
    +

    Maximum field id.

    +
    + + + +
    Type:
    +
      +
    • + number -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -308,39 +335,45 @@
Type:
- - -
+ + -
-

(static, constant) ID_MIN :number

+

(static, constant) ID_MIN :number

- -
-
- -
-

Minimum field id.

-
- - -
Type:
-
    -
  • - + + +
    +

    Minimum field id.

    +
    + + + +
    Type:
    +
      +
    • + number -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -374,39 +407,45 @@
Type:
- - -
+ + -
-

(static, non-null) Lang :Object.<string, RegExp>

+

(static, non-null) Lang :Object.<string, !RegExp>

- -
-
- -
-

Language expressions.

-
- - -
Type:
-
    -
  • - -Object.<string, RegExp> -
  • -
+
+

Language expressions.

+
+ + + +
Type:
+
    +
  • + +Object.<string, !RegExp> + + +
  • +
+ + + + + +
+ -
+ + + @@ -440,35 +479,41 @@
Type:
- - -
+ + -
-

(static, nullable) Long :function

+

(static, nullable) Long :function

- -
-
- - -
Type:
-
    -
  • - + + + + +
    Type:
    +
      +
    • + function -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -502,39 +547,45 @@
Type:
- - -
+ + -
-

(static, constant, non-null) MAP_KEY_TYPES :Array.<!Object.<string, {name: string, wireType: number, defaultValue: *}>>

+

(static, constant, non-null) MAP_KEY_TYPES :Array.<!Object.<string, {name: string, wireType: number, defaultValue: *}>>

- -
-
- -
-

Valid map key types.

-
- - -
Type:
-
    -
  • - + + +
    +

    Valid map key types.

    +
    + + + +
    Type:
    +
      +
    • + Array.<!Object.<string, {name: string, wireType: number, defaultValue: *}>> -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -568,39 +619,45 @@
Type:
- - -
+ + -
-

(static, constant, non-null) PACKABLE_WIRE_TYPES :Array.<number>

+

(static, constant, non-null) PACKABLE_WIRE_TYPES :Array.<number>

- -
-
- -
-

Packable wire types.

-
- - -
Type:
-
    -
  • - + + +
    +

    Packable wire types.

    +
    + + + +
    Type:
    +
      +
    • + Array.<number> -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -634,40 +691,46 @@
Type:
- - -
+ + -
-

(static) populateAccessors :boolean

+

(static) populateAccessors :boolean

- -
-
- -
-

By default, messages are populated with (setX, set_x) accessors for each field. This can be disabled by + + + +

+

By default, messages are populated with (setX, set_x) accessors for each field. This can be disabled by setting this to false prior to building messages.

-
- +
- -
Type:
-
    -
  • - + + +
    Type:
    +
      +
    • + boolean -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -701,40 +764,46 @@
Type:
- - -
+ + -
-

(static) populateDefaults :boolean

+

(static) populateDefaults :boolean

- -
-
- -
-

By default, messages are populated with default values if a field is not present on the wire. To disable + + + +

+

By default, messages are populated with default values if a field is not present on the wire. To disable this behavior, set this setting to false.

-
- +
- -
Type:
-
    -
  • - + + +
    Type:
    +
      +
    • + boolean -
    • -
    +
  • +
+ + + + + +
+ + + -
+ @@ -768,39 +837,45 @@
Type:
- - -
+ + -
-

(static, constant, non-null) TYPES :Object.<string, Object>

+

(static, constant, non-null) TYPES :Object.<string, {name: string, wireType: number, defaultValue: *}>

+ + + + +
+

Types.

+
+ + + +
Type:
+
    +
  • + +Object.<string, {name: string, wireType: number, defaultValue: *}> + + +
  • +
- -
-
- -
-

Types.

-
- - -
Type:
-
    -
  • - -Object.<string, Object> -
  • -
+ +
+ -
+ + + @@ -834,39 +909,45 @@
Type:
- - -
+ + -
-

(static, constant) VERSION :string

+

(static, constant) VERSION :string

- -
-
- -
-

ProtoBuf.js version.

-
- - -
Type:
-
    -
  • - + + +
    +

    ProtoBuf.js version.

    +
    + + + +
    Type:
    +
      +
    • + string -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -900,39 +981,45 @@
Type:
- - -
+ + -
-

(static, constant) WIRE_TYPES :Object.<string, number>

+

(static, constant) WIRE_TYPES :Object.<string, number>

- -
-
- -
-

Wire types.

-
- - -
Type:
-
    -
  • - + + +
    +

    Wire types.

    +
    + + + +
    Type:
    +
      +
    • + Object.<string, number> -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -966,40 +1053,46 @@
Type:
- - -
+ + -
-

(static, constant) WIRE_TYPES.BITS32 :number

+

(static, constant) WIRE_TYPES.BITS32 :number

+ + + + +
+

Fixed 32 bits wire type.

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
-
-
- -
-

Fixed 32 bits wire type.

-
- -
Type:
-
    -
  • - -number - -
  • -
-
- @@ -1032,39 +1125,45 @@
Type:
- - -
+ + -
-

(static, constant) WIRE_TYPES.BITS64 :number

+

(static, constant) WIRE_TYPES.BITS64 :number

- -
-
- -
-

Fixed 64 bits wire type.

-
- - -
Type:
-
    -
  • - + + +
    +

    Fixed 64 bits wire type.

    +
    + + + +
    Type:
    +
      +
    • + number -
    • -
    +
  • +
+ + + + + +
+ + + -
+ @@ -1098,39 +1197,45 @@
Type:
- - -
+ + -
-

(static, constant) WIRE_TYPES.ENDGROUP :number

+

(static, constant) WIRE_TYPES.ENDGROUP :number

- -
-
- -
-

End group wire type.

-
- - -
Type:
-
    -
  • - + + +
    +

    End group wire type.

    +
    + + + +
    Type:
    +
      +
    • + number -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -1164,39 +1269,45 @@
Type:
- - -
+ + -
-

(static, constant) WIRE_TYPES.LDELIM :number

+

(static, constant) WIRE_TYPES.LDELIM :number

- -
-
- -
-

Length delimited wire type.

-
- - -
Type:
-
    -
  • - + + +
    +

    Length delimited wire type.

    +
    + + + +
    Type:
    +
      +
    • + number -
    • -
    +
  • +
+ + + + + +
+ + + -
+ @@ -1230,39 +1341,45 @@
Type:
- - -
+ + -
-

(static, constant) WIRE_TYPES.STARTGROUP :number

+

(static, constant) WIRE_TYPES.STARTGROUP :number

- -
-
- -
-

Start group wire type.

-
- - -
Type:
-
    -
  • - + + +
    +

    Start group wire type.

    +
    + + + +
    Type:
    +
      +
    • + number -
    • -
    +
  • +
+ + + + + +
+ -
+ + + @@ -1296,39 +1413,45 @@
Type:
- - -
+ + -
-

(static) WIRE_TYPES.VARINT :number

+

(static) WIRE_TYPES.VARINT :number

- -
-
- -
-

Varint wire type.

-
- - -
Type:
-
    -
  • - + + +
    +

    Varint wire type.

    +
    + + + +
    Type:
    +
      +
    • + number -
    • -
    +
  • +
+ + + + + +
+ + + -
+ @@ -1362,39 +1485,41 @@
Type:
- - -
-
+ + +

Methods

-
+ -
-

(static) loadJson(json, builderopt, filenameopt) → {ProtoBuf.Builder}

-
-
- -
-

Loads a .json definition and returns the Builder.

-
- +

(static) loadJson(json, builderopt, filenameopt) → {ProtoBuf.Builder}

- + +
+

Loads a .json definition and returns the Builder.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1528,10 +1653,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1553,7 +1688,7 @@
Parameters:
Source:
@@ -1565,25 +1700,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the definition cannot be parsed or built +

If the definition cannot be parsed or built

+
@@ -1597,15 +1733,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Builder to create new messages

@@ -1624,33 +1761,35 @@
Returns:
- - - + + -
-

(static) loadJsonFile(filename, callbackopt, builderopt) → {ProtoBuf.Builder|undefined}

-
-
- -
-

Loads a .json file and returns the Builder.

-
- +

(static) loadJsonFile(filename, callbackopt, builderopt) → {ProtoBuf.Builder|undefined}

- + +
+

Loads a .json file and returns the Builder.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -1778,10 +1917,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -1803,7 +1952,7 @@
Parameters:
Source:
@@ -1815,20 +1964,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The Builder if synchronous (no callback specified, will be NULL if the request has failed), else undefined

@@ -1851,33 +2000,35 @@
Returns:
- - - + + -
-

(static) loadProto(proto, builderopt, filenameopt) → {ProtoBuf.Builder}

-
-
- -
-

Loads a .proto string and returns the Builder.

-
- +

(static) loadProto(proto, builderopt, filenameopt) → {ProtoBuf.Builder}

- + +
+

Loads a .proto string and returns the Builder.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2008,10 +2159,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2033,7 +2194,7 @@
Parameters:
Source:
@@ -2045,25 +2206,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the definition cannot be parsed or built +

If the definition cannot be parsed or built

+
@@ -2077,15 +2239,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Builder to create new messages

@@ -2104,33 +2267,35 @@
Returns:
- - - + + -
-

(static) loadProtoFile(filename, callbackopt, builderopt) → {ProtoBuf.Builder|undefined}

-
-
- -
-

Loads a .proto file and returns the Builder.

-
- +

(static) loadProtoFile(filename, callbackopt, builderopt) → {ProtoBuf.Builder|undefined}

- + +
+

Loads a .proto file and returns the Builder.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2258,10 +2423,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2283,7 +2458,7 @@
Parameters:
Source:
@@ -2295,20 +2470,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The Builder if synchronous (no callback specified, will be NULL if the request has failed), else undefined

@@ -2331,33 +2506,35 @@
Returns:
- - - + + -
-

(static) newBuilder(optionsopt) → (non-null) {ProtoBuf.Builder}

-
-
- -
-

Constructs a new empty Builder.

-
- +

(static) newBuilder(optionsopt) → (non-null) {ProtoBuf.Builder}

- + +
+

Constructs a new empty Builder.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2415,10 +2592,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2440,7 +2627,7 @@
Parameters:
Source:
@@ -2452,20 +2639,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

Builder

@@ -2484,33 +2671,35 @@
Returns:
- - - + + -
-

(static) protoFromFile(filename, callbackopt, builderopt) → {ProtoBuf.Builder|undefined}

-
-
- -
-

Loads a .proto file and returns the Builder. This is an alias of ProtoBuf.loadProtoFile.

-
- +

(static) protoFromFile(filename, callbackopt, builderopt) → {ProtoBuf.Builder|undefined}

- + +
+

Loads a .proto file and returns the Builder. This is an alias of ProtoBuf.loadProtoFile.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2638,10 +2827,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2663,7 +2862,7 @@
Parameters:
Source:
@@ -2675,20 +2874,20 @@
Parameters:
- - - - - - -
Returns:
- - + + + + + + +
Returns:
+ +

The Builder if synchronous (no callback specified, will be NULL if the request has failed), else undefined

@@ -2711,33 +2910,35 @@
Returns:
- - - + + -
-

(static) protoFromString(proto, builderopt, filenameopt) → {ProtoBuf.Builder}

-
-
- -
-

Loads a .proto string and returns the Builder. This is an alias of ProtoBuf.loadProto.

-
- +

(static) protoFromString(proto, builderopt, filenameopt) → {ProtoBuf.Builder}

- + +
+

Loads a .proto string and returns the Builder. This is an alias of ProtoBuf.loadProto.

+
+ + + + + + + + + +
Parameters:
-
Parameters:
- @@ -2865,10 +3066,20 @@
Parameters:
+ + + + + + +
+ -
+ + + @@ -2890,7 +3101,7 @@
Parameters:
Source:
@@ -2902,25 +3113,26 @@
Parameters:
- - - - - -
Throws:
- - + + + + + +
Throws:
+ +
- If the definition cannot be parsed or built +

If the definition cannot be parsed or built

+
@@ -2934,15 +3146,16 @@
Throws:
+
- - -
Returns:
- - + + +
Returns:
+ +

Builder to create new messages

@@ -2961,12 +3174,11 @@
Returns:
- - - - + + + @@ -2982,13 +3194,13 @@
Returns:
-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/ProtoBuf.js.html b/docs/ProtoBuf.js.html index 5dfffa4d7..6863f1d46 100644 --- a/docs/ProtoBuf.js.html +++ b/docs/ProtoBuf.js.html @@ -22,6 +22,7 @@

Source: protobuf.js

+
@@ -84,7 +85,7 @@

Source: protobuf.js

* @const * @expose */ - ProtoBuf.VERSION = "5.0.1"; + ProtoBuf.VERSION = "5.0.2"; /** * Wire types. @@ -4684,7 +4685,11 @@

Source: protobuf.js

root = require("path")['resolve'](root); if (root.indexOf("\\") >= 0 || filename.file.indexOf("\\") >= 0) delim = '\\'; - var fname = root + delim + filename.file; + var fname; + if (ProtoBuf.Util.IS_NODE) + fname = require("path")['join'](root, filename.file); + else + fname = root + delim + filename.file; if (this.files[fname] === true) return this.reset(); this.files[fname] = true; @@ -4730,7 +4735,10 @@

Source: protobuf.js

var importFilename = json['imports'][i]; if (importFilename === "google/protobuf/descriptor.proto") continue; // Not needed and therefore not used - importFilename = importRoot + delim + importFilename; + if (ProtoBuf.Util.IS_NODE) + importFilename = require("path")['join'](importRoot, importFilename); + else + importFilename = importRoot + delim + importFilename; if (this.files[importFilename] === true) continue; // Already imported if (/\.proto$/i.test(importFilename) && !ProtoBuf.DotProto) // If this is a light build @@ -5293,13 +5301,13 @@

Source: protobuf.js

-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/fonts/OpenSans-Bold-webfont.eot b/docs/fonts/OpenSans-Bold-webfont.eot new file mode 100644 index 000000000..5d20d9163 Binary files /dev/null and b/docs/fonts/OpenSans-Bold-webfont.eot differ diff --git a/docs/fonts/OpenSans-Bold-webfont.svg b/docs/fonts/OpenSans-Bold-webfont.svg new file mode 100644 index 000000000..3ed7be4bc --- /dev/null +++ b/docs/fonts/OpenSans-Bold-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-Bold-webfont.woff b/docs/fonts/OpenSans-Bold-webfont.woff new file mode 100644 index 000000000..1205787b0 Binary files /dev/null and b/docs/fonts/OpenSans-Bold-webfont.woff differ diff --git a/docs/fonts/OpenSans-BoldItalic-webfont.eot b/docs/fonts/OpenSans-BoldItalic-webfont.eot new file mode 100644 index 000000000..1f639a15f Binary files /dev/null and b/docs/fonts/OpenSans-BoldItalic-webfont.eot differ diff --git a/docs/fonts/OpenSans-BoldItalic-webfont.svg b/docs/fonts/OpenSans-BoldItalic-webfont.svg new file mode 100644 index 000000000..6a2607b9d --- /dev/null +++ b/docs/fonts/OpenSans-BoldItalic-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-BoldItalic-webfont.woff b/docs/fonts/OpenSans-BoldItalic-webfont.woff new file mode 100644 index 000000000..ed760c062 Binary files /dev/null and b/docs/fonts/OpenSans-BoldItalic-webfont.woff differ diff --git a/docs/fonts/OpenSans-Italic-webfont.eot b/docs/fonts/OpenSans-Italic-webfont.eot new file mode 100644 index 000000000..0c8a0ae06 Binary files /dev/null and b/docs/fonts/OpenSans-Italic-webfont.eot differ diff --git a/docs/fonts/OpenSans-Italic-webfont.svg b/docs/fonts/OpenSans-Italic-webfont.svg new file mode 100644 index 000000000..e1075dcc2 --- /dev/null +++ b/docs/fonts/OpenSans-Italic-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-Italic-webfont.woff b/docs/fonts/OpenSans-Italic-webfont.woff new file mode 100644 index 000000000..ff652e643 Binary files /dev/null and b/docs/fonts/OpenSans-Italic-webfont.woff differ diff --git a/docs/fonts/OpenSans-Light-webfont.eot b/docs/fonts/OpenSans-Light-webfont.eot new file mode 100644 index 000000000..14868406a Binary files /dev/null and b/docs/fonts/OpenSans-Light-webfont.eot differ diff --git a/docs/fonts/OpenSans-Light-webfont.svg b/docs/fonts/OpenSans-Light-webfont.svg new file mode 100644 index 000000000..11a472ca8 --- /dev/null +++ b/docs/fonts/OpenSans-Light-webfont.svg @@ -0,0 +1,1831 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-Light-webfont.woff b/docs/fonts/OpenSans-Light-webfont.woff new file mode 100644 index 000000000..e78607481 Binary files /dev/null and b/docs/fonts/OpenSans-Light-webfont.woff differ diff --git a/docs/fonts/OpenSans-LightItalic-webfont.eot b/docs/fonts/OpenSans-LightItalic-webfont.eot new file mode 100644 index 000000000..8f445929f Binary files /dev/null and b/docs/fonts/OpenSans-LightItalic-webfont.eot differ diff --git a/docs/fonts/OpenSans-LightItalic-webfont.svg b/docs/fonts/OpenSans-LightItalic-webfont.svg new file mode 100644 index 000000000..431d7e354 --- /dev/null +++ b/docs/fonts/OpenSans-LightItalic-webfont.svg @@ -0,0 +1,1835 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-LightItalic-webfont.woff b/docs/fonts/OpenSans-LightItalic-webfont.woff new file mode 100644 index 000000000..43e8b9e6c Binary files /dev/null and b/docs/fonts/OpenSans-LightItalic-webfont.woff differ diff --git a/docs/fonts/OpenSans-Regular-webfont.eot b/docs/fonts/OpenSans-Regular-webfont.eot new file mode 100644 index 000000000..6bbc3cf58 Binary files /dev/null and b/docs/fonts/OpenSans-Regular-webfont.eot differ diff --git a/docs/fonts/OpenSans-Regular-webfont.svg b/docs/fonts/OpenSans-Regular-webfont.svg new file mode 100644 index 000000000..25a395234 --- /dev/null +++ b/docs/fonts/OpenSans-Regular-webfont.svg @@ -0,0 +1,1831 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-Regular-webfont.woff b/docs/fonts/OpenSans-Regular-webfont.woff new file mode 100644 index 000000000..e231183dc Binary files /dev/null and b/docs/fonts/OpenSans-Regular-webfont.woff differ diff --git a/docs/index.html b/docs/index.html index 434df8e89..3493d2ff5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,7 +2,7 @@ - JSDoc: Index + JSDoc: Home @@ -17,11 +17,12 @@
-

Index

+

Home

+ @@ -35,6 +36,7 @@

+ @@ -48,13 +50,13 @@

-
+
- Documentation generated by JSDoc 3.3.0-alpha9 on Sat Oct 29 2016 02:53:19 GMT+0200 (Mitteleuropäische Sommerzeit) + Documentation generated by JSDoc 3.3.3 on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
diff --git a/docs/styles/jsdoc-default.css b/docs/styles/jsdoc-default.css index 124ef6c7f..24aa20f0e 100644 --- a/docs/styles/jsdoc-default.css +++ b/docs/styles/jsdoc-default.css @@ -1,57 +1,90 @@ +@font-face { + font-family: 'Open Sans'; + font-weight: normal; + font-style: normal; + src: url('../fonts/OpenSans-Regular-webfont.eot'); + src: + local('Open Sans'), + local('OpenSans'), + url('../fonts/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'), + url('../fonts/OpenSans-Regular-webfont.woff') format('woff'), + url('../fonts/OpenSans-Regular-webfont.svg#open_sansregular') format('svg'); +} + +@font-face { + font-family: 'Open Sans Light'; + font-weight: normal; + font-style: normal; + src: url('../fonts/OpenSans-Light-webfont.eot'); + src: + local('Open Sans Light'), + local('OpenSans Light'), + url('../fonts/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'), + url('../fonts/OpenSans-Light-webfont.woff') format('woff'), + url('../fonts/OpenSans-Light-webfont.svg#open_sanslight') format('svg'); +} + html { overflow: auto; background-color: #fff; + font-size: 14px; } body { - font: 14px "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif; - line-height: 130%; - color: #000; - background-color: #fff; + font-family: 'Open Sans', sans-serif; + line-height: 1.5; + color: #4d4e53; + background-color: white; } -a { - color: #444; -} - -a:visited { - color: #444; +a, a:visited, a:active { + color: #0095dd; + text-decoration: none; } -a:active { - color: #444; +a:hover { + text-decoration: underline; } header { display: block; - padding: 6px 4px; + padding: 0px 4px; +} + +tt, code, kbd, samp { + font-family: Consolas, Monaco, 'Andale Mono', monospace; } .class-description { - font-style: italic; - font-family: Palatino, 'Palatino Linotype', serif; font-size: 130%; line-height: 140%; margin-bottom: 1em; margin-top: 1em; } +.class-description:empty { + margin: 0; +} + #main { float: left; - width: 100%; + width: 70%; +} + +article dl { + margin-bottom: 40px; } section { display: block; - background-color: #fff; padding: 12px 24px; border-bottom: 1px solid #ccc; - margin-right: 240px; + margin-right: 30px; } .variation { @@ -68,26 +101,27 @@ section nav { display: block; - float: left; - margin-left: -230px; + float: right; margin-top: 28px; - width: 220px; + width: 30%; + box-sizing: border-box; border-left: 1px solid #ccc; - padding-left: 9px; + padding-left: 16px; } nav ul { font-family: 'Lucida Grande', 'Lucida Sans Unicode', arial, sans-serif; font-size: 100%; line-height: 17px; - padding:0; - margin:0; - list-style-type:none; + padding: 0; + margin: 0; + list-style-type: none; } -nav h2 a, nav h2 a:visited { - color: #A35A00; - text-decoration: none; +nav ul a, nav ul a:visited, nav ul a:active { + font-family: Consolas, Monaco, 'Andale Mono', monospace; + line-height: 18px; + color: #4D4E53; } nav h3 { @@ -98,18 +132,6 @@ nav li { margin-top: 6px; } -nav a { - color: #5C5954; -} - -nav a:visited { - color: #5C5954; -} - -nav a:active { - color: #5C5954; -} - footer { display: block; padding: 6px; @@ -118,39 +140,33 @@ footer { font-size: 90%; } -h1 -{ - font-size: 200%; - font-weight: bold; - letter-spacing: -0.01em; - margin: 6px 0 9px 0; +h1, h2, h3, h4 { + font-weight: 200; + margin: 0; } -h2 +h1 { - font-size: 170%; - font-weight: bold; - letter-spacing: -0.01em; - margin: 6px 0 3px 0; + font-family: 'Open Sans Light', sans-serif; + font-size: 48px; + letter-spacing: -2px; + margin: 12px 24px 20px; } -h3 +h2, h3 { - font-size: 150%; - font-weight: bold; - letter-spacing: -0.01em; - margin-top: 16px; - margin: 6px 0 3px 0; + font-size: 30px; + font-weight: 700; + letter-spacing: -1px; + margin-bottom: 12px; } h4 { - font-size: 130%; - font-weight: bold; - letter-spacing: -0.01em; - margin-top: 16px; - margin: 18px 0 3px 0; - color: #A35A00; + font-size: 18px; + letter-spacing: -0.33px; + margin-bottom: 12px; + color: #4d4e53; } h5, .container-overview .subsection-title @@ -158,7 +174,7 @@ h5, .container-overview .subsection-title font-size: 120%; font-weight: bold; letter-spacing: -0.01em; - margin: 8px 0 3px -16px; + margin: 8px 0 3px 0; } h6 @@ -176,6 +192,11 @@ h6 text-decoration: none; } +.clear +{ + clear: both; +} + .important { font-weight: bold; @@ -191,12 +212,12 @@ h6 } .name, .signature { - font-family: Consolas, "Lucida Console", Monaco, monospace; + font-family: Consolas, Monaco, 'Andale Mono', monospace; } .details { margin-top: 14px; border-left: 2px solid #DDD; } -.details dt { width:100px; float:left; padding-left: 10px; padding-top: 6px; } -.details dd { margin-left: 50px; } +.details dt { width: 120px; float: left; padding-left: 10px; padding-top: 6px; } +.details dd { margin-left: 70px; } .details ul { margin: 0; } .details ul { list-style-type: none; } .details li { margin-left: 30px; padding-top: 6px; } @@ -205,14 +226,12 @@ h6 .description { margin-bottom: 1em; - margin-left: -16px; margin-top: 1em; } .code-caption { font-style: italic; - font-family: Palatino, 'Palatino Linotype', serif; font-size: 107%; margin: 0; } @@ -230,14 +249,13 @@ h6 .prettyprint code { - font-family: Consolas, 'Lucida Console', Monaco, monospace; font-size: 100%; line-height: 18px; display: block; padding: 4px 12px; margin: 0; background-color: #fff; - color: #000; + color: #4D4E53; } .prettyprint code span.line @@ -286,8 +304,8 @@ h6 } .params .name, .props .name, .name code { - color: #A35A00; - font-family: Consolas, 'Lucida Console', Monaco, monospace; + color: #4D4E53; + font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 100%; } @@ -316,13 +334,15 @@ h6 .params th, .props th { border-right: 1px solid #aaa; } .params thead .last, .props thead .last { border-right: 1px solid #ddd; } -.params td.description > p:first-child +.params td.description > p:first-child, +.props td.description > p:first-child { margin-top: 0; padding-top: 0; } -.params td.description > p:last-child +.params td.description > p:last-child, +.props td.description > p:last-child { margin-bottom: 0; padding-bottom: 0; diff --git a/docs/styles/prettify-tomorrow.css b/docs/styles/prettify-tomorrow.css index aa2908c25..b6f92a78d 100644 --- a/docs/styles/prettify-tomorrow.css +++ b/docs/styles/prettify-tomorrow.css @@ -98,7 +98,7 @@ /* pre.prettyprint { background: white; - font-family: Menlo, Monaco, Consolas, monospace; + font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 12px; line-height: 1.5; border: 1px solid #ccc; diff --git a/package.json b/package.json index 7f1847aaf..45fc22335 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "protobufjs", - "version": "5.0.1", + "version": "5.0.2", "description": "Protocol Buffers for JavaScript. Finally.", "author": "Daniel Wirtz ", "contributors": [ diff --git a/src/google/protobuf/descriptor.json b/src/google/protobuf/descriptor.json index e60f2ca7b..2cb3cc17a 100644 --- a/src/google/protobuf/descriptor.json +++ b/src/google/protobuf/descriptor.json @@ -1,5 +1,6 @@ { "package": "google.protobuf", + "syntax": "proto2", "options": { "java_package": "com.google.protobuf", "java_outer_classname": "DescriptorProtos", @@ -8,6 +9,7 @@ "messages": [ { "name": "FileDescriptorSet", + "syntax": "proto2", "fields": [ { "rule": "repeated", @@ -19,6 +21,7 @@ }, { "name": "FileDescriptorProto", + "syntax": "proto2", "fields": [ { "rule": "optional", @@ -90,6 +93,7 @@ }, { "name": "DescriptorProto", + "syntax": "proto2", "fields": [ { "rule": "optional", @@ -137,6 +141,7 @@ "messages": [ { "name": "ExtensionRange", + "syntax": "proto2", "fields": [ { "rule": "optional", @@ -156,6 +161,7 @@ }, { "name": "FieldDescriptorProto", + "syntax": "proto2", "fields": [ { "rule": "optional", @@ -209,6 +215,7 @@ "enums": [ { "name": "Type", + "syntax": "proto2", "values": [ { "name": "TYPE_DOUBLE", @@ -286,6 +293,7 @@ }, { "name": "Label", + "syntax": "proto2", "values": [ { "name": "LABEL_OPTIONAL", @@ -305,6 +313,7 @@ }, { "name": "EnumDescriptorProto", + "syntax": "proto2", "fields": [ { "rule": "optional", @@ -328,6 +337,7 @@ }, { "name": "EnumValueDescriptorProto", + "syntax": "proto2", "fields": [ { "rule": "optional", @@ -351,6 +361,7 @@ }, { "name": "ServiceDescriptorProto", + "syntax": "proto2", "fields": [ { "rule": "optional", @@ -374,6 +385,7 @@ }, { "name": "MethodDescriptorProto", + "syntax": "proto2", "fields": [ { "rule": "optional", @@ -403,6 +415,7 @@ }, { "name": "FileOptions", + "syntax": "proto2", "fields": [ { "rule": "optional", @@ -492,6 +505,7 @@ "enums": [ { "name": "OptimizeMode", + "syntax": "proto2", "values": [ { "name": "SPEED", @@ -511,6 +525,7 @@ }, { "name": "MessageOptions", + "syntax": "proto2", "fields": [ { "rule": "optional", @@ -546,6 +561,7 @@ }, { "name": "FieldOptions", + "syntax": "proto2", "fields": [ { "rule": "optional", @@ -611,6 +627,7 @@ "enums": [ { "name": "CType", + "syntax": "proto2", "values": [ { "name": "STRING", @@ -630,6 +647,7 @@ }, { "name": "EnumOptions", + "syntax": "proto2", "fields": [ { "rule": "optional", @@ -656,6 +674,7 @@ }, { "name": "EnumValueOptions", + "syntax": "proto2", "fields": [ { "rule": "repeated", @@ -673,6 +692,7 @@ }, { "name": "ServiceOptions", + "syntax": "proto2", "fields": [ { "rule": "repeated", @@ -690,6 +710,7 @@ }, { "name": "MethodOptions", + "syntax": "proto2", "fields": [ { "rule": "repeated", @@ -707,6 +728,7 @@ }, { "name": "UninterpretedOption", + "syntax": "proto2", "fields": [ { "rule": "repeated", @@ -754,6 +776,7 @@ "messages": [ { "name": "NamePart", + "syntax": "proto2", "fields": [ { "rule": "required", @@ -773,6 +796,7 @@ }, { "name": "SourceCodeInfo", + "syntax": "proto2", "fields": [ { "rule": "repeated", @@ -784,6 +808,7 @@ "messages": [ { "name": "Location", + "syntax": "proto2", "fields": [ { "rule": "repeated", diff --git a/tests/complex.json b/tests/complex.json index ecfa36d52..534f1bae4 100644 --- a/tests/complex.json +++ b/tests/complex.json @@ -1,8 +1,10 @@ { "package": "Game.Cars", + "syntax": "proto2", "messages": [ { "name": "Car", + "syntax": "proto2", "fields": [ { "rule": "required", @@ -29,6 +31,7 @@ "messages": [ { "name": "Vendor", + "syntax": "proto2", "fields": [ { "rule": "required", @@ -52,6 +55,7 @@ "messages": [ { "name": "Address", + "syntax": "proto2", "fields": [ { "rule": "required", @@ -65,6 +69,7 @@ }, { "name": "Holder", + "syntax": "proto2", "fields": [ { "rule": "optional", @@ -90,6 +95,7 @@ "enums": [ { "name": "Speed", + "syntax": "proto2", "values": [ { "name": "FAST",