From 8de21e1a947ddb50a167147dd63ad29d37b6a891 Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Mon, 27 Mar 2017 00:45:58 +0200 Subject: [PATCH] CLI: $Properties are just a type that's satisfied, not implemented, by classes, see #723 --- cli/targets/static.js | 4 +- index.d.ts | 10 +- lib/tsd-jsdoc/publish.js | 21 +- tests/data/comments.js | 9 +- tests/data/convert.js | 14 +- tests/data/mapbox/vector_tile.js | 30 ++- tests/data/package.js | 26 ++- tests/data/rpc.d.ts | 4 +- tests/data/rpc.js | 8 +- tests/data/test.d.ts | 114 ++++----- tests/data/test.js | 381 +++++++++++++++++++++---------- 11 files changed, 413 insertions(+), 208 deletions(-) diff --git a/cli/targets/static.js b/cli/targets/static.js index 87e0cbb0e..7a3dea453 100644 --- a/cli/targets/static.js +++ b/cli/targets/static.js @@ -299,7 +299,7 @@ function buildType(ref, type) { var typeDef = [ "Properties of " + aOrAn(type.name) + ".", "@typedef " + fullName + "$Properties", - "@type Object" + "@type {Object}" ]; type.fieldsArray.forEach(function(field) { var jsType = toJsType(field), @@ -317,7 +317,6 @@ function buildType(ref, type) { "Constructs a new " + type.name + ".", type.comment ? "@classdesc " + type.comment : null, "@exports " + fullName, - "@implements " + fullName + "$Properties", "@constructor", "@param {" + fullName + "$Properties=} [" + (config.beautify ? "properties" : "p") + "] Properties to set" ]); @@ -331,6 +330,7 @@ function buildType(ref, type) { if (config.comments) { push(""); pushComment([ + field.comment || type.name + " " + field.name + ".", "@type {" + toJsType(field) + (field.optional ? "|undefined" : "") + "}" ]); } else if (firstField) { diff --git a/index.d.ts b/index.d.ts index 49264665a..346ceae6a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -848,7 +848,7 @@ export class Method extends ReflectionObject { /** * Converts this method to a method descriptor. - * @returns {MethodDescriptor} + * @returns {MethodDescriptor} Method descriptor */ public toJSON(): MethodDescriptor; } @@ -2384,6 +2384,14 @@ export namespace util { */ function isObject(value: any): boolean; + /** + * Checks if a property on a message is considered to be present. + * @param {Object} obj Plain object or message instance + * @param {string} prop Property name + * @returns {boolean} `true` if considered to be present, otherwise `false` + */ + function isset(obj: Object, prop: string): boolean; + /** * Node's Buffer class if available. * @type {?function(new: Buffer)} diff --git a/lib/tsd-jsdoc/publish.js b/lib/tsd-jsdoc/publish.js index c7c156951..4f0fc3cec 100644 --- a/lib/tsd-jsdoc/publish.js +++ b/lib/tsd-jsdoc/publish.js @@ -304,16 +304,19 @@ function writeInterface(element) { function writeInterfaceBody(element) { writeln("{"); ++indent; - element.properties.forEach(function(property) { - write(property.name); - if (property.optional) - write("?"); - writeln(": ", getTypeOf(property), ";"); - }); + element.properties.forEach(writeProperty); --indent; write("}"); } +function writeProperty(property) { + writeComment(property.comment); + write(property.name); + if (property.optional) + write("?"); + writeln(": ", getTypeOf(property), ";"); +} + // // Handlers // @@ -418,9 +421,13 @@ function handleClass(element, parent) { ++indent; // constructor - if (!is_interface && !element.virtual) + if (!is_interface && !element.virtual) handleFunction(element, parent, true); + // properties + if (is_interface && element.properties) + element.properties.forEach(writeProperty); + // class-compatible members var incompatible = []; getChildrenOf(element).forEach(function(child) { diff --git a/tests/data/comments.js b/tests/data/comments.js index 32c2b4aaf..019a61055 100644 --- a/tests/data/comments.js +++ b/tests/data/comments.js @@ -14,7 +14,7 @@ $root.Test1 = (function() { /** * Properties of a Test1. * @typedef Test1$Properties - * @type Object + * @type {Object} * @property {string} [field1] Field with a comment. * @property {number} [field2] Test1 field2. * @property {boolean} [field3] Field with a comment and a link @@ -27,7 +27,6 @@ $root.Test1 = (function() { * a * comment. * @exports Test1 - * @implements Test1$Properties * @constructor * @param {Test1$Properties=} [properties] Properties to set */ @@ -38,16 +37,19 @@ $root.Test1 = (function() { } /** + * Field with a comment. * @type {string|undefined} */ Test1.prototype.field1 = ""; /** + * Test1 field2. * @type {number|undefined} */ Test1.prototype.field2 = 0; /** + * Field with a comment and a link * @type {boolean|undefined} */ Test1.prototype.field3 = false; @@ -230,13 +232,12 @@ $root.Test2 = (function() { /** * Properties of a Test2. * @typedef Test2$Properties - * @type Object + * @type {Object} */ /** * Constructs a new Test2. * @exports Test2 - * @implements Test2$Properties * @constructor * @param {Test2$Properties=} [properties] Properties to set */ diff --git a/tests/data/convert.js b/tests/data/convert.js index 0ec3c658e..f45274ff0 100644 --- a/tests/data/convert.js +++ b/tests/data/convert.js @@ -14,7 +14,7 @@ $root.Message = (function() { /** * Properties of a Message. * @typedef Message$Properties - * @type Object + * @type {Object} * @property {string} [stringVal] Message stringVal. * @property {Array.} [stringRepeated] Message stringRepeated. * @property {number|Long} [uint64Val] Message uint64Val. @@ -29,7 +29,6 @@ $root.Message = (function() { /** * Constructs a new Message. * @exports Message - * @implements Message$Properties * @constructor * @param {Message$Properties=} [properties] Properties to set */ @@ -45,46 +44,55 @@ $root.Message = (function() { } /** + * Message stringVal. * @type {string|undefined} */ Message.prototype.stringVal = ""; /** + * Message stringRepeated. * @type {Array.|undefined} */ Message.prototype.stringRepeated = $util.emptyArray; /** + * Message uint64Val. * @type {number|Long|undefined} */ Message.prototype.uint64Val = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** + * Message uint64Repeated. * @type {Array.|undefined} */ Message.prototype.uint64Repeated = $util.emptyArray; /** + * Message bytesVal. * @type {Uint8Array|undefined} */ Message.prototype.bytesVal = $util.newBuffer([]); /** + * Message bytesRepeated. * @type {Array.|undefined} */ Message.prototype.bytesRepeated = $util.emptyArray; /** + * Message enumVal. * @type {Message.SomeEnum|undefined} */ Message.prototype.enumVal = 1; /** + * Message enumRepeated. * @type {Array.|undefined} */ Message.prototype.enumRepeated = $util.emptyArray; /** + * Message int64Map. * @type {Object.|undefined} */ Message.prototype.int64Map = $util.emptyObject; @@ -212,7 +220,7 @@ $root.Message = (function() { message.int64Map = {}; key = reader.string(); reader.pos++; - message.int64Map[typeof key === "object" ? $util.longToHash(key) : key] = reader.int64(); + message.int64Map[key] = reader.int64(); break; default: reader.skipType(tag & 7); diff --git a/tests/data/mapbox/vector_tile.js b/tests/data/mapbox/vector_tile.js index dfc5d2b8b..3af769901 100644 --- a/tests/data/mapbox/vector_tile.js +++ b/tests/data/mapbox/vector_tile.js @@ -23,14 +23,13 @@ $root.vector_tile = (function() { /** * Properties of a Tile. * @typedef vector_tile.Tile$Properties - * @type Object + * @type {Object} * @property {Array.} [layers] Tile layers. */ /** * Constructs a new Tile. * @exports vector_tile.Tile - * @implements vector_tile.Tile$Properties * @constructor * @param {vector_tile.Tile$Properties=} [properties] Properties to set */ @@ -42,6 +41,7 @@ $root.vector_tile = (function() { } /** + * Tile layers. * @type {Array.|undefined} */ Tile.prototype.layers = $util.emptyArray; @@ -233,7 +233,7 @@ $root.vector_tile = (function() { /** * Properties of a Value. * @typedef vector_tile.Tile.Value$Properties - * @type Object + * @type {Object} * @property {string} [stringValue] Value stringValue. * @property {number} [floatValue] Value floatValue. * @property {number} [doubleValue] Value doubleValue. @@ -246,7 +246,6 @@ $root.vector_tile = (function() { /** * Constructs a new Value. * @exports vector_tile.Tile.Value - * @implements vector_tile.Tile.Value$Properties * @constructor * @param {vector_tile.Tile.Value$Properties=} [properties] Properties to set */ @@ -257,36 +256,43 @@ $root.vector_tile = (function() { } /** + * Value stringValue. * @type {string|undefined} */ Value.prototype.stringValue = ""; /** + * Value floatValue. * @type {number|undefined} */ Value.prototype.floatValue = 0; /** + * Value doubleValue. * @type {number|undefined} */ Value.prototype.doubleValue = 0; /** + * Value intValue. * @type {number|Long|undefined} */ Value.prototype.intValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** + * Value uintValue. * @type {number|Long|undefined} */ Value.prototype.uintValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** + * Value sintValue. * @type {number|Long|undefined} */ Value.prototype.sintValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** + * Value boolValue. * @type {boolean|undefined} */ Value.prototype.boolValue = false; @@ -563,7 +569,7 @@ $root.vector_tile = (function() { /** * Properties of a Feature. * @typedef vector_tile.Tile.Feature$Properties - * @type Object + * @type {Object} * @property {number|Long} [id] Feature id. * @property {Array.} [tags] Feature tags. * @property {*} [type] Feature type. @@ -573,7 +579,6 @@ $root.vector_tile = (function() { /** * Constructs a new Feature. * @exports vector_tile.Tile.Feature - * @implements vector_tile.Tile.Feature$Properties * @constructor * @param {vector_tile.Tile.Feature$Properties=} [properties] Properties to set */ @@ -586,21 +591,25 @@ $root.vector_tile = (function() { } /** + * Feature id. * @type {number|Long|undefined} */ Feature.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** + * Feature tags. * @type {Array.|undefined} */ Feature.prototype.tags = $util.emptyArray; /** + * Feature type. * @type {vector_tile.Tile.GeomType|undefined} */ Feature.prototype.type = 0; /** + * Feature geometry. * @type {Array.|undefined} */ Feature.prototype.geometry = $util.emptyArray; @@ -881,7 +890,7 @@ $root.vector_tile = (function() { /** * Properties of a Layer. * @typedef vector_tile.Tile.Layer$Properties - * @type Object + * @type {Object} * @property {number} version Layer version. * @property {string} name Layer name. * @property {Array.<*>} [features] Layer features. @@ -893,7 +902,6 @@ $root.vector_tile = (function() { /** * Constructs a new Layer. * @exports vector_tile.Tile.Layer - * @implements vector_tile.Tile.Layer$Properties * @constructor * @param {vector_tile.Tile.Layer$Properties=} [properties] Properties to set */ @@ -907,31 +915,37 @@ $root.vector_tile = (function() { } /** + * Layer version. * @type {number} */ Layer.prototype.version = 1; /** + * Layer name. * @type {string} */ Layer.prototype.name = ""; /** + * Layer features. * @type {Array.|undefined} */ Layer.prototype.features = $util.emptyArray; /** + * Layer keys. * @type {Array.|undefined} */ Layer.prototype.keys = $util.emptyArray; /** + * Layer values. * @type {Array.|undefined} */ Layer.prototype.values = $util.emptyArray; /** + * Layer extent. * @type {number|undefined} */ Layer.prototype.extent = 4096; diff --git a/tests/data/package.js b/tests/data/package.js index b2c7691b6..723afeadb 100644 --- a/tests/data/package.js +++ b/tests/data/package.js @@ -14,7 +14,7 @@ $root.Package = (function() { /** * Properties of a Package. * @typedef Package$Properties - * @type Object + * @type {Object} * @property {string} [name] Package name. * @property {string} [version] Package version. * @property {string} [versionScheme] Package versionScheme. @@ -38,7 +38,6 @@ $root.Package = (function() { /** * Constructs a new Package. * @exports Package - * @implements Package$Properties * @constructor * @param {Package$Properties=} [properties] Properties to set */ @@ -56,91 +55,109 @@ $root.Package = (function() { } /** + * Package name. * @type {string|undefined} */ Package.prototype.name = ""; /** + * Package version. * @type {string|undefined} */ Package.prototype.version = ""; /** + * Package versionScheme. * @type {string|undefined} */ Package.prototype.versionScheme = ""; /** + * Package description. * @type {string|undefined} */ Package.prototype.description = ""; /** + * Package author. * @type {string|undefined} */ Package.prototype.author = ""; /** + * Package license. * @type {string|undefined} */ Package.prototype.license = ""; /** + * Package repository. * @type {Package.Repository$Properties|undefined} */ Package.prototype.repository = null; /** + * Package bugs. * @type {string|undefined} */ Package.prototype.bugs = ""; /** + * Package homepage. * @type {string|undefined} */ Package.prototype.homepage = ""; /** + * Package keywords. * @type {Array.|undefined} */ Package.prototype.keywords = $util.emptyArray; /** + * Package main. * @type {string|undefined} */ Package.prototype.main = ""; /** + * Package bin. * @type {Object.|undefined} */ Package.prototype.bin = $util.emptyObject; /** + * Package scripts. * @type {Object.|undefined} */ Package.prototype.scripts = $util.emptyObject; /** + * Package dependencies. * @type {Object.|undefined} */ Package.prototype.dependencies = $util.emptyObject; /** + * Package optionalDependencies. * @type {Object.|undefined} */ Package.prototype.optionalDependencies = $util.emptyObject; /** + * Package devDependencies. * @type {Object.|undefined} */ Package.prototype.devDependencies = $util.emptyObject; /** + * Package types. * @type {string|undefined} */ Package.prototype.types = ""; /** + * Package cliDependencies. * @type {Array.|undefined} */ Package.prototype.cliDependencies = $util.emptyArray; @@ -650,7 +667,7 @@ $root.Package = (function() { /** * Properties of a Repository. * @typedef Package.Repository$Properties - * @type Object + * @type {Object} * @property {string} [type] Repository type. * @property {string} [url] Repository url. */ @@ -658,7 +675,6 @@ $root.Package = (function() { /** * Constructs a new Repository. * @exports Package.Repository - * @implements Package.Repository$Properties * @constructor * @param {Package.Repository$Properties=} [properties] Properties to set */ @@ -669,11 +685,13 @@ $root.Package = (function() { } /** + * Repository type. * @type {string|undefined} */ Repository.prototype.type = ""; /** + * Repository url. * @type {string|undefined} */ Repository.prototype.url = ""; diff --git a/tests/data/rpc.d.ts b/tests/data/rpc.d.ts index b62008b6b..e4477b9e0 100644 --- a/tests/data/rpc.d.ts +++ b/tests/data/rpc.d.ts @@ -13,7 +13,7 @@ type MyRequest$Properties = { path?: string; }; -export class MyRequest implements MyRequest$Properties { +export class MyRequest { constructor(properties?: MyRequest$Properties); public path?: string; public static create(properties?: MyRequest$Properties): MyRequest; @@ -33,7 +33,7 @@ type MyResponse$Properties = { status?: number; }; -export class MyResponse implements MyResponse$Properties { +export class MyResponse { constructor(properties?: MyResponse$Properties); public status?: number; public static create(properties?: MyResponse$Properties): MyResponse; diff --git a/tests/data/rpc.js b/tests/data/rpc.js index 4ef9411f5..791e62f58 100644 --- a/tests/data/rpc.js +++ b/tests/data/rpc.js @@ -72,14 +72,13 @@ $root.MyRequest = (function() { /** * Properties of a MyRequest. * @typedef MyRequest$Properties - * @type Object + * @type {Object} * @property {string} [path] MyRequest path. */ /** * Constructs a new MyRequest. * @exports MyRequest - * @implements MyRequest$Properties * @constructor * @param {MyRequest$Properties=} [properties] Properties to set */ @@ -90,6 +89,7 @@ $root.MyRequest = (function() { } /** + * MyRequest path. * @type {string|undefined} */ MyRequest.prototype.path = ""; @@ -245,14 +245,13 @@ $root.MyResponse = (function() { /** * Properties of a MyResponse. * @typedef MyResponse$Properties - * @type Object + * @type {Object} * @property {number} [status] MyResponse status. */ /** * Constructs a new MyResponse. * @exports MyResponse - * @implements MyResponse$Properties * @constructor * @param {MyResponse$Properties=} [properties] Properties to set */ @@ -263,6 +262,7 @@ $root.MyResponse = (function() { } /** + * MyResponse status. * @type {number|undefined} */ MyResponse.prototype.status = 0; diff --git a/tests/data/test.d.ts b/tests/data/test.d.ts index 3d2042ab8..b1ac4be1e 100644 --- a/tests/data/test.d.ts +++ b/tests/data/test.d.ts @@ -6,7 +6,7 @@ export namespace jspb { type Empty$Properties = Object; - class Empty implements jspb.test.Empty$Properties { + class Empty { constructor(properties?: jspb.test.Empty$Properties); public static create(properties?: jspb.test.Empty$Properties): jspb.test.Empty; public static encode(message: jspb.test.Empty$Properties, writer?: $protobuf.Writer): $protobuf.Writer; @@ -30,7 +30,7 @@ export namespace jspb { outerEnum?: jspb.test.OuterEnum; }; - class EnumContainer implements jspb.test.EnumContainer$Properties { + class EnumContainer { constructor(properties?: jspb.test.EnumContainer$Properties); public outerEnum?: jspb.test.OuterEnum; public static create(properties?: jspb.test.EnumContainer$Properties): jspb.test.EnumContainer; @@ -52,7 +52,7 @@ export namespace jspb { aBoolean?: boolean; }; - class Simple1 implements jspb.test.Simple1$Properties { + class Simple1 { constructor(properties?: jspb.test.Simple1$Properties); public aString: string; public aRepeatedString?: string[]; @@ -75,7 +75,7 @@ export namespace jspb { aRepeatedString?: string[]; }; - class Simple2 implements jspb.test.Simple2$Properties { + class Simple2 { constructor(properties?: jspb.test.Simple2$Properties); public aString: string; public aRepeatedString?: string[]; @@ -99,7 +99,7 @@ export namespace jspb { var: string; }; - class SpecialCases implements jspb.test.SpecialCases$Properties { + class SpecialCases { constructor(properties?: jspb.test.SpecialCases$Properties); public normal: string; public ["default"]: string; @@ -126,7 +126,7 @@ export namespace jspb { aRepeatedString?: string[]; }; - class OptionalFields implements jspb.test.OptionalFields$Properties { + class OptionalFields { constructor(properties?: jspb.test.OptionalFields$Properties); public aString?: string; public aBool: boolean; @@ -152,7 +152,7 @@ export namespace jspb { anInt?: number; }; - class Nested implements jspb.test.OptionalFields.Nested$Properties { + class Nested { constructor(properties?: jspb.test.OptionalFields.Nested$Properties); public anInt?: number; public static create(properties?: jspb.test.OptionalFields.Nested$Properties): jspb.test.OptionalFields.Nested; @@ -181,7 +181,7 @@ export namespace jspb { ".jspb.test.simple1"?: jspb.test.Simple1$Properties; }; - class HasExtensions implements jspb.test.HasExtensions$Properties { + class HasExtensions { constructor(properties?: jspb.test.HasExtensions$Properties); public str1?: string; public str2?: string; @@ -213,7 +213,7 @@ export namespace jspb { aRepeatedString?: string[]; }; - class Complex implements jspb.test.Complex$Properties { + class Complex { constructor(properties?: jspb.test.Complex$Properties); public aString: string; public anOutOfOrderBool: boolean; @@ -239,7 +239,7 @@ export namespace jspb { anInt: number; }; - class Nested implements jspb.test.Complex.Nested$Properties { + class Nested { constructor(properties?: jspb.test.Complex.Nested$Properties); public anInt: number; public static create(properties?: jspb.test.Complex.Nested$Properties): jspb.test.Complex.Nested; @@ -258,7 +258,7 @@ export namespace jspb { type OuterMessage$Properties = Object; - class OuterMessage implements jspb.test.OuterMessage$Properties { + class OuterMessage { constructor(properties?: jspb.test.OuterMessage$Properties); public static create(properties?: jspb.test.OuterMessage$Properties): jspb.test.OuterMessage; public static encode(message: jspb.test.OuterMessage$Properties, writer?: $protobuf.Writer): $protobuf.Writer; @@ -279,7 +279,7 @@ export namespace jspb { innerComplexField?: number; }; - class Complex implements jspb.test.OuterMessage.Complex$Properties { + class Complex { constructor(properties?: jspb.test.OuterMessage.Complex$Properties); public innerComplexField?: number; public static create(properties?: jspb.test.OuterMessage.Complex$Properties): jspb.test.OuterMessage.Complex; @@ -300,7 +300,7 @@ export namespace jspb { ext1?: string; }; - class IsExtension implements jspb.test.IsExtension$Properties { + class IsExtension { constructor(properties?: jspb.test.IsExtension$Properties); public ext1?: string; public static create(properties?: jspb.test.IsExtension$Properties): jspb.test.IsExtension; @@ -318,7 +318,7 @@ export namespace jspb { type IndirectExtension$Properties = Object; - class IndirectExtension implements jspb.test.IndirectExtension$Properties { + class IndirectExtension { constructor(properties?: jspb.test.IndirectExtension$Properties); public static create(properties?: jspb.test.IndirectExtension$Properties): jspb.test.IndirectExtension; public static encode(message: jspb.test.IndirectExtension$Properties, writer?: $protobuf.Writer): $protobuf.Writer; @@ -342,7 +342,7 @@ export namespace jspb { bytesField?: Uint8Array; }; - class DefaultValues implements jspb.test.DefaultValues$Properties { + class DefaultValues { constructor(properties?: jspb.test.DefaultValues$Properties); public stringField?: string; public boolField?: boolean; @@ -382,7 +382,7 @@ export namespace jspb { defaultDoubleField?: number; }; - class FloatingPointFields implements jspb.test.FloatingPointFields$Properties { + class FloatingPointFields { constructor(properties?: jspb.test.FloatingPointFields$Properties); public optionalFloatField?: number; public requiredFloatField: number; @@ -414,7 +414,7 @@ export namespace jspb { ".jspb.test.CloneExtension.extField"?: jspb.test.CloneExtension$Properties; }; - class TestClone implements jspb.test.TestClone$Properties { + class TestClone { constructor(properties?: jspb.test.TestClone$Properties); public str?: string; public simple1?: jspb.test.Simple1$Properties; @@ -439,7 +439,7 @@ export namespace jspb { ext?: string; }; - class CloneExtension implements jspb.test.CloneExtension$Properties { + class CloneExtension { constructor(properties?: jspb.test.CloneExtension$Properties); public ext?: string; public static create(properties?: jspb.test.CloneExtension$Properties): jspb.test.CloneExtension; @@ -464,7 +464,7 @@ export namespace jspb { optionalSimple?: jspb.test.Simple2$Properties; }; - class TestGroup implements jspb.test.TestGroup$Properties { + class TestGroup { constructor(properties?: jspb.test.TestGroup$Properties); public repeatedGroup?: jspb.test.TestGroup.RepeatedGroup$Properties[]; public requiredGroup: jspb.test.TestGroup.RequiredGroup$Properties; @@ -492,7 +492,7 @@ export namespace jspb { someBool?: boolean[]; }; - class RepeatedGroup implements jspb.test.TestGroup.RepeatedGroup$Properties { + class RepeatedGroup { constructor(properties?: jspb.test.TestGroup.RepeatedGroup$Properties); public id: string; public someBool?: boolean[]; @@ -513,7 +513,7 @@ export namespace jspb { id: string; }; - class RequiredGroup implements jspb.test.TestGroup.RequiredGroup$Properties { + class RequiredGroup { constructor(properties?: jspb.test.TestGroup.RequiredGroup$Properties); public id: string; public static create(properties?: jspb.test.TestGroup.RequiredGroup$Properties): jspb.test.TestGroup.RequiredGroup; @@ -533,7 +533,7 @@ export namespace jspb { id: string; }; - class OptionalGroup implements jspb.test.TestGroup.OptionalGroup$Properties { + class OptionalGroup { constructor(properties?: jspb.test.TestGroup.OptionalGroup$Properties); public id: string; public static create(properties?: jspb.test.TestGroup.OptionalGroup$Properties): jspb.test.TestGroup.OptionalGroup; @@ -554,7 +554,7 @@ export namespace jspb { group?: jspb.test.TestGroup.RepeatedGroup$Properties; }; - class TestGroup1 implements jspb.test.TestGroup1$Properties { + class TestGroup1 { constructor(properties?: jspb.test.TestGroup1$Properties); public group?: jspb.test.TestGroup.RepeatedGroup$Properties; public static create(properties?: jspb.test.TestGroup1$Properties): jspb.test.TestGroup1; @@ -575,7 +575,7 @@ export namespace jspb { ".jspb.test.TestReservedNamesExtension.foo"?: number; }; - class TestReservedNames implements jspb.test.TestReservedNames$Properties { + class TestReservedNames { constructor(properties?: jspb.test.TestReservedNames$Properties); public extension?: number; public [".jspb.test.TestReservedNamesExtension.foo"]?: number; @@ -594,7 +594,7 @@ export namespace jspb { type TestReservedNamesExtension$Properties = Object; - class TestReservedNamesExtension implements jspb.test.TestReservedNamesExtension$Properties { + class TestReservedNamesExtension { constructor(properties?: jspb.test.TestReservedNamesExtension$Properties); public static create(properties?: jspb.test.TestReservedNamesExtension$Properties): jspb.test.TestReservedNamesExtension; public static encode(message: jspb.test.TestReservedNamesExtension$Properties, writer?: $protobuf.Writer): $protobuf.Writer; @@ -622,7 +622,7 @@ export namespace jspb { btwo?: number; }; - class TestMessageWithOneof implements jspb.test.TestMessageWithOneof$Properties { + class TestMessageWithOneof { constructor(properties?: jspb.test.TestMessageWithOneof$Properties); public pone?: string; public pthree?: string; @@ -656,7 +656,7 @@ export namespace jspb { data?: Uint8Array; }; - class TestEndsWithBytes implements jspb.test.TestEndsWithBytes$Properties { + class TestEndsWithBytes { constructor(properties?: jspb.test.TestEndsWithBytes$Properties); public value?: number; public data?: Uint8Array; @@ -688,7 +688,7 @@ export namespace jspb { mapStringTestmapfields?: { [k: string]: jspb.test.TestMapFieldsNoBinary$Properties }; }; - class TestMapFieldsNoBinary implements jspb.test.TestMapFieldsNoBinary$Properties { + class TestMapFieldsNoBinary { constructor(properties?: jspb.test.TestMapFieldsNoBinary$Properties); public mapStringString?: { [k: string]: string }; public mapStringInt32?: { [k: string]: number }; @@ -725,7 +725,7 @@ export namespace jspb { foo?: number; }; - class MapValueMessageNoBinary implements jspb.test.MapValueMessageNoBinary$Properties { + class MapValueMessageNoBinary { constructor(properties?: jspb.test.MapValueMessageNoBinary$Properties); public foo?: number; public static create(properties?: jspb.test.MapValueMessageNoBinary$Properties): jspb.test.MapValueMessageNoBinary; @@ -743,7 +743,7 @@ export namespace jspb { type Deeply$Properties = Object; - class Deeply implements jspb.test.Deeply$Properties { + class Deeply { constructor(properties?: jspb.test.Deeply$Properties); public static create(properties?: jspb.test.Deeply$Properties): jspb.test.Deeply; public static encode(message: jspb.test.Deeply$Properties, writer?: $protobuf.Writer): $protobuf.Writer; @@ -762,7 +762,7 @@ export namespace jspb { type Nested$Properties = Object; - class Nested implements jspb.test.Deeply.Nested$Properties { + class Nested { constructor(properties?: jspb.test.Deeply.Nested$Properties); public static create(properties?: jspb.test.Deeply.Nested$Properties): jspb.test.Deeply.Nested; public static encode(message: jspb.test.Deeply.Nested$Properties, writer?: $protobuf.Writer): $protobuf.Writer; @@ -783,7 +783,7 @@ export namespace jspb { count?: number; }; - class Message implements jspb.test.Deeply.Nested.Message$Properties { + class Message { constructor(properties?: jspb.test.Deeply.Nested.Message$Properties); public count?: number; public static create(properties?: jspb.test.Deeply.Nested.Message$Properties): jspb.test.Deeply.Nested.Message; @@ -811,7 +811,7 @@ export namespace google { file?: google.protobuf.FileDescriptorProto$Properties[]; }; - class FileDescriptorSet implements google.protobuf.FileDescriptorSet$Properties { + class FileDescriptorSet { constructor(properties?: google.protobuf.FileDescriptorSet$Properties); public file?: google.protobuf.FileDescriptorProto$Properties[]; public static create(properties?: google.protobuf.FileDescriptorSet$Properties): google.protobuf.FileDescriptorSet; @@ -842,7 +842,7 @@ export namespace google { syntax?: string; }; - class FileDescriptorProto implements google.protobuf.FileDescriptorProto$Properties { + class FileDescriptorProto { constructor(properties?: google.protobuf.FileDescriptorProto$Properties); public name?: string; public ["package"]?: string; @@ -882,7 +882,7 @@ export namespace google { reservedName?: string[]; }; - class DescriptorProto implements google.protobuf.DescriptorProto$Properties { + class DescriptorProto { constructor(properties?: google.protobuf.DescriptorProto$Properties); public name?: string; public field?: google.protobuf.FieldDescriptorProto$Properties[]; @@ -914,7 +914,7 @@ export namespace google { end?: number; }; - class ExtensionRange implements google.protobuf.DescriptorProto.ExtensionRange$Properties { + class ExtensionRange { constructor(properties?: google.protobuf.DescriptorProto.ExtensionRange$Properties); public start?: number; public end?: number; @@ -936,7 +936,7 @@ export namespace google { end?: number; }; - class ReservedRange implements google.protobuf.DescriptorProto.ReservedRange$Properties { + class ReservedRange { constructor(properties?: google.protobuf.DescriptorProto.ReservedRange$Properties); public start?: number; public end?: number; @@ -967,7 +967,7 @@ export namespace google { options?: google.protobuf.FieldOptions$Properties; }; - class FieldDescriptorProto implements google.protobuf.FieldDescriptorProto$Properties { + class FieldDescriptorProto { constructor(properties?: google.protobuf.FieldDescriptorProto$Properties); public name?: string; public number?: number; @@ -1027,7 +1027,7 @@ export namespace google { options?: google.protobuf.OneofOptions$Properties; }; - class OneofDescriptorProto implements google.protobuf.OneofDescriptorProto$Properties { + class OneofDescriptorProto { constructor(properties?: google.protobuf.OneofDescriptorProto$Properties); public name?: string; public options?: google.protobuf.OneofOptions$Properties; @@ -1050,7 +1050,7 @@ export namespace google { options?: google.protobuf.EnumOptions$Properties; }; - class EnumDescriptorProto implements google.protobuf.EnumDescriptorProto$Properties { + class EnumDescriptorProto { constructor(properties?: google.protobuf.EnumDescriptorProto$Properties); public name?: string; public value?: google.protobuf.EnumValueDescriptorProto$Properties[]; @@ -1074,7 +1074,7 @@ export namespace google { options?: google.protobuf.EnumValueOptions$Properties; }; - class EnumValueDescriptorProto implements google.protobuf.EnumValueDescriptorProto$Properties { + class EnumValueDescriptorProto { constructor(properties?: google.protobuf.EnumValueDescriptorProto$Properties); public name?: string; public number?: number; @@ -1098,7 +1098,7 @@ export namespace google { options?: google.protobuf.ServiceOptions$Properties; }; - class ServiceDescriptorProto implements google.protobuf.ServiceDescriptorProto$Properties { + class ServiceDescriptorProto { constructor(properties?: google.protobuf.ServiceDescriptorProto$Properties); public name?: string; public method?: google.protobuf.MethodDescriptorProto$Properties[]; @@ -1125,7 +1125,7 @@ export namespace google { serverStreaming?: boolean; }; - class MethodDescriptorProto implements google.protobuf.MethodDescriptorProto$Properties { + class MethodDescriptorProto { constructor(properties?: google.protobuf.MethodDescriptorProto$Properties); public name?: string; public inputType?: string; @@ -1164,7 +1164,7 @@ export namespace google { uninterpretedOption?: google.protobuf.UninterpretedOption$Properties[]; }; - class FileOptions implements google.protobuf.FileOptions$Properties { + class FileOptions { constructor(properties?: google.protobuf.FileOptions$Properties); public javaPackage?: string; public javaOuterClassname?: string; @@ -1211,7 +1211,7 @@ export namespace google { uninterpretedOption?: google.protobuf.UninterpretedOption$Properties[]; }; - class MessageOptions implements google.protobuf.MessageOptions$Properties { + class MessageOptions { constructor(properties?: google.protobuf.MessageOptions$Properties); public messageSetWireFormat?: boolean; public noStandardDescriptorAccessor?: boolean; @@ -1241,7 +1241,7 @@ export namespace google { uninterpretedOption?: google.protobuf.UninterpretedOption$Properties[]; }; - class FieldOptions implements google.protobuf.FieldOptions$Properties { + class FieldOptions { constructor(properties?: google.protobuf.FieldOptions$Properties); public ctype?: google.protobuf.FieldOptions.CType; public packed?: boolean; @@ -1282,7 +1282,7 @@ export namespace google { uninterpretedOption?: google.protobuf.UninterpretedOption$Properties[]; }; - class OneofOptions implements google.protobuf.OneofOptions$Properties { + class OneofOptions { constructor(properties?: google.protobuf.OneofOptions$Properties); public uninterpretedOption?: google.protobuf.UninterpretedOption$Properties[]; public static create(properties?: google.protobuf.OneofOptions$Properties): google.protobuf.OneofOptions; @@ -1305,7 +1305,7 @@ export namespace google { ".jspb.test.IsExtension.simpleOption"?: string; }; - class EnumOptions implements google.protobuf.EnumOptions$Properties { + class EnumOptions { constructor(properties?: google.protobuf.EnumOptions$Properties); public allowAlias?: boolean; public deprecated?: boolean; @@ -1329,7 +1329,7 @@ export namespace google { uninterpretedOption?: google.protobuf.UninterpretedOption$Properties[]; }; - class EnumValueOptions implements google.protobuf.EnumValueOptions$Properties { + class EnumValueOptions { constructor(properties?: google.protobuf.EnumValueOptions$Properties); public deprecated?: boolean; public uninterpretedOption?: google.protobuf.UninterpretedOption$Properties[]; @@ -1351,7 +1351,7 @@ export namespace google { uninterpretedOption?: google.protobuf.UninterpretedOption$Properties[]; }; - class ServiceOptions implements google.protobuf.ServiceOptions$Properties { + class ServiceOptions { constructor(properties?: google.protobuf.ServiceOptions$Properties); public deprecated?: boolean; public uninterpretedOption?: google.protobuf.UninterpretedOption$Properties[]; @@ -1374,7 +1374,7 @@ export namespace google { uninterpretedOption?: google.protobuf.UninterpretedOption$Properties[]; }; - class MethodOptions implements google.protobuf.MethodOptions$Properties { + class MethodOptions { constructor(properties?: google.protobuf.MethodOptions$Properties); public deprecated?: boolean; public idempotencyLevel?: google.protobuf.MethodOptions.IdempotencyLevel; @@ -1411,7 +1411,7 @@ export namespace google { aggregateValue?: string; }; - class UninterpretedOption implements google.protobuf.UninterpretedOption$Properties { + class UninterpretedOption { constructor(properties?: google.protobuf.UninterpretedOption$Properties); public name?: google.protobuf.UninterpretedOption.NamePart$Properties[]; public identifierValue?: string; @@ -1440,7 +1440,7 @@ export namespace google { isExtension: boolean; }; - class NamePart implements google.protobuf.UninterpretedOption.NamePart$Properties { + class NamePart { constructor(properties?: google.protobuf.UninterpretedOption.NamePart$Properties); public namePart: string; public isExtension: boolean; @@ -1462,7 +1462,7 @@ export namespace google { location?: google.protobuf.SourceCodeInfo.Location$Properties[]; }; - class SourceCodeInfo implements google.protobuf.SourceCodeInfo$Properties { + class SourceCodeInfo { constructor(properties?: google.protobuf.SourceCodeInfo$Properties); public location?: google.protobuf.SourceCodeInfo.Location$Properties[]; public static create(properties?: google.protobuf.SourceCodeInfo$Properties): google.protobuf.SourceCodeInfo; @@ -1488,7 +1488,7 @@ export namespace google { leadingDetachedComments?: string[]; }; - class Location implements google.protobuf.SourceCodeInfo.Location$Properties { + class Location { constructor(properties?: google.protobuf.SourceCodeInfo.Location$Properties); public path?: number[]; public span?: number[]; @@ -1513,7 +1513,7 @@ export namespace google { annotation?: google.protobuf.GeneratedCodeInfo.Annotation$Properties[]; }; - class GeneratedCodeInfo implements google.protobuf.GeneratedCodeInfo$Properties { + class GeneratedCodeInfo { constructor(properties?: google.protobuf.GeneratedCodeInfo$Properties); public annotation?: google.protobuf.GeneratedCodeInfo.Annotation$Properties[]; public static create(properties?: google.protobuf.GeneratedCodeInfo$Properties): google.protobuf.GeneratedCodeInfo; @@ -1538,7 +1538,7 @@ export namespace google { end?: number; }; - class Annotation implements google.protobuf.GeneratedCodeInfo.Annotation$Properties { + class Annotation { constructor(properties?: google.protobuf.GeneratedCodeInfo.Annotation$Properties); public path?: number[]; public sourceFile?: string; diff --git a/tests/data/test.js b/tests/data/test.js index 564f7bd47..77c3e81d6 100644 --- a/tests/data/test.js +++ b/tests/data/test.js @@ -32,13 +32,12 @@ $root.jspb = (function() { /** * Properties of an Empty. * @typedef jspb.test.Empty$Properties - * @type Object + * @type {Object} */ /** * Constructs a new Empty. * @exports jspb.test.Empty - * @implements jspb.test.Empty$Properties * @constructor * @param {jspb.test.Empty$Properties=} [properties] Properties to set */ @@ -196,14 +195,13 @@ $root.jspb = (function() { /** * Properties of an EnumContainer. * @typedef jspb.test.EnumContainer$Properties - * @type Object + * @type {Object} * @property {jspb.test.OuterEnum} [outerEnum] EnumContainer outerEnum. */ /** * Constructs a new EnumContainer. * @exports jspb.test.EnumContainer - * @implements jspb.test.EnumContainer$Properties * @constructor * @param {jspb.test.EnumContainer$Properties=} [properties] Properties to set */ @@ -214,6 +212,7 @@ $root.jspb = (function() { } /** + * EnumContainer outerEnum. * @type {jspb.test.OuterEnum|undefined} */ EnumContainer.prototype.outerEnum = 1; @@ -382,7 +381,7 @@ $root.jspb = (function() { /** * Properties of a Simple1. * @typedef jspb.test.Simple1$Properties - * @type Object + * @type {Object} * @property {string} aString Simple1 aString. * @property {Array.} [aRepeatedString] Simple1 aRepeatedString. * @property {boolean} [aBoolean] Simple1 aBoolean. @@ -391,7 +390,6 @@ $root.jspb = (function() { /** * Constructs a new Simple1. * @exports jspb.test.Simple1 - * @implements jspb.test.Simple1$Properties * @constructor * @param {jspb.test.Simple1$Properties=} [properties] Properties to set */ @@ -403,16 +401,19 @@ $root.jspb = (function() { } /** + * Simple1 aString. * @type {string} */ Simple1.prototype.aString = ""; /** + * Simple1 aRepeatedString. * @type {Array.|undefined} */ Simple1.prototype.aRepeatedString = $util.emptyArray; /** + * Simple1 aBoolean. * @type {boolean|undefined} */ Simple1.prototype.aBoolean = false; @@ -611,7 +612,7 @@ $root.jspb = (function() { /** * Properties of a Simple2. * @typedef jspb.test.Simple2$Properties - * @type Object + * @type {Object} * @property {string} aString Simple2 aString. * @property {Array.} [aRepeatedString] Simple2 aRepeatedString. */ @@ -619,7 +620,6 @@ $root.jspb = (function() { /** * Constructs a new Simple2. * @exports jspb.test.Simple2 - * @implements jspb.test.Simple2$Properties * @constructor * @param {jspb.test.Simple2$Properties=} [properties] Properties to set */ @@ -631,11 +631,13 @@ $root.jspb = (function() { } /** + * Simple2 aString. * @type {string} */ Simple2.prototype.aString = ""; /** + * Simple2 aRepeatedString. * @type {Array.|undefined} */ Simple2.prototype.aRepeatedString = $util.emptyArray; @@ -820,7 +822,7 @@ $root.jspb = (function() { /** * Properties of a SpecialCases. * @typedef jspb.test.SpecialCases$Properties - * @type Object + * @type {Object} * @property {string} normal SpecialCases normal. * @property {string} default SpecialCases default. * @property {string} function SpecialCases function. @@ -830,7 +832,6 @@ $root.jspb = (function() { /** * Constructs a new SpecialCases. * @exports jspb.test.SpecialCases - * @implements jspb.test.SpecialCases$Properties * @constructor * @param {jspb.test.SpecialCases$Properties=} [properties] Properties to set */ @@ -841,21 +842,25 @@ $root.jspb = (function() { } /** + * SpecialCases normal. * @type {string} */ SpecialCases.prototype.normal = ""; /** + * SpecialCases default. * @type {string} */ SpecialCases.prototype["default"] = ""; /** + * SpecialCases function. * @type {string} */ SpecialCases.prototype["function"] = ""; /** + * SpecialCases var. * @type {string} */ SpecialCases.prototype["var"] = ""; @@ -1051,7 +1056,7 @@ $root.jspb = (function() { /** * Properties of an OptionalFields. * @typedef jspb.test.OptionalFields$Properties - * @type Object + * @type {Object} * @property {string} [aString] OptionalFields aString. * @property {boolean} aBool OptionalFields aBool. * @property {jspb.test.OptionalFields.Nested$Properties} [aNestedMessage] OptionalFields aNestedMessage. @@ -1062,7 +1067,6 @@ $root.jspb = (function() { /** * Constructs a new OptionalFields. * @exports jspb.test.OptionalFields - * @implements jspb.test.OptionalFields$Properties * @constructor * @param {jspb.test.OptionalFields$Properties=} [properties] Properties to set */ @@ -1075,26 +1079,31 @@ $root.jspb = (function() { } /** + * OptionalFields aString. * @type {string|undefined} */ OptionalFields.prototype.aString = ""; /** + * OptionalFields aBool. * @type {boolean} */ OptionalFields.prototype.aBool = false; /** + * OptionalFields aNestedMessage. * @type {jspb.test.OptionalFields.Nested$Properties|undefined} */ OptionalFields.prototype.aNestedMessage = null; /** + * OptionalFields aRepeatedMessage. * @type {Array.|undefined} */ OptionalFields.prototype.aRepeatedMessage = $util.emptyArray; /** + * OptionalFields aRepeatedString. * @type {Array.|undefined} */ OptionalFields.prototype.aRepeatedString = $util.emptyArray; @@ -1342,14 +1351,13 @@ $root.jspb = (function() { /** * Properties of a Nested. * @typedef jspb.test.OptionalFields.Nested$Properties - * @type Object + * @type {Object} * @property {number} [anInt] Nested anInt. */ /** * Constructs a new Nested. * @exports jspb.test.OptionalFields.Nested - * @implements jspb.test.OptionalFields.Nested$Properties * @constructor * @param {jspb.test.OptionalFields.Nested$Properties=} [properties] Properties to set */ @@ -1360,6 +1368,7 @@ $root.jspb = (function() { } /** + * Nested anInt. * @type {number|undefined} */ Nested.prototype.anInt = 0; @@ -1518,7 +1527,7 @@ $root.jspb = (function() { /** * Properties of a HasExtensions. * @typedef jspb.test.HasExtensions$Properties - * @type Object + * @type {Object} * @property {string} [str1] HasExtensions str1. * @property {string} [str2] HasExtensions str2. * @property {string} [str3] HasExtensions str3. @@ -1533,7 +1542,6 @@ $root.jspb = (function() { /** * Constructs a new HasExtensions. * @exports jspb.test.HasExtensions - * @implements jspb.test.HasExtensions$Properties * @constructor * @param {jspb.test.HasExtensions$Properties=} [properties] Properties to set */ @@ -1546,46 +1554,55 @@ $root.jspb = (function() { } /** + * HasExtensions str1. * @type {string|undefined} */ HasExtensions.prototype.str1 = ""; /** + * HasExtensions str2. * @type {string|undefined} */ HasExtensions.prototype.str2 = ""; /** + * HasExtensions str3. * @type {string|undefined} */ HasExtensions.prototype.str3 = ""; /** + * HasExtensions .jspb.test.IsExtension.extField. * @type {jspb.test.IsExtension$Properties|undefined} */ HasExtensions.prototype[".jspb.test.IsExtension.extField"] = null; /** + * HasExtensions .jspb.test.IndirectExtension.simple. * @type {jspb.test.Simple1$Properties|undefined} */ HasExtensions.prototype[".jspb.test.IndirectExtension.simple"] = null; /** + * HasExtensions .jspb.test.IndirectExtension.str. * @type {string|undefined} */ HasExtensions.prototype[".jspb.test.IndirectExtension.str"] = ""; /** + * HasExtensions .jspb.test.IndirectExtension.repeatedStr. * @type {Array.|undefined} */ HasExtensions.prototype[".jspb.test.IndirectExtension.repeatedStr"] = $util.emptyArray; /** + * HasExtensions .jspb.test.IndirectExtension.repeatedSimple. * @type {Array.|undefined} */ HasExtensions.prototype[".jspb.test.IndirectExtension.repeatedSimple"] = $util.emptyArray; /** + * HasExtensions .jspb.test.simple1. * @type {jspb.test.Simple1$Properties|undefined} */ HasExtensions.prototype[".jspb.test.simple1"] = null; @@ -1898,7 +1915,7 @@ $root.jspb = (function() { /** * Properties of a Complex. * @typedef jspb.test.Complex$Properties - * @type Object + * @type {Object} * @property {string} aString Complex aString. * @property {boolean} anOutOfOrderBool Complex anOutOfOrderBool. * @property {jspb.test.Complex.Nested$Properties} [aNestedMessage] Complex aNestedMessage. @@ -1909,7 +1926,6 @@ $root.jspb = (function() { /** * Constructs a new Complex. * @exports jspb.test.Complex - * @implements jspb.test.Complex$Properties * @constructor * @param {jspb.test.Complex$Properties=} [properties] Properties to set */ @@ -1922,26 +1938,31 @@ $root.jspb = (function() { } /** + * Complex aString. * @type {string} */ Complex.prototype.aString = ""; /** + * Complex anOutOfOrderBool. * @type {boolean} */ Complex.prototype.anOutOfOrderBool = false; /** + * Complex aNestedMessage. * @type {jspb.test.Complex.Nested$Properties|undefined} */ Complex.prototype.aNestedMessage = null; /** + * Complex aRepeatedMessage. * @type {Array.|undefined} */ Complex.prototype.aRepeatedMessage = $util.emptyArray; /** + * Complex aRepeatedString. * @type {Array.|undefined} */ Complex.prototype.aRepeatedString = $util.emptyArray; @@ -2189,14 +2210,13 @@ $root.jspb = (function() { /** * Properties of a Nested. * @typedef jspb.test.Complex.Nested$Properties - * @type Object + * @type {Object} * @property {number} anInt Nested anInt. */ /** * Constructs a new Nested. * @exports jspb.test.Complex.Nested - * @implements jspb.test.Complex.Nested$Properties * @constructor * @param {jspb.test.Complex.Nested$Properties=} [properties] Properties to set */ @@ -2207,6 +2227,7 @@ $root.jspb = (function() { } /** + * Nested anInt. * @type {number} */ Nested.prototype.anInt = 0; @@ -2365,13 +2386,12 @@ $root.jspb = (function() { /** * Properties of an OuterMessage. * @typedef jspb.test.OuterMessage$Properties - * @type Object + * @type {Object} */ /** * Constructs a new OuterMessage. * @exports jspb.test.OuterMessage - * @implements jspb.test.OuterMessage$Properties * @constructor * @param {jspb.test.OuterMessage$Properties=} [properties] Properties to set */ @@ -2511,14 +2531,13 @@ $root.jspb = (function() { /** * Properties of a Complex. * @typedef jspb.test.OuterMessage.Complex$Properties - * @type Object + * @type {Object} * @property {number} [innerComplexField] Complex innerComplexField. */ /** * Constructs a new Complex. * @exports jspb.test.OuterMessage.Complex - * @implements jspb.test.OuterMessage.Complex$Properties * @constructor * @param {jspb.test.OuterMessage.Complex$Properties=} [properties] Properties to set */ @@ -2529,6 +2548,7 @@ $root.jspb = (function() { } /** + * Complex innerComplexField. * @type {number|undefined} */ Complex.prototype.innerComplexField = 0; @@ -2687,14 +2707,13 @@ $root.jspb = (function() { /** * Properties of an IsExtension. * @typedef jspb.test.IsExtension$Properties - * @type Object + * @type {Object} * @property {string} [ext1] IsExtension ext1. */ /** * Constructs a new IsExtension. * @exports jspb.test.IsExtension - * @implements jspb.test.IsExtension$Properties * @constructor * @param {jspb.test.IsExtension$Properties=} [properties] Properties to set */ @@ -2705,6 +2724,7 @@ $root.jspb = (function() { } /** + * IsExtension ext1. * @type {string|undefined} */ IsExtension.prototype.ext1 = ""; @@ -2860,13 +2880,12 @@ $root.jspb = (function() { /** * Properties of an IndirectExtension. * @typedef jspb.test.IndirectExtension$Properties - * @type Object + * @type {Object} */ /** * Constructs a new IndirectExtension. * @exports jspb.test.IndirectExtension - * @implements jspb.test.IndirectExtension$Properties * @constructor * @param {jspb.test.IndirectExtension$Properties=} [properties] Properties to set */ @@ -3009,7 +3028,7 @@ $root.jspb = (function() { /** * Properties of a DefaultValues. * @typedef jspb.test.DefaultValues$Properties - * @type Object + * @type {Object} * @property {string} [stringField] DefaultValues stringField. * @property {boolean} [boolField] DefaultValues boolField. * @property {number|Long} [intField] DefaultValues intField. @@ -3021,7 +3040,6 @@ $root.jspb = (function() { /** * Constructs a new DefaultValues. * @exports jspb.test.DefaultValues - * @implements jspb.test.DefaultValues$Properties * @constructor * @param {jspb.test.DefaultValues$Properties=} [properties] Properties to set */ @@ -3032,31 +3050,37 @@ $root.jspb = (function() { } /** + * DefaultValues stringField. * @type {string|undefined} */ DefaultValues.prototype.stringField = "default<>abc"; /** + * DefaultValues boolField. * @type {boolean|undefined} */ DefaultValues.prototype.boolField = true; /** + * DefaultValues intField. * @type {number|Long|undefined} */ DefaultValues.prototype.intField = $util.Long ? $util.Long.fromBits(11,0,false) : 11; /** + * DefaultValues enumField. * @type {jspb.test.DefaultValues.Enum|undefined} */ DefaultValues.prototype.enumField = 13; /** + * DefaultValues emptyField. * @type {string|undefined} */ DefaultValues.prototype.emptyField = ""; /** + * DefaultValues bytesField. * @type {Uint8Array|undefined} */ DefaultValues.prototype.bytesField = $util.newBuffer([109,111,111]); @@ -3327,7 +3351,7 @@ $root.jspb = (function() { /** * Properties of a FloatingPointFields. * @typedef jspb.test.FloatingPointFields$Properties - * @type Object + * @type {Object} * @property {number} [optionalFloatField] FloatingPointFields optionalFloatField. * @property {number} requiredFloatField FloatingPointFields requiredFloatField. * @property {Array.} [repeatedFloatField] FloatingPointFields repeatedFloatField. @@ -3341,7 +3365,6 @@ $root.jspb = (function() { /** * Constructs a new FloatingPointFields. * @exports jspb.test.FloatingPointFields - * @implements jspb.test.FloatingPointFields$Properties * @constructor * @param {jspb.test.FloatingPointFields$Properties=} [properties] Properties to set */ @@ -3354,41 +3377,49 @@ $root.jspb = (function() { } /** + * FloatingPointFields optionalFloatField. * @type {number|undefined} */ FloatingPointFields.prototype.optionalFloatField = 0; /** + * FloatingPointFields requiredFloatField. * @type {number} */ FloatingPointFields.prototype.requiredFloatField = 0; /** + * FloatingPointFields repeatedFloatField. * @type {Array.|undefined} */ FloatingPointFields.prototype.repeatedFloatField = $util.emptyArray; /** + * FloatingPointFields defaultFloatField. * @type {number|undefined} */ FloatingPointFields.prototype.defaultFloatField = 2; /** + * FloatingPointFields optionalDoubleField. * @type {number|undefined} */ FloatingPointFields.prototype.optionalDoubleField = 0; /** + * FloatingPointFields requiredDoubleField. * @type {number} */ FloatingPointFields.prototype.requiredDoubleField = 0; /** + * FloatingPointFields repeatedDoubleField. * @type {Array.|undefined} */ FloatingPointFields.prototype.repeatedDoubleField = $util.emptyArray; /** + * FloatingPointFields defaultDoubleField. * @type {number|undefined} */ FloatingPointFields.prototype.defaultDoubleField = 2; @@ -3678,7 +3709,7 @@ $root.jspb = (function() { /** * Properties of a TestClone. * @typedef jspb.test.TestClone$Properties - * @type Object + * @type {Object} * @property {string} [str] TestClone str. * @property {jspb.test.Simple1$Properties} [simple1] TestClone simple1. * @property {Array.} [simple2] TestClone simple2. @@ -3690,7 +3721,6 @@ $root.jspb = (function() { /** * Constructs a new TestClone. * @exports jspb.test.TestClone - * @implements jspb.test.TestClone$Properties * @constructor * @param {jspb.test.TestClone$Properties=} [properties] Properties to set */ @@ -3702,31 +3732,37 @@ $root.jspb = (function() { } /** + * TestClone str. * @type {string|undefined} */ TestClone.prototype.str = ""; /** + * TestClone simple1. * @type {jspb.test.Simple1$Properties|undefined} */ TestClone.prototype.simple1 = null; /** + * TestClone simple2. * @type {Array.|undefined} */ TestClone.prototype.simple2 = $util.emptyArray; /** + * TestClone bytesField. * @type {Uint8Array|undefined} */ TestClone.prototype.bytesField = $util.newBuffer([]); /** + * TestClone unused. * @type {string|undefined} */ TestClone.prototype.unused = ""; /** + * TestClone .jspb.test.CloneExtension.extField. * @type {jspb.test.CloneExtension$Properties|undefined} */ TestClone.prototype[".jspb.test.CloneExtension.extField"] = null; @@ -3982,14 +4018,13 @@ $root.jspb = (function() { /** * Properties of a CloneExtension. * @typedef jspb.test.CloneExtension$Properties - * @type Object + * @type {Object} * @property {string} [ext] CloneExtension ext. */ /** * Constructs a new CloneExtension. * @exports jspb.test.CloneExtension - * @implements jspb.test.CloneExtension$Properties * @constructor * @param {jspb.test.CloneExtension$Properties=} [properties] Properties to set */ @@ -4000,6 +4035,7 @@ $root.jspb = (function() { } /** + * CloneExtension ext. * @type {string|undefined} */ CloneExtension.prototype.ext = ""; @@ -4155,7 +4191,7 @@ $root.jspb = (function() { /** * Properties of a TestGroup. * @typedef jspb.test.TestGroup$Properties - * @type Object + * @type {Object} * @property {Array.} [repeatedGroup] TestGroup repeatedGroup. * @property {jspb.test.TestGroup.RequiredGroup$Properties} requiredGroup TestGroup requiredGroup. * @property {jspb.test.TestGroup.OptionalGroup$Properties} [optionalGroup] TestGroup optionalGroup. @@ -4167,7 +4203,6 @@ $root.jspb = (function() { /** * Constructs a new TestGroup. * @exports jspb.test.TestGroup - * @implements jspb.test.TestGroup$Properties * @constructor * @param {jspb.test.TestGroup$Properties=} [properties] Properties to set */ @@ -4179,31 +4214,37 @@ $root.jspb = (function() { } /** + * TestGroup repeatedGroup. * @type {Array.|undefined} */ TestGroup.prototype.repeatedGroup = $util.emptyArray; /** + * TestGroup requiredGroup. * @type {jspb.test.TestGroup.RequiredGroup$Properties} */ TestGroup.prototype.requiredGroup = null; /** + * TestGroup optionalGroup. * @type {jspb.test.TestGroup.OptionalGroup$Properties|undefined} */ TestGroup.prototype.optionalGroup = null; /** + * TestGroup id. * @type {string|undefined} */ TestGroup.prototype.id = ""; /** + * TestGroup requiredSimple. * @type {jspb.test.Simple2$Properties} */ TestGroup.prototype.requiredSimple = null; /** + * TestGroup optionalSimple. * @type {jspb.test.Simple2$Properties|undefined} */ TestGroup.prototype.optionalSimple = null; @@ -4461,7 +4502,7 @@ $root.jspb = (function() { /** * Properties of a RepeatedGroup. * @typedef jspb.test.TestGroup.RepeatedGroup$Properties - * @type Object + * @type {Object} * @property {string} id RepeatedGroup id. * @property {Array.} [someBool] RepeatedGroup someBool. */ @@ -4469,7 +4510,6 @@ $root.jspb = (function() { /** * Constructs a new RepeatedGroup. * @exports jspb.test.TestGroup.RepeatedGroup - * @implements jspb.test.TestGroup.RepeatedGroup$Properties * @constructor * @param {jspb.test.TestGroup.RepeatedGroup$Properties=} [properties] Properties to set */ @@ -4481,11 +4521,13 @@ $root.jspb = (function() { } /** + * RepeatedGroup id. * @type {string} */ RepeatedGroup.prototype.id = ""; /** + * RepeatedGroup someBool. * @type {Array.|undefined} */ RepeatedGroup.prototype.someBool = $util.emptyArray; @@ -4677,14 +4719,13 @@ $root.jspb = (function() { /** * Properties of a RequiredGroup. * @typedef jspb.test.TestGroup.RequiredGroup$Properties - * @type Object + * @type {Object} * @property {string} id RequiredGroup id. */ /** * Constructs a new RequiredGroup. * @exports jspb.test.TestGroup.RequiredGroup - * @implements jspb.test.TestGroup.RequiredGroup$Properties * @constructor * @param {jspb.test.TestGroup.RequiredGroup$Properties=} [properties] Properties to set */ @@ -4695,6 +4736,7 @@ $root.jspb = (function() { } /** + * RequiredGroup id. * @type {string} */ RequiredGroup.prototype.id = ""; @@ -4852,14 +4894,13 @@ $root.jspb = (function() { /** * Properties of an OptionalGroup. * @typedef jspb.test.TestGroup.OptionalGroup$Properties - * @type Object + * @type {Object} * @property {string} id OptionalGroup id. */ /** * Constructs a new OptionalGroup. * @exports jspb.test.TestGroup.OptionalGroup - * @implements jspb.test.TestGroup.OptionalGroup$Properties * @constructor * @param {jspb.test.TestGroup.OptionalGroup$Properties=} [properties] Properties to set */ @@ -4870,6 +4911,7 @@ $root.jspb = (function() { } /** + * OptionalGroup id. * @type {string} */ OptionalGroup.prototype.id = ""; @@ -5030,14 +5072,13 @@ $root.jspb = (function() { /** * Properties of a TestGroup1. * @typedef jspb.test.TestGroup1$Properties - * @type Object + * @type {Object} * @property {jspb.test.TestGroup.RepeatedGroup$Properties} [group] TestGroup1 group. */ /** * Constructs a new TestGroup1. * @exports jspb.test.TestGroup1 - * @implements jspb.test.TestGroup1$Properties * @constructor * @param {jspb.test.TestGroup1$Properties=} [properties] Properties to set */ @@ -5048,6 +5089,7 @@ $root.jspb = (function() { } /** + * TestGroup1 group. * @type {jspb.test.TestGroup.RepeatedGroup$Properties|undefined} */ TestGroup1.prototype.group = null; @@ -5208,7 +5250,7 @@ $root.jspb = (function() { /** * Properties of a TestReservedNames. * @typedef jspb.test.TestReservedNames$Properties - * @type Object + * @type {Object} * @property {number} [extension] TestReservedNames extension. * @property {number} [".jspb.test.TestReservedNamesExtension.foo"] TestReservedNames .jspb.test.TestReservedNamesExtension.foo. */ @@ -5216,7 +5258,6 @@ $root.jspb = (function() { /** * Constructs a new TestReservedNames. * @exports jspb.test.TestReservedNames - * @implements jspb.test.TestReservedNames$Properties * @constructor * @param {jspb.test.TestReservedNames$Properties=} [properties] Properties to set */ @@ -5227,11 +5268,13 @@ $root.jspb = (function() { } /** + * TestReservedNames extension. * @type {number|undefined} */ TestReservedNames.prototype.extension = 0; /** + * TestReservedNames .jspb.test.TestReservedNamesExtension.foo. * @type {number|undefined} */ TestReservedNames.prototype[".jspb.test.TestReservedNamesExtension.foo"] = 0; @@ -5401,13 +5444,12 @@ $root.jspb = (function() { /** * Properties of a TestReservedNamesExtension. * @typedef jspb.test.TestReservedNamesExtension$Properties - * @type Object + * @type {Object} */ /** * Constructs a new TestReservedNamesExtension. * @exports jspb.test.TestReservedNamesExtension - * @implements jspb.test.TestReservedNamesExtension$Properties * @constructor * @param {jspb.test.TestReservedNamesExtension$Properties=} [properties] Properties to set */ @@ -5550,7 +5592,7 @@ $root.jspb = (function() { /** * Properties of a TestMessageWithOneof. * @typedef jspb.test.TestMessageWithOneof$Properties - * @type Object + * @type {Object} * @property {string} [pone] TestMessageWithOneof pone. * @property {string} [pthree] TestMessageWithOneof pthree. * @property {jspb.test.TestMessageWithOneof$Properties} [rone] TestMessageWithOneof rone. @@ -5566,7 +5608,6 @@ $root.jspb = (function() { /** * Constructs a new TestMessageWithOneof. * @exports jspb.test.TestMessageWithOneof - * @implements jspb.test.TestMessageWithOneof$Properties * @constructor * @param {jspb.test.TestMessageWithOneof$Properties=} [properties] Properties to set */ @@ -5578,51 +5619,61 @@ $root.jspb = (function() { } /** + * TestMessageWithOneof pone. * @type {string|undefined} */ TestMessageWithOneof.prototype.pone = ""; /** + * TestMessageWithOneof pthree. * @type {string|undefined} */ TestMessageWithOneof.prototype.pthree = ""; /** + * TestMessageWithOneof rone. * @type {jspb.test.TestMessageWithOneof$Properties|undefined} */ TestMessageWithOneof.prototype.rone = null; /** + * TestMessageWithOneof rtwo. * @type {string|undefined} */ TestMessageWithOneof.prototype.rtwo = ""; /** + * TestMessageWithOneof normalField. * @type {boolean|undefined} */ TestMessageWithOneof.prototype.normalField = false; /** + * TestMessageWithOneof repeatedField. * @type {Array.|undefined} */ TestMessageWithOneof.prototype.repeatedField = $util.emptyArray; /** + * TestMessageWithOneof aone. * @type {number|undefined} */ TestMessageWithOneof.prototype.aone = 1234; /** + * TestMessageWithOneof atwo. * @type {number|undefined} */ TestMessageWithOneof.prototype.atwo = 0; /** + * TestMessageWithOneof bone. * @type {number|undefined} */ TestMessageWithOneof.prototype.bone = 0; /** + * TestMessageWithOneof btwo. * @type {number|undefined} */ TestMessageWithOneof.prototype.btwo = 1234; @@ -5999,7 +6050,7 @@ $root.jspb = (function() { /** * Properties of a TestEndsWithBytes. * @typedef jspb.test.TestEndsWithBytes$Properties - * @type Object + * @type {Object} * @property {number} [value] TestEndsWithBytes value. * @property {Uint8Array} [data] TestEndsWithBytes data. */ @@ -6007,7 +6058,6 @@ $root.jspb = (function() { /** * Constructs a new TestEndsWithBytes. * @exports jspb.test.TestEndsWithBytes - * @implements jspb.test.TestEndsWithBytes$Properties * @constructor * @param {jspb.test.TestEndsWithBytes$Properties=} [properties] Properties to set */ @@ -6018,11 +6068,13 @@ $root.jspb = (function() { } /** + * TestEndsWithBytes value. * @type {number|undefined} */ TestEndsWithBytes.prototype.value = 0; /** + * TestEndsWithBytes data. * @type {Uint8Array|undefined} */ TestEndsWithBytes.prototype.data = $util.newBuffer([]); @@ -6195,7 +6247,7 @@ $root.jspb = (function() { /** * Properties of a TestMapFieldsNoBinary. * @typedef jspb.test.TestMapFieldsNoBinary$Properties - * @type Object + * @type {Object} * @property {Object.} [mapStringString] TestMapFieldsNoBinary mapStringString. * @property {Object.} [mapStringInt32] TestMapFieldsNoBinary mapStringInt32. * @property {Object.} [mapStringInt64] TestMapFieldsNoBinary mapStringInt64. @@ -6213,7 +6265,6 @@ $root.jspb = (function() { /** * Constructs a new TestMapFieldsNoBinary. * @exports jspb.test.TestMapFieldsNoBinary - * @implements jspb.test.TestMapFieldsNoBinary$Properties * @constructor * @param {jspb.test.TestMapFieldsNoBinary$Properties=} [properties] Properties to set */ @@ -6235,61 +6286,73 @@ $root.jspb = (function() { } /** + * TestMapFieldsNoBinary mapStringString. * @type {Object.|undefined} */ TestMapFieldsNoBinary.prototype.mapStringString = $util.emptyObject; /** + * TestMapFieldsNoBinary mapStringInt32. * @type {Object.|undefined} */ TestMapFieldsNoBinary.prototype.mapStringInt32 = $util.emptyObject; /** + * TestMapFieldsNoBinary mapStringInt64. * @type {Object.|undefined} */ TestMapFieldsNoBinary.prototype.mapStringInt64 = $util.emptyObject; /** + * TestMapFieldsNoBinary mapStringBool. * @type {Object.|undefined} */ TestMapFieldsNoBinary.prototype.mapStringBool = $util.emptyObject; /** + * TestMapFieldsNoBinary mapStringDouble. * @type {Object.|undefined} */ TestMapFieldsNoBinary.prototype.mapStringDouble = $util.emptyObject; /** + * TestMapFieldsNoBinary mapStringEnum. * @type {Object.|undefined} */ TestMapFieldsNoBinary.prototype.mapStringEnum = $util.emptyObject; /** + * TestMapFieldsNoBinary mapStringMsg. * @type {Object.|undefined} */ TestMapFieldsNoBinary.prototype.mapStringMsg = $util.emptyObject; /** + * TestMapFieldsNoBinary mapInt32String. * @type {Object.|undefined} */ TestMapFieldsNoBinary.prototype.mapInt32String = $util.emptyObject; /** + * TestMapFieldsNoBinary mapInt64String. * @type {Object.|undefined} */ TestMapFieldsNoBinary.prototype.mapInt64String = $util.emptyObject; /** + * TestMapFieldsNoBinary mapBoolString. * @type {Object.|undefined} */ TestMapFieldsNoBinary.prototype.mapBoolString = $util.emptyObject; /** + * TestMapFieldsNoBinary testMapFields. * @type {jspb.test.TestMapFieldsNoBinary$Properties|undefined} */ TestMapFieldsNoBinary.prototype.testMapFields = null; /** + * TestMapFieldsNoBinary mapStringTestmapfields. * @type {Object.|undefined} */ TestMapFieldsNoBinary.prototype.mapStringTestmapfields = $util.emptyObject; @@ -6401,7 +6464,7 @@ $root.jspb = (function() { message.mapStringInt64 = {}; key = reader.string(); reader.pos++; - message.mapStringInt64[typeof key === "object" ? $util.longToHash(key) : key] = reader.int64(); + message.mapStringInt64[key] = reader.int64(); break; case 4: reader.skip().pos++; @@ -6449,7 +6512,7 @@ $root.jspb = (function() { message.mapInt64String = {}; key = reader.int64(); reader.pos++; - message.mapInt64String[key] = reader.string(); + message.mapInt64String[typeof key === "object" ? $util.longToHash(key) : key] = reader.string(); break; case 10: reader.skip().pos++; @@ -6874,14 +6937,13 @@ $root.jspb = (function() { /** * Properties of a MapValueMessageNoBinary. * @typedef jspb.test.MapValueMessageNoBinary$Properties - * @type Object + * @type {Object} * @property {number} [foo] MapValueMessageNoBinary foo. */ /** * Constructs a new MapValueMessageNoBinary. * @exports jspb.test.MapValueMessageNoBinary - * @implements jspb.test.MapValueMessageNoBinary$Properties * @constructor * @param {jspb.test.MapValueMessageNoBinary$Properties=} [properties] Properties to set */ @@ -6892,6 +6954,7 @@ $root.jspb = (function() { } /** + * MapValueMessageNoBinary foo. * @type {number|undefined} */ MapValueMessageNoBinary.prototype.foo = 0; @@ -7047,13 +7110,12 @@ $root.jspb = (function() { /** * Properties of a Deeply. * @typedef jspb.test.Deeply$Properties - * @type Object + * @type {Object} */ /** * Constructs a new Deeply. * @exports jspb.test.Deeply - * @implements jspb.test.Deeply$Properties * @constructor * @param {jspb.test.Deeply$Properties=} [properties] Properties to set */ @@ -7193,13 +7255,12 @@ $root.jspb = (function() { /** * Properties of a Nested. * @typedef jspb.test.Deeply.Nested$Properties - * @type Object + * @type {Object} */ /** * Constructs a new Nested. * @exports jspb.test.Deeply.Nested - * @implements jspb.test.Deeply.Nested$Properties * @constructor * @param {jspb.test.Deeply.Nested$Properties=} [properties] Properties to set */ @@ -7339,14 +7400,13 @@ $root.jspb = (function() { /** * Properties of a Message. * @typedef jspb.test.Deeply.Nested.Message$Properties - * @type Object + * @type {Object} * @property {number} [count] Message count. */ /** * Constructs a new Message. * @exports jspb.test.Deeply.Nested.Message - * @implements jspb.test.Deeply.Nested.Message$Properties * @constructor * @param {jspb.test.Deeply.Nested.Message$Properties=} [properties] Properties to set */ @@ -7357,6 +7417,7 @@ $root.jspb = (function() { } /** + * Message count. * @type {number|undefined} */ Message.prototype.count = 0; @@ -7542,14 +7603,13 @@ $root.google = (function() { /** * Properties of a FileDescriptorSet. * @typedef google.protobuf.FileDescriptorSet$Properties - * @type Object + * @type {Object} * @property {Array.} [file] FileDescriptorSet file. */ /** * Constructs a new FileDescriptorSet. * @exports google.protobuf.FileDescriptorSet - * @implements google.protobuf.FileDescriptorSet$Properties * @constructor * @param {google.protobuf.FileDescriptorSet$Properties=} [properties] Properties to set */ @@ -7561,6 +7621,7 @@ $root.google = (function() { } /** + * FileDescriptorSet file. * @type {Array.|undefined} */ FileDescriptorSet.prototype.file = $util.emptyArray; @@ -7736,7 +7797,7 @@ $root.google = (function() { /** * Properties of a FileDescriptorProto. * @typedef google.protobuf.FileDescriptorProto$Properties - * @type Object + * @type {Object} * @property {string} [name] FileDescriptorProto name. * @property {string} ["package"] FileDescriptorProto package. * @property {Array.} [dependency] FileDescriptorProto dependency. @@ -7754,7 +7815,6 @@ $root.google = (function() { /** * Constructs a new FileDescriptorProto. * @exports google.protobuf.FileDescriptorProto - * @implements google.protobuf.FileDescriptorProto$Properties * @constructor * @param {google.protobuf.FileDescriptorProto$Properties=} [properties] Properties to set */ @@ -7772,61 +7832,73 @@ $root.google = (function() { } /** + * FileDescriptorProto name. * @type {string|undefined} */ FileDescriptorProto.prototype.name = ""; /** + * FileDescriptorProto package. * @type {string|undefined} */ FileDescriptorProto.prototype["package"] = ""; /** + * FileDescriptorProto dependency. * @type {Array.|undefined} */ FileDescriptorProto.prototype.dependency = $util.emptyArray; /** + * FileDescriptorProto publicDependency. * @type {Array.|undefined} */ FileDescriptorProto.prototype.publicDependency = $util.emptyArray; /** + * FileDescriptorProto weakDependency. * @type {Array.|undefined} */ FileDescriptorProto.prototype.weakDependency = $util.emptyArray; /** + * FileDescriptorProto messageType. * @type {Array.|undefined} */ FileDescriptorProto.prototype.messageType = $util.emptyArray; /** + * FileDescriptorProto enumType. * @type {Array.|undefined} */ FileDescriptorProto.prototype.enumType = $util.emptyArray; /** + * FileDescriptorProto service. * @type {Array.|undefined} */ FileDescriptorProto.prototype.service = $util.emptyArray; /** + * FileDescriptorProto extension. * @type {Array.|undefined} */ FileDescriptorProto.prototype.extension = $util.emptyArray; /** + * FileDescriptorProto options. * @type {google.protobuf.FileOptions$Properties|undefined} */ FileDescriptorProto.prototype.options = null; /** + * FileDescriptorProto sourceCodeInfo. * @type {google.protobuf.SourceCodeInfo$Properties|undefined} */ FileDescriptorProto.prototype.sourceCodeInfo = null; /** + * FileDescriptorProto syntax. * @type {string|undefined} */ FileDescriptorProto.prototype.syntax = ""; @@ -8273,7 +8345,7 @@ $root.google = (function() { /** * Properties of a DescriptorProto. * @typedef google.protobuf.DescriptorProto$Properties - * @type Object + * @type {Object} * @property {string} [name] DescriptorProto name. * @property {Array.} [field] DescriptorProto field. * @property {Array.} [extension] DescriptorProto extension. @@ -8289,7 +8361,6 @@ $root.google = (function() { /** * Constructs a new DescriptorProto. * @exports google.protobuf.DescriptorProto - * @implements google.protobuf.DescriptorProto$Properties * @constructor * @param {google.protobuf.DescriptorProto$Properties=} [properties] Properties to set */ @@ -8308,51 +8379,61 @@ $root.google = (function() { } /** + * DescriptorProto name. * @type {string|undefined} */ DescriptorProto.prototype.name = ""; /** + * DescriptorProto field. * @type {Array.|undefined} */ DescriptorProto.prototype.field = $util.emptyArray; /** + * DescriptorProto extension. * @type {Array.|undefined} */ DescriptorProto.prototype.extension = $util.emptyArray; /** + * DescriptorProto nestedType. * @type {Array.|undefined} */ DescriptorProto.prototype.nestedType = $util.emptyArray; /** + * DescriptorProto enumType. * @type {Array.|undefined} */ DescriptorProto.prototype.enumType = $util.emptyArray; /** + * DescriptorProto extensionRange. * @type {Array.|undefined} */ DescriptorProto.prototype.extensionRange = $util.emptyArray; /** + * DescriptorProto oneofDecl. * @type {Array.|undefined} */ DescriptorProto.prototype.oneofDecl = $util.emptyArray; /** + * DescriptorProto options. * @type {google.protobuf.MessageOptions$Properties|undefined} */ DescriptorProto.prototype.options = null; /** + * DescriptorProto reservedRange. * @type {Array.|undefined} */ DescriptorProto.prototype.reservedRange = $util.emptyArray; /** + * DescriptorProto reservedName. * @type {Array.|undefined} */ DescriptorProto.prototype.reservedName = $util.emptyArray; @@ -8785,7 +8866,7 @@ $root.google = (function() { /** * Properties of an ExtensionRange. * @typedef google.protobuf.DescriptorProto.ExtensionRange$Properties - * @type Object + * @type {Object} * @property {number} [start] ExtensionRange start. * @property {number} [end] ExtensionRange end. */ @@ -8793,7 +8874,6 @@ $root.google = (function() { /** * Constructs a new ExtensionRange. * @exports google.protobuf.DescriptorProto.ExtensionRange - * @implements google.protobuf.DescriptorProto.ExtensionRange$Properties * @constructor * @param {google.protobuf.DescriptorProto.ExtensionRange$Properties=} [properties] Properties to set */ @@ -8804,11 +8884,13 @@ $root.google = (function() { } /** + * ExtensionRange start. * @type {number|undefined} */ ExtensionRange.prototype.start = 0; /** + * ExtensionRange end. * @type {number|undefined} */ ExtensionRange.prototype.end = 0; @@ -8978,7 +9060,7 @@ $root.google = (function() { /** * Properties of a ReservedRange. * @typedef google.protobuf.DescriptorProto.ReservedRange$Properties - * @type Object + * @type {Object} * @property {number} [start] ReservedRange start. * @property {number} [end] ReservedRange end. */ @@ -8986,7 +9068,6 @@ $root.google = (function() { /** * Constructs a new ReservedRange. * @exports google.protobuf.DescriptorProto.ReservedRange - * @implements google.protobuf.DescriptorProto.ReservedRange$Properties * @constructor * @param {google.protobuf.DescriptorProto.ReservedRange$Properties=} [properties] Properties to set */ @@ -8997,11 +9078,13 @@ $root.google = (function() { } /** + * ReservedRange start. * @type {number|undefined} */ ReservedRange.prototype.start = 0; /** + * ReservedRange end. * @type {number|undefined} */ ReservedRange.prototype.end = 0; @@ -9174,7 +9257,7 @@ $root.google = (function() { /** * Properties of a FieldDescriptorProto. * @typedef google.protobuf.FieldDescriptorProto$Properties - * @type Object + * @type {Object} * @property {string} [name] FieldDescriptorProto name. * @property {number} [number] FieldDescriptorProto number. * @property {google.protobuf.FieldDescriptorProto.Label} [label] FieldDescriptorProto label. @@ -9190,7 +9273,6 @@ $root.google = (function() { /** * Constructs a new FieldDescriptorProto. * @exports google.protobuf.FieldDescriptorProto - * @implements google.protobuf.FieldDescriptorProto$Properties * @constructor * @param {google.protobuf.FieldDescriptorProto$Properties=} [properties] Properties to set */ @@ -9201,51 +9283,61 @@ $root.google = (function() { } /** + * FieldDescriptorProto name. * @type {string|undefined} */ FieldDescriptorProto.prototype.name = ""; /** + * FieldDescriptorProto number. * @type {number|undefined} */ FieldDescriptorProto.prototype.number = 0; /** + * FieldDescriptorProto label. * @type {google.protobuf.FieldDescriptorProto.Label|undefined} */ FieldDescriptorProto.prototype.label = 1; /** + * FieldDescriptorProto type. * @type {google.protobuf.FieldDescriptorProto.Type|undefined} */ FieldDescriptorProto.prototype.type = 1; /** + * FieldDescriptorProto typeName. * @type {string|undefined} */ FieldDescriptorProto.prototype.typeName = ""; /** + * FieldDescriptorProto extendee. * @type {string|undefined} */ FieldDescriptorProto.prototype.extendee = ""; /** + * FieldDescriptorProto defaultValue. * @type {string|undefined} */ FieldDescriptorProto.prototype.defaultValue = ""; /** + * FieldDescriptorProto oneofIndex. * @type {number|undefined} */ FieldDescriptorProto.prototype.oneofIndex = 0; /** + * FieldDescriptorProto jsonName. * @type {string|undefined} */ FieldDescriptorProto.prototype.jsonName = ""; /** + * FieldDescriptorProto options. * @type {google.protobuf.FieldOptions$Properties|undefined} */ FieldDescriptorProto.prototype.options = null; @@ -9699,7 +9791,7 @@ $root.google = (function() { /** * Properties of an OneofDescriptorProto. * @typedef google.protobuf.OneofDescriptorProto$Properties - * @type Object + * @type {Object} * @property {string} [name] OneofDescriptorProto name. * @property {google.protobuf.OneofOptions$Properties} [options] OneofDescriptorProto options. */ @@ -9707,7 +9799,6 @@ $root.google = (function() { /** * Constructs a new OneofDescriptorProto. * @exports google.protobuf.OneofDescriptorProto - * @implements google.protobuf.OneofDescriptorProto$Properties * @constructor * @param {google.protobuf.OneofDescriptorProto$Properties=} [properties] Properties to set */ @@ -9718,11 +9809,13 @@ $root.google = (function() { } /** + * OneofDescriptorProto name. * @type {string|undefined} */ OneofDescriptorProto.prototype.name = ""; /** + * OneofDescriptorProto options. * @type {google.protobuf.OneofOptions$Properties|undefined} */ OneofDescriptorProto.prototype.options = null; @@ -9897,7 +9990,7 @@ $root.google = (function() { /** * Properties of an EnumDescriptorProto. * @typedef google.protobuf.EnumDescriptorProto$Properties - * @type Object + * @type {Object} * @property {string} [name] EnumDescriptorProto name. * @property {Array.} [value] EnumDescriptorProto value. * @property {google.protobuf.EnumOptions$Properties} [options] EnumDescriptorProto options. @@ -9906,7 +9999,6 @@ $root.google = (function() { /** * Constructs a new EnumDescriptorProto. * @exports google.protobuf.EnumDescriptorProto - * @implements google.protobuf.EnumDescriptorProto$Properties * @constructor * @param {google.protobuf.EnumDescriptorProto$Properties=} [properties] Properties to set */ @@ -9918,16 +10010,19 @@ $root.google = (function() { } /** + * EnumDescriptorProto name. * @type {string|undefined} */ EnumDescriptorProto.prototype.name = ""; /** + * EnumDescriptorProto value. * @type {Array.|undefined} */ EnumDescriptorProto.prototype.value = $util.emptyArray; /** + * EnumDescriptorProto options. * @type {google.protobuf.EnumOptions$Properties|undefined} */ EnumDescriptorProto.prototype.options = null; @@ -10136,7 +10231,7 @@ $root.google = (function() { /** * Properties of an EnumValueDescriptorProto. * @typedef google.protobuf.EnumValueDescriptorProto$Properties - * @type Object + * @type {Object} * @property {string} [name] EnumValueDescriptorProto name. * @property {number} [number] EnumValueDescriptorProto number. * @property {google.protobuf.EnumValueOptions$Properties} [options] EnumValueDescriptorProto options. @@ -10145,7 +10240,6 @@ $root.google = (function() { /** * Constructs a new EnumValueDescriptorProto. * @exports google.protobuf.EnumValueDescriptorProto - * @implements google.protobuf.EnumValueDescriptorProto$Properties * @constructor * @param {google.protobuf.EnumValueDescriptorProto$Properties=} [properties] Properties to set */ @@ -10156,16 +10250,19 @@ $root.google = (function() { } /** + * EnumValueDescriptorProto name. * @type {string|undefined} */ EnumValueDescriptorProto.prototype.name = ""; /** + * EnumValueDescriptorProto number. * @type {number|undefined} */ EnumValueDescriptorProto.prototype.number = 0; /** + * EnumValueDescriptorProto options. * @type {google.protobuf.EnumValueOptions$Properties|undefined} */ EnumValueDescriptorProto.prototype.options = null; @@ -10353,7 +10450,7 @@ $root.google = (function() { /** * Properties of a ServiceDescriptorProto. * @typedef google.protobuf.ServiceDescriptorProto$Properties - * @type Object + * @type {Object} * @property {string} [name] ServiceDescriptorProto name. * @property {Array.} [method] ServiceDescriptorProto method. * @property {google.protobuf.ServiceOptions$Properties} [options] ServiceDescriptorProto options. @@ -10362,7 +10459,6 @@ $root.google = (function() { /** * Constructs a new ServiceDescriptorProto. * @exports google.protobuf.ServiceDescriptorProto - * @implements google.protobuf.ServiceDescriptorProto$Properties * @constructor * @param {google.protobuf.ServiceDescriptorProto$Properties=} [properties] Properties to set */ @@ -10374,16 +10470,19 @@ $root.google = (function() { } /** + * ServiceDescriptorProto name. * @type {string|undefined} */ ServiceDescriptorProto.prototype.name = ""; /** + * ServiceDescriptorProto method. * @type {Array.|undefined} */ ServiceDescriptorProto.prototype.method = $util.emptyArray; /** + * ServiceDescriptorProto options. * @type {google.protobuf.ServiceOptions$Properties|undefined} */ ServiceDescriptorProto.prototype.options = null; @@ -10592,7 +10691,7 @@ $root.google = (function() { /** * Properties of a MethodDescriptorProto. * @typedef google.protobuf.MethodDescriptorProto$Properties - * @type Object + * @type {Object} * @property {string} [name] MethodDescriptorProto name. * @property {string} [inputType] MethodDescriptorProto inputType. * @property {string} [outputType] MethodDescriptorProto outputType. @@ -10604,7 +10703,6 @@ $root.google = (function() { /** * Constructs a new MethodDescriptorProto. * @exports google.protobuf.MethodDescriptorProto - * @implements google.protobuf.MethodDescriptorProto$Properties * @constructor * @param {google.protobuf.MethodDescriptorProto$Properties=} [properties] Properties to set */ @@ -10615,31 +10713,37 @@ $root.google = (function() { } /** + * MethodDescriptorProto name. * @type {string|undefined} */ MethodDescriptorProto.prototype.name = ""; /** + * MethodDescriptorProto inputType. * @type {string|undefined} */ MethodDescriptorProto.prototype.inputType = ""; /** + * MethodDescriptorProto outputType. * @type {string|undefined} */ MethodDescriptorProto.prototype.outputType = ""; /** + * MethodDescriptorProto options. * @type {google.protobuf.MethodOptions$Properties|undefined} */ MethodDescriptorProto.prototype.options = null; /** + * MethodDescriptorProto clientStreaming. * @type {boolean|undefined} */ MethodDescriptorProto.prototype.clientStreaming = false; /** + * MethodDescriptorProto serverStreaming. * @type {boolean|undefined} */ MethodDescriptorProto.prototype.serverStreaming = false; @@ -10866,7 +10970,7 @@ $root.google = (function() { /** * Properties of a FileOptions. * @typedef google.protobuf.FileOptions$Properties - * @type Object + * @type {Object} * @property {string} [javaPackage] FileOptions javaPackage. * @property {string} [javaOuterClassname] FileOptions javaOuterClassname. * @property {boolean} [javaMultipleFiles] FileOptions javaMultipleFiles. @@ -10887,7 +10991,6 @@ $root.google = (function() { /** * Constructs a new FileOptions. * @exports google.protobuf.FileOptions - * @implements google.protobuf.FileOptions$Properties * @constructor * @param {google.protobuf.FileOptions$Properties=} [properties] Properties to set */ @@ -10899,76 +11002,91 @@ $root.google = (function() { } /** + * FileOptions javaPackage. * @type {string|undefined} */ FileOptions.prototype.javaPackage = ""; /** + * FileOptions javaOuterClassname. * @type {string|undefined} */ FileOptions.prototype.javaOuterClassname = ""; /** + * FileOptions javaMultipleFiles. * @type {boolean|undefined} */ FileOptions.prototype.javaMultipleFiles = false; /** + * FileOptions javaGenerateEqualsAndHash. * @type {boolean|undefined} */ FileOptions.prototype.javaGenerateEqualsAndHash = false; /** + * FileOptions javaStringCheckUtf8. * @type {boolean|undefined} */ FileOptions.prototype.javaStringCheckUtf8 = false; /** + * FileOptions optimizeFor. * @type {google.protobuf.FileOptions.OptimizeMode|undefined} */ FileOptions.prototype.optimizeFor = 1; /** + * FileOptions goPackage. * @type {string|undefined} */ FileOptions.prototype.goPackage = ""; /** + * FileOptions ccGenericServices. * @type {boolean|undefined} */ FileOptions.prototype.ccGenericServices = false; /** + * FileOptions javaGenericServices. * @type {boolean|undefined} */ FileOptions.prototype.javaGenericServices = false; /** + * FileOptions pyGenericServices. * @type {boolean|undefined} */ FileOptions.prototype.pyGenericServices = false; /** + * FileOptions deprecated. * @type {boolean|undefined} */ FileOptions.prototype.deprecated = false; /** + * FileOptions ccEnableArenas. * @type {boolean|undefined} */ FileOptions.prototype.ccEnableArenas = false; /** + * FileOptions objcClassPrefix. * @type {string|undefined} */ FileOptions.prototype.objcClassPrefix = ""; /** + * FileOptions csharpNamespace. * @type {string|undefined} */ FileOptions.prototype.csharpNamespace = ""; /** + * FileOptions uninterpretedOption. * @type {Array.|undefined} */ FileOptions.prototype.uninterpretedOption = $util.emptyArray; @@ -11363,7 +11481,7 @@ $root.google = (function() { /** * Properties of a MessageOptions. * @typedef google.protobuf.MessageOptions$Properties - * @type Object + * @type {Object} * @property {boolean} [messageSetWireFormat] MessageOptions messageSetWireFormat. * @property {boolean} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor. * @property {boolean} [deprecated] MessageOptions deprecated. @@ -11374,7 +11492,6 @@ $root.google = (function() { /** * Constructs a new MessageOptions. * @exports google.protobuf.MessageOptions - * @implements google.protobuf.MessageOptions$Properties * @constructor * @param {google.protobuf.MessageOptions$Properties=} [properties] Properties to set */ @@ -11386,26 +11503,31 @@ $root.google = (function() { } /** + * MessageOptions messageSetWireFormat. * @type {boolean|undefined} */ MessageOptions.prototype.messageSetWireFormat = false; /** + * MessageOptions noStandardDescriptorAccessor. * @type {boolean|undefined} */ MessageOptions.prototype.noStandardDescriptorAccessor = false; /** + * MessageOptions deprecated. * @type {boolean|undefined} */ MessageOptions.prototype.deprecated = false; /** + * MessageOptions mapEntry. * @type {boolean|undefined} */ MessageOptions.prototype.mapEntry = false; /** + * MessageOptions uninterpretedOption. * @type {Array.|undefined} */ MessageOptions.prototype.uninterpretedOption = $util.emptyArray; @@ -11635,7 +11757,7 @@ $root.google = (function() { /** * Properties of a FieldOptions. * @typedef google.protobuf.FieldOptions$Properties - * @type Object + * @type {Object} * @property {google.protobuf.FieldOptions.CType} [ctype] FieldOptions ctype. * @property {boolean} [packed] FieldOptions packed. * @property {google.protobuf.FieldOptions.JSType} [jstype] FieldOptions jstype. @@ -11648,7 +11770,6 @@ $root.google = (function() { /** * Constructs a new FieldOptions. * @exports google.protobuf.FieldOptions - * @implements google.protobuf.FieldOptions$Properties * @constructor * @param {google.protobuf.FieldOptions$Properties=} [properties] Properties to set */ @@ -11660,36 +11781,43 @@ $root.google = (function() { } /** + * FieldOptions ctype. * @type {google.protobuf.FieldOptions.CType|undefined} */ FieldOptions.prototype.ctype = 0; /** + * FieldOptions packed. * @type {boolean|undefined} */ FieldOptions.prototype.packed = false; /** + * FieldOptions jstype. * @type {google.protobuf.FieldOptions.JSType|undefined} */ FieldOptions.prototype.jstype = 0; /** + * FieldOptions lazy. * @type {boolean|undefined} */ FieldOptions.prototype.lazy = false; /** + * FieldOptions deprecated. * @type {boolean|undefined} */ FieldOptions.prototype.deprecated = false; /** + * FieldOptions weak. * @type {boolean|undefined} */ FieldOptions.prototype.weak = false; /** + * FieldOptions uninterpretedOption. * @type {Array.|undefined} */ FieldOptions.prototype.uninterpretedOption = $util.emptyArray; @@ -12015,14 +12143,13 @@ $root.google = (function() { /** * Properties of an OneofOptions. * @typedef google.protobuf.OneofOptions$Properties - * @type Object + * @type {Object} * @property {Array.} [uninterpretedOption] OneofOptions uninterpretedOption. */ /** * Constructs a new OneofOptions. * @exports google.protobuf.OneofOptions - * @implements google.protobuf.OneofOptions$Properties * @constructor * @param {google.protobuf.OneofOptions$Properties=} [properties] Properties to set */ @@ -12034,6 +12161,7 @@ $root.google = (function() { } /** + * OneofOptions uninterpretedOption. * @type {Array.|undefined} */ OneofOptions.prototype.uninterpretedOption = $util.emptyArray; @@ -12209,7 +12337,7 @@ $root.google = (function() { /** * Properties of an EnumOptions. * @typedef google.protobuf.EnumOptions$Properties - * @type Object + * @type {Object} * @property {boolean} [allowAlias] EnumOptions allowAlias. * @property {boolean} [deprecated] EnumOptions deprecated. * @property {Array.} [uninterpretedOption] EnumOptions uninterpretedOption. @@ -12219,7 +12347,6 @@ $root.google = (function() { /** * Constructs a new EnumOptions. * @exports google.protobuf.EnumOptions - * @implements google.protobuf.EnumOptions$Properties * @constructor * @param {google.protobuf.EnumOptions$Properties=} [properties] Properties to set */ @@ -12231,21 +12358,25 @@ $root.google = (function() { } /** + * EnumOptions allowAlias. * @type {boolean|undefined} */ EnumOptions.prototype.allowAlias = false; /** + * EnumOptions deprecated. * @type {boolean|undefined} */ EnumOptions.prototype.deprecated = false; /** + * EnumOptions uninterpretedOption. * @type {Array.|undefined} */ EnumOptions.prototype.uninterpretedOption = $util.emptyArray; /** + * EnumOptions .jspb.test.IsExtension.simpleOption. * @type {string|undefined} */ EnumOptions.prototype[".jspb.test.IsExtension.simpleOption"] = ""; @@ -12462,7 +12593,7 @@ $root.google = (function() { /** * Properties of an EnumValueOptions. * @typedef google.protobuf.EnumValueOptions$Properties - * @type Object + * @type {Object} * @property {boolean} [deprecated] EnumValueOptions deprecated. * @property {Array.} [uninterpretedOption] EnumValueOptions uninterpretedOption. */ @@ -12470,7 +12601,6 @@ $root.google = (function() { /** * Constructs a new EnumValueOptions. * @exports google.protobuf.EnumValueOptions - * @implements google.protobuf.EnumValueOptions$Properties * @constructor * @param {google.protobuf.EnumValueOptions$Properties=} [properties] Properties to set */ @@ -12482,11 +12612,13 @@ $root.google = (function() { } /** + * EnumValueOptions deprecated. * @type {boolean|undefined} */ EnumValueOptions.prototype.deprecated = false; /** + * EnumValueOptions uninterpretedOption. * @type {Array.|undefined} */ EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; @@ -12676,7 +12808,7 @@ $root.google = (function() { /** * Properties of a ServiceOptions. * @typedef google.protobuf.ServiceOptions$Properties - * @type Object + * @type {Object} * @property {boolean} [deprecated] ServiceOptions deprecated. * @property {Array.} [uninterpretedOption] ServiceOptions uninterpretedOption. */ @@ -12684,7 +12816,6 @@ $root.google = (function() { /** * Constructs a new ServiceOptions. * @exports google.protobuf.ServiceOptions - * @implements google.protobuf.ServiceOptions$Properties * @constructor * @param {google.protobuf.ServiceOptions$Properties=} [properties] Properties to set */ @@ -12696,11 +12827,13 @@ $root.google = (function() { } /** + * ServiceOptions deprecated. * @type {boolean|undefined} */ ServiceOptions.prototype.deprecated = false; /** + * ServiceOptions uninterpretedOption. * @type {Array.|undefined} */ ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; @@ -12890,7 +13023,7 @@ $root.google = (function() { /** * Properties of a MethodOptions. * @typedef google.protobuf.MethodOptions$Properties - * @type Object + * @type {Object} * @property {boolean} [deprecated] MethodOptions deprecated. * @property {google.protobuf.MethodOptions.IdempotencyLevel} [idempotencyLevel] MethodOptions idempotencyLevel. * @property {Array.} [uninterpretedOption] MethodOptions uninterpretedOption. @@ -12899,7 +13032,6 @@ $root.google = (function() { /** * Constructs a new MethodOptions. * @exports google.protobuf.MethodOptions - * @implements google.protobuf.MethodOptions$Properties * @constructor * @param {google.protobuf.MethodOptions$Properties=} [properties] Properties to set */ @@ -12911,16 +13043,19 @@ $root.google = (function() { } /** + * MethodOptions deprecated. * @type {boolean|undefined} */ MethodOptions.prototype.deprecated = false; /** + * MethodOptions idempotencyLevel. * @type {google.protobuf.MethodOptions.IdempotencyLevel|undefined} */ MethodOptions.prototype.idempotencyLevel = 0; /** + * MethodOptions uninterpretedOption. * @type {Array.|undefined} */ MethodOptions.prototype.uninterpretedOption = $util.emptyArray; @@ -13159,7 +13294,7 @@ $root.google = (function() { /** * Properties of an UninterpretedOption. * @typedef google.protobuf.UninterpretedOption$Properties - * @type Object + * @type {Object} * @property {Array.} [name] UninterpretedOption name. * @property {string} [identifierValue] UninterpretedOption identifierValue. * @property {number|Long} [positiveIntValue] UninterpretedOption positiveIntValue. @@ -13172,7 +13307,6 @@ $root.google = (function() { /** * Constructs a new UninterpretedOption. * @exports google.protobuf.UninterpretedOption - * @implements google.protobuf.UninterpretedOption$Properties * @constructor * @param {google.protobuf.UninterpretedOption$Properties=} [properties] Properties to set */ @@ -13184,36 +13318,43 @@ $root.google = (function() { } /** + * UninterpretedOption name. * @type {Array.|undefined} */ UninterpretedOption.prototype.name = $util.emptyArray; /** + * UninterpretedOption identifierValue. * @type {string|undefined} */ UninterpretedOption.prototype.identifierValue = ""; /** + * UninterpretedOption positiveIntValue. * @type {number|Long|undefined} */ UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** + * UninterpretedOption negativeIntValue. * @type {number|Long|undefined} */ UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** + * UninterpretedOption doubleValue. * @type {number|undefined} */ UninterpretedOption.prototype.doubleValue = 0; /** + * UninterpretedOption stringValue. * @type {Uint8Array|undefined} */ UninterpretedOption.prototype.stringValue = $util.newBuffer([]); /** + * UninterpretedOption aggregateValue. * @type {string|undefined} */ UninterpretedOption.prototype.aggregateValue = ""; @@ -13497,7 +13638,7 @@ $root.google = (function() { /** * Properties of a NamePart. * @typedef google.protobuf.UninterpretedOption.NamePart$Properties - * @type Object + * @type {Object} * @property {string} namePart NamePart namePart. * @property {boolean} isExtension NamePart isExtension. */ @@ -13505,7 +13646,6 @@ $root.google = (function() { /** * Constructs a new NamePart. * @exports google.protobuf.UninterpretedOption.NamePart - * @implements google.protobuf.UninterpretedOption.NamePart$Properties * @constructor * @param {google.protobuf.UninterpretedOption.NamePart$Properties=} [properties] Properties to set */ @@ -13516,11 +13656,13 @@ $root.google = (function() { } /** + * NamePart namePart. * @type {string} */ NamePart.prototype.namePart = ""; /** + * NamePart isExtension. * @type {boolean} */ NamePart.prototype.isExtension = false; @@ -13693,14 +13835,13 @@ $root.google = (function() { /** * Properties of a SourceCodeInfo. * @typedef google.protobuf.SourceCodeInfo$Properties - * @type Object + * @type {Object} * @property {Array.} [location] SourceCodeInfo location. */ /** * Constructs a new SourceCodeInfo. * @exports google.protobuf.SourceCodeInfo - * @implements google.protobuf.SourceCodeInfo$Properties * @constructor * @param {google.protobuf.SourceCodeInfo$Properties=} [properties] Properties to set */ @@ -13712,6 +13853,7 @@ $root.google = (function() { } /** + * SourceCodeInfo location. * @type {Array.|undefined} */ SourceCodeInfo.prototype.location = $util.emptyArray; @@ -13884,7 +14026,7 @@ $root.google = (function() { /** * Properties of a Location. * @typedef google.protobuf.SourceCodeInfo.Location$Properties - * @type Object + * @type {Object} * @property {Array.} [path] Location path. * @property {Array.} [span] Location span. * @property {string} [leadingComments] Location leadingComments. @@ -13895,7 +14037,6 @@ $root.google = (function() { /** * Constructs a new Location. * @exports google.protobuf.SourceCodeInfo.Location - * @implements google.protobuf.SourceCodeInfo.Location$Properties * @constructor * @param {google.protobuf.SourceCodeInfo.Location$Properties=} [properties] Properties to set */ @@ -13909,26 +14050,31 @@ $root.google = (function() { } /** + * Location path. * @type {Array.|undefined} */ Location.prototype.path = $util.emptyArray; /** + * Location span. * @type {Array.|undefined} */ Location.prototype.span = $util.emptyArray; /** + * Location leadingComments. * @type {string|undefined} */ Location.prototype.leadingComments = ""; /** + * Location trailingComments. * @type {string|undefined} */ Location.prototype.trailingComments = ""; /** + * Location leadingDetachedComments. * @type {Array.|undefined} */ Location.prototype.leadingDetachedComments = $util.emptyArray; @@ -14203,14 +14349,13 @@ $root.google = (function() { /** * Properties of a GeneratedCodeInfo. * @typedef google.protobuf.GeneratedCodeInfo$Properties - * @type Object + * @type {Object} * @property {Array.} [annotation] GeneratedCodeInfo annotation. */ /** * Constructs a new GeneratedCodeInfo. * @exports google.protobuf.GeneratedCodeInfo - * @implements google.protobuf.GeneratedCodeInfo$Properties * @constructor * @param {google.protobuf.GeneratedCodeInfo$Properties=} [properties] Properties to set */ @@ -14222,6 +14367,7 @@ $root.google = (function() { } /** + * GeneratedCodeInfo annotation. * @type {Array.|undefined} */ GeneratedCodeInfo.prototype.annotation = $util.emptyArray; @@ -14394,7 +14540,7 @@ $root.google = (function() { /** * Properties of an Annotation. * @typedef google.protobuf.GeneratedCodeInfo.Annotation$Properties - * @type Object + * @type {Object} * @property {Array.} [path] Annotation path. * @property {string} [sourceFile] Annotation sourceFile. * @property {number} [begin] Annotation begin. @@ -14404,7 +14550,6 @@ $root.google = (function() { /** * Constructs a new Annotation. * @exports google.protobuf.GeneratedCodeInfo.Annotation - * @implements google.protobuf.GeneratedCodeInfo.Annotation$Properties * @constructor * @param {google.protobuf.GeneratedCodeInfo.Annotation$Properties=} [properties] Properties to set */ @@ -14416,21 +14561,25 @@ $root.google = (function() { } /** + * Annotation path. * @type {Array.|undefined} */ Annotation.prototype.path = $util.emptyArray; /** + * Annotation sourceFile. * @type {string|undefined} */ Annotation.prototype.sourceFile = ""; /** + * Annotation begin. * @type {number|undefined} */ Annotation.prototype.begin = 0; /** + * Annotation end. * @type {number|undefined} */ Annotation.prototype.end = 0;