diff --git a/README.md b/README.md index 02423a51e..668b976b6 100644 --- a/README.md +++ b/README.md @@ -237,13 +237,23 @@ There is also an [example for streaming RPC](https://github.com/dcodeIO/protobuf ### Usage with TypeScript -```ts -/// +Under node.js: +```ts import * as protobuf from "protobufjs"; ... ``` +In the browser: + +```ts +/// +import * as protobuf from "path/to/protobuf.js"; +... +``` + +If you need long support, there is also a [TypeScript definition](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/types-2.0/long/index.d.ts) for that (on npm: [@types/long](https://www.npmjs.com/package/@types/long)). + See also: [Generating your own TypeScript definitions](https://github.com/dcodeIO/protobuf.js#generating-typescript-definitions-from-static-modules) Module Structure @@ -453,7 +463,7 @@ Building the documentation to `docs/`: $> npm run docs ``` -Building the TypeScript definition to `types/`: +Building the TypeScript definition to `index.d.ts`: ``` $> npm run types diff --git a/cli/pbts.js b/cli/pbts.js index 93dc4bea4..51abece73 100644 --- a/cli/pbts.js +++ b/cli/pbts.js @@ -92,11 +92,11 @@ exports.main = function(args, callback) { } var output = [ - "// $> pbts " + process.argv.slice(2).join(" "), + "// $> pbts " + args.join(" "), "// Generated " + (new Date()).toUTCString().replace(/GMT/, "UTC"), "" ]; - if (argv.name !== "protobufjs") + if (argv.name !== "protobuf") output.push( "import * as $protobuf from \"protobufjs\";", "" @@ -108,6 +108,8 @@ exports.main = function(args, callback) { fs.writeFileSync(argv.out, output); else process.stdout.write(output, "utf8"); + if (callback) + callback(null); } catch (err) { if (callback) callback(err); diff --git a/types/protobuf.js.d.ts b/index.d.ts similarity index 99% rename from types/protobuf.js.d.ts rename to index.d.ts index b18bc3e4d..508cf44f7 100644 --- a/types/protobuf.js.d.ts +++ b/index.d.ts @@ -1,7 +1,10 @@ -// $> pbts --name protobufjs --out types/protobuf.js.d.ts src -// Generated Fri, 30 Dec 2016 12:21:10 UTC +// $> pbts --name protobuf --out index.d.ts src +// Generated Fri, 30 Dec 2016 15:32:08 UTC -declare module "protobufjs" { +export = protobuf; +export as namespace protobuf; + +declare namespace protobuf { /** * Constructs a class instance, which is also a message prototype. @@ -1358,7 +1361,7 @@ declare module "protobufjs" { * Streaming RPC helpers. * @namespace */ - module rpc { + namespace rpc { /** * Constructs a new RPC service instance. @@ -1676,7 +1679,7 @@ declare module "protobufjs" { * Common type constants. * @namespace */ - module types { + namespace types { /** * Basic type wire types. @@ -1896,7 +1899,7 @@ declare module "protobufjs" { * Various utility functions. * @namespace */ - module util { + namespace util { /** * Returns a promise from a node-style callback function. @@ -1913,7 +1916,7 @@ declare module "protobufjs" { * @memberof util * @namespace */ - module base64 { + namespace base64 { /** * Calculates the byte length of a base64 encoded string. @@ -2133,7 +2136,7 @@ declare module "protobufjs" { * @memberof util * @namespace */ - module path { + namespace path { /** * Tests if the specified path is absolute. @@ -2299,7 +2302,7 @@ declare module "protobufjs" { * @memberof util * @namespace */ - module utf8 { + namespace utf8 { /** * Calculates the UTF8 byte length of a string. diff --git a/lib/tsd-jsdoc/publish.js b/lib/tsd-jsdoc/publish.js index 97efab01a..802318755 100644 --- a/lib/tsd-jsdoc/publish.js +++ b/lib/tsd-jsdoc/publish.js @@ -69,7 +69,10 @@ exports.publish = function publish(taffy, opts) { // wrap everything in a module if configured if (options.module) { - writeln("declare module ", JSON.stringify(options.module), " {"); + writeln("export = ", options.module, ";"); + writeln("export as namespace " + options.module, ";"); + writeln(); + writeln("declare namespace ", options.module, " {"); ++indent; } @@ -312,7 +315,7 @@ function handleElement(element, parent) { // handles (just) a namespace function handleNamespace(element, parent) { begin(element); - writeln("module ", element.name, " {"); + writeln("namespace ", element.name, " {"); ++indent; getChildrenOf(element).forEach(function(child) { handleElement(child, element); @@ -378,7 +381,7 @@ function handleClass(element, parent) { if (innerClasses.length) { writeln(""); begin(element); - writeln("module ", element.name, " {"); + writeln("namespace ", element.name, " {"); ++indent; innerClasses.forEach(function(inner) { handleClass(inner, element); diff --git a/package.json b/package.json index 9c3a10057..9f0c7a8dc 100644 --- a/package.json +++ b/package.json @@ -18,12 +18,12 @@ "serialization", "encoding" ], - "main": "src/index", + "main": "index.js", + "types": "index.d.ts", "bin": { "pbjs": "bin/pbjs", "pbts": "bin/pbts" }, - "types": "types/protobuf.js.d.ts", "scripts": { "bench": "node bench", "build": "gulp", @@ -35,7 +35,7 @@ "prepublish": "node scripts/prepublish", "prof": "node bench/prof", "test": "tape tests/*.js | tap-spec", - "types": "node bin/pbts --name protobufjs --out types/protobuf.js.d.ts src && node node_modules/typescript/bin/tsc types/test.ts --lib es2015 --noEmit", + "types": "node bin/pbts --name protobuf --out index.d.ts src && tsc tests/typescript.ts --lib es2015 --noEmit && tsc tests/data/test.ts --lib es2015 --noEmit", "zuul": "zuul --ui tape --no-coverage --concurrency 4 -- tests/*.js", "zuul-local": "zuul --ui tape --concurrency 1 --local 8080 --disable-tunnel -- tests/*.js", "make": "npm run lint && npm run test && npm run types && npm run build", @@ -54,10 +54,10 @@ "@protobufjs/utf8": "^1.0.5" }, "optionalDependencies": { - "long": "^3.2.0" + "long": "^3.2.0", + "@types/long": "^3.0.31" }, "devDependencies": { - "@types/long": "^3.0.31", "@types/node": "6.0.54", "benchmark": "^2.1.3", "browserify": "^13.1.1", diff --git a/scripts/gentests.js b/scripts/gentests.js index 2e9cbea56..1f7b4e647 100644 --- a/scripts/gentests.js +++ b/scripts/gentests.js @@ -1,6 +1,7 @@ var fs = require("fs"), path = require("path"), - pbjs = require("../cli/pbjs"); + pbjs = require("../cli/pbjs"), + pbts = require("../cli/pbts"); [ "tests/data/package.proto", @@ -20,6 +21,26 @@ var fs = require("fs"), ], function(err) { if (err) throw err; - fs.writeFileSync(out, fs.readFileSync(out).toString("utf8").replace(/\"protobufjs\/runtime\"/, "\"../../runtime\""), "utf8"); + var pathToRuntime = path.relative(path.dirname(out), "runtime").replace(/\\/g, "/"); + fs.writeFileSync(out, fs.readFileSync(out).toString("utf8").replace(/\"protobufjs\/runtime\"/g, JSON.stringify(pathToRuntime)), "utf8"); + console.log("pbjs: " + file + " -> " + out); }) }); + +[ + "tests/data/test.js" +] +.forEach(function(file) { + var out = file.replace(/\.js$/, ".d.ts"); + pbts.main([ + "--name", path.basename(out, ".d.ts"), + "--out", out, + file + ], function(err) { + if (err) + throw err; + var pathToProtobufjs = path.relative(path.dirname(out), "").replace(/\\/g, "/"); + fs.writeFileSync(out, fs.readFileSync(out).toString("utf8").replace(/\"protobufjs\"/g, JSON.stringify(pathToProtobufjs)), "utf8"); + console.log("pbts: " + file + " -> " + out); + }); +}); \ No newline at end of file diff --git a/src/util/aspromise/index.d.ts b/src/util/aspromise/index.d.ts index 912560b85..687e62217 100644 --- a/src/util/aspromise/index.d.ts +++ b/src/util/aspromise/index.d.ts @@ -1,3 +1,5 @@ +export = asPromise; + /** * Returns a promise from a node-style callback function. * @memberof util diff --git a/src/util/base64/index.d.ts b/src/util/base64/index.d.ts index f7f492bec..ec7883320 100644 --- a/src/util/base64/index.d.ts +++ b/src/util/base64/index.d.ts @@ -1,9 +1,11 @@ +export = base64; + /** * A minimal base64 implementation for number arrays. * @memberof util * @namespace */ -declare module base64 { +declare namespace base64 { /** * Calculates the byte length of a base64 encoded string. diff --git a/src/util/codegen/index.d.ts b/src/util/codegen/index.d.ts index 96b2eef93..3918ced15 100644 --- a/src/util/codegen/index.d.ts +++ b/src/util/codegen/index.d.ts @@ -1,3 +1,5 @@ +export = codegen; + /** * A codegen instance as returned by {@link codegen}, that also is a sprintf-like appender function. * @typedef Codegen diff --git a/src/util/eventemitter/index.d.ts b/src/util/eventemitter/index.d.ts index 069cdb743..e6c8545a5 100644 --- a/src/util/eventemitter/index.d.ts +++ b/src/util/eventemitter/index.d.ts @@ -1,3 +1,5 @@ +export = EventEmitter; + /** * Constructs a new event emitter instance. * @classdesc A minimal event emitter. diff --git a/src/util/extend/index.d.ts b/src/util/extend/index.d.ts index ee7ad4a6b..9d8da2b78 100644 --- a/src/util/extend/index.d.ts +++ b/src/util/extend/index.d.ts @@ -1,3 +1,5 @@ +export = extend; + /** * Lets the specified constructor extend `this` class. * @memberof util diff --git a/src/util/fetch/index.d.ts b/src/util/fetch/index.d.ts index 710d7994c..dc4fe1854 100644 --- a/src/util/fetch/index.d.ts +++ b/src/util/fetch/index.d.ts @@ -1,3 +1,5 @@ +export = fetch; + /** * Node-style callback as used by {@link util.fetch}. * @typedef FetchCallback diff --git a/src/util/inquire/index.d.ts b/src/util/inquire/index.d.ts index 8ebce566a..1f5a865c9 100644 --- a/src/util/inquire/index.d.ts +++ b/src/util/inquire/index.d.ts @@ -1,3 +1,5 @@ +export = inquire; + /** * Requires a module only if available. * @memberof util diff --git a/src/util/path/index.d.ts b/src/util/path/index.d.ts index b9af93ffb..2222b306c 100644 --- a/src/util/path/index.d.ts +++ b/src/util/path/index.d.ts @@ -1,9 +1,11 @@ +export = path; + /** * A minimal path module to resolve Unix, Windows and URL paths alike. * @memberof util * @namespace */ -declare module path { +declare namespace path { /** * Tests if the specified path is absolute. diff --git a/src/util/pool/index.d.ts b/src/util/pool/index.d.ts index 1f902746c..23fe38c5a 100644 --- a/src/util/pool/index.d.ts +++ b/src/util/pool/index.d.ts @@ -1,3 +1,5 @@ +export = pool; + /** * An allocator as used by {@link util.pool}. * @typedef PoolAllocator diff --git a/src/util/utf8/index.d.ts b/src/util/utf8/index.d.ts index 6fa07bf06..f3e4c5d08 100644 --- a/src/util/utf8/index.d.ts +++ b/src/util/utf8/index.d.ts @@ -1,9 +1,11 @@ +export = utf8; + /** * A minimal UTF8 implementation for number arrays. * @memberof util * @namespace */ -declare module utf8 { +declare namespace utf8 { /** * Calculates the UTF8 byte length of a string. diff --git a/tests/data/mapbox/vector_tile.js b/tests/data/mapbox/vector_tile.js index d800714a6..67793cc87 100644 --- a/tests/data/mapbox/vector_tile.js +++ b/tests/data/mapbox/vector_tile.js @@ -1,6 +1,6 @@ "use strict"; // eslint-disable-line strict -var $protobuf = require("../../runtime"); +var $protobuf = require("../../../runtime"); // Lazily resolved type references var $lazyTypes = []; diff --git a/tests/data/test.d.ts b/tests/data/test.d.ts index 5f4b17cbe..d2eef3c70 100644 --- a/tests/data/test.d.ts +++ b/tests/data/test.d.ts @@ -1,29 +1,26 @@ -// $> pbts tests\data\test.js -// Generated Fri, 30 Dec 2016 12:22:12 UTC +// $> pbts --name test --out tests/data/test.d.ts tests/data/test.js +// Generated Fri, 30 Dec 2016 15:32:46 UTC -import * as $protobuf from "protobufjs"; +import * as $protobuf from "../.."; -/** - * Namespace jspb. - * @exports jspb - * @namespace - */ -declare module jspb { +export = test; +export as namespace test; + +declare namespace test { /** - * Namespace test. - * @exports jspb.test + * Namespace jspb. + * @exports jspb * @namespace */ - module test { + namespace jspb { /** - * Constructs a new Empty. - * @exports jspb.test.Empty - * @constructor - * @param {Object} [properties] Properties to set + * Namespace test. + * @exports jspb.test + * @namespace */ - class Empty { + namespace test { /** * Constructs a new Empty. @@ -31,64 +28,64 @@ declare module jspb { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class Empty { - /** - * Creates a new Empty instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.Empty} Empty instance - */ - static create(properties?: Object): jspb.test.Empty; + /** + * Constructs a new Empty. + * @exports jspb.test.Empty + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Encodes the specified Empty. - * @function - * @param {jspb.test.Empty|Object} message Empty or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.Empty|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Empty instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.Empty} Empty instance + */ + static create(properties?: Object): jspb.test.Empty; - /** - * Encodes the specified Empty, length delimited. - * @param {jspb.test.Empty|Object} message Empty or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.Empty|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Empty. + * @function + * @param {jspb.test.Empty|Object} message Empty or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.Empty|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Empty from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.Empty} Empty - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Empty; + /** + * Encodes the specified Empty, length delimited. + * @param {jspb.test.Empty|Object} message Empty or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.Empty|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Empty from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.Empty} Empty - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Empty; + /** + * Decodes a Empty from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.Empty} Empty + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Empty; - /** - * Verifies a Empty. - * @function - * @param {jspb.test.Empty|Object} message Empty or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.Empty|Object)): string; - } + /** + * Decodes a Empty from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.Empty} Empty + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Empty; - /** - * Constructs a new EnumContainer. - * @exports jspb.test.EnumContainer - * @constructor - * @param {Object} [properties] Properties to set - */ - class EnumContainer { + /** + * Verifies a Empty. + * @function + * @param {jspb.test.Empty|Object} message Empty or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.Empty|Object)): string; + } /** * Constructs a new EnumContainer. @@ -96,70 +93,70 @@ declare module jspb { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class EnumContainer { - /** - * EnumContainer outerEnum. - * @type {number} - */ - outerEnum: number; + /** + * Constructs a new EnumContainer. + * @exports jspb.test.EnumContainer + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Creates a new EnumContainer instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.EnumContainer} EnumContainer instance - */ - static create(properties?: Object): jspb.test.EnumContainer; + /** + * EnumContainer outerEnum. + * @type {number} + */ + outerEnum: number; - /** - * Encodes the specified EnumContainer. - * @function - * @param {jspb.test.EnumContainer|Object} message EnumContainer or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.EnumContainer|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new EnumContainer instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.EnumContainer} EnumContainer instance + */ + static create(properties?: Object): jspb.test.EnumContainer; - /** - * Encodes the specified EnumContainer, length delimited. - * @param {jspb.test.EnumContainer|Object} message EnumContainer or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.EnumContainer|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified EnumContainer. + * @function + * @param {jspb.test.EnumContainer|Object} message EnumContainer or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.EnumContainer|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a EnumContainer from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.EnumContainer} EnumContainer - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.EnumContainer; + /** + * Encodes the specified EnumContainer, length delimited. + * @param {jspb.test.EnumContainer|Object} message EnumContainer or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.EnumContainer|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a EnumContainer from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.EnumContainer} EnumContainer - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.EnumContainer; + /** + * Decodes a EnumContainer from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.EnumContainer} EnumContainer + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.EnumContainer; - /** - * Verifies a EnumContainer. - * @function - * @param {jspb.test.EnumContainer|Object} message EnumContainer or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.EnumContainer|Object)): string; - } + /** + * Decodes a EnumContainer from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.EnumContainer} EnumContainer + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.EnumContainer; - /** - * Constructs a new Simple1. - * @exports jspb.test.Simple1 - * @constructor - * @param {Object} [properties] Properties to set - */ - class Simple1 { + /** + * Verifies a EnumContainer. + * @function + * @param {jspb.test.EnumContainer|Object} message EnumContainer or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.EnumContainer|Object)): string; + } /** * Constructs a new Simple1. @@ -167,82 +164,82 @@ declare module jspb { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class Simple1 { - /** - * Simple1 aString. - * @type {string} - */ - aString: string; + /** + * Constructs a new Simple1. + * @exports jspb.test.Simple1 + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Simple1 aRepeatedString. - * @type {Array.} - */ - aRepeatedString: string[]; + /** + * Simple1 aString. + * @type {string} + */ + aString: string; - /** - * Simple1 aBoolean. - * @type {boolean} - */ - aBoolean: boolean; + /** + * Simple1 aRepeatedString. + * @type {Array.} + */ + aRepeatedString: string[]; - /** - * Creates a new Simple1 instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.Simple1} Simple1 instance - */ - static create(properties?: Object): jspb.test.Simple1; + /** + * Simple1 aBoolean. + * @type {boolean} + */ + aBoolean: boolean; - /** - * Encodes the specified Simple1. - * @function - * @param {jspb.test.Simple1|Object} message Simple1 or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.Simple1|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Simple1 instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.Simple1} Simple1 instance + */ + static create(properties?: Object): jspb.test.Simple1; - /** - * Encodes the specified Simple1, length delimited. - * @param {jspb.test.Simple1|Object} message Simple1 or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.Simple1|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Simple1. + * @function + * @param {jspb.test.Simple1|Object} message Simple1 or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.Simple1|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Simple1 from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.Simple1} Simple1 - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Simple1; + /** + * Encodes the specified Simple1, length delimited. + * @param {jspb.test.Simple1|Object} message Simple1 or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.Simple1|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Simple1 from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.Simple1} Simple1 - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Simple1; + /** + * Decodes a Simple1 from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.Simple1} Simple1 + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Simple1; - /** - * Verifies a Simple1. - * @function - * @param {jspb.test.Simple1|Object} message Simple1 or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.Simple1|Object)): string; - } + /** + * Decodes a Simple1 from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.Simple1} Simple1 + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Simple1; - /** - * Constructs a new Simple2. - * @exports jspb.test.Simple2 - * @constructor - * @param {Object} [properties] Properties to set - */ - class Simple2 { + /** + * Verifies a Simple1. + * @function + * @param {jspb.test.Simple1|Object} message Simple1 or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.Simple1|Object)): string; + } /** * Constructs a new Simple2. @@ -250,76 +247,76 @@ declare module jspb { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class Simple2 { - /** - * Simple2 aString. - * @type {string} - */ - aString: string; + /** + * Constructs a new Simple2. + * @exports jspb.test.Simple2 + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Simple2 aRepeatedString. - * @type {Array.} - */ - aRepeatedString: string[]; + /** + * Simple2 aString. + * @type {string} + */ + aString: string; - /** - * Creates a new Simple2 instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.Simple2} Simple2 instance - */ - static create(properties?: Object): jspb.test.Simple2; + /** + * Simple2 aRepeatedString. + * @type {Array.} + */ + aRepeatedString: string[]; - /** - * Encodes the specified Simple2. - * @function - * @param {jspb.test.Simple2|Object} message Simple2 or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.Simple2|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Simple2 instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.Simple2} Simple2 instance + */ + static create(properties?: Object): jspb.test.Simple2; - /** - * Encodes the specified Simple2, length delimited. - * @param {jspb.test.Simple2|Object} message Simple2 or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.Simple2|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Simple2. + * @function + * @param {jspb.test.Simple2|Object} message Simple2 or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.Simple2|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Simple2 from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.Simple2} Simple2 - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Simple2; + /** + * Encodes the specified Simple2, length delimited. + * @param {jspb.test.Simple2|Object} message Simple2 or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.Simple2|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Simple2 from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.Simple2} Simple2 - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Simple2; + /** + * Decodes a Simple2 from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.Simple2} Simple2 + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Simple2; - /** - * Verifies a Simple2. - * @function - * @param {jspb.test.Simple2|Object} message Simple2 or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.Simple2|Object)): string; - } + /** + * Decodes a Simple2 from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.Simple2} Simple2 + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Simple2; - /** - * Constructs a new SpecialCases. - * @exports jspb.test.SpecialCases - * @constructor - * @param {Object} [properties] Properties to set - */ - class SpecialCases { + /** + * Verifies a Simple2. + * @function + * @param {jspb.test.Simple2|Object} message Simple2 or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.Simple2|Object)): string; + } /** * Constructs a new SpecialCases. @@ -327,91 +324,91 @@ declare module jspb { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class SpecialCases { - /** - * SpecialCases normal. - * @type {string} - */ - normal: string; + /** + * Constructs a new SpecialCases. + * @exports jspb.test.SpecialCases + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * SpecialCases default. - * @name jspb.test.SpecialCases#default - * @type {string} - */ - default: string; + /** + * SpecialCases normal. + * @type {string} + */ + normal: string; - /** - * SpecialCases function. - * @name jspb.test.SpecialCases#function - * @type {string} - */ - function: string; + /** + * SpecialCases default. + * @name jspb.test.SpecialCases#default + * @type {string} + */ + default: string; - /** - * SpecialCases var. - * @name jspb.test.SpecialCases#var - * @type {string} - */ - var: string; + /** + * SpecialCases function. + * @name jspb.test.SpecialCases#function + * @type {string} + */ + function: string; - /** - * Creates a new SpecialCases instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.SpecialCases} SpecialCases instance - */ - static create(properties?: Object): jspb.test.SpecialCases; + /** + * SpecialCases var. + * @name jspb.test.SpecialCases#var + * @type {string} + */ + var: string; - /** - * Encodes the specified SpecialCases. - * @function - * @param {jspb.test.SpecialCases|Object} message SpecialCases or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.SpecialCases|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new SpecialCases instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.SpecialCases} SpecialCases instance + */ + static create(properties?: Object): jspb.test.SpecialCases; - /** - * Encodes the specified SpecialCases, length delimited. - * @param {jspb.test.SpecialCases|Object} message SpecialCases or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.SpecialCases|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified SpecialCases. + * @function + * @param {jspb.test.SpecialCases|Object} message SpecialCases or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.SpecialCases|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a SpecialCases from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.SpecialCases} SpecialCases - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.SpecialCases; + /** + * Encodes the specified SpecialCases, length delimited. + * @param {jspb.test.SpecialCases|Object} message SpecialCases or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.SpecialCases|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a SpecialCases from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.SpecialCases} SpecialCases - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.SpecialCases; + /** + * Decodes a SpecialCases from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.SpecialCases} SpecialCases + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.SpecialCases; - /** - * Verifies a SpecialCases. - * @function - * @param {jspb.test.SpecialCases|Object} message SpecialCases or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.SpecialCases|Object)): string; - } + /** + * Decodes a SpecialCases from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.SpecialCases} SpecialCases + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.SpecialCases; - /** - * Constructs a new OptionalFields. - * @exports jspb.test.OptionalFields - * @constructor - * @param {Object} [properties] Properties to set - */ - class OptionalFields { + /** + * Verifies a SpecialCases. + * @function + * @param {jspb.test.SpecialCases|Object} message SpecialCases or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.SpecialCases|Object)): string; + } /** * Constructs a new OptionalFields. @@ -419,504 +416,262 @@ declare module jspb { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); - - /** - * OptionalFields aString. - * @type {string} - */ - aString: string; - - /** - * OptionalFields aBool. - * @type {boolean} - */ - aBool: boolean; - - /** - * OptionalFields aNestedMessage. - * @type {jspb.test.OptionalFields.Nested} - */ - aNestedMessage: jspb.test.OptionalFields.Nested; - - /** - * OptionalFields aRepeatedMessage. - * @type {Array.} - */ - aRepeatedMessage: jspb.test.OptionalFields.Nested[]; - - /** - * OptionalFields aRepeatedString. - * @type {Array.} - */ - aRepeatedString: string[]; - - /** - * Creates a new OptionalFields instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.OptionalFields} OptionalFields instance - */ - static create(properties?: Object): jspb.test.OptionalFields; - - /** - * Encodes the specified OptionalFields. - * @function - * @param {jspb.test.OptionalFields|Object} message OptionalFields or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.OptionalFields|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified OptionalFields, length delimited. - * @param {jspb.test.OptionalFields|Object} message OptionalFields or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.OptionalFields|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a OptionalFields from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.OptionalFields} OptionalFields - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.OptionalFields; - - /** - * Decodes a OptionalFields from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.OptionalFields} OptionalFields - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.OptionalFields; + class OptionalFields { - /** - * Verifies a OptionalFields. - * @function - * @param {jspb.test.OptionalFields|Object} message OptionalFields or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.OptionalFields|Object)): string; - } + /** + * Constructs a new OptionalFields. + * @exports jspb.test.OptionalFields + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); + /** + * OptionalFields aString. + * @type {string} + */ + aString: string; - /** - * Constructs a new OptionalFields. - * @exports jspb.test.OptionalFields - * @constructor - * @param {Object} [properties] Properties to set - */ - module OptionalFields { + /** + * OptionalFields aBool. + * @type {boolean} + */ + aBool: boolean; - /** - * Constructs a new Nested. - * @exports jspb.test.OptionalFields.Nested - * @constructor - * @param {Object} [properties] Properties to set - */ - class Nested { + /** + * OptionalFields aNestedMessage. + * @type {jspb.test.OptionalFields.Nested} + */ + aNestedMessage: jspb.test.OptionalFields.Nested; /** - * Constructs a new Nested. - * @exports jspb.test.OptionalFields.Nested - * @constructor - * @param {Object} [properties] Properties to set + * OptionalFields aRepeatedMessage. + * @type {Array.} */ - constructor(properties?: Object); + aRepeatedMessage: jspb.test.OptionalFields.Nested[]; /** - * Nested anInt. - * @type {number} + * OptionalFields aRepeatedString. + * @type {Array.} */ - anInt: number; + aRepeatedString: string[]; /** - * Creates a new Nested instance using the specified properties. + * Creates a new OptionalFields instance using the specified properties. * @param {Object} [properties] Properties to set - * @returns {jspb.test.OptionalFields.Nested} Nested instance + * @returns {jspb.test.OptionalFields} OptionalFields instance */ - static create(properties?: Object): jspb.test.OptionalFields.Nested; + static create(properties?: Object): jspb.test.OptionalFields; /** - * Encodes the specified Nested. + * Encodes the specified OptionalFields. * @function - * @param {jspb.test.OptionalFields.Nested|Object} message Nested or plain object to encode + * @param {jspb.test.OptionalFields|Object} message OptionalFields or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encode(message: (jspb.test.OptionalFields.Nested|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encode(message: (jspb.test.OptionalFields|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Nested, length delimited. - * @param {jspb.test.OptionalFields.Nested|Object} message Nested or plain object to encode + * Encodes the specified OptionalFields, length delimited. + * @param {jspb.test.OptionalFields|Object} message OptionalFields or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encodeDelimited(message: (jspb.test.OptionalFields.Nested|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encodeDelimited(message: (jspb.test.OptionalFields|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Nested from the specified reader or buffer. + * Decodes a OptionalFields from the specified reader or buffer. * @function * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.OptionalFields.Nested} Nested + * @returns {jspb.test.OptionalFields} OptionalFields */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.OptionalFields.Nested; + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.OptionalFields; /** - * Decodes a Nested from the specified reader or buffer, length delimited. + * Decodes a OptionalFields from the specified reader or buffer, length delimited. * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.OptionalFields.Nested} Nested + * @returns {jspb.test.OptionalFields} OptionalFields */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.OptionalFields.Nested; + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.OptionalFields; /** - * Verifies a Nested. + * Verifies a OptionalFields. * @function - * @param {jspb.test.OptionalFields.Nested|Object} message Nested or plain object to verify + * @param {jspb.test.OptionalFields|Object} message OptionalFields or plain object to verify * @returns {?string} `null` if valid, otherwise the reason why it is not */ - static verify(message: (jspb.test.OptionalFields.Nested|Object)): string; + static verify(message: (jspb.test.OptionalFields|Object)): string; } - } - - /** - * Constructs a new HasExtensions. - * @exports jspb.test.HasExtensions - * @constructor - * @param {Object} [properties] Properties to set - */ - class HasExtensions { - - /** - * Constructs a new HasExtensions. - * @exports jspb.test.HasExtensions - * @constructor - * @param {Object} [properties] Properties to set - */ - constructor(properties?: Object); - /** - * HasExtensions str1. - * @type {string} - */ - str1: string; - - /** - * HasExtensions str2. - * @type {string} - */ - str2: string; - - /** - * HasExtensions str3. - * @type {string} - */ - str3: string; - - /** - * Creates a new HasExtensions instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.HasExtensions} HasExtensions instance - */ - static create(properties?: Object): jspb.test.HasExtensions; - - /** - * Encodes the specified HasExtensions. - * @function - * @param {jspb.test.HasExtensions|Object} message HasExtensions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.HasExtensions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified HasExtensions, length delimited. - * @param {jspb.test.HasExtensions|Object} message HasExtensions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.HasExtensions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a HasExtensions from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.HasExtensions} HasExtensions - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.HasExtensions; - - /** - * Decodes a HasExtensions from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.HasExtensions} HasExtensions - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.HasExtensions; /** - * Verifies a HasExtensions. - * @function - * @param {jspb.test.HasExtensions|Object} message HasExtensions or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.HasExtensions|Object)): string; - } - - /** - * Constructs a new Complex. - * @exports jspb.test.Complex - * @constructor - * @param {Object} [properties] Properties to set - */ - class Complex { - - /** - * Constructs a new Complex. - * @exports jspb.test.Complex + * Constructs a new OptionalFields. + * @exports jspb.test.OptionalFields * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); - - /** - * Complex aString. - * @type {string} - */ - aString: string; - - /** - * Complex anOutOfOrderBool. - * @type {boolean} - */ - anOutOfOrderBool: boolean; - - /** - * Complex aNestedMessage. - * @type {jspb.test.Complex.Nested} - */ - aNestedMessage: jspb.test.Complex.Nested; + namespace OptionalFields { - /** - * Complex aRepeatedMessage. - * @type {Array.} - */ - aRepeatedMessage: jspb.test.Complex.Nested[]; - - /** - * Complex aRepeatedString. - * @type {Array.} - */ - aRepeatedString: string[]; + /** + * Constructs a new Nested. + * @exports jspb.test.OptionalFields.Nested + * @constructor + * @param {Object} [properties] Properties to set + */ + class Nested { - /** - * Creates a new Complex instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.Complex} Complex instance - */ - static create(properties?: Object): jspb.test.Complex; + /** + * Constructs a new Nested. + * @exports jspb.test.OptionalFields.Nested + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Encodes the specified Complex. - * @function - * @param {jspb.test.Complex|Object} message Complex or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.Complex|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Nested anInt. + * @type {number} + */ + anInt: number; - /** - * Encodes the specified Complex, length delimited. - * @param {jspb.test.Complex|Object} message Complex or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.Complex|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Nested instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.OptionalFields.Nested} Nested instance + */ + static create(properties?: Object): jspb.test.OptionalFields.Nested; - /** - * Decodes a Complex from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.Complex} Complex - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Complex; + /** + * Encodes the specified Nested. + * @function + * @param {jspb.test.OptionalFields.Nested|Object} message Nested or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.OptionalFields.Nested|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Complex from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.Complex} Complex - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Complex; + /** + * Encodes the specified Nested, length delimited. + * @param {jspb.test.OptionalFields.Nested|Object} message Nested or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.OptionalFields.Nested|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a Complex. - * @function - * @param {jspb.test.Complex|Object} message Complex or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.Complex|Object)): string; - } + /** + * Decodes a Nested from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.OptionalFields.Nested} Nested + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.OptionalFields.Nested; + /** + * Decodes a Nested from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.OptionalFields.Nested} Nested + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.OptionalFields.Nested; - /** - * Constructs a new Complex. - * @exports jspb.test.Complex - * @constructor - * @param {Object} [properties] Properties to set - */ - module Complex { + /** + * Verifies a Nested. + * @function + * @param {jspb.test.OptionalFields.Nested|Object} message Nested or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.OptionalFields.Nested|Object)): string; + } + } /** - * Constructs a new Nested. - * @exports jspb.test.Complex.Nested + * Constructs a new HasExtensions. + * @exports jspb.test.HasExtensions * @constructor * @param {Object} [properties] Properties to set */ - class Nested { + class HasExtensions { /** - * Constructs a new Nested. - * @exports jspb.test.Complex.Nested + * Constructs a new HasExtensions. + * @exports jspb.test.HasExtensions * @constructor * @param {Object} [properties] Properties to set */ constructor(properties?: Object); /** - * Nested anInt. - * @type {number} + * HasExtensions str1. + * @type {string} + */ + str1: string; + + /** + * HasExtensions str2. + * @type {string} + */ + str2: string; + + /** + * HasExtensions str3. + * @type {string} */ - anInt: number; + str3: string; /** - * Creates a new Nested instance using the specified properties. + * Creates a new HasExtensions instance using the specified properties. * @param {Object} [properties] Properties to set - * @returns {jspb.test.Complex.Nested} Nested instance + * @returns {jspb.test.HasExtensions} HasExtensions instance */ - static create(properties?: Object): jspb.test.Complex.Nested; + static create(properties?: Object): jspb.test.HasExtensions; /** - * Encodes the specified Nested. + * Encodes the specified HasExtensions. * @function - * @param {jspb.test.Complex.Nested|Object} message Nested or plain object to encode + * @param {jspb.test.HasExtensions|Object} message HasExtensions or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encode(message: (jspb.test.Complex.Nested|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encode(message: (jspb.test.HasExtensions|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Nested, length delimited. - * @param {jspb.test.Complex.Nested|Object} message Nested or plain object to encode + * Encodes the specified HasExtensions, length delimited. + * @param {jspb.test.HasExtensions|Object} message HasExtensions or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encodeDelimited(message: (jspb.test.Complex.Nested|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encodeDelimited(message: (jspb.test.HasExtensions|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Nested from the specified reader or buffer. + * Decodes a HasExtensions from the specified reader or buffer. * @function * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.Complex.Nested} Nested + * @returns {jspb.test.HasExtensions} HasExtensions */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Complex.Nested; + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.HasExtensions; /** - * Decodes a Nested from the specified reader or buffer, length delimited. + * Decodes a HasExtensions from the specified reader or buffer, length delimited. * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.Complex.Nested} Nested + * @returns {jspb.test.HasExtensions} HasExtensions */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Complex.Nested; + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.HasExtensions; /** - * Verifies a Nested. + * Verifies a HasExtensions. * @function - * @param {jspb.test.Complex.Nested|Object} message Nested or plain object to verify + * @param {jspb.test.HasExtensions|Object} message HasExtensions or plain object to verify * @returns {?string} `null` if valid, otherwise the reason why it is not */ - static verify(message: (jspb.test.Complex.Nested|Object)): string; + static verify(message: (jspb.test.HasExtensions|Object)): string; } - } - - /** - * Constructs a new OuterMessage. - * @exports jspb.test.OuterMessage - * @constructor - * @param {Object} [properties] Properties to set - */ - class OuterMessage { - - /** - * Constructs a new OuterMessage. - * @exports jspb.test.OuterMessage - * @constructor - * @param {Object} [properties] Properties to set - */ - constructor(properties?: Object); - - /** - * Creates a new OuterMessage instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.OuterMessage} OuterMessage instance - */ - static create(properties?: Object): jspb.test.OuterMessage; - - /** - * Encodes the specified OuterMessage. - * @function - * @param {jspb.test.OuterMessage|Object} message OuterMessage or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.OuterMessage|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified OuterMessage, length delimited. - * @param {jspb.test.OuterMessage|Object} message OuterMessage or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.OuterMessage|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a OuterMessage from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.OuterMessage} OuterMessage - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.OuterMessage; - - /** - * Decodes a OuterMessage from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.OuterMessage} OuterMessage - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.OuterMessage; - - /** - * Verifies a OuterMessage. - * @function - * @param {jspb.test.OuterMessage|Object} message OuterMessage or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.OuterMessage|Object)): string; - } - - - /** - * Constructs a new OuterMessage. - * @exports jspb.test.OuterMessage - * @constructor - * @param {Object} [properties] Properties to set - */ - module OuterMessage { /** * Constructs a new Complex. - * @exports jspb.test.OuterMessage.Complex + * @exports jspb.test.Complex * @constructor * @param {Object} [properties] Properties to set */ @@ -924,2185 +679,2427 @@ declare module jspb { /** * Constructs a new Complex. - * @exports jspb.test.OuterMessage.Complex + * @exports jspb.test.Complex * @constructor * @param {Object} [properties] Properties to set */ constructor(properties?: Object); /** - * Complex innerComplexField. - * @type {number} + * Complex aString. + * @type {string} */ - innerComplexField: number; + aString: string; /** - * Creates a new Complex instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.OuterMessage.Complex} Complex instance + * Complex anOutOfOrderBool. + * @type {boolean} + */ + anOutOfOrderBool: boolean; + + /** + * Complex aNestedMessage. + * @type {jspb.test.Complex.Nested} + */ + aNestedMessage: jspb.test.Complex.Nested; + + /** + * Complex aRepeatedMessage. + * @type {Array.} + */ + aRepeatedMessage: jspb.test.Complex.Nested[]; + + /** + * Complex aRepeatedString. + * @type {Array.} + */ + aRepeatedString: string[]; + + /** + * Creates a new Complex instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.Complex} Complex instance */ - static create(properties?: Object): jspb.test.OuterMessage.Complex; + static create(properties?: Object): jspb.test.Complex; /** * Encodes the specified Complex. * @function - * @param {jspb.test.OuterMessage.Complex|Object} message Complex or plain object to encode + * @param {jspb.test.Complex|Object} message Complex or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encode(message: (jspb.test.OuterMessage.Complex|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encode(message: (jspb.test.Complex|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Complex, length delimited. - * @param {jspb.test.OuterMessage.Complex|Object} message Complex or plain object to encode + * @param {jspb.test.Complex|Object} message Complex or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encodeDelimited(message: (jspb.test.OuterMessage.Complex|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encodeDelimited(message: (jspb.test.Complex|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Complex from the specified reader or buffer. * @function * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.OuterMessage.Complex} Complex + * @returns {jspb.test.Complex} Complex */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.OuterMessage.Complex; + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Complex; /** * Decodes a Complex from the specified reader or buffer, length delimited. * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.OuterMessage.Complex} Complex + * @returns {jspb.test.Complex} Complex */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.OuterMessage.Complex; + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Complex; /** * Verifies a Complex. * @function - * @param {jspb.test.OuterMessage.Complex|Object} message Complex or plain object to verify + * @param {jspb.test.Complex|Object} message Complex or plain object to verify * @returns {?string} `null` if valid, otherwise the reason why it is not */ - static verify(message: (jspb.test.OuterMessage.Complex|Object)): string; + static verify(message: (jspb.test.Complex|Object)): string; } - } - /** - * Constructs a new IsExtension. - * @exports jspb.test.IsExtension - * @constructor - * @param {Object} [properties] Properties to set - */ - class IsExtension { /** - * Constructs a new IsExtension. - * @exports jspb.test.IsExtension + * Constructs a new Complex. + * @exports jspb.test.Complex * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + namespace Complex { - /** - * IsExtension ext1. - * @type {string} - */ - ext1: string; + /** + * Constructs a new Nested. + * @exports jspb.test.Complex.Nested + * @constructor + * @param {Object} [properties] Properties to set + */ + class Nested { - /** - * Creates a new IsExtension instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.IsExtension} IsExtension instance - */ - static create(properties?: Object): jspb.test.IsExtension; + /** + * Constructs a new Nested. + * @exports jspb.test.Complex.Nested + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Encodes the specified IsExtension. - * @function - * @param {jspb.test.IsExtension|Object} message IsExtension or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.IsExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Nested anInt. + * @type {number} + */ + anInt: number; - /** - * Encodes the specified IsExtension, length delimited. - * @param {jspb.test.IsExtension|Object} message IsExtension or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.IsExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Nested instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.Complex.Nested} Nested instance + */ + static create(properties?: Object): jspb.test.Complex.Nested; - /** - * Decodes a IsExtension from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.IsExtension} IsExtension - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.IsExtension; + /** + * Encodes the specified Nested. + * @function + * @param {jspb.test.Complex.Nested|Object} message Nested or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.Complex.Nested|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a IsExtension from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.IsExtension} IsExtension - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.IsExtension; + /** + * Encodes the specified Nested, length delimited. + * @param {jspb.test.Complex.Nested|Object} message Nested or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.Complex.Nested|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a IsExtension. - * @function - * @param {jspb.test.IsExtension|Object} message IsExtension or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.IsExtension|Object)): string; - } + /** + * Decodes a Nested from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.Complex.Nested} Nested + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Complex.Nested; - /** - * Constructs a new IndirectExtension. - * @exports jspb.test.IndirectExtension - * @constructor - * @param {Object} [properties] Properties to set - */ - class IndirectExtension { + /** + * Decodes a Nested from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.Complex.Nested} Nested + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Complex.Nested; + + /** + * Verifies a Nested. + * @function + * @param {jspb.test.Complex.Nested|Object} message Nested or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.Complex.Nested|Object)): string; + } + } /** - * Constructs a new IndirectExtension. - * @exports jspb.test.IndirectExtension + * Constructs a new OuterMessage. + * @exports jspb.test.OuterMessage * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class OuterMessage { - /** - * Creates a new IndirectExtension instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.IndirectExtension} IndirectExtension instance - */ - static create(properties?: Object): jspb.test.IndirectExtension; + /** + * Constructs a new OuterMessage. + * @exports jspb.test.OuterMessage + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Encodes the specified IndirectExtension. - * @function - * @param {jspb.test.IndirectExtension|Object} message IndirectExtension or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.IndirectExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new OuterMessage instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.OuterMessage} OuterMessage instance + */ + static create(properties?: Object): jspb.test.OuterMessage; - /** - * Encodes the specified IndirectExtension, length delimited. - * @param {jspb.test.IndirectExtension|Object} message IndirectExtension or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.IndirectExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified OuterMessage. + * @function + * @param {jspb.test.OuterMessage|Object} message OuterMessage or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.OuterMessage|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a IndirectExtension from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.IndirectExtension} IndirectExtension - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.IndirectExtension; + /** + * Encodes the specified OuterMessage, length delimited. + * @param {jspb.test.OuterMessage|Object} message OuterMessage or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.OuterMessage|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a IndirectExtension from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.IndirectExtension} IndirectExtension - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.IndirectExtension; + /** + * Decodes a OuterMessage from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.OuterMessage} OuterMessage + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.OuterMessage; - /** - * Verifies a IndirectExtension. - * @function - * @param {jspb.test.IndirectExtension|Object} message IndirectExtension or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.IndirectExtension|Object)): string; - } + /** + * Decodes a OuterMessage from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.OuterMessage} OuterMessage + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.OuterMessage; + + /** + * Verifies a OuterMessage. + * @function + * @param {jspb.test.OuterMessage|Object} message OuterMessage or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.OuterMessage|Object)): string; + } - /** - * Constructs a new DefaultValues. - * @exports jspb.test.DefaultValues - * @constructor - * @param {Object} [properties] Properties to set - */ - class DefaultValues { /** - * Constructs a new DefaultValues. - * @exports jspb.test.DefaultValues + * Constructs a new OuterMessage. + * @exports jspb.test.OuterMessage * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + namespace OuterMessage { - /** - * DefaultValues stringField. - * @type {string} - */ - stringField: string; + /** + * Constructs a new Complex. + * @exports jspb.test.OuterMessage.Complex + * @constructor + * @param {Object} [properties] Properties to set + */ + class Complex { - /** - * DefaultValues boolField. - * @type {boolean} - */ - boolField: boolean; + /** + * Constructs a new Complex. + * @exports jspb.test.OuterMessage.Complex + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * DefaultValues intField. - * @type {number|Long} - */ - intField: (number|Long); + /** + * Complex innerComplexField. + * @type {number} + */ + innerComplexField: number; - /** - * DefaultValues enumField. - * @type {number} - */ - enumField: number; + /** + * Creates a new Complex instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.OuterMessage.Complex} Complex instance + */ + static create(properties?: Object): jspb.test.OuterMessage.Complex; - /** - * DefaultValues emptyField. - * @type {string} - */ - emptyField: string; + /** + * Encodes the specified Complex. + * @function + * @param {jspb.test.OuterMessage.Complex|Object} message Complex or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.OuterMessage.Complex|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * DefaultValues bytesField. - * @type {Uint8Array} - */ - bytesField: Uint8Array; + /** + * Encodes the specified Complex, length delimited. + * @param {jspb.test.OuterMessage.Complex|Object} message Complex or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.OuterMessage.Complex|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Complex from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.OuterMessage.Complex} Complex + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.OuterMessage.Complex; + + /** + * Decodes a Complex from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.OuterMessage.Complex} Complex + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.OuterMessage.Complex; + + /** + * Verifies a Complex. + * @function + * @param {jspb.test.OuterMessage.Complex|Object} message Complex or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.OuterMessage.Complex|Object)): string; + } + } /** - * Creates a new DefaultValues instance using the specified properties. + * Constructs a new IsExtension. + * @exports jspb.test.IsExtension + * @constructor * @param {Object} [properties] Properties to set - * @returns {jspb.test.DefaultValues} DefaultValues instance */ - static create(properties?: Object): jspb.test.DefaultValues; + class IsExtension { - /** - * Encodes the specified DefaultValues. - * @function - * @param {jspb.test.DefaultValues|Object} message DefaultValues or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.DefaultValues|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new IsExtension. + * @exports jspb.test.IsExtension + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Encodes the specified DefaultValues, length delimited. - * @param {jspb.test.DefaultValues|Object} message DefaultValues or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.DefaultValues|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * IsExtension ext1. + * @type {string} + */ + ext1: string; - /** - * Decodes a DefaultValues from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.DefaultValues} DefaultValues - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.DefaultValues; + /** + * Creates a new IsExtension instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.IsExtension} IsExtension instance + */ + static create(properties?: Object): jspb.test.IsExtension; - /** - * Decodes a DefaultValues from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.DefaultValues} DefaultValues - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.DefaultValues; + /** + * Encodes the specified IsExtension. + * @function + * @param {jspb.test.IsExtension|Object} message IsExtension or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.IsExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a DefaultValues. - * @function - * @param {jspb.test.DefaultValues|Object} message DefaultValues or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.DefaultValues|Object)): string; - } + /** + * Encodes the specified IsExtension, length delimited. + * @param {jspb.test.IsExtension|Object} message IsExtension or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.IsExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new FloatingPointFields. - * @exports jspb.test.FloatingPointFields - * @constructor - * @param {Object} [properties] Properties to set - */ - class FloatingPointFields { + /** + * Decodes a IsExtension from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.IsExtension} IsExtension + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.IsExtension; + + /** + * Decodes a IsExtension from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.IsExtension} IsExtension + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.IsExtension; + + /** + * Verifies a IsExtension. + * @function + * @param {jspb.test.IsExtension|Object} message IsExtension or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.IsExtension|Object)): string; + } /** - * Constructs a new FloatingPointFields. - * @exports jspb.test.FloatingPointFields + * Constructs a new IndirectExtension. + * @exports jspb.test.IndirectExtension * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class IndirectExtension { - /** - * FloatingPointFields optionalFloatField. - * @type {number} - */ - optionalFloatField: number; + /** + * Constructs a new IndirectExtension. + * @exports jspb.test.IndirectExtension + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * FloatingPointFields requiredFloatField. - * @type {number} - */ - requiredFloatField: number; - - /** - * FloatingPointFields repeatedFloatField. - * @type {Array.} - */ - repeatedFloatField: number[]; + /** + * Creates a new IndirectExtension instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.IndirectExtension} IndirectExtension instance + */ + static create(properties?: Object): jspb.test.IndirectExtension; - /** - * FloatingPointFields defaultFloatField. - * @type {number} - */ - defaultFloatField: number; + /** + * Encodes the specified IndirectExtension. + * @function + * @param {jspb.test.IndirectExtension|Object} message IndirectExtension or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.IndirectExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * FloatingPointFields optionalDoubleField. - * @type {number} - */ - optionalDoubleField: number; + /** + * Encodes the specified IndirectExtension, length delimited. + * @param {jspb.test.IndirectExtension|Object} message IndirectExtension or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.IndirectExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * FloatingPointFields requiredDoubleField. - * @type {number} - */ - requiredDoubleField: number; + /** + * Decodes a IndirectExtension from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.IndirectExtension} IndirectExtension + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.IndirectExtension; - /** - * FloatingPointFields repeatedDoubleField. - * @type {Array.} - */ - repeatedDoubleField: number[]; + /** + * Decodes a IndirectExtension from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.IndirectExtension} IndirectExtension + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.IndirectExtension; - /** - * FloatingPointFields defaultDoubleField. - * @type {number} - */ - defaultDoubleField: number; + /** + * Verifies a IndirectExtension. + * @function + * @param {jspb.test.IndirectExtension|Object} message IndirectExtension or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.IndirectExtension|Object)): string; + } /** - * Creates a new FloatingPointFields instance using the specified properties. + * Constructs a new DefaultValues. + * @exports jspb.test.DefaultValues + * @constructor * @param {Object} [properties] Properties to set - * @returns {jspb.test.FloatingPointFields} FloatingPointFields instance */ - static create(properties?: Object): jspb.test.FloatingPointFields; + class DefaultValues { - /** - * Encodes the specified FloatingPointFields. - * @function - * @param {jspb.test.FloatingPointFields|Object} message FloatingPointFields or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.FloatingPointFields|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new DefaultValues. + * @exports jspb.test.DefaultValues + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Encodes the specified FloatingPointFields, length delimited. - * @param {jspb.test.FloatingPointFields|Object} message FloatingPointFields or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.FloatingPointFields|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * DefaultValues stringField. + * @type {string} + */ + stringField: string; - /** - * Decodes a FloatingPointFields from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.FloatingPointFields} FloatingPointFields - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.FloatingPointFields; + /** + * DefaultValues boolField. + * @type {boolean} + */ + boolField: boolean; - /** - * Decodes a FloatingPointFields from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.FloatingPointFields} FloatingPointFields - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.FloatingPointFields; + /** + * DefaultValues intField. + * @type {number|Long} + */ + intField: (number|Long); - /** - * Verifies a FloatingPointFields. - * @function - * @param {jspb.test.FloatingPointFields|Object} message FloatingPointFields or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.FloatingPointFields|Object)): string; - } + /** + * DefaultValues enumField. + * @type {number} + */ + enumField: number; - /** - * Constructs a new TestClone. - * @exports jspb.test.TestClone - * @constructor - * @param {Object} [properties] Properties to set - */ - class TestClone { + /** + * DefaultValues emptyField. + * @type {string} + */ + emptyField: string; - /** - * Constructs a new TestClone. - * @exports jspb.test.TestClone - * @constructor - * @param {Object} [properties] Properties to set - */ - constructor(properties?: Object); + /** + * DefaultValues bytesField. + * @type {Uint8Array} + */ + bytesField: Uint8Array; - /** - * TestClone str. - * @type {string} - */ - str: string; + /** + * Creates a new DefaultValues instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.DefaultValues} DefaultValues instance + */ + static create(properties?: Object): jspb.test.DefaultValues; - /** - * TestClone simple1. - * @type {jspb.test.Simple1} - */ - simple1: jspb.test.Simple1; + /** + * Encodes the specified DefaultValues. + * @function + * @param {jspb.test.DefaultValues|Object} message DefaultValues or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.DefaultValues|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * TestClone simple2. - * @type {Array.} - */ - simple2: jspb.test.Simple1[]; + /** + * Encodes the specified DefaultValues, length delimited. + * @param {jspb.test.DefaultValues|Object} message DefaultValues or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.DefaultValues|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * TestClone bytesField. - * @type {Uint8Array} - */ - bytesField: Uint8Array; + /** + * Decodes a DefaultValues from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.DefaultValues} DefaultValues + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.DefaultValues; - /** - * TestClone unused. - * @type {string} - */ - unused: string; + /** + * Decodes a DefaultValues from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.DefaultValues} DefaultValues + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.DefaultValues; + + /** + * Verifies a DefaultValues. + * @function + * @param {jspb.test.DefaultValues|Object} message DefaultValues or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.DefaultValues|Object)): string; + } /** - * Creates a new TestClone instance using the specified properties. + * Constructs a new FloatingPointFields. + * @exports jspb.test.FloatingPointFields + * @constructor * @param {Object} [properties] Properties to set - * @returns {jspb.test.TestClone} TestClone instance */ - static create(properties?: Object): jspb.test.TestClone; + class FloatingPointFields { - /** - * Encodes the specified TestClone. - * @function - * @param {jspb.test.TestClone|Object} message TestClone or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.TestClone|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new FloatingPointFields. + * @exports jspb.test.FloatingPointFields + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Encodes the specified TestClone, length delimited. - * @param {jspb.test.TestClone|Object} message TestClone or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.TestClone|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * FloatingPointFields optionalFloatField. + * @type {number} + */ + optionalFloatField: number; - /** - * Decodes a TestClone from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.TestClone} TestClone - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestClone; + /** + * FloatingPointFields requiredFloatField. + * @type {number} + */ + requiredFloatField: number; - /** - * Decodes a TestClone from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.TestClone} TestClone - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.TestClone; + /** + * FloatingPointFields repeatedFloatField. + * @type {Array.} + */ + repeatedFloatField: number[]; - /** - * Verifies a TestClone. - * @function - * @param {jspb.test.TestClone|Object} message TestClone or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.TestClone|Object)): string; - } + /** + * FloatingPointFields defaultFloatField. + * @type {number} + */ + defaultFloatField: number; - /** - * Constructs a new CloneExtension. - * @exports jspb.test.CloneExtension - * @constructor - * @param {Object} [properties] Properties to set - */ - class CloneExtension { + /** + * FloatingPointFields optionalDoubleField. + * @type {number} + */ + optionalDoubleField: number; - /** - * Constructs a new CloneExtension. - * @exports jspb.test.CloneExtension - * @constructor - * @param {Object} [properties] Properties to set - */ - constructor(properties?: Object); + /** + * FloatingPointFields requiredDoubleField. + * @type {number} + */ + requiredDoubleField: number; - /** - * CloneExtension ext. - * @type {string} - */ - ext: string; + /** + * FloatingPointFields repeatedDoubleField. + * @type {Array.} + */ + repeatedDoubleField: number[]; - /** - * Creates a new CloneExtension instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.CloneExtension} CloneExtension instance - */ - static create(properties?: Object): jspb.test.CloneExtension; + /** + * FloatingPointFields defaultDoubleField. + * @type {number} + */ + defaultDoubleField: number; - /** - * Encodes the specified CloneExtension. - * @function - * @param {jspb.test.CloneExtension|Object} message CloneExtension or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.CloneExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FloatingPointFields instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.FloatingPointFields} FloatingPointFields instance + */ + static create(properties?: Object): jspb.test.FloatingPointFields; - /** - * Encodes the specified CloneExtension, length delimited. - * @param {jspb.test.CloneExtension|Object} message CloneExtension or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.CloneExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FloatingPointFields. + * @function + * @param {jspb.test.FloatingPointFields|Object} message FloatingPointFields or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.FloatingPointFields|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CloneExtension from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.CloneExtension} CloneExtension - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.CloneExtension; + /** + * Encodes the specified FloatingPointFields, length delimited. + * @param {jspb.test.FloatingPointFields|Object} message FloatingPointFields or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.FloatingPointFields|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CloneExtension from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.CloneExtension} CloneExtension - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.CloneExtension; + /** + * Decodes a FloatingPointFields from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.FloatingPointFields} FloatingPointFields + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.FloatingPointFields; - /** - * Verifies a CloneExtension. - * @function - * @param {jspb.test.CloneExtension|Object} message CloneExtension or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.CloneExtension|Object)): string; - } + /** + * Decodes a FloatingPointFields from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.FloatingPointFields} FloatingPointFields + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.FloatingPointFields; - /** - * Constructs a new TestGroup. - * @exports jspb.test.TestGroup - * @constructor - * @param {Object} [properties] Properties to set - */ - class TestGroup { + /** + * Verifies a FloatingPointFields. + * @function + * @param {jspb.test.FloatingPointFields|Object} message FloatingPointFields or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.FloatingPointFields|Object)): string; + } /** - * Constructs a new TestGroup. - * @exports jspb.test.TestGroup + * Constructs a new TestClone. + * @exports jspb.test.TestClone * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); - - /** - * TestGroup id. - * @type {string} - */ - id: string; + class TestClone { - /** - * TestGroup requiredSimple. - * @type {jspb.test.Simple2} - */ - requiredSimple: jspb.test.Simple2; + /** + * Constructs a new TestClone. + * @exports jspb.test.TestClone + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * TestGroup optionalSimple. - * @type {jspb.test.Simple2} - */ - optionalSimple: jspb.test.Simple2; + /** + * TestClone str. + * @type {string} + */ + str: string; - /** - * Creates a new TestGroup instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.TestGroup} TestGroup instance - */ - static create(properties?: Object): jspb.test.TestGroup; + /** + * TestClone simple1. + * @type {jspb.test.Simple1} + */ + simple1: jspb.test.Simple1; - /** - * Encodes the specified TestGroup. - * @function - * @param {jspb.test.TestGroup|Object} message TestGroup or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.TestGroup|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * TestClone simple2. + * @type {Array.} + */ + simple2: jspb.test.Simple1[]; - /** - * Encodes the specified TestGroup, length delimited. - * @param {jspb.test.TestGroup|Object} message TestGroup or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.TestGroup|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * TestClone bytesField. + * @type {Uint8Array} + */ + bytesField: Uint8Array; - /** - * Decodes a TestGroup from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.TestGroup} TestGroup - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestGroup; + /** + * TestClone unused. + * @type {string} + */ + unused: string; - /** - * Decodes a TestGroup from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.TestGroup} TestGroup - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.TestGroup; + /** + * Creates a new TestClone instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.TestClone} TestClone instance + */ + static create(properties?: Object): jspb.test.TestClone; - /** - * Verifies a TestGroup. - * @function - * @param {jspb.test.TestGroup|Object} message TestGroup or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.TestGroup|Object)): string; - } + /** + * Encodes the specified TestClone. + * @function + * @param {jspb.test.TestClone|Object} message TestClone or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.TestClone|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new TestReservedNames. - * @exports jspb.test.TestReservedNames - * @constructor - * @param {Object} [properties] Properties to set - */ - class TestReservedNames { + /** + * Encodes the specified TestClone, length delimited. + * @param {jspb.test.TestClone|Object} message TestClone or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.TestClone|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestClone from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.TestClone} TestClone + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestClone; + + /** + * Decodes a TestClone from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.TestClone} TestClone + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.TestClone; + + /** + * Verifies a TestClone. + * @function + * @param {jspb.test.TestClone|Object} message TestClone or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.TestClone|Object)): string; + } /** - * Constructs a new TestReservedNames. - * @exports jspb.test.TestReservedNames + * Constructs a new CloneExtension. + * @exports jspb.test.CloneExtension * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class CloneExtension { - /** - * TestReservedNames extension. - * @type {number} - */ - extension: number; + /** + * Constructs a new CloneExtension. + * @exports jspb.test.CloneExtension + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Creates a new TestReservedNames instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.TestReservedNames} TestReservedNames instance - */ - static create(properties?: Object): jspb.test.TestReservedNames; + /** + * CloneExtension ext. + * @type {string} + */ + ext: string; - /** - * Encodes the specified TestReservedNames. - * @function - * @param {jspb.test.TestReservedNames|Object} message TestReservedNames or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.TestReservedNames|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new CloneExtension instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.CloneExtension} CloneExtension instance + */ + static create(properties?: Object): jspb.test.CloneExtension; - /** - * Encodes the specified TestReservedNames, length delimited. - * @param {jspb.test.TestReservedNames|Object} message TestReservedNames or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.TestReservedNames|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CloneExtension. + * @function + * @param {jspb.test.CloneExtension|Object} message CloneExtension or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.CloneExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TestReservedNames from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.TestReservedNames} TestReservedNames - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestReservedNames; + /** + * Encodes the specified CloneExtension, length delimited. + * @param {jspb.test.CloneExtension|Object} message CloneExtension or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.CloneExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TestReservedNames from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.TestReservedNames} TestReservedNames - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.TestReservedNames; + /** + * Decodes a CloneExtension from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.CloneExtension} CloneExtension + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.CloneExtension; - /** - * Verifies a TestReservedNames. - * @function - * @param {jspb.test.TestReservedNames|Object} message TestReservedNames or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.TestReservedNames|Object)): string; - } + /** + * Decodes a CloneExtension from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.CloneExtension} CloneExtension + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.CloneExtension; - /** - * Constructs a new TestReservedNamesExtension. - * @exports jspb.test.TestReservedNamesExtension - * @constructor - * @param {Object} [properties] Properties to set - */ - class TestReservedNamesExtension { + /** + * Verifies a CloneExtension. + * @function + * @param {jspb.test.CloneExtension|Object} message CloneExtension or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.CloneExtension|Object)): string; + } /** - * Constructs a new TestReservedNamesExtension. - * @exports jspb.test.TestReservedNamesExtension + * Constructs a new TestGroup. + * @exports jspb.test.TestGroup * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class TestGroup { - /** - * Creates a new TestReservedNamesExtension instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.TestReservedNamesExtension} TestReservedNamesExtension instance - */ - static create(properties?: Object): jspb.test.TestReservedNamesExtension; + /** + * Constructs a new TestGroup. + * @exports jspb.test.TestGroup + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Encodes the specified TestReservedNamesExtension. - * @function - * @param {jspb.test.TestReservedNamesExtension|Object} message TestReservedNamesExtension or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.TestReservedNamesExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * TestGroup id. + * @type {string} + */ + id: string; - /** - * Encodes the specified TestReservedNamesExtension, length delimited. - * @param {jspb.test.TestReservedNamesExtension|Object} message TestReservedNamesExtension or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.TestReservedNamesExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * TestGroup requiredSimple. + * @type {jspb.test.Simple2} + */ + requiredSimple: jspb.test.Simple2; - /** - * Decodes a TestReservedNamesExtension from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.TestReservedNamesExtension} TestReservedNamesExtension - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestReservedNamesExtension; + /** + * TestGroup optionalSimple. + * @type {jspb.test.Simple2} + */ + optionalSimple: jspb.test.Simple2; - /** - * Decodes a TestReservedNamesExtension from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.TestReservedNamesExtension} TestReservedNamesExtension - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.TestReservedNamesExtension; + /** + * Creates a new TestGroup instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.TestGroup} TestGroup instance + */ + static create(properties?: Object): jspb.test.TestGroup; - /** - * Verifies a TestReservedNamesExtension. - * @function - * @param {jspb.test.TestReservedNamesExtension|Object} message TestReservedNamesExtension or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.TestReservedNamesExtension|Object)): string; - } + /** + * Encodes the specified TestGroup. + * @function + * @param {jspb.test.TestGroup|Object} message TestGroup or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.TestGroup|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new TestMessageWithOneof. - * @exports jspb.test.TestMessageWithOneof - * @constructor - * @param {Object} [properties] Properties to set - */ - class TestMessageWithOneof { + /** + * Encodes the specified TestGroup, length delimited. + * @param {jspb.test.TestGroup|Object} message TestGroup or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.TestGroup|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestGroup from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.TestGroup} TestGroup + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestGroup; + + /** + * Decodes a TestGroup from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.TestGroup} TestGroup + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.TestGroup; + + /** + * Verifies a TestGroup. + * @function + * @param {jspb.test.TestGroup|Object} message TestGroup or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.TestGroup|Object)): string; + } /** - * Constructs a new TestMessageWithOneof. - * @exports jspb.test.TestMessageWithOneof + * Constructs a new TestReservedNames. + * @exports jspb.test.TestReservedNames * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class TestReservedNames { - /** - * TestMessageWithOneof pone. - * @type {string} - */ - pone: string; + /** + * Constructs a new TestReservedNames. + * @exports jspb.test.TestReservedNames + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * TestMessageWithOneof pthree. - * @type {string} - */ - pthree: string; + /** + * TestReservedNames extension. + * @type {number} + */ + extension: number; - /** - * TestMessageWithOneof rone. - * @type {jspb.test.TestMessageWithOneof} - */ - rone: jspb.test.TestMessageWithOneof; + /** + * Creates a new TestReservedNames instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.TestReservedNames} TestReservedNames instance + */ + static create(properties?: Object): jspb.test.TestReservedNames; - /** - * TestMessageWithOneof rtwo. - * @type {string} - */ - rtwo: string; + /** + * Encodes the specified TestReservedNames. + * @function + * @param {jspb.test.TestReservedNames|Object} message TestReservedNames or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.TestReservedNames|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * TestMessageWithOneof normalField. - * @type {boolean} - */ - normalField: boolean; + /** + * Encodes the specified TestReservedNames, length delimited. + * @param {jspb.test.TestReservedNames|Object} message TestReservedNames or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.TestReservedNames|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * TestMessageWithOneof repeatedField. - * @type {Array.} - */ - repeatedField: string[]; + /** + * Decodes a TestReservedNames from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.TestReservedNames} TestReservedNames + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestReservedNames; - /** - * TestMessageWithOneof aone. - * @type {number} - */ - aone: number; + /** + * Decodes a TestReservedNames from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.TestReservedNames} TestReservedNames + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.TestReservedNames; - /** - * TestMessageWithOneof atwo. - * @type {number} - */ - atwo: number; + /** + * Verifies a TestReservedNames. + * @function + * @param {jspb.test.TestReservedNames|Object} message TestReservedNames or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.TestReservedNames|Object)): string; + } /** - * TestMessageWithOneof bone. - * @type {number} + * Constructs a new TestReservedNamesExtension. + * @exports jspb.test.TestReservedNamesExtension + * @constructor + * @param {Object} [properties] Properties to set */ - bone: number; + class TestReservedNamesExtension { - /** - * TestMessageWithOneof btwo. - * @type {number} - */ - btwo: number; + /** + * Constructs a new TestReservedNamesExtension. + * @exports jspb.test.TestReservedNamesExtension + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * TestMessageWithOneof partialOneof. - * @name jspb.test.TestMessageWithOneof#partialOneof - * @type {string|undefined} - */ - partialOneof: (string|undefined); + /** + * Creates a new TestReservedNamesExtension instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.TestReservedNamesExtension} TestReservedNamesExtension instance + */ + static create(properties?: Object): jspb.test.TestReservedNamesExtension; - /** - * TestMessageWithOneof recursiveOneof. - * @name jspb.test.TestMessageWithOneof#recursiveOneof - * @type {string|undefined} - */ - recursiveOneof: (string|undefined); + /** + * Encodes the specified TestReservedNamesExtension. + * @function + * @param {jspb.test.TestReservedNamesExtension|Object} message TestReservedNamesExtension or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.TestReservedNamesExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * TestMessageWithOneof defaultOneofA. - * @name jspb.test.TestMessageWithOneof#defaultOneofA - * @type {string|undefined} - */ - defaultOneofA: (string|undefined); + /** + * Encodes the specified TestReservedNamesExtension, length delimited. + * @param {jspb.test.TestReservedNamesExtension|Object} message TestReservedNamesExtension or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.TestReservedNamesExtension|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * TestMessageWithOneof defaultOneofB. - * @name jspb.test.TestMessageWithOneof#defaultOneofB - * @type {string|undefined} - */ - defaultOneofB: (string|undefined); + /** + * Decodes a TestReservedNamesExtension from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.TestReservedNamesExtension} TestReservedNamesExtension + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestReservedNamesExtension; + + /** + * Decodes a TestReservedNamesExtension from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.TestReservedNamesExtension} TestReservedNamesExtension + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.TestReservedNamesExtension; + + /** + * Verifies a TestReservedNamesExtension. + * @function + * @param {jspb.test.TestReservedNamesExtension|Object} message TestReservedNamesExtension or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.TestReservedNamesExtension|Object)): string; + } /** - * Creates a new TestMessageWithOneof instance using the specified properties. + * Constructs a new TestMessageWithOneof. + * @exports jspb.test.TestMessageWithOneof + * @constructor * @param {Object} [properties] Properties to set - * @returns {jspb.test.TestMessageWithOneof} TestMessageWithOneof instance */ - static create(properties?: Object): jspb.test.TestMessageWithOneof; + class TestMessageWithOneof { - /** - * Encodes the specified TestMessageWithOneof. - * @function - * @param {jspb.test.TestMessageWithOneof|Object} message TestMessageWithOneof or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.TestMessageWithOneof|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new TestMessageWithOneof. + * @exports jspb.test.TestMessageWithOneof + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Encodes the specified TestMessageWithOneof, length delimited. - * @param {jspb.test.TestMessageWithOneof|Object} message TestMessageWithOneof or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.TestMessageWithOneof|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * TestMessageWithOneof pone. + * @type {string} + */ + pone: string; + + /** + * TestMessageWithOneof pthree. + * @type {string} + */ + pthree: string; + + /** + * TestMessageWithOneof rone. + * @type {jspb.test.TestMessageWithOneof} + */ + rone: jspb.test.TestMessageWithOneof; + + /** + * TestMessageWithOneof rtwo. + * @type {string} + */ + rtwo: string; + + /** + * TestMessageWithOneof normalField. + * @type {boolean} + */ + normalField: boolean; + + /** + * TestMessageWithOneof repeatedField. + * @type {Array.} + */ + repeatedField: string[]; + + /** + * TestMessageWithOneof aone. + * @type {number} + */ + aone: number; + + /** + * TestMessageWithOneof atwo. + * @type {number} + */ + atwo: number; + + /** + * TestMessageWithOneof bone. + * @type {number} + */ + bone: number; + + /** + * TestMessageWithOneof btwo. + * @type {number} + */ + btwo: number; + + /** + * TestMessageWithOneof partialOneof. + * @name jspb.test.TestMessageWithOneof#partialOneof + * @type {string|undefined} + */ + partialOneof: (string|undefined); + + /** + * TestMessageWithOneof recursiveOneof. + * @name jspb.test.TestMessageWithOneof#recursiveOneof + * @type {string|undefined} + */ + recursiveOneof: (string|undefined); + + /** + * TestMessageWithOneof defaultOneofA. + * @name jspb.test.TestMessageWithOneof#defaultOneofA + * @type {string|undefined} + */ + defaultOneofA: (string|undefined); + + /** + * TestMessageWithOneof defaultOneofB. + * @name jspb.test.TestMessageWithOneof#defaultOneofB + * @type {string|undefined} + */ + defaultOneofB: (string|undefined); + + /** + * Creates a new TestMessageWithOneof instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.TestMessageWithOneof} TestMessageWithOneof instance + */ + static create(properties?: Object): jspb.test.TestMessageWithOneof; + + /** + * Encodes the specified TestMessageWithOneof. + * @function + * @param {jspb.test.TestMessageWithOneof|Object} message TestMessageWithOneof or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.TestMessageWithOneof|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestMessageWithOneof, length delimited. + * @param {jspb.test.TestMessageWithOneof|Object} message TestMessageWithOneof or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.TestMessageWithOneof|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestMessageWithOneof from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.TestMessageWithOneof} TestMessageWithOneof + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestMessageWithOneof; + + /** + * Decodes a TestMessageWithOneof from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.TestMessageWithOneof} TestMessageWithOneof + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.TestMessageWithOneof; + + /** + * Verifies a TestMessageWithOneof. + * @function + * @param {jspb.test.TestMessageWithOneof|Object} message TestMessageWithOneof or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.TestMessageWithOneof|Object)): string; + } + + /** + * Constructs a new TestEndsWithBytes. + * @exports jspb.test.TestEndsWithBytes + * @constructor + * @param {Object} [properties] Properties to set + */ + class TestEndsWithBytes { + + /** + * Constructs a new TestEndsWithBytes. + * @exports jspb.test.TestEndsWithBytes + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); + + /** + * TestEndsWithBytes value. + * @type {number} + */ + value: number; + + /** + * TestEndsWithBytes data. + * @type {Uint8Array} + */ + data: Uint8Array; + + /** + * Creates a new TestEndsWithBytes instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.TestEndsWithBytes} TestEndsWithBytes instance + */ + static create(properties?: Object): jspb.test.TestEndsWithBytes; + + /** + * Encodes the specified TestEndsWithBytes. + * @function + * @param {jspb.test.TestEndsWithBytes|Object} message TestEndsWithBytes or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.TestEndsWithBytes|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestEndsWithBytes, length delimited. + * @param {jspb.test.TestEndsWithBytes|Object} message TestEndsWithBytes or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.TestEndsWithBytes|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestEndsWithBytes from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.TestEndsWithBytes} TestEndsWithBytes + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestEndsWithBytes; + + /** + * Decodes a TestEndsWithBytes from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.TestEndsWithBytes} TestEndsWithBytes + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.TestEndsWithBytes; + + /** + * Verifies a TestEndsWithBytes. + * @function + * @param {jspb.test.TestEndsWithBytes|Object} message TestEndsWithBytes or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.TestEndsWithBytes|Object)): string; + } /** - * Decodes a TestMessageWithOneof from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.TestMessageWithOneof} TestMessageWithOneof + * Constructs a new TestMapFieldsNoBinary. + * @exports jspb.test.TestMapFieldsNoBinary + * @constructor + * @param {Object} [properties] Properties to set */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestMessageWithOneof; + class TestMapFieldsNoBinary { + + /** + * Constructs a new TestMapFieldsNoBinary. + * @exports jspb.test.TestMapFieldsNoBinary + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); + + /** + * TestMapFieldsNoBinary mapStringString. + * @type {string} + */ + mapStringString: string; + + /** + * TestMapFieldsNoBinary mapStringInt32. + * @type {number} + */ + mapStringInt32: number; + + /** + * TestMapFieldsNoBinary mapStringInt64. + * @type {number|Long} + */ + mapStringInt64: (number|Long); + + /** + * TestMapFieldsNoBinary mapStringBool. + * @type {boolean} + */ + mapStringBool: boolean; + + /** + * TestMapFieldsNoBinary mapStringDouble. + * @type {number} + */ + mapStringDouble: number; + + /** + * TestMapFieldsNoBinary mapStringEnum. + * @type {number} + */ + mapStringEnum: number; + + /** + * TestMapFieldsNoBinary mapStringMsg. + * @type {jspb.test.MapValueMessageNoBinary} + */ + mapStringMsg: jspb.test.MapValueMessageNoBinary; + + /** + * TestMapFieldsNoBinary mapInt32String. + * @type {string} + */ + mapInt32String: string; + + /** + * TestMapFieldsNoBinary mapInt64String. + * @type {string} + */ + mapInt64String: string; + + /** + * TestMapFieldsNoBinary mapBoolString. + * @type {string} + */ + mapBoolString: string; + + /** + * TestMapFieldsNoBinary testMapFields. + * @type {jspb.test.TestMapFieldsNoBinary} + */ + testMapFields: jspb.test.TestMapFieldsNoBinary; + + /** + * TestMapFieldsNoBinary mapStringTestmapfields. + * @type {jspb.test.TestMapFieldsNoBinary} + */ + mapStringTestmapfields: jspb.test.TestMapFieldsNoBinary; + + /** + * Creates a new TestMapFieldsNoBinary instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.TestMapFieldsNoBinary} TestMapFieldsNoBinary instance + */ + static create(properties?: Object): jspb.test.TestMapFieldsNoBinary; + + /** + * Encodes the specified TestMapFieldsNoBinary. + * @function + * @param {jspb.test.TestMapFieldsNoBinary|Object} message TestMapFieldsNoBinary or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.TestMapFieldsNoBinary|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestMapFieldsNoBinary, length delimited. + * @param {jspb.test.TestMapFieldsNoBinary|Object} message TestMapFieldsNoBinary or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.TestMapFieldsNoBinary|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestMapFieldsNoBinary from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.TestMapFieldsNoBinary} TestMapFieldsNoBinary + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestMapFieldsNoBinary; + + /** + * Decodes a TestMapFieldsNoBinary from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.TestMapFieldsNoBinary} TestMapFieldsNoBinary + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.TestMapFieldsNoBinary; + + /** + * Verifies a TestMapFieldsNoBinary. + * @function + * @param {jspb.test.TestMapFieldsNoBinary|Object} message TestMapFieldsNoBinary or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.TestMapFieldsNoBinary|Object)): string; + } + + /** + * Constructs a new MapValueMessageNoBinary. + * @exports jspb.test.MapValueMessageNoBinary + * @constructor + * @param {Object} [properties] Properties to set + */ + class MapValueMessageNoBinary { + + /** + * Constructs a new MapValueMessageNoBinary. + * @exports jspb.test.MapValueMessageNoBinary + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); + + /** + * MapValueMessageNoBinary foo. + * @type {number} + */ + foo: number; + + /** + * Creates a new MapValueMessageNoBinary instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.MapValueMessageNoBinary} MapValueMessageNoBinary instance + */ + static create(properties?: Object): jspb.test.MapValueMessageNoBinary; + + /** + * Encodes the specified MapValueMessageNoBinary. + * @function + * @param {jspb.test.MapValueMessageNoBinary|Object} message MapValueMessageNoBinary or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.MapValueMessageNoBinary|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MapValueMessageNoBinary, length delimited. + * @param {jspb.test.MapValueMessageNoBinary|Object} message MapValueMessageNoBinary or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.MapValueMessageNoBinary|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MapValueMessageNoBinary from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.MapValueMessageNoBinary} MapValueMessageNoBinary + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.MapValueMessageNoBinary; + + /** + * Decodes a MapValueMessageNoBinary from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.MapValueMessageNoBinary} MapValueMessageNoBinary + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.MapValueMessageNoBinary; + + /** + * Verifies a MapValueMessageNoBinary. + * @function + * @param {jspb.test.MapValueMessageNoBinary|Object} message MapValueMessageNoBinary or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.MapValueMessageNoBinary|Object)): string; + } + + /** + * Constructs a new Deeply. + * @exports jspb.test.Deeply + * @constructor + * @param {Object} [properties] Properties to set + */ + class Deeply { + + /** + * Constructs a new Deeply. + * @exports jspb.test.Deeply + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); + + /** + * Creates a new Deeply instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.Deeply} Deeply instance + */ + static create(properties?: Object): jspb.test.Deeply; + + /** + * Encodes the specified Deeply. + * @function + * @param {jspb.test.Deeply|Object} message Deeply or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.Deeply|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Deeply, length delimited. + * @param {jspb.test.Deeply|Object} message Deeply or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.Deeply|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Deeply from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.Deeply} Deeply + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Deeply; - /** - * Decodes a TestMessageWithOneof from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.TestMessageWithOneof} TestMessageWithOneof - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.TestMessageWithOneof; + /** + * Decodes a Deeply from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.Deeply} Deeply + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Deeply; - /** - * Verifies a TestMessageWithOneof. - * @function - * @param {jspb.test.TestMessageWithOneof|Object} message TestMessageWithOneof or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.TestMessageWithOneof|Object)): string; - } + /** + * Verifies a Deeply. + * @function + * @param {jspb.test.Deeply|Object} message Deeply or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.Deeply|Object)): string; + } - /** - * Constructs a new TestEndsWithBytes. - * @exports jspb.test.TestEndsWithBytes - * @constructor - * @param {Object} [properties] Properties to set - */ - class TestEndsWithBytes { /** - * Constructs a new TestEndsWithBytes. - * @exports jspb.test.TestEndsWithBytes + * Constructs a new Deeply. + * @exports jspb.test.Deeply * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + namespace Deeply { - /** - * TestEndsWithBytes value. - * @type {number} - */ - value: number; + /** + * Constructs a new Nested. + * @exports jspb.test.Deeply.Nested + * @constructor + * @param {Object} [properties] Properties to set + */ + class Nested { - /** - * TestEndsWithBytes data. - * @type {Uint8Array} - */ - data: Uint8Array; + /** + * Constructs a new Nested. + * @exports jspb.test.Deeply.Nested + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Creates a new TestEndsWithBytes instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.TestEndsWithBytes} TestEndsWithBytes instance - */ - static create(properties?: Object): jspb.test.TestEndsWithBytes; + /** + * Creates a new Nested instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.Deeply.Nested} Nested instance + */ + static create(properties?: Object): jspb.test.Deeply.Nested; - /** - * Encodes the specified TestEndsWithBytes. - * @function - * @param {jspb.test.TestEndsWithBytes|Object} message TestEndsWithBytes or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.TestEndsWithBytes|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Nested. + * @function + * @param {jspb.test.Deeply.Nested|Object} message Nested or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.Deeply.Nested|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TestEndsWithBytes, length delimited. - * @param {jspb.test.TestEndsWithBytes|Object} message TestEndsWithBytes or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.TestEndsWithBytes|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Nested, length delimited. + * @param {jspb.test.Deeply.Nested|Object} message Nested or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.Deeply.Nested|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TestEndsWithBytes from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.TestEndsWithBytes} TestEndsWithBytes - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestEndsWithBytes; + /** + * Decodes a Nested from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.Deeply.Nested} Nested + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Deeply.Nested; - /** - * Decodes a TestEndsWithBytes from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.TestEndsWithBytes} TestEndsWithBytes - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.TestEndsWithBytes; + /** + * Decodes a Nested from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.Deeply.Nested} Nested + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Deeply.Nested; - /** - * Verifies a TestEndsWithBytes. - * @function - * @param {jspb.test.TestEndsWithBytes|Object} message TestEndsWithBytes or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.TestEndsWithBytes|Object)): string; + /** + * Verifies a Nested. + * @function + * @param {jspb.test.Deeply.Nested|Object} message Nested or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.Deeply.Nested|Object)): string; + } + + + /** + * Constructs a new Nested. + * @exports jspb.test.Deeply.Nested + * @constructor + * @param {Object} [properties] Properties to set + */ + namespace Nested { + + /** + * Constructs a new Message. + * @exports jspb.test.Deeply.Nested.Message + * @constructor + * @param {Object} [properties] Properties to set + */ + class Message { + + /** + * Constructs a new Message. + * @exports jspb.test.Deeply.Nested.Message + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); + + /** + * Message count. + * @type {number} + */ + count: number; + + /** + * Creates a new Message instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {jspb.test.Deeply.Nested.Message} Message instance + */ + static create(properties?: Object): jspb.test.Deeply.Nested.Message; + + /** + * Encodes the specified Message. + * @function + * @param {jspb.test.Deeply.Nested.Message|Object} message Message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (jspb.test.Deeply.Nested.Message|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Message, length delimited. + * @param {jspb.test.Deeply.Nested.Message|Object} message Message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (jspb.test.Deeply.Nested.Message|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Message from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {jspb.test.Deeply.Nested.Message} Message + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Deeply.Nested.Message; + + /** + * Decodes a Message from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {jspb.test.Deeply.Nested.Message} Message + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Deeply.Nested.Message; + + /** + * Verifies a Message. + * @function + * @param {jspb.test.Deeply.Nested.Message|Object} message Message or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (jspb.test.Deeply.Nested.Message|Object)): string; + } + } + } } + } + + /** + * Namespace google. + * @exports google + * @namespace + */ + namespace google { /** - * Constructs a new TestMapFieldsNoBinary. - * @exports jspb.test.TestMapFieldsNoBinary - * @constructor - * @param {Object} [properties] Properties to set + * Namespace protobuf. + * @exports google.protobuf + * @namespace */ - class TestMapFieldsNoBinary { + namespace protobuf { /** - * Constructs a new TestMapFieldsNoBinary. - * @exports jspb.test.TestMapFieldsNoBinary + * Constructs a new FileDescriptorSet. + * @exports google.protobuf.FileDescriptorSet * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class FileDescriptorSet { - /** - * TestMapFieldsNoBinary mapStringString. - * @type {string} - */ - mapStringString: string; + /** + * Constructs a new FileDescriptorSet. + * @exports google.protobuf.FileDescriptorSet + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * TestMapFieldsNoBinary mapStringInt32. - * @type {number} - */ - mapStringInt32: number; + /** + * FileDescriptorSet file. + * @type {Array.} + */ + file: google.protobuf.FileDescriptorProto[]; - /** - * TestMapFieldsNoBinary mapStringInt64. - * @type {number|Long} - */ - mapStringInt64: (number|Long); + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + static create(properties?: Object): google.protobuf.FileDescriptorSet; - /** - * TestMapFieldsNoBinary mapStringBool. - * @type {boolean} - */ - mapStringBool: boolean; + /** + * Encodes the specified FileDescriptorSet. + * @function + * @param {google.protobuf.FileDescriptorSet|Object} message FileDescriptorSet or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.FileDescriptorSet|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * TestMapFieldsNoBinary mapStringDouble. - * @type {number} - */ - mapStringDouble: number; + /** + * Encodes the specified FileDescriptorSet, length delimited. + * @param {google.protobuf.FileDescriptorSet|Object} message FileDescriptorSet or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.FileDescriptorSet|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * TestMapFieldsNoBinary mapStringEnum. - * @type {number} - */ - mapStringEnum: number; + /** + * Decodes a FileDescriptorSet from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; - /** - * TestMapFieldsNoBinary mapStringMsg. - * @type {jspb.test.MapValueMessageNoBinary} - */ - mapStringMsg: jspb.test.MapValueMessageNoBinary; + /** + * Decodes a FileDescriptorSet from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet; - /** - * TestMapFieldsNoBinary mapInt32String. - * @type {string} - */ - mapInt32String: string; + /** + * Verifies a FileDescriptorSet. + * @function + * @param {google.protobuf.FileDescriptorSet|Object} message FileDescriptorSet or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.FileDescriptorSet|Object)): string; + } /** - * TestMapFieldsNoBinary mapInt64String. - * @type {string} + * Constructs a new FileDescriptorProto. + * @exports google.protobuf.FileDescriptorProto + * @constructor + * @param {Object} [properties] Properties to set */ - mapInt64String: string; + class FileDescriptorProto { - /** - * TestMapFieldsNoBinary mapBoolString. - * @type {string} - */ - mapBoolString: string; + /** + * Constructs a new FileDescriptorProto. + * @exports google.protobuf.FileDescriptorProto + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * TestMapFieldsNoBinary testMapFields. - * @type {jspb.test.TestMapFieldsNoBinary} - */ - testMapFields: jspb.test.TestMapFieldsNoBinary; + /** + * FileDescriptorProto name. + * @type {string} + */ + name: string; - /** - * TestMapFieldsNoBinary mapStringTestmapfields. - * @type {jspb.test.TestMapFieldsNoBinary} - */ - mapStringTestmapfields: jspb.test.TestMapFieldsNoBinary; + /** + * FileDescriptorProto package. + * @name google.protobuf.FileDescriptorProto#package + * @type {string} + */ + package: string; - /** - * Creates a new TestMapFieldsNoBinary instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.TestMapFieldsNoBinary} TestMapFieldsNoBinary instance - */ - static create(properties?: Object): jspb.test.TestMapFieldsNoBinary; + /** + * FileDescriptorProto dependency. + * @type {Array.} + */ + dependency: string[]; - /** - * Encodes the specified TestMapFieldsNoBinary. - * @function - * @param {jspb.test.TestMapFieldsNoBinary|Object} message TestMapFieldsNoBinary or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.TestMapFieldsNoBinary|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * FileDescriptorProto publicDependency. + * @type {Array.} + */ + publicDependency: number[]; - /** - * Encodes the specified TestMapFieldsNoBinary, length delimited. - * @param {jspb.test.TestMapFieldsNoBinary|Object} message TestMapFieldsNoBinary or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.TestMapFieldsNoBinary|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * FileDescriptorProto weakDependency. + * @type {Array.} + */ + weakDependency: number[]; - /** - * Decodes a TestMapFieldsNoBinary from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.TestMapFieldsNoBinary} TestMapFieldsNoBinary - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.TestMapFieldsNoBinary; + /** + * FileDescriptorProto messageType. + * @type {Array.} + */ + messageType: google.protobuf.DescriptorProto[]; - /** - * Decodes a TestMapFieldsNoBinary from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.TestMapFieldsNoBinary} TestMapFieldsNoBinary - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.TestMapFieldsNoBinary; + /** + * FileDescriptorProto enumType. + * @type {Array.} + */ + enumType: google.protobuf.EnumDescriptorProto[]; - /** - * Verifies a TestMapFieldsNoBinary. - * @function - * @param {jspb.test.TestMapFieldsNoBinary|Object} message TestMapFieldsNoBinary or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.TestMapFieldsNoBinary|Object)): string; - } + /** + * FileDescriptorProto service. + * @type {Array.} + */ + service: google.protobuf.ServiceDescriptorProto[]; - /** - * Constructs a new MapValueMessageNoBinary. - * @exports jspb.test.MapValueMessageNoBinary - * @constructor - * @param {Object} [properties] Properties to set - */ - class MapValueMessageNoBinary { + /** + * FileDescriptorProto extension. + * @type {Array.} + */ + extension: google.protobuf.FieldDescriptorProto[]; - /** - * Constructs a new MapValueMessageNoBinary. - * @exports jspb.test.MapValueMessageNoBinary - * @constructor - * @param {Object} [properties] Properties to set - */ - constructor(properties?: Object); + /** + * FileDescriptorProto options. + * @type {google.protobuf.FileOptions} + */ + options: google.protobuf.FileOptions; - /** - * MapValueMessageNoBinary foo. - * @type {number} - */ - foo: number; + /** + * FileDescriptorProto sourceCodeInfo. + * @type {google.protobuf.SourceCodeInfo} + */ + sourceCodeInfo: google.protobuf.SourceCodeInfo; - /** - * Creates a new MapValueMessageNoBinary instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.MapValueMessageNoBinary} MapValueMessageNoBinary instance - */ - static create(properties?: Object): jspb.test.MapValueMessageNoBinary; + /** + * FileDescriptorProto syntax. + * @type {string} + */ + syntax: string; - /** - * Encodes the specified MapValueMessageNoBinary. - * @function - * @param {jspb.test.MapValueMessageNoBinary|Object} message MapValueMessageNoBinary or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.MapValueMessageNoBinary|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + static create(properties?: Object): google.protobuf.FileDescriptorProto; - /** - * Encodes the specified MapValueMessageNoBinary, length delimited. - * @param {jspb.test.MapValueMessageNoBinary|Object} message MapValueMessageNoBinary or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.MapValueMessageNoBinary|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FileDescriptorProto. + * @function + * @param {google.protobuf.FileDescriptorProto|Object} message FileDescriptorProto or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.FileDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MapValueMessageNoBinary from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.MapValueMessageNoBinary} MapValueMessageNoBinary - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.MapValueMessageNoBinary; + /** + * Encodes the specified FileDescriptorProto, length delimited. + * @param {google.protobuf.FileDescriptorProto|Object} message FileDescriptorProto or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.FileDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MapValueMessageNoBinary from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.MapValueMessageNoBinary} MapValueMessageNoBinary - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.MapValueMessageNoBinary; + /** + * Decodes a FileDescriptorProto from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; - /** - * Verifies a MapValueMessageNoBinary. - * @function - * @param {jspb.test.MapValueMessageNoBinary|Object} message MapValueMessageNoBinary or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.MapValueMessageNoBinary|Object)): string; - } + /** + * Decodes a FileDescriptorProto from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto; - /** - * Constructs a new Deeply. - * @exports jspb.test.Deeply - * @constructor - * @param {Object} [properties] Properties to set - */ - class Deeply { + /** + * Verifies a FileDescriptorProto. + * @function + * @param {google.protobuf.FileDescriptorProto|Object} message FileDescriptorProto or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.FileDescriptorProto|Object)): string; + } /** - * Constructs a new Deeply. - * @exports jspb.test.Deeply + * Constructs a new DescriptorProto. + * @exports google.protobuf.DescriptorProto * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class DescriptorProto { - /** - * Creates a new Deeply instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {jspb.test.Deeply} Deeply instance - */ - static create(properties?: Object): jspb.test.Deeply; + /** + * Constructs a new DescriptorProto. + * @exports google.protobuf.DescriptorProto + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Encodes the specified Deeply. - * @function - * @param {jspb.test.Deeply|Object} message Deeply or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (jspb.test.Deeply|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * DescriptorProto name. + * @type {string} + */ + name: string; - /** - * Encodes the specified Deeply, length delimited. - * @param {jspb.test.Deeply|Object} message Deeply or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (jspb.test.Deeply|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * DescriptorProto field. + * @type {Array.} + */ + field: google.protobuf.FieldDescriptorProto[]; - /** - * Decodes a Deeply from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.Deeply} Deeply - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Deeply; + /** + * DescriptorProto extension. + * @type {Array.} + */ + extension: google.protobuf.FieldDescriptorProto[]; - /** - * Decodes a Deeply from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.Deeply} Deeply - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Deeply; + /** + * DescriptorProto nestedType. + * @type {Array.} + */ + nestedType: google.protobuf.DescriptorProto[]; - /** - * Verifies a Deeply. - * @function - * @param {jspb.test.Deeply|Object} message Deeply or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (jspb.test.Deeply|Object)): string; - } + /** + * DescriptorProto enumType. + * @type {Array.} + */ + enumType: google.protobuf.EnumDescriptorProto[]; + /** + * DescriptorProto extensionRange. + * @type {Array.} + */ + extensionRange: google.protobuf.DescriptorProto.ExtensionRange[]; - /** - * Constructs a new Deeply. - * @exports jspb.test.Deeply - * @constructor - * @param {Object} [properties] Properties to set - */ - module Deeply { + /** + * DescriptorProto oneofDecl. + * @type {Array.} + */ + oneofDecl: google.protobuf.OneofDescriptorProto[]; - /** - * Constructs a new Nested. - * @exports jspb.test.Deeply.Nested - * @constructor - * @param {Object} [properties] Properties to set - */ - class Nested { + /** + * DescriptorProto options. + * @type {google.protobuf.MessageOptions} + */ + options: google.protobuf.MessageOptions; /** - * Constructs a new Nested. - * @exports jspb.test.Deeply.Nested - * @constructor - * @param {Object} [properties] Properties to set + * DescriptorProto reservedRange. + * @type {Array.} */ - constructor(properties?: Object); + reservedRange: google.protobuf.DescriptorProto.ReservedRange[]; + + /** + * DescriptorProto reservedName. + * @type {Array.} + */ + reservedName: string[]; /** - * Creates a new Nested instance using the specified properties. + * Creates a new DescriptorProto instance using the specified properties. * @param {Object} [properties] Properties to set - * @returns {jspb.test.Deeply.Nested} Nested instance + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance */ - static create(properties?: Object): jspb.test.Deeply.Nested; + static create(properties?: Object): google.protobuf.DescriptorProto; /** - * Encodes the specified Nested. + * Encodes the specified DescriptorProto. * @function - * @param {jspb.test.Deeply.Nested|Object} message Nested or plain object to encode + * @param {google.protobuf.DescriptorProto|Object} message DescriptorProto or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encode(message: (jspb.test.Deeply.Nested|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encode(message: (google.protobuf.DescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Nested, length delimited. - * @param {jspb.test.Deeply.Nested|Object} message Nested or plain object to encode + * Encodes the specified DescriptorProto, length delimited. + * @param {google.protobuf.DescriptorProto|Object} message DescriptorProto or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encodeDelimited(message: (jspb.test.Deeply.Nested|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encodeDelimited(message: (google.protobuf.DescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Nested from the specified reader or buffer. + * Decodes a DescriptorProto from the specified reader or buffer. * @function * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.Deeply.Nested} Nested + * @returns {google.protobuf.DescriptorProto} DescriptorProto */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Deeply.Nested; + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; /** - * Decodes a Nested from the specified reader or buffer, length delimited. + * Decodes a DescriptorProto from the specified reader or buffer, length delimited. * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.Deeply.Nested} Nested + * @returns {google.protobuf.DescriptorProto} DescriptorProto */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Deeply.Nested; + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto; /** - * Verifies a Nested. + * Verifies a DescriptorProto. * @function - * @param {jspb.test.Deeply.Nested|Object} message Nested or plain object to verify + * @param {google.protobuf.DescriptorProto|Object} message DescriptorProto or plain object to verify * @returns {?string} `null` if valid, otherwise the reason why it is not */ - static verify(message: (jspb.test.Deeply.Nested|Object)): string; + static verify(message: (google.protobuf.DescriptorProto|Object)): string; } /** - * Constructs a new Nested. - * @exports jspb.test.Deeply.Nested + * Constructs a new DescriptorProto. + * @exports google.protobuf.DescriptorProto * @constructor * @param {Object} [properties] Properties to set */ - module Nested { + namespace DescriptorProto { /** - * Constructs a new Message. - * @exports jspb.test.Deeply.Nested.Message + * Constructs a new ExtensionRange. + * @exports google.protobuf.DescriptorProto.ExtensionRange * @constructor * @param {Object} [properties] Properties to set */ - class Message { + class ExtensionRange { /** - * Constructs a new Message. - * @exports jspb.test.Deeply.Nested.Message + * Constructs a new ExtensionRange. + * @exports google.protobuf.DescriptorProto.ExtensionRange * @constructor * @param {Object} [properties] Properties to set */ constructor(properties?: Object); /** - * Message count. + * ExtensionRange start. + * @type {number} + */ + start: number; + + /** + * ExtensionRange end. * @type {number} */ - count: number; + end: number; /** - * Creates a new Message instance using the specified properties. + * Creates a new ExtensionRange instance using the specified properties. * @param {Object} [properties] Properties to set - * @returns {jspb.test.Deeply.Nested.Message} Message instance + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance */ - static create(properties?: Object): jspb.test.Deeply.Nested.Message; + static create(properties?: Object): google.protobuf.DescriptorProto.ExtensionRange; /** - * Encodes the specified Message. + * Encodes the specified ExtensionRange. * @function - * @param {jspb.test.Deeply.Nested.Message|Object} message Message or plain object to encode + * @param {google.protobuf.DescriptorProto.ExtensionRange|Object} message ExtensionRange or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encode(message: (jspb.test.Deeply.Nested.Message|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encode(message: (google.protobuf.DescriptorProto.ExtensionRange|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Message, length delimited. - * @param {jspb.test.Deeply.Nested.Message|Object} message Message or plain object to encode + * Encodes the specified ExtensionRange, length delimited. + * @param {google.protobuf.DescriptorProto.ExtensionRange|Object} message ExtensionRange or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encodeDelimited(message: (jspb.test.Deeply.Nested.Message|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encodeDelimited(message: (google.protobuf.DescriptorProto.ExtensionRange|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Message from the specified reader or buffer. + * Decodes a ExtensionRange from the specified reader or buffer. * @function * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {jspb.test.Deeply.Nested.Message} Message + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): jspb.test.Deeply.Nested.Message; + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; /** - * Decodes a Message from the specified reader or buffer, length delimited. + * Decodes a ExtensionRange from the specified reader or buffer, length delimited. * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {jspb.test.Deeply.Nested.Message} Message + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): jspb.test.Deeply.Nested.Message; + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange; /** - * Verifies a Message. + * Verifies a ExtensionRange. * @function - * @param {jspb.test.Deeply.Nested.Message|Object} message Message or plain object to verify + * @param {google.protobuf.DescriptorProto.ExtensionRange|Object} message ExtensionRange or plain object to verify * @returns {?string} `null` if valid, otherwise the reason why it is not */ - static verify(message: (jspb.test.Deeply.Nested.Message|Object)): string; + static verify(message: (google.protobuf.DescriptorProto.ExtensionRange|Object)): string; } - } - } - } -} - -/** - * Namespace google. - * @exports google - * @namespace - */ -declare module google { - - /** - * Namespace protobuf. - * @exports google.protobuf - * @namespace - */ - module protobuf { - - /** - * Constructs a new FileDescriptorSet. - * @exports google.protobuf.FileDescriptorSet - * @constructor - * @param {Object} [properties] Properties to set - */ - class FileDescriptorSet { - - /** - * Constructs a new FileDescriptorSet. - * @exports google.protobuf.FileDescriptorSet - * @constructor - * @param {Object} [properties] Properties to set - */ - constructor(properties?: Object); - - /** - * FileDescriptorSet file. - * @type {Array.} - */ - file: google.protobuf.FileDescriptorProto[]; - - /** - * Creates a new FileDescriptorSet instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance - */ - static create(properties?: Object): google.protobuf.FileDescriptorSet; - - /** - * Encodes the specified FileDescriptorSet. - * @function - * @param {google.protobuf.FileDescriptorSet|Object} message FileDescriptorSet or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.FileDescriptorSet|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FileDescriptorSet, length delimited. - * @param {google.protobuf.FileDescriptorSet|Object} message FileDescriptorSet or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.FileDescriptorSet|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileDescriptorSet from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; - - /** - * Decodes a FileDescriptorSet from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet; - - /** - * Verifies a FileDescriptorSet. - * @function - * @param {google.protobuf.FileDescriptorSet|Object} message FileDescriptorSet or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.FileDescriptorSet|Object)): string; - } - - /** - * Constructs a new FileDescriptorProto. - * @exports google.protobuf.FileDescriptorProto - * @constructor - * @param {Object} [properties] Properties to set - */ - class FileDescriptorProto { - - /** - * Constructs a new FileDescriptorProto. - * @exports google.protobuf.FileDescriptorProto - * @constructor - * @param {Object} [properties] Properties to set - */ - constructor(properties?: Object); - - /** - * FileDescriptorProto name. - * @type {string} - */ - name: string; - - /** - * FileDescriptorProto package. - * @name google.protobuf.FileDescriptorProto#package - * @type {string} - */ - package: string; - - /** - * FileDescriptorProto dependency. - * @type {Array.} - */ - dependency: string[]; - - /** - * FileDescriptorProto publicDependency. - * @type {Array.} - */ - publicDependency: number[]; - - /** - * FileDescriptorProto weakDependency. - * @type {Array.} - */ - weakDependency: number[]; - - /** - * FileDescriptorProto messageType. - * @type {Array.} - */ - messageType: google.protobuf.DescriptorProto[]; - - /** - * FileDescriptorProto enumType. - * @type {Array.} - */ - enumType: google.protobuf.EnumDescriptorProto[]; - - /** - * FileDescriptorProto service. - * @type {Array.} - */ - service: google.protobuf.ServiceDescriptorProto[]; - - /** - * FileDescriptorProto extension. - * @type {Array.} - */ - extension: google.protobuf.FieldDescriptorProto[]; - - /** - * FileDescriptorProto options. - * @type {google.protobuf.FileOptions} - */ - options: google.protobuf.FileOptions; - - /** - * FileDescriptorProto sourceCodeInfo. - * @type {google.protobuf.SourceCodeInfo} - */ - sourceCodeInfo: google.protobuf.SourceCodeInfo; - - /** - * FileDescriptorProto syntax. - * @type {string} - */ - syntax: string; - - /** - * Creates a new FileDescriptorProto instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance - */ - static create(properties?: Object): google.protobuf.FileDescriptorProto; - - /** - * Encodes the specified FileDescriptorProto. - * @function - * @param {google.protobuf.FileDescriptorProto|Object} message FileDescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.FileDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FileDescriptorProto, length delimited. - * @param {google.protobuf.FileDescriptorProto|Object} message FileDescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.FileDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileDescriptorProto from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; - - /** - * Decodes a FileDescriptorProto from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto; - - /** - * Verifies a FileDescriptorProto. - * @function - * @param {google.protobuf.FileDescriptorProto|Object} message FileDescriptorProto or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.FileDescriptorProto|Object)): string; - } - - /** - * Constructs a new DescriptorProto. - * @exports google.protobuf.DescriptorProto - * @constructor - * @param {Object} [properties] Properties to set - */ - class DescriptorProto { - - /** - * Constructs a new DescriptorProto. - * @exports google.protobuf.DescriptorProto - * @constructor - * @param {Object} [properties] Properties to set - */ - constructor(properties?: Object); - - /** - * DescriptorProto name. - * @type {string} - */ - name: string; - - /** - * DescriptorProto field. - * @type {Array.} - */ - field: google.protobuf.FieldDescriptorProto[]; - - /** - * DescriptorProto extension. - * @type {Array.} - */ - extension: google.protobuf.FieldDescriptorProto[]; - - /** - * DescriptorProto nestedType. - * @type {Array.} - */ - nestedType: google.protobuf.DescriptorProto[]; - - /** - * DescriptorProto enumType. - * @type {Array.} - */ - enumType: google.protobuf.EnumDescriptorProto[]; - - /** - * DescriptorProto extensionRange. - * @type {Array.} - */ - extensionRange: google.protobuf.DescriptorProto.ExtensionRange[]; - - /** - * DescriptorProto oneofDecl. - * @type {Array.} - */ - oneofDecl: google.protobuf.OneofDescriptorProto[]; - - /** - * DescriptorProto options. - * @type {google.protobuf.MessageOptions} - */ - options: google.protobuf.MessageOptions; - /** - * DescriptorProto reservedRange. - * @type {Array.} - */ - reservedRange: google.protobuf.DescriptorProto.ReservedRange[]; - - /** - * DescriptorProto reservedName. - * @type {Array.} - */ - reservedName: string[]; + /** + * Constructs a new ReservedRange. + * @exports google.protobuf.DescriptorProto.ReservedRange + * @constructor + * @param {Object} [properties] Properties to set + */ + class ReservedRange { - /** - * Creates a new DescriptorProto instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto} DescriptorProto instance - */ - static create(properties?: Object): google.protobuf.DescriptorProto; + /** + * Constructs a new ReservedRange. + * @exports google.protobuf.DescriptorProto.ReservedRange + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Encodes the specified DescriptorProto. - * @function - * @param {google.protobuf.DescriptorProto|Object} message DescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.DescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * ReservedRange start. + * @type {number} + */ + start: number; - /** - * Encodes the specified DescriptorProto, length delimited. - * @param {google.protobuf.DescriptorProto|Object} message DescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.DescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * ReservedRange end. + * @type {number} + */ + end: number; - /** - * Decodes a DescriptorProto from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto} DescriptorProto - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; + /** + * Creates a new ReservedRange instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + static create(properties?: Object): google.protobuf.DescriptorProto.ReservedRange; - /** - * Decodes a DescriptorProto from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto} DescriptorProto - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto; + /** + * Encodes the specified ReservedRange. + * @function + * @param {google.protobuf.DescriptorProto.ReservedRange|Object} message ReservedRange or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.DescriptorProto.ReservedRange|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a DescriptorProto. - * @function - * @param {google.protobuf.DescriptorProto|Object} message DescriptorProto or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.DescriptorProto|Object)): string; - } + /** + * Encodes the specified ReservedRange, length delimited. + * @param {google.protobuf.DescriptorProto.ReservedRange|Object} message ReservedRange or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.DescriptorProto.ReservedRange|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ReservedRange from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; - /** - * Constructs a new DescriptorProto. - * @exports google.protobuf.DescriptorProto - * @constructor - * @param {Object} [properties] Properties to set - */ - module DescriptorProto { + /** + * Decodes a ReservedRange from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Verifies a ReservedRange. + * @function + * @param {google.protobuf.DescriptorProto.ReservedRange|Object} message ReservedRange or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.DescriptorProto.ReservedRange|Object)): string; + } + } /** - * Constructs a new ExtensionRange. - * @exports google.protobuf.DescriptorProto.ExtensionRange + * Constructs a new FieldDescriptorProto. + * @exports google.protobuf.FieldDescriptorProto * @constructor * @param {Object} [properties] Properties to set */ - class ExtensionRange { + class FieldDescriptorProto { /** - * Constructs a new ExtensionRange. - * @exports google.protobuf.DescriptorProto.ExtensionRange + * Constructs a new FieldDescriptorProto. + * @exports google.protobuf.FieldDescriptorProto * @constructor * @param {Object} [properties] Properties to set */ constructor(properties?: Object); /** - * ExtensionRange start. + * FieldDescriptorProto name. + * @type {string} + */ + name: string; + + /** + * FieldDescriptorProto number. + * @type {number} + */ + number: number; + + /** + * FieldDescriptorProto label. + * @type {number} + */ + label: number; + + /** + * FieldDescriptorProto type. * @type {number} */ - start: number; + type: number; + + /** + * FieldDescriptorProto typeName. + * @type {string} + */ + typeName: string; + + /** + * FieldDescriptorProto extendee. + * @type {string} + */ + extendee: string; + + /** + * FieldDescriptorProto defaultValue. + * @type {string} + */ + defaultValue: string; /** - * ExtensionRange end. + * FieldDescriptorProto oneofIndex. * @type {number} */ - end: number; + oneofIndex: number; + + /** + * FieldDescriptorProto jsonName. + * @type {string} + */ + jsonName: string; + + /** + * FieldDescriptorProto options. + * @type {google.protobuf.FieldOptions} + */ + options: google.protobuf.FieldOptions; /** - * Creates a new ExtensionRange instance using the specified properties. + * Creates a new FieldDescriptorProto instance using the specified properties. * @param {Object} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance */ - static create(properties?: Object): google.protobuf.DescriptorProto.ExtensionRange; + static create(properties?: Object): google.protobuf.FieldDescriptorProto; /** - * Encodes the specified ExtensionRange. + * Encodes the specified FieldDescriptorProto. * @function - * @param {google.protobuf.DescriptorProto.ExtensionRange|Object} message ExtensionRange or plain object to encode + * @param {google.protobuf.FieldDescriptorProto|Object} message FieldDescriptorProto or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encode(message: (google.protobuf.DescriptorProto.ExtensionRange|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encode(message: (google.protobuf.FieldDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExtensionRange, length delimited. - * @param {google.protobuf.DescriptorProto.ExtensionRange|Object} message ExtensionRange or plain object to encode + * Encodes the specified FieldDescriptorProto, length delimited. + * @param {google.protobuf.FieldDescriptorProto|Object} message FieldDescriptorProto or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encodeDelimited(message: (google.protobuf.DescriptorProto.ExtensionRange|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encodeDelimited(message: (google.protobuf.FieldDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ExtensionRange from the specified reader or buffer. + * Decodes a FieldDescriptorProto from the specified reader or buffer. * @function * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; /** - * Decodes a ExtensionRange from the specified reader or buffer, length delimited. + * Decodes a FieldDescriptorProto from the specified reader or buffer, length delimited. * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange; + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto; /** - * Verifies a ExtensionRange. + * Verifies a FieldDescriptorProto. * @function - * @param {google.protobuf.DescriptorProto.ExtensionRange|Object} message ExtensionRange or plain object to verify + * @param {google.protobuf.FieldDescriptorProto|Object} message FieldDescriptorProto or plain object to verify * @returns {?string} `null` if valid, otherwise the reason why it is not */ - static verify(message: (google.protobuf.DescriptorProto.ExtensionRange|Object)): string; + static verify(message: (google.protobuf.FieldDescriptorProto|Object)): string; } /** - * Constructs a new ReservedRange. - * @exports google.protobuf.DescriptorProto.ReservedRange + * Constructs a new OneofDescriptorProto. + * @exports google.protobuf.OneofDescriptorProto * @constructor * @param {Object} [properties] Properties to set */ - class ReservedRange { + class OneofDescriptorProto { /** - * Constructs a new ReservedRange. - * @exports google.protobuf.DescriptorProto.ReservedRange + * Constructs a new OneofDescriptorProto. + * @exports google.protobuf.OneofDescriptorProto * @constructor * @param {Object} [properties] Properties to set */ constructor(properties?: Object); /** - * ReservedRange start. - * @type {number} + * OneofDescriptorProto name. + * @type {string} */ - start: number; + name: string; /** - * ReservedRange end. - * @type {number} + * OneofDescriptorProto options. + * @type {google.protobuf.OneofOptions} */ - end: number; + options: google.protobuf.OneofOptions; /** - * Creates a new ReservedRange instance using the specified properties. + * Creates a new OneofDescriptorProto instance using the specified properties. * @param {Object} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance */ - static create(properties?: Object): google.protobuf.DescriptorProto.ReservedRange; + static create(properties?: Object): google.protobuf.OneofDescriptorProto; /** - * Encodes the specified ReservedRange. + * Encodes the specified OneofDescriptorProto. * @function - * @param {google.protobuf.DescriptorProto.ReservedRange|Object} message ReservedRange or plain object to encode + * @param {google.protobuf.OneofDescriptorProto|Object} message OneofDescriptorProto or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encode(message: (google.protobuf.DescriptorProto.ReservedRange|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encode(message: (google.protobuf.OneofDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReservedRange, length delimited. - * @param {google.protobuf.DescriptorProto.ReservedRange|Object} message ReservedRange or plain object to encode + * Encodes the specified OneofDescriptorProto, length delimited. + * @param {google.protobuf.OneofDescriptorProto|Object} message OneofDescriptorProto or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encodeDelimited(message: (google.protobuf.DescriptorProto.ReservedRange|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encodeDelimited(message: (google.protobuf.OneofDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReservedRange from the specified reader or buffer. + * Decodes a OneofDescriptorProto from the specified reader or buffer. * @function * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; /** - * Decodes a ReservedRange from the specified reader or buffer, length delimited. + * Decodes a OneofDescriptorProto from the specified reader or buffer, length delimited. * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange; + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto; /** - * Verifies a ReservedRange. + * Verifies a OneofDescriptorProto. * @function - * @param {google.protobuf.DescriptorProto.ReservedRange|Object} message ReservedRange or plain object to verify + * @param {google.protobuf.OneofDescriptorProto|Object} message OneofDescriptorProto or plain object to verify * @returns {?string} `null` if valid, otherwise the reason why it is not */ - static verify(message: (google.protobuf.DescriptorProto.ReservedRange|Object)): string; + static verify(message: (google.protobuf.OneofDescriptorProto|Object)): string; } - } - - /** - * Constructs a new FieldDescriptorProto. - * @exports google.protobuf.FieldDescriptorProto - * @constructor - * @param {Object} [properties] Properties to set - */ - class FieldDescriptorProto { - - /** - * Constructs a new FieldDescriptorProto. - * @exports google.protobuf.FieldDescriptorProto - * @constructor - * @param {Object} [properties] Properties to set - */ - constructor(properties?: Object); - - /** - * FieldDescriptorProto name. - * @type {string} - */ - name: string; - - /** - * FieldDescriptorProto number. - * @type {number} - */ - number: number; - - /** - * FieldDescriptorProto label. - * @type {number} - */ - label: number; - - /** - * FieldDescriptorProto type. - * @type {number} - */ - type: number; - - /** - * FieldDescriptorProto typeName. - * @type {string} - */ - typeName: string; - - /** - * FieldDescriptorProto extendee. - * @type {string} - */ - extendee: string; - - /** - * FieldDescriptorProto defaultValue. - * @type {string} - */ - defaultValue: string; - - /** - * FieldDescriptorProto oneofIndex. - * @type {number} - */ - oneofIndex: number; - - /** - * FieldDescriptorProto jsonName. - * @type {string} - */ - jsonName: string; - - /** - * FieldDescriptorProto options. - * @type {google.protobuf.FieldOptions} - */ - options: google.protobuf.FieldOptions; - - /** - * Creates a new FieldDescriptorProto instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance - */ - static create(properties?: Object): google.protobuf.FieldDescriptorProto; - - /** - * Encodes the specified FieldDescriptorProto. - * @function - * @param {google.protobuf.FieldDescriptorProto|Object} message FieldDescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.FieldDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FieldDescriptorProto, length delimited. - * @param {google.protobuf.FieldDescriptorProto|Object} message FieldDescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.FieldDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FieldDescriptorProto from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; - - /** - * Decodes a FieldDescriptorProto from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto; - - /** - * Verifies a FieldDescriptorProto. - * @function - * @param {google.protobuf.FieldDescriptorProto|Object} message FieldDescriptorProto or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.FieldDescriptorProto|Object)): string; - } - - /** - * Constructs a new OneofDescriptorProto. - * @exports google.protobuf.OneofDescriptorProto - * @constructor - * @param {Object} [properties] Properties to set - */ - class OneofDescriptorProto { - - /** - * Constructs a new OneofDescriptorProto. - * @exports google.protobuf.OneofDescriptorProto - * @constructor - * @param {Object} [properties] Properties to set - */ - constructor(properties?: Object); - - /** - * OneofDescriptorProto name. - * @type {string} - */ - name: string; - - /** - * OneofDescriptorProto options. - * @type {google.protobuf.OneofOptions} - */ - options: google.protobuf.OneofOptions; - - /** - * Creates a new OneofDescriptorProto instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance - */ - static create(properties?: Object): google.protobuf.OneofDescriptorProto; - - /** - * Encodes the specified OneofDescriptorProto. - * @function - * @param {google.protobuf.OneofDescriptorProto|Object} message OneofDescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.OneofDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified OneofDescriptorProto, length delimited. - * @param {google.protobuf.OneofDescriptorProto|Object} message OneofDescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.OneofDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a OneofDescriptorProto from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; - - /** - * Decodes a OneofDescriptorProto from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto; - - /** - * Verifies a OneofDescriptorProto. - * @function - * @param {google.protobuf.OneofDescriptorProto|Object} message OneofDescriptorProto or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.OneofDescriptorProto|Object)): string; - } - - /** - * Constructs a new EnumDescriptorProto. - * @exports google.protobuf.EnumDescriptorProto - * @constructor - * @param {Object} [properties] Properties to set - */ - class EnumDescriptorProto { /** * Constructs a new EnumDescriptorProto. @@ -3110,82 +3107,82 @@ declare module google { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class EnumDescriptorProto { - /** - * EnumDescriptorProto name. - * @type {string} - */ - name: string; + /** + * Constructs a new EnumDescriptorProto. + * @exports google.protobuf.EnumDescriptorProto + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * EnumDescriptorProto value. - * @type {Array.} - */ - value: google.protobuf.EnumValueDescriptorProto[]; + /** + * EnumDescriptorProto name. + * @type {string} + */ + name: string; - /** - * EnumDescriptorProto options. - * @type {google.protobuf.EnumOptions} - */ - options: google.protobuf.EnumOptions; + /** + * EnumDescriptorProto value. + * @type {Array.} + */ + value: google.protobuf.EnumValueDescriptorProto[]; - /** - * Creates a new EnumDescriptorProto instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance - */ - static create(properties?: Object): google.protobuf.EnumDescriptorProto; + /** + * EnumDescriptorProto options. + * @type {google.protobuf.EnumOptions} + */ + options: google.protobuf.EnumOptions; - /** - * Encodes the specified EnumDescriptorProto. - * @function - * @param {google.protobuf.EnumDescriptorProto|Object} message EnumDescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.EnumDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + */ + static create(properties?: Object): google.protobuf.EnumDescriptorProto; - /** - * Encodes the specified EnumDescriptorProto, length delimited. - * @param {google.protobuf.EnumDescriptorProto|Object} message EnumDescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.EnumDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified EnumDescriptorProto. + * @function + * @param {google.protobuf.EnumDescriptorProto|Object} message EnumDescriptorProto or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.EnumDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a EnumDescriptorProto from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; + /** + * Encodes the specified EnumDescriptorProto, length delimited. + * @param {google.protobuf.EnumDescriptorProto|Object} message EnumDescriptorProto or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.EnumDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a EnumDescriptorProto from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto; + /** + * Decodes a EnumDescriptorProto from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; - /** - * Verifies a EnumDescriptorProto. - * @function - * @param {google.protobuf.EnumDescriptorProto|Object} message EnumDescriptorProto or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.EnumDescriptorProto|Object)): string; - } + /** + * Decodes a EnumDescriptorProto from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto; - /** - * Constructs a new EnumValueDescriptorProto. - * @exports google.protobuf.EnumValueDescriptorProto - * @constructor - * @param {Object} [properties] Properties to set - */ - class EnumValueDescriptorProto { + /** + * Verifies a EnumDescriptorProto. + * @function + * @param {google.protobuf.EnumDescriptorProto|Object} message EnumDescriptorProto or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.EnumDescriptorProto|Object)): string; + } /** * Constructs a new EnumValueDescriptorProto. @@ -3193,82 +3190,82 @@ declare module google { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class EnumValueDescriptorProto { - /** - * EnumValueDescriptorProto name. - * @type {string} - */ - name: string; + /** + * Constructs a new EnumValueDescriptorProto. + * @exports google.protobuf.EnumValueDescriptorProto + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * EnumValueDescriptorProto number. - * @type {number} - */ - number: number; + /** + * EnumValueDescriptorProto name. + * @type {string} + */ + name: string; - /** - * EnumValueDescriptorProto options. - * @type {google.protobuf.EnumValueOptions} - */ - options: google.protobuf.EnumValueOptions; + /** + * EnumValueDescriptorProto number. + * @type {number} + */ + number: number; - /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance - */ - static create(properties?: Object): google.protobuf.EnumValueDescriptorProto; + /** + * EnumValueDescriptorProto options. + * @type {google.protobuf.EnumValueOptions} + */ + options: google.protobuf.EnumValueOptions; - /** - * Encodes the specified EnumValueDescriptorProto. - * @function - * @param {google.protobuf.EnumValueDescriptorProto|Object} message EnumValueDescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.EnumValueDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + */ + static create(properties?: Object): google.protobuf.EnumValueDescriptorProto; - /** - * Encodes the specified EnumValueDescriptorProto, length delimited. - * @param {google.protobuf.EnumValueDescriptorProto|Object} message EnumValueDescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.EnumValueDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified EnumValueDescriptorProto. + * @function + * @param {google.protobuf.EnumValueDescriptorProto|Object} message EnumValueDescriptorProto or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.EnumValueDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a EnumValueDescriptorProto from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; + /** + * Encodes the specified EnumValueDescriptorProto, length delimited. + * @param {google.protobuf.EnumValueDescriptorProto|Object} message EnumValueDescriptorProto or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.EnumValueDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a EnumValueDescriptorProto from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto; + /** + * Decodes a EnumValueDescriptorProto from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; - /** - * Verifies a EnumValueDescriptorProto. - * @function - * @param {google.protobuf.EnumValueDescriptorProto|Object} message EnumValueDescriptorProto or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.EnumValueDescriptorProto|Object)): string; - } + /** + * Decodes a EnumValueDescriptorProto from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto; - /** - * Constructs a new ServiceDescriptorProto. - * @exports google.protobuf.ServiceDescriptorProto - * @constructor - * @param {Object} [properties] Properties to set - */ - class ServiceDescriptorProto { + /** + * Verifies a EnumValueDescriptorProto. + * @function + * @param {google.protobuf.EnumValueDescriptorProto|Object} message EnumValueDescriptorProto or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.EnumValueDescriptorProto|Object)): string; + } /** * Constructs a new ServiceDescriptorProto. @@ -3276,82 +3273,82 @@ declare module google { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class ServiceDescriptorProto { - /** - * ServiceDescriptorProto name. - * @type {string} - */ - name: string; + /** + * Constructs a new ServiceDescriptorProto. + * @exports google.protobuf.ServiceDescriptorProto + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * ServiceDescriptorProto method. - * @type {Array.} - */ - method: google.protobuf.MethodDescriptorProto[]; + /** + * ServiceDescriptorProto name. + * @type {string} + */ + name: string; - /** - * ServiceDescriptorProto options. - * @type {google.protobuf.ServiceOptions} - */ - options: google.protobuf.ServiceOptions; + /** + * ServiceDescriptorProto method. + * @type {Array.} + */ + method: google.protobuf.MethodDescriptorProto[]; - /** - * Creates a new ServiceDescriptorProto instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance - */ - static create(properties?: Object): google.protobuf.ServiceDescriptorProto; + /** + * ServiceDescriptorProto options. + * @type {google.protobuf.ServiceOptions} + */ + options: google.protobuf.ServiceOptions; - /** - * Encodes the specified ServiceDescriptorProto. - * @function - * @param {google.protobuf.ServiceDescriptorProto|Object} message ServiceDescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.ServiceDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + */ + static create(properties?: Object): google.protobuf.ServiceDescriptorProto; - /** - * Encodes the specified ServiceDescriptorProto, length delimited. - * @param {google.protobuf.ServiceDescriptorProto|Object} message ServiceDescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.ServiceDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ServiceDescriptorProto. + * @function + * @param {google.protobuf.ServiceDescriptorProto|Object} message ServiceDescriptorProto or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.ServiceDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ServiceDescriptorProto from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; + /** + * Encodes the specified ServiceDescriptorProto, length delimited. + * @param {google.protobuf.ServiceDescriptorProto|Object} message ServiceDescriptorProto or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.ServiceDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ServiceDescriptorProto from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto; + /** + * Decodes a ServiceDescriptorProto from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; - /** - * Verifies a ServiceDescriptorProto. - * @function - * @param {google.protobuf.ServiceDescriptorProto|Object} message ServiceDescriptorProto or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.ServiceDescriptorProto|Object)): string; - } + /** + * Decodes a ServiceDescriptorProto from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto; - /** - * Constructs a new MethodDescriptorProto. - * @exports google.protobuf.MethodDescriptorProto - * @constructor - * @param {Object} [properties] Properties to set - */ - class MethodDescriptorProto { + /** + * Verifies a ServiceDescriptorProto. + * @function + * @param {google.protobuf.ServiceDescriptorProto|Object} message ServiceDescriptorProto or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.ServiceDescriptorProto|Object)): string; + } /** * Constructs a new MethodDescriptorProto. @@ -3359,100 +3356,100 @@ declare module google { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class MethodDescriptorProto { - /** - * MethodDescriptorProto name. - * @type {string} - */ - name: string; + /** + * Constructs a new MethodDescriptorProto. + * @exports google.protobuf.MethodDescriptorProto + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * MethodDescriptorProto inputType. - * @type {string} - */ - inputType: string; + /** + * MethodDescriptorProto name. + * @type {string} + */ + name: string; - /** - * MethodDescriptorProto outputType. - * @type {string} - */ - outputType: string; + /** + * MethodDescriptorProto inputType. + * @type {string} + */ + inputType: string; - /** - * MethodDescriptorProto options. - * @type {google.protobuf.MethodOptions} - */ - options: google.protobuf.MethodOptions; + /** + * MethodDescriptorProto outputType. + * @type {string} + */ + outputType: string; - /** - * MethodDescriptorProto clientStreaming. - * @type {boolean} - */ - clientStreaming: boolean; + /** + * MethodDescriptorProto options. + * @type {google.protobuf.MethodOptions} + */ + options: google.protobuf.MethodOptions; - /** - * MethodDescriptorProto serverStreaming. - * @type {boolean} - */ - serverStreaming: boolean; + /** + * MethodDescriptorProto clientStreaming. + * @type {boolean} + */ + clientStreaming: boolean; - /** - * Creates a new MethodDescriptorProto instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance - */ - static create(properties?: Object): google.protobuf.MethodDescriptorProto; + /** + * MethodDescriptorProto serverStreaming. + * @type {boolean} + */ + serverStreaming: boolean; - /** - * Encodes the specified MethodDescriptorProto. - * @function - * @param {google.protobuf.MethodDescriptorProto|Object} message MethodDescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.MethodDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + */ + static create(properties?: Object): google.protobuf.MethodDescriptorProto; - /** - * Encodes the specified MethodDescriptorProto, length delimited. - * @param {google.protobuf.MethodDescriptorProto|Object} message MethodDescriptorProto or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.MethodDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MethodDescriptorProto. + * @function + * @param {google.protobuf.MethodDescriptorProto|Object} message MethodDescriptorProto or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.MethodDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MethodDescriptorProto from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; + /** + * Encodes the specified MethodDescriptorProto, length delimited. + * @param {google.protobuf.MethodDescriptorProto|Object} message MethodDescriptorProto or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.MethodDescriptorProto|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MethodDescriptorProto from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto; + /** + * Decodes a MethodDescriptorProto from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; - /** - * Verifies a MethodDescriptorProto. - * @function - * @param {google.protobuf.MethodDescriptorProto|Object} message MethodDescriptorProto or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.MethodDescriptorProto|Object)): string; - } + /** + * Decodes a MethodDescriptorProto from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto; - /** - * Constructs a new FileOptions. - * @exports google.protobuf.FileOptions - * @constructor - * @param {Object} [properties] Properties to set - */ - class FileOptions { + /** + * Verifies a MethodDescriptorProto. + * @function + * @param {google.protobuf.MethodDescriptorProto|Object} message MethodDescriptorProto or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.MethodDescriptorProto|Object)): string; + } /** * Constructs a new FileOptions. @@ -3460,154 +3457,154 @@ declare module google { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class FileOptions { - /** - * FileOptions javaPackage. - * @type {string} - */ - javaPackage: string; + /** + * Constructs a new FileOptions. + * @exports google.protobuf.FileOptions + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * FileOptions javaOuterClassname. - * @type {string} - */ - javaOuterClassname: string; + /** + * FileOptions javaPackage. + * @type {string} + */ + javaPackage: string; - /** - * FileOptions javaMultipleFiles. - * @type {boolean} - */ - javaMultipleFiles: boolean; + /** + * FileOptions javaOuterClassname. + * @type {string} + */ + javaOuterClassname: string; - /** - * FileOptions javaGenerateEqualsAndHash. - * @type {boolean} - */ - javaGenerateEqualsAndHash: boolean; + /** + * FileOptions javaMultipleFiles. + * @type {boolean} + */ + javaMultipleFiles: boolean; - /** - * FileOptions javaStringCheckUtf8. - * @type {boolean} - */ - javaStringCheckUtf8: boolean; + /** + * FileOptions javaGenerateEqualsAndHash. + * @type {boolean} + */ + javaGenerateEqualsAndHash: boolean; - /** - * FileOptions optimizeFor. - * @type {number} - */ - optimizeFor: number; + /** + * FileOptions javaStringCheckUtf8. + * @type {boolean} + */ + javaStringCheckUtf8: boolean; - /** - * FileOptions goPackage. - * @type {string} - */ - goPackage: string; + /** + * FileOptions optimizeFor. + * @type {number} + */ + optimizeFor: number; - /** - * FileOptions ccGenericServices. - * @type {boolean} - */ - ccGenericServices: boolean; + /** + * FileOptions goPackage. + * @type {string} + */ + goPackage: string; - /** - * FileOptions javaGenericServices. - * @type {boolean} - */ - javaGenericServices: boolean; + /** + * FileOptions ccGenericServices. + * @type {boolean} + */ + ccGenericServices: boolean; - /** - * FileOptions pyGenericServices. - * @type {boolean} - */ - pyGenericServices: boolean; + /** + * FileOptions javaGenericServices. + * @type {boolean} + */ + javaGenericServices: boolean; - /** - * FileOptions deprecated. - * @type {boolean} - */ - deprecated: boolean; + /** + * FileOptions pyGenericServices. + * @type {boolean} + */ + pyGenericServices: boolean; - /** - * FileOptions ccEnableArenas. - * @type {boolean} - */ - ccEnableArenas: boolean; + /** + * FileOptions deprecated. + * @type {boolean} + */ + deprecated: boolean; - /** - * FileOptions objcClassPrefix. - * @type {string} - */ - objcClassPrefix: string; + /** + * FileOptions ccEnableArenas. + * @type {boolean} + */ + ccEnableArenas: boolean; - /** - * FileOptions csharpNamespace. - * @type {string} - */ - csharpNamespace: string; + /** + * FileOptions objcClassPrefix. + * @type {string} + */ + objcClassPrefix: string; - /** - * FileOptions uninterpretedOption. - * @type {Array.} - */ - uninterpretedOption: google.protobuf.UninterpretedOption[]; + /** + * FileOptions csharpNamespace. + * @type {string} + */ + csharpNamespace: string; - /** - * Creates a new FileOptions instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.FileOptions} FileOptions instance - */ - static create(properties?: Object): google.protobuf.FileOptions; + /** + * FileOptions uninterpretedOption. + * @type {Array.} + */ + uninterpretedOption: google.protobuf.UninterpretedOption[]; - /** - * Encodes the specified FileOptions. - * @function - * @param {google.protobuf.FileOptions|Object} message FileOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.FileOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FileOptions instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance + */ + static create(properties?: Object): google.protobuf.FileOptions; - /** - * Encodes the specified FileOptions, length delimited. - * @param {google.protobuf.FileOptions|Object} message FileOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.FileOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FileOptions. + * @function + * @param {google.protobuf.FileOptions|Object} message FileOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.FileOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FileOptions from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileOptions} FileOptions - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; + /** + * Encodes the specified FileOptions, length delimited. + * @param {google.protobuf.FileOptions|Object} message FileOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.FileOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FileOptions from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.FileOptions} FileOptions - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions; + /** + * Decodes a FileOptions from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileOptions} FileOptions + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; - /** - * Verifies a FileOptions. - * @function - * @param {google.protobuf.FileOptions|Object} message FileOptions or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.FileOptions|Object)): string; - } + /** + * Decodes a FileOptions from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.FileOptions} FileOptions + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions; - /** - * Constructs a new MessageOptions. - * @exports google.protobuf.MessageOptions - * @constructor - * @param {Object} [properties] Properties to set - */ - class MessageOptions { + /** + * Verifies a FileOptions. + * @function + * @param {google.protobuf.FileOptions|Object} message FileOptions or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.FileOptions|Object)): string; + } /** * Constructs a new MessageOptions. @@ -3615,94 +3612,94 @@ declare module google { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class MessageOptions { - /** - * MessageOptions messageSetWireFormat. - * @type {boolean} - */ - messageSetWireFormat: boolean; + /** + * Constructs a new MessageOptions. + * @exports google.protobuf.MessageOptions + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * MessageOptions noStandardDescriptorAccessor. - * @type {boolean} - */ - noStandardDescriptorAccessor: boolean; + /** + * MessageOptions messageSetWireFormat. + * @type {boolean} + */ + messageSetWireFormat: boolean; - /** - * MessageOptions deprecated. - * @type {boolean} - */ - deprecated: boolean; + /** + * MessageOptions noStandardDescriptorAccessor. + * @type {boolean} + */ + noStandardDescriptorAccessor: boolean; - /** - * MessageOptions mapEntry. - * @type {boolean} - */ - mapEntry: boolean; + /** + * MessageOptions deprecated. + * @type {boolean} + */ + deprecated: boolean; - /** - * MessageOptions uninterpretedOption. - * @type {Array.} - */ - uninterpretedOption: google.protobuf.UninterpretedOption[]; + /** + * MessageOptions mapEntry. + * @type {boolean} + */ + mapEntry: boolean; - /** - * Creates a new MessageOptions instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.MessageOptions} MessageOptions instance - */ - static create(properties?: Object): google.protobuf.MessageOptions; + /** + * MessageOptions uninterpretedOption. + * @type {Array.} + */ + uninterpretedOption: google.protobuf.UninterpretedOption[]; - /** - * Encodes the specified MessageOptions. - * @function - * @param {google.protobuf.MessageOptions|Object} message MessageOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.MessageOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new MessageOptions instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance + */ + static create(properties?: Object): google.protobuf.MessageOptions; - /** - * Encodes the specified MessageOptions, length delimited. - * @param {google.protobuf.MessageOptions|Object} message MessageOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.MessageOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MessageOptions. + * @function + * @param {google.protobuf.MessageOptions|Object} message MessageOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.MessageOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MessageOptions from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MessageOptions} MessageOptions - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; + /** + * Encodes the specified MessageOptions, length delimited. + * @param {google.protobuf.MessageOptions|Object} message MessageOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.MessageOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MessageOptions from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.MessageOptions} MessageOptions - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions; + /** + * Decodes a MessageOptions from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MessageOptions} MessageOptions + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; - /** - * Verifies a MessageOptions. - * @function - * @param {google.protobuf.MessageOptions|Object} message MessageOptions or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.MessageOptions|Object)): string; - } + /** + * Decodes a MessageOptions from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.MessageOptions} MessageOptions + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions; - /** - * Constructs a new FieldOptions. - * @exports google.protobuf.FieldOptions - * @constructor - * @param {Object} [properties] Properties to set - */ - class FieldOptions { + /** + * Verifies a MessageOptions. + * @function + * @param {google.protobuf.MessageOptions|Object} message MessageOptions or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.MessageOptions|Object)): string; + } /** * Constructs a new FieldOptions. @@ -3710,106 +3707,106 @@ declare module google { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class FieldOptions { - /** - * FieldOptions ctype. - * @type {number} - */ - ctype: number; + /** + * Constructs a new FieldOptions. + * @exports google.protobuf.FieldOptions + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * FieldOptions packed. - * @type {boolean} - */ - packed: boolean; + /** + * FieldOptions ctype. + * @type {number} + */ + ctype: number; - /** - * FieldOptions jstype. - * @type {number} - */ - jstype: number; + /** + * FieldOptions packed. + * @type {boolean} + */ + packed: boolean; - /** - * FieldOptions lazy. - * @type {boolean} - */ - lazy: boolean; + /** + * FieldOptions jstype. + * @type {number} + */ + jstype: number; - /** - * FieldOptions deprecated. - * @type {boolean} - */ - deprecated: boolean; + /** + * FieldOptions lazy. + * @type {boolean} + */ + lazy: boolean; - /** - * FieldOptions weak. - * @type {boolean} - */ - weak: boolean; + /** + * FieldOptions deprecated. + * @type {boolean} + */ + deprecated: boolean; - /** - * FieldOptions uninterpretedOption. - * @type {Array.} - */ - uninterpretedOption: google.protobuf.UninterpretedOption[]; + /** + * FieldOptions weak. + * @type {boolean} + */ + weak: boolean; - /** - * Creates a new FieldOptions instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.FieldOptions} FieldOptions instance - */ - static create(properties?: Object): google.protobuf.FieldOptions; + /** + * FieldOptions uninterpretedOption. + * @type {Array.} + */ + uninterpretedOption: google.protobuf.UninterpretedOption[]; - /** - * Encodes the specified FieldOptions. - * @function - * @param {google.protobuf.FieldOptions|Object} message FieldOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.FieldOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FieldOptions instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance + */ + static create(properties?: Object): google.protobuf.FieldOptions; - /** - * Encodes the specified FieldOptions, length delimited. - * @param {google.protobuf.FieldOptions|Object} message FieldOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.FieldOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FieldOptions. + * @function + * @param {google.protobuf.FieldOptions|Object} message FieldOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.FieldOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FieldOptions from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldOptions} FieldOptions - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; + /** + * Encodes the specified FieldOptions, length delimited. + * @param {google.protobuf.FieldOptions|Object} message FieldOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.FieldOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FieldOptions from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.FieldOptions} FieldOptions - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions; + /** + * Decodes a FieldOptions from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions} FieldOptions + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; - /** - * Verifies a FieldOptions. - * @function - * @param {google.protobuf.FieldOptions|Object} message FieldOptions or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.FieldOptions|Object)): string; - } + /** + * Decodes a FieldOptions from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.FieldOptions} FieldOptions + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions; - /** - * Constructs a new OneofOptions. - * @exports google.protobuf.OneofOptions - * @constructor - * @param {Object} [properties] Properties to set - */ - class OneofOptions { + /** + * Verifies a FieldOptions. + * @function + * @param {google.protobuf.FieldOptions|Object} message FieldOptions or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.FieldOptions|Object)): string; + } /** * Constructs a new OneofOptions. @@ -3817,70 +3814,70 @@ declare module google { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class OneofOptions { - /** - * OneofOptions uninterpretedOption. - * @type {Array.} - */ - uninterpretedOption: google.protobuf.UninterpretedOption[]; + /** + * Constructs a new OneofOptions. + * @exports google.protobuf.OneofOptions + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Creates a new OneofOptions instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.OneofOptions} OneofOptions instance - */ - static create(properties?: Object): google.protobuf.OneofOptions; + /** + * OneofOptions uninterpretedOption. + * @type {Array.} + */ + uninterpretedOption: google.protobuf.UninterpretedOption[]; - /** - * Encodes the specified OneofOptions. - * @function - * @param {google.protobuf.OneofOptions|Object} message OneofOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.OneofOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new OneofOptions instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance + */ + static create(properties?: Object): google.protobuf.OneofOptions; - /** - * Encodes the specified OneofOptions, length delimited. - * @param {google.protobuf.OneofOptions|Object} message OneofOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.OneofOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified OneofOptions. + * @function + * @param {google.protobuf.OneofOptions|Object} message OneofOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.OneofOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a OneofOptions from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofOptions} OneofOptions - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; + /** + * Encodes the specified OneofOptions, length delimited. + * @param {google.protobuf.OneofOptions|Object} message OneofOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.OneofOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a OneofOptions from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.OneofOptions} OneofOptions - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions; + /** + * Decodes a OneofOptions from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofOptions} OneofOptions + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; - /** - * Verifies a OneofOptions. - * @function - * @param {google.protobuf.OneofOptions|Object} message OneofOptions or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.OneofOptions|Object)): string; - } + /** + * Decodes a OneofOptions from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.OneofOptions} OneofOptions + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions; - /** - * Constructs a new EnumOptions. - * @exports google.protobuf.EnumOptions - * @constructor - * @param {Object} [properties] Properties to set - */ - class EnumOptions { + /** + * Verifies a OneofOptions. + * @function + * @param {google.protobuf.OneofOptions|Object} message OneofOptions or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.OneofOptions|Object)): string; + } /** * Constructs a new EnumOptions. @@ -3888,82 +3885,82 @@ declare module google { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class EnumOptions { - /** - * EnumOptions allowAlias. - * @type {boolean} - */ - allowAlias: boolean; + /** + * Constructs a new EnumOptions. + * @exports google.protobuf.EnumOptions + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * EnumOptions deprecated. - * @type {boolean} - */ - deprecated: boolean; + /** + * EnumOptions allowAlias. + * @type {boolean} + */ + allowAlias: boolean; - /** - * EnumOptions uninterpretedOption. - * @type {Array.} - */ - uninterpretedOption: google.protobuf.UninterpretedOption[]; + /** + * EnumOptions deprecated. + * @type {boolean} + */ + deprecated: boolean; - /** - * Creates a new EnumOptions instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.EnumOptions} EnumOptions instance - */ - static create(properties?: Object): google.protobuf.EnumOptions; + /** + * EnumOptions uninterpretedOption. + * @type {Array.} + */ + uninterpretedOption: google.protobuf.UninterpretedOption[]; - /** - * Encodes the specified EnumOptions. - * @function - * @param {google.protobuf.EnumOptions|Object} message EnumOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.EnumOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new EnumOptions instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance + */ + static create(properties?: Object): google.protobuf.EnumOptions; - /** - * Encodes the specified EnumOptions, length delimited. - * @param {google.protobuf.EnumOptions|Object} message EnumOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.EnumOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified EnumOptions. + * @function + * @param {google.protobuf.EnumOptions|Object} message EnumOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.EnumOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a EnumOptions from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumOptions} EnumOptions - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; + /** + * Encodes the specified EnumOptions, length delimited. + * @param {google.protobuf.EnumOptions|Object} message EnumOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.EnumOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a EnumOptions from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.EnumOptions} EnumOptions - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions; + /** + * Decodes a EnumOptions from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumOptions} EnumOptions + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; - /** - * Verifies a EnumOptions. - * @function - * @param {google.protobuf.EnumOptions|Object} message EnumOptions or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.EnumOptions|Object)): string; - } + /** + * Decodes a EnumOptions from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.EnumOptions} EnumOptions + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions; - /** - * Constructs a new EnumValueOptions. - * @exports google.protobuf.EnumValueOptions - * @constructor - * @param {Object} [properties] Properties to set - */ - class EnumValueOptions { + /** + * Verifies a EnumOptions. + * @function + * @param {google.protobuf.EnumOptions|Object} message EnumOptions or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.EnumOptions|Object)): string; + } /** * Constructs a new EnumValueOptions. @@ -3971,76 +3968,76 @@ declare module google { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class EnumValueOptions { - /** - * EnumValueOptions deprecated. - * @type {boolean} - */ - deprecated: boolean; + /** + * Constructs a new EnumValueOptions. + * @exports google.protobuf.EnumValueOptions + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * EnumValueOptions uninterpretedOption. - * @type {Array.} - */ - uninterpretedOption: google.protobuf.UninterpretedOption[]; + /** + * EnumValueOptions deprecated. + * @type {boolean} + */ + deprecated: boolean; - /** - * Creates a new EnumValueOptions instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance - */ - static create(properties?: Object): google.protobuf.EnumValueOptions; + /** + * EnumValueOptions uninterpretedOption. + * @type {Array.} + */ + uninterpretedOption: google.protobuf.UninterpretedOption[]; - /** - * Encodes the specified EnumValueOptions. - * @function - * @param {google.protobuf.EnumValueOptions|Object} message EnumValueOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.EnumValueOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + */ + static create(properties?: Object): google.protobuf.EnumValueOptions; - /** - * Encodes the specified EnumValueOptions, length delimited. - * @param {google.protobuf.EnumValueOptions|Object} message EnumValueOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.EnumValueOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified EnumValueOptions. + * @function + * @param {google.protobuf.EnumValueOptions|Object} message EnumValueOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.EnumValueOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a EnumValueOptions from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; + /** + * Encodes the specified EnumValueOptions, length delimited. + * @param {google.protobuf.EnumValueOptions|Object} message EnumValueOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.EnumValueOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a EnumValueOptions from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions; + /** + * Decodes a EnumValueOptions from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; - /** - * Verifies a EnumValueOptions. - * @function - * @param {google.protobuf.EnumValueOptions|Object} message EnumValueOptions or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.EnumValueOptions|Object)): string; - } + /** + * Decodes a EnumValueOptions from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions; - /** - * Constructs a new ServiceOptions. - * @exports google.protobuf.ServiceOptions - * @constructor - * @param {Object} [properties] Properties to set - */ - class ServiceOptions { + /** + * Verifies a EnumValueOptions. + * @function + * @param {google.protobuf.EnumValueOptions|Object} message EnumValueOptions or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.EnumValueOptions|Object)): string; + } /** * Constructs a new ServiceOptions. @@ -4048,76 +4045,76 @@ declare module google { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class ServiceOptions { - /** - * ServiceOptions deprecated. - * @type {boolean} - */ - deprecated: boolean; + /** + * Constructs a new ServiceOptions. + * @exports google.protobuf.ServiceOptions + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * ServiceOptions uninterpretedOption. - * @type {Array.} - */ - uninterpretedOption: google.protobuf.UninterpretedOption[]; + /** + * ServiceOptions deprecated. + * @type {boolean} + */ + deprecated: boolean; - /** - * Creates a new ServiceOptions instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.ServiceOptions} ServiceOptions instance - */ - static create(properties?: Object): google.protobuf.ServiceOptions; + /** + * ServiceOptions uninterpretedOption. + * @type {Array.} + */ + uninterpretedOption: google.protobuf.UninterpretedOption[]; - /** - * Encodes the specified ServiceOptions. - * @function - * @param {google.protobuf.ServiceOptions|Object} message ServiceOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.ServiceOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + */ + static create(properties?: Object): google.protobuf.ServiceOptions; - /** - * Encodes the specified ServiceOptions, length delimited. - * @param {google.protobuf.ServiceOptions|Object} message ServiceOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.ServiceOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ServiceOptions. + * @function + * @param {google.protobuf.ServiceOptions|Object} message ServiceOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.ServiceOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ServiceOptions from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceOptions} ServiceOptions - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; + /** + * Encodes the specified ServiceOptions, length delimited. + * @param {google.protobuf.ServiceOptions|Object} message ServiceOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.ServiceOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ServiceOptions from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.ServiceOptions} ServiceOptions - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions; + /** + * Decodes a ServiceOptions from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceOptions} ServiceOptions + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; - /** - * Verifies a ServiceOptions. - * @function - * @param {google.protobuf.ServiceOptions|Object} message ServiceOptions or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.ServiceOptions|Object)): string; - } + /** + * Decodes a ServiceOptions from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.ServiceOptions} ServiceOptions + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions; - /** - * Constructs a new MethodOptions. - * @exports google.protobuf.MethodOptions - * @constructor - * @param {Object} [properties] Properties to set - */ - class MethodOptions { + /** + * Verifies a ServiceOptions. + * @function + * @param {google.protobuf.ServiceOptions|Object} message ServiceOptions or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.ServiceOptions|Object)): string; + } /** * Constructs a new MethodOptions. @@ -4125,82 +4122,82 @@ declare module google { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + class MethodOptions { - /** - * MethodOptions deprecated. - * @type {boolean} - */ - deprecated: boolean; + /** + * Constructs a new MethodOptions. + * @exports google.protobuf.MethodOptions + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * MethodOptions idempotencyLevel. - * @type {number} - */ - idempotencyLevel: number; + /** + * MethodOptions deprecated. + * @type {boolean} + */ + deprecated: boolean; - /** - * MethodOptions uninterpretedOption. - * @type {Array.} - */ - uninterpretedOption: google.protobuf.UninterpretedOption[]; + /** + * MethodOptions idempotencyLevel. + * @type {number} + */ + idempotencyLevel: number; - /** - * Creates a new MethodOptions instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.MethodOptions} MethodOptions instance - */ - static create(properties?: Object): google.protobuf.MethodOptions; + /** + * MethodOptions uninterpretedOption. + * @type {Array.} + */ + uninterpretedOption: google.protobuf.UninterpretedOption[]; - /** - * Encodes the specified MethodOptions. - * @function - * @param {google.protobuf.MethodOptions|Object} message MethodOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.MethodOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new MethodOptions instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance + */ + static create(properties?: Object): google.protobuf.MethodOptions; - /** - * Encodes the specified MethodOptions, length delimited. - * @param {google.protobuf.MethodOptions|Object} message MethodOptions or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.MethodOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MethodOptions. + * @function + * @param {google.protobuf.MethodOptions|Object} message MethodOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.MethodOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MethodOptions from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodOptions} MethodOptions - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; + /** + * Encodes the specified MethodOptions, length delimited. + * @param {google.protobuf.MethodOptions|Object} message MethodOptions or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.MethodOptions|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MethodOptions from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.MethodOptions} MethodOptions - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions; + /** + * Decodes a MethodOptions from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodOptions} MethodOptions + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; - /** - * Verifies a MethodOptions. - * @function - * @param {google.protobuf.MethodOptions|Object} message MethodOptions or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.MethodOptions|Object)): string; - } + /** + * Decodes a MethodOptions from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.MethodOptions} MethodOptions + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions; - /** - * Constructs a new UninterpretedOption. - * @exports google.protobuf.UninterpretedOption - * @constructor - * @param {Object} [properties] Properties to set - */ - class UninterpretedOption { + /** + * Verifies a MethodOptions. + * @function + * @param {google.protobuf.MethodOptions|Object} message MethodOptions or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.MethodOptions|Object)): string; + } /** * Constructs a new UninterpretedOption. @@ -4208,529 +4205,538 @@ declare module google { * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); - - /** - * UninterpretedOption name. - * @type {Array.} - */ - name: google.protobuf.UninterpretedOption.NamePart[]; - - /** - * UninterpretedOption identifierValue. - * @type {string} - */ - identifierValue: string; - - /** - * UninterpretedOption positiveIntValue. - * @type {number|Long} - */ - positiveIntValue: (number|Long); - - /** - * UninterpretedOption negativeIntValue. - * @type {number|Long} - */ - negativeIntValue: (number|Long); - - /** - * UninterpretedOption doubleValue. - * @type {number} - */ - doubleValue: number; - - /** - * UninterpretedOption stringValue. - * @type {Uint8Array} - */ - stringValue: Uint8Array; - - /** - * UninterpretedOption aggregateValue. - * @type {string} - */ - aggregateValue: string; - - /** - * Creates a new UninterpretedOption instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance - */ - static create(properties?: Object): google.protobuf.UninterpretedOption; - - /** - * Encodes the specified UninterpretedOption. - * @function - * @param {google.protobuf.UninterpretedOption|Object} message UninterpretedOption or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.UninterpretedOption|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UninterpretedOption, length delimited. - * @param {google.protobuf.UninterpretedOption|Object} message UninterpretedOption or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.UninterpretedOption|Object), writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UninterpretedOption from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; + class UninterpretedOption { - /** - * Decodes a UninterpretedOption from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption; - - /** - * Verifies a UninterpretedOption. - * @function - * @param {google.protobuf.UninterpretedOption|Object} message UninterpretedOption or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.UninterpretedOption|Object)): string; - } + /** + * Constructs a new UninterpretedOption. + * @exports google.protobuf.UninterpretedOption + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); + /** + * UninterpretedOption name. + * @type {Array.} + */ + name: google.protobuf.UninterpretedOption.NamePart[]; - /** - * Constructs a new UninterpretedOption. - * @exports google.protobuf.UninterpretedOption - * @constructor - * @param {Object} [properties] Properties to set - */ - module UninterpretedOption { + /** + * UninterpretedOption identifierValue. + * @type {string} + */ + identifierValue: string; - /** - * Constructs a new NamePart. - * @exports google.protobuf.UninterpretedOption.NamePart - * @constructor - * @param {Object} [properties] Properties to set - */ - class NamePart { + /** + * UninterpretedOption positiveIntValue. + * @type {number|Long} + */ + positiveIntValue: (number|Long); /** - * Constructs a new NamePart. - * @exports google.protobuf.UninterpretedOption.NamePart - * @constructor - * @param {Object} [properties] Properties to set + * UninterpretedOption negativeIntValue. + * @type {number|Long} */ - constructor(properties?: Object); + negativeIntValue: (number|Long); /** - * NamePart namePart. - * @type {string} + * UninterpretedOption doubleValue. + * @type {number} */ - namePart: string; + doubleValue: number; /** - * NamePart isExtension. - * @type {boolean} + * UninterpretedOption stringValue. + * @type {Uint8Array} + */ + stringValue: Uint8Array; + + /** + * UninterpretedOption aggregateValue. + * @type {string} */ - isExtension: boolean; + aggregateValue: string; /** - * Creates a new NamePart instance using the specified properties. + * Creates a new UninterpretedOption instance using the specified properties. * @param {Object} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance */ - static create(properties?: Object): google.protobuf.UninterpretedOption.NamePart; + static create(properties?: Object): google.protobuf.UninterpretedOption; /** - * Encodes the specified NamePart. + * Encodes the specified UninterpretedOption. * @function - * @param {google.protobuf.UninterpretedOption.NamePart|Object} message NamePart or plain object to encode + * @param {google.protobuf.UninterpretedOption|Object} message UninterpretedOption or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encode(message: (google.protobuf.UninterpretedOption.NamePart|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encode(message: (google.protobuf.UninterpretedOption|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NamePart, length delimited. - * @param {google.protobuf.UninterpretedOption.NamePart|Object} message NamePart or plain object to encode + * Encodes the specified UninterpretedOption, length delimited. + * @param {google.protobuf.UninterpretedOption|Object} message UninterpretedOption or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encodeDelimited(message: (google.protobuf.UninterpretedOption.NamePart|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encodeDelimited(message: (google.protobuf.UninterpretedOption|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NamePart from the specified reader or buffer. + * Decodes a UninterpretedOption from the specified reader or buffer. * @function * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; /** - * Decodes a NamePart from the specified reader or buffer, length delimited. + * Decodes a UninterpretedOption from the specified reader or buffer, length delimited. * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart; + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption; /** - * Verifies a NamePart. + * Verifies a UninterpretedOption. * @function - * @param {google.protobuf.UninterpretedOption.NamePart|Object} message NamePart or plain object to verify + * @param {google.protobuf.UninterpretedOption|Object} message UninterpretedOption or plain object to verify * @returns {?string} `null` if valid, otherwise the reason why it is not */ - static verify(message: (google.protobuf.UninterpretedOption.NamePart|Object)): string; + static verify(message: (google.protobuf.UninterpretedOption|Object)): string; } - } - /** - * Constructs a new SourceCodeInfo. - * @exports google.protobuf.SourceCodeInfo - * @constructor - * @param {Object} [properties] Properties to set - */ - class SourceCodeInfo { /** - * Constructs a new SourceCodeInfo. - * @exports google.protobuf.SourceCodeInfo + * Constructs a new UninterpretedOption. + * @exports google.protobuf.UninterpretedOption * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + namespace UninterpretedOption { - /** - * SourceCodeInfo location. - * @type {Array.} - */ - location: google.protobuf.SourceCodeInfo.Location[]; + /** + * Constructs a new NamePart. + * @exports google.protobuf.UninterpretedOption.NamePart + * @constructor + * @param {Object} [properties] Properties to set + */ + class NamePart { - /** - * Creates a new SourceCodeInfo instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance - */ - static create(properties?: Object): google.protobuf.SourceCodeInfo; + /** + * Constructs a new NamePart. + * @exports google.protobuf.UninterpretedOption.NamePart + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Encodes the specified SourceCodeInfo. - * @function - * @param {google.protobuf.SourceCodeInfo|Object} message SourceCodeInfo or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.SourceCodeInfo|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * NamePart namePart. + * @type {string} + */ + namePart: string; - /** - * Encodes the specified SourceCodeInfo, length delimited. - * @param {google.protobuf.SourceCodeInfo|Object} message SourceCodeInfo or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.SourceCodeInfo|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * NamePart isExtension. + * @type {boolean} + */ + isExtension: boolean; - /** - * Decodes a SourceCodeInfo from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; + /** + * Creates a new NamePart instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + static create(properties?: Object): google.protobuf.UninterpretedOption.NamePart; - /** - * Decodes a SourceCodeInfo from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo; + /** + * Encodes the specified NamePart. + * @function + * @param {google.protobuf.UninterpretedOption.NamePart|Object} message NamePart or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.UninterpretedOption.NamePart|Object), writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a SourceCodeInfo. - * @function - * @param {google.protobuf.SourceCodeInfo|Object} message SourceCodeInfo or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.SourceCodeInfo|Object)): string; - } + /** + * Encodes the specified NamePart, length delimited. + * @param {google.protobuf.UninterpretedOption.NamePart|Object} message NamePart or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.UninterpretedOption.NamePart|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a NamePart from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; - /** - * Constructs a new SourceCodeInfo. - * @exports google.protobuf.SourceCodeInfo - * @constructor - * @param {Object} [properties] Properties to set - */ - module SourceCodeInfo { + /** + * Decodes a NamePart from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart. + * @function + * @param {google.protobuf.UninterpretedOption.NamePart|Object} message NamePart or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.UninterpretedOption.NamePart|Object)): string; + } + } /** - * Constructs a new Location. - * @exports google.protobuf.SourceCodeInfo.Location + * Constructs a new SourceCodeInfo. + * @exports google.protobuf.SourceCodeInfo * @constructor * @param {Object} [properties] Properties to set */ - class Location { + class SourceCodeInfo { /** - * Constructs a new Location. - * @exports google.protobuf.SourceCodeInfo.Location + * Constructs a new SourceCodeInfo. + * @exports google.protobuf.SourceCodeInfo * @constructor * @param {Object} [properties] Properties to set */ constructor(properties?: Object); /** - * Location path. - * @type {Array.} - */ - path: number[]; - - /** - * Location span. - * @type {Array.} - */ - span: number[]; - - /** - * Location leadingComments. - * @type {string} - */ - leadingComments: string; - - /** - * Location trailingComments. - * @type {string} - */ - trailingComments: string; - - /** - * Location leadingDetachedComments. - * @type {Array.} + * SourceCodeInfo location. + * @type {Array.} */ - leadingDetachedComments: string[]; + location: google.protobuf.SourceCodeInfo.Location[]; /** - * Creates a new Location instance using the specified properties. + * Creates a new SourceCodeInfo instance using the specified properties. * @param {Object} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance */ - static create(properties?: Object): google.protobuf.SourceCodeInfo.Location; + static create(properties?: Object): google.protobuf.SourceCodeInfo; /** - * Encodes the specified Location. + * Encodes the specified SourceCodeInfo. * @function - * @param {google.protobuf.SourceCodeInfo.Location|Object} message Location or plain object to encode + * @param {google.protobuf.SourceCodeInfo|Object} message SourceCodeInfo or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encode(message: (google.protobuf.SourceCodeInfo.Location|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encode(message: (google.protobuf.SourceCodeInfo|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Location, length delimited. - * @param {google.protobuf.SourceCodeInfo.Location|Object} message Location or plain object to encode + * Encodes the specified SourceCodeInfo, length delimited. + * @param {google.protobuf.SourceCodeInfo|Object} message SourceCodeInfo or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encodeDelimited(message: (google.protobuf.SourceCodeInfo.Location|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encodeDelimited(message: (google.protobuf.SourceCodeInfo|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Location from the specified reader or buffer. + * Decodes a SourceCodeInfo from the specified reader or buffer. * @function * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; /** - * Decodes a Location from the specified reader or buffer, length delimited. + * Decodes a SourceCodeInfo from the specified reader or buffer, length delimited. * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location; + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo; /** - * Verifies a Location. + * Verifies a SourceCodeInfo. * @function - * @param {google.protobuf.SourceCodeInfo.Location|Object} message Location or plain object to verify + * @param {google.protobuf.SourceCodeInfo|Object} message SourceCodeInfo or plain object to verify * @returns {?string} `null` if valid, otherwise the reason why it is not */ - static verify(message: (google.protobuf.SourceCodeInfo.Location|Object)): string; + static verify(message: (google.protobuf.SourceCodeInfo|Object)): string; } - } - /** - * Constructs a new GeneratedCodeInfo. - * @exports google.protobuf.GeneratedCodeInfo - * @constructor - * @param {Object} [properties] Properties to set - */ - class GeneratedCodeInfo { /** - * Constructs a new GeneratedCodeInfo. - * @exports google.protobuf.GeneratedCodeInfo + * Constructs a new SourceCodeInfo. + * @exports google.protobuf.SourceCodeInfo * @constructor * @param {Object} [properties] Properties to set */ - constructor(properties?: Object); + namespace SourceCodeInfo { - /** - * GeneratedCodeInfo annotation. - * @type {Array.} - */ - annotation: google.protobuf.GeneratedCodeInfo.Annotation[]; + /** + * Constructs a new Location. + * @exports google.protobuf.SourceCodeInfo.Location + * @constructor + * @param {Object} [properties] Properties to set + */ + class Location { - /** - * Creates a new GeneratedCodeInfo instance using the specified properties. - * @param {Object} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance - */ - static create(properties?: Object): google.protobuf.GeneratedCodeInfo; + /** + * Constructs a new Location. + * @exports google.protobuf.SourceCodeInfo.Location + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); - /** - * Encodes the specified GeneratedCodeInfo. - * @function - * @param {google.protobuf.GeneratedCodeInfo|Object} message GeneratedCodeInfo or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encode(message: (google.protobuf.GeneratedCodeInfo|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Location path. + * @type {Array.} + */ + path: number[]; - /** - * Encodes the specified GeneratedCodeInfo, length delimited. - * @param {google.protobuf.GeneratedCodeInfo|Object} message GeneratedCodeInfo or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - static encodeDelimited(message: (google.protobuf.GeneratedCodeInfo|Object), writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Location span. + * @type {Array.} + */ + span: number[]; - /** - * Decodes a GeneratedCodeInfo from the specified reader or buffer. - * @function - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo - */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; + /** + * Location leadingComments. + * @type {string} + */ + leadingComments: string; - /** - * Decodes a GeneratedCodeInfo from the specified reader or buffer, length delimited. - * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo - */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo; + /** + * Location trailingComments. + * @type {string} + */ + trailingComments: string; - /** - * Verifies a GeneratedCodeInfo. - * @function - * @param {google.protobuf.GeneratedCodeInfo|Object} message GeneratedCodeInfo or plain object to verify - * @returns {?string} `null` if valid, otherwise the reason why it is not - */ - static verify(message: (google.protobuf.GeneratedCodeInfo|Object)): string; - } + /** + * Location leadingDetachedComments. + * @type {Array.} + */ + leadingDetachedComments: string[]; + /** + * Creates a new Location instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + static create(properties?: Object): google.protobuf.SourceCodeInfo.Location; - /** - * Constructs a new GeneratedCodeInfo. - * @exports google.protobuf.GeneratedCodeInfo - * @constructor - * @param {Object} [properties] Properties to set - */ - module GeneratedCodeInfo { + /** + * Encodes the specified Location. + * @function + * @param {google.protobuf.SourceCodeInfo.Location|Object} message Location or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.SourceCodeInfo.Location|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Location, length delimited. + * @param {google.protobuf.SourceCodeInfo.Location|Object} message Location or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.SourceCodeInfo.Location|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; + + /** + * Decodes a Location from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location. + * @function + * @param {google.protobuf.SourceCodeInfo.Location|Object} message Location or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.SourceCodeInfo.Location|Object)): string; + } + } /** - * Constructs a new Annotation. - * @exports google.protobuf.GeneratedCodeInfo.Annotation + * Constructs a new GeneratedCodeInfo. + * @exports google.protobuf.GeneratedCodeInfo * @constructor * @param {Object} [properties] Properties to set */ - class Annotation { + class GeneratedCodeInfo { /** - * Constructs a new Annotation. - * @exports google.protobuf.GeneratedCodeInfo.Annotation + * Constructs a new GeneratedCodeInfo. + * @exports google.protobuf.GeneratedCodeInfo * @constructor * @param {Object} [properties] Properties to set */ constructor(properties?: Object); /** - * Annotation path. - * @type {Array.} - */ - path: number[]; - - /** - * Annotation sourceFile. - * @type {string} - */ - sourceFile: string; - - /** - * Annotation begin. - * @type {number} - */ - begin: number; - - /** - * Annotation end. - * @type {number} + * GeneratedCodeInfo annotation. + * @type {Array.} */ - end: number; + annotation: google.protobuf.GeneratedCodeInfo.Annotation[]; /** - * Creates a new Annotation instance using the specified properties. + * Creates a new GeneratedCodeInfo instance using the specified properties. * @param {Object} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance */ - static create(properties?: Object): google.protobuf.GeneratedCodeInfo.Annotation; + static create(properties?: Object): google.protobuf.GeneratedCodeInfo; /** - * Encodes the specified Annotation. + * Encodes the specified GeneratedCodeInfo. * @function - * @param {google.protobuf.GeneratedCodeInfo.Annotation|Object} message Annotation or plain object to encode + * @param {google.protobuf.GeneratedCodeInfo|Object} message GeneratedCodeInfo or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encode(message: (google.protobuf.GeneratedCodeInfo.Annotation|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encode(message: (google.protobuf.GeneratedCodeInfo|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Annotation, length delimited. - * @param {google.protobuf.GeneratedCodeInfo.Annotation|Object} message Annotation or plain object to encode + * Encodes the specified GeneratedCodeInfo, length delimited. + * @param {google.protobuf.GeneratedCodeInfo|Object} message GeneratedCodeInfo or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - static encodeDelimited(message: (google.protobuf.GeneratedCodeInfo.Annotation|Object), writer?: $protobuf.Writer): $protobuf.Writer; + static encodeDelimited(message: (google.protobuf.GeneratedCodeInfo|Object), writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Annotation from the specified reader or buffer. + * Decodes a GeneratedCodeInfo from the specified reader or buffer. * @function * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo */ - static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; /** - * Decodes a Annotation from the specified reader or buffer, length delimited. + * Decodes a GeneratedCodeInfo from the specified reader or buffer, length delimited. * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo */ - static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation; + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo; /** - * Verifies a Annotation. + * Verifies a GeneratedCodeInfo. * @function - * @param {google.protobuf.GeneratedCodeInfo.Annotation|Object} message Annotation or plain object to verify + * @param {google.protobuf.GeneratedCodeInfo|Object} message GeneratedCodeInfo or plain object to verify * @returns {?string} `null` if valid, otherwise the reason why it is not */ - static verify(message: (google.protobuf.GeneratedCodeInfo.Annotation|Object)): string; + static verify(message: (google.protobuf.GeneratedCodeInfo|Object)): string; + } + + + /** + * Constructs a new GeneratedCodeInfo. + * @exports google.protobuf.GeneratedCodeInfo + * @constructor + * @param {Object} [properties] Properties to set + */ + namespace GeneratedCodeInfo { + + /** + * Constructs a new Annotation. + * @exports google.protobuf.GeneratedCodeInfo.Annotation + * @constructor + * @param {Object} [properties] Properties to set + */ + class Annotation { + + /** + * Constructs a new Annotation. + * @exports google.protobuf.GeneratedCodeInfo.Annotation + * @constructor + * @param {Object} [properties] Properties to set + */ + constructor(properties?: Object); + + /** + * Annotation path. + * @type {Array.} + */ + path: number[]; + + /** + * Annotation sourceFile. + * @type {string} + */ + sourceFile: string; + + /** + * Annotation begin. + * @type {number} + */ + begin: number; + + /** + * Annotation end. + * @type {number} + */ + end: number; + + /** + * Creates a new Annotation instance using the specified properties. + * @param {Object} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + static create(properties?: Object): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation. + * @function + * @param {google.protobuf.GeneratedCodeInfo.Annotation|Object} message Annotation or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encode(message: (google.protobuf.GeneratedCodeInfo.Annotation|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Annotation, length delimited. + * @param {google.protobuf.GeneratedCodeInfo.Annotation|Object} message Annotation or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + static encodeDelimited(message: (google.protobuf.GeneratedCodeInfo.Annotation|Object), writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Annotation from the specified reader or buffer. + * @function + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + static decode(readerOrBuffer: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Decodes a Annotation from the specified reader or buffer, length delimited. + * @param {$protobuf.Reader|Uint8Array} readerOrBuffer Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + static decodeDelimited(readerOrBuffer: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies a Annotation. + * @function + * @param {google.protobuf.GeneratedCodeInfo.Annotation|Object} message Annotation or plain object to verify + * @returns {?string} `null` if valid, otherwise the reason why it is not + */ + static verify(message: (google.protobuf.GeneratedCodeInfo.Annotation|Object)): string; + } } } } diff --git a/tests/data/test.ts b/tests/data/test.ts new file mode 100644 index 000000000..0aed72653 --- /dev/null +++ b/tests/data/test.ts @@ -0,0 +1,2 @@ +/// +import * as test from "./test.js"; diff --git a/types/test.ts b/tests/typescript.ts similarity index 62% rename from types/test.ts rename to tests/typescript.ts index d4a7f91ba..8eac88f97 100644 --- a/types/test.ts +++ b/tests/typescript.ts @@ -1,9 +1,18 @@ -/// -/// - -import * as protobuf from "protobufjs"; - -export const proto = {"nested":{"Hello":{"fields":{"value":{"rule":"required","type":"string","id":1}}}}}; +import * as protobuf from ".."; + +export const proto = { + nested: { + Hello: { + fields: { + value: { + rule: "required", + type: "string", + id:1 + } + } + } + } +}; const root = protobuf.Root.fromJSON(proto);