From cf36097305ab02047be5014eabeccc3154e18bde Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Fri, 9 Jun 2017 11:03:56 +0200 Subject: [PATCH] Generate more verbose JSDoc comments for ES6 support, fixes #820 --- cli/targets/static.js | 34 +- scripts/gentests.js | 1 + tests/data/comments.js | 48 +- tests/data/convert.js | 40 +- tests/data/mapbox/vector_tile.d.ts | 54 - tests/data/mapbox/vector_tile.js | 120 +- tests/data/package.d.ts | 11 - tests/data/package.js | 78 +- tests/data/rpc-es6.d.ts | 49 + tests/data/rpc-es6.js | 54 +- tests/data/rpc.js | 52 +- tests/data/test.d.ts | 723 ------------ tests/data/test.js | 1640 ++++++++++++++++++++++++++-- 13 files changed, 1996 insertions(+), 908 deletions(-) create mode 100644 tests/data/rpc-es6.d.ts diff --git a/cli/targets/static.js b/cli/targets/static.js index 5830b1f13..2f4f88591 100644 --- a/cli/targets/static.js +++ b/cli/targets/static.js @@ -394,6 +394,8 @@ function buildType(ref, type) { jsType = "(" + jsType + "|null)"; pushComment([ field.comment || type.name + " " + field.name + ".", + "@memberof " + exportName(type), + "@instance", "@type {" + jsType + "}" ]); } else if (firstField) { @@ -430,7 +432,9 @@ function buildType(ref, type) { push(""); pushComment([ oneof.comment || type.name + " " + oneof.name + ".", - "@name " + exportName(type) + "#" + escapeName(oneof.name), + "@property " + escapeName(oneof.name), + "@memberof " + exportName(type), + "@instance", "@type {string|undefined}" ]); push("Object.defineProperty(" + escapeName(type.name) + ".prototype, " + JSON.stringify(oneof.name) +", {"); @@ -445,6 +449,8 @@ function buildType(ref, type) { push(""); pushComment([ "Creates a new " + type.name + " instance using the specified properties.", + "@memberof " + exportName(type), + "@static", "@param {" + exportName(type, true) + "=} [properties] Properties to set", "@returns {" + exportName(type) + "} " + type.name + " instance" ]); @@ -459,6 +465,8 @@ function buildType(ref, type) { push(""); pushComment([ "Encodes the specified " + type.name + " message. Does not implicitly {@link " + exportName(type) + ".verify|verify} messages.", + "@memberof " + exportName(type), + "@static", "@param {" + exportName(type, !config.forceMessage) + "} " + (config.beautify ? "message" : "m") + " " + type.name + " message or plain object to encode", "@param {$protobuf.Writer} [" + (config.beautify ? "writer" : "w") + "] Writer to encode to", "@returns {$protobuf.Writer} Writer" @@ -469,6 +477,8 @@ function buildType(ref, type) { push(""); pushComment([ "Encodes the specified " + type.name + " message, length delimited. Does not implicitly {@link " + exportName(type) + ".verify|verify} messages.", + "@memberof " + exportName(type), + "@static", "@param {" + exportName(type, !config.forceMessage) + "} message " + type.name + " message or plain object to encode", "@param {$protobuf.Writer} [writer] Writer to encode to", "@returns {$protobuf.Writer} Writer" @@ -485,6 +495,8 @@ function buildType(ref, type) { push(""); pushComment([ "Decodes " + aOrAn(type.name) + " message from the specified reader or buffer.", + "@memberof " + exportName(type), + "@static", "@param {$protobuf.Reader|Uint8Array} " + (config.beautify ? "reader" : "r") + " Reader or buffer to decode from", "@param {number} [" + (config.beautify ? "length" : "l") + "] Message length if known beforehand", "@returns {" + exportName(type) + "} " + type.name, @@ -497,6 +509,8 @@ function buildType(ref, type) { push(""); pushComment([ "Decodes " + aOrAn(type.name) + " message from the specified reader or buffer, length delimited.", + "@memberof " + exportName(type), + "@static", "@param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from", "@returns {" + exportName(type) + "} " + type.name, "@throws {Error} If the payload is not a reader or valid buffer", @@ -518,6 +532,8 @@ function buildType(ref, type) { push(""); pushComment([ "Verifies " + aOrAn(type.name) + " message.", + "@memberof " + exportName(type), + "@static", "@param {Object.} " + (config.beautify ? "message" : "m") + " Plain object to verify", "@returns {string|null} `null` if valid, otherwise the reason why it is not" ]); @@ -528,6 +544,8 @@ function buildType(ref, type) { push(""); pushComment([ "Creates " + aOrAn(type.name) + " message from a plain object. Also converts values to their respective internal types.", + "@memberof " + exportName(type), + "@static", "@param {Object.} " + (config.beautify ? "object" : "d") + " Plain object", "@returns {" + exportName(type) + "} " + type.name ]); @@ -536,6 +554,8 @@ function buildType(ref, type) { push(""); pushComment([ "Creates a plain object from " + aOrAn(type.name) + " message. Also converts values to other types if specified.", + "@memberof " + exportName(type), + "@static", "@param {" + exportName(type) + "} " + (config.beautify ? "message" : "m") + " " + type.name, "@param {$protobuf.IConversionOptions} [" + (config.beautify ? "options" : "o") + "] Conversion options", "@returns {Object.} Plain object" @@ -545,6 +565,8 @@ function buildType(ref, type) { push(""); pushComment([ "Converts this " + type.name + " to JSON.", + "@memberof " + exportName(type), + "@instance", "@returns {Object.} JSON object" ]); push(escapeName(type.name) + ".prototype.toJSON = function toJSON() {"); @@ -580,6 +602,8 @@ function buildService(ref, service) { push(""); pushComment([ "Creates new " + service.name + " service using the specified rpc implementation.", + "@memberof " + exportName(service), + "@static", "@param {$protobuf.RPCImpl} rpcImpl RPC implementation", "@param {boolean} [requestDelimited=false] Whether requests are length-delimited", "@param {boolean} [responseDelimited=false] Whether responses are length-delimited", @@ -609,9 +633,12 @@ function buildService(ref, service) { push(""); pushComment([ method.comment || "Calls " + method.name + ".", + "@memberof " + exportName(service), + "@instance", "@param {" + exportName(method.resolvedRequestType, !config.forceMessage) + "} request " + method.resolvedRequestType.name + " message or plain object", "@param {" + exportName(service) + "." + cbName + "} callback Node-style callback called with the error, if any, and " + method.resolvedResponseType.name, - "@returns {undefined}" + "@returns {undefined}", + "@variation 1" ]); push(escapeName(service.name) + ".prototype" + util.safeProp(lcName) + " = function " + escapeName(lcName) + "(request, callback) {"); ++indent; @@ -622,8 +649,9 @@ function buildService(ref, service) { push(""); pushComment([ method.comment || "Calls " + method.name + ".", - "@memberof " + exportName(service) + ".prototype", "@function " + lcName, + "@memberof " + exportName(service), + "@instance", "@param {" + exportName(method.resolvedRequestType, !config.forceMessage) + "} request " + method.resolvedRequestType.name + " message or plain object", "@returns {Promise<" + exportName(method.resolvedResponseType) + ">} Promise", "@variation 2" diff --git a/scripts/gentests.js b/scripts/gentests.js index 83869bca2..67345ef8c 100644 --- a/scripts/gentests.js +++ b/scripts/gentests.js @@ -49,6 +49,7 @@ process.stdout.write("\n"); { file: "tests/data/mapbox/vector_tile.js" }, { file: "tests/data/package.js" }, { file: "tests/data/rpc.js" }, + { file: "tests/data/rpc-es6.js" }, { file: "tests/data/test.js" }, { file: "ext/descriptor/index.js", ext: true } ] diff --git a/tests/data/comments.js b/tests/data/comments.js index 61c6c524a..6fb32ebc9 100644 --- a/tests/data/comments.js +++ b/tests/data/comments.js @@ -39,24 +39,32 @@ $root.Test1 = (function() { /** * Field with a comment. + * @memberof Test1 + * @instance * @type {string} */ Test1.prototype.field1 = ""; /** * Test1 field2. + * @memberof Test1 + * @instance * @type {number} */ Test1.prototype.field2 = 0; /** * Field with a comment and a link + * @memberof Test1 + * @instance * @type {boolean} */ Test1.prototype.field3 = false; /** * Creates a new Test1 instance using the specified properties. + * @memberof Test1 + * @static * @param {ITest1=} [properties] Properties to set * @returns {Test1} Test1 instance */ @@ -66,6 +74,8 @@ $root.Test1 = (function() { /** * Encodes the specified Test1 message. Does not implicitly {@link Test1.verify|verify} messages. + * @memberof Test1 + * @static * @param {ITest1} message Test1 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -84,6 +94,8 @@ $root.Test1 = (function() { /** * Encodes the specified Test1 message, length delimited. Does not implicitly {@link Test1.verify|verify} messages. + * @memberof Test1 + * @static * @param {ITest1} message Test1 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -94,6 +106,8 @@ $root.Test1 = (function() { /** * Decodes a Test1 message from the specified reader or buffer. + * @memberof Test1 + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {Test1} Test1 @@ -126,6 +140,8 @@ $root.Test1 = (function() { /** * Decodes a Test1 message from the specified reader or buffer, length delimited. + * @memberof Test1 + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {Test1} Test1 * @throws {Error} If the payload is not a reader or valid buffer @@ -133,12 +149,14 @@ $root.Test1 = (function() { */ Test1.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Test1 message. + * @memberof Test1 + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -159,6 +177,8 @@ $root.Test1 = (function() { /** * Creates a Test1 message from a plain object. Also converts values to their respective internal types. + * @memberof Test1 + * @static * @param {Object.} object Plain object * @returns {Test1} Test1 */ @@ -177,6 +197,8 @@ $root.Test1 = (function() { /** * Creates a plain object from a Test1 message. Also converts values to other types if specified. + * @memberof Test1 + * @static * @param {Test1} message Test1 * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -201,6 +223,8 @@ $root.Test1 = (function() { /** * Converts this Test1 to JSON. + * @memberof Test1 + * @instance * @returns {Object.} JSON object */ Test1.prototype.toJSON = function toJSON() { @@ -234,6 +258,8 @@ $root.Test2 = (function() { /** * Creates a new Test2 instance using the specified properties. + * @memberof Test2 + * @static * @param {ITest2=} [properties] Properties to set * @returns {Test2} Test2 instance */ @@ -243,6 +269,8 @@ $root.Test2 = (function() { /** * Encodes the specified Test2 message. Does not implicitly {@link Test2.verify|verify} messages. + * @memberof Test2 + * @static * @param {ITest2} message Test2 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -255,6 +283,8 @@ $root.Test2 = (function() { /** * Encodes the specified Test2 message, length delimited. Does not implicitly {@link Test2.verify|verify} messages. + * @memberof Test2 + * @static * @param {ITest2} message Test2 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -265,6 +295,8 @@ $root.Test2 = (function() { /** * Decodes a Test2 message from the specified reader or buffer. + * @memberof Test2 + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {Test2} Test2 @@ -288,6 +320,8 @@ $root.Test2 = (function() { /** * Decodes a Test2 message from the specified reader or buffer, length delimited. + * @memberof Test2 + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {Test2} Test2 * @throws {Error} If the payload is not a reader or valid buffer @@ -295,12 +329,14 @@ $root.Test2 = (function() { */ Test2.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Test2 message. + * @memberof Test2 + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -312,6 +348,8 @@ $root.Test2 = (function() { /** * Creates a Test2 message from a plain object. Also converts values to their respective internal types. + * @memberof Test2 + * @static * @param {Object.} object Plain object * @returns {Test2} Test2 */ @@ -323,6 +361,8 @@ $root.Test2 = (function() { /** * Creates a plain object from a Test2 message. Also converts values to other types if specified. + * @memberof Test2 + * @static * @param {Test2} message Test2 * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -333,6 +373,8 @@ $root.Test2 = (function() { /** * Converts this Test2 to JSON. + * @memberof Test2 + * @instance * @returns {Object.} JSON object */ Test2.prototype.toJSON = function toJSON() { @@ -345,7 +387,7 @@ $root.Test2 = (function() { /** * Test3 enum. * @exports Test3 - * @enum {number} + * @enum {string} * @property {number} ONE=1 Value with a comment. * @property {number} TWO=2 TWO value * @property {number} THREE=3 Preferred value with a comment. diff --git a/tests/data/convert.js b/tests/data/convert.js index 87cd2e517..30e39c77b 100644 --- a/tests/data/convert.js +++ b/tests/data/convert.js @@ -47,60 +47,80 @@ $root.Message = (function() { /** * Message stringVal. + * @memberof Message + * @instance * @type {string} */ Message.prototype.stringVal = ""; /** * Message stringRepeated. + * @memberof Message + * @instance * @type {Array.} */ Message.prototype.stringRepeated = $util.emptyArray; /** * Message uint64Val. + * @memberof Message + * @instance * @type {number|Long} */ Message.prototype.uint64Val = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** * Message uint64Repeated. + * @memberof Message + * @instance * @type {Array.} */ Message.prototype.uint64Repeated = $util.emptyArray; /** * Message bytesVal. + * @memberof Message + * @instance * @type {Uint8Array} */ Message.prototype.bytesVal = $util.newBuffer([]); /** * Message bytesRepeated. + * @memberof Message + * @instance * @type {Array.} */ Message.prototype.bytesRepeated = $util.emptyArray; /** * Message enumVal. + * @memberof Message + * @instance * @type {Message.SomeEnum} */ Message.prototype.enumVal = 1; /** * Message enumRepeated. + * @memberof Message + * @instance * @type {Array.} */ Message.prototype.enumRepeated = $util.emptyArray; /** * Message int64Map. + * @memberof Message + * @instance * @type {Object.} */ Message.prototype.int64Map = $util.emptyObject; /** * Creates a new Message instance using the specified properties. + * @memberof Message + * @static * @param {IMessage=} [properties] Properties to set * @returns {Message} Message instance */ @@ -110,6 +130,8 @@ $root.Message = (function() { /** * Encodes the specified Message message. Does not implicitly {@link Message.verify|verify} messages. + * @memberof Message + * @static * @param {IMessage} message Message message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -151,6 +173,8 @@ $root.Message = (function() { /** * Encodes the specified Message message, length delimited. Does not implicitly {@link Message.verify|verify} messages. + * @memberof Message + * @static * @param {IMessage} message Message message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -161,6 +185,8 @@ $root.Message = (function() { /** * Decodes a Message message from the specified reader or buffer. + * @memberof Message + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {Message} Message @@ -234,6 +260,8 @@ $root.Message = (function() { /** * Decodes a Message message from the specified reader or buffer, length delimited. + * @memberof Message + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {Message} Message * @throws {Error} If the payload is not a reader or valid buffer @@ -241,12 +269,14 @@ $root.Message = (function() { */ Message.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Message message. + * @memberof Message + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -316,6 +346,8 @@ $root.Message = (function() { /** * Creates a Message message from a plain object. Also converts values to their respective internal types. + * @memberof Message + * @static * @param {Object.} object Plain object * @returns {Message} Message */ @@ -416,6 +448,8 @@ $root.Message = (function() { /** * Creates a plain object from a Message message. Also converts values to other types if specified. + * @memberof Message + * @static * @param {Message} message Message * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -490,6 +524,8 @@ $root.Message = (function() { /** * Converts this Message to JSON. + * @memberof Message + * @instance * @returns {Object.} JSON object */ Message.prototype.toJSON = function toJSON() { @@ -498,7 +534,7 @@ $root.Message = (function() { /** * SomeEnum enum. - * @enum {number} + * @enum {string} * @property {number} ONE=1 ONE value * @property {number} TWO=2 TWO value */ diff --git a/tests/data/mapbox/vector_tile.d.ts b/tests/data/mapbox/vector_tile.d.ts index 222de07a0..c7d6f023f 100644 --- a/tests/data/mapbox/vector_tile.d.ts +++ b/tests/data/mapbox/vector_tile.d.ts @@ -8,16 +8,6 @@ export namespace vector_tile { class Tile { constructor(properties?: vector_tile.ITile); - public layers: vector_tile.Tile.ILayer[]; - public static create(properties?: vector_tile.ITile): vector_tile.Tile; - public static encode(message: vector_tile.ITile, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: vector_tile.ITile, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vector_tile.Tile; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vector_tile.Tile; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): vector_tile.Tile; - public static toObject(message: vector_tile.Tile, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace Tile { @@ -41,22 +31,6 @@ export namespace vector_tile { class Value { constructor(properties?: vector_tile.Tile.IValue); - public stringValue: string; - public floatValue: number; - public doubleValue: number; - public intValue: (number|Long); - public uintValue: (number|Long); - public sintValue: (number|Long); - public boolValue: boolean; - public static create(properties?: vector_tile.Tile.IValue): vector_tile.Tile.Value; - public static encode(message: vector_tile.Tile.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: vector_tile.Tile.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vector_tile.Tile.Value; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vector_tile.Tile.Value; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): vector_tile.Tile.Value; - public static toObject(message: vector_tile.Tile.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IFeature { @@ -68,19 +42,6 @@ export namespace vector_tile { class Feature { constructor(properties?: vector_tile.Tile.IFeature); - public id: (number|Long); - public tags: number[]; - public type: vector_tile.Tile.GeomType; - public geometry: number[]; - public static create(properties?: vector_tile.Tile.IFeature): vector_tile.Tile.Feature; - public static encode(message: vector_tile.Tile.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: vector_tile.Tile.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vector_tile.Tile.Feature; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vector_tile.Tile.Feature; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): vector_tile.Tile.Feature; - public static toObject(message: vector_tile.Tile.Feature, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface ILayer { @@ -94,21 +55,6 @@ export namespace vector_tile { class Layer { constructor(properties?: vector_tile.Tile.ILayer); - public version: number; - public name: string; - public features: vector_tile.Tile.IFeature[]; - public keys: string[]; - public values: vector_tile.Tile.IValue[]; - public extent: number; - public static create(properties?: vector_tile.Tile.ILayer): vector_tile.Tile.Layer; - public static encode(message: vector_tile.Tile.ILayer, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: vector_tile.Tile.ILayer, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vector_tile.Tile.Layer; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vector_tile.Tile.Layer; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): vector_tile.Tile.Layer; - public static toObject(message: vector_tile.Tile.Layer, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } } } diff --git a/tests/data/mapbox/vector_tile.js b/tests/data/mapbox/vector_tile.js index a68058f38..26a334705 100644 --- a/tests/data/mapbox/vector_tile.js +++ b/tests/data/mapbox/vector_tile.js @@ -44,12 +44,16 @@ $root.vector_tile = (function() { /** * Tile layers. + * @memberof vector_tile.Tile + * @instance * @type {Array.} */ Tile.prototype.layers = $util.emptyArray; /** * Creates a new Tile instance using the specified properties. + * @memberof vector_tile.Tile + * @static * @param {vector_tile.ITile=} [properties] Properties to set * @returns {vector_tile.Tile} Tile instance */ @@ -59,6 +63,8 @@ $root.vector_tile = (function() { /** * Encodes the specified Tile message. Does not implicitly {@link vector_tile.Tile.verify|verify} messages. + * @memberof vector_tile.Tile + * @static * @param {vector_tile.ITile} message Tile message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -74,6 +80,8 @@ $root.vector_tile = (function() { /** * Encodes the specified Tile message, length delimited. Does not implicitly {@link vector_tile.Tile.verify|verify} messages. + * @memberof vector_tile.Tile + * @static * @param {vector_tile.ITile} message Tile message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -84,6 +92,8 @@ $root.vector_tile = (function() { /** * Decodes a Tile message from the specified reader or buffer. + * @memberof vector_tile.Tile + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {vector_tile.Tile} Tile @@ -112,6 +122,8 @@ $root.vector_tile = (function() { /** * Decodes a Tile message from the specified reader or buffer, length delimited. + * @memberof vector_tile.Tile + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {vector_tile.Tile} Tile * @throws {Error} If the payload is not a reader or valid buffer @@ -119,12 +131,14 @@ $root.vector_tile = (function() { */ Tile.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Tile message. + * @memberof vector_tile.Tile + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -145,6 +159,8 @@ $root.vector_tile = (function() { /** * Creates a Tile message from a plain object. Also converts values to their respective internal types. + * @memberof vector_tile.Tile + * @static * @param {Object.} object Plain object * @returns {vector_tile.Tile} Tile */ @@ -167,6 +183,8 @@ $root.vector_tile = (function() { /** * Creates a plain object from a Tile message. Also converts values to other types if specified. + * @memberof vector_tile.Tile + * @static * @param {vector_tile.Tile} message Tile * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -187,6 +205,8 @@ $root.vector_tile = (function() { /** * Converts this Tile to JSON. + * @memberof vector_tile.Tile + * @instance * @returns {Object.} JSON object */ Tile.prototype.toJSON = function toJSON() { @@ -195,7 +215,7 @@ $root.vector_tile = (function() { /** * GeomType enum. - * @enum {number} + * @enum {string} * @property {number} UNKNOWN=0 UNKNOWN value * @property {number} POINT=1 POINT value * @property {number} LINESTRING=2 LINESTRING value @@ -241,48 +261,64 @@ $root.vector_tile = (function() { /** * Value stringValue. + * @memberof vector_tile.Tile.Value + * @instance * @type {string} */ Value.prototype.stringValue = ""; /** * Value floatValue. + * @memberof vector_tile.Tile.Value + * @instance * @type {number} */ Value.prototype.floatValue = 0; /** * Value doubleValue. + * @memberof vector_tile.Tile.Value + * @instance * @type {number} */ Value.prototype.doubleValue = 0; /** * Value intValue. + * @memberof vector_tile.Tile.Value + * @instance * @type {number|Long} */ Value.prototype.intValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** * Value uintValue. + * @memberof vector_tile.Tile.Value + * @instance * @type {number|Long} */ Value.prototype.uintValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** * Value sintValue. + * @memberof vector_tile.Tile.Value + * @instance * @type {number|Long} */ Value.prototype.sintValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** * Value boolValue. + * @memberof vector_tile.Tile.Value + * @instance * @type {boolean} */ Value.prototype.boolValue = false; /** * Creates a new Value instance using the specified properties. + * @memberof vector_tile.Tile.Value + * @static * @param {vector_tile.Tile.IValue=} [properties] Properties to set * @returns {vector_tile.Tile.Value} Value instance */ @@ -292,6 +328,8 @@ $root.vector_tile = (function() { /** * Encodes the specified Value message. Does not implicitly {@link vector_tile.Tile.Value.verify|verify} messages. + * @memberof vector_tile.Tile.Value + * @static * @param {vector_tile.Tile.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -318,6 +356,8 @@ $root.vector_tile = (function() { /** * Encodes the specified Value message, length delimited. Does not implicitly {@link vector_tile.Tile.Value.verify|verify} messages. + * @memberof vector_tile.Tile.Value + * @static * @param {vector_tile.Tile.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -328,6 +368,8 @@ $root.vector_tile = (function() { /** * Decodes a Value message from the specified reader or buffer. + * @memberof vector_tile.Tile.Value + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {vector_tile.Tile.Value} Value @@ -372,6 +414,8 @@ $root.vector_tile = (function() { /** * Decodes a Value message from the specified reader or buffer, length delimited. + * @memberof vector_tile.Tile.Value + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {vector_tile.Tile.Value} Value * @throws {Error} If the payload is not a reader or valid buffer @@ -379,12 +423,14 @@ $root.vector_tile = (function() { */ Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Value message. + * @memberof vector_tile.Tile.Value + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -417,6 +463,8 @@ $root.vector_tile = (function() { /** * Creates a Value message from a plain object. Also converts values to their respective internal types. + * @memberof vector_tile.Tile.Value + * @static * @param {Object.} object Plain object * @returns {vector_tile.Tile.Value} Value */ @@ -464,6 +512,8 @@ $root.vector_tile = (function() { /** * Creates a plain object from a Value message. Also converts values to other types if specified. + * @memberof vector_tile.Tile.Value + * @static * @param {vector_tile.Tile.Value} message Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -521,6 +571,8 @@ $root.vector_tile = (function() { /** * Converts this Value to JSON. + * @memberof vector_tile.Tile.Value + * @instance * @returns {Object.} JSON object */ Value.prototype.toJSON = function toJSON() { @@ -560,30 +612,40 @@ $root.vector_tile = (function() { /** * Feature id. + * @memberof vector_tile.Tile.Feature + * @instance * @type {number|Long} */ Feature.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** * Feature tags. + * @memberof vector_tile.Tile.Feature + * @instance * @type {Array.} */ Feature.prototype.tags = $util.emptyArray; /** * Feature type. + * @memberof vector_tile.Tile.Feature + * @instance * @type {vector_tile.Tile.GeomType} */ Feature.prototype.type = 0; /** * Feature geometry. + * @memberof vector_tile.Tile.Feature + * @instance * @type {Array.} */ Feature.prototype.geometry = $util.emptyArray; /** * Creates a new Feature instance using the specified properties. + * @memberof vector_tile.Tile.Feature + * @static * @param {vector_tile.Tile.IFeature=} [properties] Properties to set * @returns {vector_tile.Tile.Feature} Feature instance */ @@ -593,6 +655,8 @@ $root.vector_tile = (function() { /** * Encodes the specified Feature message. Does not implicitly {@link vector_tile.Tile.Feature.verify|verify} messages. + * @memberof vector_tile.Tile.Feature + * @static * @param {vector_tile.Tile.IFeature} message Feature message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -621,6 +685,8 @@ $root.vector_tile = (function() { /** * Encodes the specified Feature message, length delimited. Does not implicitly {@link vector_tile.Tile.Feature.verify|verify} messages. + * @memberof vector_tile.Tile.Feature + * @static * @param {vector_tile.Tile.IFeature} message Feature message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -631,6 +697,8 @@ $root.vector_tile = (function() { /** * Decodes a Feature message from the specified reader or buffer. + * @memberof vector_tile.Tile.Feature + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {vector_tile.Tile.Feature} Feature @@ -680,6 +748,8 @@ $root.vector_tile = (function() { /** * Decodes a Feature message from the specified reader or buffer, length delimited. + * @memberof vector_tile.Tile.Feature + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {vector_tile.Tile.Feature} Feature * @throws {Error} If the payload is not a reader or valid buffer @@ -687,12 +757,14 @@ $root.vector_tile = (function() { */ Feature.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Feature message. + * @memberof vector_tile.Tile.Feature + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -731,6 +803,8 @@ $root.vector_tile = (function() { /** * Creates a Feature message from a plain object. Also converts values to their respective internal types. + * @memberof vector_tile.Tile.Feature + * @static * @param {Object.} object Plain object * @returns {vector_tile.Tile.Feature} Feature */ @@ -784,6 +858,8 @@ $root.vector_tile = (function() { /** * Creates a plain object from a Feature message. Also converts values to other types if specified. + * @memberof vector_tile.Tile.Feature + * @static * @param {vector_tile.Tile.Feature} message Feature * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -826,6 +902,8 @@ $root.vector_tile = (function() { /** * Converts this Feature to JSON. + * @memberof vector_tile.Tile.Feature + * @instance * @returns {Object.} JSON object */ Feature.prototype.toJSON = function toJSON() { @@ -868,42 +946,56 @@ $root.vector_tile = (function() { /** * Layer version. + * @memberof vector_tile.Tile.Layer + * @instance * @type {number} */ Layer.prototype.version = 1; /** * Layer name. + * @memberof vector_tile.Tile.Layer + * @instance * @type {string} */ Layer.prototype.name = ""; /** * Layer features. + * @memberof vector_tile.Tile.Layer + * @instance * @type {Array.} */ Layer.prototype.features = $util.emptyArray; /** * Layer keys. + * @memberof vector_tile.Tile.Layer + * @instance * @type {Array.} */ Layer.prototype.keys = $util.emptyArray; /** * Layer values. + * @memberof vector_tile.Tile.Layer + * @instance * @type {Array.} */ Layer.prototype.values = $util.emptyArray; /** * Layer extent. + * @memberof vector_tile.Tile.Layer + * @instance * @type {number} */ Layer.prototype.extent = 4096; /** * Creates a new Layer instance using the specified properties. + * @memberof vector_tile.Tile.Layer + * @static * @param {vector_tile.Tile.ILayer=} [properties] Properties to set * @returns {vector_tile.Tile.Layer} Layer instance */ @@ -913,6 +1005,8 @@ $root.vector_tile = (function() { /** * Encodes the specified Layer message. Does not implicitly {@link vector_tile.Tile.Layer.verify|verify} messages. + * @memberof vector_tile.Tile.Layer + * @static * @param {vector_tile.Tile.ILayer} message Layer message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -938,6 +1032,8 @@ $root.vector_tile = (function() { /** * Encodes the specified Layer message, length delimited. Does not implicitly {@link vector_tile.Tile.Layer.verify|verify} messages. + * @memberof vector_tile.Tile.Layer + * @static * @param {vector_tile.Tile.ILayer} message Layer message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -948,6 +1044,8 @@ $root.vector_tile = (function() { /** * Decodes a Layer message from the specified reader or buffer. + * @memberof vector_tile.Tile.Layer + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {vector_tile.Tile.Layer} Layer @@ -999,6 +1097,8 @@ $root.vector_tile = (function() { /** * Decodes a Layer message from the specified reader or buffer, length delimited. + * @memberof vector_tile.Tile.Layer + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {vector_tile.Tile.Layer} Layer * @throws {Error} If the payload is not a reader or valid buffer @@ -1006,12 +1106,14 @@ $root.vector_tile = (function() { */ Layer.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Layer message. + * @memberof vector_tile.Tile.Layer + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -1042,7 +1144,7 @@ $root.vector_tile = (function() { if (!Array.isArray(message.values)) return "values: array expected"; for (var i = 0; i < message.values.length; ++i) { - var error = $root.vector_tile.Tile.Value.verify(message.values[i]); + error = $root.vector_tile.Tile.Value.verify(message.values[i]); if (error) return "values." + error; } @@ -1055,6 +1157,8 @@ $root.vector_tile = (function() { /** * Creates a Layer message from a plain object. Also converts values to their respective internal types. + * @memberof vector_tile.Tile.Layer + * @static * @param {Object.} object Plain object * @returns {vector_tile.Tile.Layer} Layer */ @@ -1100,6 +1204,8 @@ $root.vector_tile = (function() { /** * Creates a plain object from a Layer message. Also converts values to other types if specified. + * @memberof vector_tile.Tile.Layer + * @static * @param {vector_tile.Tile.Layer} message Layer * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -1144,6 +1250,8 @@ $root.vector_tile = (function() { /** * Converts this Layer to JSON. + * @memberof vector_tile.Tile.Layer + * @instance * @returns {Object.} JSON object */ Layer.prototype.toJSON = function toJSON() { diff --git a/tests/data/package.d.ts b/tests/data/package.d.ts index 97a791866..63d18d1a1 100644 --- a/tests/data/package.d.ts +++ b/tests/data/package.d.ts @@ -59,16 +59,5 @@ export namespace Package { class Repository { constructor(properties?: Package.IRepository); - public type: string; - public url: string; - public static create(properties?: Package.IRepository): Package.Repository; - public static encode(message: Package.IRepository, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: Package.IRepository, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Package.Repository; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Package.Repository; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): Package.Repository; - public static toObject(message: Package.Repository, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } } diff --git a/tests/data/package.js b/tests/data/package.js index 259e7ac22..ad7041138 100644 --- a/tests/data/package.js +++ b/tests/data/package.js @@ -56,108 +56,144 @@ $root.Package = (function() { /** * Package name. + * @memberof Package + * @instance * @type {string} */ Package.prototype.name = ""; /** * Package version. + * @memberof Package + * @instance * @type {string} */ Package.prototype.version = ""; /** * Package versionScheme. + * @memberof Package + * @instance * @type {string} */ Package.prototype.versionScheme = ""; /** * Package description. + * @memberof Package + * @instance * @type {string} */ Package.prototype.description = ""; /** * Package author. + * @memberof Package + * @instance * @type {string} */ Package.prototype.author = ""; /** * Package license. + * @memberof Package + * @instance * @type {string} */ Package.prototype.license = ""; /** * Package repository. + * @memberof Package + * @instance * @type {(Package.IRepository|null)} */ Package.prototype.repository = null; /** * Package bugs. + * @memberof Package + * @instance * @type {string} */ Package.prototype.bugs = ""; /** * Package homepage. + * @memberof Package + * @instance * @type {string} */ Package.prototype.homepage = ""; /** * Package keywords. + * @memberof Package + * @instance * @type {Array.} */ Package.prototype.keywords = $util.emptyArray; /** * Package main. + * @memberof Package + * @instance * @type {string} */ Package.prototype.main = ""; /** * Package bin. + * @memberof Package + * @instance * @type {Object.} */ Package.prototype.bin = $util.emptyObject; /** * Package scripts. + * @memberof Package + * @instance * @type {Object.} */ Package.prototype.scripts = $util.emptyObject; /** * Package dependencies. + * @memberof Package + * @instance * @type {Object.} */ Package.prototype.dependencies = $util.emptyObject; /** * Package devDependencies. + * @memberof Package + * @instance * @type {Object.} */ Package.prototype.devDependencies = $util.emptyObject; /** * Package types. + * @memberof Package + * @instance * @type {string} */ Package.prototype.types = ""; /** * Package cliDependencies. + * @memberof Package + * @instance * @type {Array.} */ Package.prototype.cliDependencies = $util.emptyArray; /** * Creates a new Package instance using the specified properties. + * @memberof Package + * @static * @param {IPackage=} [properties] Properties to set * @returns {Package} Package instance */ @@ -167,6 +203,8 @@ $root.Package = (function() { /** * Encodes the specified Package message. Does not implicitly {@link Package.verify|verify} messages. + * @memberof Package + * @static * @param {IPackage} message Package message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -219,6 +257,8 @@ $root.Package = (function() { /** * Encodes the specified Package message, length delimited. Does not implicitly {@link Package.verify|verify} messages. + * @memberof Package + * @static * @param {IPackage} message Package message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -229,6 +269,8 @@ $root.Package = (function() { /** * Decodes a Package message from the specified reader or buffer. + * @memberof Package + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {Package} Package @@ -327,6 +369,8 @@ $root.Package = (function() { /** * Decodes a Package message from the specified reader or buffer, length delimited. + * @memberof Package + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {Package} Package * @throws {Error} If the payload is not a reader or valid buffer @@ -334,12 +378,14 @@ $root.Package = (function() { */ Package.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Package message. + * @memberof Package + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -432,6 +478,8 @@ $root.Package = (function() { /** * Creates a Package message from a plain object. Also converts values to their respective internal types. + * @memberof Package + * @static * @param {Object.} object Plain object * @returns {Package} Package */ @@ -511,6 +559,8 @@ $root.Package = (function() { /** * Creates a plain object from a Package message. Also converts values to other types if specified. + * @memberof Package + * @static * @param {Package} message Package * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -600,6 +650,8 @@ $root.Package = (function() { /** * Converts this Package to JSON. + * @memberof Package + * @instance * @returns {Object.} JSON object */ Package.prototype.toJSON = function toJSON() { @@ -632,18 +684,24 @@ $root.Package = (function() { /** * Repository type. + * @memberof Package.Repository + * @instance * @type {string} */ Repository.prototype.type = ""; /** * Repository url. + * @memberof Package.Repository + * @instance * @type {string} */ Repository.prototype.url = ""; /** * Creates a new Repository instance using the specified properties. + * @memberof Package.Repository + * @static * @param {Package.IRepository=} [properties] Properties to set * @returns {Package.Repository} Repository instance */ @@ -653,6 +711,8 @@ $root.Package = (function() { /** * Encodes the specified Repository message. Does not implicitly {@link Package.Repository.verify|verify} messages. + * @memberof Package.Repository + * @static * @param {Package.IRepository} message Repository message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -669,6 +729,8 @@ $root.Package = (function() { /** * Encodes the specified Repository message, length delimited. Does not implicitly {@link Package.Repository.verify|verify} messages. + * @memberof Package.Repository + * @static * @param {Package.IRepository} message Repository message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -679,6 +741,8 @@ $root.Package = (function() { /** * Decodes a Repository message from the specified reader or buffer. + * @memberof Package.Repository + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {Package.Repository} Repository @@ -708,6 +772,8 @@ $root.Package = (function() { /** * Decodes a Repository message from the specified reader or buffer, length delimited. + * @memberof Package.Repository + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {Package.Repository} Repository * @throws {Error} If the payload is not a reader or valid buffer @@ -715,12 +781,14 @@ $root.Package = (function() { */ Repository.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Repository message. + * @memberof Package.Repository + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -738,6 +806,8 @@ $root.Package = (function() { /** * Creates a Repository message from a plain object. Also converts values to their respective internal types. + * @memberof Package.Repository + * @static * @param {Object.} object Plain object * @returns {Package.Repository} Repository */ @@ -754,6 +824,8 @@ $root.Package = (function() { /** * Creates a plain object from a Repository message. Also converts values to other types if specified. + * @memberof Package.Repository + * @static * @param {Package.Repository} message Repository * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -775,6 +847,8 @@ $root.Package = (function() { /** * Converts this Repository to JSON. + * @memberof Package.Repository + * @instance * @returns {Object.} JSON object */ Repository.prototype.toJSON = function toJSON() { diff --git a/tests/data/rpc-es6.d.ts b/tests/data/rpc-es6.d.ts new file mode 100644 index 000000000..807bce060 --- /dev/null +++ b/tests/data/rpc-es6.d.ts @@ -0,0 +1,49 @@ +import * as $protobuf from "../.."; + +export class MyService extends $protobuf.rpc.Service { + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MyService; + public myMethod(request: IMyRequest, callback: MyService.MyMethodCallback): void; + public myMethod(request: IMyRequest): Promise; +} + +export namespace MyService { + + type MyMethodCallback = (error: (Error|null), response?: MyResponse) => void; +} + +export interface IMyRequest { + path?: string; +} + +export class MyRequest { + constructor(properties?: IMyRequest); + public path: string; + public static create(properties?: IMyRequest): MyRequest; + public static encode(message: IMyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: IMyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): MyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): MyRequest; + public static verify(message: { [k: string]: any }): (string|null); + public static fromObject(object: { [k: string]: any }): MyRequest; + public static toObject(message: MyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; +} + +export interface IMyResponse { + status?: number; +} + +export class MyResponse { + constructor(properties?: IMyResponse); + public status: number; + public static create(properties?: IMyResponse): MyResponse; + public static encode(message: IMyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: IMyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): MyResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): MyResponse; + public static verify(message: { [k: string]: any }): (string|null); + public static fromObject(object: { [k: string]: any }): MyResponse; + public static toObject(message: MyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public toJSON(): { [k: string]: any }; +} diff --git a/tests/data/rpc-es6.js b/tests/data/rpc-es6.js index 982d4b00a..27032c48d 100644 --- a/tests/data/rpc-es6.js +++ b/tests/data/rpc-es6.js @@ -1,5 +1,5 @@ /*eslint-disable block-scoped-var, no-redeclare, no-control-regex, no-prototype-builtins*/ -import * as $protobuf from "protobufjs"; +import * as $protobuf from "../../minimal"; // Common aliases const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; @@ -27,6 +27,8 @@ export const MyService = $root.MyService = (() => { /** * Creates new MyService service using the specified rpc implementation. + * @memberof MyService + * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited @@ -47,9 +49,12 @@ export const MyService = $root.MyService = (() => { /** * Calls MyMethod. + * @memberof MyService + * @instance * @param {IMyRequest} request MyRequest message or plain object * @param {MyService.MyMethodCallback} callback Node-style callback called with the error, if any, and MyResponse * @returns {undefined} + * @variation 1 */ MyService.prototype.myMethod = function myMethod(request, callback) { return this.rpcCall(myMethod, $root.MyRequest, $root.MyResponse, request, callback); @@ -57,8 +62,9 @@ export const MyService = $root.MyService = (() => { /** * Calls MyMethod. - * @memberof MyService.prototype * @function myMethod + * @memberof MyService + * @instance * @param {IMyRequest} request MyRequest message or plain object * @returns {Promise} Promise * @variation 2 @@ -92,12 +98,16 @@ export const MyRequest = $root.MyRequest = (() => { /** * MyRequest path. + * @memberof MyRequest + * @instance * @type {string} */ MyRequest.prototype.path = ""; /** * Creates a new MyRequest instance using the specified properties. + * @memberof MyRequest + * @static * @param {IMyRequest=} [properties] Properties to set * @returns {MyRequest} MyRequest instance */ @@ -107,6 +117,8 @@ export const MyRequest = $root.MyRequest = (() => { /** * Encodes the specified MyRequest message. Does not implicitly {@link MyRequest.verify|verify} messages. + * @memberof MyRequest + * @static * @param {IMyRequest} message MyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -121,6 +133,8 @@ export const MyRequest = $root.MyRequest = (() => { /** * Encodes the specified MyRequest message, length delimited. Does not implicitly {@link MyRequest.verify|verify} messages. + * @memberof MyRequest + * @static * @param {IMyRequest} message MyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -131,6 +145,8 @@ export const MyRequest = $root.MyRequest = (() => { /** * Decodes a MyRequest message from the specified reader or buffer. + * @memberof MyRequest + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {MyRequest} MyRequest @@ -157,6 +173,8 @@ export const MyRequest = $root.MyRequest = (() => { /** * Decodes a MyRequest message from the specified reader or buffer, length delimited. + * @memberof MyRequest + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {MyRequest} MyRequest * @throws {Error} If the payload is not a reader or valid buffer @@ -164,12 +182,14 @@ export const MyRequest = $root.MyRequest = (() => { */ MyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a MyRequest message. + * @memberof MyRequest + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -184,6 +204,8 @@ export const MyRequest = $root.MyRequest = (() => { /** * Creates a MyRequest message from a plain object. Also converts values to their respective internal types. + * @memberof MyRequest + * @static * @param {Object.} object Plain object * @returns {MyRequest} MyRequest */ @@ -198,6 +220,8 @@ export const MyRequest = $root.MyRequest = (() => { /** * Creates a plain object from a MyRequest message. Also converts values to other types if specified. + * @memberof MyRequest + * @static * @param {MyRequest} message MyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -215,6 +239,8 @@ export const MyRequest = $root.MyRequest = (() => { /** * Converts this MyRequest to JSON. + * @memberof MyRequest + * @instance * @returns {Object.} JSON object */ MyRequest.prototype.toJSON = function toJSON() { @@ -249,12 +275,16 @@ export const MyResponse = $root.MyResponse = (() => { /** * MyResponse status. + * @memberof MyResponse + * @instance * @type {number} */ MyResponse.prototype.status = 0; /** * Creates a new MyResponse instance using the specified properties. + * @memberof MyResponse + * @static * @param {IMyResponse=} [properties] Properties to set * @returns {MyResponse} MyResponse instance */ @@ -264,6 +294,8 @@ export const MyResponse = $root.MyResponse = (() => { /** * Encodes the specified MyResponse message. Does not implicitly {@link MyResponse.verify|verify} messages. + * @memberof MyResponse + * @static * @param {IMyResponse} message MyResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -278,6 +310,8 @@ export const MyResponse = $root.MyResponse = (() => { /** * Encodes the specified MyResponse message, length delimited. Does not implicitly {@link MyResponse.verify|verify} messages. + * @memberof MyResponse + * @static * @param {IMyResponse} message MyResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -288,6 +322,8 @@ export const MyResponse = $root.MyResponse = (() => { /** * Decodes a MyResponse message from the specified reader or buffer. + * @memberof MyResponse + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {MyResponse} MyResponse @@ -314,6 +350,8 @@ export const MyResponse = $root.MyResponse = (() => { /** * Decodes a MyResponse message from the specified reader or buffer, length delimited. + * @memberof MyResponse + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {MyResponse} MyResponse * @throws {Error} If the payload is not a reader or valid buffer @@ -321,12 +359,14 @@ export const MyResponse = $root.MyResponse = (() => { */ MyResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a MyResponse message. + * @memberof MyResponse + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -341,6 +381,8 @@ export const MyResponse = $root.MyResponse = (() => { /** * Creates a MyResponse message from a plain object. Also converts values to their respective internal types. + * @memberof MyResponse + * @static * @param {Object.} object Plain object * @returns {MyResponse} MyResponse */ @@ -355,6 +397,8 @@ export const MyResponse = $root.MyResponse = (() => { /** * Creates a plain object from a MyResponse message. Also converts values to other types if specified. + * @memberof MyResponse + * @static * @param {MyResponse} message MyResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -372,6 +416,8 @@ export const MyResponse = $root.MyResponse = (() => { /** * Converts this MyResponse to JSON. + * @memberof MyResponse + * @instance * @returns {Object.} JSON object */ MyResponse.prototype.toJSON = function toJSON() { diff --git a/tests/data/rpc.js b/tests/data/rpc.js index c05fe1d28..001c9d962 100644 --- a/tests/data/rpc.js +++ b/tests/data/rpc.js @@ -29,6 +29,8 @@ $root.MyService = (function() { /** * Creates new MyService service using the specified rpc implementation. + * @memberof MyService + * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited @@ -49,9 +51,12 @@ $root.MyService = (function() { /** * Calls MyMethod. + * @memberof MyService + * @instance * @param {IMyRequest} request MyRequest message or plain object * @param {MyService.MyMethodCallback} callback Node-style callback called with the error, if any, and MyResponse * @returns {undefined} + * @variation 1 */ MyService.prototype.myMethod = function myMethod(request, callback) { return this.rpcCall(myMethod, $root.MyRequest, $root.MyResponse, request, callback); @@ -59,8 +64,9 @@ $root.MyService = (function() { /** * Calls MyMethod. - * @memberof MyService.prototype * @function myMethod + * @memberof MyService + * @instance * @param {IMyRequest} request MyRequest message or plain object * @returns {Promise} Promise * @variation 2 @@ -94,12 +100,16 @@ $root.MyRequest = (function() { /** * MyRequest path. + * @memberof MyRequest + * @instance * @type {string} */ MyRequest.prototype.path = ""; /** * Creates a new MyRequest instance using the specified properties. + * @memberof MyRequest + * @static * @param {IMyRequest=} [properties] Properties to set * @returns {MyRequest} MyRequest instance */ @@ -109,6 +119,8 @@ $root.MyRequest = (function() { /** * Encodes the specified MyRequest message. Does not implicitly {@link MyRequest.verify|verify} messages. + * @memberof MyRequest + * @static * @param {IMyRequest} message MyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -123,6 +135,8 @@ $root.MyRequest = (function() { /** * Encodes the specified MyRequest message, length delimited. Does not implicitly {@link MyRequest.verify|verify} messages. + * @memberof MyRequest + * @static * @param {IMyRequest} message MyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -133,6 +147,8 @@ $root.MyRequest = (function() { /** * Decodes a MyRequest message from the specified reader or buffer. + * @memberof MyRequest + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {MyRequest} MyRequest @@ -159,6 +175,8 @@ $root.MyRequest = (function() { /** * Decodes a MyRequest message from the specified reader or buffer, length delimited. + * @memberof MyRequest + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {MyRequest} MyRequest * @throws {Error} If the payload is not a reader or valid buffer @@ -166,12 +184,14 @@ $root.MyRequest = (function() { */ MyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a MyRequest message. + * @memberof MyRequest + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -186,6 +206,8 @@ $root.MyRequest = (function() { /** * Creates a MyRequest message from a plain object. Also converts values to their respective internal types. + * @memberof MyRequest + * @static * @param {Object.} object Plain object * @returns {MyRequest} MyRequest */ @@ -200,6 +222,8 @@ $root.MyRequest = (function() { /** * Creates a plain object from a MyRequest message. Also converts values to other types if specified. + * @memberof MyRequest + * @static * @param {MyRequest} message MyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -217,6 +241,8 @@ $root.MyRequest = (function() { /** * Converts this MyRequest to JSON. + * @memberof MyRequest + * @instance * @returns {Object.} JSON object */ MyRequest.prototype.toJSON = function toJSON() { @@ -251,12 +277,16 @@ $root.MyResponse = (function() { /** * MyResponse status. + * @memberof MyResponse + * @instance * @type {number} */ MyResponse.prototype.status = 0; /** * Creates a new MyResponse instance using the specified properties. + * @memberof MyResponse + * @static * @param {IMyResponse=} [properties] Properties to set * @returns {MyResponse} MyResponse instance */ @@ -266,6 +296,8 @@ $root.MyResponse = (function() { /** * Encodes the specified MyResponse message. Does not implicitly {@link MyResponse.verify|verify} messages. + * @memberof MyResponse + * @static * @param {IMyResponse} message MyResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -280,6 +312,8 @@ $root.MyResponse = (function() { /** * Encodes the specified MyResponse message, length delimited. Does not implicitly {@link MyResponse.verify|verify} messages. + * @memberof MyResponse + * @static * @param {IMyResponse} message MyResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -290,6 +324,8 @@ $root.MyResponse = (function() { /** * Decodes a MyResponse message from the specified reader or buffer. + * @memberof MyResponse + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {MyResponse} MyResponse @@ -316,6 +352,8 @@ $root.MyResponse = (function() { /** * Decodes a MyResponse message from the specified reader or buffer, length delimited. + * @memberof MyResponse + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {MyResponse} MyResponse * @throws {Error} If the payload is not a reader or valid buffer @@ -323,12 +361,14 @@ $root.MyResponse = (function() { */ MyResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a MyResponse message. + * @memberof MyResponse + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -343,6 +383,8 @@ $root.MyResponse = (function() { /** * Creates a MyResponse message from a plain object. Also converts values to their respective internal types. + * @memberof MyResponse + * @static * @param {Object.} object Plain object * @returns {MyResponse} MyResponse */ @@ -357,6 +399,8 @@ $root.MyResponse = (function() { /** * Creates a plain object from a MyResponse message. Also converts values to other types if specified. + * @memberof MyResponse + * @static * @param {MyResponse} message MyResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -374,6 +418,8 @@ $root.MyResponse = (function() { /** * Converts this MyResponse to JSON. + * @memberof MyResponse + * @instance * @returns {Object.} JSON object */ MyResponse.prototype.toJSON = function toJSON() { diff --git a/tests/data/test.d.ts b/tests/data/test.d.ts index 77b7f2096..e67ba616d 100644 --- a/tests/data/test.d.ts +++ b/tests/data/test.d.ts @@ -9,15 +9,6 @@ export namespace jspb { class Empty { constructor(properties?: jspb.test.IEmpty); - public static create(properties?: jspb.test.IEmpty): jspb.test.Empty; - public static encode(message: jspb.test.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Empty; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.Empty; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.Empty; - public static toObject(message: jspb.test.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } enum OuterEnum { @@ -31,16 +22,6 @@ export namespace jspb { class EnumContainer { constructor(properties?: jspb.test.IEnumContainer); - public outerEnum: jspb.test.OuterEnum; - public static create(properties?: jspb.test.IEnumContainer): jspb.test.EnumContainer; - public static encode(message: jspb.test.IEnumContainer, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.IEnumContainer, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.EnumContainer; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.EnumContainer; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.EnumContainer; - public static toObject(message: jspb.test.EnumContainer, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface ISimple1 { @@ -51,18 +32,6 @@ export namespace jspb { class Simple1 { constructor(properties?: jspb.test.ISimple1); - public aString: string; - public aRepeatedString: string[]; - public aBoolean: boolean; - public static create(properties?: jspb.test.ISimple1): jspb.test.Simple1; - public static encode(message: jspb.test.ISimple1, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.ISimple1, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Simple1; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.Simple1; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.Simple1; - public static toObject(message: jspb.test.Simple1, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface ISimple2 { @@ -72,17 +41,6 @@ export namespace jspb { class Simple2 { constructor(properties?: jspb.test.ISimple2); - public aString: string; - public aRepeatedString: string[]; - public static create(properties?: jspb.test.ISimple2): jspb.test.Simple2; - public static encode(message: jspb.test.ISimple2, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.ISimple2, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Simple2; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.Simple2; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.Simple2; - public static toObject(message: jspb.test.Simple2, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface ISpecialCases { @@ -94,19 +52,6 @@ export namespace jspb { class SpecialCases { constructor(properties?: jspb.test.ISpecialCases); - public normal: string; - public ["default"]: string; - public ["function"]: string; - public ["var"]: string; - public static create(properties?: jspb.test.ISpecialCases): jspb.test.SpecialCases; - public static encode(message: jspb.test.ISpecialCases, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.ISpecialCases, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.SpecialCases; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.SpecialCases; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.SpecialCases; - public static toObject(message: jspb.test.SpecialCases, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IOptionalFields { @@ -119,20 +64,6 @@ export namespace jspb { class OptionalFields { constructor(properties?: jspb.test.IOptionalFields); - public aString: string; - public aBool: boolean; - public aNestedMessage: (jspb.test.OptionalFields.INested|null); - public aRepeatedMessage: jspb.test.OptionalFields.INested[]; - public aRepeatedString: string[]; - public static create(properties?: jspb.test.IOptionalFields): jspb.test.OptionalFields; - public static encode(message: jspb.test.IOptionalFields, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.IOptionalFields, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.OptionalFields; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.OptionalFields; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.OptionalFields; - public static toObject(message: jspb.test.OptionalFields, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace OptionalFields { @@ -143,16 +74,6 @@ export namespace jspb { class Nested { constructor(properties?: jspb.test.OptionalFields.INested); - public anInt: number; - public static create(properties?: jspb.test.OptionalFields.INested): jspb.test.OptionalFields.Nested; - public static encode(message: jspb.test.OptionalFields.INested, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.OptionalFields.INested, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.OptionalFields.Nested; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.OptionalFields.Nested; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.OptionalFields.Nested; - public static toObject(message: jspb.test.OptionalFields.Nested, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } } @@ -170,24 +91,6 @@ export namespace jspb { class HasExtensions { constructor(properties?: jspb.test.IHasExtensions); - public str1: string; - public str2: string; - public str3: string; - public [".jspb.test.IsExtension.extField"]: (jspb.test.IIsExtension|null); - public [".jspb.test.IndirectExtension.simple"]: (jspb.test.ISimple1|null); - public [".jspb.test.IndirectExtension.str"]: string; - public [".jspb.test.IndirectExtension.repeatedStr"]: string[]; - public [".jspb.test.IndirectExtension.repeatedSimple"]: jspb.test.ISimple1[]; - public [".jspb.test.simple1"]: (jspb.test.ISimple1|null); - public static create(properties?: jspb.test.IHasExtensions): jspb.test.HasExtensions; - public static encode(message: jspb.test.IHasExtensions, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.IHasExtensions, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.HasExtensions; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.HasExtensions; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.HasExtensions; - public static toObject(message: jspb.test.HasExtensions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IComplex { @@ -200,20 +103,6 @@ export namespace jspb { class Complex { constructor(properties?: jspb.test.IComplex); - public aString: string; - public anOutOfOrderBool: boolean; - public aNestedMessage: (jspb.test.Complex.INested|null); - public aRepeatedMessage: jspb.test.Complex.INested[]; - public aRepeatedString: string[]; - public static create(properties?: jspb.test.IComplex): jspb.test.Complex; - public static encode(message: jspb.test.IComplex, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.IComplex, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Complex; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.Complex; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.Complex; - public static toObject(message: jspb.test.Complex, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace Complex { @@ -224,16 +113,6 @@ export namespace jspb { class Nested { constructor(properties?: jspb.test.Complex.INested); - public anInt: number; - public static create(properties?: jspb.test.Complex.INested): jspb.test.Complex.Nested; - public static encode(message: jspb.test.Complex.INested, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.Complex.INested, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Complex.Nested; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.Complex.Nested; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.Complex.Nested; - public static toObject(message: jspb.test.Complex.Nested, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } } @@ -242,15 +121,6 @@ export namespace jspb { class OuterMessage { constructor(properties?: jspb.test.IOuterMessage); - public static create(properties?: jspb.test.IOuterMessage): jspb.test.OuterMessage; - public static encode(message: jspb.test.IOuterMessage, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.IOuterMessage, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.OuterMessage; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.OuterMessage; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.OuterMessage; - public static toObject(message: jspb.test.OuterMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace OuterMessage { @@ -261,16 +131,6 @@ export namespace jspb { class Complex { constructor(properties?: jspb.test.OuterMessage.IComplex); - public innerComplexField: number; - public static create(properties?: jspb.test.OuterMessage.IComplex): jspb.test.OuterMessage.Complex; - public static encode(message: jspb.test.OuterMessage.IComplex, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.OuterMessage.IComplex, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.OuterMessage.Complex; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.OuterMessage.Complex; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.OuterMessage.Complex; - public static toObject(message: jspb.test.OuterMessage.Complex, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } } @@ -280,16 +140,6 @@ export namespace jspb { class IsExtension { constructor(properties?: jspb.test.IIsExtension); - public ext1: string; - public static create(properties?: jspb.test.IIsExtension): jspb.test.IsExtension; - public static encode(message: jspb.test.IIsExtension, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.IIsExtension, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.IsExtension; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.IsExtension; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.IsExtension; - public static toObject(message: jspb.test.IsExtension, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IIndirectExtension { @@ -297,15 +147,6 @@ export namespace jspb { class IndirectExtension { constructor(properties?: jspb.test.IIndirectExtension); - public static create(properties?: jspb.test.IIndirectExtension): jspb.test.IndirectExtension; - public static encode(message: jspb.test.IIndirectExtension, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.IIndirectExtension, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.IndirectExtension; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.IndirectExtension; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.IndirectExtension; - public static toObject(message: jspb.test.IndirectExtension, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IDefaultValues { @@ -319,21 +160,6 @@ export namespace jspb { class DefaultValues { constructor(properties?: jspb.test.IDefaultValues); - public stringField: string; - public boolField: boolean; - public intField: (number|Long); - public enumField: jspb.test.DefaultValues.Enum; - public emptyField: string; - public bytesField: Uint8Array; - public static create(properties?: jspb.test.IDefaultValues): jspb.test.DefaultValues; - public static encode(message: jspb.test.IDefaultValues, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.IDefaultValues, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.DefaultValues; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.DefaultValues; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.DefaultValues; - public static toObject(message: jspb.test.DefaultValues, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace DefaultValues { @@ -357,23 +183,6 @@ export namespace jspb { class FloatingPointFields { constructor(properties?: jspb.test.IFloatingPointFields); - public optionalFloatField: number; - public requiredFloatField: number; - public repeatedFloatField: number[]; - public defaultFloatField: number; - public optionalDoubleField: number; - public requiredDoubleField: number; - public repeatedDoubleField: number[]; - public defaultDoubleField: number; - public static create(properties?: jspb.test.IFloatingPointFields): jspb.test.FloatingPointFields; - public static encode(message: jspb.test.IFloatingPointFields, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.IFloatingPointFields, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.FloatingPointFields; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.FloatingPointFields; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.FloatingPointFields; - public static toObject(message: jspb.test.FloatingPointFields, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface ITestClone { @@ -387,21 +196,6 @@ export namespace jspb { class TestClone { constructor(properties?: jspb.test.ITestClone); - public str: string; - public simple1: (jspb.test.ISimple1|null); - public simple2: jspb.test.ISimple1[]; - public bytesField: Uint8Array; - public unused: string; - public [".jspb.test.CloneExtension.extField"]: (jspb.test.ICloneExtension|null); - public static create(properties?: jspb.test.ITestClone): jspb.test.TestClone; - public static encode(message: jspb.test.ITestClone, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.ITestClone, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestClone; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.TestClone; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.TestClone; - public static toObject(message: jspb.test.TestClone, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface ICloneExtension { @@ -410,16 +204,6 @@ export namespace jspb { class CloneExtension { constructor(properties?: jspb.test.ICloneExtension); - public ext: string; - public static create(properties?: jspb.test.ICloneExtension): jspb.test.CloneExtension; - public static encode(message: jspb.test.ICloneExtension, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.ICloneExtension, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.CloneExtension; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.CloneExtension; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.CloneExtension; - public static toObject(message: jspb.test.CloneExtension, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface ITestGroup { @@ -433,21 +217,6 @@ export namespace jspb { class TestGroup { constructor(properties?: jspb.test.ITestGroup); - public repeatedGroup: jspb.test.TestGroup.IRepeatedGroup[]; - public requiredGroup: jspb.test.TestGroup.IRequiredGroup; - public optionalGroup: (jspb.test.TestGroup.IOptionalGroup|null); - public id: string; - public requiredSimple: jspb.test.ISimple2; - public optionalSimple: (jspb.test.ISimple2|null); - public static create(properties?: jspb.test.ITestGroup): jspb.test.TestGroup; - public static encode(message: jspb.test.ITestGroup, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.ITestGroup, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestGroup; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.TestGroup; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.TestGroup; - public static toObject(message: jspb.test.TestGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace TestGroup { @@ -459,17 +228,6 @@ export namespace jspb { class RepeatedGroup { constructor(properties?: jspb.test.TestGroup.IRepeatedGroup); - public id: string; - public someBool: boolean[]; - public static create(properties?: jspb.test.TestGroup.IRepeatedGroup): jspb.test.TestGroup.RepeatedGroup; - public static encode(message: jspb.test.TestGroup.IRepeatedGroup, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.TestGroup.IRepeatedGroup, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestGroup.RepeatedGroup; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.TestGroup.RepeatedGroup; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.TestGroup.RepeatedGroup; - public static toObject(message: jspb.test.TestGroup.RepeatedGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IRequiredGroup { @@ -478,16 +236,6 @@ export namespace jspb { class RequiredGroup { constructor(properties?: jspb.test.TestGroup.IRequiredGroup); - public id: string; - public static create(properties?: jspb.test.TestGroup.IRequiredGroup): jspb.test.TestGroup.RequiredGroup; - public static encode(message: jspb.test.TestGroup.IRequiredGroup, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.TestGroup.IRequiredGroup, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestGroup.RequiredGroup; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.TestGroup.RequiredGroup; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.TestGroup.RequiredGroup; - public static toObject(message: jspb.test.TestGroup.RequiredGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IOptionalGroup { @@ -496,16 +244,6 @@ export namespace jspb { class OptionalGroup { constructor(properties?: jspb.test.TestGroup.IOptionalGroup); - public id: string; - public static create(properties?: jspb.test.TestGroup.IOptionalGroup): jspb.test.TestGroup.OptionalGroup; - public static encode(message: jspb.test.TestGroup.IOptionalGroup, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.TestGroup.IOptionalGroup, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestGroup.OptionalGroup; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.TestGroup.OptionalGroup; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.TestGroup.OptionalGroup; - public static toObject(message: jspb.test.TestGroup.OptionalGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } } @@ -515,16 +253,6 @@ export namespace jspb { class TestGroup1 { constructor(properties?: jspb.test.ITestGroup1); - public group: (jspb.test.TestGroup.IRepeatedGroup|null); - public static create(properties?: jspb.test.ITestGroup1): jspb.test.TestGroup1; - public static encode(message: jspb.test.ITestGroup1, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.ITestGroup1, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestGroup1; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.TestGroup1; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.TestGroup1; - public static toObject(message: jspb.test.TestGroup1, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface ITestReservedNames { @@ -534,17 +262,6 @@ export namespace jspb { class TestReservedNames { constructor(properties?: jspb.test.ITestReservedNames); - public extension: number; - public [".jspb.test.TestReservedNamesExtension.foo"]: number; - public static create(properties?: jspb.test.ITestReservedNames): jspb.test.TestReservedNames; - public static encode(message: jspb.test.ITestReservedNames, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.ITestReservedNames, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestReservedNames; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.TestReservedNames; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.TestReservedNames; - public static toObject(message: jspb.test.TestReservedNames, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface ITestReservedNamesExtension { @@ -552,15 +269,6 @@ export namespace jspb { class TestReservedNamesExtension { constructor(properties?: jspb.test.ITestReservedNamesExtension); - public static create(properties?: jspb.test.ITestReservedNamesExtension): jspb.test.TestReservedNamesExtension; - public static encode(message: jspb.test.ITestReservedNamesExtension, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.ITestReservedNamesExtension, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestReservedNamesExtension; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.TestReservedNamesExtension; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.TestReservedNamesExtension; - public static toObject(message: jspb.test.TestReservedNamesExtension, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface ITestMessageWithOneof { @@ -578,29 +286,6 @@ export namespace jspb { class TestMessageWithOneof { constructor(properties?: jspb.test.ITestMessageWithOneof); - public pone: string; - public pthree: string; - public rone: (jspb.test.ITestMessageWithOneof|null); - public rtwo: string; - public normalField: boolean; - public repeatedField: string[]; - public aone: number; - public atwo: number; - public bone: number; - public btwo: number; - public partialOneof?: string; - public recursiveOneof?: string; - public defaultOneofA?: string; - public defaultOneofB?: string; - public static create(properties?: jspb.test.ITestMessageWithOneof): jspb.test.TestMessageWithOneof; - public static encode(message: jspb.test.ITestMessageWithOneof, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.ITestMessageWithOneof, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestMessageWithOneof; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.TestMessageWithOneof; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.TestMessageWithOneof; - public static toObject(message: jspb.test.TestMessageWithOneof, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface ITestEndsWithBytes { @@ -610,17 +295,6 @@ export namespace jspb { class TestEndsWithBytes { constructor(properties?: jspb.test.ITestEndsWithBytes); - public value: number; - public data: Uint8Array; - public static create(properties?: jspb.test.ITestEndsWithBytes): jspb.test.TestEndsWithBytes; - public static encode(message: jspb.test.ITestEndsWithBytes, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.ITestEndsWithBytes, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestEndsWithBytes; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.TestEndsWithBytes; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.TestEndsWithBytes; - public static toObject(message: jspb.test.TestEndsWithBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface ITestMapFieldsNoBinary { @@ -640,27 +314,6 @@ export namespace jspb { class TestMapFieldsNoBinary { constructor(properties?: jspb.test.ITestMapFieldsNoBinary); - public mapStringString: { [k: string]: string }; - public mapStringInt32: { [k: string]: number }; - public mapStringInt64: { [k: string]: (number|Long) }; - public mapStringBool: { [k: string]: boolean }; - public mapStringDouble: { [k: string]: number }; - public mapStringEnum: { [k: string]: jspb.test.MapValueEnumNoBinary }; - public mapStringMsg: { [k: string]: jspb.test.IMapValueMessageNoBinary }; - public mapInt32String: { [k: string]: string }; - public mapInt64String: { [k: string]: string }; - public mapBoolString: { [k: string]: string }; - public testMapFields: (jspb.test.ITestMapFieldsNoBinary|null); - public mapStringTestmapfields: { [k: string]: jspb.test.ITestMapFieldsNoBinary }; - public static create(properties?: jspb.test.ITestMapFieldsNoBinary): jspb.test.TestMapFieldsNoBinary; - public static encode(message: jspb.test.ITestMapFieldsNoBinary, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.ITestMapFieldsNoBinary, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestMapFieldsNoBinary; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.TestMapFieldsNoBinary; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.TestMapFieldsNoBinary; - public static toObject(message: jspb.test.TestMapFieldsNoBinary, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } enum MapValueEnumNoBinary { @@ -675,16 +328,6 @@ export namespace jspb { class MapValueMessageNoBinary { constructor(properties?: jspb.test.IMapValueMessageNoBinary); - public foo: number; - public static create(properties?: jspb.test.IMapValueMessageNoBinary): jspb.test.MapValueMessageNoBinary; - public static encode(message: jspb.test.IMapValueMessageNoBinary, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.IMapValueMessageNoBinary, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.MapValueMessageNoBinary; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.MapValueMessageNoBinary; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.MapValueMessageNoBinary; - public static toObject(message: jspb.test.MapValueMessageNoBinary, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IDeeply { @@ -692,15 +335,6 @@ export namespace jspb { class Deeply { constructor(properties?: jspb.test.IDeeply); - public static create(properties?: jspb.test.IDeeply): jspb.test.Deeply; - public static encode(message: jspb.test.IDeeply, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.IDeeply, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Deeply; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.Deeply; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.Deeply; - public static toObject(message: jspb.test.Deeply, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace Deeply { @@ -710,15 +344,6 @@ export namespace jspb { class Nested { constructor(properties?: jspb.test.Deeply.INested); - public static create(properties?: jspb.test.Deeply.INested): jspb.test.Deeply.Nested; - public static encode(message: jspb.test.Deeply.INested, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.Deeply.INested, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Deeply.Nested; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.Deeply.Nested; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.Deeply.Nested; - public static toObject(message: jspb.test.Deeply.Nested, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace Nested { @@ -729,16 +354,6 @@ export namespace jspb { class Message { constructor(properties?: jspb.test.Deeply.Nested.IMessage); - public count: number; - public static create(properties?: jspb.test.Deeply.Nested.IMessage): jspb.test.Deeply.Nested.Message; - public static encode(message: jspb.test.Deeply.Nested.IMessage, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: jspb.test.Deeply.Nested.IMessage, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Deeply.Nested.Message; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): jspb.test.Deeply.Nested.Message; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): jspb.test.Deeply.Nested.Message; - public static toObject(message: jspb.test.Deeply.Nested.Message, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } } } @@ -755,16 +370,6 @@ export namespace google { class FileDescriptorSet { constructor(properties?: google.protobuf.IFileDescriptorSet); - public file: google.protobuf.IFileDescriptorProto[]; - public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; - public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; - public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IFileDescriptorProto { @@ -784,27 +389,6 @@ export namespace google { class FileDescriptorProto { constructor(properties?: google.protobuf.IFileDescriptorProto); - public name: string; - public ["package"]: string; - public dependency: string[]; - public publicDependency: number[]; - public weakDependency: number[]; - public messageType: google.protobuf.IDescriptorProto[]; - public enumType: google.protobuf.IEnumDescriptorProto[]; - public service: google.protobuf.IServiceDescriptorProto[]; - public extension: google.protobuf.IFieldDescriptorProto[]; - public options: (google.protobuf.IFileOptions|null); - public sourceCodeInfo: (google.protobuf.ISourceCodeInfo|null); - public syntax: string; - public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; - public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; - public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IDescriptorProto { @@ -822,25 +406,6 @@ export namespace google { class DescriptorProto { constructor(properties?: google.protobuf.IDescriptorProto); - public name: string; - public field: google.protobuf.IFieldDescriptorProto[]; - public extension: google.protobuf.IFieldDescriptorProto[]; - public nestedType: google.protobuf.IDescriptorProto[]; - public enumType: google.protobuf.IEnumDescriptorProto[]; - public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; - public oneofDecl: google.protobuf.IOneofDescriptorProto[]; - public options: (google.protobuf.IMessageOptions|null); - public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; - public reservedName: string[]; - public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; - public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; - public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace DescriptorProto { @@ -852,17 +417,6 @@ export namespace google { class ExtensionRange { constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); - public start: number; - public end: number; - public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; - public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; - public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IReservedRange { @@ -872,17 +426,6 @@ export namespace google { class ReservedRange { constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); - public start: number; - public end: number; - public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; - public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; - public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } } @@ -901,25 +444,6 @@ export namespace google { class FieldDescriptorProto { constructor(properties?: google.protobuf.IFieldDescriptorProto); - public name: string; - public number: number; - public label: google.protobuf.FieldDescriptorProto.Label; - public type: google.protobuf.FieldDescriptorProto.Type; - public typeName: string; - public extendee: string; - public defaultValue: string; - public oneofIndex: number; - public jsonName: string; - public options: (google.protobuf.IFieldOptions|null); - public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; - public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; - public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace FieldDescriptorProto { @@ -959,17 +483,6 @@ export namespace google { class OneofDescriptorProto { constructor(properties?: google.protobuf.IOneofDescriptorProto); - public name: string; - public options: (google.protobuf.IOneofOptions|null); - public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; - public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; - public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IEnumDescriptorProto { @@ -980,18 +493,6 @@ export namespace google { class EnumDescriptorProto { constructor(properties?: google.protobuf.IEnumDescriptorProto); - public name: string; - public value: google.protobuf.IEnumValueDescriptorProto[]; - public options: (google.protobuf.IEnumOptions|null); - public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; - public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; - public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IEnumValueDescriptorProto { @@ -1002,18 +503,6 @@ export namespace google { class EnumValueDescriptorProto { constructor(properties?: google.protobuf.IEnumValueDescriptorProto); - public name: string; - public number: number; - public options: (google.protobuf.IEnumValueOptions|null); - public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; - public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; - public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IServiceDescriptorProto { @@ -1024,18 +513,6 @@ export namespace google { class ServiceDescriptorProto { constructor(properties?: google.protobuf.IServiceDescriptorProto); - public name: string; - public method: google.protobuf.IMethodDescriptorProto[]; - public options: (google.protobuf.IServiceOptions|null); - public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; - public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; - public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IMethodDescriptorProto { @@ -1049,21 +526,6 @@ export namespace google { class MethodDescriptorProto { constructor(properties?: google.protobuf.IMethodDescriptorProto); - public name: string; - public inputType: string; - public outputType: string; - public options: (google.protobuf.IMethodOptions|null); - public clientStreaming: boolean; - public serverStreaming: boolean; - public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; - public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; - public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IFileOptions { @@ -1086,30 +548,6 @@ export namespace google { class FileOptions { constructor(properties?: google.protobuf.IFileOptions); - public javaPackage: string; - public javaOuterClassname: string; - public javaMultipleFiles: boolean; - public javaGenerateEqualsAndHash: boolean; - public javaStringCheckUtf8: boolean; - public optimizeFor: google.protobuf.FileOptions.OptimizeMode; - public goPackage: string; - public ccGenericServices: boolean; - public javaGenericServices: boolean; - public pyGenericServices: boolean; - public deprecated: boolean; - public ccEnableArenas: boolean; - public objcClassPrefix: string; - public csharpNamespace: string; - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; - public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; - public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace FileOptions { @@ -1131,20 +569,6 @@ export namespace google { class MessageOptions { constructor(properties?: google.protobuf.IMessageOptions); - public messageSetWireFormat: boolean; - public noStandardDescriptorAccessor: boolean; - public deprecated: boolean; - public mapEntry: boolean; - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; - public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; - public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IFieldOptions { @@ -1159,22 +583,6 @@ export namespace google { class FieldOptions { constructor(properties?: google.protobuf.IFieldOptions); - public ctype: google.protobuf.FieldOptions.CType; - public packed: boolean; - public jstype: google.protobuf.FieldOptions.JSType; - public lazy: boolean; - public deprecated: boolean; - public weak: boolean; - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; - public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; - public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace FieldOptions { @@ -1198,16 +606,6 @@ export namespace google { class OneofOptions { constructor(properties?: google.protobuf.IOneofOptions); - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; - public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; - public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IEnumOptions { @@ -1219,19 +617,6 @@ export namespace google { class EnumOptions { constructor(properties?: google.protobuf.IEnumOptions); - public allowAlias: boolean; - public deprecated: boolean; - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - public [".jspb.test.IsExtension.simpleOption"]: string; - public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; - public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; - public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IEnumValueOptions { @@ -1241,17 +626,6 @@ export namespace google { class EnumValueOptions { constructor(properties?: google.protobuf.IEnumValueOptions); - public deprecated: boolean; - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; - public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; - public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IServiceOptions { @@ -1261,17 +635,6 @@ export namespace google { class ServiceOptions { constructor(properties?: google.protobuf.IServiceOptions); - public deprecated: boolean; - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; - public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; - public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } interface IMethodOptions { @@ -1282,18 +645,6 @@ export namespace google { class MethodOptions { constructor(properties?: google.protobuf.IMethodOptions); - public deprecated: boolean; - public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel; - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; - public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; - public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace MethodOptions { @@ -1317,22 +668,6 @@ export namespace google { class UninterpretedOption { constructor(properties?: google.protobuf.IUninterpretedOption); - public name: google.protobuf.UninterpretedOption.INamePart[]; - public identifierValue: string; - public positiveIntValue: (number|Long); - public negativeIntValue: (number|Long); - public doubleValue: number; - public stringValue: Uint8Array; - public aggregateValue: string; - public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; - public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; - public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace UninterpretedOption { @@ -1344,17 +679,6 @@ export namespace google { class NamePart { constructor(properties?: google.protobuf.UninterpretedOption.INamePart); - public namePart: string; - public isExtension: boolean; - public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; - public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; - public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } } @@ -1364,16 +688,6 @@ export namespace google { class SourceCodeInfo { constructor(properties?: google.protobuf.ISourceCodeInfo); - public location: google.protobuf.SourceCodeInfo.ILocation[]; - public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; - public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; - public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace SourceCodeInfo { @@ -1388,20 +702,6 @@ export namespace google { class Location { constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); - public path: number[]; - public span: number[]; - public leadingComments: string; - public trailingComments: string; - public leadingDetachedComments: string[]; - public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; - public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; - public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } } @@ -1411,16 +711,6 @@ export namespace google { class GeneratedCodeInfo { constructor(properties?: google.protobuf.IGeneratedCodeInfo); - public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; - public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; - public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; - public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } namespace GeneratedCodeInfo { @@ -1434,19 +724,6 @@ export namespace google { class Annotation { constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); - public path: number[]; - public sourceFile: string; - public begin: number; - public end: number; - public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; - public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation; - public static verify(message: { [k: string]: any }): (string|null); - public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; - public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - public toJSON(): { [k: string]: any }; } } } diff --git a/tests/data/test.js b/tests/data/test.js index ac1d6e07d..9c02b7fc4 100644 --- a/tests/data/test.js +++ b/tests/data/test.js @@ -51,6 +51,8 @@ $root.jspb = (function() { /** * Creates a new Empty instance using the specified properties. + * @memberof jspb.test.Empty + * @static * @param {jspb.test.IEmpty=} [properties] Properties to set * @returns {jspb.test.Empty} Empty instance */ @@ -60,6 +62,8 @@ $root.jspb = (function() { /** * Encodes the specified Empty message. Does not implicitly {@link jspb.test.Empty.verify|verify} messages. + * @memberof jspb.test.Empty + * @static * @param {jspb.test.IEmpty} message Empty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -72,6 +76,8 @@ $root.jspb = (function() { /** * Encodes the specified Empty message, length delimited. Does not implicitly {@link jspb.test.Empty.verify|verify} messages. + * @memberof jspb.test.Empty + * @static * @param {jspb.test.IEmpty} message Empty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -82,6 +88,8 @@ $root.jspb = (function() { /** * Decodes an Empty message from the specified reader or buffer. + * @memberof jspb.test.Empty + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.Empty} Empty @@ -105,6 +113,8 @@ $root.jspb = (function() { /** * Decodes an Empty message from the specified reader or buffer, length delimited. + * @memberof jspb.test.Empty + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.Empty} Empty * @throws {Error} If the payload is not a reader or valid buffer @@ -112,12 +122,14 @@ $root.jspb = (function() { */ Empty.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an Empty message. + * @memberof jspb.test.Empty + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -129,6 +141,8 @@ $root.jspb = (function() { /** * Creates an Empty message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.Empty + * @static * @param {Object.} object Plain object * @returns {jspb.test.Empty} Empty */ @@ -140,6 +154,8 @@ $root.jspb = (function() { /** * Creates a plain object from an Empty message. Also converts values to other types if specified. + * @memberof jspb.test.Empty + * @static * @param {jspb.test.Empty} message Empty * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -150,6 +166,8 @@ $root.jspb = (function() { /** * Converts this Empty to JSON. + * @memberof jspb.test.Empty + * @instance * @returns {Object.} JSON object */ Empty.prototype.toJSON = function toJSON() { @@ -161,7 +179,7 @@ $root.jspb = (function() { /** * OuterEnum enum. - * @enum {number} + * @enum {string} * @property {number} FOO=1 FOO value * @property {number} BAR=2 BAR value */ @@ -197,12 +215,16 @@ $root.jspb = (function() { /** * EnumContainer outerEnum. + * @memberof jspb.test.EnumContainer + * @instance * @type {jspb.test.OuterEnum} */ EnumContainer.prototype.outerEnum = 1; /** * Creates a new EnumContainer instance using the specified properties. + * @memberof jspb.test.EnumContainer + * @static * @param {jspb.test.IEnumContainer=} [properties] Properties to set * @returns {jspb.test.EnumContainer} EnumContainer instance */ @@ -212,6 +234,8 @@ $root.jspb = (function() { /** * Encodes the specified EnumContainer message. Does not implicitly {@link jspb.test.EnumContainer.verify|verify} messages. + * @memberof jspb.test.EnumContainer + * @static * @param {jspb.test.IEnumContainer} message EnumContainer message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -226,6 +250,8 @@ $root.jspb = (function() { /** * Encodes the specified EnumContainer message, length delimited. Does not implicitly {@link jspb.test.EnumContainer.verify|verify} messages. + * @memberof jspb.test.EnumContainer + * @static * @param {jspb.test.IEnumContainer} message EnumContainer message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -236,6 +262,8 @@ $root.jspb = (function() { /** * Decodes an EnumContainer message from the specified reader or buffer. + * @memberof jspb.test.EnumContainer + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.EnumContainer} EnumContainer @@ -262,6 +290,8 @@ $root.jspb = (function() { /** * Decodes an EnumContainer message from the specified reader or buffer, length delimited. + * @memberof jspb.test.EnumContainer + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.EnumContainer} EnumContainer * @throws {Error} If the payload is not a reader or valid buffer @@ -269,12 +299,14 @@ $root.jspb = (function() { */ EnumContainer.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an EnumContainer message. + * @memberof jspb.test.EnumContainer + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -294,6 +326,8 @@ $root.jspb = (function() { /** * Creates an EnumContainer message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.EnumContainer + * @static * @param {Object.} object Plain object * @returns {jspb.test.EnumContainer} EnumContainer */ @@ -316,6 +350,8 @@ $root.jspb = (function() { /** * Creates a plain object from an EnumContainer message. Also converts values to other types if specified. + * @memberof jspb.test.EnumContainer + * @static * @param {jspb.test.EnumContainer} message EnumContainer * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -333,6 +369,8 @@ $root.jspb = (function() { /** * Converts this EnumContainer to JSON. + * @memberof jspb.test.EnumContainer + * @instance * @returns {Object.} JSON object */ EnumContainer.prototype.toJSON = function toJSON() { @@ -370,24 +408,32 @@ $root.jspb = (function() { /** * Simple1 aString. + * @memberof jspb.test.Simple1 + * @instance * @type {string} */ Simple1.prototype.aString = ""; /** * Simple1 aRepeatedString. + * @memberof jspb.test.Simple1 + * @instance * @type {Array.} */ Simple1.prototype.aRepeatedString = $util.emptyArray; /** * Simple1 aBoolean. + * @memberof jspb.test.Simple1 + * @instance * @type {boolean} */ Simple1.prototype.aBoolean = false; /** * Creates a new Simple1 instance using the specified properties. + * @memberof jspb.test.Simple1 + * @static * @param {jspb.test.ISimple1=} [properties] Properties to set * @returns {jspb.test.Simple1} Simple1 instance */ @@ -397,6 +443,8 @@ $root.jspb = (function() { /** * Encodes the specified Simple1 message. Does not implicitly {@link jspb.test.Simple1.verify|verify} messages. + * @memberof jspb.test.Simple1 + * @static * @param {jspb.test.ISimple1} message Simple1 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -415,6 +463,8 @@ $root.jspb = (function() { /** * Encodes the specified Simple1 message, length delimited. Does not implicitly {@link jspb.test.Simple1.verify|verify} messages. + * @memberof jspb.test.Simple1 + * @static * @param {jspb.test.ISimple1} message Simple1 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -425,6 +475,8 @@ $root.jspb = (function() { /** * Decodes a Simple1 message from the specified reader or buffer. + * @memberof jspb.test.Simple1 + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.Simple1} Simple1 @@ -461,6 +513,8 @@ $root.jspb = (function() { /** * Decodes a Simple1 message from the specified reader or buffer, length delimited. + * @memberof jspb.test.Simple1 + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.Simple1} Simple1 * @throws {Error} If the payload is not a reader or valid buffer @@ -468,12 +522,14 @@ $root.jspb = (function() { */ Simple1.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Simple1 message. + * @memberof jspb.test.Simple1 + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -497,6 +553,8 @@ $root.jspb = (function() { /** * Creates a Simple1 message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.Simple1 + * @static * @param {Object.} object Plain object * @returns {jspb.test.Simple1} Simple1 */ @@ -520,6 +578,8 @@ $root.jspb = (function() { /** * Creates a plain object from a Simple1 message. Also converts values to other types if specified. + * @memberof jspb.test.Simple1 + * @static * @param {jspb.test.Simple1} message Simple1 * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -548,6 +608,8 @@ $root.jspb = (function() { /** * Converts this Simple1 to JSON. + * @memberof jspb.test.Simple1 + * @instance * @returns {Object.} JSON object */ Simple1.prototype.toJSON = function toJSON() { @@ -584,18 +646,24 @@ $root.jspb = (function() { /** * Simple2 aString. + * @memberof jspb.test.Simple2 + * @instance * @type {string} */ Simple2.prototype.aString = ""; /** * Simple2 aRepeatedString. + * @memberof jspb.test.Simple2 + * @instance * @type {Array.} */ Simple2.prototype.aRepeatedString = $util.emptyArray; /** * Creates a new Simple2 instance using the specified properties. + * @memberof jspb.test.Simple2 + * @static * @param {jspb.test.ISimple2=} [properties] Properties to set * @returns {jspb.test.Simple2} Simple2 instance */ @@ -605,6 +673,8 @@ $root.jspb = (function() { /** * Encodes the specified Simple2 message. Does not implicitly {@link jspb.test.Simple2.verify|verify} messages. + * @memberof jspb.test.Simple2 + * @static * @param {jspb.test.ISimple2} message Simple2 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -621,6 +691,8 @@ $root.jspb = (function() { /** * Encodes the specified Simple2 message, length delimited. Does not implicitly {@link jspb.test.Simple2.verify|verify} messages. + * @memberof jspb.test.Simple2 + * @static * @param {jspb.test.ISimple2} message Simple2 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -631,6 +703,8 @@ $root.jspb = (function() { /** * Decodes a Simple2 message from the specified reader or buffer. + * @memberof jspb.test.Simple2 + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.Simple2} Simple2 @@ -664,6 +738,8 @@ $root.jspb = (function() { /** * Decodes a Simple2 message from the specified reader or buffer, length delimited. + * @memberof jspb.test.Simple2 + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.Simple2} Simple2 * @throws {Error} If the payload is not a reader or valid buffer @@ -671,12 +747,14 @@ $root.jspb = (function() { */ Simple2.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Simple2 message. + * @memberof jspb.test.Simple2 + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -697,6 +775,8 @@ $root.jspb = (function() { /** * Creates a Simple2 message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.Simple2 + * @static * @param {Object.} object Plain object * @returns {jspb.test.Simple2} Simple2 */ @@ -718,6 +798,8 @@ $root.jspb = (function() { /** * Creates a plain object from a Simple2 message. Also converts values to other types if specified. + * @memberof jspb.test.Simple2 + * @static * @param {jspb.test.Simple2} message Simple2 * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -742,6 +824,8 @@ $root.jspb = (function() { /** * Converts this Simple2 to JSON. + * @memberof jspb.test.Simple2 + * @instance * @returns {Object.} JSON object */ Simple2.prototype.toJSON = function toJSON() { @@ -779,30 +863,40 @@ $root.jspb = (function() { /** * SpecialCases normal. + * @memberof jspb.test.SpecialCases + * @instance * @type {string} */ SpecialCases.prototype.normal = ""; /** * SpecialCases default. + * @memberof jspb.test.SpecialCases + * @instance * @type {string} */ SpecialCases.prototype["default"] = ""; /** * SpecialCases function. + * @memberof jspb.test.SpecialCases + * @instance * @type {string} */ SpecialCases.prototype["function"] = ""; /** * SpecialCases var. + * @memberof jspb.test.SpecialCases + * @instance * @type {string} */ SpecialCases.prototype["var"] = ""; /** * Creates a new SpecialCases instance using the specified properties. + * @memberof jspb.test.SpecialCases + * @static * @param {jspb.test.ISpecialCases=} [properties] Properties to set * @returns {jspb.test.SpecialCases} SpecialCases instance */ @@ -812,6 +906,8 @@ $root.jspb = (function() { /** * Encodes the specified SpecialCases message. Does not implicitly {@link jspb.test.SpecialCases.verify|verify} messages. + * @memberof jspb.test.SpecialCases + * @static * @param {jspb.test.ISpecialCases} message SpecialCases message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -828,6 +924,8 @@ $root.jspb = (function() { /** * Encodes the specified SpecialCases message, length delimited. Does not implicitly {@link jspb.test.SpecialCases.verify|verify} messages. + * @memberof jspb.test.SpecialCases + * @static * @param {jspb.test.ISpecialCases} message SpecialCases message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -838,6 +936,8 @@ $root.jspb = (function() { /** * Decodes a SpecialCases message from the specified reader or buffer. + * @memberof jspb.test.SpecialCases + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.SpecialCases} SpecialCases @@ -881,6 +981,8 @@ $root.jspb = (function() { /** * Decodes a SpecialCases message from the specified reader or buffer, length delimited. + * @memberof jspb.test.SpecialCases + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.SpecialCases} SpecialCases * @throws {Error} If the payload is not a reader or valid buffer @@ -888,12 +990,14 @@ $root.jspb = (function() { */ SpecialCases.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a SpecialCases message. + * @memberof jspb.test.SpecialCases + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -913,6 +1017,8 @@ $root.jspb = (function() { /** * Creates a SpecialCases message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.SpecialCases + * @static * @param {Object.} object Plain object * @returns {jspb.test.SpecialCases} SpecialCases */ @@ -933,6 +1039,8 @@ $root.jspb = (function() { /** * Creates a plain object from a SpecialCases message. Also converts values to other types if specified. + * @memberof jspb.test.SpecialCases + * @static * @param {jspb.test.SpecialCases} message SpecialCases * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -960,6 +1068,8 @@ $root.jspb = (function() { /** * Converts this SpecialCases to JSON. + * @memberof jspb.test.SpecialCases + * @instance * @returns {Object.} JSON object */ SpecialCases.prototype.toJSON = function toJSON() { @@ -1000,36 +1110,48 @@ $root.jspb = (function() { /** * OptionalFields aString. + * @memberof jspb.test.OptionalFields + * @instance * @type {string} */ OptionalFields.prototype.aString = ""; /** * OptionalFields aBool. + * @memberof jspb.test.OptionalFields + * @instance * @type {boolean} */ OptionalFields.prototype.aBool = false; /** * OptionalFields aNestedMessage. + * @memberof jspb.test.OptionalFields + * @instance * @type {(jspb.test.OptionalFields.INested|null)} */ OptionalFields.prototype.aNestedMessage = null; /** * OptionalFields aRepeatedMessage. + * @memberof jspb.test.OptionalFields + * @instance * @type {Array.} */ OptionalFields.prototype.aRepeatedMessage = $util.emptyArray; /** * OptionalFields aRepeatedString. + * @memberof jspb.test.OptionalFields + * @instance * @type {Array.} */ OptionalFields.prototype.aRepeatedString = $util.emptyArray; /** * Creates a new OptionalFields instance using the specified properties. + * @memberof jspb.test.OptionalFields + * @static * @param {jspb.test.IOptionalFields=} [properties] Properties to set * @returns {jspb.test.OptionalFields} OptionalFields instance */ @@ -1039,6 +1161,8 @@ $root.jspb = (function() { /** * Encodes the specified OptionalFields message. Does not implicitly {@link jspb.test.OptionalFields.verify|verify} messages. + * @memberof jspb.test.OptionalFields + * @static * @param {jspb.test.IOptionalFields} message OptionalFields message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -1062,6 +1186,8 @@ $root.jspb = (function() { /** * Encodes the specified OptionalFields message, length delimited. Does not implicitly {@link jspb.test.OptionalFields.verify|verify} messages. + * @memberof jspb.test.OptionalFields + * @static * @param {jspb.test.IOptionalFields} message OptionalFields message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -1072,6 +1198,8 @@ $root.jspb = (function() { /** * Decodes an OptionalFields message from the specified reader or buffer. + * @memberof jspb.test.OptionalFields + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.OptionalFields} OptionalFields @@ -1116,6 +1244,8 @@ $root.jspb = (function() { /** * Decodes an OptionalFields message from the specified reader or buffer, length delimited. + * @memberof jspb.test.OptionalFields + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.OptionalFields} OptionalFields * @throws {Error} If the payload is not a reader or valid buffer @@ -1123,12 +1253,14 @@ $root.jspb = (function() { */ OptionalFields.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an OptionalFields message. + * @memberof jspb.test.OptionalFields + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -1149,7 +1281,7 @@ $root.jspb = (function() { if (!Array.isArray(message.aRepeatedMessage)) return "aRepeatedMessage: array expected"; for (var i = 0; i < message.aRepeatedMessage.length; ++i) { - var error = $root.jspb.test.OptionalFields.Nested.verify(message.aRepeatedMessage[i]); + error = $root.jspb.test.OptionalFields.Nested.verify(message.aRepeatedMessage[i]); if (error) return "aRepeatedMessage." + error; } @@ -1166,6 +1298,8 @@ $root.jspb = (function() { /** * Creates an OptionalFields message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.OptionalFields + * @static * @param {Object.} object Plain object * @returns {jspb.test.OptionalFields} OptionalFields */ @@ -1204,6 +1338,8 @@ $root.jspb = (function() { /** * Creates a plain object from an OptionalFields message. Also converts values to other types if specified. + * @memberof jspb.test.OptionalFields + * @static * @param {jspb.test.OptionalFields} message OptionalFields * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -1242,6 +1378,8 @@ $root.jspb = (function() { /** * Converts this OptionalFields to JSON. + * @memberof jspb.test.OptionalFields + * @instance * @returns {Object.} JSON object */ OptionalFields.prototype.toJSON = function toJSON() { @@ -1273,12 +1411,16 @@ $root.jspb = (function() { /** * Nested anInt. + * @memberof jspb.test.OptionalFields.Nested + * @instance * @type {number} */ Nested.prototype.anInt = 0; /** * Creates a new Nested instance using the specified properties. + * @memberof jspb.test.OptionalFields.Nested + * @static * @param {jspb.test.OptionalFields.INested=} [properties] Properties to set * @returns {jspb.test.OptionalFields.Nested} Nested instance */ @@ -1288,6 +1430,8 @@ $root.jspb = (function() { /** * Encodes the specified Nested message. Does not implicitly {@link jspb.test.OptionalFields.Nested.verify|verify} messages. + * @memberof jspb.test.OptionalFields.Nested + * @static * @param {jspb.test.OptionalFields.INested} message Nested message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -1302,6 +1446,8 @@ $root.jspb = (function() { /** * Encodes the specified Nested message, length delimited. Does not implicitly {@link jspb.test.OptionalFields.Nested.verify|verify} messages. + * @memberof jspb.test.OptionalFields.Nested + * @static * @param {jspb.test.OptionalFields.INested} message Nested message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -1312,6 +1458,8 @@ $root.jspb = (function() { /** * Decodes a Nested message from the specified reader or buffer. + * @memberof jspb.test.OptionalFields.Nested + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.OptionalFields.Nested} Nested @@ -1338,6 +1486,8 @@ $root.jspb = (function() { /** * Decodes a Nested message from the specified reader or buffer, length delimited. + * @memberof jspb.test.OptionalFields.Nested + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.OptionalFields.Nested} Nested * @throws {Error} If the payload is not a reader or valid buffer @@ -1345,12 +1495,14 @@ $root.jspb = (function() { */ Nested.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Nested message. + * @memberof jspb.test.OptionalFields.Nested + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -1365,6 +1517,8 @@ $root.jspb = (function() { /** * Creates a Nested message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.OptionalFields.Nested + * @static * @param {Object.} object Plain object * @returns {jspb.test.OptionalFields.Nested} Nested */ @@ -1379,6 +1533,8 @@ $root.jspb = (function() { /** * Creates a plain object from a Nested message. Also converts values to other types if specified. + * @memberof jspb.test.OptionalFields.Nested + * @static * @param {jspb.test.OptionalFields.Nested} message Nested * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -1396,6 +1552,8 @@ $root.jspb = (function() { /** * Converts this Nested to JSON. + * @memberof jspb.test.OptionalFields.Nested + * @instance * @returns {Object.} JSON object */ Nested.prototype.toJSON = function toJSON() { @@ -1443,60 +1601,80 @@ $root.jspb = (function() { /** * HasExtensions str1. + * @memberof jspb.test.HasExtensions + * @instance * @type {string} */ HasExtensions.prototype.str1 = ""; /** * HasExtensions str2. + * @memberof jspb.test.HasExtensions + * @instance * @type {string} */ HasExtensions.prototype.str2 = ""; /** * HasExtensions str3. + * @memberof jspb.test.HasExtensions + * @instance * @type {string} */ HasExtensions.prototype.str3 = ""; /** * HasExtensions .jspb.test.IsExtension.extField. + * @memberof jspb.test.HasExtensions + * @instance * @type {(jspb.test.IIsExtension|null)} */ HasExtensions.prototype[".jspb.test.IsExtension.extField"] = null; /** * HasExtensions .jspb.test.IndirectExtension.simple. + * @memberof jspb.test.HasExtensions + * @instance * @type {(jspb.test.ISimple1|null)} */ HasExtensions.prototype[".jspb.test.IndirectExtension.simple"] = null; /** * HasExtensions .jspb.test.IndirectExtension.str. + * @memberof jspb.test.HasExtensions + * @instance * @type {string} */ HasExtensions.prototype[".jspb.test.IndirectExtension.str"] = ""; /** * HasExtensions .jspb.test.IndirectExtension.repeatedStr. + * @memberof jspb.test.HasExtensions + * @instance * @type {Array.} */ HasExtensions.prototype[".jspb.test.IndirectExtension.repeatedStr"] = $util.emptyArray; /** * HasExtensions .jspb.test.IndirectExtension.repeatedSimple. + * @memberof jspb.test.HasExtensions + * @instance * @type {Array.} */ HasExtensions.prototype[".jspb.test.IndirectExtension.repeatedSimple"] = $util.emptyArray; /** * HasExtensions .jspb.test.simple1. + * @memberof jspb.test.HasExtensions + * @instance * @type {(jspb.test.ISimple1|null)} */ HasExtensions.prototype[".jspb.test.simple1"] = null; /** * Creates a new HasExtensions instance using the specified properties. + * @memberof jspb.test.HasExtensions + * @static * @param {jspb.test.IHasExtensions=} [properties] Properties to set * @returns {jspb.test.HasExtensions} HasExtensions instance */ @@ -1506,6 +1684,8 @@ $root.jspb = (function() { /** * Encodes the specified HasExtensions message. Does not implicitly {@link jspb.test.HasExtensions.verify|verify} messages. + * @memberof jspb.test.HasExtensions + * @static * @param {jspb.test.IHasExtensions} message HasExtensions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -1538,6 +1718,8 @@ $root.jspb = (function() { /** * Encodes the specified HasExtensions message, length delimited. Does not implicitly {@link jspb.test.HasExtensions.verify|verify} messages. + * @memberof jspb.test.HasExtensions + * @static * @param {jspb.test.IHasExtensions} message HasExtensions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -1548,6 +1730,8 @@ $root.jspb = (function() { /** * Decodes a HasExtensions message from the specified reader or buffer. + * @memberof jspb.test.HasExtensions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.HasExtensions} HasExtensions @@ -1602,6 +1786,8 @@ $root.jspb = (function() { /** * Decodes a HasExtensions message from the specified reader or buffer, length delimited. + * @memberof jspb.test.HasExtensions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.HasExtensions} HasExtensions * @throws {Error} If the payload is not a reader or valid buffer @@ -1609,12 +1795,14 @@ $root.jspb = (function() { */ HasExtensions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a HasExtensions message. + * @memberof jspb.test.HasExtensions + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -1636,7 +1824,7 @@ $root.jspb = (function() { return ".jspb.test.IsExtension.extField." + error; } if (message[".jspb.test.IndirectExtension.simple"] != null && message.hasOwnProperty(".jspb.test.IndirectExtension.simple")) { - var error = $root.jspb.test.Simple1.verify(message[".jspb.test.IndirectExtension.simple"]); + error = $root.jspb.test.Simple1.verify(message[".jspb.test.IndirectExtension.simple"]); if (error) return ".jspb.test.IndirectExtension.simple." + error; } @@ -1654,13 +1842,13 @@ $root.jspb = (function() { if (!Array.isArray(message[".jspb.test.IndirectExtension.repeatedSimple"])) return ".jspb.test.IndirectExtension.repeatedSimple: array expected"; for (var i = 0; i < message[".jspb.test.IndirectExtension.repeatedSimple"].length; ++i) { - var error = $root.jspb.test.Simple1.verify(message[".jspb.test.IndirectExtension.repeatedSimple"][i]); + error = $root.jspb.test.Simple1.verify(message[".jspb.test.IndirectExtension.repeatedSimple"][i]); if (error) return ".jspb.test.IndirectExtension.repeatedSimple." + error; } } if (message[".jspb.test.simple1"] != null && message.hasOwnProperty(".jspb.test.simple1")) { - var error = $root.jspb.test.Simple1.verify(message[".jspb.test.simple1"]); + error = $root.jspb.test.Simple1.verify(message[".jspb.test.simple1"]); if (error) return ".jspb.test.simple1." + error; } @@ -1669,6 +1857,8 @@ $root.jspb = (function() { /** * Creates a HasExtensions message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.HasExtensions + * @static * @param {Object.} object Plain object * @returns {jspb.test.HasExtensions} HasExtensions */ @@ -1721,6 +1911,8 @@ $root.jspb = (function() { /** * Creates a plain object from a HasExtensions message. Also converts values to other types if specified. + * @memberof jspb.test.HasExtensions + * @static * @param {jspb.test.HasExtensions} message HasExtensions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -1771,6 +1963,8 @@ $root.jspb = (function() { /** * Converts this HasExtensions to JSON. + * @memberof jspb.test.HasExtensions + * @instance * @returns {Object.} JSON object */ HasExtensions.prototype.toJSON = function toJSON() { @@ -1811,36 +2005,48 @@ $root.jspb = (function() { /** * Complex aString. + * @memberof jspb.test.Complex + * @instance * @type {string} */ Complex.prototype.aString = ""; /** * Complex anOutOfOrderBool. + * @memberof jspb.test.Complex + * @instance * @type {boolean} */ Complex.prototype.anOutOfOrderBool = false; /** * Complex aNestedMessage. + * @memberof jspb.test.Complex + * @instance * @type {(jspb.test.Complex.INested|null)} */ Complex.prototype.aNestedMessage = null; /** * Complex aRepeatedMessage. + * @memberof jspb.test.Complex + * @instance * @type {Array.} */ Complex.prototype.aRepeatedMessage = $util.emptyArray; /** * Complex aRepeatedString. + * @memberof jspb.test.Complex + * @instance * @type {Array.} */ Complex.prototype.aRepeatedString = $util.emptyArray; /** * Creates a new Complex instance using the specified properties. + * @memberof jspb.test.Complex + * @static * @param {jspb.test.IComplex=} [properties] Properties to set * @returns {jspb.test.Complex} Complex instance */ @@ -1850,6 +2056,8 @@ $root.jspb = (function() { /** * Encodes the specified Complex message. Does not implicitly {@link jspb.test.Complex.verify|verify} messages. + * @memberof jspb.test.Complex + * @static * @param {jspb.test.IComplex} message Complex message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -1872,6 +2080,8 @@ $root.jspb = (function() { /** * Encodes the specified Complex message, length delimited. Does not implicitly {@link jspb.test.Complex.verify|verify} messages. + * @memberof jspb.test.Complex + * @static * @param {jspb.test.IComplex} message Complex message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -1882,6 +2092,8 @@ $root.jspb = (function() { /** * Decodes a Complex message from the specified reader or buffer. + * @memberof jspb.test.Complex + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.Complex} Complex @@ -1928,6 +2140,8 @@ $root.jspb = (function() { /** * Decodes a Complex message from the specified reader or buffer, length delimited. + * @memberof jspb.test.Complex + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.Complex} Complex * @throws {Error} If the payload is not a reader or valid buffer @@ -1935,12 +2149,14 @@ $root.jspb = (function() { */ Complex.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Complex message. + * @memberof jspb.test.Complex + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -1960,7 +2176,7 @@ $root.jspb = (function() { if (!Array.isArray(message.aRepeatedMessage)) return "aRepeatedMessage: array expected"; for (var i = 0; i < message.aRepeatedMessage.length; ++i) { - var error = $root.jspb.test.Complex.Nested.verify(message.aRepeatedMessage[i]); + error = $root.jspb.test.Complex.Nested.verify(message.aRepeatedMessage[i]); if (error) return "aRepeatedMessage." + error; } @@ -1977,6 +2193,8 @@ $root.jspb = (function() { /** * Creates a Complex message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.Complex + * @static * @param {Object.} object Plain object * @returns {jspb.test.Complex} Complex */ @@ -2015,6 +2233,8 @@ $root.jspb = (function() { /** * Creates a plain object from a Complex message. Also converts values to other types if specified. + * @memberof jspb.test.Complex + * @static * @param {jspb.test.Complex} message Complex * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -2053,6 +2273,8 @@ $root.jspb = (function() { /** * Converts this Complex to JSON. + * @memberof jspb.test.Complex + * @instance * @returns {Object.} JSON object */ Complex.prototype.toJSON = function toJSON() { @@ -2084,12 +2306,16 @@ $root.jspb = (function() { /** * Nested anInt. + * @memberof jspb.test.Complex.Nested + * @instance * @type {number} */ Nested.prototype.anInt = 0; /** * Creates a new Nested instance using the specified properties. + * @memberof jspb.test.Complex.Nested + * @static * @param {jspb.test.Complex.INested=} [properties] Properties to set * @returns {jspb.test.Complex.Nested} Nested instance */ @@ -2099,6 +2325,8 @@ $root.jspb = (function() { /** * Encodes the specified Nested message. Does not implicitly {@link jspb.test.Complex.Nested.verify|verify} messages. + * @memberof jspb.test.Complex.Nested + * @static * @param {jspb.test.Complex.INested} message Nested message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -2112,6 +2340,8 @@ $root.jspb = (function() { /** * Encodes the specified Nested message, length delimited. Does not implicitly {@link jspb.test.Complex.Nested.verify|verify} messages. + * @memberof jspb.test.Complex.Nested + * @static * @param {jspb.test.Complex.INested} message Nested message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -2122,6 +2352,8 @@ $root.jspb = (function() { /** * Decodes a Nested message from the specified reader or buffer. + * @memberof jspb.test.Complex.Nested + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.Complex.Nested} Nested @@ -2150,6 +2382,8 @@ $root.jspb = (function() { /** * Decodes a Nested message from the specified reader or buffer, length delimited. + * @memberof jspb.test.Complex.Nested + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.Complex.Nested} Nested * @throws {Error} If the payload is not a reader or valid buffer @@ -2157,12 +2391,14 @@ $root.jspb = (function() { */ Nested.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Nested message. + * @memberof jspb.test.Complex.Nested + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -2176,6 +2412,8 @@ $root.jspb = (function() { /** * Creates a Nested message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.Complex.Nested + * @static * @param {Object.} object Plain object * @returns {jspb.test.Complex.Nested} Nested */ @@ -2190,6 +2428,8 @@ $root.jspb = (function() { /** * Creates a plain object from a Nested message. Also converts values to other types if specified. + * @memberof jspb.test.Complex.Nested + * @static * @param {jspb.test.Complex.Nested} message Nested * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -2207,6 +2447,8 @@ $root.jspb = (function() { /** * Converts this Nested to JSON. + * @memberof jspb.test.Complex.Nested + * @instance * @returns {Object.} JSON object */ Nested.prototype.toJSON = function toJSON() { @@ -2243,6 +2485,8 @@ $root.jspb = (function() { /** * Creates a new OuterMessage instance using the specified properties. + * @memberof jspb.test.OuterMessage + * @static * @param {jspb.test.IOuterMessage=} [properties] Properties to set * @returns {jspb.test.OuterMessage} OuterMessage instance */ @@ -2252,6 +2496,8 @@ $root.jspb = (function() { /** * Encodes the specified OuterMessage message. Does not implicitly {@link jspb.test.OuterMessage.verify|verify} messages. + * @memberof jspb.test.OuterMessage + * @static * @param {jspb.test.IOuterMessage} message OuterMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -2264,6 +2510,8 @@ $root.jspb = (function() { /** * Encodes the specified OuterMessage message, length delimited. Does not implicitly {@link jspb.test.OuterMessage.verify|verify} messages. + * @memberof jspb.test.OuterMessage + * @static * @param {jspb.test.IOuterMessage} message OuterMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -2274,6 +2522,8 @@ $root.jspb = (function() { /** * Decodes an OuterMessage message from the specified reader or buffer. + * @memberof jspb.test.OuterMessage + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.OuterMessage} OuterMessage @@ -2297,6 +2547,8 @@ $root.jspb = (function() { /** * Decodes an OuterMessage message from the specified reader or buffer, length delimited. + * @memberof jspb.test.OuterMessage + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.OuterMessage} OuterMessage * @throws {Error} If the payload is not a reader or valid buffer @@ -2304,12 +2556,14 @@ $root.jspb = (function() { */ OuterMessage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an OuterMessage message. + * @memberof jspb.test.OuterMessage + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -2321,6 +2575,8 @@ $root.jspb = (function() { /** * Creates an OuterMessage message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.OuterMessage + * @static * @param {Object.} object Plain object * @returns {jspb.test.OuterMessage} OuterMessage */ @@ -2332,6 +2588,8 @@ $root.jspb = (function() { /** * Creates a plain object from an OuterMessage message. Also converts values to other types if specified. + * @memberof jspb.test.OuterMessage + * @static * @param {jspb.test.OuterMessage} message OuterMessage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -2342,6 +2600,8 @@ $root.jspb = (function() { /** * Converts this OuterMessage to JSON. + * @memberof jspb.test.OuterMessage + * @instance * @returns {Object.} JSON object */ OuterMessage.prototype.toJSON = function toJSON() { @@ -2373,12 +2633,16 @@ $root.jspb = (function() { /** * Complex innerComplexField. + * @memberof jspb.test.OuterMessage.Complex + * @instance * @type {number} */ Complex.prototype.innerComplexField = 0; /** * Creates a new Complex instance using the specified properties. + * @memberof jspb.test.OuterMessage.Complex + * @static * @param {jspb.test.OuterMessage.IComplex=} [properties] Properties to set * @returns {jspb.test.OuterMessage.Complex} Complex instance */ @@ -2388,6 +2652,8 @@ $root.jspb = (function() { /** * Encodes the specified Complex message. Does not implicitly {@link jspb.test.OuterMessage.Complex.verify|verify} messages. + * @memberof jspb.test.OuterMessage.Complex + * @static * @param {jspb.test.OuterMessage.IComplex} message Complex message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -2402,6 +2668,8 @@ $root.jspb = (function() { /** * Encodes the specified Complex message, length delimited. Does not implicitly {@link jspb.test.OuterMessage.Complex.verify|verify} messages. + * @memberof jspb.test.OuterMessage.Complex + * @static * @param {jspb.test.OuterMessage.IComplex} message Complex message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -2412,6 +2680,8 @@ $root.jspb = (function() { /** * Decodes a Complex message from the specified reader or buffer. + * @memberof jspb.test.OuterMessage.Complex + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.OuterMessage.Complex} Complex @@ -2438,6 +2708,8 @@ $root.jspb = (function() { /** * Decodes a Complex message from the specified reader or buffer, length delimited. + * @memberof jspb.test.OuterMessage.Complex + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.OuterMessage.Complex} Complex * @throws {Error} If the payload is not a reader or valid buffer @@ -2445,12 +2717,14 @@ $root.jspb = (function() { */ Complex.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Complex message. + * @memberof jspb.test.OuterMessage.Complex + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -2465,6 +2739,8 @@ $root.jspb = (function() { /** * Creates a Complex message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.OuterMessage.Complex + * @static * @param {Object.} object Plain object * @returns {jspb.test.OuterMessage.Complex} Complex */ @@ -2479,6 +2755,8 @@ $root.jspb = (function() { /** * Creates a plain object from a Complex message. Also converts values to other types if specified. + * @memberof jspb.test.OuterMessage.Complex + * @static * @param {jspb.test.OuterMessage.Complex} message Complex * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -2496,6 +2774,8 @@ $root.jspb = (function() { /** * Converts this Complex to JSON. + * @memberof jspb.test.OuterMessage.Complex + * @instance * @returns {Object.} JSON object */ Complex.prototype.toJSON = function toJSON() { @@ -2533,12 +2813,16 @@ $root.jspb = (function() { /** * IsExtension ext1. + * @memberof jspb.test.IsExtension + * @instance * @type {string} */ IsExtension.prototype.ext1 = ""; /** * Creates a new IsExtension instance using the specified properties. + * @memberof jspb.test.IsExtension + * @static * @param {jspb.test.IIsExtension=} [properties] Properties to set * @returns {jspb.test.IsExtension} IsExtension instance */ @@ -2548,6 +2832,8 @@ $root.jspb = (function() { /** * Encodes the specified IsExtension message. Does not implicitly {@link jspb.test.IsExtension.verify|verify} messages. + * @memberof jspb.test.IsExtension + * @static * @param {jspb.test.IIsExtension} message IsExtension message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -2562,6 +2848,8 @@ $root.jspb = (function() { /** * Encodes the specified IsExtension message, length delimited. Does not implicitly {@link jspb.test.IsExtension.verify|verify} messages. + * @memberof jspb.test.IsExtension + * @static * @param {jspb.test.IIsExtension} message IsExtension message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -2572,6 +2860,8 @@ $root.jspb = (function() { /** * Decodes an IsExtension message from the specified reader or buffer. + * @memberof jspb.test.IsExtension + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.IsExtension} IsExtension @@ -2598,6 +2888,8 @@ $root.jspb = (function() { /** * Decodes an IsExtension message from the specified reader or buffer, length delimited. + * @memberof jspb.test.IsExtension + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.IsExtension} IsExtension * @throws {Error} If the payload is not a reader or valid buffer @@ -2605,12 +2897,14 @@ $root.jspb = (function() { */ IsExtension.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an IsExtension message. + * @memberof jspb.test.IsExtension + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -2625,6 +2919,8 @@ $root.jspb = (function() { /** * Creates an IsExtension message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.IsExtension + * @static * @param {Object.} object Plain object * @returns {jspb.test.IsExtension} IsExtension */ @@ -2639,6 +2935,8 @@ $root.jspb = (function() { /** * Creates a plain object from an IsExtension message. Also converts values to other types if specified. + * @memberof jspb.test.IsExtension + * @static * @param {jspb.test.IsExtension} message IsExtension * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -2656,6 +2954,8 @@ $root.jspb = (function() { /** * Converts this IsExtension to JSON. + * @memberof jspb.test.IsExtension + * @instance * @returns {Object.} JSON object */ IsExtension.prototype.toJSON = function toJSON() { @@ -2689,6 +2989,8 @@ $root.jspb = (function() { /** * Creates a new IndirectExtension instance using the specified properties. + * @memberof jspb.test.IndirectExtension + * @static * @param {jspb.test.IIndirectExtension=} [properties] Properties to set * @returns {jspb.test.IndirectExtension} IndirectExtension instance */ @@ -2698,6 +3000,8 @@ $root.jspb = (function() { /** * Encodes the specified IndirectExtension message. Does not implicitly {@link jspb.test.IndirectExtension.verify|verify} messages. + * @memberof jspb.test.IndirectExtension + * @static * @param {jspb.test.IIndirectExtension} message IndirectExtension message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -2710,6 +3014,8 @@ $root.jspb = (function() { /** * Encodes the specified IndirectExtension message, length delimited. Does not implicitly {@link jspb.test.IndirectExtension.verify|verify} messages. + * @memberof jspb.test.IndirectExtension + * @static * @param {jspb.test.IIndirectExtension} message IndirectExtension message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -2720,6 +3026,8 @@ $root.jspb = (function() { /** * Decodes an IndirectExtension message from the specified reader or buffer. + * @memberof jspb.test.IndirectExtension + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.IndirectExtension} IndirectExtension @@ -2743,6 +3051,8 @@ $root.jspb = (function() { /** * Decodes an IndirectExtension message from the specified reader or buffer, length delimited. + * @memberof jspb.test.IndirectExtension + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.IndirectExtension} IndirectExtension * @throws {Error} If the payload is not a reader or valid buffer @@ -2750,12 +3060,14 @@ $root.jspb = (function() { */ IndirectExtension.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an IndirectExtension message. + * @memberof jspb.test.IndirectExtension + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -2767,6 +3079,8 @@ $root.jspb = (function() { /** * Creates an IndirectExtension message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.IndirectExtension + * @static * @param {Object.} object Plain object * @returns {jspb.test.IndirectExtension} IndirectExtension */ @@ -2778,6 +3092,8 @@ $root.jspb = (function() { /** * Creates a plain object from an IndirectExtension message. Also converts values to other types if specified. + * @memberof jspb.test.IndirectExtension + * @static * @param {jspb.test.IndirectExtension} message IndirectExtension * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -2788,6 +3104,8 @@ $root.jspb = (function() { /** * Converts this IndirectExtension to JSON. + * @memberof jspb.test.IndirectExtension + * @instance * @returns {Object.} JSON object */ IndirectExtension.prototype.toJSON = function toJSON() { @@ -2827,42 +3145,56 @@ $root.jspb = (function() { /** * DefaultValues stringField. + * @memberof jspb.test.DefaultValues + * @instance * @type {string} */ DefaultValues.prototype.stringField = "default<>abc"; /** * DefaultValues boolField. + * @memberof jspb.test.DefaultValues + * @instance * @type {boolean} */ DefaultValues.prototype.boolField = true; /** * DefaultValues intField. + * @memberof jspb.test.DefaultValues + * @instance * @type {number|Long} */ DefaultValues.prototype.intField = $util.Long ? $util.Long.fromBits(11,0,false) : 11; /** * DefaultValues enumField. + * @memberof jspb.test.DefaultValues + * @instance * @type {jspb.test.DefaultValues.Enum} */ DefaultValues.prototype.enumField = 13; /** * DefaultValues emptyField. + * @memberof jspb.test.DefaultValues + * @instance * @type {string} */ DefaultValues.prototype.emptyField = ""; /** * DefaultValues bytesField. + * @memberof jspb.test.DefaultValues + * @instance * @type {Uint8Array} */ DefaultValues.prototype.bytesField = $util.newBuffer([109,111,111]); /** * Creates a new DefaultValues instance using the specified properties. + * @memberof jspb.test.DefaultValues + * @static * @param {jspb.test.IDefaultValues=} [properties] Properties to set * @returns {jspb.test.DefaultValues} DefaultValues instance */ @@ -2872,6 +3204,8 @@ $root.jspb = (function() { /** * Encodes the specified DefaultValues message. Does not implicitly {@link jspb.test.DefaultValues.verify|verify} messages. + * @memberof jspb.test.DefaultValues + * @static * @param {jspb.test.IDefaultValues} message DefaultValues message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -2896,6 +3230,8 @@ $root.jspb = (function() { /** * Encodes the specified DefaultValues message, length delimited. Does not implicitly {@link jspb.test.DefaultValues.verify|verify} messages. + * @memberof jspb.test.DefaultValues + * @static * @param {jspb.test.IDefaultValues} message DefaultValues message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -2906,6 +3242,8 @@ $root.jspb = (function() { /** * Decodes a DefaultValues message from the specified reader or buffer. + * @memberof jspb.test.DefaultValues + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.DefaultValues} DefaultValues @@ -2947,6 +3285,8 @@ $root.jspb = (function() { /** * Decodes a DefaultValues message from the specified reader or buffer, length delimited. + * @memberof jspb.test.DefaultValues + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.DefaultValues} DefaultValues * @throws {Error} If the payload is not a reader or valid buffer @@ -2954,12 +3294,14 @@ $root.jspb = (function() { */ DefaultValues.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a DefaultValues message. + * @memberof jspb.test.DefaultValues + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -2994,6 +3336,8 @@ $root.jspb = (function() { /** * Creates a DefaultValues message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.DefaultValues + * @static * @param {Object.} object Plain object * @returns {jspb.test.DefaultValues} DefaultValues */ @@ -3036,6 +3380,8 @@ $root.jspb = (function() { /** * Creates a plain object from a DefaultValues message. Also converts values to other types if specified. + * @memberof jspb.test.DefaultValues + * @static * @param {jspb.test.DefaultValues} message DefaultValues * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -3080,6 +3426,8 @@ $root.jspb = (function() { /** * Converts this DefaultValues to JSON. + * @memberof jspb.test.DefaultValues + * @instance * @returns {Object.} JSON object */ DefaultValues.prototype.toJSON = function toJSON() { @@ -3088,7 +3436,7 @@ $root.jspb = (function() { /** * Enum enum. - * @enum {number} + * @enum {string} * @property {number} E1=13 E1 value * @property {number} E2=77 E2 value */ @@ -3136,54 +3484,72 @@ $root.jspb = (function() { /** * FloatingPointFields optionalFloatField. + * @memberof jspb.test.FloatingPointFields + * @instance * @type {number} */ FloatingPointFields.prototype.optionalFloatField = 0; /** * FloatingPointFields requiredFloatField. + * @memberof jspb.test.FloatingPointFields + * @instance * @type {number} */ FloatingPointFields.prototype.requiredFloatField = 0; /** * FloatingPointFields repeatedFloatField. + * @memberof jspb.test.FloatingPointFields + * @instance * @type {Array.} */ FloatingPointFields.prototype.repeatedFloatField = $util.emptyArray; /** * FloatingPointFields defaultFloatField. + * @memberof jspb.test.FloatingPointFields + * @instance * @type {number} */ FloatingPointFields.prototype.defaultFloatField = 2; /** * FloatingPointFields optionalDoubleField. + * @memberof jspb.test.FloatingPointFields + * @instance * @type {number} */ FloatingPointFields.prototype.optionalDoubleField = 0; /** * FloatingPointFields requiredDoubleField. + * @memberof jspb.test.FloatingPointFields + * @instance * @type {number} */ FloatingPointFields.prototype.requiredDoubleField = 0; /** * FloatingPointFields repeatedDoubleField. + * @memberof jspb.test.FloatingPointFields + * @instance * @type {Array.} */ FloatingPointFields.prototype.repeatedDoubleField = $util.emptyArray; /** * FloatingPointFields defaultDoubleField. + * @memberof jspb.test.FloatingPointFields + * @instance * @type {number} */ FloatingPointFields.prototype.defaultDoubleField = 2; /** * Creates a new FloatingPointFields instance using the specified properties. + * @memberof jspb.test.FloatingPointFields + * @static * @param {jspb.test.IFloatingPointFields=} [properties] Properties to set * @returns {jspb.test.FloatingPointFields} FloatingPointFields instance */ @@ -3193,6 +3559,8 @@ $root.jspb = (function() { /** * Encodes the specified FloatingPointFields message. Does not implicitly {@link jspb.test.FloatingPointFields.verify|verify} messages. + * @memberof jspb.test.FloatingPointFields + * @static * @param {jspb.test.IFloatingPointFields} message FloatingPointFields message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -3221,6 +3589,8 @@ $root.jspb = (function() { /** * Encodes the specified FloatingPointFields message, length delimited. Does not implicitly {@link jspb.test.FloatingPointFields.verify|verify} messages. + * @memberof jspb.test.FloatingPointFields + * @static * @param {jspb.test.IFloatingPointFields} message FloatingPointFields message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -3231,6 +3601,8 @@ $root.jspb = (function() { /** * Decodes a FloatingPointFields message from the specified reader or buffer. + * @memberof jspb.test.FloatingPointFields + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.FloatingPointFields} FloatingPointFields @@ -3296,6 +3668,8 @@ $root.jspb = (function() { /** * Decodes a FloatingPointFields message from the specified reader or buffer, length delimited. + * @memberof jspb.test.FloatingPointFields + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.FloatingPointFields} FloatingPointFields * @throws {Error} If the payload is not a reader or valid buffer @@ -3303,12 +3677,14 @@ $root.jspb = (function() { */ FloatingPointFields.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a FloatingPointFields message. + * @memberof jspb.test.FloatingPointFields + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -3350,6 +3726,8 @@ $root.jspb = (function() { /** * Creates a FloatingPointFields message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.FloatingPointFields + * @static * @param {Object.} object Plain object * @returns {jspb.test.FloatingPointFields} FloatingPointFields */ @@ -3388,6 +3766,8 @@ $root.jspb = (function() { /** * Creates a plain object from a FloatingPointFields message. Also converts values to other types if specified. + * @memberof jspb.test.FloatingPointFields + * @static * @param {jspb.test.FloatingPointFields} message FloatingPointFields * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -3435,6 +3815,8 @@ $root.jspb = (function() { /** * Converts this FloatingPointFields to JSON. + * @memberof jspb.test.FloatingPointFields + * @instance * @returns {Object.} JSON object */ FloatingPointFields.prototype.toJSON = function toJSON() { @@ -3475,42 +3857,56 @@ $root.jspb = (function() { /** * TestClone str. + * @memberof jspb.test.TestClone + * @instance * @type {string} */ TestClone.prototype.str = ""; /** * TestClone simple1. + * @memberof jspb.test.TestClone + * @instance * @type {(jspb.test.ISimple1|null)} */ TestClone.prototype.simple1 = null; /** * TestClone simple2. + * @memberof jspb.test.TestClone + * @instance * @type {Array.} */ TestClone.prototype.simple2 = $util.emptyArray; /** * TestClone bytesField. + * @memberof jspb.test.TestClone + * @instance * @type {Uint8Array} */ TestClone.prototype.bytesField = $util.newBuffer([]); /** * TestClone unused. + * @memberof jspb.test.TestClone + * @instance * @type {string} */ TestClone.prototype.unused = ""; /** * TestClone .jspb.test.CloneExtension.extField. + * @memberof jspb.test.TestClone + * @instance * @type {(jspb.test.ICloneExtension|null)} */ TestClone.prototype[".jspb.test.CloneExtension.extField"] = null; /** * Creates a new TestClone instance using the specified properties. + * @memberof jspb.test.TestClone + * @static * @param {jspb.test.ITestClone=} [properties] Properties to set * @returns {jspb.test.TestClone} TestClone instance */ @@ -3520,6 +3916,8 @@ $root.jspb = (function() { /** * Encodes the specified TestClone message. Does not implicitly {@link jspb.test.TestClone.verify|verify} messages. + * @memberof jspb.test.TestClone + * @static * @param {jspb.test.ITestClone} message TestClone message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -3545,6 +3943,8 @@ $root.jspb = (function() { /** * Encodes the specified TestClone message, length delimited. Does not implicitly {@link jspb.test.TestClone.verify|verify} messages. + * @memberof jspb.test.TestClone + * @static * @param {jspb.test.ITestClone} message TestClone message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -3555,6 +3955,8 @@ $root.jspb = (function() { /** * Decodes a TestClone message from the specified reader or buffer. + * @memberof jspb.test.TestClone + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.TestClone} TestClone @@ -3598,6 +4000,8 @@ $root.jspb = (function() { /** * Decodes a TestClone message from the specified reader or buffer, length delimited. + * @memberof jspb.test.TestClone + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.TestClone} TestClone * @throws {Error} If the payload is not a reader or valid buffer @@ -3605,12 +4009,14 @@ $root.jspb = (function() { */ TestClone.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a TestClone message. + * @memberof jspb.test.TestClone + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -3629,7 +4035,7 @@ $root.jspb = (function() { if (!Array.isArray(message.simple2)) return "simple2: array expected"; for (var i = 0; i < message.simple2.length; ++i) { - var error = $root.jspb.test.Simple1.verify(message.simple2[i]); + error = $root.jspb.test.Simple1.verify(message.simple2[i]); if (error) return "simple2." + error; } @@ -3641,7 +4047,7 @@ $root.jspb = (function() { if (!$util.isString(message.unused)) return "unused: string expected"; if (message[".jspb.test.CloneExtension.extField"] != null && message.hasOwnProperty(".jspb.test.CloneExtension.extField")) { - var error = $root.jspb.test.CloneExtension.verify(message[".jspb.test.CloneExtension.extField"]); + error = $root.jspb.test.CloneExtension.verify(message[".jspb.test.CloneExtension.extField"]); if (error) return ".jspb.test.CloneExtension.extField." + error; } @@ -3650,6 +4056,8 @@ $root.jspb = (function() { /** * Creates a TestClone message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.TestClone + * @static * @param {Object.} object Plain object * @returns {jspb.test.TestClone} TestClone */ @@ -3691,6 +4099,8 @@ $root.jspb = (function() { /** * Creates a plain object from a TestClone message. Also converts values to other types if specified. + * @memberof jspb.test.TestClone + * @static * @param {jspb.test.TestClone} message TestClone * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -3728,6 +4138,8 @@ $root.jspb = (function() { /** * Converts this TestClone to JSON. + * @memberof jspb.test.TestClone + * @instance * @returns {Object.} JSON object */ TestClone.prototype.toJSON = function toJSON() { @@ -3762,12 +4174,16 @@ $root.jspb = (function() { /** * CloneExtension ext. + * @memberof jspb.test.CloneExtension + * @instance * @type {string} */ CloneExtension.prototype.ext = ""; /** * Creates a new CloneExtension instance using the specified properties. + * @memberof jspb.test.CloneExtension + * @static * @param {jspb.test.ICloneExtension=} [properties] Properties to set * @returns {jspb.test.CloneExtension} CloneExtension instance */ @@ -3777,6 +4193,8 @@ $root.jspb = (function() { /** * Encodes the specified CloneExtension message. Does not implicitly {@link jspb.test.CloneExtension.verify|verify} messages. + * @memberof jspb.test.CloneExtension + * @static * @param {jspb.test.ICloneExtension} message CloneExtension message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -3791,6 +4209,8 @@ $root.jspb = (function() { /** * Encodes the specified CloneExtension message, length delimited. Does not implicitly {@link jspb.test.CloneExtension.verify|verify} messages. + * @memberof jspb.test.CloneExtension + * @static * @param {jspb.test.ICloneExtension} message CloneExtension message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -3801,6 +4221,8 @@ $root.jspb = (function() { /** * Decodes a CloneExtension message from the specified reader or buffer. + * @memberof jspb.test.CloneExtension + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.CloneExtension} CloneExtension @@ -3827,6 +4249,8 @@ $root.jspb = (function() { /** * Decodes a CloneExtension message from the specified reader or buffer, length delimited. + * @memberof jspb.test.CloneExtension + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.CloneExtension} CloneExtension * @throws {Error} If the payload is not a reader or valid buffer @@ -3834,12 +4258,14 @@ $root.jspb = (function() { */ CloneExtension.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a CloneExtension message. + * @memberof jspb.test.CloneExtension + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -3854,6 +4280,8 @@ $root.jspb = (function() { /** * Creates a CloneExtension message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.CloneExtension + * @static * @param {Object.} object Plain object * @returns {jspb.test.CloneExtension} CloneExtension */ @@ -3868,6 +4296,8 @@ $root.jspb = (function() { /** * Creates a plain object from a CloneExtension message. Also converts values to other types if specified. + * @memberof jspb.test.CloneExtension + * @static * @param {jspb.test.CloneExtension} message CloneExtension * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -3885,6 +4315,8 @@ $root.jspb = (function() { /** * Converts this CloneExtension to JSON. + * @memberof jspb.test.CloneExtension + * @instance * @returns {Object.} JSON object */ CloneExtension.prototype.toJSON = function toJSON() { @@ -3925,42 +4357,56 @@ $root.jspb = (function() { /** * TestGroup repeatedGroup. + * @memberof jspb.test.TestGroup + * @instance * @type {Array.} */ TestGroup.prototype.repeatedGroup = $util.emptyArray; /** * TestGroup requiredGroup. + * @memberof jspb.test.TestGroup + * @instance * @type {jspb.test.TestGroup.IRequiredGroup} */ TestGroup.prototype.requiredGroup = null; /** * TestGroup optionalGroup. + * @memberof jspb.test.TestGroup + * @instance * @type {(jspb.test.TestGroup.IOptionalGroup|null)} */ TestGroup.prototype.optionalGroup = null; /** * TestGroup id. + * @memberof jspb.test.TestGroup + * @instance * @type {string} */ TestGroup.prototype.id = ""; /** * TestGroup requiredSimple. + * @memberof jspb.test.TestGroup + * @instance * @type {jspb.test.ISimple2} */ TestGroup.prototype.requiredSimple = null; /** * TestGroup optionalSimple. + * @memberof jspb.test.TestGroup + * @instance * @type {(jspb.test.ISimple2|null)} */ TestGroup.prototype.optionalSimple = null; /** * Creates a new TestGroup instance using the specified properties. + * @memberof jspb.test.TestGroup + * @static * @param {jspb.test.ITestGroup=} [properties] Properties to set * @returns {jspb.test.TestGroup} TestGroup instance */ @@ -3970,6 +4416,8 @@ $root.jspb = (function() { /** * Encodes the specified TestGroup message. Does not implicitly {@link jspb.test.TestGroup.verify|verify} messages. + * @memberof jspb.test.TestGroup + * @static * @param {jspb.test.ITestGroup} message TestGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -3993,6 +4441,8 @@ $root.jspb = (function() { /** * Encodes the specified TestGroup message, length delimited. Does not implicitly {@link jspb.test.TestGroup.verify|verify} messages. + * @memberof jspb.test.TestGroup + * @static * @param {jspb.test.ITestGroup} message TestGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -4003,6 +4453,8 @@ $root.jspb = (function() { /** * Decodes a TestGroup message from the specified reader or buffer. + * @memberof jspb.test.TestGroup + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.TestGroup} TestGroup @@ -4050,6 +4502,8 @@ $root.jspb = (function() { /** * Decodes a TestGroup message from the specified reader or buffer, length delimited. + * @memberof jspb.test.TestGroup + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.TestGroup} TestGroup * @throws {Error} If the payload is not a reader or valid buffer @@ -4057,12 +4511,14 @@ $root.jspb = (function() { */ TestGroup.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a TestGroup message. + * @memberof jspb.test.TestGroup + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -4078,22 +4534,22 @@ $root.jspb = (function() { return "repeatedGroup." + error; } } - var error = $root.jspb.test.TestGroup.RequiredGroup.verify(message.requiredGroup); + error = $root.jspb.test.TestGroup.RequiredGroup.verify(message.requiredGroup); if (error) return "requiredGroup." + error; if (message.optionalGroup != null && message.hasOwnProperty("optionalGroup")) { - var error = $root.jspb.test.TestGroup.OptionalGroup.verify(message.optionalGroup); + error = $root.jspb.test.TestGroup.OptionalGroup.verify(message.optionalGroup); if (error) return "optionalGroup." + error; } if (message.id != null && message.hasOwnProperty("id")) if (!$util.isString(message.id)) return "id: string expected"; - var error = $root.jspb.test.Simple2.verify(message.requiredSimple); + error = $root.jspb.test.Simple2.verify(message.requiredSimple); if (error) return "requiredSimple." + error; if (message.optionalSimple != null && message.hasOwnProperty("optionalSimple")) { - var error = $root.jspb.test.Simple2.verify(message.optionalSimple); + error = $root.jspb.test.Simple2.verify(message.optionalSimple); if (error) return "optionalSimple." + error; } @@ -4102,6 +4558,8 @@ $root.jspb = (function() { /** * Creates a TestGroup message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.TestGroup + * @static * @param {Object.} object Plain object * @returns {jspb.test.TestGroup} TestGroup */ @@ -4146,6 +4604,8 @@ $root.jspb = (function() { /** * Creates a plain object from a TestGroup message. Also converts values to other types if specified. + * @memberof jspb.test.TestGroup + * @static * @param {jspb.test.TestGroup} message TestGroup * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -4183,6 +4643,8 @@ $root.jspb = (function() { /** * Converts this TestGroup to JSON. + * @memberof jspb.test.TestGroup + * @instance * @returns {Object.} JSON object */ TestGroup.prototype.toJSON = function toJSON() { @@ -4216,18 +4678,24 @@ $root.jspb = (function() { /** * RepeatedGroup id. + * @memberof jspb.test.TestGroup.RepeatedGroup + * @instance * @type {string} */ RepeatedGroup.prototype.id = ""; /** * RepeatedGroup someBool. + * @memberof jspb.test.TestGroup.RepeatedGroup + * @instance * @type {Array.} */ RepeatedGroup.prototype.someBool = $util.emptyArray; /** * Creates a new RepeatedGroup instance using the specified properties. + * @memberof jspb.test.TestGroup.RepeatedGroup + * @static * @param {jspb.test.TestGroup.IRepeatedGroup=} [properties] Properties to set * @returns {jspb.test.TestGroup.RepeatedGroup} RepeatedGroup instance */ @@ -4237,6 +4705,8 @@ $root.jspb = (function() { /** * Encodes the specified RepeatedGroup message. Does not implicitly {@link jspb.test.TestGroup.RepeatedGroup.verify|verify} messages. + * @memberof jspb.test.TestGroup.RepeatedGroup + * @static * @param {jspb.test.TestGroup.IRepeatedGroup} message RepeatedGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -4253,6 +4723,8 @@ $root.jspb = (function() { /** * Encodes the specified RepeatedGroup message, length delimited. Does not implicitly {@link jspb.test.TestGroup.RepeatedGroup.verify|verify} messages. + * @memberof jspb.test.TestGroup.RepeatedGroup + * @static * @param {jspb.test.TestGroup.IRepeatedGroup} message RepeatedGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -4263,6 +4735,8 @@ $root.jspb = (function() { /** * Decodes a RepeatedGroup message from the specified reader or buffer. + * @memberof jspb.test.TestGroup.RepeatedGroup + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.TestGroup.RepeatedGroup} RepeatedGroup @@ -4303,6 +4777,8 @@ $root.jspb = (function() { /** * Decodes a RepeatedGroup message from the specified reader or buffer, length delimited. + * @memberof jspb.test.TestGroup.RepeatedGroup + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.TestGroup.RepeatedGroup} RepeatedGroup * @throws {Error} If the payload is not a reader or valid buffer @@ -4310,12 +4786,14 @@ $root.jspb = (function() { */ RepeatedGroup.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a RepeatedGroup message. + * @memberof jspb.test.TestGroup.RepeatedGroup + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -4336,6 +4814,8 @@ $root.jspb = (function() { /** * Creates a RepeatedGroup message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.TestGroup.RepeatedGroup + * @static * @param {Object.} object Plain object * @returns {jspb.test.TestGroup.RepeatedGroup} RepeatedGroup */ @@ -4357,6 +4837,8 @@ $root.jspb = (function() { /** * Creates a plain object from a RepeatedGroup message. Also converts values to other types if specified. + * @memberof jspb.test.TestGroup.RepeatedGroup + * @static * @param {jspb.test.TestGroup.RepeatedGroup} message RepeatedGroup * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -4381,6 +4863,8 @@ $root.jspb = (function() { /** * Converts this RepeatedGroup to JSON. + * @memberof jspb.test.TestGroup.RepeatedGroup + * @instance * @returns {Object.} JSON object */ RepeatedGroup.prototype.toJSON = function toJSON() { @@ -4415,12 +4899,16 @@ $root.jspb = (function() { /** * RequiredGroup id. + * @memberof jspb.test.TestGroup.RequiredGroup + * @instance * @type {string} */ RequiredGroup.prototype.id = ""; /** * Creates a new RequiredGroup instance using the specified properties. + * @memberof jspb.test.TestGroup.RequiredGroup + * @static * @param {jspb.test.TestGroup.IRequiredGroup=} [properties] Properties to set * @returns {jspb.test.TestGroup.RequiredGroup} RequiredGroup instance */ @@ -4430,6 +4918,8 @@ $root.jspb = (function() { /** * Encodes the specified RequiredGroup message. Does not implicitly {@link jspb.test.TestGroup.RequiredGroup.verify|verify} messages. + * @memberof jspb.test.TestGroup.RequiredGroup + * @static * @param {jspb.test.TestGroup.IRequiredGroup} message RequiredGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -4443,6 +4933,8 @@ $root.jspb = (function() { /** * Encodes the specified RequiredGroup message, length delimited. Does not implicitly {@link jspb.test.TestGroup.RequiredGroup.verify|verify} messages. + * @memberof jspb.test.TestGroup.RequiredGroup + * @static * @param {jspb.test.TestGroup.IRequiredGroup} message RequiredGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -4453,6 +4945,8 @@ $root.jspb = (function() { /** * Decodes a RequiredGroup message from the specified reader or buffer. + * @memberof jspb.test.TestGroup.RequiredGroup + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.TestGroup.RequiredGroup} RequiredGroup @@ -4483,6 +4977,8 @@ $root.jspb = (function() { /** * Decodes a RequiredGroup message from the specified reader or buffer, length delimited. + * @memberof jspb.test.TestGroup.RequiredGroup + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.TestGroup.RequiredGroup} RequiredGroup * @throws {Error} If the payload is not a reader or valid buffer @@ -4490,12 +4986,14 @@ $root.jspb = (function() { */ RequiredGroup.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a RequiredGroup message. + * @memberof jspb.test.TestGroup.RequiredGroup + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -4509,6 +5007,8 @@ $root.jspb = (function() { /** * Creates a RequiredGroup message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.TestGroup.RequiredGroup + * @static * @param {Object.} object Plain object * @returns {jspb.test.TestGroup.RequiredGroup} RequiredGroup */ @@ -4523,6 +5023,8 @@ $root.jspb = (function() { /** * Creates a plain object from a RequiredGroup message. Also converts values to other types if specified. + * @memberof jspb.test.TestGroup.RequiredGroup + * @static * @param {jspb.test.TestGroup.RequiredGroup} message RequiredGroup * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -4540,6 +5042,8 @@ $root.jspb = (function() { /** * Converts this RequiredGroup to JSON. + * @memberof jspb.test.TestGroup.RequiredGroup + * @instance * @returns {Object.} JSON object */ RequiredGroup.prototype.toJSON = function toJSON() { @@ -4574,12 +5078,16 @@ $root.jspb = (function() { /** * OptionalGroup id. + * @memberof jspb.test.TestGroup.OptionalGroup + * @instance * @type {string} */ OptionalGroup.prototype.id = ""; /** * Creates a new OptionalGroup instance using the specified properties. + * @memberof jspb.test.TestGroup.OptionalGroup + * @static * @param {jspb.test.TestGroup.IOptionalGroup=} [properties] Properties to set * @returns {jspb.test.TestGroup.OptionalGroup} OptionalGroup instance */ @@ -4589,6 +5097,8 @@ $root.jspb = (function() { /** * Encodes the specified OptionalGroup message. Does not implicitly {@link jspb.test.TestGroup.OptionalGroup.verify|verify} messages. + * @memberof jspb.test.TestGroup.OptionalGroup + * @static * @param {jspb.test.TestGroup.IOptionalGroup} message OptionalGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -4602,6 +5112,8 @@ $root.jspb = (function() { /** * Encodes the specified OptionalGroup message, length delimited. Does not implicitly {@link jspb.test.TestGroup.OptionalGroup.verify|verify} messages. + * @memberof jspb.test.TestGroup.OptionalGroup + * @static * @param {jspb.test.TestGroup.IOptionalGroup} message OptionalGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -4612,6 +5124,8 @@ $root.jspb = (function() { /** * Decodes an OptionalGroup message from the specified reader or buffer. + * @memberof jspb.test.TestGroup.OptionalGroup + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.TestGroup.OptionalGroup} OptionalGroup @@ -4642,6 +5156,8 @@ $root.jspb = (function() { /** * Decodes an OptionalGroup message from the specified reader or buffer, length delimited. + * @memberof jspb.test.TestGroup.OptionalGroup + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.TestGroup.OptionalGroup} OptionalGroup * @throws {Error} If the payload is not a reader or valid buffer @@ -4649,12 +5165,14 @@ $root.jspb = (function() { */ OptionalGroup.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an OptionalGroup message. + * @memberof jspb.test.TestGroup.OptionalGroup + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -4668,6 +5186,8 @@ $root.jspb = (function() { /** * Creates an OptionalGroup message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.TestGroup.OptionalGroup + * @static * @param {Object.} object Plain object * @returns {jspb.test.TestGroup.OptionalGroup} OptionalGroup */ @@ -4682,6 +5202,8 @@ $root.jspb = (function() { /** * Creates a plain object from an OptionalGroup message. Also converts values to other types if specified. + * @memberof jspb.test.TestGroup.OptionalGroup + * @static * @param {jspb.test.TestGroup.OptionalGroup} message OptionalGroup * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -4699,6 +5221,8 @@ $root.jspb = (function() { /** * Converts this OptionalGroup to JSON. + * @memberof jspb.test.TestGroup.OptionalGroup + * @instance * @returns {Object.} JSON object */ OptionalGroup.prototype.toJSON = function toJSON() { @@ -4736,12 +5260,16 @@ $root.jspb = (function() { /** * TestGroup1 group. + * @memberof jspb.test.TestGroup1 + * @instance * @type {(jspb.test.TestGroup.IRepeatedGroup|null)} */ TestGroup1.prototype.group = null; /** * Creates a new TestGroup1 instance using the specified properties. + * @memberof jspb.test.TestGroup1 + * @static * @param {jspb.test.ITestGroup1=} [properties] Properties to set * @returns {jspb.test.TestGroup1} TestGroup1 instance */ @@ -4751,6 +5279,8 @@ $root.jspb = (function() { /** * Encodes the specified TestGroup1 message. Does not implicitly {@link jspb.test.TestGroup1.verify|verify} messages. + * @memberof jspb.test.TestGroup1 + * @static * @param {jspb.test.ITestGroup1} message TestGroup1 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -4765,6 +5295,8 @@ $root.jspb = (function() { /** * Encodes the specified TestGroup1 message, length delimited. Does not implicitly {@link jspb.test.TestGroup1.verify|verify} messages. + * @memberof jspb.test.TestGroup1 + * @static * @param {jspb.test.ITestGroup1} message TestGroup1 message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -4775,6 +5307,8 @@ $root.jspb = (function() { /** * Decodes a TestGroup1 message from the specified reader or buffer. + * @memberof jspb.test.TestGroup1 + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.TestGroup1} TestGroup1 @@ -4801,6 +5335,8 @@ $root.jspb = (function() { /** * Decodes a TestGroup1 message from the specified reader or buffer, length delimited. + * @memberof jspb.test.TestGroup1 + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.TestGroup1} TestGroup1 * @throws {Error} If the payload is not a reader or valid buffer @@ -4808,12 +5344,14 @@ $root.jspb = (function() { */ TestGroup1.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a TestGroup1 message. + * @memberof jspb.test.TestGroup1 + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -4830,6 +5368,8 @@ $root.jspb = (function() { /** * Creates a TestGroup1 message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.TestGroup1 + * @static * @param {Object.} object Plain object * @returns {jspb.test.TestGroup1} TestGroup1 */ @@ -4847,6 +5387,8 @@ $root.jspb = (function() { /** * Creates a plain object from a TestGroup1 message. Also converts values to other types if specified. + * @memberof jspb.test.TestGroup1 + * @static * @param {jspb.test.TestGroup1} message TestGroup1 * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -4864,6 +5406,8 @@ $root.jspb = (function() { /** * Converts this TestGroup1 to JSON. + * @memberof jspb.test.TestGroup1 + * @instance * @returns {Object.} JSON object */ TestGroup1.prototype.toJSON = function toJSON() { @@ -4899,18 +5443,24 @@ $root.jspb = (function() { /** * TestReservedNames extension. + * @memberof jspb.test.TestReservedNames + * @instance * @type {number} */ TestReservedNames.prototype.extension = 0; /** * TestReservedNames .jspb.test.TestReservedNamesExtension.foo. + * @memberof jspb.test.TestReservedNames + * @instance * @type {number} */ TestReservedNames.prototype[".jspb.test.TestReservedNamesExtension.foo"] = 0; /** * Creates a new TestReservedNames instance using the specified properties. + * @memberof jspb.test.TestReservedNames + * @static * @param {jspb.test.ITestReservedNames=} [properties] Properties to set * @returns {jspb.test.TestReservedNames} TestReservedNames instance */ @@ -4920,6 +5470,8 @@ $root.jspb = (function() { /** * Encodes the specified TestReservedNames message. Does not implicitly {@link jspb.test.TestReservedNames.verify|verify} messages. + * @memberof jspb.test.TestReservedNames + * @static * @param {jspb.test.ITestReservedNames} message TestReservedNames message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -4936,6 +5488,8 @@ $root.jspb = (function() { /** * Encodes the specified TestReservedNames message, length delimited. Does not implicitly {@link jspb.test.TestReservedNames.verify|verify} messages. + * @memberof jspb.test.TestReservedNames + * @static * @param {jspb.test.ITestReservedNames} message TestReservedNames message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -4946,6 +5500,8 @@ $root.jspb = (function() { /** * Decodes a TestReservedNames message from the specified reader or buffer. + * @memberof jspb.test.TestReservedNames + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.TestReservedNames} TestReservedNames @@ -4975,6 +5531,8 @@ $root.jspb = (function() { /** * Decodes a TestReservedNames message from the specified reader or buffer, length delimited. + * @memberof jspb.test.TestReservedNames + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.TestReservedNames} TestReservedNames * @throws {Error} If the payload is not a reader or valid buffer @@ -4982,12 +5540,14 @@ $root.jspb = (function() { */ TestReservedNames.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a TestReservedNames message. + * @memberof jspb.test.TestReservedNames + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -5005,6 +5565,8 @@ $root.jspb = (function() { /** * Creates a TestReservedNames message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.TestReservedNames + * @static * @param {Object.} object Plain object * @returns {jspb.test.TestReservedNames} TestReservedNames */ @@ -5021,6 +5583,8 @@ $root.jspb = (function() { /** * Creates a plain object from a TestReservedNames message. Also converts values to other types if specified. + * @memberof jspb.test.TestReservedNames + * @static * @param {jspb.test.TestReservedNames} message TestReservedNames * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -5042,6 +5606,8 @@ $root.jspb = (function() { /** * Converts this TestReservedNames to JSON. + * @memberof jspb.test.TestReservedNames + * @instance * @returns {Object.} JSON object */ TestReservedNames.prototype.toJSON = function toJSON() { @@ -5075,6 +5641,8 @@ $root.jspb = (function() { /** * Creates a new TestReservedNamesExtension instance using the specified properties. + * @memberof jspb.test.TestReservedNamesExtension + * @static * @param {jspb.test.ITestReservedNamesExtension=} [properties] Properties to set * @returns {jspb.test.TestReservedNamesExtension} TestReservedNamesExtension instance */ @@ -5084,6 +5652,8 @@ $root.jspb = (function() { /** * Encodes the specified TestReservedNamesExtension message. Does not implicitly {@link jspb.test.TestReservedNamesExtension.verify|verify} messages. + * @memberof jspb.test.TestReservedNamesExtension + * @static * @param {jspb.test.ITestReservedNamesExtension} message TestReservedNamesExtension message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -5096,6 +5666,8 @@ $root.jspb = (function() { /** * Encodes the specified TestReservedNamesExtension message, length delimited. Does not implicitly {@link jspb.test.TestReservedNamesExtension.verify|verify} messages. + * @memberof jspb.test.TestReservedNamesExtension + * @static * @param {jspb.test.ITestReservedNamesExtension} message TestReservedNamesExtension message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -5106,6 +5678,8 @@ $root.jspb = (function() { /** * Decodes a TestReservedNamesExtension message from the specified reader or buffer. + * @memberof jspb.test.TestReservedNamesExtension + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.TestReservedNamesExtension} TestReservedNamesExtension @@ -5129,6 +5703,8 @@ $root.jspb = (function() { /** * Decodes a TestReservedNamesExtension message from the specified reader or buffer, length delimited. + * @memberof jspb.test.TestReservedNamesExtension + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.TestReservedNamesExtension} TestReservedNamesExtension * @throws {Error} If the payload is not a reader or valid buffer @@ -5136,12 +5712,14 @@ $root.jspb = (function() { */ TestReservedNamesExtension.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a TestReservedNamesExtension message. + * @memberof jspb.test.TestReservedNamesExtension + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -5153,6 +5731,8 @@ $root.jspb = (function() { /** * Creates a TestReservedNamesExtension message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.TestReservedNamesExtension + * @static * @param {Object.} object Plain object * @returns {jspb.test.TestReservedNamesExtension} TestReservedNamesExtension */ @@ -5164,6 +5744,8 @@ $root.jspb = (function() { /** * Creates a plain object from a TestReservedNamesExtension message. Also converts values to other types if specified. + * @memberof jspb.test.TestReservedNamesExtension + * @static * @param {jspb.test.TestReservedNamesExtension} message TestReservedNamesExtension * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -5174,6 +5756,8 @@ $root.jspb = (function() { /** * Converts this TestReservedNamesExtension to JSON. + * @memberof jspb.test.TestReservedNamesExtension + * @instance * @returns {Object.} JSON object */ TestReservedNamesExtension.prototype.toJSON = function toJSON() { @@ -5218,60 +5802,80 @@ $root.jspb = (function() { /** * TestMessageWithOneof pone. + * @memberof jspb.test.TestMessageWithOneof + * @instance * @type {string} */ TestMessageWithOneof.prototype.pone = ""; /** * TestMessageWithOneof pthree. + * @memberof jspb.test.TestMessageWithOneof + * @instance * @type {string} */ TestMessageWithOneof.prototype.pthree = ""; /** * TestMessageWithOneof rone. + * @memberof jspb.test.TestMessageWithOneof + * @instance * @type {(jspb.test.ITestMessageWithOneof|null)} */ TestMessageWithOneof.prototype.rone = null; /** * TestMessageWithOneof rtwo. + * @memberof jspb.test.TestMessageWithOneof + * @instance * @type {string} */ TestMessageWithOneof.prototype.rtwo = ""; /** * TestMessageWithOneof normalField. + * @memberof jspb.test.TestMessageWithOneof + * @instance * @type {boolean} */ TestMessageWithOneof.prototype.normalField = false; /** * TestMessageWithOneof repeatedField. + * @memberof jspb.test.TestMessageWithOneof + * @instance * @type {Array.} */ TestMessageWithOneof.prototype.repeatedField = $util.emptyArray; /** * TestMessageWithOneof aone. + * @memberof jspb.test.TestMessageWithOneof + * @instance * @type {number} */ TestMessageWithOneof.prototype.aone = 1234; /** * TestMessageWithOneof atwo. + * @memberof jspb.test.TestMessageWithOneof + * @instance * @type {number} */ TestMessageWithOneof.prototype.atwo = 0; /** * TestMessageWithOneof bone. + * @memberof jspb.test.TestMessageWithOneof + * @instance * @type {number} */ TestMessageWithOneof.prototype.bone = 0; /** * TestMessageWithOneof btwo. + * @memberof jspb.test.TestMessageWithOneof + * @instance * @type {number} */ TestMessageWithOneof.prototype.btwo = 1234; @@ -5281,7 +5885,9 @@ $root.jspb = (function() { /** * TestMessageWithOneof partialOneof. - * @name jspb.test.TestMessageWithOneof#partialOneof + * @property partialOneof + * @memberof jspb.test.TestMessageWithOneof + * @instance * @type {string|undefined} */ Object.defineProperty(TestMessageWithOneof.prototype, "partialOneof", { @@ -5291,7 +5897,9 @@ $root.jspb = (function() { /** * TestMessageWithOneof recursiveOneof. - * @name jspb.test.TestMessageWithOneof#recursiveOneof + * @property recursiveOneof + * @memberof jspb.test.TestMessageWithOneof + * @instance * @type {string|undefined} */ Object.defineProperty(TestMessageWithOneof.prototype, "recursiveOneof", { @@ -5301,7 +5909,9 @@ $root.jspb = (function() { /** * TestMessageWithOneof defaultOneofA. - * @name jspb.test.TestMessageWithOneof#defaultOneofA + * @property defaultOneofA + * @memberof jspb.test.TestMessageWithOneof + * @instance * @type {string|undefined} */ Object.defineProperty(TestMessageWithOneof.prototype, "defaultOneofA", { @@ -5311,7 +5921,9 @@ $root.jspb = (function() { /** * TestMessageWithOneof defaultOneofB. - * @name jspb.test.TestMessageWithOneof#defaultOneofB + * @property defaultOneofB + * @memberof jspb.test.TestMessageWithOneof + * @instance * @type {string|undefined} */ Object.defineProperty(TestMessageWithOneof.prototype, "defaultOneofB", { @@ -5321,6 +5933,8 @@ $root.jspb = (function() { /** * Creates a new TestMessageWithOneof instance using the specified properties. + * @memberof jspb.test.TestMessageWithOneof + * @static * @param {jspb.test.ITestMessageWithOneof=} [properties] Properties to set * @returns {jspb.test.TestMessageWithOneof} TestMessageWithOneof instance */ @@ -5330,6 +5944,8 @@ $root.jspb = (function() { /** * Encodes the specified TestMessageWithOneof message. Does not implicitly {@link jspb.test.TestMessageWithOneof.verify|verify} messages. + * @memberof jspb.test.TestMessageWithOneof + * @static * @param {jspb.test.ITestMessageWithOneof} message TestMessageWithOneof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -5363,6 +5979,8 @@ $root.jspb = (function() { /** * Encodes the specified TestMessageWithOneof message, length delimited. Does not implicitly {@link jspb.test.TestMessageWithOneof.verify|verify} messages. + * @memberof jspb.test.TestMessageWithOneof + * @static * @param {jspb.test.ITestMessageWithOneof} message TestMessageWithOneof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -5373,6 +5991,8 @@ $root.jspb = (function() { /** * Decodes a TestMessageWithOneof message from the specified reader or buffer. + * @memberof jspb.test.TestMessageWithOneof + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.TestMessageWithOneof} TestMessageWithOneof @@ -5428,6 +6048,8 @@ $root.jspb = (function() { /** * Decodes a TestMessageWithOneof message from the specified reader or buffer, length delimited. + * @memberof jspb.test.TestMessageWithOneof + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.TestMessageWithOneof} TestMessageWithOneof * @throws {Error} If the payload is not a reader or valid buffer @@ -5435,12 +6057,14 @@ $root.jspb = (function() { */ TestMessageWithOneof.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a TestMessageWithOneof message. + * @memberof jspb.test.TestMessageWithOneof + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -5512,6 +6136,8 @@ $root.jspb = (function() { /** * Creates a TestMessageWithOneof message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.TestMessageWithOneof + * @static * @param {Object.} object Plain object * @returns {jspb.test.TestMessageWithOneof} TestMessageWithOneof */ @@ -5552,6 +6178,8 @@ $root.jspb = (function() { /** * Creates a plain object from a TestMessageWithOneof message. Also converts values to other types if specified. + * @memberof jspb.test.TestMessageWithOneof + * @static * @param {jspb.test.TestMessageWithOneof} message TestMessageWithOneof * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -5616,6 +6244,8 @@ $root.jspb = (function() { /** * Converts this TestMessageWithOneof to JSON. + * @memberof jspb.test.TestMessageWithOneof + * @instance * @returns {Object.} JSON object */ TestMessageWithOneof.prototype.toJSON = function toJSON() { @@ -5651,18 +6281,24 @@ $root.jspb = (function() { /** * TestEndsWithBytes value. + * @memberof jspb.test.TestEndsWithBytes + * @instance * @type {number} */ TestEndsWithBytes.prototype.value = 0; /** * TestEndsWithBytes data. + * @memberof jspb.test.TestEndsWithBytes + * @instance * @type {Uint8Array} */ TestEndsWithBytes.prototype.data = $util.newBuffer([]); /** * Creates a new TestEndsWithBytes instance using the specified properties. + * @memberof jspb.test.TestEndsWithBytes + * @static * @param {jspb.test.ITestEndsWithBytes=} [properties] Properties to set * @returns {jspb.test.TestEndsWithBytes} TestEndsWithBytes instance */ @@ -5672,6 +6308,8 @@ $root.jspb = (function() { /** * Encodes the specified TestEndsWithBytes message. Does not implicitly {@link jspb.test.TestEndsWithBytes.verify|verify} messages. + * @memberof jspb.test.TestEndsWithBytes + * @static * @param {jspb.test.ITestEndsWithBytes} message TestEndsWithBytes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -5688,6 +6326,8 @@ $root.jspb = (function() { /** * Encodes the specified TestEndsWithBytes message, length delimited. Does not implicitly {@link jspb.test.TestEndsWithBytes.verify|verify} messages. + * @memberof jspb.test.TestEndsWithBytes + * @static * @param {jspb.test.ITestEndsWithBytes} message TestEndsWithBytes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -5698,6 +6338,8 @@ $root.jspb = (function() { /** * Decodes a TestEndsWithBytes message from the specified reader or buffer. + * @memberof jspb.test.TestEndsWithBytes + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.TestEndsWithBytes} TestEndsWithBytes @@ -5727,6 +6369,8 @@ $root.jspb = (function() { /** * Decodes a TestEndsWithBytes message from the specified reader or buffer, length delimited. + * @memberof jspb.test.TestEndsWithBytes + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.TestEndsWithBytes} TestEndsWithBytes * @throws {Error} If the payload is not a reader or valid buffer @@ -5734,12 +6378,14 @@ $root.jspb = (function() { */ TestEndsWithBytes.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a TestEndsWithBytes message. + * @memberof jspb.test.TestEndsWithBytes + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -5757,6 +6403,8 @@ $root.jspb = (function() { /** * Creates a TestEndsWithBytes message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.TestEndsWithBytes + * @static * @param {Object.} object Plain object * @returns {jspb.test.TestEndsWithBytes} TestEndsWithBytes */ @@ -5776,6 +6424,8 @@ $root.jspb = (function() { /** * Creates a plain object from a TestEndsWithBytes message. Also converts values to other types if specified. + * @memberof jspb.test.TestEndsWithBytes + * @static * @param {jspb.test.TestEndsWithBytes} message TestEndsWithBytes * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -5797,6 +6447,8 @@ $root.jspb = (function() { /** * Converts this TestEndsWithBytes to JSON. + * @memberof jspb.test.TestEndsWithBytes + * @instance * @returns {Object.} JSON object */ TestEndsWithBytes.prototype.toJSON = function toJSON() { @@ -5853,78 +6505,104 @@ $root.jspb = (function() { /** * TestMapFieldsNoBinary mapStringString. + * @memberof jspb.test.TestMapFieldsNoBinary + * @instance * @type {Object.} */ TestMapFieldsNoBinary.prototype.mapStringString = $util.emptyObject; /** * TestMapFieldsNoBinary mapStringInt32. + * @memberof jspb.test.TestMapFieldsNoBinary + * @instance * @type {Object.} */ TestMapFieldsNoBinary.prototype.mapStringInt32 = $util.emptyObject; /** * TestMapFieldsNoBinary mapStringInt64. + * @memberof jspb.test.TestMapFieldsNoBinary + * @instance * @type {Object.} */ TestMapFieldsNoBinary.prototype.mapStringInt64 = $util.emptyObject; /** * TestMapFieldsNoBinary mapStringBool. + * @memberof jspb.test.TestMapFieldsNoBinary + * @instance * @type {Object.} */ TestMapFieldsNoBinary.prototype.mapStringBool = $util.emptyObject; /** * TestMapFieldsNoBinary mapStringDouble. + * @memberof jspb.test.TestMapFieldsNoBinary + * @instance * @type {Object.} */ TestMapFieldsNoBinary.prototype.mapStringDouble = $util.emptyObject; /** * TestMapFieldsNoBinary mapStringEnum. + * @memberof jspb.test.TestMapFieldsNoBinary + * @instance * @type {Object.} */ TestMapFieldsNoBinary.prototype.mapStringEnum = $util.emptyObject; /** * TestMapFieldsNoBinary mapStringMsg. + * @memberof jspb.test.TestMapFieldsNoBinary + * @instance * @type {Object.} */ TestMapFieldsNoBinary.prototype.mapStringMsg = $util.emptyObject; /** * TestMapFieldsNoBinary mapInt32String. + * @memberof jspb.test.TestMapFieldsNoBinary + * @instance * @type {Object.} */ TestMapFieldsNoBinary.prototype.mapInt32String = $util.emptyObject; /** * TestMapFieldsNoBinary mapInt64String. + * @memberof jspb.test.TestMapFieldsNoBinary + * @instance * @type {Object.} */ TestMapFieldsNoBinary.prototype.mapInt64String = $util.emptyObject; /** * TestMapFieldsNoBinary mapBoolString. + * @memberof jspb.test.TestMapFieldsNoBinary + * @instance * @type {Object.} */ TestMapFieldsNoBinary.prototype.mapBoolString = $util.emptyObject; /** * TestMapFieldsNoBinary testMapFields. + * @memberof jspb.test.TestMapFieldsNoBinary + * @instance * @type {(jspb.test.ITestMapFieldsNoBinary|null)} */ TestMapFieldsNoBinary.prototype.testMapFields = null; /** * TestMapFieldsNoBinary mapStringTestmapfields. + * @memberof jspb.test.TestMapFieldsNoBinary + * @instance * @type {Object.} */ TestMapFieldsNoBinary.prototype.mapStringTestmapfields = $util.emptyObject; /** * Creates a new TestMapFieldsNoBinary instance using the specified properties. + * @memberof jspb.test.TestMapFieldsNoBinary + * @static * @param {jspb.test.ITestMapFieldsNoBinary=} [properties] Properties to set * @returns {jspb.test.TestMapFieldsNoBinary} TestMapFieldsNoBinary instance */ @@ -5934,6 +6612,8 @@ $root.jspb = (function() { /** * Encodes the specified TestMapFieldsNoBinary message. Does not implicitly {@link jspb.test.TestMapFieldsNoBinary.verify|verify} messages. + * @memberof jspb.test.TestMapFieldsNoBinary + * @static * @param {jspb.test.ITestMapFieldsNoBinary} message TestMapFieldsNoBinary message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -5985,6 +6665,8 @@ $root.jspb = (function() { /** * Encodes the specified TestMapFieldsNoBinary message, length delimited. Does not implicitly {@link jspb.test.TestMapFieldsNoBinary.verify|verify} messages. + * @memberof jspb.test.TestMapFieldsNoBinary + * @static * @param {jspb.test.ITestMapFieldsNoBinary} message TestMapFieldsNoBinary message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -5995,6 +6677,8 @@ $root.jspb = (function() { /** * Decodes a TestMapFieldsNoBinary message from the specified reader or buffer. + * @memberof jspb.test.TestMapFieldsNoBinary + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.TestMapFieldsNoBinary} TestMapFieldsNoBinary @@ -6109,6 +6793,8 @@ $root.jspb = (function() { /** * Decodes a TestMapFieldsNoBinary message from the specified reader or buffer, length delimited. + * @memberof jspb.test.TestMapFieldsNoBinary + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.TestMapFieldsNoBinary} TestMapFieldsNoBinary * @throws {Error} If the payload is not a reader or valid buffer @@ -6116,12 +6802,14 @@ $root.jspb = (function() { */ TestMapFieldsNoBinary.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a TestMapFieldsNoBinary message. + * @memberof jspb.test.TestMapFieldsNoBinary + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -6226,7 +6914,7 @@ $root.jspb = (function() { } } if (message.testMapFields != null && message.hasOwnProperty("testMapFields")) { - var error = $root.jspb.test.TestMapFieldsNoBinary.verify(message.testMapFields); + error = $root.jspb.test.TestMapFieldsNoBinary.verify(message.testMapFields); if (error) return "testMapFields." + error; } @@ -6235,7 +6923,7 @@ $root.jspb = (function() { return "mapStringTestmapfields: object expected"; var key = Object.keys(message.mapStringTestmapfields); for (var i = 0; i < key.length; ++i) { - var error = $root.jspb.test.TestMapFieldsNoBinary.verify(message.mapStringTestmapfields[key[i]]); + error = $root.jspb.test.TestMapFieldsNoBinary.verify(message.mapStringTestmapfields[key[i]]); if (error) return "mapStringTestmapfields." + error; } @@ -6245,6 +6933,8 @@ $root.jspb = (function() { /** * Creates a TestMapFieldsNoBinary message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.TestMapFieldsNoBinary + * @static * @param {Object.} object Plain object * @returns {jspb.test.TestMapFieldsNoBinary} TestMapFieldsNoBinary */ @@ -6365,6 +7055,8 @@ $root.jspb = (function() { /** * Creates a plain object from a TestMapFieldsNoBinary message. Also converts values to other types if specified. + * @memberof jspb.test.TestMapFieldsNoBinary + * @static * @param {jspb.test.TestMapFieldsNoBinary} message TestMapFieldsNoBinary * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -6454,6 +7146,8 @@ $root.jspb = (function() { /** * Converts this TestMapFieldsNoBinary to JSON. + * @memberof jspb.test.TestMapFieldsNoBinary + * @instance * @returns {Object.} JSON object */ TestMapFieldsNoBinary.prototype.toJSON = function toJSON() { @@ -6465,7 +7159,7 @@ $root.jspb = (function() { /** * MapValueEnumNoBinary enum. - * @enum {number} + * @enum {string} * @property {number} MAP_VALUE_FOO_NOBINARY=0 MAP_VALUE_FOO_NOBINARY value * @property {number} MAP_VALUE_BAR_NOBINARY=1 MAP_VALUE_BAR_NOBINARY value * @property {number} MAP_VALUE_BAZ_NOBINARY=2 MAP_VALUE_BAZ_NOBINARY value @@ -6503,12 +7197,16 @@ $root.jspb = (function() { /** * MapValueMessageNoBinary foo. + * @memberof jspb.test.MapValueMessageNoBinary + * @instance * @type {number} */ MapValueMessageNoBinary.prototype.foo = 0; /** * Creates a new MapValueMessageNoBinary instance using the specified properties. + * @memberof jspb.test.MapValueMessageNoBinary + * @static * @param {jspb.test.IMapValueMessageNoBinary=} [properties] Properties to set * @returns {jspb.test.MapValueMessageNoBinary} MapValueMessageNoBinary instance */ @@ -6518,6 +7216,8 @@ $root.jspb = (function() { /** * Encodes the specified MapValueMessageNoBinary message. Does not implicitly {@link jspb.test.MapValueMessageNoBinary.verify|verify} messages. + * @memberof jspb.test.MapValueMessageNoBinary + * @static * @param {jspb.test.IMapValueMessageNoBinary} message MapValueMessageNoBinary message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -6532,6 +7232,8 @@ $root.jspb = (function() { /** * Encodes the specified MapValueMessageNoBinary message, length delimited. Does not implicitly {@link jspb.test.MapValueMessageNoBinary.verify|verify} messages. + * @memberof jspb.test.MapValueMessageNoBinary + * @static * @param {jspb.test.IMapValueMessageNoBinary} message MapValueMessageNoBinary message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -6542,6 +7244,8 @@ $root.jspb = (function() { /** * Decodes a MapValueMessageNoBinary message from the specified reader or buffer. + * @memberof jspb.test.MapValueMessageNoBinary + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.MapValueMessageNoBinary} MapValueMessageNoBinary @@ -6568,6 +7272,8 @@ $root.jspb = (function() { /** * Decodes a MapValueMessageNoBinary message from the specified reader or buffer, length delimited. + * @memberof jspb.test.MapValueMessageNoBinary + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.MapValueMessageNoBinary} MapValueMessageNoBinary * @throws {Error} If the payload is not a reader or valid buffer @@ -6575,12 +7281,14 @@ $root.jspb = (function() { */ MapValueMessageNoBinary.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a MapValueMessageNoBinary message. + * @memberof jspb.test.MapValueMessageNoBinary + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -6595,6 +7303,8 @@ $root.jspb = (function() { /** * Creates a MapValueMessageNoBinary message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.MapValueMessageNoBinary + * @static * @param {Object.} object Plain object * @returns {jspb.test.MapValueMessageNoBinary} MapValueMessageNoBinary */ @@ -6609,6 +7319,8 @@ $root.jspb = (function() { /** * Creates a plain object from a MapValueMessageNoBinary message. Also converts values to other types if specified. + * @memberof jspb.test.MapValueMessageNoBinary + * @static * @param {jspb.test.MapValueMessageNoBinary} message MapValueMessageNoBinary * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -6626,6 +7338,8 @@ $root.jspb = (function() { /** * Converts this MapValueMessageNoBinary to JSON. + * @memberof jspb.test.MapValueMessageNoBinary + * @instance * @returns {Object.} JSON object */ MapValueMessageNoBinary.prototype.toJSON = function toJSON() { @@ -6659,6 +7373,8 @@ $root.jspb = (function() { /** * Creates a new Deeply instance using the specified properties. + * @memberof jspb.test.Deeply + * @static * @param {jspb.test.IDeeply=} [properties] Properties to set * @returns {jspb.test.Deeply} Deeply instance */ @@ -6668,6 +7384,8 @@ $root.jspb = (function() { /** * Encodes the specified Deeply message. Does not implicitly {@link jspb.test.Deeply.verify|verify} messages. + * @memberof jspb.test.Deeply + * @static * @param {jspb.test.IDeeply} message Deeply message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -6680,6 +7398,8 @@ $root.jspb = (function() { /** * Encodes the specified Deeply message, length delimited. Does not implicitly {@link jspb.test.Deeply.verify|verify} messages. + * @memberof jspb.test.Deeply + * @static * @param {jspb.test.IDeeply} message Deeply message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -6690,6 +7410,8 @@ $root.jspb = (function() { /** * Decodes a Deeply message from the specified reader or buffer. + * @memberof jspb.test.Deeply + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.Deeply} Deeply @@ -6713,6 +7435,8 @@ $root.jspb = (function() { /** * Decodes a Deeply message from the specified reader or buffer, length delimited. + * @memberof jspb.test.Deeply + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.Deeply} Deeply * @throws {Error} If the payload is not a reader or valid buffer @@ -6720,12 +7444,14 @@ $root.jspb = (function() { */ Deeply.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Deeply message. + * @memberof jspb.test.Deeply + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -6737,6 +7463,8 @@ $root.jspb = (function() { /** * Creates a Deeply message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.Deeply + * @static * @param {Object.} object Plain object * @returns {jspb.test.Deeply} Deeply */ @@ -6748,6 +7476,8 @@ $root.jspb = (function() { /** * Creates a plain object from a Deeply message. Also converts values to other types if specified. + * @memberof jspb.test.Deeply + * @static * @param {jspb.test.Deeply} message Deeply * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -6758,6 +7488,8 @@ $root.jspb = (function() { /** * Converts this Deeply to JSON. + * @memberof jspb.test.Deeply + * @instance * @returns {Object.} JSON object */ Deeply.prototype.toJSON = function toJSON() { @@ -6788,6 +7520,8 @@ $root.jspb = (function() { /** * Creates a new Nested instance using the specified properties. + * @memberof jspb.test.Deeply.Nested + * @static * @param {jspb.test.Deeply.INested=} [properties] Properties to set * @returns {jspb.test.Deeply.Nested} Nested instance */ @@ -6797,6 +7531,8 @@ $root.jspb = (function() { /** * Encodes the specified Nested message. Does not implicitly {@link jspb.test.Deeply.Nested.verify|verify} messages. + * @memberof jspb.test.Deeply.Nested + * @static * @param {jspb.test.Deeply.INested} message Nested message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -6809,6 +7545,8 @@ $root.jspb = (function() { /** * Encodes the specified Nested message, length delimited. Does not implicitly {@link jspb.test.Deeply.Nested.verify|verify} messages. + * @memberof jspb.test.Deeply.Nested + * @static * @param {jspb.test.Deeply.INested} message Nested message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -6819,6 +7557,8 @@ $root.jspb = (function() { /** * Decodes a Nested message from the specified reader or buffer. + * @memberof jspb.test.Deeply.Nested + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.Deeply.Nested} Nested @@ -6842,6 +7582,8 @@ $root.jspb = (function() { /** * Decodes a Nested message from the specified reader or buffer, length delimited. + * @memberof jspb.test.Deeply.Nested + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.Deeply.Nested} Nested * @throws {Error} If the payload is not a reader or valid buffer @@ -6849,12 +7591,14 @@ $root.jspb = (function() { */ Nested.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Nested message. + * @memberof jspb.test.Deeply.Nested + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -6866,6 +7610,8 @@ $root.jspb = (function() { /** * Creates a Nested message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.Deeply.Nested + * @static * @param {Object.} object Plain object * @returns {jspb.test.Deeply.Nested} Nested */ @@ -6877,6 +7623,8 @@ $root.jspb = (function() { /** * Creates a plain object from a Nested message. Also converts values to other types if specified. + * @memberof jspb.test.Deeply.Nested + * @static * @param {jspb.test.Deeply.Nested} message Nested * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -6887,6 +7635,8 @@ $root.jspb = (function() { /** * Converts this Nested to JSON. + * @memberof jspb.test.Deeply.Nested + * @instance * @returns {Object.} JSON object */ Nested.prototype.toJSON = function toJSON() { @@ -6918,12 +7668,16 @@ $root.jspb = (function() { /** * Message count. + * @memberof jspb.test.Deeply.Nested.Message + * @instance * @type {number} */ Message.prototype.count = 0; /** * Creates a new Message instance using the specified properties. + * @memberof jspb.test.Deeply.Nested.Message + * @static * @param {jspb.test.Deeply.Nested.IMessage=} [properties] Properties to set * @returns {jspb.test.Deeply.Nested.Message} Message instance */ @@ -6933,6 +7687,8 @@ $root.jspb = (function() { /** * Encodes the specified Message message. Does not implicitly {@link jspb.test.Deeply.Nested.Message.verify|verify} messages. + * @memberof jspb.test.Deeply.Nested.Message + * @static * @param {jspb.test.Deeply.Nested.IMessage} message Message message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -6947,6 +7703,8 @@ $root.jspb = (function() { /** * Encodes the specified Message message, length delimited. Does not implicitly {@link jspb.test.Deeply.Nested.Message.verify|verify} messages. + * @memberof jspb.test.Deeply.Nested.Message + * @static * @param {jspb.test.Deeply.Nested.IMessage} message Message message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -6957,6 +7715,8 @@ $root.jspb = (function() { /** * Decodes a Message message from the specified reader or buffer. + * @memberof jspb.test.Deeply.Nested.Message + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {jspb.test.Deeply.Nested.Message} Message @@ -6983,6 +7743,8 @@ $root.jspb = (function() { /** * Decodes a Message message from the specified reader or buffer, length delimited. + * @memberof jspb.test.Deeply.Nested.Message + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {jspb.test.Deeply.Nested.Message} Message * @throws {Error} If the payload is not a reader or valid buffer @@ -6990,12 +7752,14 @@ $root.jspb = (function() { */ Message.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Message message. + * @memberof jspb.test.Deeply.Nested.Message + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -7010,6 +7774,8 @@ $root.jspb = (function() { /** * Creates a Message message from a plain object. Also converts values to their respective internal types. + * @memberof jspb.test.Deeply.Nested.Message + * @static * @param {Object.} object Plain object * @returns {jspb.test.Deeply.Nested.Message} Message */ @@ -7024,6 +7790,8 @@ $root.jspb = (function() { /** * Creates a plain object from a Message message. Also converts values to other types if specified. + * @memberof jspb.test.Deeply.Nested.Message + * @static * @param {jspb.test.Deeply.Nested.Message} message Message * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -7041,6 +7809,8 @@ $root.jspb = (function() { /** * Converts this Message to JSON. + * @memberof jspb.test.Deeply.Nested.Message + * @instance * @returns {Object.} JSON object */ Message.prototype.toJSON = function toJSON() { @@ -7106,12 +7876,16 @@ $root.google = (function() { /** * FileDescriptorSet file. + * @memberof google.protobuf.FileDescriptorSet + * @instance * @type {Array.} */ FileDescriptorSet.prototype.file = $util.emptyArray; /** * Creates a new FileDescriptorSet instance using the specified properties. + * @memberof google.protobuf.FileDescriptorSet + * @static * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance */ @@ -7121,6 +7895,8 @@ $root.google = (function() { /** * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @memberof google.protobuf.FileDescriptorSet + * @static * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -7136,6 +7912,8 @@ $root.google = (function() { /** * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @memberof google.protobuf.FileDescriptorSet + * @static * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -7146,6 +7924,8 @@ $root.google = (function() { /** * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @memberof google.protobuf.FileDescriptorSet + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet @@ -7174,6 +7954,8 @@ $root.google = (function() { /** * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.FileDescriptorSet + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet * @throws {Error} If the payload is not a reader or valid buffer @@ -7181,12 +7963,14 @@ $root.google = (function() { */ FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a FileDescriptorSet message. + * @memberof google.protobuf.FileDescriptorSet + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -7207,6 +7991,8 @@ $root.google = (function() { /** * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.FileDescriptorSet + * @static * @param {Object.} object Plain object * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet */ @@ -7229,6 +8015,8 @@ $root.google = (function() { /** * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @memberof google.protobuf.FileDescriptorSet + * @static * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -7249,6 +8037,8 @@ $root.google = (function() { /** * Converts this FileDescriptorSet to JSON. + * @memberof google.protobuf.FileDescriptorSet + * @instance * @returns {Object.} JSON object */ FileDescriptorSet.prototype.toJSON = function toJSON() { @@ -7301,78 +8091,104 @@ $root.google = (function() { /** * FileDescriptorProto name. + * @memberof google.protobuf.FileDescriptorProto + * @instance * @type {string} */ FileDescriptorProto.prototype.name = ""; /** * FileDescriptorProto package. + * @memberof google.protobuf.FileDescriptorProto + * @instance * @type {string} */ FileDescriptorProto.prototype["package"] = ""; /** * FileDescriptorProto dependency. + * @memberof google.protobuf.FileDescriptorProto + * @instance * @type {Array.} */ FileDescriptorProto.prototype.dependency = $util.emptyArray; /** * FileDescriptorProto publicDependency. + * @memberof google.protobuf.FileDescriptorProto + * @instance * @type {Array.} */ FileDescriptorProto.prototype.publicDependency = $util.emptyArray; /** * FileDescriptorProto weakDependency. + * @memberof google.protobuf.FileDescriptorProto + * @instance * @type {Array.} */ FileDescriptorProto.prototype.weakDependency = $util.emptyArray; /** * FileDescriptorProto messageType. + * @memberof google.protobuf.FileDescriptorProto + * @instance * @type {Array.} */ FileDescriptorProto.prototype.messageType = $util.emptyArray; /** * FileDescriptorProto enumType. + * @memberof google.protobuf.FileDescriptorProto + * @instance * @type {Array.} */ FileDescriptorProto.prototype.enumType = $util.emptyArray; /** * FileDescriptorProto service. + * @memberof google.protobuf.FileDescriptorProto + * @instance * @type {Array.} */ FileDescriptorProto.prototype.service = $util.emptyArray; /** * FileDescriptorProto extension. + * @memberof google.protobuf.FileDescriptorProto + * @instance * @type {Array.} */ FileDescriptorProto.prototype.extension = $util.emptyArray; /** * FileDescriptorProto options. + * @memberof google.protobuf.FileDescriptorProto + * @instance * @type {(google.protobuf.IFileOptions|null)} */ FileDescriptorProto.prototype.options = null; /** * FileDescriptorProto sourceCodeInfo. + * @memberof google.protobuf.FileDescriptorProto + * @instance * @type {(google.protobuf.ISourceCodeInfo|null)} */ FileDescriptorProto.prototype.sourceCodeInfo = null; /** * FileDescriptorProto syntax. + * @memberof google.protobuf.FileDescriptorProto + * @instance * @type {string} */ FileDescriptorProto.prototype.syntax = ""; /** * Creates a new FileDescriptorProto instance using the specified properties. + * @memberof google.protobuf.FileDescriptorProto + * @static * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance */ @@ -7382,6 +8198,8 @@ $root.google = (function() { /** * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @memberof google.protobuf.FileDescriptorProto + * @static * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -7425,6 +8243,8 @@ $root.google = (function() { /** * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @memberof google.protobuf.FileDescriptorProto + * @static * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -7435,6 +8255,8 @@ $root.google = (function() { /** * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @memberof google.protobuf.FileDescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto @@ -7518,6 +8340,8 @@ $root.google = (function() { /** * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.FileDescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer @@ -7525,12 +8349,14 @@ $root.google = (function() { */ FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a FileDescriptorProto message. + * @memberof google.protobuf.FileDescriptorProto + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -7577,7 +8403,7 @@ $root.google = (function() { if (!Array.isArray(message.enumType)) return "enumType: array expected"; for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); if (error) return "enumType." + error; } @@ -7586,7 +8412,7 @@ $root.google = (function() { if (!Array.isArray(message.service)) return "service: array expected"; for (var i = 0; i < message.service.length; ++i) { - var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); if (error) return "service." + error; } @@ -7595,18 +8421,18 @@ $root.google = (function() { if (!Array.isArray(message.extension)) return "extension: array expected"; for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); if (error) return "extension." + error; } } if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FileOptions.verify(message.options); + error = $root.google.protobuf.FileOptions.verify(message.options); if (error) return "options." + error; } if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { - var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); if (error) return "sourceCodeInfo." + error; } @@ -7618,6 +8444,8 @@ $root.google = (function() { /** * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.FileDescriptorProto + * @static * @param {Object.} object Plain object * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto */ @@ -7707,6 +8535,8 @@ $root.google = (function() { /** * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @memberof google.protobuf.FileDescriptorProto + * @static * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -7781,6 +8611,8 @@ $root.google = (function() { /** * Converts this FileDescriptorProto to JSON. + * @memberof google.protobuf.FileDescriptorProto + * @instance * @returns {Object.} JSON object */ FileDescriptorProto.prototype.toJSON = function toJSON() { @@ -7832,66 +8664,88 @@ $root.google = (function() { /** * DescriptorProto name. + * @memberof google.protobuf.DescriptorProto + * @instance * @type {string} */ DescriptorProto.prototype.name = ""; /** * DescriptorProto field. + * @memberof google.protobuf.DescriptorProto + * @instance * @type {Array.} */ DescriptorProto.prototype.field = $util.emptyArray; /** * DescriptorProto extension. + * @memberof google.protobuf.DescriptorProto + * @instance * @type {Array.} */ DescriptorProto.prototype.extension = $util.emptyArray; /** * DescriptorProto nestedType. + * @memberof google.protobuf.DescriptorProto + * @instance * @type {Array.} */ DescriptorProto.prototype.nestedType = $util.emptyArray; /** * DescriptorProto enumType. + * @memberof google.protobuf.DescriptorProto + * @instance * @type {Array.} */ DescriptorProto.prototype.enumType = $util.emptyArray; /** * DescriptorProto extensionRange. + * @memberof google.protobuf.DescriptorProto + * @instance * @type {Array.} */ DescriptorProto.prototype.extensionRange = $util.emptyArray; /** * DescriptorProto oneofDecl. + * @memberof google.protobuf.DescriptorProto + * @instance * @type {Array.} */ DescriptorProto.prototype.oneofDecl = $util.emptyArray; /** * DescriptorProto options. + * @memberof google.protobuf.DescriptorProto + * @instance * @type {(google.protobuf.IMessageOptions|null)} */ DescriptorProto.prototype.options = null; /** * DescriptorProto reservedRange. + * @memberof google.protobuf.DescriptorProto + * @instance * @type {Array.} */ DescriptorProto.prototype.reservedRange = $util.emptyArray; /** * DescriptorProto reservedName. + * @memberof google.protobuf.DescriptorProto + * @instance * @type {Array.} */ DescriptorProto.prototype.reservedName = $util.emptyArray; /** * Creates a new DescriptorProto instance using the specified properties. + * @memberof google.protobuf.DescriptorProto + * @static * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set * @returns {google.protobuf.DescriptorProto} DescriptorProto instance */ @@ -7901,6 +8755,8 @@ $root.google = (function() { /** * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @memberof google.protobuf.DescriptorProto + * @static * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -7941,6 +8797,8 @@ $root.google = (function() { /** * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @memberof google.protobuf.DescriptorProto + * @static * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -7951,6 +8809,8 @@ $root.google = (function() { /** * Decodes a DescriptorProto message from the specified reader or buffer. + * @memberof google.protobuf.DescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.DescriptorProto} DescriptorProto @@ -8020,6 +8880,8 @@ $root.google = (function() { /** * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.DescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.DescriptorProto} DescriptorProto * @throws {Error} If the payload is not a reader or valid buffer @@ -8027,12 +8889,14 @@ $root.google = (function() { */ DescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a DescriptorProto message. + * @memberof google.protobuf.DescriptorProto + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -8055,7 +8919,7 @@ $root.google = (function() { if (!Array.isArray(message.extension)) return "extension: array expected"; for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); if (error) return "extension." + error; } @@ -8064,7 +8928,7 @@ $root.google = (function() { if (!Array.isArray(message.nestedType)) return "nestedType: array expected"; for (var i = 0; i < message.nestedType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); if (error) return "nestedType." + error; } @@ -8073,7 +8937,7 @@ $root.google = (function() { if (!Array.isArray(message.enumType)) return "enumType: array expected"; for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); if (error) return "enumType." + error; } @@ -8082,7 +8946,7 @@ $root.google = (function() { if (!Array.isArray(message.extensionRange)) return "extensionRange: array expected"; for (var i = 0; i < message.extensionRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); if (error) return "extensionRange." + error; } @@ -8091,13 +8955,13 @@ $root.google = (function() { if (!Array.isArray(message.oneofDecl)) return "oneofDecl: array expected"; for (var i = 0; i < message.oneofDecl.length; ++i) { - var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); if (error) return "oneofDecl." + error; } } if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MessageOptions.verify(message.options); + error = $root.google.protobuf.MessageOptions.verify(message.options); if (error) return "options." + error; } @@ -8105,7 +8969,7 @@ $root.google = (function() { if (!Array.isArray(message.reservedRange)) return "reservedRange: array expected"; for (var i = 0; i < message.reservedRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); if (error) return "reservedRange." + error; } @@ -8122,6 +8986,8 @@ $root.google = (function() { /** * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.DescriptorProto + * @static * @param {Object.} object Plain object * @returns {google.protobuf.DescriptorProto} DescriptorProto */ @@ -8218,6 +9084,8 @@ $root.google = (function() { /** * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @memberof google.protobuf.DescriptorProto + * @static * @param {google.protobuf.DescriptorProto} message DescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -8289,6 +9157,8 @@ $root.google = (function() { /** * Converts this DescriptorProto to JSON. + * @memberof google.protobuf.DescriptorProto + * @instance * @returns {Object.} JSON object */ DescriptorProto.prototype.toJSON = function toJSON() { @@ -8321,18 +9191,24 @@ $root.google = (function() { /** * ExtensionRange start. + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance * @type {number} */ ExtensionRange.prototype.start = 0; /** * ExtensionRange end. + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance * @type {number} */ ExtensionRange.prototype.end = 0; /** * Creates a new ExtensionRange instance using the specified properties. + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance */ @@ -8342,6 +9218,8 @@ $root.google = (function() { /** * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -8358,6 +9236,8 @@ $root.google = (function() { /** * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -8368,6 +9248,8 @@ $root.google = (function() { /** * Decodes an ExtensionRange message from the specified reader or buffer. + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange @@ -8397,6 +9279,8 @@ $root.google = (function() { /** * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange * @throws {Error} If the payload is not a reader or valid buffer @@ -8404,12 +9288,14 @@ $root.google = (function() { */ ExtensionRange.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an ExtensionRange message. + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -8427,6 +9313,8 @@ $root.google = (function() { /** * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static * @param {Object.} object Plain object * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange */ @@ -8443,6 +9331,8 @@ $root.google = (function() { /** * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -8464,6 +9354,8 @@ $root.google = (function() { /** * Converts this ExtensionRange to JSON. + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance * @returns {Object.} JSON object */ ExtensionRange.prototype.toJSON = function toJSON() { @@ -8499,18 +9391,24 @@ $root.google = (function() { /** * ReservedRange start. + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance * @type {number} */ ReservedRange.prototype.start = 0; /** * ReservedRange end. + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance * @type {number} */ ReservedRange.prototype.end = 0; /** * Creates a new ReservedRange instance using the specified properties. + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance */ @@ -8520,6 +9418,8 @@ $root.google = (function() { /** * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -8536,6 +9436,8 @@ $root.google = (function() { /** * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -8546,6 +9448,8 @@ $root.google = (function() { /** * Decodes a ReservedRange message from the specified reader or buffer. + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange @@ -8575,6 +9479,8 @@ $root.google = (function() { /** * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange * @throws {Error} If the payload is not a reader or valid buffer @@ -8582,12 +9488,14 @@ $root.google = (function() { */ ReservedRange.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a ReservedRange message. + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -8605,6 +9513,8 @@ $root.google = (function() { /** * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static * @param {Object.} object Plain object * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange */ @@ -8621,6 +9531,8 @@ $root.google = (function() { /** * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -8642,6 +9554,8 @@ $root.google = (function() { /** * Converts this ReservedRange to JSON. + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance * @returns {Object.} JSON object */ ReservedRange.prototype.toJSON = function toJSON() { @@ -8688,66 +9602,88 @@ $root.google = (function() { /** * FieldDescriptorProto name. + * @memberof google.protobuf.FieldDescriptorProto + * @instance * @type {string} */ FieldDescriptorProto.prototype.name = ""; /** * FieldDescriptorProto number. + * @memberof google.protobuf.FieldDescriptorProto + * @instance * @type {number} */ FieldDescriptorProto.prototype.number = 0; /** * FieldDescriptorProto label. + * @memberof google.protobuf.FieldDescriptorProto + * @instance * @type {google.protobuf.FieldDescriptorProto.Label} */ FieldDescriptorProto.prototype.label = 1; /** * FieldDescriptorProto type. + * @memberof google.protobuf.FieldDescriptorProto + * @instance * @type {google.protobuf.FieldDescriptorProto.Type} */ FieldDescriptorProto.prototype.type = 1; /** * FieldDescriptorProto typeName. + * @memberof google.protobuf.FieldDescriptorProto + * @instance * @type {string} */ FieldDescriptorProto.prototype.typeName = ""; /** * FieldDescriptorProto extendee. + * @memberof google.protobuf.FieldDescriptorProto + * @instance * @type {string} */ FieldDescriptorProto.prototype.extendee = ""; /** * FieldDescriptorProto defaultValue. + * @memberof google.protobuf.FieldDescriptorProto + * @instance * @type {string} */ FieldDescriptorProto.prototype.defaultValue = ""; /** * FieldDescriptorProto oneofIndex. + * @memberof google.protobuf.FieldDescriptorProto + * @instance * @type {number} */ FieldDescriptorProto.prototype.oneofIndex = 0; /** * FieldDescriptorProto jsonName. + * @memberof google.protobuf.FieldDescriptorProto + * @instance * @type {string} */ FieldDescriptorProto.prototype.jsonName = ""; /** * FieldDescriptorProto options. + * @memberof google.protobuf.FieldDescriptorProto + * @instance * @type {(google.protobuf.IFieldOptions|null)} */ FieldDescriptorProto.prototype.options = null; /** * Creates a new FieldDescriptorProto instance using the specified properties. + * @memberof google.protobuf.FieldDescriptorProto + * @static * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance */ @@ -8757,6 +9693,8 @@ $root.google = (function() { /** * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @memberof google.protobuf.FieldDescriptorProto + * @static * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -8789,6 +9727,8 @@ $root.google = (function() { /** * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @memberof google.protobuf.FieldDescriptorProto + * @static * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -8799,6 +9739,8 @@ $root.google = (function() { /** * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @memberof google.protobuf.FieldDescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto @@ -8852,6 +9794,8 @@ $root.google = (function() { /** * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.FieldDescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer @@ -8859,12 +9803,14 @@ $root.google = (function() { */ FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a FieldDescriptorProto message. + * @memberof google.protobuf.FieldDescriptorProto + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -8935,6 +9881,8 @@ $root.google = (function() { /** * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.FieldDescriptorProto + * @static * @param {Object.} object Plain object * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto */ @@ -9054,6 +10002,8 @@ $root.google = (function() { /** * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @memberof google.protobuf.FieldDescriptorProto + * @static * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -9099,6 +10049,8 @@ $root.google = (function() { /** * Converts this FieldDescriptorProto to JSON. + * @memberof google.protobuf.FieldDescriptorProto + * @instance * @returns {Object.} JSON object */ FieldDescriptorProto.prototype.toJSON = function toJSON() { @@ -9107,7 +10059,7 @@ $root.google = (function() { /** * Type enum. - * @enum {number} + * @enum {string} * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value * @property {number} TYPE_INT64=3 TYPE_INT64 value @@ -9152,7 +10104,7 @@ $root.google = (function() { /** * Label enum. - * @enum {number} + * @enum {string} * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value @@ -9194,18 +10146,24 @@ $root.google = (function() { /** * OneofDescriptorProto name. + * @memberof google.protobuf.OneofDescriptorProto + * @instance * @type {string} */ OneofDescriptorProto.prototype.name = ""; /** * OneofDescriptorProto options. + * @memberof google.protobuf.OneofDescriptorProto + * @instance * @type {(google.protobuf.IOneofOptions|null)} */ OneofDescriptorProto.prototype.options = null; /** * Creates a new OneofDescriptorProto instance using the specified properties. + * @memberof google.protobuf.OneofDescriptorProto + * @static * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance */ @@ -9215,6 +10173,8 @@ $root.google = (function() { /** * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @memberof google.protobuf.OneofDescriptorProto + * @static * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -9231,6 +10191,8 @@ $root.google = (function() { /** * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @memberof google.protobuf.OneofDescriptorProto + * @static * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -9241,6 +10203,8 @@ $root.google = (function() { /** * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @memberof google.protobuf.OneofDescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto @@ -9270,6 +10234,8 @@ $root.google = (function() { /** * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.OneofDescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer @@ -9277,12 +10243,14 @@ $root.google = (function() { */ OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an OneofDescriptorProto message. + * @memberof google.protobuf.OneofDescriptorProto + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -9302,6 +10270,8 @@ $root.google = (function() { /** * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.OneofDescriptorProto + * @static * @param {Object.} object Plain object * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto */ @@ -9321,6 +10291,8 @@ $root.google = (function() { /** * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @memberof google.protobuf.OneofDescriptorProto + * @static * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -9342,6 +10314,8 @@ $root.google = (function() { /** * Converts this OneofDescriptorProto to JSON. + * @memberof google.protobuf.OneofDescriptorProto + * @instance * @returns {Object.} JSON object */ OneofDescriptorProto.prototype.toJSON = function toJSON() { @@ -9379,24 +10353,32 @@ $root.google = (function() { /** * EnumDescriptorProto name. + * @memberof google.protobuf.EnumDescriptorProto + * @instance * @type {string} */ EnumDescriptorProto.prototype.name = ""; /** * EnumDescriptorProto value. + * @memberof google.protobuf.EnumDescriptorProto + * @instance * @type {Array.} */ EnumDescriptorProto.prototype.value = $util.emptyArray; /** * EnumDescriptorProto options. + * @memberof google.protobuf.EnumDescriptorProto + * @instance * @type {(google.protobuf.IEnumOptions|null)} */ EnumDescriptorProto.prototype.options = null; /** * Creates a new EnumDescriptorProto instance using the specified properties. + * @memberof google.protobuf.EnumDescriptorProto + * @static * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance */ @@ -9406,6 +10388,8 @@ $root.google = (function() { /** * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @memberof google.protobuf.EnumDescriptorProto + * @static * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -9425,6 +10409,8 @@ $root.google = (function() { /** * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @memberof google.protobuf.EnumDescriptorProto + * @static * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -9435,6 +10421,8 @@ $root.google = (function() { /** * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @memberof google.protobuf.EnumDescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto @@ -9469,6 +10457,8 @@ $root.google = (function() { /** * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.EnumDescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer @@ -9476,12 +10466,14 @@ $root.google = (function() { */ EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an EnumDescriptorProto message. + * @memberof google.protobuf.EnumDescriptorProto + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -9501,7 +10493,7 @@ $root.google = (function() { } } if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumOptions.verify(message.options); + error = $root.google.protobuf.EnumOptions.verify(message.options); if (error) return "options." + error; } @@ -9510,6 +10502,8 @@ $root.google = (function() { /** * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.EnumDescriptorProto + * @static * @param {Object.} object Plain object * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto */ @@ -9539,6 +10533,8 @@ $root.google = (function() { /** * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @memberof google.protobuf.EnumDescriptorProto + * @static * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -9567,6 +10563,8 @@ $root.google = (function() { /** * Converts this EnumDescriptorProto to JSON. + * @memberof google.protobuf.EnumDescriptorProto + * @instance * @returns {Object.} JSON object */ EnumDescriptorProto.prototype.toJSON = function toJSON() { @@ -9603,24 +10601,32 @@ $root.google = (function() { /** * EnumValueDescriptorProto name. + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance * @type {string} */ EnumValueDescriptorProto.prototype.name = ""; /** * EnumValueDescriptorProto number. + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance * @type {number} */ EnumValueDescriptorProto.prototype.number = 0; /** * EnumValueDescriptorProto options. + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance * @type {(google.protobuf.IEnumValueOptions|null)} */ EnumValueDescriptorProto.prototype.options = null; /** * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @memberof google.protobuf.EnumValueDescriptorProto + * @static * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance */ @@ -9630,6 +10636,8 @@ $root.google = (function() { /** * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @memberof google.protobuf.EnumValueDescriptorProto + * @static * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -9648,6 +10656,8 @@ $root.google = (function() { /** * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @memberof google.protobuf.EnumValueDescriptorProto + * @static * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -9658,6 +10668,8 @@ $root.google = (function() { /** * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @memberof google.protobuf.EnumValueDescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto @@ -9690,6 +10702,8 @@ $root.google = (function() { /** * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.EnumValueDescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer @@ -9697,12 +10711,14 @@ $root.google = (function() { */ EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an EnumValueDescriptorProto message. + * @memberof google.protobuf.EnumValueDescriptorProto + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -9725,6 +10741,8 @@ $root.google = (function() { /** * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.EnumValueDescriptorProto + * @static * @param {Object.} object Plain object * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto */ @@ -9746,6 +10764,8 @@ $root.google = (function() { /** * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @memberof google.protobuf.EnumValueDescriptorProto + * @static * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -9770,6 +10790,8 @@ $root.google = (function() { /** * Converts this EnumValueDescriptorProto to JSON. + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance * @returns {Object.} JSON object */ EnumValueDescriptorProto.prototype.toJSON = function toJSON() { @@ -9807,24 +10829,32 @@ $root.google = (function() { /** * ServiceDescriptorProto name. + * @memberof google.protobuf.ServiceDescriptorProto + * @instance * @type {string} */ ServiceDescriptorProto.prototype.name = ""; /** * ServiceDescriptorProto method. + * @memberof google.protobuf.ServiceDescriptorProto + * @instance * @type {Array.} */ ServiceDescriptorProto.prototype.method = $util.emptyArray; /** * ServiceDescriptorProto options. + * @memberof google.protobuf.ServiceDescriptorProto + * @instance * @type {(google.protobuf.IServiceOptions|null)} */ ServiceDescriptorProto.prototype.options = null; /** * Creates a new ServiceDescriptorProto instance using the specified properties. + * @memberof google.protobuf.ServiceDescriptorProto + * @static * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance */ @@ -9834,6 +10864,8 @@ $root.google = (function() { /** * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @memberof google.protobuf.ServiceDescriptorProto + * @static * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -9853,6 +10885,8 @@ $root.google = (function() { /** * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @memberof google.protobuf.ServiceDescriptorProto + * @static * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -9863,6 +10897,8 @@ $root.google = (function() { /** * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @memberof google.protobuf.ServiceDescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto @@ -9897,6 +10933,8 @@ $root.google = (function() { /** * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.ServiceDescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer @@ -9904,12 +10942,14 @@ $root.google = (function() { */ ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a ServiceDescriptorProto message. + * @memberof google.protobuf.ServiceDescriptorProto + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -9929,7 +10969,7 @@ $root.google = (function() { } } if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ServiceOptions.verify(message.options); + error = $root.google.protobuf.ServiceOptions.verify(message.options); if (error) return "options." + error; } @@ -9938,6 +10978,8 @@ $root.google = (function() { /** * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.ServiceDescriptorProto + * @static * @param {Object.} object Plain object * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto */ @@ -9967,6 +11009,8 @@ $root.google = (function() { /** * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @memberof google.protobuf.ServiceDescriptorProto + * @static * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -9995,6 +11039,8 @@ $root.google = (function() { /** * Converts this ServiceDescriptorProto to JSON. + * @memberof google.protobuf.ServiceDescriptorProto + * @instance * @returns {Object.} JSON object */ ServiceDescriptorProto.prototype.toJSON = function toJSON() { @@ -10034,42 +11080,56 @@ $root.google = (function() { /** * MethodDescriptorProto name. + * @memberof google.protobuf.MethodDescriptorProto + * @instance * @type {string} */ MethodDescriptorProto.prototype.name = ""; /** * MethodDescriptorProto inputType. + * @memberof google.protobuf.MethodDescriptorProto + * @instance * @type {string} */ MethodDescriptorProto.prototype.inputType = ""; /** * MethodDescriptorProto outputType. + * @memberof google.protobuf.MethodDescriptorProto + * @instance * @type {string} */ MethodDescriptorProto.prototype.outputType = ""; /** * MethodDescriptorProto options. + * @memberof google.protobuf.MethodDescriptorProto + * @instance * @type {(google.protobuf.IMethodOptions|null)} */ MethodDescriptorProto.prototype.options = null; /** * MethodDescriptorProto clientStreaming. + * @memberof google.protobuf.MethodDescriptorProto + * @instance * @type {boolean} */ MethodDescriptorProto.prototype.clientStreaming = false; /** * MethodDescriptorProto serverStreaming. + * @memberof google.protobuf.MethodDescriptorProto + * @instance * @type {boolean} */ MethodDescriptorProto.prototype.serverStreaming = false; /** * Creates a new MethodDescriptorProto instance using the specified properties. + * @memberof google.protobuf.MethodDescriptorProto + * @static * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance */ @@ -10079,6 +11139,8 @@ $root.google = (function() { /** * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @memberof google.protobuf.MethodDescriptorProto + * @static * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -10103,6 +11165,8 @@ $root.google = (function() { /** * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @memberof google.protobuf.MethodDescriptorProto + * @static * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -10113,6 +11177,8 @@ $root.google = (function() { /** * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @memberof google.protobuf.MethodDescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto @@ -10154,6 +11220,8 @@ $root.google = (function() { /** * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.MethodDescriptorProto + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer @@ -10161,12 +11229,14 @@ $root.google = (function() { */ MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a MethodDescriptorProto message. + * @memberof google.protobuf.MethodDescriptorProto + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -10198,6 +11268,8 @@ $root.google = (function() { /** * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.MethodDescriptorProto + * @static * @param {Object.} object Plain object * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto */ @@ -10225,6 +11297,8 @@ $root.google = (function() { /** * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @memberof google.protobuf.MethodDescriptorProto + * @static * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -10258,6 +11332,8 @@ $root.google = (function() { /** * Converts this MethodDescriptorProto to JSON. + * @memberof google.protobuf.MethodDescriptorProto + * @instance * @returns {Object.} JSON object */ MethodDescriptorProto.prototype.toJSON = function toJSON() { @@ -10307,96 +11383,128 @@ $root.google = (function() { /** * FileOptions javaPackage. + * @memberof google.protobuf.FileOptions + * @instance * @type {string} */ FileOptions.prototype.javaPackage = ""; /** * FileOptions javaOuterClassname. + * @memberof google.protobuf.FileOptions + * @instance * @type {string} */ FileOptions.prototype.javaOuterClassname = ""; /** * FileOptions javaMultipleFiles. + * @memberof google.protobuf.FileOptions + * @instance * @type {boolean} */ FileOptions.prototype.javaMultipleFiles = false; /** * FileOptions javaGenerateEqualsAndHash. + * @memberof google.protobuf.FileOptions + * @instance * @type {boolean} */ FileOptions.prototype.javaGenerateEqualsAndHash = false; /** * FileOptions javaStringCheckUtf8. + * @memberof google.protobuf.FileOptions + * @instance * @type {boolean} */ FileOptions.prototype.javaStringCheckUtf8 = false; /** * FileOptions optimizeFor. + * @memberof google.protobuf.FileOptions + * @instance * @type {google.protobuf.FileOptions.OptimizeMode} */ FileOptions.prototype.optimizeFor = 1; /** * FileOptions goPackage. + * @memberof google.protobuf.FileOptions + * @instance * @type {string} */ FileOptions.prototype.goPackage = ""; /** * FileOptions ccGenericServices. + * @memberof google.protobuf.FileOptions + * @instance * @type {boolean} */ FileOptions.prototype.ccGenericServices = false; /** * FileOptions javaGenericServices. + * @memberof google.protobuf.FileOptions + * @instance * @type {boolean} */ FileOptions.prototype.javaGenericServices = false; /** * FileOptions pyGenericServices. + * @memberof google.protobuf.FileOptions + * @instance * @type {boolean} */ FileOptions.prototype.pyGenericServices = false; /** * FileOptions deprecated. + * @memberof google.protobuf.FileOptions + * @instance * @type {boolean} */ FileOptions.prototype.deprecated = false; /** * FileOptions ccEnableArenas. + * @memberof google.protobuf.FileOptions + * @instance * @type {boolean} */ FileOptions.prototype.ccEnableArenas = false; /** * FileOptions objcClassPrefix. + * @memberof google.protobuf.FileOptions + * @instance * @type {string} */ FileOptions.prototype.objcClassPrefix = ""; /** * FileOptions csharpNamespace. + * @memberof google.protobuf.FileOptions + * @instance * @type {string} */ FileOptions.prototype.csharpNamespace = ""; /** * FileOptions uninterpretedOption. + * @memberof google.protobuf.FileOptions + * @instance * @type {Array.} */ FileOptions.prototype.uninterpretedOption = $util.emptyArray; /** * Creates a new FileOptions instance using the specified properties. + * @memberof google.protobuf.FileOptions + * @static * @param {google.protobuf.IFileOptions=} [properties] Properties to set * @returns {google.protobuf.FileOptions} FileOptions instance */ @@ -10406,6 +11514,8 @@ $root.google = (function() { /** * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @memberof google.protobuf.FileOptions + * @static * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -10449,6 +11559,8 @@ $root.google = (function() { /** * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @memberof google.protobuf.FileOptions + * @static * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -10459,6 +11571,8 @@ $root.google = (function() { /** * Decodes a FileOptions message from the specified reader or buffer. + * @memberof google.protobuf.FileOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.FileOptions} FileOptions @@ -10529,6 +11643,8 @@ $root.google = (function() { /** * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.FileOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.FileOptions} FileOptions * @throws {Error} If the payload is not a reader or valid buffer @@ -10536,12 +11652,14 @@ $root.google = (function() { */ FileOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a FileOptions message. + * @memberof google.protobuf.FileOptions + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -10610,6 +11728,8 @@ $root.google = (function() { /** * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.FileOptions + * @static * @param {Object.} object Plain object * @returns {google.protobuf.FileOptions} FileOptions */ @@ -10672,6 +11792,8 @@ $root.google = (function() { /** * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @memberof google.protobuf.FileOptions + * @static * @param {google.protobuf.FileOptions} message FileOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -10736,6 +11858,8 @@ $root.google = (function() { /** * Converts this FileOptions to JSON. + * @memberof google.protobuf.FileOptions + * @instance * @returns {Object.} JSON object */ FileOptions.prototype.toJSON = function toJSON() { @@ -10744,7 +11868,7 @@ $root.google = (function() { /** * OptimizeMode enum. - * @enum {number} + * @enum {string} * @property {number} SPEED=1 SPEED value * @property {number} CODE_SIZE=2 CODE_SIZE value * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value @@ -10790,36 +11914,48 @@ $root.google = (function() { /** * MessageOptions messageSetWireFormat. + * @memberof google.protobuf.MessageOptions + * @instance * @type {boolean} */ MessageOptions.prototype.messageSetWireFormat = false; /** * MessageOptions noStandardDescriptorAccessor. + * @memberof google.protobuf.MessageOptions + * @instance * @type {boolean} */ MessageOptions.prototype.noStandardDescriptorAccessor = false; /** * MessageOptions deprecated. + * @memberof google.protobuf.MessageOptions + * @instance * @type {boolean} */ MessageOptions.prototype.deprecated = false; /** * MessageOptions mapEntry. + * @memberof google.protobuf.MessageOptions + * @instance * @type {boolean} */ MessageOptions.prototype.mapEntry = false; /** * MessageOptions uninterpretedOption. + * @memberof google.protobuf.MessageOptions + * @instance * @type {Array.} */ MessageOptions.prototype.uninterpretedOption = $util.emptyArray; /** * Creates a new MessageOptions instance using the specified properties. + * @memberof google.protobuf.MessageOptions + * @static * @param {google.protobuf.IMessageOptions=} [properties] Properties to set * @returns {google.protobuf.MessageOptions} MessageOptions instance */ @@ -10829,6 +11965,8 @@ $root.google = (function() { /** * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @memberof google.protobuf.MessageOptions + * @static * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -10852,6 +11990,8 @@ $root.google = (function() { /** * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @memberof google.protobuf.MessageOptions + * @static * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -10862,6 +12002,8 @@ $root.google = (function() { /** * Decodes a MessageOptions message from the specified reader or buffer. + * @memberof google.protobuf.MessageOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.MessageOptions} MessageOptions @@ -10902,6 +12044,8 @@ $root.google = (function() { /** * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.MessageOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.MessageOptions} MessageOptions * @throws {Error} If the payload is not a reader or valid buffer @@ -10909,12 +12053,14 @@ $root.google = (function() { */ MessageOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a MessageOptions message. + * @memberof google.protobuf.MessageOptions + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -10947,6 +12093,8 @@ $root.google = (function() { /** * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.MessageOptions + * @static * @param {Object.} object Plain object * @returns {google.protobuf.MessageOptions} MessageOptions */ @@ -10977,6 +12125,8 @@ $root.google = (function() { /** * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @memberof google.protobuf.MessageOptions + * @static * @param {google.protobuf.MessageOptions} message MessageOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -11011,6 +12161,8 @@ $root.google = (function() { /** * Converts this MessageOptions to JSON. + * @memberof google.protobuf.MessageOptions + * @instance * @returns {Object.} JSON object */ MessageOptions.prototype.toJSON = function toJSON() { @@ -11052,48 +12204,64 @@ $root.google = (function() { /** * FieldOptions ctype. + * @memberof google.protobuf.FieldOptions + * @instance * @type {google.protobuf.FieldOptions.CType} */ FieldOptions.prototype.ctype = 0; /** * FieldOptions packed. + * @memberof google.protobuf.FieldOptions + * @instance * @type {boolean} */ FieldOptions.prototype.packed = false; /** * FieldOptions jstype. + * @memberof google.protobuf.FieldOptions + * @instance * @type {google.protobuf.FieldOptions.JSType} */ FieldOptions.prototype.jstype = 0; /** * FieldOptions lazy. + * @memberof google.protobuf.FieldOptions + * @instance * @type {boolean} */ FieldOptions.prototype.lazy = false; /** * FieldOptions deprecated. + * @memberof google.protobuf.FieldOptions + * @instance * @type {boolean} */ FieldOptions.prototype.deprecated = false; /** * FieldOptions weak. + * @memberof google.protobuf.FieldOptions + * @instance * @type {boolean} */ FieldOptions.prototype.weak = false; /** * FieldOptions uninterpretedOption. + * @memberof google.protobuf.FieldOptions + * @instance * @type {Array.} */ FieldOptions.prototype.uninterpretedOption = $util.emptyArray; /** * Creates a new FieldOptions instance using the specified properties. + * @memberof google.protobuf.FieldOptions + * @static * @param {google.protobuf.IFieldOptions=} [properties] Properties to set * @returns {google.protobuf.FieldOptions} FieldOptions instance */ @@ -11103,6 +12271,8 @@ $root.google = (function() { /** * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @memberof google.protobuf.FieldOptions + * @static * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -11130,6 +12300,8 @@ $root.google = (function() { /** * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @memberof google.protobuf.FieldOptions + * @static * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -11140,6 +12312,8 @@ $root.google = (function() { /** * Decodes a FieldOptions message from the specified reader or buffer. + * @memberof google.protobuf.FieldOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.FieldOptions} FieldOptions @@ -11186,6 +12360,8 @@ $root.google = (function() { /** * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.FieldOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.FieldOptions} FieldOptions * @throws {Error} If the payload is not a reader or valid buffer @@ -11193,12 +12369,14 @@ $root.google = (function() { */ FieldOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a FieldOptions message. + * @memberof google.protobuf.FieldOptions + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -11249,6 +12427,8 @@ $root.google = (function() { /** * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.FieldOptions + * @static * @param {Object.} object Plain object * @returns {google.protobuf.FieldOptions} FieldOptions */ @@ -11307,6 +12487,8 @@ $root.google = (function() { /** * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @memberof google.protobuf.FieldOptions + * @static * @param {google.protobuf.FieldOptions} message FieldOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -11347,6 +12529,8 @@ $root.google = (function() { /** * Converts this FieldOptions to JSON. + * @memberof google.protobuf.FieldOptions + * @instance * @returns {Object.} JSON object */ FieldOptions.prototype.toJSON = function toJSON() { @@ -11355,7 +12539,7 @@ $root.google = (function() { /** * CType enum. - * @enum {number} + * @enum {string} * @property {number} STRING=0 STRING value * @property {number} CORD=1 CORD value * @property {number} STRING_PIECE=2 STRING_PIECE value @@ -11370,7 +12554,7 @@ $root.google = (function() { /** * JSType enum. - * @enum {number} + * @enum {string} * @property {number} JS_NORMAL=0 JS_NORMAL value * @property {number} JS_STRING=1 JS_STRING value * @property {number} JS_NUMBER=2 JS_NUMBER value @@ -11412,12 +12596,16 @@ $root.google = (function() { /** * OneofOptions uninterpretedOption. + * @memberof google.protobuf.OneofOptions + * @instance * @type {Array.} */ OneofOptions.prototype.uninterpretedOption = $util.emptyArray; /** * Creates a new OneofOptions instance using the specified properties. + * @memberof google.protobuf.OneofOptions + * @static * @param {google.protobuf.IOneofOptions=} [properties] Properties to set * @returns {google.protobuf.OneofOptions} OneofOptions instance */ @@ -11427,6 +12615,8 @@ $root.google = (function() { /** * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @memberof google.protobuf.OneofOptions + * @static * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -11442,6 +12632,8 @@ $root.google = (function() { /** * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @memberof google.protobuf.OneofOptions + * @static * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -11452,6 +12644,8 @@ $root.google = (function() { /** * Decodes an OneofOptions message from the specified reader or buffer. + * @memberof google.protobuf.OneofOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.OneofOptions} OneofOptions @@ -11480,6 +12674,8 @@ $root.google = (function() { /** * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.OneofOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.OneofOptions} OneofOptions * @throws {Error} If the payload is not a reader or valid buffer @@ -11487,12 +12683,14 @@ $root.google = (function() { */ OneofOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an OneofOptions message. + * @memberof google.protobuf.OneofOptions + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -11513,6 +12711,8 @@ $root.google = (function() { /** * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.OneofOptions + * @static * @param {Object.} object Plain object * @returns {google.protobuf.OneofOptions} OneofOptions */ @@ -11535,6 +12735,8 @@ $root.google = (function() { /** * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @memberof google.protobuf.OneofOptions + * @static * @param {google.protobuf.OneofOptions} message OneofOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -11555,6 +12757,8 @@ $root.google = (function() { /** * Converts this OneofOptions to JSON. + * @memberof google.protobuf.OneofOptions + * @instance * @returns {Object.} JSON object */ OneofOptions.prototype.toJSON = function toJSON() { @@ -11593,30 +12797,40 @@ $root.google = (function() { /** * EnumOptions allowAlias. + * @memberof google.protobuf.EnumOptions + * @instance * @type {boolean} */ EnumOptions.prototype.allowAlias = false; /** * EnumOptions deprecated. + * @memberof google.protobuf.EnumOptions + * @instance * @type {boolean} */ EnumOptions.prototype.deprecated = false; /** * EnumOptions uninterpretedOption. + * @memberof google.protobuf.EnumOptions + * @instance * @type {Array.} */ EnumOptions.prototype.uninterpretedOption = $util.emptyArray; /** * EnumOptions .jspb.test.IsExtension.simpleOption. + * @memberof google.protobuf.EnumOptions + * @instance * @type {string} */ EnumOptions.prototype[".jspb.test.IsExtension.simpleOption"] = ""; /** * Creates a new EnumOptions instance using the specified properties. + * @memberof google.protobuf.EnumOptions + * @static * @param {google.protobuf.IEnumOptions=} [properties] Properties to set * @returns {google.protobuf.EnumOptions} EnumOptions instance */ @@ -11626,6 +12840,8 @@ $root.google = (function() { /** * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @memberof google.protobuf.EnumOptions + * @static * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -11647,6 +12863,8 @@ $root.google = (function() { /** * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @memberof google.protobuf.EnumOptions + * @static * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -11657,6 +12875,8 @@ $root.google = (function() { /** * Decodes an EnumOptions message from the specified reader or buffer. + * @memberof google.protobuf.EnumOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.EnumOptions} EnumOptions @@ -11694,6 +12914,8 @@ $root.google = (function() { /** * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.EnumOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.EnumOptions} EnumOptions * @throws {Error} If the payload is not a reader or valid buffer @@ -11701,12 +12923,14 @@ $root.google = (function() { */ EnumOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an EnumOptions message. + * @memberof google.protobuf.EnumOptions + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -11736,6 +12960,8 @@ $root.google = (function() { /** * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.EnumOptions + * @static * @param {Object.} object Plain object * @returns {google.protobuf.EnumOptions} EnumOptions */ @@ -11764,6 +12990,8 @@ $root.google = (function() { /** * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @memberof google.protobuf.EnumOptions + * @static * @param {google.protobuf.EnumOptions} message EnumOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -11795,6 +13023,8 @@ $root.google = (function() { /** * Converts this EnumOptions to JSON. + * @memberof google.protobuf.EnumOptions + * @instance * @returns {Object.} JSON object */ EnumOptions.prototype.toJSON = function toJSON() { @@ -11831,18 +13061,24 @@ $root.google = (function() { /** * EnumValueOptions deprecated. + * @memberof google.protobuf.EnumValueOptions + * @instance * @type {boolean} */ EnumValueOptions.prototype.deprecated = false; /** * EnumValueOptions uninterpretedOption. + * @memberof google.protobuf.EnumValueOptions + * @instance * @type {Array.} */ EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; /** * Creates a new EnumValueOptions instance using the specified properties. + * @memberof google.protobuf.EnumValueOptions + * @static * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance */ @@ -11852,6 +13088,8 @@ $root.google = (function() { /** * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @memberof google.protobuf.EnumValueOptions + * @static * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -11869,6 +13107,8 @@ $root.google = (function() { /** * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @memberof google.protobuf.EnumValueOptions + * @static * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -11879,6 +13119,8 @@ $root.google = (function() { /** * Decodes an EnumValueOptions message from the specified reader or buffer. + * @memberof google.protobuf.EnumValueOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.EnumValueOptions} EnumValueOptions @@ -11910,6 +13152,8 @@ $root.google = (function() { /** * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.EnumValueOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.EnumValueOptions} EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer @@ -11917,12 +13161,14 @@ $root.google = (function() { */ EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an EnumValueOptions message. + * @memberof google.protobuf.EnumValueOptions + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -11946,6 +13192,8 @@ $root.google = (function() { /** * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.EnumValueOptions + * @static * @param {Object.} object Plain object * @returns {google.protobuf.EnumValueOptions} EnumValueOptions */ @@ -11970,6 +13218,8 @@ $root.google = (function() { /** * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @memberof google.protobuf.EnumValueOptions + * @static * @param {google.protobuf.EnumValueOptions} message EnumValueOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -11994,6 +13244,8 @@ $root.google = (function() { /** * Converts this EnumValueOptions to JSON. + * @memberof google.protobuf.EnumValueOptions + * @instance * @returns {Object.} JSON object */ EnumValueOptions.prototype.toJSON = function toJSON() { @@ -12030,18 +13282,24 @@ $root.google = (function() { /** * ServiceOptions deprecated. + * @memberof google.protobuf.ServiceOptions + * @instance * @type {boolean} */ ServiceOptions.prototype.deprecated = false; /** * ServiceOptions uninterpretedOption. + * @memberof google.protobuf.ServiceOptions + * @instance * @type {Array.} */ ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; /** * Creates a new ServiceOptions instance using the specified properties. + * @memberof google.protobuf.ServiceOptions + * @static * @param {google.protobuf.IServiceOptions=} [properties] Properties to set * @returns {google.protobuf.ServiceOptions} ServiceOptions instance */ @@ -12051,6 +13309,8 @@ $root.google = (function() { /** * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @memberof google.protobuf.ServiceOptions + * @static * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -12068,6 +13328,8 @@ $root.google = (function() { /** * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @memberof google.protobuf.ServiceOptions + * @static * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -12078,6 +13340,8 @@ $root.google = (function() { /** * Decodes a ServiceOptions message from the specified reader or buffer. + * @memberof google.protobuf.ServiceOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.ServiceOptions} ServiceOptions @@ -12109,6 +13373,8 @@ $root.google = (function() { /** * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.ServiceOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.ServiceOptions} ServiceOptions * @throws {Error} If the payload is not a reader or valid buffer @@ -12116,12 +13382,14 @@ $root.google = (function() { */ ServiceOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a ServiceOptions message. + * @memberof google.protobuf.ServiceOptions + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -12145,6 +13413,8 @@ $root.google = (function() { /** * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.ServiceOptions + * @static * @param {Object.} object Plain object * @returns {google.protobuf.ServiceOptions} ServiceOptions */ @@ -12169,6 +13439,8 @@ $root.google = (function() { /** * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @memberof google.protobuf.ServiceOptions + * @static * @param {google.protobuf.ServiceOptions} message ServiceOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -12193,6 +13465,8 @@ $root.google = (function() { /** * Converts this ServiceOptions to JSON. + * @memberof google.protobuf.ServiceOptions + * @instance * @returns {Object.} JSON object */ ServiceOptions.prototype.toJSON = function toJSON() { @@ -12230,24 +13504,32 @@ $root.google = (function() { /** * MethodOptions deprecated. + * @memberof google.protobuf.MethodOptions + * @instance * @type {boolean} */ MethodOptions.prototype.deprecated = false; /** * MethodOptions idempotencyLevel. + * @memberof google.protobuf.MethodOptions + * @instance * @type {google.protobuf.MethodOptions.IdempotencyLevel} */ MethodOptions.prototype.idempotencyLevel = 0; /** * MethodOptions uninterpretedOption. + * @memberof google.protobuf.MethodOptions + * @instance * @type {Array.} */ MethodOptions.prototype.uninterpretedOption = $util.emptyArray; /** * Creates a new MethodOptions instance using the specified properties. + * @memberof google.protobuf.MethodOptions + * @static * @param {google.protobuf.IMethodOptions=} [properties] Properties to set * @returns {google.protobuf.MethodOptions} MethodOptions instance */ @@ -12257,6 +13539,8 @@ $root.google = (function() { /** * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @memberof google.protobuf.MethodOptions + * @static * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -12276,6 +13560,8 @@ $root.google = (function() { /** * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @memberof google.protobuf.MethodOptions + * @static * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -12286,6 +13572,8 @@ $root.google = (function() { /** * Decodes a MethodOptions message from the specified reader or buffer. + * @memberof google.protobuf.MethodOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.MethodOptions} MethodOptions @@ -12320,6 +13608,8 @@ $root.google = (function() { /** * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.MethodOptions + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.MethodOptions} MethodOptions * @throws {Error} If the payload is not a reader or valid buffer @@ -12327,12 +13617,14 @@ $root.google = (function() { */ MethodOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a MethodOptions message. + * @memberof google.protobuf.MethodOptions + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -12365,6 +13657,8 @@ $root.google = (function() { /** * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.MethodOptions + * @static * @param {Object.} object Plain object * @returns {google.protobuf.MethodOptions} MethodOptions */ @@ -12403,6 +13697,8 @@ $root.google = (function() { /** * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @memberof google.protobuf.MethodOptions + * @static * @param {google.protobuf.MethodOptions} message MethodOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -12431,6 +13727,8 @@ $root.google = (function() { /** * Converts this MethodOptions to JSON. + * @memberof google.protobuf.MethodOptions + * @instance * @returns {Object.} JSON object */ MethodOptions.prototype.toJSON = function toJSON() { @@ -12439,7 +13737,7 @@ $root.google = (function() { /** * IdempotencyLevel enum. - * @enum {number} + * @enum {string} * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value * @property {number} IDEMPOTENT=2 IDEMPOTENT value @@ -12487,48 +13785,64 @@ $root.google = (function() { /** * UninterpretedOption name. + * @memberof google.protobuf.UninterpretedOption + * @instance * @type {Array.} */ UninterpretedOption.prototype.name = $util.emptyArray; /** * UninterpretedOption identifierValue. + * @memberof google.protobuf.UninterpretedOption + * @instance * @type {string} */ UninterpretedOption.prototype.identifierValue = ""; /** * UninterpretedOption positiveIntValue. + * @memberof google.protobuf.UninterpretedOption + * @instance * @type {number|Long} */ UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** * UninterpretedOption negativeIntValue. + * @memberof google.protobuf.UninterpretedOption + * @instance * @type {number|Long} */ UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** * UninterpretedOption doubleValue. + * @memberof google.protobuf.UninterpretedOption + * @instance * @type {number} */ UninterpretedOption.prototype.doubleValue = 0; /** * UninterpretedOption stringValue. + * @memberof google.protobuf.UninterpretedOption + * @instance * @type {Uint8Array} */ UninterpretedOption.prototype.stringValue = $util.newBuffer([]); /** * UninterpretedOption aggregateValue. + * @memberof google.protobuf.UninterpretedOption + * @instance * @type {string} */ UninterpretedOption.prototype.aggregateValue = ""; /** * Creates a new UninterpretedOption instance using the specified properties. + * @memberof google.protobuf.UninterpretedOption + * @static * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance */ @@ -12538,6 +13852,8 @@ $root.google = (function() { /** * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @memberof google.protobuf.UninterpretedOption + * @static * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -12565,6 +13881,8 @@ $root.google = (function() { /** * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @memberof google.protobuf.UninterpretedOption + * @static * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -12575,6 +13893,8 @@ $root.google = (function() { /** * Decodes an UninterpretedOption message from the specified reader or buffer. + * @memberof google.protobuf.UninterpretedOption + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.UninterpretedOption} UninterpretedOption @@ -12621,6 +13941,8 @@ $root.google = (function() { /** * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.UninterpretedOption + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.UninterpretedOption} UninterpretedOption * @throws {Error} If the payload is not a reader or valid buffer @@ -12628,12 +13950,14 @@ $root.google = (function() { */ UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an UninterpretedOption message. + * @memberof google.protobuf.UninterpretedOption + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -12672,6 +13996,8 @@ $root.google = (function() { /** * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.UninterpretedOption + * @static * @param {Object.} object Plain object * @returns {google.protobuf.UninterpretedOption} UninterpretedOption */ @@ -12723,6 +14049,8 @@ $root.google = (function() { /** * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @memberof google.protobuf.UninterpretedOption + * @static * @param {google.protobuf.UninterpretedOption} message UninterpretedOption * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -12777,6 +14105,8 @@ $root.google = (function() { /** * Converts this UninterpretedOption to JSON. + * @memberof google.protobuf.UninterpretedOption + * @instance * @returns {Object.} JSON object */ UninterpretedOption.prototype.toJSON = function toJSON() { @@ -12809,18 +14139,24 @@ $root.google = (function() { /** * NamePart namePart. + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance * @type {string} */ NamePart.prototype.namePart = ""; /** * NamePart isExtension. + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance * @type {boolean} */ NamePart.prototype.isExtension = false; /** * Creates a new NamePart instance using the specified properties. + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance */ @@ -12830,6 +14166,8 @@ $root.google = (function() { /** * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -12844,6 +14182,8 @@ $root.google = (function() { /** * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -12854,6 +14194,8 @@ $root.google = (function() { /** * Decodes a NamePart message from the specified reader or buffer. + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart @@ -12887,6 +14229,8 @@ $root.google = (function() { /** * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart * @throws {Error} If the payload is not a reader or valid buffer @@ -12894,12 +14238,14 @@ $root.google = (function() { */ NamePart.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a NamePart message. + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -12915,6 +14261,8 @@ $root.google = (function() { /** * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static * @param {Object.} object Plain object * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart */ @@ -12931,6 +14279,8 @@ $root.google = (function() { /** * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -12952,6 +14302,8 @@ $root.google = (function() { /** * Converts this NamePart to JSON. + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance * @returns {Object.} JSON object */ NamePart.prototype.toJSON = function toJSON() { @@ -12990,12 +14342,16 @@ $root.google = (function() { /** * SourceCodeInfo location. + * @memberof google.protobuf.SourceCodeInfo + * @instance * @type {Array.} */ SourceCodeInfo.prototype.location = $util.emptyArray; /** * Creates a new SourceCodeInfo instance using the specified properties. + * @memberof google.protobuf.SourceCodeInfo + * @static * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance */ @@ -13005,6 +14361,8 @@ $root.google = (function() { /** * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @memberof google.protobuf.SourceCodeInfo + * @static * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -13020,6 +14378,8 @@ $root.google = (function() { /** * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @memberof google.protobuf.SourceCodeInfo + * @static * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -13030,6 +14390,8 @@ $root.google = (function() { /** * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @memberof google.protobuf.SourceCodeInfo + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo @@ -13058,6 +14420,8 @@ $root.google = (function() { /** * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.SourceCodeInfo + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo * @throws {Error} If the payload is not a reader or valid buffer @@ -13065,12 +14429,14 @@ $root.google = (function() { */ SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a SourceCodeInfo message. + * @memberof google.protobuf.SourceCodeInfo + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -13091,6 +14457,8 @@ $root.google = (function() { /** * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.SourceCodeInfo + * @static * @param {Object.} object Plain object * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo */ @@ -13113,6 +14481,8 @@ $root.google = (function() { /** * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @memberof google.protobuf.SourceCodeInfo + * @static * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -13133,6 +14503,8 @@ $root.google = (function() { /** * Converts this SourceCodeInfo to JSON. + * @memberof google.protobuf.SourceCodeInfo + * @instance * @returns {Object.} JSON object */ SourceCodeInfo.prototype.toJSON = function toJSON() { @@ -13171,36 +14543,48 @@ $root.google = (function() { /** * Location path. + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance * @type {Array.} */ Location.prototype.path = $util.emptyArray; /** * Location span. + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance * @type {Array.} */ Location.prototype.span = $util.emptyArray; /** * Location leadingComments. + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance * @type {string} */ Location.prototype.leadingComments = ""; /** * Location trailingComments. + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance * @type {string} */ Location.prototype.trailingComments = ""; /** * Location leadingDetachedComments. + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance * @type {Array.} */ Location.prototype.leadingDetachedComments = $util.emptyArray; /** * Creates a new Location instance using the specified properties. + * @memberof google.protobuf.SourceCodeInfo.Location + * @static * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set * @returns {google.protobuf.SourceCodeInfo.Location} Location instance */ @@ -13210,6 +14594,8 @@ $root.google = (function() { /** * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @memberof google.protobuf.SourceCodeInfo.Location + * @static * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -13241,6 +14627,8 @@ $root.google = (function() { /** * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @memberof google.protobuf.SourceCodeInfo.Location + * @static * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -13251,6 +14639,8 @@ $root.google = (function() { /** * Decodes a Location message from the specified reader or buffer. + * @memberof google.protobuf.SourceCodeInfo.Location + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.SourceCodeInfo.Location} Location @@ -13305,6 +14695,8 @@ $root.google = (function() { /** * Decodes a Location message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.SourceCodeInfo.Location + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.SourceCodeInfo.Location} Location * @throws {Error} If the payload is not a reader or valid buffer @@ -13312,12 +14704,14 @@ $root.google = (function() { */ Location.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a Location message. + * @memberof google.protobuf.SourceCodeInfo.Location + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -13356,6 +14750,8 @@ $root.google = (function() { /** * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.SourceCodeInfo.Location + * @static * @param {Object.} object Plain object * @returns {google.protobuf.SourceCodeInfo.Location} Location */ @@ -13393,6 +14789,8 @@ $root.google = (function() { /** * Creates a plain object from a Location message. Also converts values to other types if specified. + * @memberof google.protobuf.SourceCodeInfo.Location + * @static * @param {google.protobuf.SourceCodeInfo.Location} message Location * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -13434,6 +14832,8 @@ $root.google = (function() { /** * Converts this Location to JSON. + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance * @returns {Object.} JSON object */ Location.prototype.toJSON = function toJSON() { @@ -13472,12 +14872,16 @@ $root.google = (function() { /** * GeneratedCodeInfo annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @instance * @type {Array.} */ GeneratedCodeInfo.prototype.annotation = $util.emptyArray; /** * Creates a new GeneratedCodeInfo instance using the specified properties. + * @memberof google.protobuf.GeneratedCodeInfo + * @static * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance */ @@ -13487,6 +14891,8 @@ $root.google = (function() { /** * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @memberof google.protobuf.GeneratedCodeInfo + * @static * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -13502,6 +14908,8 @@ $root.google = (function() { /** * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @memberof google.protobuf.GeneratedCodeInfo + * @static * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -13512,6 +14920,8 @@ $root.google = (function() { /** * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @memberof google.protobuf.GeneratedCodeInfo + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo @@ -13540,6 +14950,8 @@ $root.google = (function() { /** * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.GeneratedCodeInfo + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo * @throws {Error} If the payload is not a reader or valid buffer @@ -13547,12 +14959,14 @@ $root.google = (function() { */ GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a GeneratedCodeInfo message. + * @memberof google.protobuf.GeneratedCodeInfo + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -13573,6 +14987,8 @@ $root.google = (function() { /** * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.GeneratedCodeInfo + * @static * @param {Object.} object Plain object * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo */ @@ -13595,6 +15011,8 @@ $root.google = (function() { /** * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @memberof google.protobuf.GeneratedCodeInfo + * @static * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -13615,6 +15033,8 @@ $root.google = (function() { /** * Converts this GeneratedCodeInfo to JSON. + * @memberof google.protobuf.GeneratedCodeInfo + * @instance * @returns {Object.} JSON object */ GeneratedCodeInfo.prototype.toJSON = function toJSON() { @@ -13650,30 +15070,40 @@ $root.google = (function() { /** * Annotation path. + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance * @type {Array.} */ Annotation.prototype.path = $util.emptyArray; /** * Annotation sourceFile. + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance * @type {string} */ Annotation.prototype.sourceFile = ""; /** * Annotation begin. + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance * @type {number} */ Annotation.prototype.begin = 0; /** * Annotation end. + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance * @type {number} */ Annotation.prototype.end = 0; /** * Creates a new Annotation instance using the specified properties. + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance */ @@ -13683,6 +15113,8 @@ $root.google = (function() { /** * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -13707,6 +15139,8 @@ $root.google = (function() { /** * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer @@ -13717,6 +15151,8 @@ $root.google = (function() { /** * Decodes an Annotation message from the specified reader or buffer. + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation @@ -13759,6 +15195,8 @@ $root.google = (function() { /** * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation * @throws {Error} If the payload is not a reader or valid buffer @@ -13766,12 +15204,14 @@ $root.google = (function() { */ Annotation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) - reader = $Reader(reader); + reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies an Annotation message. + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ @@ -13799,6 +15239,8 @@ $root.google = (function() { /** * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static * @param {Object.} object Plain object * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation */ @@ -13824,6 +15266,8 @@ $root.google = (function() { /** * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object @@ -13855,6 +15299,8 @@ $root.google = (function() { /** * Converts this Annotation to JSON. + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance * @returns {Object.} JSON object */ Annotation.prototype.toJSON = function toJSON() {