From 6fa1c56f914401031140d9b3c08a5859f2c4ba0a Mon Sep 17 00:00:00 2001 From: BugDiver Date: Sun, 20 Sep 2020 13:16:25 +0530 Subject: [PATCH] Add gRPC support * Use gRPC for execution * Remove socket connection * Migrate to pure gprc js * Update protobuf library Signed-off-by: BugDiver --- .eslintignore | 3 +- .eslintrc.js | 13 +- .github/workflows/nodejs.yml | 6 +- .github/workflows/release.yml | 9 + build.sh | 2 +- config.ts | 1 + gauge-proto | 2 +- genproto.sh | 31 +- jest.config.js | 26 +- package-lock.json | 11366 +++--- package.json | 38 +- src/GaugeRuntime.ts | 39 +- src/RunnerServiceImpl.ts | 304 + src/connection/GRPCHandler.ts | 224 - src/connection/GaugeConnection.ts | 54 - src/connection/GaugeListener.ts | 32 - src/gen/lsp.proto | 56 - src/gen/messages.d.ts | 11480 ------- src/gen/messages.js | 28561 ---------------- src/gen/messages.proto | 564 - src/gen/messages_pb.d.ts | 1685 + src/gen/messages_pb.js | 12093 +++++++ src/gen/services.proto | 186 - src/gen/services_grpc_pb.d.ts | 636 + src/gen/services_grpc_pb.js | 856 + src/gen/services_pb.d.ts | 8 + src/gen/services_pb.js | 16 + src/gen/spec.proto | 457 - src/gen/spec_pb.d.ts | 1249 + src/gen/spec_pb.js | 9341 +++++ src/helpers/CodeHelper.ts | 8 +- src/loaders/ImplLoader.ts | 17 +- src/loaders/StaticLoader.ts | 10 +- src/models/HookRegistry.ts | 12 +- src/models/StepRegistry.ts | 10 +- src/processors/CacheFileProcessor.ts | 39 +- src/processors/DataStoreInitProcessor.ts | 33 - src/processors/ExecutionEndingProcessor.ts | 15 +- src/processors/ExecutionProcessor.ts | 28 +- src/processors/ExecutionStartingProcessor.ts | 14 +- src/processors/HookExecutionProcessor.ts | 175 +- src/processors/IMessageProcessor.ts | 5 - .../ImplementationFileGlobPatternProcessor.ts | 23 - .../ImplementationFileListProcessor.ts | 19 - src/processors/MessageProcessorFactory.ts | 106 - src/processors/RefactorProcessor.ts | 179 +- .../ScenarioExecutionEndingProcessor.ts | 24 +- .../ScenarioExecutionStartingProcessor.ts | 25 +- .../SpecExecutionEndingProcessor.ts | 18 +- .../SpecExecutionStartingProcessor.ts | 24 +- .../StepExecutionEndingProcessor.ts | 25 +- src/processors/StepExecutionProcessor.ts | 78 +- .../StepExecutionStartingProcessor.ts | 24 +- src/processors/StepNameProcessor.ts | 53 +- src/processors/StepNamesProcessor.ts | 18 - src/processors/StepPositionsProcessor.ts | 60 +- .../StubImplementationCodeProcessor.ts | 99 +- src/processors/ValidationProcessor.ts | 76 +- src/public/decorators.ts | 18 +- src/screenshot/Screenshot.ts | 23 +- src/stores/DataStore.ts | 4 + src/utils/Util.ts | 4 +- tests/RunnerServiceImplTests.ts | 475 + tests/connection/GRPCHandlerTests.ts | 202 - tests/indexTests.ts | 28 + tests/loaders/ImplLoaderTests.ts | 40 + tests/loaders/StaticLoaderTests.ts | 38 +- tests/models/HookRegistryTests.ts | 36 +- tests/models/StepRegistryTests.ts | 56 +- tests/processors/CacheFileProcessorTests.ts | 162 +- .../processors/DataStoreInitProcessorTests.ts | 55 - .../ExecutionEndingProcessorTests.ts | 94 +- .../ExecutionStartingProcessorTests.ts | 52 +- ...ementationFileGlobPatternProcessorTests.ts | 29 - .../ImplementationFileListProcessorTests.ts | 29 - .../MessageProcessorFactoryTests.ts | 86 - tests/processors/RefactorProcessorTests.ts | 421 +- .../ScenarioExecutionEndingProcessorTests.ts | 62 +- .../ScenarioExecutionStartingProcessor.ts | 48 - ...ScenarioExecutionStartingProcessorTests.ts | 46 + .../SpecExecutionEndingProcessorTests.ts | 50 +- .../SpecExecutionStartingProcessorTests.ts | 52 +- .../StepExecutionEndingProcessorTests.ts | 66 +- .../processors/StepExecutionProcessorTests.ts | 189 +- .../StepExecutionStartingProcessorTests.ts | 123 +- tests/processors/StepNameProcessorTests.ts | 82 +- tests/processors/StepNamesProcessorTests.ts | 27 - .../processors/StepPositionsProcessorTests.ts | 38 +- .../StubImplementationCodeProcessorTests.ts | 119 +- tests/processors/ValidationProcessorTests.ts | 151 +- tests/public/ExecutionContextTests.ts | 53 + tests/public/GaugeTests.ts | 12 +- tests/public/decoratorsTests.ts | 130 + tests/screenshot/ScreenshotTest.ts | 42 +- tests/stores/DataStoreTests.ts | 27 + ts.json | 3 +- tsconfig.json | 33 +- 97 files changed, 35878 insertions(+), 47882 deletions(-) create mode 100644 config.ts create mode 100644 src/RunnerServiceImpl.ts delete mode 100644 src/connection/GRPCHandler.ts delete mode 100644 src/connection/GaugeConnection.ts delete mode 100644 src/connection/GaugeListener.ts delete mode 100644 src/gen/lsp.proto delete mode 100644 src/gen/messages.d.ts delete mode 100644 src/gen/messages.js delete mode 100644 src/gen/messages.proto create mode 100644 src/gen/messages_pb.d.ts create mode 100644 src/gen/messages_pb.js delete mode 100644 src/gen/services.proto create mode 100644 src/gen/services_grpc_pb.d.ts create mode 100644 src/gen/services_grpc_pb.js create mode 100644 src/gen/services_pb.d.ts create mode 100644 src/gen/services_pb.js delete mode 100644 src/gen/spec.proto create mode 100644 src/gen/spec_pb.d.ts create mode 100644 src/gen/spec_pb.js delete mode 100644 src/processors/DataStoreInitProcessor.ts delete mode 100644 src/processors/IMessageProcessor.ts delete mode 100644 src/processors/ImplementationFileGlobPatternProcessor.ts delete mode 100644 src/processors/ImplementationFileListProcessor.ts delete mode 100644 src/processors/MessageProcessorFactory.ts delete mode 100644 src/processors/StepNamesProcessor.ts create mode 100644 tests/RunnerServiceImplTests.ts delete mode 100644 tests/connection/GRPCHandlerTests.ts create mode 100644 tests/indexTests.ts create mode 100644 tests/loaders/ImplLoaderTests.ts delete mode 100644 tests/processors/DataStoreInitProcessorTests.ts delete mode 100644 tests/processors/ImplementationFileGlobPatternProcessorTests.ts delete mode 100644 tests/processors/ImplementationFileListProcessorTests.ts delete mode 100644 tests/processors/MessageProcessorFactoryTests.ts delete mode 100644 tests/processors/ScenarioExecutionStartingProcessor.ts create mode 100644 tests/processors/ScenarioExecutionStartingProcessorTests.ts delete mode 100644 tests/processors/StepNamesProcessorTests.ts create mode 100644 tests/public/ExecutionContextTests.ts create mode 100644 tests/public/decoratorsTests.ts create mode 100644 tests/stores/DataStoreTests.ts diff --git a/.eslintignore b/.eslintignore index 1e9d349..55ce0d5 100644 --- a/.eslintignore +++ b/.eslintignore @@ -9,4 +9,5 @@ gauge-proto package.json package-lock.json .eslintrc.js -src/gen \ No newline at end of file +src/gen +config.ts \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js index 54827f1..a7cb748 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -15,9 +15,9 @@ module.exports = { rules: { 'padding-line-between-statements': [ 'error', - {blankLine: 'always', prev: '*', next: 'return'}, - {blankLine: 'always', prev: ['const', 'let', 'var'], next: '*'}, - {blankLine: 'always', prev: 'class', next: '*'}, + { blankLine: 'always', prev: '*', next: 'return' }, + { blankLine: 'always', prev: ['const', 'let', 'var'], next: '*' }, + { blankLine: 'always', prev: 'class', next: '*' }, { blankLine: 'any', prev: ['const', 'let', 'var'], @@ -25,11 +25,12 @@ module.exports = { } ], 'padded-blocks': ['error', { 'classes': 'always' }], - 'no-multiple-empty-lines': ['error', {max: 1, maxBOF: 1, maxEOF: 0}], + 'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 1, maxEOF: 0 }], '@typescript-eslint/unbound-method': ['warn', { 'ignoreStatic': true }], 'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }], - 'comma-spacing': ['error', { before: false, after: true}], + 'comma-spacing': ['error', { before: false, after: true }], 'no-multi-spaces': 'error', - 'curly': 'error' + 'curly': 'error', + "semi": 'error', }, }; diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 83a4f53..6bdbdb5 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -6,7 +6,7 @@ jobs: test: strategy: matrix: - node-version: [10.x, 12.x] + node-version: [12.x,13.x, 14.x] os: [ubuntu-latest, macOS-latest, windows-latest] runs-on: ${{ matrix.os }} @@ -51,8 +51,8 @@ jobs: needs: build-artifacts strategy: matrix: - node-version: [10.x, 12.x] - os: [ubuntu-latest, windows-latest] + node-version: [12.x, 14.x] + os: [macOS-latest, ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba927a5..c6c2b17 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,3 +72,12 @@ jobs: state: 'failure' token: '${{ secrets.GITHUB_TOKEN }}' + - name: Bump up version + env: + GITHUB_TOKEN: '${{ secrets.PERSONAL_GITHUB_TOKEN }}' + run: | + git clean -dfx + git checkout master git checkout . && git pull --rebase + version=$(python update_version.py) + git commit -am "Bumping up -> $version" + git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" master diff --git a/build.sh b/build.sh index c290b0d..534c927 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/zsh function checkCommand() { command -v $1 >/dev/null 2>&1 || { echo >&2 "$1 is not installed, aborting."; exit 1; } diff --git a/config.ts b/config.ts new file mode 100644 index 0000000..34bb34a --- /dev/null +++ b/config.ts @@ -0,0 +1 @@ +import 'jest-ts-auto-mock'; \ No newline at end of file diff --git a/gauge-proto b/gauge-proto index 4c95653..257028a 160000 --- a/gauge-proto +++ b/gauge-proto @@ -1 +1 @@ -Subproject commit 4c95653c0e4be136d718c668c8c9b502f806e0bd +Subproject commit 257028a18851f30139367152e32a983a53f94b96 diff --git a/genproto.sh b/genproto.sh index 4c183f1..754a5d4 100755 --- a/genproto.sh +++ b/genproto.sh @@ -1,6 +1,25 @@ -cd gauge-proto -pbjs -t static-module -w commonjs -o ../src/gen/messages.js *.proto -pbts -o ../src/gen/messages.d.ts ../src/gen/messages.js -cp *.proto ../src/gen -rm ../src/gen/api.proto -cd .. +export PATH=$PATH:"./node_modules/.bin" + +OUTPUT_DIR="src/gen" +PROTO_DIR="gauge-proto" + +rm -rf $OUTPUT_DIR +mkdir $OUTPUT_DIR + +grpc_tools_node_protoc \ + -I $PROTO_DIR \ + --js_out=import_style=commonjs,binary:$OUTPUT_DIR \ + ./$PROTO_DIR/messages.proto ./$PROTO_DIR/spec.proto + +grpc_tools_node_protoc \ + -I $PROTO_DIR \ + --js_out=import_style=commonjs,binary:$OUTPUT_DIR \ + --grpc_out=grpc_js:$OUTPUT_DIR \ + ./$PROTO_DIR/services.proto + +grpc_tools_node_protoc \ + --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts \ + --ts_out=generate_package_definition:$OUTPUT_DIR \ + -I $PROTO_DIR \ + ./$PROTO_DIR/spec.proto ./$PROTO_DIR/messages.proto ./$PROTO_DIR/services.proto + diff --git a/jest.config.js b/jest.config.js index ccdafa2..f8509b9 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,11 +1,19 @@ module.exports = { - transform: { '^.+\\.ts?$': 'ts-jest' }, - testEnvironment: 'node', - testRegex: '/tests/.*(Test)?\\.(ts)$', - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], - coveragePathIgnorePatterns: [ - "/node_modules/", - "src/gen/*", - "src/utils/*" - ] + transform: { '^.+\\.ts?$': 'ts-jest' }, + testEnvironment: 'node', + globals: { + "ts-jest": { + "compiler": "ttypescript" + } + }, + testRegex: '/tests/.*(Test)?\\.(ts)$', + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], + coveragePathIgnorePatterns: [ + "/node_modules/", + "src/gen/*", + "src/utils/*" + ], + setupFiles: [ + "config.ts" + ] }; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 394ca31..7a7953e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,37 +5,44 @@ "requires": true, "dependencies": { "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz", + "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==", "dev": true, "requires": { - "@babel/highlight": "^7.8.3" + "@babel/highlight": "^7.10.4" } }, "@babel/core": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.8.4.tgz", - "integrity": "sha512-0LiLrB2PwrVI+a2/IEskBopDYSd8BCb3rOvH7D5tzoWd696TBEduBvuLVm4Nx6rltrLZqvI3MCalB2K2aVzQjA==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/generator": "^7.8.4", - "@babel/helpers": "^7.8.4", - "@babel/parser": "^7.8.4", - "@babel/template": "^7.8.3", - "@babel/traverse": "^7.8.4", - "@babel/types": "^7.8.3", + "version": "7.11.6", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.11.6.tgz", + "integrity": "sha512-Wpcv03AGnmkgm6uS6k8iwhIwTrcP0m17TL1n1sy7qD0qelDu4XNeW0dN0mHfa+Gei211yDaLoEe/VlbXQzM4Bg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.10.4", + "@babel/generator": "^7.11.6", + "@babel/helper-module-transforms": "^7.11.0", + "@babel/helpers": "^7.10.4", + "@babel/parser": "^7.11.5", + "@babel/template": "^7.10.4", + "@babel/traverse": "^7.11.5", + "@babel/types": "^7.11.5", "convert-source-map": "^1.7.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.1", - "json5": "^2.1.0", - "lodash": "^4.17.13", + "json5": "^2.1.2", + "lodash": "^4.17.19", "resolve": "^1.3.2", "semver": "^5.4.1", "source-map": "^0.5.0" }, "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", @@ -45,14 +52,13 @@ } }, "@babel/generator": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.8.4.tgz", - "integrity": "sha512-PwhclGdRpNAf3IxZb0YVuITPZmmrXz9zf6fH8lT4XbrmfQKr6ryBzhv593P5C6poJRciFCL/eHGW2NuGrgEyxA==", + "version": "7.11.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.11.6.tgz", + "integrity": "sha512-DWtQ1PV3r+cLbySoHrwn9RWEgKMBLLma4OBQloPRyDYvc5msJM9kvTLo1YnlJd1P/ZuKbdli3ijr5q3FvAF3uA==", "dev": true, "requires": { - "@babel/types": "^7.8.3", + "@babel/types": "^7.11.5", "jsesc": "^2.5.1", - "lodash": "^4.17.13", "source-map": "^0.5.0" }, "dependencies": { @@ -65,4310 +71,6414 @@ } }, "@babel/helper-function-name": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz", - "integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz", + "integrity": "sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.8.3", - "@babel/template": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/helper-get-function-arity": "^7.10.4", + "@babel/template": "^7.10.4", + "@babel/types": "^7.10.4" } }, "@babel/helper-get-function-arity": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", - "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz", + "integrity": "sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.4" } }, - "@babel/helper-plugin-utils": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz", - "integrity": "sha512-j+fq49Xds2smCUNYmEHF9kGNkhbet6yVIBp4e6oeQpH1RUs/Ir06xUKzDjDkGcaaokPiTNs2JBWHjaE4csUkZQ==", - "dev": true + "@babel/helper-member-expression-to-functions": { + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.11.0.tgz", + "integrity": "sha512-JbFlKHFntRV5qKw3YC0CvQnDZ4XMwgzzBbld7Ly4Mj4cbFy3KywcR8NtNctRToMWJOVvLINJv525Gd6wwVEx/Q==", + "dev": true, + "requires": { + "@babel/types": "^7.11.0" + } }, - "@babel/helper-split-export-declaration": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", - "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", + "@babel/helper-module-imports": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.4.tgz", + "integrity": "sha512-nEQJHqYavI217oD9+s5MUBzk6x1IlvoS9WTPfgG43CbMEeStE0v+r+TucWdx8KFGowPGvyOkDT9+7DHedIDnVw==", "dev": true, "requires": { - "@babel/types": "^7.8.3" + "@babel/types": "^7.10.4" } }, - "@babel/helpers": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.8.4.tgz", - "integrity": "sha512-VPbe7wcQ4chu4TDQjimHv/5tj73qz88o12EPkO2ValS2QiQS/1F2SsjyIGNnAD0vF/nZS6Cf9i+vW6HIlnaR8w==", + "@babel/helper-module-transforms": { + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.11.0.tgz", + "integrity": "sha512-02EVu8COMuTRO1TAzdMtpBPbe6aQ1w/8fePD2YgQmxZU4gpNWaL9gK3Jp7dxlkUlUCJOTaSeA+Hrm1BRQwqIhg==", "dev": true, "requires": { - "@babel/template": "^7.8.3", - "@babel/traverse": "^7.8.4", - "@babel/types": "^7.8.3" + "@babel/helper-module-imports": "^7.10.4", + "@babel/helper-replace-supers": "^7.10.4", + "@babel/helper-simple-access": "^7.10.4", + "@babel/helper-split-export-declaration": "^7.11.0", + "@babel/template": "^7.10.4", + "@babel/types": "^7.11.0", + "lodash": "^4.17.19" } }, - "@babel/highlight": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", - "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", + "@babel/helper-optimise-call-expression": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.10.4.tgz", + "integrity": "sha512-n3UGKY4VXwXThEiKrgRAoVPBMqeoPgHVqiHZOanAJCG9nQUL2pLRQirUzl0ioKclHGpGqRgIOkgcIJaIWLpygg==", "dev": true, "requires": { - "chalk": "^2.0.0", - "esutils": "^2.0.2", - "js-tokens": "^4.0.0" + "@babel/types": "^7.10.4" } }, - "@babel/parser": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.4.tgz", - "integrity": "sha512-0fKu/QqildpXmPVaRBoXOlyBb3MC+J0A66x97qEfLOMkn3u6nfY5esWogQwi/K0BjASYy4DbnsEWnpNL6qT5Mw==", + "@babel/helper-plugin-utils": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz", + "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==", "dev": true }, - "@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "@babel/helper-replace-supers": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.10.4.tgz", + "integrity": "sha512-sPxZfFXocEymYTdVK1UNmFPBN+Hv5mJkLPsYWwGBxZAxaWfFu+xqp7b6qWD0yjNuNL2VKc6L5M18tOXUP7NU0A==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.0" + "@babel/helper-member-expression-to-functions": "^7.10.4", + "@babel/helper-optimise-call-expression": "^7.10.4", + "@babel/traverse": "^7.10.4", + "@babel/types": "^7.10.4" } }, - "@babel/template": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.3.tgz", - "integrity": "sha512-04m87AcQgAFdvuoyiQ2kgELr2tV8B4fP/xJAVUL3Yb3bkNdMedD3d0rlSQr3PegP0cms3eHjl1F7PWlvWbU8FQ==", + "@babel/helper-simple-access": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.10.4.tgz", + "integrity": "sha512-0fMy72ej/VEvF8ULmX6yb5MtHG4uH4Dbd6I/aHDb/JVg0bbivwt9Wg+h3uMvX+QSFtwr5MeItvazbrc4jtRAXw==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/parser": "^7.8.3", - "@babel/types": "^7.8.3" + "@babel/template": "^7.10.4", + "@babel/types": "^7.10.4" } }, - "@babel/traverse": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.8.4.tgz", - "integrity": "sha512-NGLJPZwnVEyBPLI+bl9y9aSnxMhsKz42so7ApAv9D+b4vAFPpY013FTS9LdKxcABoIYFU52HcYga1pPlx454mg==", + "@babel/helper-split-export-declaration": { + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz", + "integrity": "sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg==", "dev": true, "requires": { - "@babel/code-frame": "^7.8.3", - "@babel/generator": "^7.8.4", - "@babel/helper-function-name": "^7.8.3", - "@babel/helper-split-export-declaration": "^7.8.3", - "@babel/parser": "^7.8.4", - "@babel/types": "^7.8.3", - "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.13" + "@babel/types": "^7.11.0" } }, - "@babel/types": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.3.tgz", - "integrity": "sha512-jBD+G8+LWpMBBWvVcdr4QysjUE4mU/syrhN17o1u3gx0/WzJB1kwiVZAXRtWbsIPOwW8pF/YJV5+nmetPzepXg==", + "@babel/helper-validator-identifier": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz", + "integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==", + "dev": true + }, + "@babel/helpers": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.10.4.tgz", + "integrity": "sha512-L2gX/XeUONeEbI78dXSrJzGdz4GQ+ZTA/aazfUsFaWjSe95kiCuOZ5HsXvkiw3iwF+mFHSRUfJU8t6YavocdXA==", "dev": true, "requires": { - "esutils": "^2.0.2", - "lodash": "^4.17.13", - "to-fast-properties": "^2.0.0" + "@babel/template": "^7.10.4", + "@babel/traverse": "^7.10.4", + "@babel/types": "^7.10.4" } }, - "@cnakazawa/watch": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", - "integrity": "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==", + "@babel/highlight": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", + "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", "dev": true, "requires": { - "exec-sh": "^0.3.2", - "minimist": "^1.2.0" + "@babel/helper-validator-identifier": "^7.10.4", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" } }, - "@grpc/proto-loader": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.5.3.tgz", - "integrity": "sha512-8qvUtGg77G2ZT2HqdqYoM/OY97gQd/0crSG34xNmZ4ZOsv3aQT/FQV9QfZPazTGna6MIoyUd+u6AxsoZjJ/VMQ==", + "@babel/parser": { + "version": "7.11.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.11.5.tgz", + "integrity": "sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==", + "dev": true + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, "requires": { - "lodash.camelcase": "^4.3.0", - "protobufjs": "^6.8.6" + "@babel/helper-plugin-utils": "^7.8.0" } }, - "@jest/console": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-24.9.0.tgz", - "integrity": "sha512-Zuj6b8TnKXi3q4ymac8EQfc3ea/uhLeCGThFqXeC8H9/raaH8ARPUTdId+XyGd03Z4In0/VjD2OYFcBF09fNLQ==", + "@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, "requires": { - "@jest/source-map": "^24.9.0", - "chalk": "^2.0.1", - "slash": "^2.0.0" + "@babel/helper-plugin-utils": "^7.8.0" } }, - "@jest/core": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-24.9.0.tgz", - "integrity": "sha512-Fogg3s4wlAr1VX7q+rhV9RVnUv5tD7VuWfYy1+whMiWUrvl7U3QJSJyWcDio9Lq2prqYsZaeTv2Rz24pWGkJ2A==", + "@babel/plugin-syntax-class-properties": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.10.4.tgz", + "integrity": "sha512-GCSBF7iUle6rNugfURwNmCGG3Z/2+opxAMLs1nND4bhEG5PuxTIggDBoeYYSujAlLtsupzOHYJQgPS3pivwXIA==", "dev": true, "requires": { - "@jest/console": "^24.7.1", - "@jest/reporters": "^24.9.0", - "@jest/test-result": "^24.9.0", - "@jest/transform": "^24.9.0", - "@jest/types": "^24.9.0", - "ansi-escapes": "^3.0.0", - "chalk": "^2.0.1", - "exit": "^0.1.2", - "graceful-fs": "^4.1.15", - "jest-changed-files": "^24.9.0", - "jest-config": "^24.9.0", - "jest-haste-map": "^24.9.0", - "jest-message-util": "^24.9.0", - "jest-regex-util": "^24.3.0", - "jest-resolve": "^24.9.0", - "jest-resolve-dependencies": "^24.9.0", - "jest-runner": "^24.9.0", - "jest-runtime": "^24.9.0", - "jest-snapshot": "^24.9.0", - "jest-util": "^24.9.0", - "jest-validate": "^24.9.0", - "jest-watcher": "^24.9.0", - "micromatch": "^3.1.10", - "p-each-series": "^1.0.0", - "realpath-native": "^1.1.0", - "rimraf": "^2.5.4", - "slash": "^2.0.0", - "strip-ansi": "^5.0.0" - }, - "dependencies": { - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } + "@babel/helper-plugin-utils": "^7.10.4" } }, - "@jest/environment": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-24.9.0.tgz", - "integrity": "sha512-5A1QluTPhvdIPFYnO3sZC3smkNeXPVELz7ikPbhUj0bQjB07EoE9qtLrem14ZUYWdVayYbsjVwIiL4WBIMV4aQ==", + "@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, "requires": { - "@jest/fake-timers": "^24.9.0", - "@jest/transform": "^24.9.0", - "@jest/types": "^24.9.0", - "jest-mock": "^24.9.0" + "@babel/helper-plugin-utils": "^7.10.4" } }, - "@jest/fake-timers": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-24.9.0.tgz", - "integrity": "sha512-eWQcNa2YSwzXWIMC5KufBh3oWRIijrQFROsIqt6v/NS9Io/gknw1jsAC9c+ih/RQX4A3O7SeWAhQeN0goKhT9A==", + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, "requires": { - "@jest/types": "^24.9.0", - "jest-message-util": "^24.9.0", - "jest-mock": "^24.9.0" + "@babel/helper-plugin-utils": "^7.8.0" } }, - "@jest/reporters": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-24.9.0.tgz", - "integrity": "sha512-mu4X0yjaHrffOsWmVLzitKmmmWSQ3GGuefgNscUSWNiUNcEOSEQk9k3pERKEQVBb0Cnn88+UESIsZEMH3o88Gw==", + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, "requires": { - "@jest/environment": "^24.9.0", - "@jest/test-result": "^24.9.0", - "@jest/transform": "^24.9.0", - "@jest/types": "^24.9.0", - "chalk": "^2.0.1", - "exit": "^0.1.2", - "glob": "^7.1.2", - "istanbul-lib-coverage": "^2.0.2", - "istanbul-lib-instrument": "^3.0.1", - "istanbul-lib-report": "^2.0.4", - "istanbul-lib-source-maps": "^3.0.1", - "istanbul-reports": "^2.2.6", - "jest-haste-map": "^24.9.0", - "jest-resolve": "^24.9.0", - "jest-runtime": "^24.9.0", - "jest-util": "^24.9.0", - "jest-worker": "^24.6.0", - "node-notifier": "^5.4.2", - "slash": "^2.0.0", - "source-map": "^0.6.0", - "string-length": "^2.0.0" + "@babel/helper-plugin-utils": "^7.10.4" } }, - "@jest/source-map": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-24.9.0.tgz", - "integrity": "sha512-/Xw7xGlsZb4MJzNDgB7PW5crou5JqWiBQaz6xyPd3ArOg2nfn/PunV8+olXbbEZzNl591o5rWKE9BRDaFAuIBg==", + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, "requires": { - "callsites": "^3.0.0", - "graceful-fs": "^4.1.15", - "source-map": "^0.6.0" + "@babel/helper-plugin-utils": "^7.8.0" } }, - "@jest/test-result": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-24.9.0.tgz", - "integrity": "sha512-XEFrHbBonBJ8dGp2JmF8kP/nQI/ImPpygKHwQ/SY+es59Z3L5PI4Qb9TQQMAEeYsThG1xF0k6tmG0tIKATNiiA==", + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, "requires": { - "@jest/console": "^24.9.0", - "@jest/types": "^24.9.0", - "@types/istanbul-lib-coverage": "^2.0.0" + "@babel/helper-plugin-utils": "^7.10.4" } }, - "@jest/test-sequencer": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-24.9.0.tgz", - "integrity": "sha512-6qqsU4o0kW1dvA95qfNog8v8gkRN9ph6Lz7r96IvZpHdNipP2cBcb07J1Z45mz/VIS01OHJ3pY8T5fUY38tg4A==", + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, "requires": { - "@jest/test-result": "^24.9.0", - "jest-haste-map": "^24.9.0", - "jest-runner": "^24.9.0", - "jest-runtime": "^24.9.0" + "@babel/helper-plugin-utils": "^7.8.0" } }, - "@jest/transform": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-24.9.0.tgz", - "integrity": "sha512-TcQUmyNRxV94S0QpMOnZl0++6RMiqpbH/ZMccFB/amku6Uwvyb1cjYX7xkp5nGNkbX4QPH/FcB6q1HBTHynLmQ==", + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, "requires": { - "@babel/core": "^7.1.0", - "@jest/types": "^24.9.0", - "babel-plugin-istanbul": "^5.1.0", - "chalk": "^2.0.1", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.1.15", - "jest-haste-map": "^24.9.0", - "jest-regex-util": "^24.9.0", - "jest-util": "^24.9.0", - "micromatch": "^3.1.10", - "pirates": "^4.0.1", - "realpath-native": "^1.1.0", - "slash": "^2.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "2.4.1" + "@babel/helper-plugin-utils": "^7.8.0" } }, - "@jest/types": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", - "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^13.0.0" + "@babel/helper-plugin-utils": "^7.8.0" } }, - "@protobufjs/aspromise": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=" - }, - "@protobufjs/base64": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" - }, - "@protobufjs/codegen": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" - }, - "@protobufjs/eventemitter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=" - }, - "@protobufjs/fetch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", + "@babel/template": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz", + "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==", + "dev": true, "requires": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" + "@babel/code-frame": "^7.10.4", + "@babel/parser": "^7.10.4", + "@babel/types": "^7.10.4" } }, - "@protobufjs/float": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=" - }, - "@protobufjs/inquire": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=" - }, - "@protobufjs/path": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=" - }, - "@protobufjs/pool": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=" + "@babel/traverse": { + "version": "7.11.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.11.5.tgz", + "integrity": "sha512-EjiPXt+r7LiCZXEfRpSJd+jUMnBd4/9OUv7Nx3+0u9+eimMwJmG0Q98lw4/289JCoxSE8OolDMNZaaF/JZ69WQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.10.4", + "@babel/generator": "^7.11.5", + "@babel/helper-function-name": "^7.10.4", + "@babel/helper-split-export-declaration": "^7.11.0", + "@babel/parser": "^7.11.5", + "@babel/types": "^7.11.5", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.19" + }, + "dependencies": { + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + } + } }, - "@protobufjs/utf8": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=" + "@babel/types": { + "version": "7.11.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz", + "integrity": "sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.10.4", + "lodash": "^4.17.19", + "to-fast-properties": "^2.0.0" + } }, - "@tootallnate/once": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.0.0.tgz", - "integrity": "sha512-KYyTT/T6ALPkIRd2Ge080X/BsXvy9O0hcWTtMWkPvwAwF99+vn6Dv4GzrFT/Nn1LePr+FFDbRXXlqmsy9lw2zA==", + "@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, - "@types/babel__core": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.6.tgz", - "integrity": "sha512-tTnhWszAqvXnhW7m5jQU9PomXSiKXk2sFxpahXvI20SZKu9ylPi8WtIxueZ6ehDWikPT0jeFujMj3X4ZHuf3Tg==", + "@cnakazawa/watch": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", + "integrity": "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==", "dev": true, "requires": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" + "exec-sh": "^0.3.2", + "minimist": "^1.2.0" } }, - "@types/babel__generator": { - "version": "7.6.1", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.1.tgz", - "integrity": "sha512-bBKm+2VPJcMRVwNhxKu8W+5/zT7pwNEqeokFOmbvVSqGzFneNxYcEBro9Ac7/N9tlsaPYnZLK8J1LWKkMsLAew==", + "@dabh/diagnostics": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.2.tgz", + "integrity": "sha512-+A1YivoVDNNVCdfozHSR8v/jyuuLTMXwjWuxPFlFlUapXoGc+Gj9mDlTDDfrwl7rXCl2tNZ0kE8sIBO6YOn96Q==", "dev": true, "requires": { - "@babel/types": "^7.0.0" + "colorspace": "1.1.x", + "enabled": "2.0.x", + "kuler": "^2.0.0" } }, - "@types/babel__template": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.0.2.tgz", - "integrity": "sha512-/K6zCpeW7Imzgab2bLkLEbz0+1JlFSrUMdw7KoIIu+IUdu51GWaBZpd3y1VXGVXzynvGa4DaIaxNZHiON3GXUg==", + "@eslint/eslintrc": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.1.3.tgz", + "integrity": "sha512-4YVwPkANLeNtRjMekzux1ci8hIaH5eGKktGqR0d3LWsKNn5B2X/1Z6Trxy7jQXl9EBGE6Yj02O+t09FMeRllaA==", "dev": true, "requires": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" + "ajv": "^6.12.4", + "debug": "^4.1.1", + "espree": "^7.3.0", + "globals": "^12.1.0", + "ignore": "^4.0.6", + "import-fresh": "^3.2.1", + "js-yaml": "^3.13.1", + "lodash": "^4.17.19", + "minimatch": "^3.0.4", + "strip-json-comments": "^3.1.1" } }, - "@types/babel__traverse": { - "version": "7.0.9", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.0.9.tgz", - "integrity": "sha512-jEFQ8L1tuvPjOI8lnpaf73oCJe+aoxL6ygqSy6c8LcW98zaC+4mzWuQIRCEvKeCOu+lbqdXcg4Uqmm1S8AP1tw==", - "dev": true, + "@grpc/grpc-js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.1.7.tgz", + "integrity": "sha512-EuxMstI0u778dp0nk6Fe3gHXYPeV6FYsWOe0/QFwxv1NQ6bc5Wl/0Yxa4xl9uBlKElL6AIxuASmSfu7KEJhqiw==", "requires": { - "@babel/types": "^7.3.0" + "@grpc/proto-loader": "^0.6.0-pre14", + "@types/node": "^12.12.47", + "google-auth-library": "^6.0.0", + "semver": "^6.2.0" } }, - "@types/bytebuffer": { - "version": "5.0.40", - "resolved": "https://registry.npmjs.org/@types/bytebuffer/-/bytebuffer-5.0.40.tgz", - "integrity": "sha512-h48dyzZrPMz25K6Q4+NCwWaxwXany2FhQg/ErOcdZS1ZpsaDnDMZg8JYLMTGz7uvXKrcKGJUZJlZObyfgdaN9g==", + "@grpc/proto-loader": { + "version": "0.6.0-pre9", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.6.0-pre9.tgz", + "integrity": "sha512-oM+LjpEjNzW5pNJjt4/hq1HYayNeQT+eGrOPABJnYHv7TyNPDNzkQ76rDYZF86X5swJOa4EujEMzQ9iiTdPgww==", "requires": { - "@types/long": "*", - "@types/node": "*" + "@types/long": "^4.0.1", + "lodash.camelcase": "^4.3.0", + "long": "^4.0.0", + "protobufjs": "^6.9.0", + "yargs": "^15.3.1" } }, - "@types/color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", - "dev": true - }, - "@types/eslint-visitor-keys": { - "version": "1.0.0", + "@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "requires": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + } + } + }, + "@istanbuljs/schema": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz", + "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", + "dev": true + }, + "@jest/console": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-26.3.0.tgz", + "integrity": "sha512-/5Pn6sJev0nPUcAdpJHMVIsA8sKizL2ZkcKPE5+dJrCccks7tcM7c9wbgHudBJbxXLoTbqsHkG1Dofoem4F09w==", + "dev": true, + "requires": { + "@jest/types": "^26.3.0", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^26.3.0", + "jest-util": "^26.3.0", + "slash": "^3.0.0" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/core": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-26.4.2.tgz", + "integrity": "sha512-sDva7YkeNprxJfepOctzS8cAk9TOekldh+5FhVuXS40+94SHbiicRO1VV2tSoRtgIo+POs/Cdyf8p76vPTd6dg==", + "dev": true, + "requires": { + "@jest/console": "^26.3.0", + "@jest/reporters": "^26.4.1", + "@jest/test-result": "^26.3.0", + "@jest/transform": "^26.3.0", + "@jest/types": "^26.3.0", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-changed-files": "^26.3.0", + "jest-config": "^26.4.2", + "jest-haste-map": "^26.3.0", + "jest-message-util": "^26.3.0", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.4.0", + "jest-resolve-dependencies": "^26.4.2", + "jest-runner": "^26.4.2", + "jest-runtime": "^26.4.2", + "jest-snapshot": "^26.4.2", + "jest-util": "^26.3.0", + "jest-validate": "^26.4.2", + "jest-watcher": "^26.3.0", + "micromatch": "^4.0.2", + "p-each-series": "^2.1.0", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "micromatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.0.5" + } + }, + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + } + } + }, + "@jest/environment": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-26.3.0.tgz", + "integrity": "sha512-EW+MFEo0DGHahf83RAaiqQx688qpXgl99wdb8Fy67ybyzHwR1a58LHcO376xQJHfmoXTu89M09dH3J509cx2AA==", + "dev": true, + "requires": { + "@jest/fake-timers": "^26.3.0", + "@jest/types": "^26.3.0", + "@types/node": "*", + "jest-mock": "^26.3.0" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/fake-timers": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.3.0.tgz", + "integrity": "sha512-ZL9ytUiRwVP8ujfRepffokBvD2KbxbqMhrXSBhSdAhISCw3gOkuntisiSFv+A6HN0n0fF4cxzICEKZENLmW+1A==", + "dev": true, + "requires": { + "@jest/types": "^26.3.0", + "@sinonjs/fake-timers": "^6.0.1", + "@types/node": "*", + "jest-message-util": "^26.3.0", + "jest-mock": "^26.3.0", + "jest-util": "^26.3.0" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/globals": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-26.4.2.tgz", + "integrity": "sha512-Ot5ouAlehhHLRhc+sDz2/9bmNv9p5ZWZ9LE1pXGGTCXBasmi5jnYjlgYcYt03FBwLmZXCZ7GrL29c33/XRQiow==", + "dev": true, + "requires": { + "@jest/environment": "^26.3.0", + "@jest/types": "^26.3.0", + "expect": "^26.4.2" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/reporters": { + "version": "26.4.1", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-26.4.1.tgz", + "integrity": "sha512-aROTkCLU8++yiRGVxLsuDmZsQEKO6LprlrxtAuzvtpbIFl3eIjgIf3EUxDKgomkS25R9ZzwGEdB5weCcBZlrpQ==", + "dev": true, + "requires": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^26.3.0", + "@jest/test-result": "^26.3.0", + "@jest/transform": "^26.3.0", + "@jest/types": "^26.3.0", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.4", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^4.0.3", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.0.2", + "jest-haste-map": "^26.3.0", + "jest-resolve": "^26.4.0", + "jest-util": "^26.3.0", + "jest-worker": "^26.3.0", + "node-notifier": "^8.0.0", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^5.0.1" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/source-map": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-26.3.0.tgz", + "integrity": "sha512-hWX5IHmMDWe1kyrKl7IhFwqOuAreIwHhbe44+XH2ZRHjrKIh0LO5eLQ/vxHFeAfRwJapmxuqlGAEYLadDq6ZGQ==", + "dev": true, + "requires": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.4", + "source-map": "^0.6.0" + } + }, + "@jest/test-result": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-26.3.0.tgz", + "integrity": "sha512-a8rbLqzW/q7HWheFVMtghXV79Xk+GWwOK1FrtimpI5n1la2SY0qHri3/b0/1F0Ve0/yJmV8pEhxDfVwiUBGtgg==", + "dev": true, + "requires": { + "@jest/console": "^26.3.0", + "@jest/types": "^26.3.0", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/test-sequencer": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.4.2.tgz", + "integrity": "sha512-83DRD8N3M0tOhz9h0bn6Kl6dSp+US6DazuVF8J9m21WAp5x7CqSMaNycMP0aemC/SH/pDQQddbsfHRTBXVUgog==", + "dev": true, + "requires": { + "@jest/test-result": "^26.3.0", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.3.0", + "jest-runner": "^26.4.2", + "jest-runtime": "^26.4.2" + } + }, + "@jest/transform": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-26.3.0.tgz", + "integrity": "sha512-Isj6NB68QorGoFWvcOjlUhpkT56PqNIsXKR7XfvoDlCANn/IANlh8DrKAA2l2JKC3yWSMH5wS0GwuQM20w3b2A==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/types": "^26.3.0", + "babel-plugin-istanbul": "^6.0.0", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.3.0", + "jest-regex-util": "^26.0.0", + "jest-util": "^26.3.0", + "micromatch": "^4.0.2", + "pirates": "^4.0.1", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "micromatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.0.5" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + } + } + }, + "@jest/types": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", + "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^1.1.1", + "@types/yargs": "^13.0.0" + } + }, + "@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=" + }, + "@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=" + }, + "@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", + "requires": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=" + }, + "@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=" + }, + "@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=" + }, + "@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=" + }, + "@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=" + }, + "@sinonjs/commons": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.1.tgz", + "integrity": "sha512-892K+kWUUi3cl+LlqEWIDrhvLgdL79tECi8JZUyq6IviKy/DNhuzCRlbHUjxK89f4ypPMMaFnFuR9Ie6DoIMsw==", + "dev": true, + "requires": { + "type-detect": "4.0.8" + } + }, + "@sinonjs/fake-timers": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz", + "integrity": "sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==", + "dev": true, + "requires": { + "@sinonjs/commons": "^1.7.0" + } + }, + "@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "dev": true + }, + "@types/babel__core": { + "version": "7.1.9", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.9.tgz", + "integrity": "sha512-sY2RsIJ5rpER1u3/aQ8OFSI7qGIy8o1NEEbgb2UaJcvOtXOMpd39ko723NBpjQFg9SIX7TXtjejZVGeIMLhoOw==", + "dev": true, + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "@types/babel__generator": { + "version": "7.6.1", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.1.tgz", + "integrity": "sha512-bBKm+2VPJcMRVwNhxKu8W+5/zT7pwNEqeokFOmbvVSqGzFneNxYcEBro9Ac7/N9tlsaPYnZLK8J1LWKkMsLAew==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@types/babel__template": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.0.2.tgz", + "integrity": "sha512-/K6zCpeW7Imzgab2bLkLEbz0+1JlFSrUMdw7KoIIu+IUdu51GWaBZpd3y1VXGVXzynvGa4DaIaxNZHiON3GXUg==", + "dev": true, + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@types/babel__traverse": { + "version": "7.0.14", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.0.14.tgz", + "integrity": "sha512-8w9szzKs14ZtBVuP6Wn7nMLRJ0D6dfB0VEBEyRgxrZ/Ln49aNMykrghM2FaNn4FJRzNppCSa0Rv9pBRM5Xc3wg==", + "dev": true, + "requires": { + "@babel/types": "^7.3.0" + } + }, + "@types/color-name": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", + "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==" + }, + "@types/eslint-visitor-keys": { + "version": "1.0.0", "resolved": "https://registry.npmjs.org/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz", "integrity": "sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==", "dev": true }, - "@types/istanbul-lib-coverage": { + "@types/google-protobuf": { + "version": "3.7.3", + "resolved": "https://registry.npmjs.org/@types/google-protobuf/-/google-protobuf-3.7.3.tgz", + "integrity": "sha512-FRwj40euE2bYkG+0X5w2nEA8yAzgJRcEa7RBd0Gsdkb9/tPM2pctVVAvnOUTbcXo2VmIHPo0Ae94Gl9vRHfKzg==", + "dev": true + }, + "@types/graceful-fs": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.3.tgz", + "integrity": "sha512-AiHRaEB50LQg0pZmm659vNBb9f4SJ0qrAnteuzhSeAUcJKxoYgEnprg/83kppCnc2zvtCKbdZry1a5pVY3lOTQ==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/istanbul-lib-coverage": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz", + "integrity": "sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw==", + "dev": true + }, + "@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "*" + } + }, + "@types/istanbul-reports": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", + "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "*", + "@types/istanbul-lib-report": "*" + } + }, + "@types/jest": { + "version": "24.9.1", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.9.1.tgz", + "integrity": "sha512-Fb38HkXSVA4L8fGKEZ6le5bB8r6MRWlOCZbVuWZcmOMSCd2wCYOwN1ibj8daIoV9naq7aaOZjrLCoCMptKU/4Q==", + "dev": true, + "requires": { + "jest-diff": "^24.3.0" + } + }, + "@types/json-schema": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.6.tgz", + "integrity": "sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw==", + "dev": true + }, + "@types/klaw-sync": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@types/klaw-sync/-/klaw-sync-6.0.0.tgz", + "integrity": "sha512-Ibfb2jgpjYUxnl7RSVvUzOrv/vhkTVKEfPwQf9ZlDDsSyWVDp/2JtTBxO4eRrKBYtxc3cZQabdR38i8R0o1uww==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/long": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.1.tgz", + "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==" + }, + "@types/node": { + "version": "12.12.62", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.62.tgz", + "integrity": "sha512-qAfo81CsD7yQIM9mVyh6B/U47li5g7cfpVQEDMfQeF8pSZVwzbhwU3crc0qG4DmpsebpJPR49AKOExQyJ05Cpg==" + }, + "@types/normalize-package-data": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", + "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", + "dev": true + }, + "@types/prettier": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.1.1.tgz", + "integrity": "sha512-2zs+O+UkDsJ1Vcp667pd3f8xearMdopz/z54i99wtRDI5KLmngk7vlrYZD0ZjKHaROR03EznlBbVY9PfAEyJIQ==", + "dev": true + }, + "@types/stack-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-1.0.1.tgz", + "integrity": "sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==", + "dev": true + }, + "@types/uuid": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.0.tgz", + "integrity": "sha512-eQ9qFW/fhfGJF8WKHGEHZEyVWfZxrT+6CLIJGBcZPfxUh/+BnEj+UCGYMlr9qZuX/2AltsvwrGqp0LhEW8D0zQ==", + "dev": true + }, + "@types/yargs": { + "version": "13.0.10", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.10.tgz", + "integrity": "sha512-MU10TSgzNABgdzKvQVW1nuuT+sgBMWeXNc3XOs5YXV5SDAK+PPja2eUuBNB9iqElu03xyEDqlnGw0jgl4nbqGQ==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "@types/yargs-parser": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-15.0.0.tgz", + "integrity": "sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw==", + "dev": true + }, + "@typescript-eslint/eslint-plugin": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.10.1.tgz", + "integrity": "sha512-PQg0emRtzZFWq6PxBcdxRH3QIQiyFO3WCVpRL3fgj5oQS3CDs3AeAKfv4DxNhzn8ITdNJGJ4D3Qw8eAJf3lXeQ==", + "dev": true, + "requires": { + "@typescript-eslint/experimental-utils": "3.10.1", + "debug": "^4.1.1", + "functional-red-black-tree": "^1.0.1", + "regexpp": "^3.0.0", + "semver": "^7.3.2", + "tsutils": "^3.17.1" + }, + "dependencies": { + "semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "dev": true + } + } + }, + "@typescript-eslint/experimental-utils": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.10.1.tgz", + "integrity": "sha512-DewqIgscDzmAfd5nOGe4zm6Bl7PKtMG2Ad0KG8CUZAHlXfAKTF9Ol5PXhiMh39yRL2ChRH1cuuUGOcVyyrhQIw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.3", + "@typescript-eslint/types": "3.10.1", + "@typescript-eslint/typescript-estree": "3.10.1", + "eslint-scope": "^5.0.0", + "eslint-utils": "^2.0.0" + } + }, + "@typescript-eslint/parser": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.10.1.tgz", + "integrity": "sha512-Ug1RcWcrJP02hmtaXVS3axPPTTPnZjupqhgj+NnZ6BCkwSImWk/283347+x9wN+lqOdK9Eo3vsyiyDHgsmiEJw==", + "dev": true, + "requires": { + "@types/eslint-visitor-keys": "^1.0.0", + "@typescript-eslint/experimental-utils": "3.10.1", + "@typescript-eslint/types": "3.10.1", + "@typescript-eslint/typescript-estree": "3.10.1", + "eslint-visitor-keys": "^1.1.0" + } + }, + "@typescript-eslint/types": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.10.1.tgz", + "integrity": "sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz", + "integrity": "sha512-QbcXOuq6WYvnB3XPsZpIwztBoquEYLXh2MtwVU+kO8jgYCiv4G5xrSP/1wg4tkvrEE+esZVquIPX/dxPlePk1w==", + "dev": true, + "requires": { + "@typescript-eslint/types": "3.10.1", + "@typescript-eslint/visitor-keys": "3.10.1", + "debug": "^4.1.1", + "glob": "^7.1.6", + "is-glob": "^4.0.1", + "lodash": "^4.17.15", + "semver": "^7.3.2", + "tsutils": "^3.17.1" + }, + "dependencies": { + "semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "dev": true + } + } + }, + "@typescript-eslint/visitor-keys": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz", + "integrity": "sha512-9JgC82AaQeglebjZMgYR5wgmfUdUc+EitGUUMW8u2nDckaeimzW+VsoLV6FoimPv2id3VQzfjwBxEMVz08ameQ==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^1.1.0" + } + }, + "abab": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", + "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==", + "dev": true + }, + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "requires": { + "event-target-shim": "^5.0.0" + } + }, + "acorn": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.0.tgz", + "integrity": "sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==", + "dev": true + }, + "acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", + "dev": true, + "requires": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + } + }, + "acorn-jsx": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz", + "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==", + "dev": true + }, + "acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "dev": true + }, + "agent-base": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.1.tgz", + "integrity": "sha512-01q25QQDwLSsyfhrKbn8yuur+JNw0H+0Y4JiGIKd3z9aYk/w/2kxD/Upc+t2ZBBSUNff50VjPsSW2YxM8QYKVg==", + "requires": { + "debug": "4" + } + }, + "ajv": { + "version": "6.12.5", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.5.tgz", + "integrity": "sha512-lRF8RORchjpKG50/WFf8xmg7sgCLFiYNNnqdKflk63whMQcWR5ngGjiSXkL9bjxy6B2npOK2HSMN49jEBMSkag==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ansi-bgblack": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-bgblack/-/ansi-bgblack-0.1.1.tgz", + "integrity": "sha1-poulAHiHcBtqr74/oNrf36juPKI=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-bgblue": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-bgblue/-/ansi-bgblue-0.1.1.tgz", + "integrity": "sha1-Z73ATtybm1J4lp2hlt6j11yMNhM=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-bgcyan": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-bgcyan/-/ansi-bgcyan-0.1.1.tgz", + "integrity": "sha1-WEiUJWAL3p9VBwaN2Wnr/bUP52g=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-bggreen": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-bggreen/-/ansi-bggreen-0.1.1.tgz", + "integrity": "sha1-TjGRJIUplD9DIelr8THRwTgWr0k=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-bgmagenta": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-bgmagenta/-/ansi-bgmagenta-0.1.1.tgz", + "integrity": "sha1-myhDLAduqpmUGGcqPvvhk5HCx6E=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-bgred": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-bgred/-/ansi-bgred-0.1.1.tgz", + "integrity": "sha1-p2+Sg4OCukMpCmwXeEJPmE1vEEE=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-bgwhite": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-bgwhite/-/ansi-bgwhite-0.1.1.tgz", + "integrity": "sha1-ZQRlE3elim7OzQMxmU5IAljhG6g=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-bgyellow": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-bgyellow/-/ansi-bgyellow-0.1.1.tgz", + "integrity": "sha1-w/4usIzUdmSAKeaHTRWgs49h1E8=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-black": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-black/-/ansi-black-0.1.1.tgz", + "integrity": "sha1-9hheiJNgslRaHsUMC/Bj/EMDJFM=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-blue": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-blue/-/ansi-blue-0.1.1.tgz", + "integrity": "sha1-FbgEmQ6S/JyoxUds6PaZd3wh7b8=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-bold": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-bold/-/ansi-bold-0.1.1.tgz", + "integrity": "sha1-PmOVCvWswq4uZw5vZ96xFdGl9QU=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-colors": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", + "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "dev": true + }, + "ansi-cyan": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz", + "integrity": "sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-dim": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-dim/-/ansi-dim-0.1.1.tgz", + "integrity": "sha1-QN5MYDqoCG2Oeoa4/5mNXDbu/Ww=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-escapes": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz", + "integrity": "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==", + "dev": true, + "requires": { + "type-fest": "^0.11.0" + }, + "dependencies": { + "type-fest": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz", + "integrity": "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==", + "dev": true + } + } + }, + "ansi-gray": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", + "integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-green": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-green/-/ansi-green-0.1.1.tgz", + "integrity": "sha1-il2al55FjVfEDjNYCzc5C44Q0Pc=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-grey": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-grey/-/ansi-grey-0.1.1.tgz", + "integrity": "sha1-WdmLasK6GfilF5jphT+6eDOaM8E=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-hidden": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-hidden/-/ansi-hidden-0.1.1.tgz", + "integrity": "sha1-7WpMSY0rt8uyidvyqNHcyFZ/rg8=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-inverse": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-inverse/-/ansi-inverse-0.1.1.tgz", + "integrity": "sha1-tq9Fgm/oJr+1KKbHmIV5Q1XM0mk=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-italic": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-italic/-/ansi-italic-0.1.1.tgz", + "integrity": "sha1-EEdDRj9iXBQqA2c5z4XtpoiYbyM=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-magenta": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-magenta/-/ansi-magenta-0.1.1.tgz", + "integrity": "sha1-BjtboW+z8j4c/aKwfAqJ3hHkMK4=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-red": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", + "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==" + }, + "ansi-reset": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-reset/-/ansi-reset-0.1.1.tgz", + "integrity": "sha1-5+cSksPH3c1NYu9KbHwFmAkRw7c=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-strikethrough": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-strikethrough/-/ansi-strikethrough-0.1.1.tgz", + "integrity": "sha1-2Eh3FAss/wfRyT685pkE9oiF5Wg=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-styles": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", + "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "requires": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + } + }, + "ansi-underline": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-underline/-/ansi-underline-0.1.1.tgz", + "integrity": "sha1-38kg9Ml7WXfqFi34/7mIMIqqcaQ=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-white": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-white/-/ansi-white-0.1.1.tgz", + "integrity": "sha1-nHe3wZPF7pkuYBHTbsTJIbRXiUQ=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-wrap": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", + "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", + "dev": true + }, + "ansi-yellow": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-yellow/-/ansi-yellow-0.1.1.tgz", + "integrity": "sha1-y5NW8vRscy8OMZnmEClVp32oPB0=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "anymatch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", + "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "aproba": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", + "dev": true + }, + "are-we-there-yet": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", + "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", + "dev": true, + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" + } + }, + "arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==" + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "argv": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/argv/-/argv-0.0.2.tgz", + "integrity": "sha1-7L0W+JSbFXGDcRsb2jNPN4QBhas=", + "dev": true + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "dev": true + }, + "array-sort": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/array-sort/-/array-sort-0.1.4.tgz", + "integrity": "sha512-BNcM+RXxndPxiZ2rd76k6nyQLRZr2/B/sdi8pQ+Joafr5AH279L40dfokSUTp8O+AaqYjXWhblBWa2st2nc4fQ==", + "dev": true, + "requires": { + "default-compare": "^1.0.0", + "get-value": "^2.0.6", + "kind-of": "^5.0.2" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "dev": true + }, + "arrify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", + "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==" + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true + }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "dev": true + }, + "astral-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", + "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", + "dev": true + }, + "async": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.0.tgz", + "integrity": "sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw==", + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true + }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true + }, + "autolinker": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", + "integrity": "sha1-BlK0kYgYefB3XazgzcoyM5QqTkc=", + "dev": true, + "requires": { + "gulp-header": "^1.7.1" + } + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true + }, + "aws4": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.1.tgz", + "integrity": "sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA==", + "dev": true + }, + "babel-jest": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-26.3.0.tgz", + "integrity": "sha512-sxPnQGEyHAOPF8NcUsD0g7hDCnvLL2XyblRBcgrzTWBB/mAIpWow3n1bEL+VghnnZfreLhFSBsFluRoK2tRK4g==", + "dev": true, + "requires": { + "@jest/transform": "^26.3.0", + "@jest/types": "^26.3.0", + "@types/babel__core": "^7.1.7", + "babel-plugin-istanbul": "^6.0.0", + "babel-preset-jest": "^26.3.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "slash": "^3.0.0" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "babel-plugin-istanbul": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.0.0.tgz", + "integrity": "sha512-AF55rZXpe7trmEylbaE1Gv54wn6rwU03aptvRoVIGP8YykoSxqdVLV1TfwflBCE/QtHmqtP8SWlTENqbK8GCSQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^4.0.0", + "test-exclude": "^6.0.0" + } + }, + "babel-plugin-jest-hoist": { + "version": "26.2.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.2.0.tgz", + "integrity": "sha512-B/hVMRv8Nh1sQ1a3EY8I0n4Y1Wty3NrR5ebOyVT302op+DOAau+xNEImGMsUWOC3++ZlMooCytKz+NgN8aKGbA==", + "dev": true, + "requires": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + } + }, + "babel-preset-current-node-syntax": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-0.1.3.tgz", + "integrity": "sha512-uyexu1sVwcdFnyq9o8UQYsXwXflIh8LvrF5+cKrYam93ned1CStffB3+BEcsxGSgagoA3GEyjDqO4a/58hyPYQ==", + "dev": true, + "requires": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + } + }, + "babel-preset-jest": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-26.3.0.tgz", + "integrity": "sha512-5WPdf7nyYi2/eRxCbVrE1kKCWxgWY4RsPEbdJWFm7QsesFGqjdkyLeu1zRkwM1cxK6EPIlNd6d2AxLk7J+t4pw==", + "dev": true, + "requires": { + "babel-plugin-jest-hoist": "^26.2.0", + "babel-preset-current-node-syntax": "^0.1.3" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "requires": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + } + }, + "base64-js": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", + "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==" + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "dev": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "bignumber.js": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.0.tgz", + "integrity": "sha512-t/OYhhJ2SD+YGBQcjY8GzzDHEk9f3nerxjtfa6tlMXfe7frs/WozhvCNoGvpM0P3bNf3Gq5ZRMlGr5f3r4/N8A==" + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "requires": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + } + }, + "browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", + "dev": true + }, + "bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "requires": { + "fast-json-stable-stringify": "2.x" + } + }, + "bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "requires": { + "node-int64": "^0.4.0" + } + }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" + }, + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" + }, + "cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "requires": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + } + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" + }, + "capture-exit": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz", + "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==", + "dev": true, + "requires": { + "rsvp": "^4.8.4" + } + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + } + } + }, + "char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true + }, + "chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "dev": true + }, + "ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, + "cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "dev": true + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true + }, + "codecov": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/codecov/-/codecov-3.7.2.tgz", + "integrity": "sha512-fmCjAkTese29DUX3GMIi4EaKGflHa4K51EoMc29g8fBHawdk/+KEq5CWOeXLdd9+AT7o1wO4DIpp/Z1KCqCz1g==", + "dev": true, + "requires": { + "argv": "0.0.2", + "ignore-walk": "3.0.3", + "js-yaml": "3.13.1", + "teeny-request": "6.0.1", + "urlgrey": "0.4.4" + } + }, + "collect-v8-coverage": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", + "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", + "dev": true + }, + "collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "dev": true, + "requires": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + } + }, + "color": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/color/-/color-3.0.0.tgz", + "integrity": "sha512-jCpd5+s0s0t7p3pHQKpnJ0TpQKKdleP71LWcA0aqiljpiuAkOSUFN/dyH8ZwF0hRmFlrIuRhufds1QyEP9EB+w==", + "dev": true, + "requires": { + "color-convert": "^1.9.1", + "color-string": "^1.5.2" + }, + "dependencies": { + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + } + } + }, + "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz", - "integrity": "sha512-hRJD2ahnnpLgsj6KWMYSrmXkM3rm2Dl1qkx6IOFD5FnuNPXJIG5L0dhgKXCYTRMGzU4n0wImQ/xfmRc4POUFlg==", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "color-string": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.5.3.tgz", + "integrity": "sha512-dC2C5qeWoYkxki5UAXapdjqO672AM4vZuPGRQfO8b5HKuKGBbKWpITyDYN7TOFKvRW7kOgAn3746clDBMDJyQw==", + "dev": true, + "requires": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, + "colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", "dev": true }, - "@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "colorspace": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.2.tgz", + "integrity": "sha512-vt+OoIP2d76xLhjwbBaucYlNSpPsrJWPlBTtwCpQKIu6/CSMutyzX93O/Do0qzpH3YoHEes8YEFXyZ797rEhzQ==", "dev": true, "requires": { - "@types/istanbul-lib-coverage": "*" + "color": "3.0.x", + "text-hex": "1.0.x" } }, - "@types/istanbul-reports": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.1.tgz", - "integrity": "sha512-UpYjBi8xefVChsCoBpKShdxTllC9pwISirfoZsUa2AAdQg/Jd2KQGtSbw+ya7GPo7x/wAPlH6JBhKhAsXUEZNA==", + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" + "delayed-stream": "~1.0.0" } }, - "@types/jest": { - "version": "24.9.1", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.9.1.tgz", - "integrity": "sha512-Fb38HkXSVA4L8fGKEZ6le5bB8r6MRWlOCZbVuWZcmOMSCd2wCYOwN1ibj8daIoV9naq7aaOZjrLCoCMptKU/4Q==", + "component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "concat-with-sourcemaps": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", + "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", "dev": true, "requires": { - "jest-diff": "^24.3.0" + "source-map": "^0.6.1" } }, - "@types/json-schema": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.5.tgz", - "integrity": "sha512-7+2BITlgjgDhH0vvwZU/HZJVyk+2XUlvxXe8dFMedNX/aMkaOq++rMAFXc0tM7ij15QaWlbdQASBR9dihi+bDQ==", + "console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", "dev": true }, - "@types/klaw-sync": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@types/klaw-sync/-/klaw-sync-6.0.0.tgz", - "integrity": "sha512-Ibfb2jgpjYUxnl7RSVvUzOrv/vhkTVKEfPwQf9ZlDDsSyWVDp/2JtTBxO4eRrKBYtxc3cZQabdR38i8R0o1uww==", + "convert-source-map": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", + "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", "dev": true, "requires": { - "@types/node": "*" + "safe-buffer": "~5.1.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + } + } + }, + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "create-frame": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/create-frame/-/create-frame-1.0.0.tgz", + "integrity": "sha1-i5XyaR4ySbYIBEPjPQutn49pdao=", + "dev": true, + "requires": { + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "isobject": "^3.0.0", + "lazy-cache": "^2.0.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", + "dev": true + }, + "cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dev": true, + "requires": { + "cssom": "~0.3.6" + }, + "dependencies": { + "cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + } + } + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "dev": true, + "requires": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + } + }, + "date.js": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/date.js/-/date.js-0.3.3.tgz", + "integrity": "sha512-HgigOS3h3k6HnW011nAb43c5xx5rBXk8P2v/WIT9Zv4koIaVXiH2BURguI78VVp+5Qc076T7OR378JViCnZtBw==", + "dev": true, + "requires": { + "debug": "~3.1.0" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "debug": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz", + "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==", + "requires": { + "ms": "2.1.2" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" + }, + "decimal.js": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.2.0.tgz", + "integrity": "sha512-vDPw+rDgn3bZe1+F/pyEwb1oMG2XTlRVgAa6B4KccTEpYgF8w6eQllVbQcfIJnZyvzFtFpxnpGtx8dd7DJp/Rw==", + "dev": true + }, + "decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", + "dev": true + }, + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true + }, + "deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "dev": true + }, + "deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "dev": true + }, + "default-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/default-compare/-/default-compare-1.0.0.tgz", + "integrity": "sha512-QWfXlM0EkAbqOCbD/6HjdwT19j7WCkMyiRhWilc4H9/5h/RzTF9gv5LYh1+CmDV5d1rki6KAWLtQale0xt20eQ==", + "dev": true, + "requires": { + "kind-of": "^5.0.2" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + }, + "dependencies": { + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } } }, - "@types/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.0.tgz", - "integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true }, - "@types/node": { - "version": "10.14.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.14.7.tgz", - "integrity": "sha512-on4MmIDgHXiuJDELPk1NFaKVUxxCFr37tm8E9yN6rAiF5Pzp/9bBfBHkoexqRiY+hk/Z04EJU9kKEb59YqJ82A==" + "delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "dev": true }, - "@types/stack-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-1.0.1.tgz", - "integrity": "sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==", + "detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", "dev": true }, - "@types/uuid": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-7.0.0.tgz", - "integrity": "sha512-RiX1I0lK9WFLFqy2xOxke396f0wKIzk5sAll0tL4J4XDYJXURI7JOs96XQb3nP+2gEpQ/LutBb66jgiT5oQshQ==", + "detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true }, - "@types/yargs": { - "version": "13.0.8", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.8.tgz", - "integrity": "sha512-XAvHLwG7UQ+8M4caKIH0ZozIOYay5fQkAgyIXegXT9jPtdIGdhga+sUEdAr1CiG46aB+c64xQEYyEzlwWVTNzA==", + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==" + }, + "diff-sequences": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-24.9.0.tgz", + "integrity": "sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew==", + "dev": true + }, + "doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, "requires": { - "@types/yargs-parser": "*" + "esutils": "^2.0.2" } }, - "@types/yargs-parser": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-15.0.0.tgz", - "integrity": "sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw==", - "dev": true - }, - "@typescript-eslint/eslint-plugin": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.9.0.tgz", - "integrity": "sha512-UD6b4p0/hSe1xdTvRCENSx7iQ+KR6ourlZFfYuPC7FlXEzdHuLPrEmuxZ23b2zW96KJX9Z3w05GE/wNOiEzrVg==", + "domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "3.9.0", - "debug": "^4.1.1", - "functional-red-black-tree": "^1.0.1", - "regexpp": "^3.0.0", - "semver": "^7.3.2", - "tsutils": "^3.17.1" + "webidl-conversions": "^5.0.0" }, "dependencies": { - "semver": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", - "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", "dev": true } } }, - "@typescript-eslint/experimental-utils": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.9.0.tgz", - "integrity": "sha512-/vSHUDYizSOhrOJdjYxPNGfb4a3ibO8zd4nUKo/QBFOmxosT3cVUV7KIg8Dwi6TXlr667G7YPqFK9+VSZOorNA==", + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", "dev": true, "requires": { - "@types/json-schema": "^7.0.3", - "@typescript-eslint/types": "3.9.0", - "@typescript-eslint/typescript-estree": "3.9.0", - "eslint-scope": "^5.0.0", - "eslint-utils": "^2.0.0" + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" } }, - "@typescript-eslint/parser": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.9.0.tgz", - "integrity": "sha512-rDHOKb6uW2jZkHQniUQVZkixQrfsZGUCNWWbKWep4A5hGhN5dLHMUCNAWnC4tXRlHedXkTDptIpxs6e4Pz8UfA==", - "dev": true, + "ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", "requires": { - "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "3.9.0", - "@typescript-eslint/types": "3.9.0", - "@typescript-eslint/typescript-estree": "3.9.0", - "eslint-visitor-keys": "^1.1.0" + "safe-buffer": "^5.0.1" } }, - "@typescript-eslint/types": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.9.0.tgz", - "integrity": "sha512-rb6LDr+dk9RVVXO/NJE8dT1pGlso3voNdEIN8ugm4CWM5w5GimbThCMiMl4da1t5u3YwPWEwOnKAULCZgBtBHg==", + "emittery": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.7.1.tgz", + "integrity": "sha512-d34LN4L6h18Bzz9xpoku2nPwKxCPlPMr3EEKTkoEBi+1/+b0lcRkRJ1UVyyZaKNeqGR3swcGl6s390DNO4YVgQ==", "dev": true }, - "@typescript-eslint/typescript-estree": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.9.0.tgz", - "integrity": "sha512-N+158NKgN4rOmWVfvKOMoMFV5n8XxAliaKkArm/sOypzQ0bUL8MSnOEBW3VFIeffb/K5ce/cAV0yYhR7U4ALAA==", + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "enabled": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz", + "integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==", + "dev": true + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dev": true, "requires": { - "@typescript-eslint/types": "3.9.0", - "@typescript-eslint/visitor-keys": "3.9.0", - "debug": "^4.1.1", - "glob": "^7.1.6", - "is-glob": "^4.0.1", - "lodash": "^4.17.15", - "semver": "^7.3.2", - "tsutils": "^3.17.1" - }, - "dependencies": { - "semver": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", - "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", - "dev": true - } + "once": "^1.4.0" } }, - "@typescript-eslint/visitor-keys": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.9.0.tgz", - "integrity": "sha512-O1qeoGqDbu0EZUC/MZ6F1WHTIzcBVhGqDj3LhTnj65WUA548RXVxUHbYhAW9bZWfb2rnX9QsbbP5nmeJ5Z4+ng==", + "enquirer": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", "dev": true, "requires": { - "eslint-visitor-keys": "^1.1.0" + "ansi-colors": "^4.1.1" } }, - "abab": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.3.tgz", - "integrity": "sha512-tsFzPpcttalNjFBCFMqsKYQcWxxen1pgJR56by//QwvJc4/OUS3kPOOttx2tSIfjsylB0pYu7f5D3K1RCxUnUg==", - "dev": true - }, - "acorn": { - "version": "5.7.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", - "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", + "ent": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ent/-/ent-2.2.0.tgz", + "integrity": "sha1-6WQhkyWiHQX0RGai9obtbOX13R0=", "dev": true }, - "acorn-globals": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.4.tgz", - "integrity": "sha512-clfQEh21R+D0leSbUdWf3OcfqyaCSAQ8Ryq00bofSekfr9W8u1jyYZo6ir0xu9Gtcf7BjcHJpnbZH7JOCpP60A==", + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, "requires": { - "acorn": "^6.0.1", - "acorn-walk": "^6.0.1" - }, - "dependencies": { - "acorn": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.0.tgz", - "integrity": "sha512-gac8OEcQ2Li1dxIEWGZzsp2BitJxwkwcOm0zHAJLcPJaVvm58FRnk6RkuLRpU1EujipU2ZFODv2P9DLMfnV8mw==", - "dev": true - } + "is-arrayish": "^0.2.1" } }, - "acorn-jsx": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.2.0.tgz", - "integrity": "sha512-HiUX/+K2YpkpJ+SzBffkM/AQ2YE03S0U1kjTLVpoJdhZMOWy8qvXVN9JdLqv2QsaQ6MPYQIuNmwD8zOiYUofLQ==", + "error-symbol": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/error-symbol/-/error-symbol-0.1.0.tgz", + "integrity": "sha1-Ck2uN9YA0VopukU9jvkg8YRDM/Y=", "dev": true }, - "acorn-walk": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.2.0.tgz", - "integrity": "sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA==", + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true }, - "agent-base": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.0.tgz", - "integrity": "sha512-j1Q7cSCqN+AwrmDd+pzgqc0/NpC655x2bUf5ZjRIO77DcNBFmh+OgRNzF6OKdCC9RSCb19fGd99+bhXFdkRNqw==", + "escodegen": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", + "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", "dev": true, "requires": { - "debug": "4" + "esprima": "^4.0.1", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" + }, + "dependencies": { + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } + }, + "optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + } + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "dev": true + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2" + } + } } }, - "ajv": { - "version": "6.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.0.tgz", - "integrity": "sha512-D6gFiFA0RRLyUbvijN74DWAjXSFxWKaWP7mldxkVhyhAV3+SWA9HEJPHQ2c9soIeTFJqcSdFDGFgdqs1iUU2Hw==", + "eslint": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.9.0.tgz", + "integrity": "sha512-V6QyhX21+uXp4T+3nrNfI3hQNBDa/P8ga7LoQOenwrlEFXrEnUEE+ok1dMtaS3b6rmLXhT1TkTIsG75HMLbknA==", "dev": true, "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "@babel/code-frame": "^7.0.0", + "@eslint/eslintrc": "^0.1.3", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "enquirer": "^2.3.5", + "eslint-scope": "^5.1.0", + "eslint-utils": "^2.1.0", + "eslint-visitor-keys": "^1.3.0", + "espree": "^7.3.0", + "esquery": "^1.2.0", + "esutils": "^2.0.2", + "file-entry-cache": "^5.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^5.0.0", + "globals": "^12.1.0", + "ignore": "^4.0.6", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^3.13.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash": "^4.17.19", + "minimatch": "^3.0.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "progress": "^2.0.0", + "regexpp": "^3.1.0", + "semver": "^7.2.1", + "strip-ansi": "^6.0.0", + "strip-json-comments": "^3.1.0", + "table": "^5.2.3", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "dependencies": { + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true - }, - "ansi-escapes": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", - "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", - "dev": true - }, - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, "requires": { - "color-convert": "^1.9.0" + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" } }, - "anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", "dev": true, "requires": { - "micromatch": "^3.1.4", - "normalize-path": "^2.1.1" + "eslint-visitor-keys": "^1.1.0" } }, - "arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==" + "eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "espree": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.0.tgz", + "integrity": "sha512-dksIWsvKCixn1yrEXO8UosNSxaDoSYpq9reEjZSbHLpT5hpaCAKTLBwq0RHtLrIr+c0ByiYzWT8KTMRzoRCNlw==", "dev": true, "requires": { - "sprintf-js": "~1.0.2" + "acorn": "^7.4.0", + "acorn-jsx": "^5.2.0", + "eslint-visitor-keys": "^1.3.0" } }, - "argv": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/argv/-/argv-0.0.2.tgz", - "integrity": "sha1-7L0W+JSbFXGDcRsb2jNPN4QBhas=", - "dev": true - }, - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true - }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true - }, - "arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", - "dev": true - }, - "array-equal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz", - "integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=", - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true }, - "ascli": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ascli/-/ascli-1.0.1.tgz", - "integrity": "sha1-vPpZdKYvGOgcq660lzKrSoj5Brw=", + "esquery": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.3.1.tgz", + "integrity": "sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ==", + "dev": true, "requires": { - "colour": "~0.7.1", - "optjs": "~3.2.2" + "estraverse": "^5.1.0" + }, + "dependencies": { + "estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true + } } }, - "asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, "requires": { - "safer-buffer": "~2.1.0" + "estraverse": "^5.2.0" + }, + "dependencies": { + "estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true + } } }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true - }, - "assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", - "dev": true - }, - "astral-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", - "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", - "dev": true - }, - "async-limiter": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", - "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==", - "dev": true - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", "dev": true }, - "atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true }, - "aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "dev": true + "event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" }, - "aws4": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.1.tgz", - "integrity": "sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug==", + "exec-sh": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.4.tgz", + "integrity": "sha512-sEFIkc61v75sWeOe72qyrqg2Qg0OuLESziUDk/O/z2qgS15y2gWVFrI6f2Qn/qw/0/NCfCEsmNA4zOjkwEZT1A==", "dev": true }, - "babel-jest": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-24.9.0.tgz", - "integrity": "sha512-ntuddfyiN+EhMw58PTNL1ph4C9rECiQXjI4nMMBKBaNjXvqLdkXpPRcMSr4iyBrJg/+wz9brFUD6RhOAT6r4Iw==", - "dev": true, - "requires": { - "@jest/transform": "^24.9.0", - "@jest/types": "^24.9.0", - "@types/babel__core": "^7.1.0", - "babel-plugin-istanbul": "^5.1.0", - "babel-preset-jest": "^24.9.0", - "chalk": "^2.4.2", - "slash": "^2.0.0" - } - }, - "babel-plugin-istanbul": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-5.2.0.tgz", - "integrity": "sha512-5LphC0USA8t4i1zCtjbbNb6jJj/9+X6P37Qfirc/70EQ34xKlMW+a1RHGwxGI+SwWpNwZ27HqvzAobeqaXwiZw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "find-up": "^3.0.0", - "istanbul-lib-instrument": "^3.3.0", - "test-exclude": "^5.2.3" - } - }, - "babel-plugin-jest-hoist": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-24.9.0.tgz", - "integrity": "sha512-2EMA2P8Vp7lG0RAzr4HXqtYwacfMErOuv1U3wrvxHX6rD1sV6xS3WXG3r8TRQ2r6w8OhvSdWt+z41hQNwNm3Xw==", - "dev": true, - "requires": { - "@types/babel__traverse": "^7.0.6" - } - }, - "babel-preset-jest": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-24.9.0.tgz", - "integrity": "sha512-izTUuhE4TMfTRPF92fFwD2QfdXaZW08qvWTFCI51V8rW5x00UuPgc3ajRoWofXOuxjfcOM5zzSYsQS3H8KGCAg==", + "execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", "dev": true, "requires": { - "@babel/plugin-syntax-object-rest-spread": "^7.0.0", - "babel-plugin-jest-hoist": "^24.9.0" + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } } }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", "dev": true }, - "base": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", "dev": true, "requires": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "expect": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/expect/-/expect-26.4.2.tgz", + "integrity": "sha512-IlJ3X52Z0lDHm7gjEp+m76uX46ldH5VpqmU0006vqDju/285twh7zaWMRhs67VpQhBwjjMchk+p5aA0VkERCAA==", + "dev": true, + "requires": { + "@jest/types": "^26.3.0", + "ansi-styles": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-matcher-utils": "^26.4.2", + "jest-message-util": "^26.3.0", + "jest-regex-util": "^26.0.0" }, "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", "dev": true, "requires": { - "is-descriptor": "^1.0.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", "dev": true, "requires": { - "kind-of": "^6.0.0" + "@types/istanbul-lib-report": "*" } }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", "dev": true, "requires": { - "kind-of": "^6.0.0" + "@types/yargs-parser": "*" } }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", "dev": true, "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" } } } }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "dev": true, - "requires": { - "tweetnacl": "^0.14.3" - } - }, - "bindings": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", - "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", - "dev": true, - "optional": true, - "requires": { - "file-uri-to-path": "1.0.0" - } + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "is-extendable": "^0.1.0" } }, - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", "dev": true, "requires": { - "arr-flatten": "^1.1.0", "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } } }, - "browser-process-hrtime": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-0.1.3.tgz", - "integrity": "sha512-bRFnI4NnjO6cnyLmOV/7PVoDEMJChlcfN0z4s1YMBY989/SvlfMI1lgCnkFUs53e9gQF+w7qu7XdllSTiSl8Aw==", + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", "dev": true }, - "browser-resolve": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", - "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", + "falsey": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/falsey/-/falsey-0.3.2.tgz", + "integrity": "sha512-lxEuefF5MBIVDmE6XeqCdM4BWk1+vYmGZtkbKZ/VFcg6uBBw6fXNEbWmxCjDdQlFc9hy450nkiWwM3VAW6G1qg==", "dev": true, "requires": { - "resolve": "1.1.7" + "kind-of": "^5.0.2" }, "dependencies": { - "resolve": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", - "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", "dev": true } } }, - "bs-logger": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", - "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", - "dev": true, - "requires": { - "fast-json-stable-stringify": "2.x" - } - }, - "bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "dev": true, - "requires": { - "node-int64": "^0.4.0" - } - }, - "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true }, - "bytebuffer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/bytebuffer/-/bytebuffer-5.0.1.tgz", - "integrity": "sha1-WC7qSxqHO20CCkjVjfhfC7ps/d0=", - "requires": { - "long": "~3" - }, - "dependencies": { - "long": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/long/-/long-3.2.0.tgz", - "integrity": "sha1-2CG3E4yhy1gcFymQ7xTbIAtcR0s=" - } - } + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true }, - "cache-base": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", - "dev": true, - "requires": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" - } + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "fast-safe-stringify": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz", + "integrity": "sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA==", "dev": true }, - "camelcase": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", - "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=" + "fast-text-encoding": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.3.tgz", + "integrity": "sha512-dtm4QZH9nZtcDt8qJiOH9fcQd1NAgi+K1O2DbE6GG1PPCK/BWfOH3idCTRQ4ImXRUOyopDEgDEnVEE7Y/2Wrig==" }, - "capture-exit": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz", - "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==", + "fb-watchman": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", + "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==", "dev": true, "requires": { - "rsvp": "^4.8.4" + "bser": "2.1.1" } }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "fecha": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.0.tgz", + "integrity": "sha512-aN3pcx/DSmtyoovUudctc8+6Hl4T+hI9GBBHLjA76jdZl7+b1sgh5g4k+u/GL3dTy1/pnYzKp69FpJ0OicE3Wg==", "dev": true }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "file-entry-cache": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", + "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", "dev": true, "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "flat-cache": "^2.0.1" } }, - "ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", - "dev": true - }, - "class-utils": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", "dev": true, "requires": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" }, "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", "dev": true, "requires": { - "is-descriptor": "^0.1.0" + "kind-of": "^3.0.2" } - } - } - }, - "cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" - } - }, - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", - "dev": true - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" - }, - "codecov": { - "version": "3.6.5", - "resolved": "https://registry.npmjs.org/codecov/-/codecov-3.6.5.tgz", - "integrity": "sha512-v48WuDMUug6JXwmmfsMzhCHRnhUf8O3duqXvltaYJKrO1OekZWpB/eH6iIoaxMl8Qli0+u3OxptdsBOYiD7VAQ==", - "dev": true, - "requires": { - "argv": "0.0.2", - "ignore-walk": "3.0.3", - "js-yaml": "3.13.1", - "teeny-request": "6.0.1", - "urlgrey": "0.4.4" + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } } }, - "collection-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", - "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", - "dev": true, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "requires": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" } }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "flat-cache": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", + "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", "dev": true, "requires": { - "color-name": "1.1.3" + "flatted": "^2.0.0", + "rimraf": "2.6.3", + "write": "1.0.3" } }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "flatted": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz", + "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==", "dev": true }, - "colour": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/colour/-/colour-0.7.1.tgz", - "integrity": "sha1-nLFpkX7F0SwHNtPoaFdG3xyt93g=" - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "component-emitter": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "fn.name": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz", + "integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==", "dev": true }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", "dev": true }, - "convert-source-map": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", - "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", + "for-own": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", + "integrity": "sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=", "dev": true, "requires": { - "safe-buffer": "~5.1.1" + "for-in": "^1.0.1" } }, - "copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", "dev": true }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } }, - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", "dev": true, "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" + "map-cache": "^0.2.2" } }, - "cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "fs-exists-sync": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz", + "integrity": "sha1-mC1ok6+RjnLQjeyehnP/K1qNat0=", "dev": true }, - "cssstyle": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-1.4.0.tgz", - "integrity": "sha512-GBrLZYZ4X4x6/QEoBnIrqb8B/f5l4+8me2dkom/j1Gtbxy0kBv6OGzKuAsGM75bkGwGAFkt56Iwg28S3XTZgSA==", + "fs-minipass": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.7.tgz", + "integrity": "sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==", "dev": true, "requires": { - "cssom": "0.3.x" + "minipass": "^2.6.0" } }, - "dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "fsevents": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", + "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } + "optional": true }, - "data-urls": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-1.1.0.tgz", - "integrity": "sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ==", + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "dev": true + }, + "gauge": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "dev": true, "requires": { - "abab": "^2.0.0", - "whatwg-mimetype": "^2.2.0", - "whatwg-url": "^7.0.0" + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" }, "dependencies": { - "whatwg-url": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", - "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" + "ansi-regex": "^2.0.0" } } } }, - "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "dev": true, + "gaxios": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-3.2.0.tgz", + "integrity": "sha512-+6WPeVzPvOshftpxJwRi2Ozez80tn/hdtOUag7+gajDHRJvAblKxTFSSMPtr2hmnLy7p0mvYz0rMXLBl8pSO7Q==", "requires": { - "ms": "^2.1.1" + "abort-controller": "^3.0.0", + "extend": "^3.0.2", + "https-proxy-agent": "^5.0.0", + "is-stream": "^2.0.0", + "node-fetch": "^2.3.0" } }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" - }, - "decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", - "dev": true + "gcp-metadata": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-4.2.0.tgz", + "integrity": "sha512-vQZD57cQkqIA6YPGXM/zc+PIZfNRFdukWGsGZ5+LcJzesi5xp6Gn7a02wRJi4eXPyArNMIYpPET4QMxGqtlk6Q==", + "requires": { + "gaxios": "^3.0.0", + "json-bigint": "^1.0.0" + } }, - "deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "gensync": { + "version": "1.0.0-beta.1", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz", + "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==", "dev": true }, - "define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "dev": true, - "requires": { - "object-keys": "^1.0.12" - } + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" }, - "define-property": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "get-object": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/get-object/-/get-object-0.2.0.tgz", + "integrity": "sha1-2S/31RkMZFMM2gVD2sY6PUf+jAw=", "dev": true, "requires": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" + "is-number": "^2.0.2", + "isobject": "^0.2.0" }, "dependencies": { - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", "dev": true, "requires": { - "kind-of": "^6.0.0" + "kind-of": "^3.0.2" } }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } + "isobject": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-0.2.0.tgz", + "integrity": "sha1-o0MhkvObkQtfAsyYlIeDbscKqF4=", + "dev": true }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "is-buffer": "^1.1.5" } } } }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true + "get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "dev": true + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", + "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "globals": { + "version": "12.4.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", + "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", + "dev": true, + "requires": { + "type-fest": "^0.8.1" + } + }, + "google-auth-library": { + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-6.0.6.tgz", + "integrity": "sha512-fWYdRdg55HSJoRq9k568jJA1lrhg9i2xgfhVIMJbskUmbDpJGHsbv9l41DGhCDXM21F9Kn4kUwdysgxSYBYJUw==", + "requires": { + "arrify": "^2.0.0", + "base64-js": "^1.3.0", + "ecdsa-sig-formatter": "^1.0.11", + "fast-text-encoding": "^1.0.0", + "gaxios": "^3.0.0", + "gcp-metadata": "^4.1.0", + "gtoken": "^5.0.0", + "jws": "^4.0.0", + "lru-cache": "^6.0.0" + } }, - "detect-newline": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", - "integrity": "sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=", - "dev": true + "google-p12-pem": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-3.0.3.tgz", + "integrity": "sha512-wS0ek4ZtFx/ACKYF3JhyGe5kzH7pgiQ7J5otlumqR9psmWMYc+U9cErKlCYVYHoUaidXHdZ2xbo34kB+S+24hA==", + "requires": { + "node-forge": "^0.10.0" + } }, - "diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==" + "google-protobuf": { + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.13.0.tgz", + "integrity": "sha512-ZIf3qfLFayVrPvAjeKKxO5FRF1/NwRxt6Dko+fWEMuHwHbZx8/fcaAao9b0wCM6kr8qeg2te8XTpyuvKuD9aKw==" }, - "diff-sequences": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-24.9.0.tgz", - "integrity": "sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew==", - "dev": true + "graceful-fs": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", + "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==" }, - "doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "growly": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", + "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", + "dev": true, + "optional": true + }, + "grpc-tools": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/grpc-tools/-/grpc-tools-1.9.1.tgz", + "integrity": "sha512-t2JFMPLjxcgwVSJwFEauFaoEiO56kijxSwehQDgZNR/hrStJCH0pHGsjqJNuCOvmI9Z31pYOfgj4zeInTQWh5A==", "dev": true, "requires": { - "esutils": "^2.0.2" + "node-pre-gyp": "^0.15.0" } }, - "domexception": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-1.0.1.tgz", - "integrity": "sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug==", + "grpc_tools_node_protoc_ts": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/grpc_tools_node_protoc_ts/-/grpc_tools_node_protoc_ts-4.1.5.tgz", + "integrity": "sha512-/TgYNCpaw9MtY5L4KFlobjdlC13G++llmaIjEAxKRzNrpS4ZHdX/ENujiJgqjBLqSEujRA/YEV/x9T/v4ltcMQ==", "dev": true, "requires": { - "webidl-conversions": "^4.0.2" + "google-protobuf": "3.12.4", + "handlebars": "4.7.4", + "handlebars-helpers": "0.10.0" + }, + "dependencies": { + "google-protobuf": { + "version": "3.12.4", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.12.4.tgz", + "integrity": "sha512-ItTn8YepDQMHEMHloUPH+FDaTPiHTnbsMvP50aXfbI65IK3AA5+wXlHSygJH8xz+h1g4gu7V+CK5X1/SaGITsA==", + "dev": true + } } }, - "ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "dev": true, + "gtoken": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-5.0.3.tgz", + "integrity": "sha512-Nyd1wZCMRc2dj/mAD0LlfQLcAO06uKdpKJXvK85SGrF5+5+Bpfil9u/2aw35ltvEHjvl0h5FMKN5knEU+9JrOg==", "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" + "gaxios": "^3.0.0", + "google-p12-pem": "^3.0.0", + "jws": "^4.0.0", + "mime": "^2.2.0" } }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true + "gulp-header": { + "version": "1.8.12", + "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", + "integrity": "sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==", + "dev": true, + "requires": { + "concat-with-sourcemaps": "*", + "lodash.template": "^4.4.0", + "through2": "^2.0.0" + } }, - "end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "handlebars": { + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.4.tgz", + "integrity": "sha512-Is8+SzHv8K9STNadlBVpVhxXrSXxVgTyIvhdg2Qjak1SfSZ7iEozLHdwiX1jJ9lLFkcFJxqGK5s/cI7ZX+qGkQ==", "dev": true, "requires": { - "once": "^1.4.0" + "neo-async": "^2.6.0", + "source-map": "^0.6.1", + "uglify-js": "^3.1.4", + "yargs": "^15.3.1" } }, - "enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "handlebars-helper-create-frame": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/handlebars-helper-create-frame/-/handlebars-helper-create-frame-0.1.0.tgz", + "integrity": "sha1-iqUdEK62QI/MZgXUDXc1YohIegM=", "dev": true, "requires": { - "ansi-colors": "^4.1.1" + "create-frame": "^1.0.0", + "isobject": "^3.0.0" } }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "handlebars-helpers": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/handlebars-helpers/-/handlebars-helpers-0.10.0.tgz", + "integrity": "sha512-QiyhQz58u/DbuV41VnfpE0nhy6YCH4vB514ajysV8SoKmP+DxU+pR+fahVyNECHj+jiwEN2VrvxD/34/yHaLUg==", "dev": true, "requires": { - "is-arrayish": "^0.2.1" + "arr-flatten": "^1.1.0", + "array-sort": "^0.1.4", + "create-frame": "^1.0.0", + "define-property": "^1.0.0", + "falsey": "^0.3.2", + "for-in": "^1.0.2", + "for-own": "^1.0.0", + "get-object": "^0.2.0", + "get-value": "^2.0.6", + "handlebars": "^4.0.11", + "handlebars-helper-create-frame": "^0.1.0", + "handlebars-utils": "^1.0.6", + "has-value": "^1.0.0", + "helper-date": "^1.0.1", + "helper-markdown": "^1.0.0", + "helper-md": "^0.2.2", + "html-tag": "^2.0.0", + "is-even": "^1.0.0", + "is-glob": "^4.0.0", + "is-number": "^4.0.0", + "kind-of": "^6.0.0", + "lazy-cache": "^2.0.2", + "logging-helpers": "^1.0.0", + "micromatch": "^3.1.4", + "relative": "^3.0.2", + "striptags": "^3.1.0", + "to-gfm-code-block": "^0.1.1", + "year": "^0.2.1" } }, - "es-abstract": { - "version": "1.17.4", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.4.tgz", - "integrity": "sha512-Ae3um/gb8F0mui/jPL+QiqmglkUsaQf7FwBEHYIFkztkneosu9imhqHpBzQ3h1vit8t5iQ74t6PEVvphBZiuiQ==", + "handlebars-utils": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/handlebars-utils/-/handlebars-utils-1.0.6.tgz", + "integrity": "sha512-d5mmoQXdeEqSKMtQQZ9WkiUcO1E3tPbWxluCK9hVgIDPzQa9WsKo3Lbe/sGflTe7TomHEeZaOgwIkyIr1kfzkw==", "dev": true, "requires": { - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "is-callable": "^1.1.5", - "is-regex": "^1.0.5", - "object-inspect": "^1.7.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.0", - "string.prototype.trimleft": "^2.1.1", - "string.prototype.trimright": "^2.1.1" + "kind-of": "^6.0.0", + "typeof-article": "^0.1.1" } }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true + }, + "har-validator": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", "dev": true, "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" + "ajv": "^6.12.3", + "har-schema": "^2.0.0" } }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true }, - "escodegen": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.1.tgz", - "integrity": "sha512-Bmt7NcRySdIfNPfU2ZoXDrrXsG9ZjvDxcAlMfDUgRBjLOWTuIACXPBFJH7Z+cLb40JeQco5toikyc9t9P8E9SQ==", + "has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", + "dev": true + }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", "dev": true, "requires": { - "esprima": "^4.0.1", - "estraverse": "^4.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" } }, - "eslint": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.6.0.tgz", - "integrity": "sha512-QlAManNtqr7sozWm5TF4wIH9gmUm2hE3vNRUvyoYAa4y1l5/jxD/PQStEjBMQtCqZmSep8UxrcecI60hOpe61w==", + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", "dev": true, "requires": { - "@babel/code-frame": "^7.0.0", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "enquirer": "^2.3.5", - "eslint-scope": "^5.1.0", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^1.3.0", - "espree": "^7.2.0", - "esquery": "^1.2.0", - "esutils": "^2.0.2", - "file-entry-cache": "^5.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.0.0", - "globals": "^12.1.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash": "^4.17.19", - "minimatch": "^3.0.4", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^5.2.3", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" + "is-number": "^3.0.0", + "kind-of": "^4.0.0" }, "dependencies": { - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "globals": { - "version": "12.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", - "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", - "dev": true, - "requires": { - "type-fest": "^0.8.1" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "lodash": { - "version": "4.17.19", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", - "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==", - "dev": true - }, - "optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "dev": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - } - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "semver": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", - "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", - "dev": true - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { + "is-number": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", "dev": true, "requires": { - "ansi-regex": "^5.0.0" - } - }, - "supports-color": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", - "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1" + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } } }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", "dev": true, "requires": { - "isexe": "^2.0.0" + "is-buffer": "^1.1.5" } } } }, - "eslint-scope": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.0.tgz", - "integrity": "sha512-iiGRvtxWqgtx5m8EyQUJihBloE4EnYeGE/bz1wSPwJE6tZuJUtHlhqDM4Xj2ukE8Dyy1+HCZ4hE0fzIVMzb58w==", + "helper-date": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/helper-date/-/helper-date-1.0.1.tgz", + "integrity": "sha512-wU3VOwwTJvGr/w5rZr3cprPHO+hIhlblTJHD6aFBrKLuNbf4lAmkawd2iK3c6NbJEvY7HAmDpqjOFSI5/+Ey2w==", "dev": true, "requires": { - "esrecurse": "^4.1.0", - "estraverse": "^4.1.1" + "date.js": "^0.3.1", + "handlebars-utils": "^1.0.4", + "moment": "^2.18.1" } }, - "eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "helper-markdown": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/helper-markdown/-/helper-markdown-1.0.0.tgz", + "integrity": "sha512-AnDqMS4ejkQK0MXze7pA9TM3pu01ZY+XXsES6gEE0RmCGk5/NIfvTn0NmItfyDOjRAzyo9z6X7YHbHX4PzIvOA==", "dev": true, "requires": { - "eslint-visitor-keys": "^1.1.0" + "handlebars-utils": "^1.0.2", + "highlight.js": "^9.12.0", + "remarkable": "^1.7.1" } }, - "eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "helper-md": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/helper-md/-/helper-md-0.2.2.tgz", + "integrity": "sha1-wfWdflW7riM2L9ig6XFgeuxp1B8=", + "dev": true, + "requires": { + "ent": "^2.2.0", + "extend-shallow": "^2.0.1", + "fs-exists-sync": "^0.1.0", + "remarkable": "^1.6.2" + } + }, + "highlight.js": { + "version": "9.18.3", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.18.3.tgz", + "integrity": "sha512-zBZAmhSupHIl5sITeMqIJnYCDfAEc3Gdkqj65wC1lpI468MMQeeQkhcIAvk+RylAkxrCcI9xy9piHiXeQ1BdzQ==", "dev": true }, - "espree": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.2.0.tgz", - "integrity": "sha512-H+cQ3+3JYRMEIOl87e7QdHX70ocly5iW4+dttuR8iYSPr/hXKFb+7dBsZ7+u1adC4VrnPlTkv0+OwuPnDop19g==", + "hosted-git-info": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz", + "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==", + "dev": true + }, + "html-encoding-sniffer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", "dev": true, "requires": { - "acorn": "^7.3.1", - "acorn-jsx": "^5.2.0", - "eslint-visitor-keys": "^1.3.0" - }, - "dependencies": { - "acorn": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.0.tgz", - "integrity": "sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==", - "dev": true - } + "whatwg-encoding": "^1.0.5" } }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, - "esquery": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.3.1.tgz", - "integrity": "sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ==", + "html-tag": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/html-tag/-/html-tag-2.0.0.tgz", + "integrity": "sha512-XxzooSo6oBoxBEUazgjdXj7VwTn/iSTSZzTYKzYY6I916tkaYzypHxy+pbVU1h+0UQ9JlVf5XkNQyxOAiiQO1g==", "dev": true, "requires": { - "estraverse": "^5.1.0" - }, - "dependencies": { - "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true - } + "is-self-closing": "^1.0.1", + "kind-of": "^6.0.0" } }, - "esrecurse": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", - "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", + "http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", "dev": true, "requires": { - "estraverse": "^4.1.0" + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" } }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "https-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", + "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", + "requires": { + "agent-base": "6", + "debug": "4" + } + }, + "human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", "dev": true }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", "dev": true }, - "exec-sh": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.4.tgz", - "integrity": "sha512-sEFIkc61v75sWeOe72qyrqg2Qg0OuLESziUDk/O/z2qgS15y2gWVFrI6f2Qn/qw/0/NCfCEsmNA4zOjkwEZT1A==", + "ignore-walk": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.3.tgz", + "integrity": "sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw==", + "dev": true, + "requires": { + "minimatch": "^3.0.4" + } + }, + "import-fresh": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", + "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", + "dev": true, + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + } + }, + "import-local": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz", + "integrity": "sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==", + "dev": true, + "requires": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", "dev": true }, - "execa": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "requires": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" + "once": "^1.3.0", + "wrappy": "1" } }, - "exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "info-symbol": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/info-symbol/-/info-symbol-0.1.0.tgz", + "integrity": "sha1-J4QdcoZ920JCzWEtecEGM4gcang=", "dev": true }, - "expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "ini": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "dev": true + }, + "ip-regex": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-2.1.0.tgz", + "integrity": "sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=", + "dev": true + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", "dev": true, "requires": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" + "kind-of": "^3.0.2" }, "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-extendable": "^0.1.0" + "is-buffer": "^1.1.5" } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true } } }, - "expect": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-24.9.0.tgz", - "integrity": "sha512-wvVAx8XIol3Z5m9zvZXiyZOQ+sRJqNTIm6sGjdWlaZIeupQGO3WbYI+15D/AmEwZywL6wtJkbAbJtzkOfBuR0Q==", + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", "dev": true, "requires": { - "@jest/types": "^24.9.0", - "ansi-styles": "^3.2.0", - "jest-get-type": "^24.9.0", - "jest-matcher-utils": "^24.9.0", - "jest-message-util": "^24.9.0", - "jest-regex-util": "^24.9.0" + "ci-info": "^2.0.0" } }, - "extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true - }, - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", "dev": true, "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" + "kind-of": "^3.0.2" }, "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-plain-object": "^2.0.4" + "is-buffer": "^1.1.5" } } } }, - "extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", "dev": true, "requires": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" }, "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true } } }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true + "is-docker": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.1.1.tgz", + "integrity": "sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw==", + "dev": true, + "optional": true }, - "fast-deep-equal": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", - "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==", - "dev": true + "is-even": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-even/-/is-even-1.0.0.tgz", + "integrity": "sha1-drUFX7rY0pSoa2qUkBXhyXtxfAY=", + "dev": true, + "requires": { + "is-odd": "^0.1.2" + } }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", "dev": true }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", "dev": true }, - "fb-watchman": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", - "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==", - "dev": true, - "requires": { - "bser": "2.1.1" - } + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" }, - "file-entry-cache": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", - "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", + "is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true + }, + "is-glob": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", + "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", "dev": true, "requires": { - "flat-cache": "^2.0.1" + "is-extglob": "^2.1.1" } }, - "file-uri-to-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", - "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", - "dev": true, - "optional": true - }, - "fill-range": { + "is-number": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true + }, + "is-odd": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/is-odd/-/is-odd-0.1.2.tgz", + "integrity": "sha1-vFc7XONx7yqtbm9JeZtyvvE5eKc=", "dev": true, "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" + "is-number": "^3.0.0" }, "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-extendable": "^0.1.0" + "is-buffer": "^1.1.5" } } } }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, "requires": { - "locate-path": "^3.0.0" + "isobject": "^3.0.1" } }, - "flat-cache": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", - "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", + "is-potential-custom-element-name": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.0.tgz", + "integrity": "sha1-DFLlS8yjkbssSUsh6GJtczbG45c=", + "dev": true + }, + "is-self-closing": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-self-closing/-/is-self-closing-1.0.1.tgz", + "integrity": "sha512-E+60FomW7Blv5GXTlYee2KDrnG6srxF7Xt1SjrhWUGUEsTFIqY/nq2y3DaftCsgUMdh89V07IVfhY9KIJhLezg==", "dev": true, "requires": { - "flatted": "^2.0.0", - "rimraf": "2.6.3", - "write": "1.0.3" - }, - "dependencies": { - "rimraf": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - } + "self-closing-tags": "^1.0.1" } }, - "flatted": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz", - "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==", + "is-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", + "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==" + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", "dev": true }, - "for-in": { + "is-windows": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", "dev": true }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "optional": true, + "requires": { + "is-docker": "^2.0.0" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true + }, + "istanbul-lib-coverage": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz", + "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==", "dev": true }, - "form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "istanbul-lib-instrument": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", + "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", + "dev": true, + "requires": { + "@babel/core": "^7.7.5", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.0.0", + "semver": "^6.3.0" + } + }, + "istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "istanbul-lib-source-maps": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz", + "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==", "dev": true, "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" } }, - "fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "istanbul-reports": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz", + "integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==", "dev": true, "requires": { - "map-cache": "^0.2.2" + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" } }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "fsevents": { - "version": "1.2.11", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.11.tgz", - "integrity": "sha512-+ux3lx6peh0BpvY0JebGyZoiR4D+oYzdPZMKJwkZ+sFkNJzpL7tXc/wehS49gUAxg3tmMHPHZkA8JU2rhhgDHw==", + "jest": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/jest/-/jest-26.4.2.tgz", + "integrity": "sha512-LLCjPrUh98Ik8CzW8LLVnSCfLaiY+wbK53U7VxnFSX7Q+kWC4noVeDvGWIFw0Amfq1lq2VfGm7YHWSLBV62MJw==", "dev": true, - "optional": true, "requires": { - "bindings": "^1.5.0", - "nan": "^2.12.1", - "node-pre-gyp": "*" + "@jest/core": "^26.4.2", + "import-local": "^3.0.2", + "jest-cli": "^26.4.2" }, "dependencies": { - "abbrev": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "ansi-regex": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "aproba": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "optional": true - }, - "are-we-there-yet": { - "version": "1.1.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "balanced-match": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "chownr": { - "version": "1.1.3", - "bundled": true, - "dev": true, - "optional": true - }, - "code-point-at": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "optional": true - }, - "concat-map": { - "version": "0.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "console-control-strings": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "optional": true - }, - "core-util-is": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "debug": { - "version": "3.2.6", - "bundled": true, + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", "dev": true, - "optional": true, "requires": { - "ms": "^2.1.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "deep-extend": { - "version": "0.6.0", - "bundled": true, - "dev": true, - "optional": true - }, - "delegates": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "detect-libc": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "optional": true - }, - "fs-minipass": { - "version": "1.2.7", - "bundled": true, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", "dev": true, - "optional": true, "requires": { - "minipass": "^2.6.0" + "@types/istanbul-lib-report": "*" } }, - "fs.realpath": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "gauge": { - "version": "2.7.4", - "bundled": true, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", "dev": true, - "optional": true, "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" + "@types/yargs-parser": "*" } }, - "glob": { - "version": "7.1.6", - "bundled": true, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", "dev": true, - "optional": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, - "has-unicode": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "iconv-lite": { - "version": "0.4.24", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true }, - "ignore-walk": { - "version": "3.0.3", - "bundled": true, + "jest-cli": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-26.4.2.tgz", + "integrity": "sha512-zb+lGd/SfrPvoRSC/0LWdaWCnscXc1mGYW//NP4/tmBvRPT3VntZ2jtKUONsRi59zc5JqmsSajA9ewJKFYp8Cw==", "dev": true, - "optional": true, "requires": { - "minimatch": "^3.0.4" + "@jest/core": "^26.4.2", + "@jest/test-result": "^26.3.0", + "@jest/types": "^26.3.0", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "import-local": "^3.0.2", + "is-ci": "^2.0.0", + "jest-config": "^26.4.2", + "jest-util": "^26.3.0", + "jest-validate": "^26.4.2", + "prompts": "^2.0.1", + "yargs": "^15.3.1" } }, - "inflight": { - "version": "1.0.6", - "bundled": true, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "optional": true, "requires": { - "once": "^1.3.0", - "wrappy": "1" + "has-flag": "^4.0.0" } - }, - "inherits": { - "version": "2.0.4", - "bundled": true, - "dev": true, - "optional": true - }, - "ini": { - "version": "1.3.5", - "bundled": true, - "dev": true, - "optional": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "bundled": true, + } + } + }, + "jest-changed-files": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.3.0.tgz", + "integrity": "sha512-1C4R4nijgPltX6fugKxM4oQ18zimS7LqQ+zTTY8lMCMFPrxqBFb7KJH0Z2fRQJvw2Slbaipsqq7s1mgX5Iot+g==", + "dev": true, + "requires": { + "@jest/types": "^26.3.0", + "execa": "^4.0.0", + "throat": "^5.0.0" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", "dev": true, - "optional": true, "requires": { - "number-is-nan": "^1.0.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "isarray": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", "dev": true, - "optional": true, "requires": { - "brace-expansion": "^1.1.7" + "@types/istanbul-lib-report": "*" } }, - "minimist": { - "version": "0.0.8", - "bundled": true, - "dev": true, - "optional": true - }, - "minipass": { - "version": "2.9.0", - "bundled": true, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", "dev": true, - "optional": true, "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" + "@types/yargs-parser": "*" } }, - "minizlib": { - "version": "1.3.3", - "bundled": true, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", "dev": true, - "optional": true, "requires": { - "minipass": "^2.9.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, - "mkdirp": { - "version": "0.5.1", - "bundled": true, + "execa": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.0.3.tgz", + "integrity": "sha512-WFDXGHckXPWZX19t1kCsXzOpqX9LWYNqn4C+HqZlk/V0imTkzJZqf87ZBhvpHaftERYknpk0fjSylnXVlVgI0A==", "dev": true, - "optional": true, "requires": { - "minimist": "0.0.8" + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" } }, - "ms": { - "version": "2.1.2", - "bundled": true, - "dev": true, - "optional": true - }, - "needle": { - "version": "2.4.0", - "bundled": true, + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", "dev": true, - "optional": true, "requires": { - "debug": "^3.2.6", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" + "pump": "^3.0.0" } }, - "node-pre-gyp": { - "version": "0.14.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.1", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.2.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4.4.2" - } + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true }, - "nopt": { + "npm-run-path": { "version": "4.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "abbrev": "1", - "osenv": "^0.1.4" - } - }, - "npm-bundled": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "npm-normalize-package-bin": "^1.0.1" - } - }, - "npm-normalize-package-bin": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "npm-packlist": { - "version": "1.4.7", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" - } - }, - "npmlog": { - "version": "4.1.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "object-assign": { - "version": "4.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "once": { - "version": "1.4.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "wrappy": "1" - } - }, - "os-homedir": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "os-tmpdir": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "osenv": { - "version": "0.1.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "process-nextick-args": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "rc": { - "version": "1.2.8", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "readable-stream": { - "version": "2.3.6", - "bundled": true, + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, - "optional": true, "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "path-key": "^3.0.0" } }, - "rimraf": { - "version": "2.7.1", - "bundled": true, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "optional": true, "requires": { - "glob": "^7.1.3" + "has-flag": "^4.0.0" } - }, - "safe-buffer": { - "version": "5.1.2", - "bundled": true, - "dev": true, - "optional": true - }, - "safer-buffer": { - "version": "2.1.2", - "bundled": true, - "dev": true, - "optional": true - }, - "sax": { - "version": "1.2.4", - "bundled": true, - "dev": true, - "optional": true - }, - "semver": { - "version": "5.7.1", - "bundled": true, + } + } + }, + "jest-config": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.4.2.tgz", + "integrity": "sha512-QBf7YGLuToiM8PmTnJEdRxyYy3mHWLh24LJZKVdXZ2PNdizSe1B/E8bVm+HYcjbEzGuVXDv/di+EzdO/6Gq80A==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^26.4.2", + "@jest/types": "^26.3.0", + "babel-jest": "^26.3.0", + "chalk": "^4.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.4", + "jest-environment-jsdom": "^26.3.0", + "jest-environment-node": "^26.3.0", + "jest-get-type": "^26.3.0", + "jest-jasmine2": "^26.4.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.4.0", + "jest-util": "^26.3.0", + "jest-validate": "^26.4.2", + "micromatch": "^4.0.2", + "pretty-format": "^26.4.2" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", "dev": true, - "optional": true + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } }, - "set-blocking": { - "version": "2.0.0", - "bundled": true, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", "dev": true, - "optional": true + "requires": { + "@types/istanbul-lib-report": "*" + } }, - "signal-exit": { - "version": "3.0.2", - "bundled": true, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", "dev": true, - "optional": true + "requires": { + "@types/yargs-parser": "*" + } }, - "string-width": { - "version": "1.0.2", - "bundled": true, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, - "optional": true, "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "fill-range": "^7.0.1" } }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", "dev": true, - "optional": true, "requires": { - "safe-buffer": "~5.1.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dev": true, - "optional": true, "requires": { - "ansi-regex": "^2.0.0" + "to-regex-range": "^5.0.1" } }, - "strip-json-comments": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true }, - "tar": { - "version": "4.4.13", - "bundled": true, + "jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", + "dev": true + }, + "micromatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", "dev": true, - "optional": true, "requires": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.8.6", - "minizlib": "^1.2.1", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.3" + "braces": "^3.0.1", + "picomatch": "^2.0.5" } }, - "util-deprecate": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "wide-align": { - "version": "1.1.3", - "bundled": true, + "pretty-format": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.4.2.tgz", + "integrity": "sha512-zK6Gd8zDsEiVydOCGLkoBoZuqv8VTiHyAbKznXe/gaph/DAeZOmit9yMfgIz5adIgAMMs5XfoYSwAX3jcCO1tA==", "dev": true, - "optional": true, "requires": { - "string-width": "^1.0.2 || 2" + "@jest/types": "^26.3.0", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" } }, - "wrappy": { - "version": "1.0.2", - "bundled": true, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "optional": true + "requires": { + "has-flag": "^4.0.0" + } }, - "yallist": { - "version": "3.1.1", - "bundled": true, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "optional": true + "requires": { + "is-number": "^7.0.0" + } } } }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", - "dev": true - }, - "gensync": { - "version": "1.0.0-beta.1", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz", - "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==", - "dev": true - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", - "dev": true - }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "jest-diff": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-24.9.0.tgz", + "integrity": "sha512-qMfrTs8AdJE2iqrTp0hzh7kTd2PQWrsFyj9tORoKmu32xjPjeE4NyjVRDz8ybYwqS2ik8N4hsIpiVTyFeo2lBQ==", "dev": true, "requires": { - "assert-plus": "^1.0.0" + "chalk": "^2.0.1", + "diff-sequences": "^24.9.0", + "jest-get-type": "^24.9.0", + "pretty-format": "^24.9.0" } }, - "glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "jest-docblock": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz", + "integrity": "sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w==", "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "detect-newline": "^3.0.0" } }, - "glob-parent": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", - "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", + "jest-each": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-26.4.2.tgz", + "integrity": "sha512-p15rt8r8cUcRY0Mvo1fpkOGYm7iI8S6ySxgIdfh3oOIv+gHwrHTy5VWCGOecWUhDsit4Nz8avJWdT07WLpbwDA==", "dev": true, "requires": { - "is-glob": "^4.0.1" - } - }, - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true - }, - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==" - }, - "growly": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", - "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", - "dev": true - }, - "grpc": { - "version": "1.24.2", - "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.24.2.tgz", - "integrity": "sha512-EG3WH6AWMVvAiV15d+lr+K77HJ/KV/3FvMpjKjulXHbTwgDZkhkcWbwhxFAoTdxTkQvy0WFcO3Nog50QBbHZWw==", - "requires": { - "@types/bytebuffer": "^5.0.40", - "lodash.camelcase": "^4.3.0", - "lodash.clone": "^4.5.0", - "nan": "^2.13.2", - "node-pre-gyp": "^0.14.0", - "protobufjs": "^5.0.3" + "@jest/types": "^26.3.0", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-util": "^26.3.0", + "pretty-format": "^26.4.2" }, "dependencies": { - "abbrev": { - "version": "1.1.1", - "bundled": true - }, - "ansi-regex": { - "version": "2.1.1", - "bundled": true - }, - "aproba": { - "version": "1.2.0", - "bundled": true - }, - "are-we-there-yet": { - "version": "1.1.5", - "bundled": true, + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "balanced-match": { - "version": "1.0.0", - "bundled": true - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "@types/istanbul-lib-report": "*" } }, - "chownr": { - "version": "1.1.3", - "bundled": true - }, - "code-point-at": { - "version": "1.1.0", - "bundled": true - }, - "concat-map": { - "version": "0.0.1", - "bundled": true - }, - "console-control-strings": { - "version": "1.1.0", - "bundled": true - }, - "core-util-is": { - "version": "1.0.2", - "bundled": true - }, - "debug": { - "version": "3.2.6", - "bundled": true, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, "requires": { - "ms": "^2.1.1" + "@types/yargs-parser": "*" } }, - "deep-extend": { - "version": "0.6.0", - "bundled": true + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } }, - "delegates": { - "version": "1.0.0", - "bundled": true + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true }, - "detect-libc": { - "version": "1.0.3", - "bundled": true + "jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", + "dev": true }, - "fs-minipass": { - "version": "1.2.7", - "bundled": true, + "pretty-format": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.4.2.tgz", + "integrity": "sha512-zK6Gd8zDsEiVydOCGLkoBoZuqv8VTiHyAbKznXe/gaph/DAeZOmit9yMfgIz5adIgAMMs5XfoYSwAX3jcCO1tA==", + "dev": true, "requires": { - "minipass": "^2.6.0" + "@jest/types": "^26.3.0", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" } }, - "fs.realpath": { - "version": "1.0.0", - "bundled": true - }, - "gauge": { - "version": "2.7.4", - "bundled": true, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" + "has-flag": "^4.0.0" } - }, - "glob": { - "version": "7.1.4", - "bundled": true, + } + } + }, + "jest-environment-jsdom": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.3.0.tgz", + "integrity": "sha512-zra8He2btIMJkAzvLaiZ9QwEPGEetbxqmjEBQwhH3CA+Hhhu0jSiEJxnJMbX28TGUvPLxBt/zyaTLrOPF4yMJA==", + "dev": true, + "requires": { + "@jest/environment": "^26.3.0", + "@jest/fake-timers": "^26.3.0", + "@jest/types": "^26.3.0", + "@types/node": "*", + "jest-mock": "^26.3.0", + "jest-util": "^26.3.0", + "jsdom": "^16.2.2" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "has-unicode": { - "version": "2.0.1", - "bundled": true - }, - "iconv-lite": { - "version": "0.4.24", - "bundled": true, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, "requires": { - "safer-buffer": ">= 2.1.2 < 3" + "@types/istanbul-lib-report": "*" } }, - "ignore-walk": { - "version": "3.0.3", - "bundled": true, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, "requires": { - "minimatch": "^3.0.4" + "@types/yargs-parser": "*" } }, - "inflight": { - "version": "1.0.6", - "bundled": true, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, "requires": { - "once": "^1.3.0", - "wrappy": "1" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, - "inherits": { - "version": "2.0.4", - "bundled": true - }, - "ini": { - "version": "1.3.5", - "bundled": true + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "bundled": true, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "requires": { - "number-is-nan": "^1.0.0" + "has-flag": "^4.0.0" } - }, - "isarray": { - "version": "1.0.0", - "bundled": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, + } + } + }, + "jest-environment-node": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.3.0.tgz", + "integrity": "sha512-c9BvYoo+FGcMj5FunbBgtBnbR5qk3uky8PKyRVpSfe2/8+LrNQMiXX53z6q2kY+j15SkjQCOSL/6LHnCPLVHNw==", + "dev": true, + "requires": { + "@jest/environment": "^26.3.0", + "@jest/fake-timers": "^26.3.0", + "@jest/types": "^26.3.0", + "@types/node": "*", + "jest-mock": "^26.3.0", + "jest-util": "^26.3.0" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, "requires": { - "brace-expansion": "^1.1.7" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "minimist": { - "version": "1.2.0", - "bundled": true - }, - "minipass": { - "version": "2.9.0", - "bundled": true, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" + "@types/istanbul-lib-report": "*" } }, - "minizlib": { - "version": "1.3.3", - "bundled": true, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, "requires": { - "minipass": "^2.9.0" + "@types/yargs-parser": "*" } }, - "mkdirp": { - "version": "0.5.1", - "bundled": true, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, "requires": { - "minimist": "0.0.8" - }, - "dependencies": { - "minimist": { - "version": "0.0.8", - "bundled": true - } + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, - "ms": { - "version": "2.1.2", - "bundled": true + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true }, - "needle": { - "version": "2.4.0", - "bundled": true, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "requires": { - "debug": "^3.2.6", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" + "has-flag": "^4.0.0" } - }, - "node-pre-gyp": { - "version": "0.14.0", - "bundled": true, + } + } + }, + "jest-get-type": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-24.9.0.tgz", + "integrity": "sha512-lUseMzAley4LhIcpSP9Jf+fTrQ4a1yHQwLNeeVa2cEmbCGeoZAtYPOIv8JaxLD/sUpKxetKGP+gsHl8f8TSj8Q==", + "dev": true + }, + "jest-haste-map": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.3.0.tgz", + "integrity": "sha512-DHWBpTJgJhLLGwE5Z1ZaqLTYqeODQIZpby0zMBsCU9iRFHYyhklYqP4EiG73j5dkbaAdSZhgB938mL51Q5LeZA==", + "dev": true, + "requires": { + "@jest/types": "^26.3.0", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.1.2", + "graceful-fs": "^4.2.4", + "jest-regex-util": "^26.0.0", + "jest-serializer": "^26.3.0", + "jest-util": "^26.3.0", + "jest-worker": "^26.3.0", + "micromatch": "^4.0.2", + "sane": "^4.0.3", + "walker": "^1.0.7" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, "requires": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.1", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.2.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4.4.2" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "nopt": { - "version": "4.0.1", - "bundled": true, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, "requires": { - "abbrev": "1", - "osenv": "^0.1.4" + "@types/istanbul-lib-report": "*" } }, - "npm-bundled": { - "version": "1.0.6", - "bundled": true - }, - "npm-packlist": { - "version": "1.4.6", - "bundled": true, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" + "@types/yargs-parser": "*" } }, - "npmlog": { - "version": "4.1.2", - "bundled": true, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" + "fill-range": "^7.0.1" } }, - "number-is-nan": { - "version": "1.0.1", - "bundled": true - }, - "object-assign": { - "version": "4.1.1", - "bundled": true - }, - "once": { - "version": "1.4.0", - "bundled": true, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, "requires": { - "wrappy": "1" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, - "os-homedir": { - "version": "1.0.2", - "bundled": true - }, - "os-tmpdir": { - "version": "1.0.2", - "bundled": true - }, - "osenv": { - "version": "0.1.5", - "bundled": true, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" + "to-regex-range": "^5.0.1" } }, - "path-is-absolute": { - "version": "1.0.1", - "bundled": true - }, - "process-nextick-args": { - "version": "2.0.1", - "bundled": true + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true }, - "protobufjs": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-5.0.3.tgz", - "integrity": "sha512-55Kcx1MhPZX0zTbVosMQEO5R6/rikNXd9b6RQK4KSPcrSIIwoXTtebIczUrXlwaSrbz4x8XUVThGPob1n8I4QA==", - "requires": { - "ascli": "~1", - "bytebuffer": "~5", - "glob": "^7.0.5", - "yargs": "^3.10.0" - } + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true }, - "rc": { - "version": "1.2.8", - "bundled": true, + "micromatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", + "dev": true, "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" + "braces": "^3.0.1", + "picomatch": "^2.0.5" } }, - "readable-stream": { - "version": "2.3.6", - "bundled": true, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "has-flag": "^4.0.0" } }, - "rimraf": { - "version": "2.7.1", - "bundled": true, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, "requires": { - "glob": "^7.1.3" + "is-number": "^7.0.0" } - }, - "safe-buffer": { - "version": "5.1.2", - "bundled": true - }, - "safer-buffer": { - "version": "2.1.2", - "bundled": true - }, - "sax": { - "version": "1.2.4", - "bundled": true - }, - "semver": { - "version": "5.7.1", - "bundled": true - }, - "set-blocking": { - "version": "2.0.0", - "bundled": true - }, - "signal-exit": { - "version": "3.0.2", - "bundled": true - }, - "string-width": { - "version": "1.0.2", - "bundled": true, + } + } + }, + "jest-jasmine2": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.4.2.tgz", + "integrity": "sha512-z7H4EpCldHN1J8fNgsja58QftxBSL+JcwZmaXIvV9WKIM+x49F4GLHu/+BQh2kzRKHAgaN/E82od+8rTOBPyPA==", + "dev": true, + "requires": { + "@babel/traverse": "^7.1.0", + "@jest/environment": "^26.3.0", + "@jest/source-map": "^26.3.0", + "@jest/test-result": "^26.3.0", + "@jest/types": "^26.3.0", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^26.4.2", + "is-generator-fn": "^2.0.0", + "jest-each": "^26.4.2", + "jest-matcher-utils": "^26.4.2", + "jest-message-util": "^26.3.0", + "jest-runtime": "^26.4.2", + "jest-snapshot": "^26.4.2", + "jest-util": "^26.3.0", + "pretty-format": "^26.4.2", + "throat": "^5.0.0" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, "requires": { - "safe-buffer": "~5.1.0" + "@types/istanbul-lib-report": "*" } }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, "requires": { - "ansi-regex": "^2.0.0" + "@types/yargs-parser": "*" } }, - "strip-json-comments": { - "version": "2.0.1", - "bundled": true - }, - "tar": { - "version": "4.4.13", - "bundled": true, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, "requires": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.8.6", - "minizlib": "^1.2.1", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.3" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, - "util-deprecate": { - "version": "1.0.2", - "bundled": true + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true }, - "wide-align": { - "version": "1.1.3", - "bundled": true, + "pretty-format": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.4.2.tgz", + "integrity": "sha512-zK6Gd8zDsEiVydOCGLkoBoZuqv8VTiHyAbKznXe/gaph/DAeZOmit9yMfgIz5adIgAMMs5XfoYSwAX3jcCO1tA==", + "dev": true, "requires": { - "string-width": "^1.0.2 || 2" + "@jest/types": "^26.3.0", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" } }, - "wrappy": { - "version": "1.0.2", - "bundled": true - }, - "yallist": { - "version": "3.1.1", - "bundled": true - } - } - }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true - }, - "har-validator": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", - "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", - "dev": true, - "requires": { - "ajv": "^6.5.5", - "har-schema": "^2.0.0" - } - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "has-symbols": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", - "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", - "dev": true - }, - "has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", - "dev": true, - "requires": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - } - }, - "has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "dependencies": { - "kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { - "is-buffer": "^1.1.5" + "has-flag": "^4.0.0" } } } }, - "hosted-git-info": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.6.tgz", - "integrity": "sha512-Kp6rShEsCHhF5dD3EWKdkgVA8ix90oSUJ0VY4g9goxxa0+f4lx63muTftn0mlJ/+8IESGWyKnP//V2D7S4ZbIQ==", - "dev": true - }, - "html-encoding-sniffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz", - "integrity": "sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw==", - "dev": true, - "requires": { - "whatwg-encoding": "^1.0.1" - } - }, - "html-escaper": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.0.tgz", - "integrity": "sha512-a4u9BeERWGu/S8JiWEAQcdrg9v4QArtP9keViQjGMdff20fBdd8waotXaNmODqBe6uZ3Nafi7K/ho4gCQHV3Ig==", - "dev": true - }, - "http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "dev": true, - "requires": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - } - }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, - "https-proxy-agent": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz", - "integrity": "sha512-zoDhWrkR3of1l9QAL8/scJZyLu8j/gBkcwcaQOZh7Gyh/+uJQzGVETdgT30akuwkpL8HTRfssqI3BZuV18teDg==", - "dev": true, - "requires": { - "agent-base": "5", - "debug": "4" - }, - "dependencies": { - "agent-base": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-5.1.1.tgz", - "integrity": "sha512-TMeqbNl2fMW0nMjTEPOwe3J/PRFP4vqeoNuQMG0HlMrtm5QxKqdvAkZ1pRBQ/ulIyDD5Yq0nJ7YbdD8ey0TO3g==", - "dev": true - } - } - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true - }, - "ignore-walk": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.3.tgz", - "integrity": "sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw==", - "dev": true, - "requires": { - "minimatch": "^3.0.4" - } - }, - "import-fresh": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", - "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", + "jest-leak-detector": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.4.2.tgz", + "integrity": "sha512-akzGcxwxtE+9ZJZRW+M2o+nTNnmQZxrHJxX/HjgDaU5+PLmY1qnQPnMjgADPGCRPhB+Yawe1iij0REe+k/aHoA==", "dev": true, "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" + "jest-get-type": "^26.3.0", + "pretty-format": "^26.4.2" }, "dependencies": { - "resolve-from": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", "dev": true + }, + "pretty-format": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.4.2.tgz", + "integrity": "sha512-zK6Gd8zDsEiVydOCGLkoBoZuqv8VTiHyAbKznXe/gaph/DAeZOmit9yMfgIz5adIgAMMs5XfoYSwAX3jcCO1tA==", + "dev": true, + "requires": { + "@jest/types": "^26.3.0", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } } } }, - "import-local": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz", - "integrity": "sha512-b6s04m3O+s3CGSbqDIyP4R6aAwAeYlVq9+WUWep6iHa8ETRf9yei1U48C5MmfJmV9AiLYYBKPMq/W+/WRpQmCQ==", - "dev": true, - "requires": { - "pkg-dir": "^3.0.0", - "resolve-cwd": "^2.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, - "invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=" - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "jest-matcher-utils": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.4.2.tgz", + "integrity": "sha512-KcbNqWfWUG24R7tu9WcAOKKdiXiXCbMvQYT6iodZ9k1f7065k0keUOW6XpJMMvah+hTfqkhJhRXmA3r3zMAg0Q==", "dev": true, "requires": { - "kind-of": "^3.0.2" + "chalk": "^4.0.0", + "jest-diff": "^26.4.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.4.2" }, "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", "dev": true, "requires": { - "is-buffer": "^1.1.5" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "diff-sequences": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.3.0.tgz", + "integrity": "sha512-5j5vdRcw3CNctePNYN0Wy2e/JbWT6cAYnXv5OuqPhDpyCGc0uLu2TK0zOCJWNB9kOIfYMSpIulRaDgIi4HJ6Ig==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-diff": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.4.2.tgz", + "integrity": "sha512-6T1XQY8U28WH0Z5rGpQ+VqZSZz8EN8rZcBtfvXaOkbwxIEeRre6qnuZQlbY1AJ4MKDxQF8EkrCvK+hL/VkyYLQ==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^26.3.0", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.4.2" + } + }, + "jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", + "dev": true + }, + "pretty-format": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.4.2.tgz", + "integrity": "sha512-zK6Gd8zDsEiVydOCGLkoBoZuqv8VTiHyAbKznXe/gaph/DAeZOmit9yMfgIz5adIgAMMs5XfoYSwAX3jcCO1tA==", + "dev": true, + "requires": { + "@jest/types": "^26.3.0", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" } } } }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "is-callable": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", - "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==", - "dev": true - }, - "is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", - "dev": true, - "requires": { - "ci-info": "^2.0.0" - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "jest-message-util": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.3.0.tgz", + "integrity": "sha512-xIavRYqr4/otGOiLxLZGj3ieMmjcNE73Ui+LdSW/Y790j5acqCsAdDiLIbzHCZMpN07JOENRWX5DcU+OQ+TjTA==", "dev": true, "requires": { - "kind-of": "^3.0.2" + "@babel/code-frame": "^7.0.0", + "@jest/types": "^26.3.0", + "@types/stack-utils": "^1.0.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "micromatch": "^4.0.2", + "slash": "^3.0.0", + "stack-utils": "^2.0.2" }, "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", "dev": true, "requires": { - "is-buffer": "^1.1.5" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "micromatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.0.5" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" } } } }, - "is-date-object": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", - "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", - "dev": true - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "jest-mock": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-26.3.0.tgz", + "integrity": "sha512-PeaRrg8Dc6mnS35gOo/CbZovoDPKAeB1FICZiuagAgGvbWdNNyjQjkOaGUa/3N3JtpQ/Mh9P4A2D4Fv51NnP8Q==", "dev": true, "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" + "@jest/types": "^26.3.0", + "@types/node": "*" }, "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } } } }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "jest-mock-process": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/jest-mock-process/-/jest-mock-process-1.4.0.tgz", + "integrity": "sha512-3LM1TyEaRKRjh/x9rZPmuy28r7q8cgNkHYcrPWtxXT3ZzPPS+bKNs2ysb8BJPVB41X5yM1sMtatvE5z2XJ0S/w==", "dev": true }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "jest-pnp-resolver": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", + "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", "dev": true }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "jest-regex-util": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz", + "integrity": "sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==", "dev": true }, - "is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "jest-resolve": { + "version": "26.4.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.4.0.tgz", + "integrity": "sha512-bn/JoZTEXRSlEx3+SfgZcJAVuTMOksYq9xe9O6s4Ekg84aKBObEaVXKOEilULRqviSLAYJldnoWV9c07kwtiCg==", "dev": true, "requires": { - "kind-of": "^3.0.2" + "@jest/types": "^26.3.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^26.3.0", + "read-pkg-up": "^7.0.1", + "resolve": "^1.17.0", + "slash": "^3.0.0" }, "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", "dev": true, "requires": { - "is-buffer": "^1.1.5" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" } } } }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "is-regex": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", - "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true - }, - "is-symbol": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", - "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", + "jest-resolve-dependencies": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.4.2.tgz", + "integrity": "sha512-ADHaOwqEcVc71uTfySzSowA/RdxUpCxhxa2FNLiin9vWLB1uLPad3we+JSSROq5+SrL9iYPdZZF8bdKM7XABTQ==", "dev": true, "requires": { - "has-symbols": "^1.0.1" + "@jest/types": "^26.3.0", + "jest-regex-util": "^26.0.0", + "jest-snapshot": "^26.4.2" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true - }, - "is-wsl": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", - "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", - "dev": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", - "dev": true - }, - "istanbul-lib-coverage": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz", - "integrity": "sha512-8aXznuEPCJvGnMSRft4udDRDtb1V3pkQkMMI5LI+6HuQz5oQ4J2UFn1H82raA3qJtyOLkkwVqICBQkjnGtn5mA==", - "dev": true - }, - "istanbul-lib-instrument": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-3.3.0.tgz", - "integrity": "sha512-5nnIN4vo5xQZHdXno/YDXJ0G+I3dAm4XgzfSVTPLQpj/zAV2dV6Juy0yaf10/zrJOJeHoN3fraFe+XRq2bFVZA==", + "jest-runner": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-26.4.2.tgz", + "integrity": "sha512-FgjDHeVknDjw1gRAYaoUoShe1K3XUuFMkIaXbdhEys+1O4bEJS8Avmn4lBwoMfL8O5oFTdWYKcf3tEJyyYyk8g==", "dev": true, "requires": { - "@babel/generator": "^7.4.0", - "@babel/parser": "^7.4.3", - "@babel/template": "^7.4.0", - "@babel/traverse": "^7.4.3", - "@babel/types": "^7.4.0", - "istanbul-lib-coverage": "^2.0.5", - "semver": "^6.0.0" + "@jest/console": "^26.3.0", + "@jest/environment": "^26.3.0", + "@jest/test-result": "^26.3.0", + "@jest/types": "^26.3.0", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.7.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-config": "^26.4.2", + "jest-docblock": "^26.0.0", + "jest-haste-map": "^26.3.0", + "jest-leak-detector": "^26.4.2", + "jest-message-util": "^26.3.0", + "jest-resolve": "^26.4.0", + "jest-runtime": "^26.4.2", + "jest-util": "^26.3.0", + "jest-worker": "^26.3.0", + "source-map-support": "^0.5.6", + "throat": "^5.0.0" }, "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } } } }, - "istanbul-lib-report": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-2.0.8.tgz", - "integrity": "sha512-fHBeG573EIihhAblwgxrSenp0Dby6tJMFR/HvlerBsrCTD5bkUuoNtn3gVh29ZCS824cGGBPn7Sg7cNk+2xUsQ==", - "dev": true, - "requires": { - "istanbul-lib-coverage": "^2.0.5", - "make-dir": "^2.1.0", - "supports-color": "^6.1.0" + "jest-runtime": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.4.2.tgz", + "integrity": "sha512-4Pe7Uk5a80FnbHwSOk7ojNCJvz3Ks2CNQWT5Z7MJo4tX0jb3V/LThKvD9tKPNVNyeMH98J/nzGlcwc00R2dSHQ==", + "dev": true, + "requires": { + "@jest/console": "^26.3.0", + "@jest/environment": "^26.3.0", + "@jest/fake-timers": "^26.3.0", + "@jest/globals": "^26.4.2", + "@jest/source-map": "^26.3.0", + "@jest/test-result": "^26.3.0", + "@jest/transform": "^26.3.0", + "@jest/types": "^26.3.0", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.4", + "jest-config": "^26.4.2", + "jest-haste-map": "^26.3.0", + "jest-message-util": "^26.3.0", + "jest-mock": "^26.3.0", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.4.0", + "jest-snapshot": "^26.4.2", + "jest-util": "^26.3.0", + "jest-validate": "^26.4.2", + "slash": "^3.0.0", + "strip-bom": "^4.0.0", + "yargs": "^15.3.1" }, "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { - "has-flag": "^3.0.0" + "has-flag": "^4.0.0" } } } }, - "istanbul-lib-source-maps": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-3.0.6.tgz", - "integrity": "sha512-R47KzMtDJH6X4/YW9XTx+jrLnZnscW4VpNN+1PViSYTejLVPWv7oov+Duf8YQSPyVRUvueQqz1TcsC6mooZTXw==", - "dev": true, - "requires": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^2.0.5", - "make-dir": "^2.1.0", - "rimraf": "^2.6.3", - "source-map": "^0.6.1" - } - }, - "istanbul-reports": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-2.2.7.tgz", - "integrity": "sha512-uu1F/L1o5Y6LzPVSVZXNOoD/KXpJue9aeLRd0sM9uMXfZvzomB0WxVamWb5ue8kA2vVWEmW7EG+A5n3f1kqHKg==", + "jest-serializer": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.3.0.tgz", + "integrity": "sha512-IDRBQBLPlKa4flg77fqg0n/pH87tcRKwe8zxOVTWISxGpPHYkRZ1dXKyh04JOja7gppc60+soKVZ791mruVdow==", "dev": true, "requires": { - "html-escaper": "^2.0.0" + "@types/node": "*", + "graceful-fs": "^4.2.4" } }, - "jest": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest/-/jest-24.9.0.tgz", - "integrity": "sha512-YvkBL1Zm7d2B1+h5fHEOdyjCG+sGMz4f8D86/0HiqJ6MB4MnDc8FgP5vdWsGnemOQro7lnYo8UakZ3+5A0jxGw==", + "jest-snapshot": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.4.2.tgz", + "integrity": "sha512-N6Uub8FccKlf5SBFnL2Ri/xofbaA68Cc3MGjP/NuwgnsvWh+9hLIR/DhrxbSiKXMY9vUW5dI6EW1eHaDHqe9sg==", "dev": true, "requires": { - "import-local": "^2.0.0", - "jest-cli": "^24.9.0" + "@babel/types": "^7.0.0", + "@jest/types": "^26.3.0", + "@types/prettier": "^2.0.0", + "chalk": "^4.0.0", + "expect": "^26.4.2", + "graceful-fs": "^4.2.4", + "jest-diff": "^26.4.2", + "jest-get-type": "^26.3.0", + "jest-haste-map": "^26.3.0", + "jest-matcher-utils": "^26.4.2", + "jest-message-util": "^26.3.0", + "jest-resolve": "^26.4.0", + "natural-compare": "^1.4.0", + "pretty-format": "^26.4.2", + "semver": "^7.3.2" }, "dependencies": { - "cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", "dev": true, "requires": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } }, - "jest-cli": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-24.9.0.tgz", - "integrity": "sha512-+VLRKyitT3BWoMeSUIHRxV/2g8y9gw91Jh5z2UmXZzkZKpbC08CSehVxgHUwTpy+HwGcns/tqafQDJW7imYvGg==", + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", "dev": true, "requires": { - "@jest/core": "^24.9.0", - "@jest/test-result": "^24.9.0", - "@jest/types": "^24.9.0", - "chalk": "^2.0.1", - "exit": "^0.1.2", - "import-local": "^2.0.0", - "is-ci": "^2.0.0", - "jest-config": "^24.9.0", - "jest-util": "^24.9.0", - "jest-validate": "^24.9.0", - "prompts": "^2.0.1", - "realpath-native": "^1.1.0", - "yargs": "^13.3.0" + "@types/yargs-parser": "*" } }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", "dev": true, "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "diff-sequences": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.3.0.tgz", + "integrity": "sha512-5j5vdRcw3CNctePNYN0Wy2e/JbWT6cAYnXv5OuqPhDpyCGc0uLu2TK0zOCJWNB9kOIfYMSpIulRaDgIi4HJ6Ig==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-diff": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.4.2.tgz", + "integrity": "sha512-6T1XQY8U28WH0Z5rGpQ+VqZSZz8EN8rZcBtfvXaOkbwxIEeRre6qnuZQlbY1AJ4MKDxQF8EkrCvK+hL/VkyYLQ==", "dev": true, "requires": { - "ansi-regex": "^4.1.0" + "chalk": "^4.0.0", + "diff-sequences": "^26.3.0", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.4.2" } }, - "wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", + "jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", + "dev": true + }, + "pretty-format": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.4.2.tgz", + "integrity": "sha512-zK6Gd8zDsEiVydOCGLkoBoZuqv8VTiHyAbKznXe/gaph/DAeZOmit9yMfgIz5adIgAMMs5XfoYSwAX3jcCO1tA==", "dev": true, "requires": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" + "@jest/types": "^26.3.0", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" } }, - "y18n": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", + "semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", "dev": true }, - "yargs": { - "version": "13.3.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.0.tgz", - "integrity": "sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA==", + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.1" + "has-flag": "^4.0.0" } } } }, - "jest-changed-files": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-24.9.0.tgz", - "integrity": "sha512-6aTWpe2mHF0DhL28WjdkO8LyGjs3zItPET4bMSeXU6T3ub4FPMw+mcOcbdGXQOAfmLcxofD23/5Bl9Z4AkFwqg==", - "dev": true, - "requires": { - "@jest/types": "^24.9.0", - "execa": "^1.0.0", - "throat": "^4.0.0" - } - }, - "jest-config": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-24.9.0.tgz", - "integrity": "sha512-RATtQJtVYQrp7fvWg6f5y3pEFj9I+H8sWw4aKxnDZ96mob5i5SD6ZEGWgMLXQ4LE8UurrjbdlLWdUeo+28QpfQ==", - "dev": true, - "requires": { - "@babel/core": "^7.1.0", - "@jest/test-sequencer": "^24.9.0", - "@jest/types": "^24.9.0", - "babel-jest": "^24.9.0", - "chalk": "^2.0.1", - "glob": "^7.1.1", - "jest-environment-jsdom": "^24.9.0", - "jest-environment-node": "^24.9.0", - "jest-get-type": "^24.9.0", - "jest-jasmine2": "^24.9.0", - "jest-regex-util": "^24.3.0", - "jest-resolve": "^24.9.0", - "jest-util": "^24.9.0", - "jest-validate": "^24.9.0", - "micromatch": "^3.1.10", - "pretty-format": "^24.9.0", - "realpath-native": "^1.1.0" - } - }, - "jest-diff": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-24.9.0.tgz", - "integrity": "sha512-qMfrTs8AdJE2iqrTp0hzh7kTd2PQWrsFyj9tORoKmu32xjPjeE4NyjVRDz8ybYwqS2ik8N4hsIpiVTyFeo2lBQ==", - "dev": true, - "requires": { - "chalk": "^2.0.1", - "diff-sequences": "^24.9.0", - "jest-get-type": "^24.9.0", - "pretty-format": "^24.9.0" - } - }, - "jest-docblock": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-24.9.0.tgz", - "integrity": "sha512-F1DjdpDMJMA1cN6He0FNYNZlo3yYmOtRUnktrT9Q37njYzC5WEaDdmbynIgy0L/IvXvvgsG8OsqhLPXTpfmZAA==", - "dev": true, - "requires": { - "detect-newline": "^2.1.0" - } - }, - "jest-each": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-24.9.0.tgz", - "integrity": "sha512-ONi0R4BvW45cw8s2Lrx8YgbeXL1oCQ/wIDwmsM3CqM/nlblNCPmnC3IPQlMbRFZu3wKdQ2U8BqM6lh3LJ5Bsog==", - "dev": true, - "requires": { - "@jest/types": "^24.9.0", - "chalk": "^2.0.1", - "jest-get-type": "^24.9.0", - "jest-util": "^24.9.0", - "pretty-format": "^24.9.0" - } - }, - "jest-environment-jsdom": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-24.9.0.tgz", - "integrity": "sha512-Zv9FV9NBRzLuALXjvRijO2351DRQeLYXtpD4xNvfoVFw21IOKNhZAEUKcbiEtjTkm2GsJ3boMVgkaR7rN8qetA==", - "dev": true, - "requires": { - "@jest/environment": "^24.9.0", - "@jest/fake-timers": "^24.9.0", - "@jest/types": "^24.9.0", - "jest-mock": "^24.9.0", - "jest-util": "^24.9.0", - "jsdom": "^11.5.1" - } - }, - "jest-environment-node": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-24.9.0.tgz", - "integrity": "sha512-6d4V2f4nxzIzwendo27Tr0aFm+IXWa0XEUnaH6nU0FMaozxovt+sfRvh4J47wL1OvF83I3SSTu0XK+i4Bqe7uA==", - "dev": true, - "requires": { - "@jest/environment": "^24.9.0", - "@jest/fake-timers": "^24.9.0", - "@jest/types": "^24.9.0", - "jest-mock": "^24.9.0", - "jest-util": "^24.9.0" - } - }, - "jest-get-type": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-24.9.0.tgz", - "integrity": "sha512-lUseMzAley4LhIcpSP9Jf+fTrQ4a1yHQwLNeeVa2cEmbCGeoZAtYPOIv8JaxLD/sUpKxetKGP+gsHl8f8TSj8Q==", - "dev": true - }, - "jest-haste-map": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-24.9.0.tgz", - "integrity": "sha512-kfVFmsuWui2Sj1Rp1AJ4D9HqJwE4uwTlS/vO+eRUaMmd54BFpli2XhMQnPC2k4cHFVbB2Q2C+jtI1AGLgEnCjQ==", - "dev": true, - "requires": { - "@jest/types": "^24.9.0", - "anymatch": "^2.0.0", - "fb-watchman": "^2.0.0", - "fsevents": "^1.2.7", - "graceful-fs": "^4.1.15", - "invariant": "^2.2.4", - "jest-serializer": "^24.9.0", - "jest-util": "^24.9.0", - "jest-worker": "^24.9.0", - "micromatch": "^3.1.10", - "sane": "^4.0.3", - "walker": "^1.0.7" - } - }, - "jest-jasmine2": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-24.9.0.tgz", - "integrity": "sha512-Cq7vkAgaYKp+PsX+2/JbTarrk0DmNhsEtqBXNwUHkdlbrTBLtMJINADf2mf5FkowNsq8evbPc07/qFO0AdKTzw==", - "dev": true, - "requires": { - "@babel/traverse": "^7.1.0", - "@jest/environment": "^24.9.0", - "@jest/test-result": "^24.9.0", - "@jest/types": "^24.9.0", - "chalk": "^2.0.1", - "co": "^4.6.0", - "expect": "^24.9.0", - "is-generator-fn": "^2.0.0", - "jest-each": "^24.9.0", - "jest-matcher-utils": "^24.9.0", - "jest-message-util": "^24.9.0", - "jest-runtime": "^24.9.0", - "jest-snapshot": "^24.9.0", - "jest-util": "^24.9.0", - "pretty-format": "^24.9.0", - "throat": "^4.0.0" - } - }, - "jest-leak-detector": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-24.9.0.tgz", - "integrity": "sha512-tYkFIDsiKTGwb2FG1w8hX9V0aUb2ot8zY/2nFg087dUageonw1zrLMP4W6zsRO59dPkTSKie+D4rhMuP9nRmrA==", - "dev": true, - "requires": { - "jest-get-type": "^24.9.0", - "pretty-format": "^24.9.0" - } - }, - "jest-matcher-utils": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-24.9.0.tgz", - "integrity": "sha512-OZz2IXsu6eaiMAwe67c1T+5tUAtQyQx27/EMEkbFAGiw52tB9em+uGbzpcgYVpA8wl0hlxKPZxrly4CXU/GjHA==", - "dev": true, - "requires": { - "chalk": "^2.0.1", - "jest-diff": "^24.9.0", - "jest-get-type": "^24.9.0", - "pretty-format": "^24.9.0" - } - }, - "jest-message-util": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-24.9.0.tgz", - "integrity": "sha512-oCj8FiZ3U0hTP4aSui87P4L4jC37BtQwUMqk+zk/b11FR19BJDeZsZAvIHutWnmtw7r85UmR3CEWZ0HWU2mAlw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "@jest/test-result": "^24.9.0", - "@jest/types": "^24.9.0", - "@types/stack-utils": "^1.0.1", - "chalk": "^2.0.1", - "micromatch": "^3.1.10", - "slash": "^2.0.0", - "stack-utils": "^1.0.1" - } - }, - "jest-mock": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-24.9.0.tgz", - "integrity": "sha512-3BEYN5WbSq9wd+SyLDES7AHnjH9A/ROBwmz7l2y+ol+NtSFO8DYiEBzoO1CeFc9a8DYy10EO4dDFVv/wN3zl1w==", - "dev": true, - "requires": { - "@jest/types": "^24.9.0" - } - }, - "jest-mock-process": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/jest-mock-process/-/jest-mock-process-1.3.2.tgz", - "integrity": "sha512-HQaOYeHzz9B1J50SAB+Ikh/12MH6hkckquZ5VwRalRq0+lf6Gv6qZGBAH/y5K3iuWtDeC7iO/36cKMUYCN2vtQ==", - "dev": true - }, - "jest-pnp-resolver": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.1.tgz", - "integrity": "sha512-pgFw2tm54fzgYvc/OHrnysABEObZCUNFnhjoRjaVOCN8NYc032/gVjPaHD4Aq6ApkSieWtfKAFQtmDKAmhupnQ==", - "dev": true - }, - "jest-regex-util": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-24.9.0.tgz", - "integrity": "sha512-05Cmb6CuxaA+Ys6fjr3PhvV3bGQmO+2p2La4hFbU+W5uOc479f7FdLXUWXw4pYMAhhSZIuKHwSXSu6CsSBAXQA==", + "jest-ts-auto-mock": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/jest-ts-auto-mock/-/jest-ts-auto-mock-1.0.11.tgz", + "integrity": "sha512-HJ5UKgPLyHxWNpTQ0lguHO7dYx/rtxa1hk1/fzZZwJmB5f4b2s1Lx7N5QjRpza2UIlKDODo2Wv1mP7nv9Dk6bQ==", "dev": true }, - "jest-resolve": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-24.9.0.tgz", - "integrity": "sha512-TaLeLVL1l08YFZAt3zaPtjiVvyy4oSA6CRe+0AFPPVX3Q/VI0giIWWoAvoS5L96vj9Dqxj4fB5p2qrHCmTU/MQ==", - "dev": true, - "requires": { - "@jest/types": "^24.9.0", - "browser-resolve": "^1.11.3", - "chalk": "^2.0.1", - "jest-pnp-resolver": "^1.2.1", - "realpath-native": "^1.1.0" - } - }, - "jest-resolve-dependencies": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-24.9.0.tgz", - "integrity": "sha512-Fm7b6AlWnYhT0BXy4hXpactHIqER7erNgIsIozDXWl5dVm+k8XdGVe1oTg1JyaFnOxarMEbax3wyRJqGP2Pq+g==", - "dev": true, - "requires": { - "@jest/types": "^24.9.0", - "jest-regex-util": "^24.3.0", - "jest-snapshot": "^24.9.0" - } - }, - "jest-runner": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-24.9.0.tgz", - "integrity": "sha512-KksJQyI3/0mhcfspnxxEOBueGrd5E4vV7ADQLT9ESaCzz02WnbdbKWIf5Mkaucoaj7obQckYPVX6JJhgUcoWWg==", + "jest-util": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-26.3.0.tgz", + "integrity": "sha512-4zpn6bwV0+AMFN0IYhH/wnzIQzRaYVrz1A8sYnRnj4UXDXbOVtWmlaZkO9mipFqZ13okIfN87aDoJWB7VH6hcw==", "dev": true, "requires": { - "@jest/console": "^24.7.1", - "@jest/environment": "^24.9.0", - "@jest/test-result": "^24.9.0", - "@jest/types": "^24.9.0", - "chalk": "^2.4.2", - "exit": "^0.1.2", - "graceful-fs": "^4.1.15", - "jest-config": "^24.9.0", - "jest-docblock": "^24.3.0", - "jest-haste-map": "^24.9.0", - "jest-jasmine2": "^24.9.0", - "jest-leak-detector": "^24.9.0", - "jest-message-util": "^24.9.0", - "jest-resolve": "^24.9.0", - "jest-runtime": "^24.9.0", - "jest-util": "^24.9.0", - "jest-worker": "^24.6.0", - "source-map-support": "^0.5.6", - "throat": "^4.0.0" + "@jest/types": "^26.3.0", + "@types/node": "*", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "is-ci": "^2.0.0", + "micromatch": "^4.0.2" + }, + "dependencies": { + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "micromatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.0.5" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + } } }, - "jest-runtime": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-24.9.0.tgz", - "integrity": "sha512-8oNqgnmF3v2J6PVRM2Jfuj8oX3syKmaynlDMMKQ4iyzbQzIG6th5ub/lM2bCMTmoTKM3ykcUYI2Pw9xwNtjMnw==", + "jest-validate": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-26.4.2.tgz", + "integrity": "sha512-blft+xDX7XXghfhY0mrsBCYhX365n8K5wNDC4XAcNKqqjEzsRUSXP44m6PL0QJEW2crxQFLLztVnJ4j7oPlQrQ==", "dev": true, "requires": { - "@jest/console": "^24.7.1", - "@jest/environment": "^24.9.0", - "@jest/source-map": "^24.3.0", - "@jest/transform": "^24.9.0", - "@jest/types": "^24.9.0", - "@types/yargs": "^13.0.0", - "chalk": "^2.0.1", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.1.15", - "jest-config": "^24.9.0", - "jest-haste-map": "^24.9.0", - "jest-message-util": "^24.9.0", - "jest-mock": "^24.9.0", - "jest-regex-util": "^24.3.0", - "jest-resolve": "^24.9.0", - "jest-snapshot": "^24.9.0", - "jest-util": "^24.9.0", - "jest-validate": "^24.9.0", - "realpath-native": "^1.1.0", - "slash": "^2.0.0", - "strip-bom": "^3.0.0", - "yargs": "^13.3.0" + "@jest/types": "^26.3.0", + "camelcase": "^6.0.0", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "leven": "^3.1.0", + "pretty-format": "^26.4.2" }, "dependencies": { - "cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", "dev": true, "requires": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" } }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", "dev": true, "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" + "@types/istanbul-lib-report": "*" } }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", "dev": true, "requires": { - "ansi-regex": "^4.1.0" + "@types/yargs-parser": "*" } }, - "wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", + "camelcase": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.0.0.tgz", + "integrity": "sha512-8KMDF1Vz2gzOq54ONPJS65IvTUaB1cHJ2DMM7MbPmLZljDH1qpzzLsWdiN9pHh6qvkRVDTi/07+eNGch/oLU4w==", + "dev": true + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", "dev": true, "requires": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, - "y18n": { + "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", "dev": true }, - "yargs": { - "version": "13.3.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.0.tgz", - "integrity": "sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA==", + "pretty-format": { + "version": "26.4.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.4.2.tgz", + "integrity": "sha512-zK6Gd8zDsEiVydOCGLkoBoZuqv8VTiHyAbKznXe/gaph/DAeZOmit9yMfgIz5adIgAMMs5XfoYSwAX3jcCO1tA==", "dev": true, "requires": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.1" + "@jest/types": "^26.3.0", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" } } } }, - "jest-serializer": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-24.9.0.tgz", - "integrity": "sha512-DxYipDr8OvfrKH3Kel6NdED3OXxjvxXZ1uIY2I9OFbGg+vUkkg7AGvi65qbhbWNPvDckXmzMPbK3u3HaDO49bQ==", - "dev": true - }, - "jest-snapshot": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-24.9.0.tgz", - "integrity": "sha512-uI/rszGSs73xCM0l+up7O7a40o90cnrk429LOiK3aeTvfC0HHmldbd81/B7Ix81KSFe1lwkbl7GnBGG4UfuDew==", - "dev": true, - "requires": { - "@babel/types": "^7.0.0", - "@jest/types": "^24.9.0", - "chalk": "^2.0.1", - "expect": "^24.9.0", - "jest-diff": "^24.9.0", - "jest-get-type": "^24.9.0", - "jest-matcher-utils": "^24.9.0", - "jest-message-util": "^24.9.0", - "jest-resolve": "^24.9.0", - "mkdirp": "^0.5.1", - "natural-compare": "^1.4.0", - "pretty-format": "^24.9.0", - "semver": "^6.2.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "jest-util": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-24.9.0.tgz", - "integrity": "sha512-x+cZU8VRmOJxbA1K5oDBdxQmdq0OIdADarLxk0Mq+3XS4jgvhG/oKGWcIDCtPG0HgjxOYvF+ilPJQsAyXfbNOg==", - "dev": true, - "requires": { - "@jest/console": "^24.9.0", - "@jest/fake-timers": "^24.9.0", - "@jest/source-map": "^24.9.0", - "@jest/test-result": "^24.9.0", - "@jest/types": "^24.9.0", - "callsites": "^3.0.0", - "chalk": "^2.0.1", - "graceful-fs": "^4.1.15", - "is-ci": "^2.0.0", - "mkdirp": "^0.5.1", - "slash": "^2.0.0", - "source-map": "^0.6.0" - } - }, - "jest-validate": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-24.9.0.tgz", - "integrity": "sha512-HPIt6C5ACwiqSiwi+OfSSHbK8sG7akG8eATl+IPKaeIjtPOeBUd/g3J7DghugzxrGjI93qS/+RPKe1H6PqvhRQ==", + "jest-watcher": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.3.0.tgz", + "integrity": "sha512-XnLdKmyCGJ3VoF6G/p5ohbJ04q/vv5aH9ENI+i6BL0uu9WWB6Z7Z2lhQQk0d2AVZcRGp1yW+/TsoToMhBFPRdQ==", "dev": true, "requires": { - "@jest/types": "^24.9.0", - "camelcase": "^5.3.1", - "chalk": "^2.0.1", - "jest-get-type": "^24.9.0", - "leven": "^3.1.0", - "pretty-format": "^24.9.0" + "@jest/test-result": "^26.3.0", + "@jest/types": "^26.3.0", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^26.3.0", + "string-length": "^4.0.1" }, "dependencies": { - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "@jest/types": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.3.0.tgz", + "integrity": "sha512-BDPG23U0qDeAvU4f99haztXwdAg3hz4El95LkAM+tHAqqhiVzRpEGHHU8EDxT/AnxOrA65YjLBwDahdJ9pTLJQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } } } }, - "jest-watcher": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-24.9.0.tgz", - "integrity": "sha512-+/fLOfKPXXYJDYlks62/4R4GoT+GU1tYZed99JSCOsmzkkF7727RqKrjNAxtfO4YpGv11wybgRvCjR73lK2GZw==", - "dev": true, - "requires": { - "@jest/test-result": "^24.9.0", - "@jest/types": "^24.9.0", - "@types/yargs": "^13.0.0", - "ansi-escapes": "^3.0.0", - "chalk": "^2.0.1", - "jest-util": "^24.9.0", - "string-length": "^2.0.0" - } - }, "jest-worker": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.9.0.tgz", - "integrity": "sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw==", + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.3.0.tgz", + "integrity": "sha512-Vmpn2F6IASefL+DVBhPzI2J9/GJUsqzomdeN+P+dK8/jKxbh8R3BtFnx3FIta7wYlPU62cpJMJQo4kuOowcMnw==", "dev": true, "requires": { + "@types/node": "*", "merge-stream": "^2.0.0", - "supports-color": "^6.1.0" + "supports-color": "^7.0.0" }, "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { - "has-flag": "^3.0.0" + "has-flag": "^4.0.0" } } } @@ -4396,36 +6506,36 @@ "dev": true }, "jsdom": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-11.12.0.tgz", - "integrity": "sha512-y8Px43oyiBM13Zc1z780FrfNLJCXTL40EWlty/LXUtcjykRBNgLlCjWXpfSPBl2iv+N7koQN+dvqszHZgT/Fjw==", - "dev": true, - "requires": { - "abab": "^2.0.0", - "acorn": "^5.5.3", - "acorn-globals": "^4.1.0", - "array-equal": "^1.0.0", - "cssom": ">= 0.3.2 < 0.4.0", - "cssstyle": "^1.0.0", - "data-urls": "^1.0.0", - "domexception": "^1.0.1", - "escodegen": "^1.9.1", - "html-encoding-sniffer": "^1.0.2", - "left-pad": "^1.3.0", - "nwsapi": "^2.0.7", - "parse5": "4.0.0", - "pn": "^1.1.0", - "request": "^2.87.0", - "request-promise-native": "^1.0.5", - "sax": "^1.2.4", - "symbol-tree": "^3.2.2", - "tough-cookie": "^2.3.4", - "w3c-hr-time": "^1.0.1", - "webidl-conversions": "^4.0.2", - "whatwg-encoding": "^1.0.3", - "whatwg-mimetype": "^2.1.0", - "whatwg-url": "^6.4.1", - "ws": "^5.2.0", + "version": "16.4.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.4.0.tgz", + "integrity": "sha512-lYMm3wYdgPhrl7pDcRmvzPhhrGVBeVhPIqeHjzeiHN3DFmD1RBpbExbi8vU7BJdH8VAZYovR8DMt0PNNDM7k8w==", + "dev": true, + "requires": { + "abab": "^2.0.3", + "acorn": "^7.1.1", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.2.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.0", + "domexception": "^2.0.1", + "escodegen": "^1.14.1", + "html-encoding-sniffer": "^2.0.1", + "is-potential-custom-element-name": "^1.0.0", + "nwsapi": "^2.2.0", + "parse5": "5.1.1", + "request": "^2.88.2", + "request-promise-native": "^1.0.8", + "saxes": "^5.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^3.0.1", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0", + "ws": "^7.2.3", "xml-name-validator": "^3.0.0" } }, @@ -4435,10 +6545,18 @@ "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "dev": true }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "requires": { + "bignumber.js": "^9.0.0" + } + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, "json-schema": { @@ -4466,12 +6584,12 @@ "dev": true }, "json5": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.1.tgz", - "integrity": "sha512-l+3HXD0GEI3huGq1njuqtzYK8OYJyXMkOLtQ53pjWh89tvWS2h6l+1zMkYWqlb57+SiQodKZyvMEFb2X+KrFhQ==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz", + "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==", "dev": true, "requires": { - "minimist": "^1.2.0" + "minimist": "^1.2.5" } }, "jsprim": { @@ -4486,6 +6604,25 @@ "verror": "1.10.0" } }, + "jwa": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", + "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", + "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "requires": { + "jwa": "^2.0.0", + "safe-buffer": "^5.0.1" + } + }, "kind-of": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", @@ -4506,20 +6643,21 @@ "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", "dev": true }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", + "kuler": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", + "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==", + "dev": true + }, + "lazy-cache": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", + "integrity": "sha1-uRkKT5EzVGlIQIWfio9whNiCImQ=", + "dev": true, "requires": { - "invert-kv": "^1.0.0" + "set-getter": "^0.1.0" } }, - "left-pad": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz", - "integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==", - "dev": true - }, "leven": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", @@ -4527,41 +6665,45 @@ "dev": true }, "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" } }, - "load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0", - "strip-bom": "^3.0.0" - } + "lines-and-columns": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", + "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", + "dev": true }, "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" + "p-locate": "^4.1.0" } }, "lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "dev": true + }, + "lodash-es": { "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.15.tgz", + "integrity": "sha512-rlrc3yU3+JNOpZ9zj5pQtxnx2THmvRykwL4Xlxoa8I9lHBlVbbyPhgyPMioxVZ4NqyxaVVtaJnzsyOidQIhyyQ==", + "dev": true + }, + "lodash._reinterpolate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", + "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", "dev": true }, "lodash.camelcase": { @@ -4569,11 +6711,6 @@ "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=" }, - "lodash.clone": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clone/-/lodash.clone-4.5.0.tgz", - "integrity": "sha1-GVhwRQ9aExkkeN9Lw9I9LeoZB7Y=" - }, "lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", @@ -4586,42 +6723,136 @@ "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", "dev": true }, + "lodash.template": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", + "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", + "dev": true, + "requires": { + "lodash._reinterpolate": "^3.0.0", + "lodash.templatesettings": "^4.0.0" + } + }, + "lodash.templatesettings": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", + "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", + "dev": true, + "requires": { + "lodash._reinterpolate": "^3.0.0" + } + }, + "log-ok": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/log-ok/-/log-ok-0.1.1.tgz", + "integrity": "sha1-vqPdNqzQuKckDXhza1uXxlREozQ=", + "dev": true, + "requires": { + "ansi-green": "^0.1.1", + "success-symbol": "^0.1.0" + } + }, + "log-utils": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/log-utils/-/log-utils-0.2.1.tgz", + "integrity": "sha1-pMIXoN2aUFFdm5ICBgkas9TgMc8=", + "dev": true, + "requires": { + "ansi-colors": "^0.2.0", + "error-symbol": "^0.1.0", + "info-symbol": "^0.1.0", + "log-ok": "^0.1.1", + "success-symbol": "^0.1.0", + "time-stamp": "^1.0.1", + "warning-symbol": "^0.1.0" + }, + "dependencies": { + "ansi-colors": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-0.2.0.tgz", + "integrity": "sha1-csMd4qDZoszQysMMyYI+6y9kNLU=", + "dev": true, + "requires": { + "ansi-bgblack": "^0.1.1", + "ansi-bgblue": "^0.1.1", + "ansi-bgcyan": "^0.1.1", + "ansi-bggreen": "^0.1.1", + "ansi-bgmagenta": "^0.1.1", + "ansi-bgred": "^0.1.1", + "ansi-bgwhite": "^0.1.1", + "ansi-bgyellow": "^0.1.1", + "ansi-black": "^0.1.1", + "ansi-blue": "^0.1.1", + "ansi-bold": "^0.1.1", + "ansi-cyan": "^0.1.1", + "ansi-dim": "^0.1.1", + "ansi-gray": "^0.1.1", + "ansi-green": "^0.1.1", + "ansi-grey": "^0.1.1", + "ansi-hidden": "^0.1.1", + "ansi-inverse": "^0.1.1", + "ansi-italic": "^0.1.1", + "ansi-magenta": "^0.1.1", + "ansi-red": "^0.1.1", + "ansi-reset": "^0.1.1", + "ansi-strikethrough": "^0.1.1", + "ansi-underline": "^0.1.1", + "ansi-white": "^0.1.1", + "ansi-yellow": "^0.1.1", + "lazy-cache": "^2.0.1" + } + } + } + }, + "logform": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/logform/-/logform-2.2.0.tgz", + "integrity": "sha512-N0qPlqfypFx7UHNn4B3lzS/b0uLqt2hmuoa+PpuXNYgozdJYAyauF5Ky0BWVjrxDlMWiT3qN4zPq3vVAfZy7Yg==", + "dev": true, + "requires": { + "colors": "^1.2.1", + "fast-safe-stringify": "^2.0.4", + "fecha": "^4.2.0", + "ms": "^2.1.1", + "triple-beam": "^1.3.0" + } + }, + "logging-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/logging-helpers/-/logging-helpers-1.0.0.tgz", + "integrity": "sha512-qyIh2goLt1sOgQQrrIWuwkRjUx4NUcEqEGAcYqD8VOnOC6ItwkrVE8/tA4smGpjzyp4Svhc6RodDp9IO5ghpyA==", + "dev": true, + "requires": { + "isobject": "^3.0.0", + "log-utils": "^0.2.1" + } + }, "long": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" + "yallist": "^4.0.0" } }, "make-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", - "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", "dev": true, "requires": { - "pify": "^4.0.1", - "semver": "^5.6.0" - }, - "dependencies": { - "pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "dev": true - } + "semver": "^6.0.0" } }, "make-error": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz", - "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==" + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" }, "makeerror": { "version": "1.0.11", @@ -4672,23 +6903,94 @@ "regex-not": "^1.0.0", "snapdragon": "^0.8.1", "to-regex": "^3.0.2" + }, + "dependencies": { + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + } + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } } }, + "mime": { + "version": "2.4.6", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.6.tgz", + "integrity": "sha512-RZKhC3EmpBchfTGBVb8fb+RL2cWyw/32lshnsETttkBAyAUXSGHxbEJWWRXc751DrIxG1q04b8QwMbAwkRPpUA==" + }, "mime-db": { - "version": "1.43.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.43.0.tgz", - "integrity": "sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ==", + "version": "1.44.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", + "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==", "dev": true }, "mime-types": { - "version": "2.1.26", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.26.tgz", - "integrity": "sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ==", + "version": "2.1.27", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", + "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", "dev": true, "requires": { - "mime-db": "1.43.0" + "mime-db": "1.44.0" } }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", @@ -4699,11 +7001,38 @@ } }, "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", "dev": true }, + "minipass": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.9.0.tgz", + "integrity": "sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==", + "dev": true, + "requires": { + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" + }, + "dependencies": { + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } + } + }, + "minizlib": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz", + "integrity": "sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==", + "dev": true, + "requires": { + "minipass": "^2.9.0" + } + }, "mixin-deep": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", @@ -4726,32 +7055,24 @@ } }, "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", "dev": true, "requires": { - "minimist": "0.0.8" - }, - "dependencies": { - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true - } + "minimist": "^1.2.5" } }, + "moment": { + "version": "2.28.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.28.0.tgz", + "integrity": "sha512-Z5KOjYmnHyd/ukynmFd/WwyXHd7L4J9vTI/nn5Ap9AVUgaAE15VvQ9MOGmJJygEUklupqIrFnor/tjTwRU+tQw==", + "dev": true + }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "nan": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", - "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==" + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "nanomatch": { "version": "1.2.13", @@ -4770,6 +7091,66 @@ "regex-not": "^1.0.0", "snapdragon": "^0.8.1", "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + } + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } } }, "natural-compare": { @@ -4778,6 +7159,34 @@ "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", "dev": true }, + "needle": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/needle/-/needle-2.5.2.tgz", + "integrity": "sha512-LbRIwS9BfkPvNwNHlsA41Q29kL2L/6VaOJ0qisM5lLWsTV3nP15abO5ITL6L81zqFhzjRKDAYjpcBcwM0AVvLQ==", + "dev": true, + "requires": { + "debug": "^3.2.6", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" + }, + "dependencies": { + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, "nice-try": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", @@ -4785,10 +7194,14 @@ "dev": true }, "node-fetch": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz", - "integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==", - "dev": true + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" + }, + "node-forge": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", + "integrity": "sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==" }, "node-int64": { "version": "0.4.0", @@ -4803,16 +7216,63 @@ "dev": true }, "node-notifier": { - "version": "5.4.3", - "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-5.4.3.tgz", - "integrity": "sha512-M4UBGcs4jeOK9CjTsYwkvH6/MzuUmGCyTW+kCY7uO+1ZVr0+FHGdPdIf5CCLqAaxnRrWidyoQlNkMIIVwbKB8Q==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.0.tgz", + "integrity": "sha512-46z7DUmcjoYdaWyXouuFNNfUo6eFa94t23c53c+lG/9Cvauk4a98rAUp9672X5dxGdQmLpPzTxzu8f/OeEPaFA==", "dev": true, + "optional": true, "requires": { "growly": "^1.3.0", - "is-wsl": "^1.1.0", - "semver": "^5.5.0", + "is-wsl": "^2.2.0", + "semver": "^7.3.2", "shellwords": "^0.1.1", - "which": "^1.3.0" + "uuid": "^8.3.0", + "which": "^2.0.2" + }, + "dependencies": { + "semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "dev": true, + "optional": true + } + } + }, + "node-pre-gyp": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.15.0.tgz", + "integrity": "sha512-7QcZa8/fpaU/BKenjcaeFF9hLz2+7S9AqyXFhlH/rilsQ/hPZKK32RtR5EQHJElgu+q5RfbJ34KriI79UWaorA==", + "dev": true, + "requires": { + "detect-libc": "^1.0.2", + "mkdirp": "^0.5.3", + "needle": "^2.5.0", + "nopt": "^4.0.1", + "npm-packlist": "^1.1.6", + "npmlog": "^4.0.2", + "rc": "^1.2.7", + "rimraf": "^2.6.1", + "semver": "^5.3.0", + "tar": "^4.4.2" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "nopt": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.3.tgz", + "integrity": "sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg==", + "dev": true, + "requires": { + "abbrev": "1", + "osenv": "^0.1.4" } }, "normalize-package-data": { @@ -4825,15 +7285,46 @@ "resolve": "^1.10.0", "semver": "2 || 3 || 4 || 5", "validate-npm-package-license": "^3.0.1" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } } }, "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + }, + "npm-bundled": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.1.1.tgz", + "integrity": "sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA==", + "dev": true, + "requires": { + "npm-normalize-package-bin": "^1.0.1" + } + }, + "npm-normalize-package-bin": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz", + "integrity": "sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==", + "dev": true + }, + "npm-packlist": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.8.tgz", + "integrity": "sha512-5+AZgwru5IevF5ZdnFglB5wNlHG1AOOuw28WhUq8/8emhBmLv6jX5by4WJCh7lW0uSYZYS6DXqIsyZVIXRZU9A==", "dev": true, "requires": { - "remove-trailing-separator": "^1.0.1" + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1", + "npm-normalize-package-bin": "^1.0.1" } }, "npm-run-path": { @@ -4843,12 +7334,33 @@ "dev": true, "requires": { "path-key": "^2.0.0" + }, + "dependencies": { + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + } + } + }, + "npmlog": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", + "dev": true, + "requires": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" } }, "number-is-nan": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true }, "nwsapi": { "version": "2.2.0", @@ -4862,6 +7374,12 @@ "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", "dev": true }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, "object-copy": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", @@ -4893,18 +7411,6 @@ } } }, - "object-inspect": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz", - "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==", - "dev": true - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - }, "object-visit": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", @@ -4914,28 +7420,6 @@ "isobject": "^3.0.0" } }, - "object.assign": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", - "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", - "dev": true, - "requires": { - "define-properties": "^1.1.2", - "function-bind": "^1.1.1", - "has-symbols": "^1.0.0", - "object-keys": "^1.0.11" - } - }, - "object.getownpropertydescriptors": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz", - "integrity": "sha512-Z53Oah9A3TdLoblT7VKJaTDdXdT+lQO+cNpKVnya5JDe9uLvzu1YyY1yFDFrcxrlRgWrEFH0jJtD/IbuwjcEVg==", - "dev": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.0-next.1" - } - }, "object.pick": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", @@ -4954,42 +7438,66 @@ "wrappy": "1" } }, - "optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "one-time": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz", + "integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==", "dev": true, "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" + "fn.name": "1.x.x" } }, - "optjs": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/optjs/-/optjs-3.2.2.tgz", - "integrity": "sha1-aabOicRCpEQDFBrS+bNwvVu29O4=" + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "requires": { + "mimic-fn": "^2.1.0" + } }, - "os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", + "optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, "requires": { - "lcid": "^1.0.0" + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" } }, - "p-each-series": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-1.0.0.tgz", - "integrity": "sha1-kw89Et0fUOdDRFeiLNbwSsatf3E=", + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "dev": true + }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "dev": true + }, + "osenv": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", + "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", "dev": true, "requires": { - "p-reduce": "^1.0.0" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" } }, + "p-each-series": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.1.0.tgz", + "integrity": "sha512-ZuRs1miPT4HrjFa+9fRfOFXxGJfORgelKV9f9nNOWw2gl6gVsRaVDOQP0+MI0G0wGKns1Yacsu0GjOFbTK0JFQ==", + "dev": true + }, "p-finally": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", @@ -4997,34 +7505,25 @@ "dev": true }, "p-limit": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.2.tgz", - "integrity": "sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ==", - "dev": true, + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "requires": { "p-try": "^2.0.0" } }, "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "requires": { - "p-limit": "^2.0.0" + "p-limit": "^2.2.0" } }, - "p-reduce": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-1.0.0.tgz", - "integrity": "sha1-GMKw3ZNqRpClKfgjH1ig/bakffo=", - "dev": true - }, "p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" }, "parent-module": { "version": "1.0.1", @@ -5036,19 +7535,21 @@ } }, "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.1.0.tgz", + "integrity": "sha512-+mi/lmVVNKFNVyLXV31ERiy2CY5E1/F6QtJFEzoChPRwwngMNXRDQ9GJ5WdE2Z2P4AujsOi0/+2qHID68KwfIQ==", "dev": true, "requires": { + "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" } }, "parse5": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-4.0.0.tgz", - "integrity": "sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", + "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", "dev": true }, "pascalcase": { @@ -5058,10 +7559,9 @@ "dev": true }, "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" }, "path-is-absolute": { "version": "1.0.1", @@ -5070,9 +7570,9 @@ "dev": true }, "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true }, "path-parse": { @@ -5081,25 +7581,16 @@ "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", "dev": true }, - "path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "dev": true, - "requires": { - "pify": "^3.0.0" - } - }, "performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", "dev": true }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "picomatch": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", + "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", "dev": true }, "pirates": { @@ -5112,20 +7603,14 @@ } }, "pkg-dir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", - "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, "requires": { - "find-up": "^3.0.0" + "find-up": "^4.0.0" } }, - "pn": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pn/-/pn-1.1.0.tgz", - "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==", - "dev": true - }, "posix-character-classes": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", @@ -5133,9 +7618,9 @@ "dev": true }, "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, "pretty-format": { @@ -5148,8 +7633,46 @@ "ansi-regex": "^4.0.0", "ansi-styles": "^3.2.0", "react-is": "^16.8.4" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + } } }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, "progress": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", @@ -5157,9 +7680,9 @@ "dev": true }, "prompts": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.3.1.tgz", - "integrity": "sha512-qIP2lQyCwYbdzcqHIUi2HAxiWixhoM9OdLCWf8txXsapC/X9YdsCoeyRIXE/GP+Q0J37Q7+XN/MFqbUa7IzXNA==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.3.2.tgz", + "integrity": "sha512-Q06uKs2CkNYVID0VqwfAl9mipo99zkBv/n2JtWY89Yxa3ZabWSrs0e2KTudKVa3peLUvYXMefDqIleLPVUBZMA==", "dev": true, "requires": { "kleur": "^3.0.3", @@ -5167,9 +7690,9 @@ } }, "protobufjs": { - "version": "6.8.8", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.8.8.tgz", - "integrity": "sha512-AAmHtD5pXgZfi7GMpllpO3q1Xw1OYldr+dMUlAnffGTAhqkg72WdmSY71uKBF/JuyiKs8psYbtKrhi0ASCD8qw==", + "version": "6.10.1", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.10.1.tgz", + "integrity": "sha512-pb8kTchL+1Ceg4lFd5XUpK8PdWacbvV5SK2ULH2ebrYtl4GjJmS24m6CKME67jzV53tbJxHlnNOSqQHbTsR9JQ==", "requires": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", @@ -5181,15 +7704,22 @@ "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.0", - "@types/node": "^10.1.0", + "@types/long": "^4.0.1", + "@types/node": "^13.7.0", "long": "^4.0.0" + }, + "dependencies": { + "@types/node": { + "version": "13.13.21", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.21.tgz", + "integrity": "sha512-tlFWakSzBITITJSxHV4hg4KvrhR/7h3xbJdSFbYJBVzKubrASbnnIFuSgolUh7qKGo/ZeJPKUfbZ0WS6Jp14DQ==" + } } }, "psl": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.7.0.tgz", - "integrity": "sha512-5NsSEDv8zY70ScRnOTn7bK7eanl2MvFrOrS/R6x+dBt5g1ghnj9Zv90kO8GwT8gxcu2ANyFprnFYB85IogIJOQ==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", "dev": true }, "pump": { @@ -5214,40 +7744,84 @@ "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", "dev": true }, + "rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dev": true, + "requires": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "dependencies": { + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + } + } + }, "react-is": { - "version": "16.12.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.12.0.tgz", - "integrity": "sha512-rPCkf/mWBtKc97aLL9/txD8DZdemK0vkA3JMLShjlJB3Pj3s+lpf1KaBzMfQrAmhMQB0n1cU/SUGgKKBCe837Q==", + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "dev": true }, "read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", "dev": true, "requires": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "dependencies": { + "type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true + } } }, "read-pkg-up": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-4.0.0.tgz", - "integrity": "sha512-6etQSH7nJGsK0RbG/2TeDzZFa8shjQ1um+SwQQ5cwKy0dhSXdOncEhb1CPpvQG4h7FyOV6EB6YlV0yJvZQNAkA==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", "dev": true, "requires": { - "find-up": "^3.0.0", - "read-pkg": "^3.0.0" + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" } }, - "realpath-native": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/realpath-native/-/realpath-native-1.1.0.tgz", - "integrity": "sha512-wlgPA6cCIIg9gKz0fgAPjnzh4yR/LnXovwuo9hvyGvx3h8nX4+/iLZplfUWasXpqD8BdnGnP5njOFjkUwPzvjA==", + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", "dev": true, "requires": { - "util.promisify": "^1.0.0" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + } } }, "regex-not": { @@ -5258,6 +7832,27 @@ "requires": { "extend-shallow": "^3.0.2", "safe-regex": "^1.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } } }, "regexpp": { @@ -5266,6 +7861,36 @@ "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", "dev": true }, + "relative": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/relative/-/relative-3.0.2.tgz", + "integrity": "sha1-Dc2OxUpdNaPBXhBFA9ZTdbWlNn8=", + "dev": true, + "requires": { + "isobject": "^2.0.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "remarkable": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", + "integrity": "sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==", + "dev": true, + "requires": { + "argparse": "^1.0.10", + "autolinker": "~0.28.0" + } + }, "remove-trailing-separator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", @@ -5312,6 +7937,16 @@ "uuid": "^3.3.2" }, "dependencies": { + "tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dev": true, + "requires": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + }, "uuid": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", @@ -5321,59 +7956,77 @@ } }, "request-promise-core": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.3.tgz", - "integrity": "sha512-QIs2+ArIGQVp5ZYbWD5ZLCY29D5CfWizP8eWnm8FoGD1TX61veauETVQbrV60662V0oFBkrDOuaBI8XgtuyYAQ==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz", + "integrity": "sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==", "dev": true, "requires": { - "lodash": "^4.17.15" + "lodash": "^4.17.19" } }, "request-promise-native": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.8.tgz", - "integrity": "sha512-dapwLGqkHtwL5AEbfenuzjTYg35Jd6KPytsC2/TLkVMz8rm+tNt72MGUWT1RP/aYawMpN6HqbNGBQaRcBtjQMQ==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.9.tgz", + "integrity": "sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g==", "dev": true, "requires": { - "request-promise-core": "1.1.3", + "request-promise-core": "1.1.4", "stealthy-require": "^1.1.1", "tough-cookie": "^2.3.3" + }, + "dependencies": { + "tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dev": true, + "requires": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + } } }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" }, "require-main-filename": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" }, "resolve": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.1.tgz", - "integrity": "sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w==", + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", + "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", "dev": true, "requires": { "path-parse": "^1.0.6" } }, "resolve-cwd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", - "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, "requires": { - "resolve-from": "^3.0.0" + "resolve-from": "^5.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + } } }, "resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true }, "resolve-url": { @@ -5389,9 +8042,9 @@ "dev": true }, "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", "dev": true, "requires": { "glob": "^7.1.3" @@ -5404,10 +8057,9 @@ "dev": true }, "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" }, "safe-regex": { "version": "1.1.0", @@ -5439,6 +8091,27 @@ "micromatch": "^3.1.4", "minimist": "^1.1.1", "walker": "~1.0.5" + }, + "dependencies": { + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "requires": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + } } }, "sax": { @@ -5447,17 +8120,39 @@ "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", "dev": true }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "saxes": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", + "dev": true, + "requires": { + "xmlchars": "^2.2.0" + } + }, + "self-closing-tags": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/self-closing-tags/-/self-closing-tags-1.0.1.tgz", + "integrity": "sha512-7t6hNbYMxM+VHXTgJmxwgZgLGktuXtVVD5AivWzNTdJBM4DBjnDKDzkf2SrNjihaArpeJYNjxkELBu1evI4lQA==", "dev": true }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + }, "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" + }, + "set-getter": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.0.tgz", + "integrity": "sha1-12nBgsnVpR9AkUXy+6guXoboA3Y=", + "dev": true, + "requires": { + "to-object-path": "^0.3.0" + } }, "set-value": { "version": "2.0.1", @@ -5469,56 +8164,63 @@ "is-extendable": "^0.1.1", "is-plain-object": "^2.0.3", "split-string": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } } }, "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, "requires": { - "shebang-regex": "^1.0.0" + "shebang-regex": "^3.0.0" } }, "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, "shellwords": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", - "dev": true + "dev": true, + "optional": true }, "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", + "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", "dev": true }, + "simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=", + "dev": true, + "requires": { + "is-arrayish": "^0.3.1" + }, + "dependencies": { + "is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==", + "dev": true + } + } + }, "sisteransi": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.4.tgz", - "integrity": "sha512-/ekMoM4NJ59ivGSfKapeG+FWtrmWvA1p6FBZwXrqojw90vJu8lBmrTxCMuBCydKtkaUe2zt4PlxeTKpjwMbyig==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", "dev": true }, "slash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true }, "slice-ansi": { @@ -5532,6 +8234,30 @@ "is-fullwidth-code-point": "^2.0.0" }, "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, "is-fullwidth-code-point": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", @@ -5574,15 +8300,6 @@ "is-descriptor": "^0.1.0" } }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", @@ -5601,51 +8318,11 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", - "dev": true, - "requires": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } + "dev": true, + "requires": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" } }, "snapdragon-util": { @@ -5671,8 +8348,7 @@ "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" }, "source-map-resolve": { "version": "0.5.3", @@ -5688,19 +8364,12 @@ } }, "source-map-support": { - "version": "0.5.16", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.16.tgz", - "integrity": "sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ==", + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", + "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", "requires": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } } }, "source-map-url": { @@ -5710,9 +8379,9 @@ "dev": true }, "spdx-correct": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", - "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", + "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", "dev": true, "requires": { "spdx-expression-parse": "^3.0.0", @@ -5720,15 +8389,15 @@ } }, "spdx-exceptions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", - "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", "dev": true }, "spdx-expression-parse": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", - "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", "dev": true, "requires": { "spdx-exceptions": "^2.1.0", @@ -5736,9 +8405,9 @@ } }, "spdx-license-ids": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", - "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.6.tgz", + "integrity": "sha512-+orQK83kyMva3WyPf59k1+Y525csj5JejicWut55zeTWANuN17qSiSLUXWtzHeNWORSvT7GLDJ/E/XiIWoXBTw==", "dev": true }, "split-string": { @@ -5748,6 +8417,27 @@ "dev": true, "requires": { "extend-shallow": "^3.0.0" + }, + "dependencies": { + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } } }, "sprintf-js": { @@ -5773,12 +8463,29 @@ "tweetnacl": "~0.14.0" } }, - "stack-utils": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.2.tgz", - "integrity": "sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA==", + "stack-trace": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=", "dev": true }, + "stack-utils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.2.tgz", + "integrity": "sha512-0H7QK2ECz3fyZMzQ8rH0j2ykpfbnd20BFtfg/SqVC2+sCTtcw0aDTGB7dk+de4U4uUeuz6nOtJcrkFFLG1B0Rg==", + "dev": true, + "requires": { + "escape-string-regexp": "^2.0.0" + }, + "dependencies": { + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true + } + } + }, "static-extend": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", @@ -5816,81 +8523,54 @@ } }, "string-length": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-2.0.0.tgz", - "integrity": "sha1-1A27aGo6zpYMHP/KVivyxF+DY+0=", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.1.tgz", + "integrity": "sha512-PKyXUd0LK0ePjSOnWn34V2uD6acUWev9uy0Ft05k0E8xRW+SKcA0F7eMr7h5xlzfn+4O3N+55rduYyet3Jk+jw==", "dev": true, "requires": { - "astral-regex": "^1.0.0", - "strip-ansi": "^4.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" } }, "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "string.prototype.trimleft": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz", - "integrity": "sha512-iu2AGd3PuP5Rp7x2kEZCrB2Nf41ehzh+goo8TV7z8/XDBbsvc6HQIlUl9RjkZ4oyrW1XM5UwlGl1oVEaDjg6Ag==", - "dev": true, + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", + "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", "requires": { - "define-properties": "^1.1.3", - "function-bind": "^1.1.1" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" } }, - "string.prototype.trimright": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz", - "integrity": "sha512-qFvWL3/+QIgZXVmJBfpHmxLB7xsUXz6HsUmP8+5dRaC3Q7oKUv9Vo6aMCRZC1smrtyECFsIT30PqBJ1gTjAs+g==", + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "requires": { - "define-properties": "^1.1.3", - "function-bind": "^1.1.1" + "safe-buffer": "~5.1.0" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + } } }, "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", "requires": { - "ansi-regex": "^2.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" - } + "ansi-regex": "^5.0.0" } }, "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true }, "strip-eof": { @@ -5899,18 +8579,36 @@ "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", "dev": true }, + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true + }, "strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true }, + "striptags": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/striptags/-/striptags-3.1.1.tgz", + "integrity": "sha1-yMPn/db7S7OjKjt1LltePjgJPr0=", + "dev": true + }, "stubs": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz", "integrity": "sha1-6NK6H6nJBXAwPAMLaQD31fiavls=", "dev": true }, + "success-symbol": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/success-symbol/-/success-symbol-0.1.0.tgz", + "integrity": "sha1-JAIuSG878c3KCUKDt2nEctO3KJc=", + "dev": true + }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", @@ -5920,6 +8618,33 @@ "has-flag": "^3.0.0" } }, + "supports-hyperlinks": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz", + "integrity": "sha512-zoE5/e+dnEijk6ASB6/qrK+oYdm2do1hjoLWrqUC/8WEIW1gbxFcKuBof7sW8ArN6e+AYvsE8HBGiVRWL/F5CA==", + "dev": true, + "requires": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", @@ -5938,6 +8663,18 @@ "string-width": "^3.0.0" }, "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, "is-fullwidth-code-point": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", @@ -5966,6 +8703,29 @@ } } }, + "tar": { + "version": "4.4.13", + "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.13.tgz", + "integrity": "sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA==", + "dev": true, + "requires": { + "chownr": "^1.1.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.8.6", + "minizlib": "^1.2.1", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.2", + "yallist": "^3.0.3" + }, + "dependencies": { + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } + } + }, "teeny-request": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/teeny-request/-/teeny-request-6.0.1.tgz", @@ -5979,6 +8739,22 @@ "uuid": "^3.3.2" }, "dependencies": { + "agent-base": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-5.1.1.tgz", + "integrity": "sha512-TMeqbNl2fMW0nMjTEPOwe3J/PRFP4vqeoNuQMG0HlMrtm5QxKqdvAkZ1pRBQ/ulIyDD5Yq0nJ7YbdD8ey0TO3g==", + "dev": true + }, + "https-proxy-agent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz", + "integrity": "sha512-zoDhWrkR3of1l9QAL8/scJZyLu8j/gBkcwcaQOZh7Gyh/+uJQzGVETdgT30akuwkpL8HTRfssqI3BZuV18teDg==", + "dev": true, + "requires": { + "agent-base": "5", + "debug": "4" + } + }, "uuid": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", @@ -5987,18 +8763,33 @@ } } }, + "terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "dev": true, + "requires": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + } + }, "test-exclude": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-5.2.3.tgz", - "integrity": "sha512-M+oxtseCFO3EDtAaGH7iiej3CBkzXqFMbzqYAACdzKui4eZA+pq3tZEwChvOdNfa7xxy8BfbmgJSIr43cC/+2g==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, "requires": { - "glob": "^7.1.3", - "minimatch": "^3.0.4", - "read-pkg-up": "^4.0.0", - "require-main-filename": "^2.0.0" + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" } }, + "text-hex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz", + "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==", + "dev": true + }, "text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", @@ -6006,9 +8797,25 @@ "dev": true }, "throat": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/throat/-/throat-4.1.0.tgz", - "integrity": "sha1-iQN8vJLFarGJJua6TLsgDhVnKmo=", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", + "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", + "dev": true + }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "time-stamp": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", + "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=", "dev": true }, "tmpl": { @@ -6023,6 +8830,12 @@ "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", "dev": true }, + "to-gfm-code-block": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/to-gfm-code-block/-/to-gfm-code-block-0.1.1.tgz", + "integrity": "sha1-JdBFpfrlUxielje1kJANpzLYqoI=", + "dev": true + }, "to-object-path": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", @@ -6043,91 +8856,330 @@ } } }, - "to-regex": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", - "dev": true, - "requires": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "requires": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + }, + "dependencies": { + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + } + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "tough-cookie": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-3.0.1.tgz", + "integrity": "sha512-yQyJ0u4pZsv9D4clxO69OEjLWYw+jbgspjTue4lTQZLfV0c5l1VmK2y1JK8E9ahdpltPOaAThPcp5nKPUgSnsg==", "dev": true, "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" + "ip-regex": "^2.1.0", + "psl": "^1.1.28", + "punycode": "^2.1.1" } }, - "tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "tr46": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.0.2.tgz", + "integrity": "sha512-3n1qG+/5kg+jrbTzwAykB5yRYtQCTqOGKq5U5PE3b0a1/mzo6snDhjGS0zJVJunO0NrT3Dg1MLy5TjWP/UJppg==", "dev": true, "requires": { - "psl": "^1.1.28", "punycode": "^2.1.1" } }, - "tr46": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", + "triple-beam": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz", + "integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==", + "dev": true + }, + "ts-auto-mock": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/ts-auto-mock/-/ts-auto-mock-2.6.4.tgz", + "integrity": "sha512-d0fJKU9p92shPz02pF0SCTMx07zMzUXXmkB1uvFLkSv8SJyILCLFhyj4jOK/OR7OAAnhdrxyIhm6369C/oMq2Q==", "dev": true, "requires": { - "punycode": "^2.1.0" + "lodash-es": "^4.17.15", + "micromatch": "^4.0.2", + "winston": "^3.3.3" + }, + "dependencies": { + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "micromatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.0.5" + } + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + } } }, "ts-jest": { - "version": "24.3.0", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-24.3.0.tgz", - "integrity": "sha512-Hb94C/+QRIgjVZlJyiWwouYUF+siNJHJHknyspaOcZ+OQAIdFG/UrdQVXw/0B8Z3No34xkUXZJpOTy9alOWdVQ==", + "version": "26.4.0", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-26.4.0.tgz", + "integrity": "sha512-ofBzoCqf6Nv/PoWb/ByV3VNKy2KJSikamOBxvR3E6eVdIw10GwAXoyvMWXXjZJK2s6S27ZE8fI+JBTnGaovl6Q==", "dev": true, "requires": { + "@types/jest": "26.x", "bs-logger": "0.x", "buffer-from": "1.x", "fast-json-stable-stringify": "2.x", + "jest-util": "^26.1.0", "json5": "2.x", "lodash.memoize": "4.x", "make-error": "1.x", - "mkdirp": "0.x", - "resolve": "1.x", - "semver": "^5.5", - "yargs-parser": "10.x" + "mkdirp": "1.x", + "semver": "7.x", + "yargs-parser": "20.x" }, "dependencies": { - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "@jest/types": { + "version": "25.5.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", + "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^1.1.1", + "@types/yargs": "^15.0.0", + "chalk": "^3.0.0" + } + }, + "@types/jest": { + "version": "26.0.14", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.14.tgz", + "integrity": "sha512-Hz5q8Vu0D288x3iWXePSn53W7hAjP0H7EQ6QvDO9c7t46mR0lNOLlfuwQ+JkVxuhygHzlzPX+0jKdA3ZgSh+Vg==", + "dev": true, + "requires": { + "jest-diff": "^25.2.1", + "pretty-format": "^25.2.1" + } + }, + "@types/yargs": { + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz", + "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "diff-sequences": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-25.2.6.tgz", + "integrity": "sha512-Hq8o7+6GaZeoFjtpgvRBUknSXNeJiCx7V9Fr94ZMljNiCr9n9L8H8aJqgWOQiDDGdyn29fRNcDdRVJ5fdyihfg==", "dev": true }, - "yargs-parser": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", - "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-diff": { + "version": "25.5.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-25.5.0.tgz", + "integrity": "sha512-z1kygetuPiREYdNIumRpAHY6RXiGmp70YHptjdaxTWGmA085W3iCnXNx0DhflK3vwrKmrRWyY1wUpkPMVxMK7A==", + "dev": true, + "requires": { + "chalk": "^3.0.0", + "diff-sequences": "^25.2.6", + "jest-get-type": "^25.2.6", + "pretty-format": "^25.5.0" + } + }, + "jest-get-type": { + "version": "25.2.6", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-25.2.6.tgz", + "integrity": "sha512-DxjtyzOHjObRM+sM1knti6or+eOgcGU4xVSb2HNP1TqO4ahsT+rqZg+nyqHWJSvWgKC5cG3QjGFBqxLghiF/Ig==", + "dev": true + }, + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true + }, + "pretty-format": { + "version": "25.5.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-25.5.0.tgz", + "integrity": "sha512-kbo/kq2LQ/A/is0PQwsEHM7Ca6//bGPPvU6UnsdDRSKTWxT/ru/xb88v4BJf6a69H+uTytOEsTusT9ksd/1iWQ==", + "dev": true, + "requires": { + "@jest/types": "^25.5.0", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^16.12.0" + } + }, + "semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { - "camelcase": "^4.1.0" + "has-flag": "^4.0.0" } + }, + "yargs-parser": { + "version": "20.1.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.1.0.tgz", + "integrity": "sha512-RV4YEjMLfjWkK9jNV/aZytlJ5uz+JBk7t29FofILa41jJAU/yCwghgsjH2xT0h7eu7b6MrCDJb1qZjeDJ/jI1w==", + "dev": true } } }, "ts-node": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.7.0.tgz", - "integrity": "sha512-s659CsHrsxaRVDEleuOkGvbsA0rWHtszUNEt1r0CgAFN5ZZTQtDzpsluS7W5pOGJIa1xZE8R/zK4dEs+ldFezg==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-9.0.0.tgz", + "integrity": "sha512-/TqB4SnererCDR/vb4S/QvSZvzQMJN8daAslg7MeaiHvD8rDZsSfXmNeNumyZZzMned72Xoq/isQljYSt8Ynfg==", "requires": { "arg": "^4.1.0", "diff": "^4.0.1", "make-error": "^1.1.1", - "source-map-support": "^0.5.6", + "source-map-support": "^0.5.17", "yn": "3.1.1" } }, @@ -6146,6 +9198,15 @@ "tslib": "^1.8.1" } }, + "ttypescript": { + "version": "1.5.12", + "resolved": "https://registry.npmjs.org/ttypescript/-/ttypescript-1.5.12.tgz", + "integrity": "sha512-1ojRyJvpnmgN9kIHmUnQPlEV1gq+VVsxVYjk/NfvMlHSmYxjK5hEvOOU2MQASrbekTUiUM7pR/nXeCc8bzvMOQ==", + "dev": true, + "requires": { + "resolve": ">=1.9.0" + } + }, "tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", @@ -6162,24 +9223,66 @@ "dev": true }, "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, "requires": { - "prelude-ls": "~1.1.2" + "prelude-ls": "^1.2.1" } }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, "type-fest": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true }, + "typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "requires": { + "is-typedarray": "^1.0.0" + } + }, + "typeof-article": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/typeof-article/-/typeof-article-0.1.1.tgz", + "integrity": "sha1-nwfnM8P7tkb/qeYcCN66zUYOBq8=", + "dev": true, + "requires": { + "kind-of": "^3.1.0" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, "typescript": { - "version": "3.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz", - "integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==" + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.0.3.tgz", + "integrity": "sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg==" + }, + "uglify-js": { + "version": "3.10.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.10.4.tgz", + "integrity": "sha512-kBFT3U4Dcj4/pJ52vfjCSfyLyvG9VYYuGYPmrPvAxRw/i7xHiT4VvCev+uiEMcEEiu6UNB6KgWmGtSUYIWScbw==", + "dev": true, + "optional": true }, "union-value": { "version": "1.0.1", @@ -6234,9 +9337,9 @@ } }, "uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.0.tgz", + "integrity": "sha512-B0yRTzYdUCCn9n+F4+Gh4yIDtMQcaJsmYBDsTSG8g/OejKBodLQ2IHfN3bM7jUsRXndopT7OIXWdYqc1fjmV6g==", "dev": true, "requires": { "punycode": "^2.1.0" @@ -6260,22 +9363,16 @@ "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", "dev": true }, - "util.promisify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.1.tgz", - "integrity": "sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA==", - "dev": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.2", - "has-symbols": "^1.0.1", - "object.getownpropertydescriptors": "^2.1.0" - } + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true }, "uuid": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-7.0.1.tgz", - "integrity": "sha512-yqjRXZzSJm9Dbl84H2VDHpM3zMjzSJQ+hn6C4zqd5ilW+7P4ZmLEEqwho9LjP+tGuZlF4xrHQXT0h9QZUS/pWA==" + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.0.tgz", + "integrity": "sha512-fX6Z5o4m6XsXBdli9g7DtWgAx+osMsRRZFKma1mIUsLCz6vRvv+pz5VNbyu9UEDzpMWulZfvpgb/cmDXVulYFQ==" }, "v8-compile-cache": { "version": "2.1.1", @@ -6283,6 +9380,25 @@ "integrity": "sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ==", "dev": true }, + "v8-to-istanbul": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-5.0.1.tgz", + "integrity": "sha512-mbDNjuDajqYe3TXFk5qxcQy8L1msXNE37WTlLoqqpBfRsimbNcrlhQlDPntmECEcUvdC+AQ8CyMMf6EUx1r74Q==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "dependencies": { + "source-map": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "dev": true + } + } + }, "validate-npm-package-license": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", @@ -6305,12 +9421,21 @@ } }, "w3c-hr-time": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz", - "integrity": "sha1-gqwr/2PZUOqeMYmlimViX+3xkEU=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "dev": true, + "requires": { + "browser-process-hrtime": "^1.0.0" + } + }, + "w3c-xmlserializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", "dev": true, "requires": { - "browser-process-hrtime": "^0.1.2" + "xml-name-validator": "^3.0.0" } }, "walker": { @@ -6322,10 +9447,16 @@ "makeerror": "1.0.x" } }, + "warning-symbol": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/warning-symbol/-/warning-symbol-0.1.0.tgz", + "integrity": "sha1-uzHdEbeg+dZ6su2V9Fe2WCW7rSE=", + "dev": true + }, "webidl-conversions": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", "dev": true }, "whatwg-encoding": { @@ -6344,20 +9475,20 @@ "dev": true }, "whatwg-url": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.5.0.tgz", - "integrity": "sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ==", + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.2.2.tgz", + "integrity": "sha512-PcVnO6NiewhkmzV0qn7A+UZ9Xx4maNTI+O+TShmfE4pqjoCMwUMjkvoNhNHPTvgR7QH9Xt3R13iHuWy2sToFxQ==", "dev": true, "requires": { "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" + "tr46": "^2.0.2", + "webidl-conversions": "^6.1.0" } }, "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, "requires": { "isexe": "^2.0.0" @@ -6366,13 +9497,89 @@ "which-module": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" }, - "window-size": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz", - "integrity": "sha1-+OGqHuWlPsW/FR/6CXQqatdpeHY=" + "wide-align": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", + "dev": true, + "requires": { + "string-width": "^1.0.2 || 2" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } + } + }, + "winston": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/winston/-/winston-3.3.3.tgz", + "integrity": "sha512-oEXTISQnC8VlSAKf1KYSSd7J6IWuRPQqDdo8eoRNaYKLvwSb5+79Z3Yi1lrl6KDpU6/VWaxpakDAtb1oQ4n9aw==", + "dev": true, + "requires": { + "@dabh/diagnostics": "^2.0.2", + "async": "^3.1.0", + "is-stream": "^2.0.0", + "logform": "^2.2.0", + "one-time": "^1.0.0", + "readable-stream": "^3.4.0", + "stack-trace": "0.0.x", + "triple-beam": "^1.3.0", + "winston-transport": "^4.4.0" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } + } + }, + "winston-transport": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.4.0.tgz", + "integrity": "sha512-Lc7/p3GtqtqPBYYtS6KCN3c77/2QCev51DvcJKbkFPQNoj1sinkGwLGFDxkXY9J6p9+EPnYs+D90uwbnaiURTw==", + "dev": true, + "requires": { + "readable-stream": "^2.3.7", + "triple-beam": "^1.2.0" + } }, "word-wrap": { "version": "1.2.3", @@ -6381,12 +9588,13 @@ "dev": true }, "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" } }, "wrappy": { @@ -6405,24 +9613,22 @@ } }, "write-file-atomic": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.1.tgz", - "integrity": "sha512-TGHFeZEZMnv+gBFRfjAcxL5bPHrsGKtnb4qsFAws7/vlh+QfwAaySIw4AXP9ZskTTh5GWu3FLuJhsWVdiJPGvg==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", "dev": true, "requires": { - "graceful-fs": "^4.1.11", "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.2" + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" } }, "ws": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.2.tgz", - "integrity": "sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA==", - "dev": true, - "requires": { - "async-limiter": "~1.0.0" - } + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.3.1.tgz", + "integrity": "sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA==", + "dev": true }, "xml-name-validator": { "version": "3.0.0", @@ -6430,43 +9636,61 @@ "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", "dev": true }, + "xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, + "xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "dev": true + }, "y18n": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", - "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=" + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", + "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==" + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "yargs": { - "version": "3.32.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.32.0.tgz", - "integrity": "sha1-AwiOnr+edWtpdRYR0qXvWRSCyZU=", - "requires": { - "camelcase": "^2.0.1", - "cliui": "^3.0.3", - "decamelize": "^1.1.1", - "os-locale": "^1.4.0", - "string-width": "^1.0.1", - "window-size": "^0.1.4", - "y18n": "^3.2.0" + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "requires": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" } }, "yargs-parser": { - "version": "13.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.1.tgz", - "integrity": "sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ==", - "dev": true, + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", "requires": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" - }, - "dependencies": { - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - } } }, + "year": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/year/-/year-0.2.1.tgz", + "integrity": "sha1-QIOuUgoxiyPshgN/MADLiSvfm7A=", + "dev": true + }, "yn": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", diff --git a/package.json b/package.json index e4d2504..dd4edd2 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,18 @@ { "name": "gauge-ts", - "version": "0.0.7", + "version": "0.2.0", "description": "Typescript language runner for gauge", "main": "./dist/index.js", "types": "./dist/index.d.ts", "scripts": { - "lint": "eslint */**/*.ts", + "lint": "eslint . --ext .ts", + "lint:fix": "eslint . --ext .ts --fix", "build": "npm run lint & tsc", - "test:coverage": "jest --coverage", + "test:coverage": "jest --verbose --coverage --detectOpenHandles --forceExit", "codecov": "codecov", - "test": "jest --verbose", + "test": "jest --verbose --detectOpenHandles --forceExit", "gen-proto": "sh genproto.sh", - "prepublish": "npm run build" + "prepublishOnly": "tsc" }, "repository": { "type": "git", @@ -29,24 +30,29 @@ "url": "https://github.com/bugdiver/gauge-ts/issues" }, "dependencies": { - "@grpc/proto-loader": "^0.5.3", - "grpc": "^1.24.2", + "@grpc/grpc-js": "^1.1.5", + "google-protobuf": "^3.13.0", "klaw-sync": "^6.0.0", - "protobufjs": "^6.8.8", - "ts-node": "^8.7.0", - "typescript": "^3.8.3", - "uuid": "^7.0.1" + "ts-node": "^9.0.0", + "typescript": "^4.0.3", + "uuid": "^8.3.0" }, "devDependencies": { + "@types/google-protobuf": "^3.7.3", "@types/jest": "^24.9.1", "@types/klaw-sync": "^6.0.0", - "@types/uuid": "^7.0.0", "@typescript-eslint/eslint-plugin": "^3.9.0", "@typescript-eslint/parser": "^3.9.0", - "codecov": "^3.6.5", "eslint": "^7.6.0", - "jest": "^24.9.0", - "jest-mock-process": "^1.3.2", - "ts-jest": "^24.3.0" + "@types/uuid": "^8.3.0", + "codecov": "^3.7.2", + "grpc-tools": "^1.9.1", + "grpc_tools_node_protoc_ts": "^4.1.3", + "jest": "^26.4.2", + "jest-mock-process": "^1.4.0", + "jest-ts-auto-mock": "^1.0.11", + "ts-auto-mock": "^2.6.4", + "ts-jest": "^26.3.0", + "ttypescript": "^1.5.12" } } diff --git a/src/GaugeRuntime.ts b/src/GaugeRuntime.ts index 50d43ec..480c070 100644 --- a/src/GaugeRuntime.ts +++ b/src/GaugeRuntime.ts @@ -1,37 +1,26 @@ -import { loadSync } from '@grpc/proto-loader'; -import { loadPackageDefinition, PackageDefinition, Server, ServerCredentials } from 'grpc'; -import { join } from 'path'; -import { GaugeListener } from "./connection/GaugeListener"; -import { GRPCHandler } from './connection/GRPCHandler'; +import { Server, ServerCredentials } from '@grpc/grpc-js'; +import { RunnerService } from './gen/services_grpc_pb'; import { StaticLoader } from "./loaders/StaticLoader"; -import { MessageProcessorFactory } from "./processors/MessageProcessorFactory"; +import { RunnerServiceImpl } from './RunnerServiceImpl'; export class GaugeRuntime { - private lspProtoPath: string = join(__dirname, 'gen', 'lsp.proto') - public start(): void { const loader = new StaticLoader(); loader.loadImplementations(); - const factory = new MessageProcessorFactory(loader); - - if (process.env.GAUGE_LSP_GRPC) { - const pd: PackageDefinition = loadSync(this.lspProtoPath) - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-explicit-any - const lspService = (loadPackageDefinition(pd) as any).gauge.messages.lspService.service; - const server = new Server(); - - server.addService(lspService, new GRPCHandler(server, factory)) - const p = server.bind("127.0.0.1:0", ServerCredentials.createInsecure()); - - console.log(`Listening on port: ${p}`); + const server = new Server(); + + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + server.addService(RunnerService, new RunnerServiceImpl(server, loader)); + server.bindAsync("127.0.0.1:0", ServerCredentials.createInsecure(), (err: Error | null, port: number) => { + if (err) { + throw err; + } + console.log(`Listening on port:${port}`); server.start(); - } else { - const listener = new GaugeListener(factory); - - listener.pollForMessages(); - } + }); } } diff --git a/src/RunnerServiceImpl.ts b/src/RunnerServiceImpl.ts new file mode 100644 index 0000000..2712a44 --- /dev/null +++ b/src/RunnerServiceImpl.ts @@ -0,0 +1,304 @@ +import { sendUnaryData as sUD, Server, ServerUnaryCall as SUC } from "@grpc/grpc-js"; +import { Status } from "@grpc/grpc-js/build/src/constants"; +import { sep } from 'path'; +import { EOL } from 'os'; +import { DataStoreFactory } from "."; +import { + CacheFileRequest, + Empty, + ExecuteStepRequest, + ExecutionEndingRequest, + ExecutionStartingRequest, + ExecutionStatusResponse as ESR, + ExecutionStatusResponse, FileDiff, + ImplementationFileGlobPatternResponse as IFGPR, + ImplementationFileListResponse as IFLR, + KillProcessRequest, + RefactorRequest, + RefactorResponse, + ScenarioDataStoreInitRequest as SCDSIR, + ScenarioExecutionEndingRequest as SCEER, + ScenarioExecutionStartingRequest as SCESR, + SpecDataStoreInitRequest as SPDSIR, + SpecExecutionEndingRequest as SPEER, + SpecExecutionStartingRequest as SPESR, + StepExecutionEndingRequest as STEER, + StepExecutionStartingRequest as STESR, + StepNameRequest, + StepNameResponse, + StepNamesRequest, + StepNamesResponse, + StepPositionsRequest, + StepPositionsResponse, + StepValidateRequest, + StepValidateResponse, + StubImplementationCodeRequest, + SuiteDataStoreInitRequest +} from "./gen/messages_pb"; +import { IRunnerServer } from "./gen/services_grpc_pb"; +import { ProtoExecutionResult } from "./gen/spec_pb"; +import { ImplLoader } from "./loaders/ImplLoader"; +import { StaticLoader } from "./loaders/StaticLoader"; +import registry from "./models/StepRegistry"; +import { CacheFileProcessor } from "./processors/CacheFileProcessor"; +import { ExecutionEndingProcessor } from "./processors/ExecutionEndingProcessor"; +import { ExecutionStartingProcessor } from "./processors/ExecutionStartingProcessor"; +import { RefactorProcessor } from "./processors/RefactorProcessor"; +import { ScenarioExecutionEndingProcessor } from "./processors/ScenarioExecutionEndingProcessor"; +import { ScenarioExecutionStartingProcessor } from "./processors/ScenarioExecutionStartingProcessor"; +import { SpecExecutionEndingProcessor } from "./processors/SpecExecutionEndingProcessor"; +import { SpecExecutionStartingProcessor } from "./processors/SpecExecutionStartingProcessor"; +import { StepExecutionEndingProcessor } from "./processors/StepExecutionEndingProcessor"; +import { StepExecutionProcessor } from "./processors/StepExecutionProcessor"; +import { StepExecutionStartingProcessor } from "./processors/StepExecutionStartingProcessor"; +import { StepNameProcessor } from "./processors/StepNameProcessor"; +import { StepPositionsProcessor } from "./processors/StepPositionsProcessor"; +import { StubImplementationCodeProcessor } from "./processors/StubImplementationCodeProcessor"; +import { ValidationProcessor } from "./processors/ValidationProcessor"; +import { Util } from "./utils/Util"; + +type RpcError = { + code: Status, + details: string, + message: string, + stack: string, +}; + +export class RunnerServiceImpl implements IRunnerServer { + + private readonly _server: Server; + private readonly _loader: StaticLoader; + + private _stepValidateRequestProcessor: ValidationProcessor; + private _stepNameRequestProcessor: StepNameProcessor; + private _refactorRequestProcessor: RefactorProcessor; + private _cacheFileRequestProcessor: CacheFileProcessor; + private _stubImplementationCodeRequestProcessor: StubImplementationCodeProcessor; + private _stepPositionsRequestProcessor: StepPositionsProcessor; + private _executionStartingProcessor: ExecutionStartingProcessor; + private _executionEndingProcessor: ExecutionEndingProcessor; + private _specExecutionStartingProcessor: SpecExecutionStartingProcessor; + private _specExecutionEndingProcessor: SpecExecutionEndingProcessor; + private _scenarioExecutionStartingProcessor: ScenarioExecutionStartingProcessor; + private _scenarioExecutionEndingProcessor: ScenarioExecutionEndingProcessor; + private _stepExecutionStartingProcessor: StepExecutionStartingProcessor; + private _stepExecutionEndingProcessor: StepExecutionEndingProcessor; + private _executeStepProcessor: StepExecutionProcessor; + + constructor(server: Server, loader: StaticLoader) { + this._server = server; + this._loader = loader; + this._stepValidateRequestProcessor = new ValidationProcessor(); + this._stepNameRequestProcessor = new StepNameProcessor(); + this._refactorRequestProcessor = new RefactorProcessor(); + this._cacheFileRequestProcessor = new CacheFileProcessor(this._loader); + this._stubImplementationCodeRequestProcessor = new StubImplementationCodeProcessor(); + this._stepPositionsRequestProcessor = new StepPositionsProcessor(); + this._executionStartingProcessor = new ExecutionStartingProcessor(); + this._executionEndingProcessor = new ExecutionEndingProcessor(); + this._specExecutionStartingProcessor = new SpecExecutionStartingProcessor(); + this._specExecutionEndingProcessor = new SpecExecutionEndingProcessor(); + this._scenarioExecutionStartingProcessor = new ScenarioExecutionStartingProcessor(); + this._scenarioExecutionEndingProcessor = new ScenarioExecutionEndingProcessor(); + this._stepExecutionStartingProcessor = new StepExecutionStartingProcessor(); + this._stepExecutionEndingProcessor = new StepExecutionEndingProcessor(); + this._executeStepProcessor = new StepExecutionProcessor(); + } + + public validateStep(call: SUC, callback: sUD): void { + try { + callback(null, this._stepValidateRequestProcessor.process(call.request as StepValidateRequest)); + } catch (error) { + callback(this.createRpcError(error), null); + } + + } + + public initializeSuiteDataStore(call: SUC, callback: sUD): void { + try { + DataStoreFactory.getSuiteDataStore().clear(); + const loader = new ImplLoader(); + + loader.loadImplementations() + .then(() => callback(null, this.getEmptExecutionResponse())) + .catch((err) => { + callback(this.createRpcError(err), null); + }); + } catch (error) { + callback(this.createRpcError(error), null); + } + } + + public startExecution(call: SUC, callback: sUD): void { + this._executionStartingProcessor.process(call.request as ExecutionStartingRequest) + .then((res) => callback(null, res)) + .catch((error: Error) => callback(this.createRpcError(error), null)); + } + + public initializeSpecDataStore(call: SUC, callback: sUD): void { + try { + DataStoreFactory.getSpecDataStore().clear(); + callback(null, this.getEmptExecutionResponse()); + } catch (error) { + callback(this.createRpcError(error), null); + } + + } + + public startSpecExecution(call: SUC, callback: sUD): void { + this._specExecutionStartingProcessor.process(call.request as SPESR) + .then((res) => callback(null, res)) + .catch((error: Error) => callback(this.createRpcError(error), null)); + + } + + public initializeScenarioDataStore(call: SUC, callback: sUD): void { + try { + DataStoreFactory.getScenarioDataStore().clear(); + callback(null, this.getEmptExecutionResponse()); + } catch (error) { + callback(this.createRpcError(error), null); + } + } + + public startScenarioExecution(call: SUC, callback: sUD): void { + this._scenarioExecutionStartingProcessor.process(call.request as SCESR) + .then((res) => callback(null, res)) + .catch((error: Error) => callback(this.createRpcError(error), null)); + + } + + public startStepExecution(call: SUC, callback: sUD): void { + this._stepExecutionStartingProcessor.process(call.request as STESR) + .then((res) => callback(null, res)) + .catch((error: Error) => callback(this.createRpcError(error), null)); + } + + public executeStep(call: SUC, callback: sUD): void { + this._executeStepProcessor.process(call.request as ExecuteStepRequest) + .then((res) => callback(null, res)) + .catch((error: Error) => callback(this.createRpcError(error), null)); + } + + public finishStepExecution(call: SUC, callback: sUD): void { + this._stepExecutionEndingProcessor.process(call.request as STEER) + .then((res) => callback(null, res)) + .catch((error: Error) => callback(this.createRpcError(error), null)); + } + + public finishScenarioExecution(call: SUC, callback: sUD): void { + this._scenarioExecutionEndingProcessor.process(call.request as SCEER) + .then((res) => callback(null, res)) + .catch((error: Error) => callback(this.createRpcError(error), null)); + } + + public finishSpecExecution(call: SUC, callback: sUD): void { + this._specExecutionEndingProcessor.process(call.request as SPEER) + .then((res) => callback(null, res)) + .catch((error: Error) => callback(this.createRpcError(error), null)); + } + + public finishExecution(call: SUC, callback: sUD): void { + this._executionEndingProcessor.process(call.request as ExecutionEndingRequest) + .then((res) => callback(null, res)) + .catch((error: Error) => callback(this.createRpcError(error), null)); + } + + public cacheFile(call: SUC, callback: sUD): void { + try { + this._cacheFileRequestProcessor.process(call.request as CacheFileRequest); + callback(null, new Empty()); + } catch (error) { + callback(this.createRpcError(error), null); + } + } + + public getStepName(call: SUC, callback: sUD): void { + try { + callback(null, this._stepNameRequestProcessor.process(call.request as StepNameRequest)); + } catch (error) { + callback(this.createRpcError(error), null); + } + } + + public getGlobPatterns(call: SUC, callback: sUD): void { + try { + const patterns = Util.getImplDirs().map((dir: string) => { + return dir.split(sep).concat(['**', '*.ts']).join('/'); + }); + const res = new IFGPR(); + + res.setGlobpatternsList(patterns); + callback(null, res); + } catch (error) { + callback(this.createRpcError(error), null); + } + } + + public getStepNames(call: SUC, callback: sUD): void { + try { + const res = new StepNamesResponse(); + + res.setStepsList(registry.getStepTexts()); + callback(null, res); + } catch (error) { + callback(this.createRpcError(error), null); + } + } + + public getStepPositions(call: SUC, callback: sUD): void { + try { + callback(null, this._stepPositionsRequestProcessor.process(call.request as StepPositionsRequest)); + } catch (error) { + callback(this.createRpcError(error), null); + } + } + + public getImplementationFiles(call: SUC, callback: sUD): void { + try { + const res = new IFLR(); + + res.setImplementationfilepathsList(Util.getListOfFiles()); + callback(null, res); + } catch (error) { + callback(this.createRpcError(error), null); + } + } + + public implementStub(call: SUC, callback: sUD): void { + try { + callback(null, this._stubImplementationCodeRequestProcessor.process(call.request as StubImplementationCodeRequest)); + } catch (error) { + callback(this.createRpcError(error), null); + } + } + + public refactor(call: SUC, callback: sUD): void { + try { + callback(null, this._refactorRequestProcessor.process(call.request as RefactorRequest)); + } catch (error) { + callback(this.createRpcError(error), null); + } + } + + public kill(_call: SUC, callback: sUD): void { + this._server && this._server.forceShutdown(); + callback(null, new Empty()); + process.exit(0); + } + + private createRpcError(error: Error): RpcError { + return { code: Status.INTERNAL, message: error.message, stack: error.stack ?? '', details: `${error.message}${EOL}${error.stack ?? ''}` }; + } + + private getEmptExecutionResponse(): ESR { + const res = new ExecutionStatusResponse(); + const result = new ProtoExecutionResult(); + + result.setFailed(false); + res.setExecutionresult(result); + + return res; + } + +} \ No newline at end of file diff --git a/src/connection/GRPCHandler.ts b/src/connection/GRPCHandler.ts deleted file mode 100644 index c643adb..0000000 --- a/src/connection/GRPCHandler.ts +++ /dev/null @@ -1,224 +0,0 @@ -import { Server } from "grpc"; -import { gauge } from "../gen/messages"; -import { MessageProcessorFactory } from "../processors/MessageProcessorFactory"; - -type GRPCHandlerRequestType = - | gauge.messages.StepNamesRequest - | gauge.messages.ICacheFileRequest - | gauge.messages.StepPositionsRequest - | gauge.messages.ImplementationFileListRequest - | gauge.messages.StubImplementationCodeRequest - | gauge.messages.StepValidateRequest - | gauge.messages.RefactorRequest - | gauge.messages.StepNameRequest - | gauge.messages.ImplementationFileGlobPatternRequest; - -type GRPCHandlerCallType = { - request: GRPCHandlerRequestType; -}; - -export class GRPCHandler { - - private readonly _server: Server | null; - private readonly _factory: MessageProcessorFactory; - - constructor(server: Server | null, factory: MessageProcessorFactory) { - this._server = server; - this._factory = factory; - } - - public getStepNames( - call: GRPCHandlerCallType, - callback: gauge.messages.lspService.GetStepNamesCallback - ): void { - const mes = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.StepNamesRequest, - stepNamesRequest: call.request as gauge.messages.StepNamesRequest, - }); - - this._factory - .get(mes.messageType) - .process(mes) - .then((res) => - callback( - null, - res.stepNamesResponse as gauge.messages.StepNamesResponse - ) - ) - .catch((err) => callback(err, undefined)); - } - - public cacheFile( - call: GRPCHandlerCallType, - callback: gauge.messages.lspService.CacheFileCallback - ): void { - const mes = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.CacheFileRequest, - cacheFileRequest: call.request as gauge.messages.ICacheFileRequest, - }); - - this._factory - .get(mes.messageType) - .process(mes) - .then(() => callback(null, new gauge.messages.Empty())) - .catch((err) => callback(err, undefined)); - } - - public getStepPositions( - call: GRPCHandlerCallType, - callback: gauge.messages.lspService.GetStepPositionsCallback - ): void { - const mes = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.StepPositionsRequest, - stepPositionsRequest: call.request as gauge.messages.StepPositionsRequest, - }); - - this._factory - .get(mes.messageType) - .process(mes) - .then((res) => - callback( - null, - res.stepPositionsResponse as gauge.messages.StepPositionsResponse - ) - ) - .catch((err) => callback(err, undefined)); - } - - public getImplementationFiles( - call: GRPCHandlerCallType, - callback: gauge.messages.lspService.GetImplementationFilesCallback - ): void { - const mes = new gauge.messages.Message({ - messageId: 0, - messageType: - gauge.messages.Message.MessageType.ImplementationFileListRequest, - implementationFileListRequest: call.request as gauge.messages.ImplementationFileListRequest, - }); - - this._factory - .get(mes.messageType) - .process(mes) - .then((res) => - callback( - null, - res.implementationFileListResponse as gauge.messages.ImplementationFileListResponse - ) - ) - .catch((err) => callback(err, undefined)); - } - - public implementStub( - call: GRPCHandlerCallType, - callback: gauge.messages.lspService.ImplementStubCallback - ): void { - const mes = new gauge.messages.Message({ - messageId: 0, - messageType: - gauge.messages.Message.MessageType.StubImplementationCodeRequest, - stubImplementationCodeRequest: call.request as gauge.messages.StubImplementationCodeRequest, - }); - - this._factory - .get(mes.messageType) - .process(mes) - .then((res) => callback(null, res.fileDiff as gauge.messages.FileDiff)) - .catch((err) => callback(err, undefined)); - } - - public validateStep( - call: GRPCHandlerCallType, - callback: gauge.messages.lspService.ValidateStepCallback - ): void { - const mes = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.StepValidateRequest, - stepValidateRequest: call.request as gauge.messages.StepValidateRequest, - }); - - this._factory - .get(mes.messageType) - .process(mes) - .then((res) => - callback( - null, - res.stepValidateResponse as gauge.messages.StepValidateResponse - ) - ) - .catch((err) => callback(err, undefined)); - } - - public refactor( - call: GRPCHandlerCallType, - callback: gauge.messages.lspService.RefactorCallback - ): void { - const mes = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.RefactorRequest, - refactorRequest: call.request as gauge.messages.RefactorRequest, - }); - - this._factory - .get(mes.messageType) - .process(mes) - .then((res) => - callback(null, res.refactorResponse as gauge.messages.RefactorResponse) - ) - .catch((err) => callback(err, undefined)); - } - - public getStepName( - call: GRPCHandlerCallType, - callback: gauge.messages.lspService.GetStepNameCallback - ): void { - const mes = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.StepNameRequest, - stepNameRequest: call.request as gauge.messages.StepNameRequest, - }); - - this._factory - .get(mes.messageType) - .process(mes) - .then((res) => - callback(null, res.stepNameResponse as gauge.messages.StepNameResponse) - ) - .catch((err) => callback(err, undefined)); - } - - public getGlobPatterns( - call: GRPCHandlerCallType, - callback: gauge.messages.lspService.GetGlobPatternsCallback - ): void { - const mes = new gauge.messages.Message({ - messageId: 0, - messageType: - gauge.messages.Message.MessageType.ImplementationFileGlobPatternRequest, - implementationFileGlobPatternRequest: call.request as gauge.messages.ImplementationFileGlobPatternRequest, - }); - - this._factory - .get(mes.messageType) - .process(mes) - .then((res) => - callback( - null, - res.implementationFileGlobPatternResponse as gauge.messages.ImplementationFileGlobPatternResponse - ) - ) - .catch((err) => callback(err, undefined)); - } - - public killProcess( - call: GRPCHandlerCallType, - callback: gauge.messages.lspService.KillProcessCallback - ): void { - this._server && this._server.forceShutdown(); - callback(null, new gauge.messages.Empty()); - process.exit(0); - } - -} diff --git a/src/connection/GaugeConnection.ts b/src/connection/GaugeConnection.ts deleted file mode 100644 index b8e81b7..0000000 --- a/src/connection/GaugeConnection.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { EventEmitter } from "events"; -import { Socket } from "net"; -import { Reader } from "protobufjs"; -import { gauge } from "../gen/messages"; - -export class GaugeConnection extends EventEmitter { - - private readonly _socket: Socket; - private readonly _host: string; - - constructor() { - super(); - this._socket = new Socket(); - this._host = "127.0.0.1"; - } - - public start(): void { - this._socket.connect(GaugeConnection.getGaugeInternalPort(), this._host); - this._socket.on("data", (data: ArrayBuffer | SharedArrayBuffer) => { - this.messageHandler(data); - }); - this._socket.on("error", (err) => { - throw err; - }); - } - - public write(message: gauge.messages.IMessage): void { - const m = gauge.messages.Message.create(message); - const encoded = gauge.messages.Message.encodeDelimited(m); - - this._socket.write(encoded.finish()); - } - - private messageHandler(data: ArrayBuffer | SharedArrayBuffer): void { - const r = new Reader(Buffer.from(data)); - - while (r.pos < r.len) { - const m = gauge.messages.Message.decodeDelimited(r); - - this.emit("messageReceived", m); - } - } - - private static getGaugeInternalPort(): number { - const p = process.env.GAUGE_INTERNAL_PORT; - - if (p == "") { - throw `GAUGE_INTERNAL_PORT is not set`; - } - - return (p as unknown) as number; - } - -} diff --git a/src/connection/GaugeListener.ts b/src/connection/GaugeListener.ts deleted file mode 100644 index a8e3254..0000000 --- a/src/connection/GaugeListener.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { gauge } from "../gen/messages"; -import { MessageProcessorFactory } from "../processors/MessageProcessorFactory"; -import { GaugeConnection } from "./GaugeConnection"; - -export class GaugeListener { - - private readonly _processorFactory: MessageProcessorFactory; - - constructor(factory: MessageProcessorFactory) { - this._processorFactory = factory; - } - - public pollForMessages(): void { - const connection = new GaugeConnection(); - - this._processorFactory.on( - "messageProcessed", - (message: gauge.messages.IMessage) => { - connection.write(message); - } - ); - connection.on( - "messageReceived", - // eslint-disable-next-line @typescript-eslint/no-misused-promises - async (message: gauge.messages.IMessage) => { - await this._processorFactory.process(message); - } - ); - connection.start(); - } - -} diff --git a/src/gen/lsp.proto b/src/gen/lsp.proto deleted file mode 100644 index ba32043..0000000 --- a/src/gen/lsp.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2015 ThoughtWorks, Inc. - -// This file is part of gauge-proto. - -// gauge-proto is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// gauge-proto is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with gauge-proto. If not, see . - -syntax = "proto3"; -package gauge.messages; -option csharp_namespace = "Gauge.Messages"; -option java_package = "com.thoughtworks.gauge"; - -import "messages.proto"; - -service lspService { - rpc GetStepNames (StepNamesRequest) returns (StepNamesResponse){ - option deprecated = true; - }; - rpc CacheFile (CacheFileRequest) returns (Empty){ - option deprecated = true; - }; - rpc GetStepPositions (StepPositionsRequest) returns (StepPositionsResponse){ - option deprecated = true; - }; - rpc GetImplementationFiles (Empty) returns (ImplementationFileListResponse){ - option deprecated = true; - }; - rpc ImplementStub (StubImplementationCodeRequest) returns (FileDiff){ - option deprecated = true; - }; - rpc ValidateStep (StepValidateRequest) returns (StepValidateResponse){ - option deprecated = true; - }; - rpc Refactor (RefactorRequest) returns (RefactorResponse){ - option deprecated = true; - }; - rpc GetStepName (StepNameRequest) returns (StepNameResponse){ - option deprecated = true; - }; - rpc GetGlobPatterns (Empty) returns (ImplementationFileGlobPatternResponse){ - option deprecated = true; - }; - rpc KillProcess (KillProcessRequest) returns (Empty){ - option deprecated = true; - }; -} \ No newline at end of file diff --git a/src/gen/messages.d.ts b/src/gen/messages.d.ts deleted file mode 100644 index 8d8d3b1..0000000 --- a/src/gen/messages.d.ts +++ /dev/null @@ -1,11480 +0,0 @@ -import * as $protobuf from "protobufjs"; -/** Namespace gauge. */ -export namespace gauge { - - /** Namespace messages. */ - namespace messages { - - /** Properties of a GetProjectRootRequest. */ - interface IGetProjectRootRequest { - } - - /** Request to get the Root Directory of the project */ - class GetProjectRootRequest implements IGetProjectRootRequest { - - /** - * Constructs a new GetProjectRootRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IGetProjectRootRequest); - - /** - * Creates a new GetProjectRootRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetProjectRootRequest instance - */ - public static create(properties?: gauge.messages.IGetProjectRootRequest): gauge.messages.GetProjectRootRequest; - - /** - * Encodes the specified GetProjectRootRequest message. Does not implicitly {@link gauge.messages.GetProjectRootRequest.verify|verify} messages. - * @param message GetProjectRootRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IGetProjectRootRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetProjectRootRequest message, length delimited. Does not implicitly {@link gauge.messages.GetProjectRootRequest.verify|verify} messages. - * @param message GetProjectRootRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IGetProjectRootRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetProjectRootRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetProjectRootRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.GetProjectRootRequest; - - /** - * Decodes a GetProjectRootRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetProjectRootRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.GetProjectRootRequest; - - /** - * Verifies a GetProjectRootRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetProjectRootRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetProjectRootRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.GetProjectRootRequest; - - /** - * Creates a plain object from a GetProjectRootRequest message. Also converts values to other types if specified. - * @param message GetProjectRootRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.GetProjectRootRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetProjectRootRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetProjectRootResponse. */ - interface IGetProjectRootResponse { - - /** Holds the absolute path of the Project Root directory. */ - projectRoot?: (string|null); - } - - /** Response of GetProjectRootRequest. */ - class GetProjectRootResponse implements IGetProjectRootResponse { - - /** - * Constructs a new GetProjectRootResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IGetProjectRootResponse); - - /** Holds the absolute path of the Project Root directory. */ - public projectRoot: string; - - /** - * Creates a new GetProjectRootResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetProjectRootResponse instance - */ - public static create(properties?: gauge.messages.IGetProjectRootResponse): gauge.messages.GetProjectRootResponse; - - /** - * Encodes the specified GetProjectRootResponse message. Does not implicitly {@link gauge.messages.GetProjectRootResponse.verify|verify} messages. - * @param message GetProjectRootResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IGetProjectRootResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetProjectRootResponse message, length delimited. Does not implicitly {@link gauge.messages.GetProjectRootResponse.verify|verify} messages. - * @param message GetProjectRootResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IGetProjectRootResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetProjectRootResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetProjectRootResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.GetProjectRootResponse; - - /** - * Decodes a GetProjectRootResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetProjectRootResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.GetProjectRootResponse; - - /** - * Verifies a GetProjectRootResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetProjectRootResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetProjectRootResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.GetProjectRootResponse; - - /** - * Creates a plain object from a GetProjectRootResponse message. Also converts values to other types if specified. - * @param message GetProjectRootResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.GetProjectRootResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetProjectRootResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetInstallationRootRequest. */ - interface IGetInstallationRootRequest { - } - - /** Request to get the Root Directory of the Gauge installation */ - class GetInstallationRootRequest implements IGetInstallationRootRequest { - - /** - * Constructs a new GetInstallationRootRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IGetInstallationRootRequest); - - /** - * Creates a new GetInstallationRootRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetInstallationRootRequest instance - */ - public static create(properties?: gauge.messages.IGetInstallationRootRequest): gauge.messages.GetInstallationRootRequest; - - /** - * Encodes the specified GetInstallationRootRequest message. Does not implicitly {@link gauge.messages.GetInstallationRootRequest.verify|verify} messages. - * @param message GetInstallationRootRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IGetInstallationRootRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetInstallationRootRequest message, length delimited. Does not implicitly {@link gauge.messages.GetInstallationRootRequest.verify|verify} messages. - * @param message GetInstallationRootRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IGetInstallationRootRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetInstallationRootRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetInstallationRootRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.GetInstallationRootRequest; - - /** - * Decodes a GetInstallationRootRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetInstallationRootRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.GetInstallationRootRequest; - - /** - * Verifies a GetInstallationRootRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetInstallationRootRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetInstallationRootRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.GetInstallationRootRequest; - - /** - * Creates a plain object from a GetInstallationRootRequest message. Also converts values to other types if specified. - * @param message GetInstallationRootRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.GetInstallationRootRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetInstallationRootRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetInstallationRootResponse. */ - interface IGetInstallationRootResponse { - - /** Holds the absolute path of the Gauge installation directory */ - installationRoot?: (string|null); - } - - /** Response of GetInstallationRootRequest */ - class GetInstallationRootResponse implements IGetInstallationRootResponse { - - /** - * Constructs a new GetInstallationRootResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IGetInstallationRootResponse); - - /** Holds the absolute path of the Gauge installation directory */ - public installationRoot: string; - - /** - * Creates a new GetInstallationRootResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetInstallationRootResponse instance - */ - public static create(properties?: gauge.messages.IGetInstallationRootResponse): gauge.messages.GetInstallationRootResponse; - - /** - * Encodes the specified GetInstallationRootResponse message. Does not implicitly {@link gauge.messages.GetInstallationRootResponse.verify|verify} messages. - * @param message GetInstallationRootResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IGetInstallationRootResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetInstallationRootResponse message, length delimited. Does not implicitly {@link gauge.messages.GetInstallationRootResponse.verify|verify} messages. - * @param message GetInstallationRootResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IGetInstallationRootResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetInstallationRootResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetInstallationRootResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.GetInstallationRootResponse; - - /** - * Decodes a GetInstallationRootResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetInstallationRootResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.GetInstallationRootResponse; - - /** - * Verifies a GetInstallationRootResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetInstallationRootResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetInstallationRootResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.GetInstallationRootResponse; - - /** - * Creates a plain object from a GetInstallationRootResponse message. Also converts values to other types if specified. - * @param message GetInstallationRootResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.GetInstallationRootResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetInstallationRootResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetAllStepsRequest. */ - interface IGetAllStepsRequest { - } - - /** Request to get all Steps in the project */ - class GetAllStepsRequest implements IGetAllStepsRequest { - - /** - * Constructs a new GetAllStepsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IGetAllStepsRequest); - - /** - * Creates a new GetAllStepsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAllStepsRequest instance - */ - public static create(properties?: gauge.messages.IGetAllStepsRequest): gauge.messages.GetAllStepsRequest; - - /** - * Encodes the specified GetAllStepsRequest message. Does not implicitly {@link gauge.messages.GetAllStepsRequest.verify|verify} messages. - * @param message GetAllStepsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IGetAllStepsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetAllStepsRequest message, length delimited. Does not implicitly {@link gauge.messages.GetAllStepsRequest.verify|verify} messages. - * @param message GetAllStepsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IGetAllStepsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAllStepsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAllStepsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.GetAllStepsRequest; - - /** - * Decodes a GetAllStepsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAllStepsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.GetAllStepsRequest; - - /** - * Verifies a GetAllStepsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetAllStepsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetAllStepsRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.GetAllStepsRequest; - - /** - * Creates a plain object from a GetAllStepsRequest message. Also converts values to other types if specified. - * @param message GetAllStepsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.GetAllStepsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetAllStepsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetAllStepsResponse. */ - interface IGetAllStepsResponse { - - /** Holds a collection of Steps that are defined in the project. */ - allSteps?: (gauge.messages.IProtoStepValue[]|null); - } - - /** Response to GetAllStepsRequest */ - class GetAllStepsResponse implements IGetAllStepsResponse { - - /** - * Constructs a new GetAllStepsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IGetAllStepsResponse); - - /** Holds a collection of Steps that are defined in the project. */ - public allSteps: gauge.messages.IProtoStepValue[]; - - /** - * Creates a new GetAllStepsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAllStepsResponse instance - */ - public static create(properties?: gauge.messages.IGetAllStepsResponse): gauge.messages.GetAllStepsResponse; - - /** - * Encodes the specified GetAllStepsResponse message. Does not implicitly {@link gauge.messages.GetAllStepsResponse.verify|verify} messages. - * @param message GetAllStepsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IGetAllStepsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetAllStepsResponse message, length delimited. Does not implicitly {@link gauge.messages.GetAllStepsResponse.verify|verify} messages. - * @param message GetAllStepsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IGetAllStepsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAllStepsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAllStepsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.GetAllStepsResponse; - - /** - * Decodes a GetAllStepsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAllStepsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.GetAllStepsResponse; - - /** - * Verifies a GetAllStepsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetAllStepsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetAllStepsResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.GetAllStepsResponse; - - /** - * Creates a plain object from a GetAllStepsResponse message. Also converts values to other types if specified. - * @param message GetAllStepsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.GetAllStepsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetAllStepsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a SpecsRequest. */ - interface ISpecsRequest { - - /** SpecsRequest specs */ - specs?: (string[]|null); - } - - /** Request to get all Specs in the project */ - class SpecsRequest implements ISpecsRequest { - - /** - * Constructs a new SpecsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.ISpecsRequest); - - /** SpecsRequest specs. */ - public specs: string[]; - - /** - * Creates a new SpecsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SpecsRequest instance - */ - public static create(properties?: gauge.messages.ISpecsRequest): gauge.messages.SpecsRequest; - - /** - * Encodes the specified SpecsRequest message. Does not implicitly {@link gauge.messages.SpecsRequest.verify|verify} messages. - * @param message SpecsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.ISpecsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SpecsRequest message, length delimited. Does not implicitly {@link gauge.messages.SpecsRequest.verify|verify} messages. - * @param message SpecsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.ISpecsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SpecsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SpecsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.SpecsRequest; - - /** - * Decodes a SpecsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SpecsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.SpecsRequest; - - /** - * Verifies a SpecsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SpecsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SpecsRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.SpecsRequest; - - /** - * Creates a plain object from a SpecsRequest message. Also converts values to other types if specified. - * @param message SpecsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.SpecsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SpecsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a SpecsResponse. */ - interface ISpecsResponse { - - /** Holds a collection of Spec details. */ - details?: (gauge.messages.SpecsResponse.ISpecDetail[]|null); - } - - /** Response to GetAllSpecsRequest */ - class SpecsResponse implements ISpecsResponse { - - /** - * Constructs a new SpecsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.ISpecsResponse); - - /** Holds a collection of Spec details. */ - public details: gauge.messages.SpecsResponse.ISpecDetail[]; - - /** - * Creates a new SpecsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SpecsResponse instance - */ - public static create(properties?: gauge.messages.ISpecsResponse): gauge.messages.SpecsResponse; - - /** - * Encodes the specified SpecsResponse message. Does not implicitly {@link gauge.messages.SpecsResponse.verify|verify} messages. - * @param message SpecsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.ISpecsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SpecsResponse message, length delimited. Does not implicitly {@link gauge.messages.SpecsResponse.verify|verify} messages. - * @param message SpecsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.ISpecsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SpecsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SpecsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.SpecsResponse; - - /** - * Decodes a SpecsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SpecsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.SpecsResponse; - - /** - * Verifies a SpecsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SpecsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SpecsResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.SpecsResponse; - - /** - * Creates a plain object from a SpecsResponse message. Also converts values to other types if specified. - * @param message SpecsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.SpecsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SpecsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace SpecsResponse { - - /** Properties of a SpecDetail. */ - interface ISpecDetail { - - /** Holds a collection of Specs that are defined in the project. */ - spec?: (gauge.messages.IProtoSpec|null); - - /** Holds a collection of parse errors present in the above spec. */ - parseErrors?: (gauge.messages.IError[]|null); - } - - /** Represents a SpecDetail. */ - class SpecDetail implements ISpecDetail { - - /** - * Constructs a new SpecDetail. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.SpecsResponse.ISpecDetail); - - /** Holds a collection of Specs that are defined in the project. */ - public spec?: (gauge.messages.IProtoSpec|null); - - /** Holds a collection of parse errors present in the above spec. */ - public parseErrors: gauge.messages.IError[]; - - /** - * Creates a new SpecDetail instance using the specified properties. - * @param [properties] Properties to set - * @returns SpecDetail instance - */ - public static create(properties?: gauge.messages.SpecsResponse.ISpecDetail): gauge.messages.SpecsResponse.SpecDetail; - - /** - * Encodes the specified SpecDetail message. Does not implicitly {@link gauge.messages.SpecsResponse.SpecDetail.verify|verify} messages. - * @param message SpecDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.SpecsResponse.ISpecDetail, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SpecDetail message, length delimited. Does not implicitly {@link gauge.messages.SpecsResponse.SpecDetail.verify|verify} messages. - * @param message SpecDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.SpecsResponse.ISpecDetail, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SpecDetail message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SpecDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.SpecsResponse.SpecDetail; - - /** - * Decodes a SpecDetail message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SpecDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.SpecsResponse.SpecDetail; - - /** - * Verifies a SpecDetail message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SpecDetail message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SpecDetail - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.SpecsResponse.SpecDetail; - - /** - * Creates a plain object from a SpecDetail message. Also converts values to other types if specified. - * @param message SpecDetail - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.SpecsResponse.SpecDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SpecDetail to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a GetAllConceptsRequest. */ - interface IGetAllConceptsRequest { - } - - /** Request to get all Concepts in the project */ - class GetAllConceptsRequest implements IGetAllConceptsRequest { - - /** - * Constructs a new GetAllConceptsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IGetAllConceptsRequest); - - /** - * Creates a new GetAllConceptsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAllConceptsRequest instance - */ - public static create(properties?: gauge.messages.IGetAllConceptsRequest): gauge.messages.GetAllConceptsRequest; - - /** - * Encodes the specified GetAllConceptsRequest message. Does not implicitly {@link gauge.messages.GetAllConceptsRequest.verify|verify} messages. - * @param message GetAllConceptsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IGetAllConceptsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetAllConceptsRequest message, length delimited. Does not implicitly {@link gauge.messages.GetAllConceptsRequest.verify|verify} messages. - * @param message GetAllConceptsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IGetAllConceptsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAllConceptsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAllConceptsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.GetAllConceptsRequest; - - /** - * Decodes a GetAllConceptsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAllConceptsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.GetAllConceptsRequest; - - /** - * Verifies a GetAllConceptsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetAllConceptsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetAllConceptsRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.GetAllConceptsRequest; - - /** - * Creates a plain object from a GetAllConceptsRequest message. Also converts values to other types if specified. - * @param message GetAllConceptsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.GetAllConceptsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetAllConceptsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetAllConceptsResponse. */ - interface IGetAllConceptsResponse { - - /** Holds a collection of Concepts that are defined in the project. */ - concepts?: (gauge.messages.IConceptInfo[]|null); - } - - /** Response to GetAllConceptsResponse */ - class GetAllConceptsResponse implements IGetAllConceptsResponse { - - /** - * Constructs a new GetAllConceptsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IGetAllConceptsResponse); - - /** Holds a collection of Concepts that are defined in the project. */ - public concepts: gauge.messages.IConceptInfo[]; - - /** - * Creates a new GetAllConceptsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAllConceptsResponse instance - */ - public static create(properties?: gauge.messages.IGetAllConceptsResponse): gauge.messages.GetAllConceptsResponse; - - /** - * Encodes the specified GetAllConceptsResponse message. Does not implicitly {@link gauge.messages.GetAllConceptsResponse.verify|verify} messages. - * @param message GetAllConceptsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IGetAllConceptsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetAllConceptsResponse message, length delimited. Does not implicitly {@link gauge.messages.GetAllConceptsResponse.verify|verify} messages. - * @param message GetAllConceptsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IGetAllConceptsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAllConceptsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAllConceptsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.GetAllConceptsResponse; - - /** - * Decodes a GetAllConceptsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAllConceptsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.GetAllConceptsResponse; - - /** - * Verifies a GetAllConceptsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetAllConceptsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetAllConceptsResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.GetAllConceptsResponse; - - /** - * Creates a plain object from a GetAllConceptsResponse message. Also converts values to other types if specified. - * @param message GetAllConceptsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.GetAllConceptsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetAllConceptsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ConceptInfo. */ - interface IConceptInfo { - - /** The text that defines a concept */ - stepValue?: (gauge.messages.IProtoStepValue|null); - - /** The absolute path to the file that contains the Concept */ - filepath?: (string|null); - - /** The line number in the file where the concept is defined. */ - lineNumber?: (number|null); - } - - /** Details of a Concept */ - class ConceptInfo implements IConceptInfo { - - /** - * Constructs a new ConceptInfo. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IConceptInfo); - - /** The text that defines a concept */ - public stepValue?: (gauge.messages.IProtoStepValue|null); - - /** The absolute path to the file that contains the Concept */ - public filepath: string; - - /** The line number in the file where the concept is defined. */ - public lineNumber: number; - - /** - * Creates a new ConceptInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ConceptInfo instance - */ - public static create(properties?: gauge.messages.IConceptInfo): gauge.messages.ConceptInfo; - - /** - * Encodes the specified ConceptInfo message. Does not implicitly {@link gauge.messages.ConceptInfo.verify|verify} messages. - * @param message ConceptInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IConceptInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConceptInfo message, length delimited. Does not implicitly {@link gauge.messages.ConceptInfo.verify|verify} messages. - * @param message ConceptInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IConceptInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConceptInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConceptInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ConceptInfo; - - /** - * Decodes a ConceptInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConceptInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ConceptInfo; - - /** - * Verifies a ConceptInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConceptInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConceptInfo - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ConceptInfo; - - /** - * Creates a plain object from a ConceptInfo message. Also converts values to other types if specified. - * @param message ConceptInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ConceptInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ConceptInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetStepValueRequest. */ - interface IGetStepValueRequest { - - /** The text of the Step. */ - stepText?: (string|null); - - /** Flag to indicate if the Step has an inline table. */ - hasInlineTable?: (boolean|null); - } - - /** Request to get a Step Value. */ - class GetStepValueRequest implements IGetStepValueRequest { - - /** - * Constructs a new GetStepValueRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IGetStepValueRequest); - - /** The text of the Step. */ - public stepText: string; - - /** Flag to indicate if the Step has an inline table. */ - public hasInlineTable: boolean; - - /** - * Creates a new GetStepValueRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetStepValueRequest instance - */ - public static create(properties?: gauge.messages.IGetStepValueRequest): gauge.messages.GetStepValueRequest; - - /** - * Encodes the specified GetStepValueRequest message. Does not implicitly {@link gauge.messages.GetStepValueRequest.verify|verify} messages. - * @param message GetStepValueRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IGetStepValueRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetStepValueRequest message, length delimited. Does not implicitly {@link gauge.messages.GetStepValueRequest.verify|verify} messages. - * @param message GetStepValueRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IGetStepValueRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetStepValueRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetStepValueRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.GetStepValueRequest; - - /** - * Decodes a GetStepValueRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetStepValueRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.GetStepValueRequest; - - /** - * Verifies a GetStepValueRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetStepValueRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetStepValueRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.GetStepValueRequest; - - /** - * Creates a plain object from a GetStepValueRequest message. Also converts values to other types if specified. - * @param message GetStepValueRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.GetStepValueRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetStepValueRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetStepValueResponse. */ - interface IGetStepValueResponse { - - /** The Step corresponding to the request provided. */ - stepValue?: (gauge.messages.IProtoStepValue|null); - } - - /** Response to GetStepValueRequest */ - class GetStepValueResponse implements IGetStepValueResponse { - - /** - * Constructs a new GetStepValueResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IGetStepValueResponse); - - /** The Step corresponding to the request provided. */ - public stepValue?: (gauge.messages.IProtoStepValue|null); - - /** - * Creates a new GetStepValueResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetStepValueResponse instance - */ - public static create(properties?: gauge.messages.IGetStepValueResponse): gauge.messages.GetStepValueResponse; - - /** - * Encodes the specified GetStepValueResponse message. Does not implicitly {@link gauge.messages.GetStepValueResponse.verify|verify} messages. - * @param message GetStepValueResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IGetStepValueResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetStepValueResponse message, length delimited. Does not implicitly {@link gauge.messages.GetStepValueResponse.verify|verify} messages. - * @param message GetStepValueResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IGetStepValueResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetStepValueResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetStepValueResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.GetStepValueResponse; - - /** - * Decodes a GetStepValueResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetStepValueResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.GetStepValueResponse; - - /** - * Verifies a GetStepValueResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetStepValueResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetStepValueResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.GetStepValueResponse; - - /** - * Creates a plain object from a GetStepValueResponse message. Also converts values to other types if specified. - * @param message GetStepValueResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.GetStepValueResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetStepValueResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetLanguagePluginLibPathRequest. */ - interface IGetLanguagePluginLibPathRequest { - - /** The language to locate the lib directory for. */ - language?: (string|null); - } - - /** Request to get the location of language plugin's Lib directory */ - class GetLanguagePluginLibPathRequest implements IGetLanguagePluginLibPathRequest { - - /** - * Constructs a new GetLanguagePluginLibPathRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IGetLanguagePluginLibPathRequest); - - /** The language to locate the lib directory for. */ - public language: string; - - /** - * Creates a new GetLanguagePluginLibPathRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetLanguagePluginLibPathRequest instance - */ - public static create(properties?: gauge.messages.IGetLanguagePluginLibPathRequest): gauge.messages.GetLanguagePluginLibPathRequest; - - /** - * Encodes the specified GetLanguagePluginLibPathRequest message. Does not implicitly {@link gauge.messages.GetLanguagePluginLibPathRequest.verify|verify} messages. - * @param message GetLanguagePluginLibPathRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IGetLanguagePluginLibPathRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetLanguagePluginLibPathRequest message, length delimited. Does not implicitly {@link gauge.messages.GetLanguagePluginLibPathRequest.verify|verify} messages. - * @param message GetLanguagePluginLibPathRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IGetLanguagePluginLibPathRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetLanguagePluginLibPathRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetLanguagePluginLibPathRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.GetLanguagePluginLibPathRequest; - - /** - * Decodes a GetLanguagePluginLibPathRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetLanguagePluginLibPathRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.GetLanguagePluginLibPathRequest; - - /** - * Verifies a GetLanguagePluginLibPathRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetLanguagePluginLibPathRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetLanguagePluginLibPathRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.GetLanguagePluginLibPathRequest; - - /** - * Creates a plain object from a GetLanguagePluginLibPathRequest message. Also converts values to other types if specified. - * @param message GetLanguagePluginLibPathRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.GetLanguagePluginLibPathRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetLanguagePluginLibPathRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetLanguagePluginLibPathResponse. */ - interface IGetLanguagePluginLibPathResponse { - - /** Absolute path to the Lib directory of the language. */ - path?: (string|null); - } - - /** Response to GetLanguagePluginLibPathRequest */ - class GetLanguagePluginLibPathResponse implements IGetLanguagePluginLibPathResponse { - - /** - * Constructs a new GetLanguagePluginLibPathResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IGetLanguagePluginLibPathResponse); - - /** Absolute path to the Lib directory of the language. */ - public path: string; - - /** - * Creates a new GetLanguagePluginLibPathResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetLanguagePluginLibPathResponse instance - */ - public static create(properties?: gauge.messages.IGetLanguagePluginLibPathResponse): gauge.messages.GetLanguagePluginLibPathResponse; - - /** - * Encodes the specified GetLanguagePluginLibPathResponse message. Does not implicitly {@link gauge.messages.GetLanguagePluginLibPathResponse.verify|verify} messages. - * @param message GetLanguagePluginLibPathResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IGetLanguagePluginLibPathResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetLanguagePluginLibPathResponse message, length delimited. Does not implicitly {@link gauge.messages.GetLanguagePluginLibPathResponse.verify|verify} messages. - * @param message GetLanguagePluginLibPathResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IGetLanguagePluginLibPathResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetLanguagePluginLibPathResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetLanguagePluginLibPathResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.GetLanguagePluginLibPathResponse; - - /** - * Decodes a GetLanguagePluginLibPathResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetLanguagePluginLibPathResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.GetLanguagePluginLibPathResponse; - - /** - * Verifies a GetLanguagePluginLibPathResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetLanguagePluginLibPathResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetLanguagePluginLibPathResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.GetLanguagePluginLibPathResponse; - - /** - * Creates a plain object from a GetLanguagePluginLibPathResponse message. Also converts values to other types if specified. - * @param message GetLanguagePluginLibPathResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.GetLanguagePluginLibPathResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetLanguagePluginLibPathResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ErrorResponse. */ - interface IErrorResponse { - - /** Actual error message */ - error?: (string|null); - } - - /** A generic failure response */ - class ErrorResponse implements IErrorResponse { - - /** - * Constructs a new ErrorResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IErrorResponse); - - /** Actual error message */ - public error: string; - - /** - * Creates a new ErrorResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ErrorResponse instance - */ - public static create(properties?: gauge.messages.IErrorResponse): gauge.messages.ErrorResponse; - - /** - * Encodes the specified ErrorResponse message. Does not implicitly {@link gauge.messages.ErrorResponse.verify|verify} messages. - * @param message ErrorResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IErrorResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ErrorResponse message, length delimited. Does not implicitly {@link gauge.messages.ErrorResponse.verify|verify} messages. - * @param message ErrorResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IErrorResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ErrorResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ErrorResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ErrorResponse; - - /** - * Decodes an ErrorResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ErrorResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ErrorResponse; - - /** - * Verifies an ErrorResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ErrorResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ErrorResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ErrorResponse; - - /** - * Creates a plain object from an ErrorResponse message. Also converts values to other types if specified. - * @param message ErrorResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ErrorResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ErrorResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a PerformRefactoringRequest. */ - interface IPerformRefactoringRequest { - - /** Step to refactor */ - oldStep?: (string|null); - - /** Change to be made */ - newStep?: (string|null); - } - - /** Request to perform a Refactor */ - class PerformRefactoringRequest implements IPerformRefactoringRequest { - - /** - * Constructs a new PerformRefactoringRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IPerformRefactoringRequest); - - /** Step to refactor */ - public oldStep: string; - - /** Change to be made */ - public newStep: string; - - /** - * Creates a new PerformRefactoringRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PerformRefactoringRequest instance - */ - public static create(properties?: gauge.messages.IPerformRefactoringRequest): gauge.messages.PerformRefactoringRequest; - - /** - * Encodes the specified PerformRefactoringRequest message. Does not implicitly {@link gauge.messages.PerformRefactoringRequest.verify|verify} messages. - * @param message PerformRefactoringRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IPerformRefactoringRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PerformRefactoringRequest message, length delimited. Does not implicitly {@link gauge.messages.PerformRefactoringRequest.verify|verify} messages. - * @param message PerformRefactoringRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IPerformRefactoringRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PerformRefactoringRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PerformRefactoringRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.PerformRefactoringRequest; - - /** - * Decodes a PerformRefactoringRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PerformRefactoringRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.PerformRefactoringRequest; - - /** - * Verifies a PerformRefactoringRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PerformRefactoringRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PerformRefactoringRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.PerformRefactoringRequest; - - /** - * Creates a plain object from a PerformRefactoringRequest message. Also converts values to other types if specified. - * @param message PerformRefactoringRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.PerformRefactoringRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PerformRefactoringRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a PerformRefactoringResponse. */ - interface IPerformRefactoringResponse { - - /** Flag indicating Success */ - success?: (boolean|null); - - /** Error message if the refactoring was unsuccessful. */ - errors?: (string[]|null); - - /** Collection of files that were changed as part of the Refactoring. */ - filesChanged?: (string[]|null); - } - - /** Response to PerformRefactoringRequest */ - class PerformRefactoringResponse implements IPerformRefactoringResponse { - - /** - * Constructs a new PerformRefactoringResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IPerformRefactoringResponse); - - /** Flag indicating Success */ - public success: boolean; - - /** Error message if the refactoring was unsuccessful. */ - public errors: string[]; - - /** Collection of files that were changed as part of the Refactoring. */ - public filesChanged: string[]; - - /** - * Creates a new PerformRefactoringResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PerformRefactoringResponse instance - */ - public static create(properties?: gauge.messages.IPerformRefactoringResponse): gauge.messages.PerformRefactoringResponse; - - /** - * Encodes the specified PerformRefactoringResponse message. Does not implicitly {@link gauge.messages.PerformRefactoringResponse.verify|verify} messages. - * @param message PerformRefactoringResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IPerformRefactoringResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PerformRefactoringResponse message, length delimited. Does not implicitly {@link gauge.messages.PerformRefactoringResponse.verify|verify} messages. - * @param message PerformRefactoringResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IPerformRefactoringResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PerformRefactoringResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PerformRefactoringResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.PerformRefactoringResponse; - - /** - * Decodes a PerformRefactoringResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PerformRefactoringResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.PerformRefactoringResponse; - - /** - * Verifies a PerformRefactoringResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PerformRefactoringResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PerformRefactoringResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.PerformRefactoringResponse; - - /** - * Creates a plain object from a PerformRefactoringResponse message. Also converts values to other types if specified. - * @param message PerformRefactoringResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.PerformRefactoringResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PerformRefactoringResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ExtractConceptRequest. */ - interface IExtractConceptRequest { - - /** The Concept name given by the user */ - conceptName?: (gauge.messages.Istep|null); - - /** steps to extract */ - steps?: (gauge.messages.Istep[]|null); - - /** Flag indicating if refactoring should be done across project */ - changeAcrossProject?: (boolean|null); - - /** The concept filename in which extracted concept will be added */ - conceptFileName?: (string|null); - - /** Info related to selected text, only if changeAcrossProject is false */ - selectedTextInfo?: (gauge.messages.ItextInfo|null); - } - - /** Request to perform Extract to Concept refactoring */ - class ExtractConceptRequest implements IExtractConceptRequest { - - /** - * Constructs a new ExtractConceptRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IExtractConceptRequest); - - /** The Concept name given by the user */ - public conceptName?: (gauge.messages.Istep|null); - - /** steps to extract */ - public steps: gauge.messages.Istep[]; - - /** Flag indicating if refactoring should be done across project */ - public changeAcrossProject: boolean; - - /** The concept filename in which extracted concept will be added */ - public conceptFileName: string; - - /** Info related to selected text, only if changeAcrossProject is false */ - public selectedTextInfo?: (gauge.messages.ItextInfo|null); - - /** - * Creates a new ExtractConceptRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExtractConceptRequest instance - */ - public static create(properties?: gauge.messages.IExtractConceptRequest): gauge.messages.ExtractConceptRequest; - - /** - * Encodes the specified ExtractConceptRequest message. Does not implicitly {@link gauge.messages.ExtractConceptRequest.verify|verify} messages. - * @param message ExtractConceptRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IExtractConceptRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExtractConceptRequest message, length delimited. Does not implicitly {@link gauge.messages.ExtractConceptRequest.verify|verify} messages. - * @param message ExtractConceptRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IExtractConceptRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExtractConceptRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExtractConceptRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ExtractConceptRequest; - - /** - * Decodes an ExtractConceptRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExtractConceptRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ExtractConceptRequest; - - /** - * Verifies an ExtractConceptRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExtractConceptRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExtractConceptRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ExtractConceptRequest; - - /** - * Creates a plain object from an ExtractConceptRequest message. Also converts values to other types if specified. - * @param message ExtractConceptRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ExtractConceptRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExtractConceptRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a textInfo. */ - interface ItextInfo { - - /** The filename from where concept is being extracted */ - fileName?: (string|null); - - /** storing the starting and ending line number of selected text */ - startingLineNo?: (number|null); - - /** textInfo endLineNo */ - endLineNo?: (number|null); - } - - /** Represents a textInfo. */ - class textInfo implements ItextInfo { - - /** - * Constructs a new textInfo. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.ItextInfo); - - /** The filename from where concept is being extracted */ - public fileName: string; - - /** storing the starting and ending line number of selected text */ - public startingLineNo: number; - - /** textInfo endLineNo. */ - public endLineNo: number; - - /** - * Creates a new textInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns textInfo instance - */ - public static create(properties?: gauge.messages.ItextInfo): gauge.messages.textInfo; - - /** - * Encodes the specified textInfo message. Does not implicitly {@link gauge.messages.textInfo.verify|verify} messages. - * @param message textInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.ItextInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified textInfo message, length delimited. Does not implicitly {@link gauge.messages.textInfo.verify|verify} messages. - * @param message textInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.ItextInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a textInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns textInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.textInfo; - - /** - * Decodes a textInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns textInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.textInfo; - - /** - * Verifies a textInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a textInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns textInfo - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.textInfo; - - /** - * Creates a plain object from a textInfo message. Also converts values to other types if specified. - * @param message textInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.textInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this textInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a step. */ - interface Istep { - - /** name of the step */ - name?: (string|null); - - /** table present in step as parameter */ - table?: (string|null); - - /** name of table in concept heading, if it comes as a param to concept */ - paramTableName?: (string|null); - } - - /** Represents a step. */ - class step implements Istep { - - /** - * Constructs a new step. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.Istep); - - /** name of the step */ - public name: string; - - /** table present in step as parameter */ - public table: string; - - /** name of table in concept heading, if it comes as a param to concept */ - public paramTableName: string; - - /** - * Creates a new step instance using the specified properties. - * @param [properties] Properties to set - * @returns step instance - */ - public static create(properties?: gauge.messages.Istep): gauge.messages.step; - - /** - * Encodes the specified step message. Does not implicitly {@link gauge.messages.step.verify|verify} messages. - * @param message step message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.Istep, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified step message, length delimited. Does not implicitly {@link gauge.messages.step.verify|verify} messages. - * @param message step message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.Istep, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a step message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns step - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.step; - - /** - * Decodes a step message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns step - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.step; - - /** - * Verifies a step message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a step message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns step - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.step; - - /** - * Creates a plain object from a step message. Also converts values to other types if specified. - * @param message step - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.step, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this step to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ExtractConceptResponse. */ - interface IExtractConceptResponse { - - /** Flag indicating Success */ - isSuccess?: (boolean|null); - - /** Error message if the refactoring was unsuccessful. */ - error?: (string|null); - - /** Collection of files that were changed as part of the Refactoring. */ - filesChanged?: (string[]|null); - } - - /** Response to perform Extract to Concept refactoring */ - class ExtractConceptResponse implements IExtractConceptResponse { - - /** - * Constructs a new ExtractConceptResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IExtractConceptResponse); - - /** Flag indicating Success */ - public isSuccess: boolean; - - /** Error message if the refactoring was unsuccessful. */ - public error: string; - - /** Collection of files that were changed as part of the Refactoring. */ - public filesChanged: string[]; - - /** - * Creates a new ExtractConceptResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExtractConceptResponse instance - */ - public static create(properties?: gauge.messages.IExtractConceptResponse): gauge.messages.ExtractConceptResponse; - - /** - * Encodes the specified ExtractConceptResponse message. Does not implicitly {@link gauge.messages.ExtractConceptResponse.verify|verify} messages. - * @param message ExtractConceptResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IExtractConceptResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExtractConceptResponse message, length delimited. Does not implicitly {@link gauge.messages.ExtractConceptResponse.verify|verify} messages. - * @param message ExtractConceptResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IExtractConceptResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExtractConceptResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExtractConceptResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ExtractConceptResponse; - - /** - * Decodes an ExtractConceptResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExtractConceptResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ExtractConceptResponse; - - /** - * Verifies an ExtractConceptResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExtractConceptResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExtractConceptResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ExtractConceptResponse; - - /** - * Creates a plain object from an ExtractConceptResponse message. Also converts values to other types if specified. - * @param message ExtractConceptResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ExtractConceptResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExtractConceptResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a FormatSpecsRequest. */ - interface IFormatSpecsRequest { - - /** Specs to be formatted */ - specs?: (string[]|null); - } - - /** Request to format spec files */ - class FormatSpecsRequest implements IFormatSpecsRequest { - - /** - * Constructs a new FormatSpecsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IFormatSpecsRequest); - - /** Specs to be formatted */ - public specs: string[]; - - /** - * Creates a new FormatSpecsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns FormatSpecsRequest instance - */ - public static create(properties?: gauge.messages.IFormatSpecsRequest): gauge.messages.FormatSpecsRequest; - - /** - * Encodes the specified FormatSpecsRequest message. Does not implicitly {@link gauge.messages.FormatSpecsRequest.verify|verify} messages. - * @param message FormatSpecsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IFormatSpecsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FormatSpecsRequest message, length delimited. Does not implicitly {@link gauge.messages.FormatSpecsRequest.verify|verify} messages. - * @param message FormatSpecsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IFormatSpecsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FormatSpecsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FormatSpecsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.FormatSpecsRequest; - - /** - * Decodes a FormatSpecsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FormatSpecsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.FormatSpecsRequest; - - /** - * Verifies a FormatSpecsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FormatSpecsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FormatSpecsRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.FormatSpecsRequest; - - /** - * Creates a plain object from a FormatSpecsRequest message. Also converts values to other types if specified. - * @param message FormatSpecsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.FormatSpecsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FormatSpecsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a FormatSpecsResponse. */ - interface IFormatSpecsResponse { - - /** Errors occurred on formatting */ - errors?: (string[]|null); - - /** Warnings occurred on formatting */ - warnings?: (string[]|null); - } - - /** Response on formatting spec files */ - class FormatSpecsResponse implements IFormatSpecsResponse { - - /** - * Constructs a new FormatSpecsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IFormatSpecsResponse); - - /** Errors occurred on formatting */ - public errors: string[]; - - /** Warnings occurred on formatting */ - public warnings: string[]; - - /** - * Creates a new FormatSpecsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns FormatSpecsResponse instance - */ - public static create(properties?: gauge.messages.IFormatSpecsResponse): gauge.messages.FormatSpecsResponse; - - /** - * Encodes the specified FormatSpecsResponse message. Does not implicitly {@link gauge.messages.FormatSpecsResponse.verify|verify} messages. - * @param message FormatSpecsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IFormatSpecsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FormatSpecsResponse message, length delimited. Does not implicitly {@link gauge.messages.FormatSpecsResponse.verify|verify} messages. - * @param message FormatSpecsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IFormatSpecsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FormatSpecsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FormatSpecsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.FormatSpecsResponse; - - /** - * Decodes a FormatSpecsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FormatSpecsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.FormatSpecsResponse; - - /** - * Verifies a FormatSpecsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FormatSpecsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FormatSpecsResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.FormatSpecsResponse; - - /** - * Creates a plain object from a FormatSpecsResponse message. Also converts values to other types if specified. - * @param message FormatSpecsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.FormatSpecsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FormatSpecsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UnsupportedApiMessageResponse. */ - interface IUnsupportedApiMessageResponse { - } - - /** Response when a API message request is not supported. */ - class UnsupportedApiMessageResponse implements IUnsupportedApiMessageResponse { - - /** - * Constructs a new UnsupportedApiMessageResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IUnsupportedApiMessageResponse); - - /** - * Creates a new UnsupportedApiMessageResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UnsupportedApiMessageResponse instance - */ - public static create(properties?: gauge.messages.IUnsupportedApiMessageResponse): gauge.messages.UnsupportedApiMessageResponse; - - /** - * Encodes the specified UnsupportedApiMessageResponse message. Does not implicitly {@link gauge.messages.UnsupportedApiMessageResponse.verify|verify} messages. - * @param message UnsupportedApiMessageResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IUnsupportedApiMessageResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UnsupportedApiMessageResponse message, length delimited. Does not implicitly {@link gauge.messages.UnsupportedApiMessageResponse.verify|verify} messages. - * @param message UnsupportedApiMessageResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IUnsupportedApiMessageResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UnsupportedApiMessageResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UnsupportedApiMessageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.UnsupportedApiMessageResponse; - - /** - * Decodes an UnsupportedApiMessageResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UnsupportedApiMessageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.UnsupportedApiMessageResponse; - - /** - * Verifies an UnsupportedApiMessageResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UnsupportedApiMessageResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UnsupportedApiMessageResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.UnsupportedApiMessageResponse; - - /** - * Creates a plain object from an UnsupportedApiMessageResponse message. Also converts values to other types if specified. - * @param message UnsupportedApiMessageResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.UnsupportedApiMessageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UnsupportedApiMessageResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a APIMessage. */ - interface IAPIMessage { - - /** Type of API call being made */ - messageType?: (gauge.messages.APIMessage.APIMessageType|null); - - /** This is used to synchronize messages & responses */ - messageId?: (number|Long|null); - - /** [GetProjectRootRequest](#gauge.messages.GetProjectRootRequest) */ - projectRootRequest?: (gauge.messages.IGetProjectRootRequest|null); - - /** [GetProjectRootResponse](#gauge.messages.GetProjectRootResponse) */ - projectRootResponse?: (gauge.messages.IGetProjectRootResponse|null); - - /** [GetInstallationRootRequest](#gauge.messages.GetInstallationRootRequest) */ - installationRootRequest?: (gauge.messages.IGetInstallationRootRequest|null); - - /** [GetInstallationRootResponse](#gauge.messages.GetInstallationRootResponse) */ - installationRootResponse?: (gauge.messages.IGetInstallationRootResponse|null); - - /** [GetAllStepsRequest](#gauge.messages.GetAllStepsRequest) */ - allStepsRequest?: (gauge.messages.IGetAllStepsRequest|null); - - /** [GetAllStepsResponse](#gauge.messages.GetAllStepsResponse) */ - allStepsResponse?: (gauge.messages.IGetAllStepsResponse|null); - - /** [GetAllSpecsRequest](#gauge.messages.GetAllSpecsRequest) */ - specsRequest?: (gauge.messages.ISpecsRequest|null); - - /** [GetAllSpecsResponse](#gauge.messages.GetAllSpecsResponse) */ - specsResponse?: (gauge.messages.ISpecsResponse|null); - - /** [GetStepValueRequest](#gauge.messages.GetStepValueRequest) */ - stepValueRequest?: (gauge.messages.IGetStepValueRequest|null); - - /** [GetStepValueResponse](#gauge.messages.GetStepValueResponse) */ - stepValueResponse?: (gauge.messages.IGetStepValueResponse|null); - - /** [GetLanguagePluginLibPathRequest](#gauge.messages.GetLanguagePluginLibPathRequest) */ - libPathRequest?: (gauge.messages.IGetLanguagePluginLibPathRequest|null); - - /** [GetLanguagePluginLibPathResponse](#gauge.messages.GetLanguagePluginLibPathResponse) */ - libPathResponse?: (gauge.messages.IGetLanguagePluginLibPathResponse|null); - - /** [ErrorResponse](#gauge.messages.ErrorResponse) */ - error?: (gauge.messages.IErrorResponse|null); - - /** [GetAllConceptsRequest](#gauge.messages.GetAllConceptsRequest) */ - allConceptsRequest?: (gauge.messages.IGetAllConceptsRequest|null); - - /** [GetAllConceptsResponse](#gauge.messages.GetAllConceptsResponse) */ - allConceptsResponse?: (gauge.messages.IGetAllConceptsResponse|null); - - /** [PerformRefactoringRequest](#gauge.messages.PerformRefactoringRequest) */ - performRefactoringRequest?: (gauge.messages.IPerformRefactoringRequest|null); - - /** [PerformRefactoringResponse](#gauge.messages.PerformRefactoringResponse) */ - performRefactoringResponse?: (gauge.messages.IPerformRefactoringResponse|null); - - /** [ExtractConceptRequest](#gauge.messages.ExtractConceptRequest) */ - extractConceptRequest?: (gauge.messages.IExtractConceptRequest|null); - - /** [ExtractConceptResponse](#gauge.messages.ExtractConceptResponse) */ - extractConceptResponse?: (gauge.messages.IExtractConceptResponse|null); - - /** [FormatSpecsRequest] (#gauge.messages.FormatSpecsRequest) */ - formatSpecsRequest?: (gauge.messages.IFormatSpecsRequest|null); - - /** [FormatSpecsResponse] (#gauge.messages.FormatSpecsResponse) */ - formatSpecsResponse?: (gauge.messages.IFormatSpecsResponse|null); - - /** [UnsupportedApiMessageResponse] (#gauge.messages.UnsupportedApiMessageResponse) */ - unsupportedApiMessageResponse?: (gauge.messages.IUnsupportedApiMessageResponse|null); - } - - /** One of the Request/Response fields will have value, depending on the MessageType set. */ - class APIMessage implements IAPIMessage { - - /** - * Constructs a new APIMessage. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IAPIMessage); - - /** Type of API call being made */ - public messageType: gauge.messages.APIMessage.APIMessageType; - - /** This is used to synchronize messages & responses */ - public messageId: (number|Long); - - /** [GetProjectRootRequest](#gauge.messages.GetProjectRootRequest) */ - public projectRootRequest?: (gauge.messages.IGetProjectRootRequest|null); - - /** [GetProjectRootResponse](#gauge.messages.GetProjectRootResponse) */ - public projectRootResponse?: (gauge.messages.IGetProjectRootResponse|null); - - /** [GetInstallationRootRequest](#gauge.messages.GetInstallationRootRequest) */ - public installationRootRequest?: (gauge.messages.IGetInstallationRootRequest|null); - - /** [GetInstallationRootResponse](#gauge.messages.GetInstallationRootResponse) */ - public installationRootResponse?: (gauge.messages.IGetInstallationRootResponse|null); - - /** [GetAllStepsRequest](#gauge.messages.GetAllStepsRequest) */ - public allStepsRequest?: (gauge.messages.IGetAllStepsRequest|null); - - /** [GetAllStepsResponse](#gauge.messages.GetAllStepsResponse) */ - public allStepsResponse?: (gauge.messages.IGetAllStepsResponse|null); - - /** [GetAllSpecsRequest](#gauge.messages.GetAllSpecsRequest) */ - public specsRequest?: (gauge.messages.ISpecsRequest|null); - - /** [GetAllSpecsResponse](#gauge.messages.GetAllSpecsResponse) */ - public specsResponse?: (gauge.messages.ISpecsResponse|null); - - /** [GetStepValueRequest](#gauge.messages.GetStepValueRequest) */ - public stepValueRequest?: (gauge.messages.IGetStepValueRequest|null); - - /** [GetStepValueResponse](#gauge.messages.GetStepValueResponse) */ - public stepValueResponse?: (gauge.messages.IGetStepValueResponse|null); - - /** [GetLanguagePluginLibPathRequest](#gauge.messages.GetLanguagePluginLibPathRequest) */ - public libPathRequest?: (gauge.messages.IGetLanguagePluginLibPathRequest|null); - - /** [GetLanguagePluginLibPathResponse](#gauge.messages.GetLanguagePluginLibPathResponse) */ - public libPathResponse?: (gauge.messages.IGetLanguagePluginLibPathResponse|null); - - /** [ErrorResponse](#gauge.messages.ErrorResponse) */ - public error?: (gauge.messages.IErrorResponse|null); - - /** [GetAllConceptsRequest](#gauge.messages.GetAllConceptsRequest) */ - public allConceptsRequest?: (gauge.messages.IGetAllConceptsRequest|null); - - /** [GetAllConceptsResponse](#gauge.messages.GetAllConceptsResponse) */ - public allConceptsResponse?: (gauge.messages.IGetAllConceptsResponse|null); - - /** [PerformRefactoringRequest](#gauge.messages.PerformRefactoringRequest) */ - public performRefactoringRequest?: (gauge.messages.IPerformRefactoringRequest|null); - - /** [PerformRefactoringResponse](#gauge.messages.PerformRefactoringResponse) */ - public performRefactoringResponse?: (gauge.messages.IPerformRefactoringResponse|null); - - /** [ExtractConceptRequest](#gauge.messages.ExtractConceptRequest) */ - public extractConceptRequest?: (gauge.messages.IExtractConceptRequest|null); - - /** [ExtractConceptResponse](#gauge.messages.ExtractConceptResponse) */ - public extractConceptResponse?: (gauge.messages.IExtractConceptResponse|null); - - /** [FormatSpecsRequest] (#gauge.messages.FormatSpecsRequest) */ - public formatSpecsRequest?: (gauge.messages.IFormatSpecsRequest|null); - - /** [FormatSpecsResponse] (#gauge.messages.FormatSpecsResponse) */ - public formatSpecsResponse?: (gauge.messages.IFormatSpecsResponse|null); - - /** [UnsupportedApiMessageResponse] (#gauge.messages.UnsupportedApiMessageResponse) */ - public unsupportedApiMessageResponse?: (gauge.messages.IUnsupportedApiMessageResponse|null); - - /** - * Creates a new APIMessage instance using the specified properties. - * @param [properties] Properties to set - * @returns APIMessage instance - */ - public static create(properties?: gauge.messages.IAPIMessage): gauge.messages.APIMessage; - - /** - * Encodes the specified APIMessage message. Does not implicitly {@link gauge.messages.APIMessage.verify|verify} messages. - * @param message APIMessage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IAPIMessage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified APIMessage message, length delimited. Does not implicitly {@link gauge.messages.APIMessage.verify|verify} messages. - * @param message APIMessage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IAPIMessage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a APIMessage message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns APIMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.APIMessage; - - /** - * Decodes a APIMessage message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns APIMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.APIMessage; - - /** - * Verifies a APIMessage message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a APIMessage message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns APIMessage - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.APIMessage; - - /** - * Creates a plain object from a APIMessage message. Also converts values to other types if specified. - * @param message APIMessage - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.APIMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this APIMessage to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace APIMessage { - - /** APIMessageType enum. */ - enum APIMessageType { - GetProjectRootRequest = 0, - GetProjectRootResponse = 1, - GetInstallationRootRequest = 2, - GetInstallationRootResponse = 3, - GetAllStepsRequest = 4, - GetAllStepResponse = 5, - SpecsRequest = 6, - SpecsResponse = 7, - GetStepValueRequest = 8, - GetStepValueResponse = 9, - GetLanguagePluginLibPathRequest = 10, - GetLanguagePluginLibPathResponse = 11, - ErrorResponse = 12, - GetAllConceptsRequest = 13, - GetAllConceptsResponse = 14, - PerformRefactoringRequest = 15, - PerformRefactoringResponse = 16, - ExtractConceptRequest = 17, - ExtractConceptResponse = 18, - FormatSpecsRequest = 19, - FormatSpecsResponse = 20, - UnsupportedApiMessageResponse = 21 - } - } - - /** Properties of a ProtoSpec. */ - interface IProtoSpec { - - /** Heading describing the Specification */ - specHeading?: (string|null); - - /** A collection of items that come under this step */ - items?: (gauge.messages.IProtoItem[]|null); - - /** Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter. */ - isTableDriven?: (boolean|null); - - /** Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error. */ - preHookFailures?: (gauge.messages.IProtoHookFailure[]|null); - - /** Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error. */ - postHookFailures?: (gauge.messages.IProtoHookFailure[]|null); - - /** Contains the filename for that holds this specification. */ - fileName?: (string|null); - - /** Contains a list of tags that are defined at the specification level. Scenario tags are not present here. */ - tags?: (string[]|null); - - /** Additional information at pre hook exec time to be available on reports */ - preHookMessages?: (string[]|null); - - /** Additional information at post hook exec time to be available on reports */ - postHookMessages?: (string[]|null); - - /** [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports */ - preHookMessage?: (string[]|null); - - /** [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports */ - postHookMessage?: (string[]|null); - - /** [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports */ - preHookScreenshots?: (Uint8Array[]|null); - - /** [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports */ - postHookScreenshots?: (Uint8Array[]|null); - - /** used when items are sent as individual chunk */ - itemCount?: (number|Long|null); - - /** Screenshots captured on pre hook exec time to be available on reports */ - preHookScreenshotFiles?: (string[]|null); - - /** Screenshots captured on post hook exec time to be available on reports */ - postHookScreenshotFiles?: (string[]|null); - } - - /** A specification can contain Scenarios or Steps, besides Comments */ - class ProtoSpec implements IProtoSpec { - - /** - * Constructs a new ProtoSpec. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoSpec); - - /** Heading describing the Specification */ - public specHeading: string; - - /** A collection of items that come under this step */ - public items: gauge.messages.IProtoItem[]; - - /** Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter. */ - public isTableDriven: boolean; - - /** Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error. */ - public preHookFailures: gauge.messages.IProtoHookFailure[]; - - /** Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error. */ - public postHookFailures: gauge.messages.IProtoHookFailure[]; - - /** Contains the filename for that holds this specification. */ - public fileName: string; - - /** Contains a list of tags that are defined at the specification level. Scenario tags are not present here. */ - public tags: string[]; - - /** Additional information at pre hook exec time to be available on reports */ - public preHookMessages: string[]; - - /** Additional information at post hook exec time to be available on reports */ - public postHookMessages: string[]; - - /** [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports */ - public preHookMessage: string[]; - - /** [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports */ - public postHookMessage: string[]; - - /** [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports */ - public preHookScreenshots: Uint8Array[]; - - /** [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports */ - public postHookScreenshots: Uint8Array[]; - - /** used when items are sent as individual chunk */ - public itemCount: (number|Long); - - /** Screenshots captured on pre hook exec time to be available on reports */ - public preHookScreenshotFiles: string[]; - - /** Screenshots captured on post hook exec time to be available on reports */ - public postHookScreenshotFiles: string[]; - - /** - * Creates a new ProtoSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoSpec instance - */ - public static create(properties?: gauge.messages.IProtoSpec): gauge.messages.ProtoSpec; - - /** - * Encodes the specified ProtoSpec message. Does not implicitly {@link gauge.messages.ProtoSpec.verify|verify} messages. - * @param message ProtoSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoSpec message, length delimited. Does not implicitly {@link gauge.messages.ProtoSpec.verify|verify} messages. - * @param message ProtoSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoSpec; - - /** - * Decodes a ProtoSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoSpec; - - /** - * Verifies a ProtoSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoSpec - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoSpec; - - /** - * Creates a plain object from a ProtoSpec message. Also converts values to other types if specified. - * @param message ProtoSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ProtoItem. */ - interface IProtoItem { - - /** Itemtype of the current ProtoItem */ - itemType?: (gauge.messages.ProtoItem.ItemType|null); - - /** Holds the Step definition. Valid only if ItemType = Step */ - step?: (gauge.messages.IProtoStep|null); - - /** Holds the Concept definition. Valid only if ItemType = Concept */ - concept?: (gauge.messages.IProtoConcept|null); - - /** Holds the Scenario definition. Valid only if ItemType = Scenario */ - scenario?: (gauge.messages.IProtoScenario|null); - - /** Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario */ - tableDrivenScenario?: (gauge.messages.IProtoTableDrivenScenario|null); - - /** Holds the Comment definition. Valid only if ItemType = Comment */ - comment?: (gauge.messages.IProtoComment|null); - - /** Holds the Table definition. Valid only if ItemType = Table */ - table?: (gauge.messages.IProtoTable|null); - - /** Holds the Tags definition. Valid only if ItemType = Tags */ - tags?: (gauge.messages.IProtoTags|null); - - /** Holds the Filename that the item belongs to */ - fileName?: (string|null); - } - - /** Container for all valid Items under a Specification. */ - class ProtoItem implements IProtoItem { - - /** - * Constructs a new ProtoItem. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoItem); - - /** Itemtype of the current ProtoItem */ - public itemType: gauge.messages.ProtoItem.ItemType; - - /** Holds the Step definition. Valid only if ItemType = Step */ - public step?: (gauge.messages.IProtoStep|null); - - /** Holds the Concept definition. Valid only if ItemType = Concept */ - public concept?: (gauge.messages.IProtoConcept|null); - - /** Holds the Scenario definition. Valid only if ItemType = Scenario */ - public scenario?: (gauge.messages.IProtoScenario|null); - - /** Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario */ - public tableDrivenScenario?: (gauge.messages.IProtoTableDrivenScenario|null); - - /** Holds the Comment definition. Valid only if ItemType = Comment */ - public comment?: (gauge.messages.IProtoComment|null); - - /** Holds the Table definition. Valid only if ItemType = Table */ - public table?: (gauge.messages.IProtoTable|null); - - /** Holds the Tags definition. Valid only if ItemType = Tags */ - public tags?: (gauge.messages.IProtoTags|null); - - /** Holds the Filename that the item belongs to */ - public fileName: string; - - /** - * Creates a new ProtoItem instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoItem instance - */ - public static create(properties?: gauge.messages.IProtoItem): gauge.messages.ProtoItem; - - /** - * Encodes the specified ProtoItem message. Does not implicitly {@link gauge.messages.ProtoItem.verify|verify} messages. - * @param message ProtoItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoItem message, length delimited. Does not implicitly {@link gauge.messages.ProtoItem.verify|verify} messages. - * @param message ProtoItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoItem message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoItem; - - /** - * Decodes a ProtoItem message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoItem; - - /** - * Verifies a ProtoItem message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoItem message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoItem - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoItem; - - /** - * Creates a plain object from a ProtoItem message. Also converts values to other types if specified. - * @param message ProtoItem - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoItem to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ProtoItem { - - /** Enumerates various item types that the proto item can contain. Valid types are: Step, Comment, Concept, Scenario, TableDrivenScenario, Table, Tags */ - enum ItemType { - Step = 0, - Comment = 1, - Concept = 2, - Scenario = 3, - TableDrivenScenario = 4, - Table = 5, - Tags = 6 - } - } - - /** Execution Status */ - enum ExecutionStatus { - NOTEXECUTED = 0, - PASSED = 1, - FAILED = 2, - SKIPPED = 3 - } - - /** Properties of a ProtoScenario. */ - interface IProtoScenario { - - /** Heading of the given Scenario */ - scenarioHeading?: (string|null); - - /** Flag to indicate if the Scenario execution failed */ - failed?: (boolean|null); - - /** Collection of Context steps. The Context steps are executed before every run. */ - contexts?: (gauge.messages.IProtoItem[]|null); - - /** Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables */ - scenarioItems?: (gauge.messages.IProtoItem[]|null); - - /** Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error. */ - preHookFailure?: (gauge.messages.IProtoHookFailure|null); - - /** Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error. */ - postHookFailure?: (gauge.messages.IProtoHookFailure|null); - - /** Contains a list of tags that are defined at the specification level. Scenario tags are not present here. */ - tags?: (string[]|null); - - /** Holds the time taken for executing this scenario. */ - executionTime?: (number|Long|null); - - /** Flag to indicate if the Scenario execution is skipped */ - skipped?: (boolean|null); - - /** Holds the error messages for skipping scenario from execution */ - skipErrors?: (string[]|null); - - /** Holds the unique Identifier of a scenario. */ - ID?: (string|null); - - /** Collection of Teardown steps. The Teardown steps are executed after every run. */ - tearDownSteps?: (gauge.messages.IProtoItem[]|null); - - /** Span(start, end) of scenario */ - span?: (gauge.messages.ISpan|null); - - /** Execution status for the scenario */ - executionStatus?: (gauge.messages.ExecutionStatus|null); - - /** Additional information at pre hook exec time to be available on reports */ - preHookMessages?: (string[]|null); - - /** Additional information at post hook exec time to be available on reports */ - postHookMessages?: (string[]|null); - - /** [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports */ - preHookMessage?: (string[]|null); - - /** [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports */ - postHookMessage?: (string[]|null); - - /** [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports */ - preHookScreenshots?: (Uint8Array[]|null); - - /** [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports */ - postHookScreenshots?: (Uint8Array[]|null); - - /** Screenshots captured on pre hook exec time to be available on reports */ - preHookScreenshotFiles?: (string[]|null); - - /** Screenshots captured on post hook exec time to be available on reports */ - postHookScreenshotFiles?: (string[]|null); - } - - /** A proto object representing a Scenario */ - class ProtoScenario implements IProtoScenario { - - /** - * Constructs a new ProtoScenario. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoScenario); - - /** Heading of the given Scenario */ - public scenarioHeading: string; - - /** Flag to indicate if the Scenario execution failed */ - public failed: boolean; - - /** Collection of Context steps. The Context steps are executed before every run. */ - public contexts: gauge.messages.IProtoItem[]; - - /** Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables */ - public scenarioItems: gauge.messages.IProtoItem[]; - - /** Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error. */ - public preHookFailure?: (gauge.messages.IProtoHookFailure|null); - - /** Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error. */ - public postHookFailure?: (gauge.messages.IProtoHookFailure|null); - - /** Contains a list of tags that are defined at the specification level. Scenario tags are not present here. */ - public tags: string[]; - - /** Holds the time taken for executing this scenario. */ - public executionTime: (number|Long); - - /** Flag to indicate if the Scenario execution is skipped */ - public skipped: boolean; - - /** Holds the error messages for skipping scenario from execution */ - public skipErrors: string[]; - - /** Holds the unique Identifier of a scenario. */ - public ID: string; - - /** Collection of Teardown steps. The Teardown steps are executed after every run. */ - public tearDownSteps: gauge.messages.IProtoItem[]; - - /** Span(start, end) of scenario */ - public span?: (gauge.messages.ISpan|null); - - /** Execution status for the scenario */ - public executionStatus: gauge.messages.ExecutionStatus; - - /** Additional information at pre hook exec time to be available on reports */ - public preHookMessages: string[]; - - /** Additional information at post hook exec time to be available on reports */ - public postHookMessages: string[]; - - /** [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports */ - public preHookMessage: string[]; - - /** [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports */ - public postHookMessage: string[]; - - /** [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports */ - public preHookScreenshots: Uint8Array[]; - - /** [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports */ - public postHookScreenshots: Uint8Array[]; - - /** Screenshots captured on pre hook exec time to be available on reports */ - public preHookScreenshotFiles: string[]; - - /** Screenshots captured on post hook exec time to be available on reports */ - public postHookScreenshotFiles: string[]; - - /** - * Creates a new ProtoScenario instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoScenario instance - */ - public static create(properties?: gauge.messages.IProtoScenario): gauge.messages.ProtoScenario; - - /** - * Encodes the specified ProtoScenario message. Does not implicitly {@link gauge.messages.ProtoScenario.verify|verify} messages. - * @param message ProtoScenario message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoScenario, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoScenario message, length delimited. Does not implicitly {@link gauge.messages.ProtoScenario.verify|verify} messages. - * @param message ProtoScenario message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoScenario, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoScenario message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoScenario - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoScenario; - - /** - * Decodes a ProtoScenario message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoScenario - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoScenario; - - /** - * Verifies a ProtoScenario message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoScenario message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoScenario - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoScenario; - - /** - * Creates a plain object from a ProtoScenario message. Also converts values to other types if specified. - * @param message ProtoScenario - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoScenario, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoScenario to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Span. */ - interface ISpan { - - /** Span start */ - start?: (number|Long|null); - - /** Span end */ - end?: (number|Long|null); - - /** Span startChar */ - startChar?: (number|Long|null); - - /** Span endChar */ - endChar?: (number|Long|null); - } - - /** A proto object representing a Span of content */ - class Span implements ISpan { - - /** - * Constructs a new Span. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.ISpan); - - /** Span start. */ - public start: (number|Long); - - /** Span end. */ - public end: (number|Long); - - /** Span startChar. */ - public startChar: (number|Long); - - /** Span endChar. */ - public endChar: (number|Long); - - /** - * Creates a new Span instance using the specified properties. - * @param [properties] Properties to set - * @returns Span instance - */ - public static create(properties?: gauge.messages.ISpan): gauge.messages.Span; - - /** - * Encodes the specified Span message. Does not implicitly {@link gauge.messages.Span.verify|verify} messages. - * @param message Span message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.ISpan, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Span message, length delimited. Does not implicitly {@link gauge.messages.Span.verify|verify} messages. - * @param message Span message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.ISpan, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Span message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Span - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.Span; - - /** - * Decodes a Span message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Span - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.Span; - - /** - * Verifies a Span message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Span message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Span - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.Span; - - /** - * Creates a plain object from a Span message. Also converts values to other types if specified. - * @param message Span - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.Span, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Span to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ProtoTableDrivenScenario. */ - interface IProtoTableDrivenScenario { - - /** Scenario under Table driven execution */ - scenario?: (gauge.messages.IProtoScenario|null); - - /** Row Index of data table against which the current scenario is executed */ - tableRowIndex?: (number|null); - - /** Row Index of scenario data table against which the current scenario is executed */ - scenarioTableRowIndex?: (number|null); - - /** Executed against a spec data table */ - isSpecTableDriven?: (boolean|null); - - /** Executed against a scenario data table */ - isScenarioTableDriven?: (boolean|null); - - /** Holds the scenario data table */ - scenarioDataTable?: (gauge.messages.IProtoTable|null); - - /** Hold the row of scenario data table. */ - scenarioTableRow?: (gauge.messages.IProtoTable|null); - } - - /** A proto object representing a TableDrivenScenario */ - class ProtoTableDrivenScenario implements IProtoTableDrivenScenario { - - /** - * Constructs a new ProtoTableDrivenScenario. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoTableDrivenScenario); - - /** Scenario under Table driven execution */ - public scenario?: (gauge.messages.IProtoScenario|null); - - /** Row Index of data table against which the current scenario is executed */ - public tableRowIndex: number; - - /** Row Index of scenario data table against which the current scenario is executed */ - public scenarioTableRowIndex: number; - - /** Executed against a spec data table */ - public isSpecTableDriven: boolean; - - /** Executed against a scenario data table */ - public isScenarioTableDriven: boolean; - - /** Holds the scenario data table */ - public scenarioDataTable?: (gauge.messages.IProtoTable|null); - - /** Hold the row of scenario data table. */ - public scenarioTableRow?: (gauge.messages.IProtoTable|null); - - /** - * Creates a new ProtoTableDrivenScenario instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoTableDrivenScenario instance - */ - public static create(properties?: gauge.messages.IProtoTableDrivenScenario): gauge.messages.ProtoTableDrivenScenario; - - /** - * Encodes the specified ProtoTableDrivenScenario message. Does not implicitly {@link gauge.messages.ProtoTableDrivenScenario.verify|verify} messages. - * @param message ProtoTableDrivenScenario message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoTableDrivenScenario, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoTableDrivenScenario message, length delimited. Does not implicitly {@link gauge.messages.ProtoTableDrivenScenario.verify|verify} messages. - * @param message ProtoTableDrivenScenario message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoTableDrivenScenario, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoTableDrivenScenario message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoTableDrivenScenario - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoTableDrivenScenario; - - /** - * Decodes a ProtoTableDrivenScenario message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoTableDrivenScenario - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoTableDrivenScenario; - - /** - * Verifies a ProtoTableDrivenScenario message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoTableDrivenScenario message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoTableDrivenScenario - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoTableDrivenScenario; - - /** - * Creates a plain object from a ProtoTableDrivenScenario message. Also converts values to other types if specified. - * @param message ProtoTableDrivenScenario - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoTableDrivenScenario, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoTableDrivenScenario to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ProtoStep. */ - interface IProtoStep { - - /** Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values. */ - actualText?: (string|null); - - /** Contains the parsed text of the Step. This will have placeholders for the parameters. */ - parsedText?: (string|null); - - /** Collection of a list of fragments for a Step. A fragment could be either text or parameter. */ - fragments?: (gauge.messages.IFragment[]|null); - - /** Holds the result from the execution. */ - stepExecutionResult?: (gauge.messages.IProtoStepExecutionResult|null); - - /** Additional information at pre hook exec time to be available on reports */ - preHookMessages?: (string[]|null); - - /** Additional information at post hook exec time to be available on reports */ - postHookMessages?: (string[]|null); - - /** [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports */ - preHookScreenshots?: (Uint8Array[]|null); - - /** [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports */ - postHookScreenshots?: (Uint8Array[]|null); - - /** Screenshots captured on pre hook exec time to be available on reports */ - preHookScreenshotFiles?: (string[]|null); - - /** Screenshots captured on post hook exec time to be available on reports */ - postHookScreenshotFiles?: (string[]|null); - } - - /** A proto object representing a Step */ - class ProtoStep implements IProtoStep { - - /** - * Constructs a new ProtoStep. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoStep); - - /** Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values. */ - public actualText: string; - - /** Contains the parsed text of the Step. This will have placeholders for the parameters. */ - public parsedText: string; - - /** Collection of a list of fragments for a Step. A fragment could be either text or parameter. */ - public fragments: gauge.messages.IFragment[]; - - /** Holds the result from the execution. */ - public stepExecutionResult?: (gauge.messages.IProtoStepExecutionResult|null); - - /** Additional information at pre hook exec time to be available on reports */ - public preHookMessages: string[]; - - /** Additional information at post hook exec time to be available on reports */ - public postHookMessages: string[]; - - /** [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports */ - public preHookScreenshots: Uint8Array[]; - - /** [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports */ - public postHookScreenshots: Uint8Array[]; - - /** Screenshots captured on pre hook exec time to be available on reports */ - public preHookScreenshotFiles: string[]; - - /** Screenshots captured on post hook exec time to be available on reports */ - public postHookScreenshotFiles: string[]; - - /** - * Creates a new ProtoStep instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoStep instance - */ - public static create(properties?: gauge.messages.IProtoStep): gauge.messages.ProtoStep; - - /** - * Encodes the specified ProtoStep message. Does not implicitly {@link gauge.messages.ProtoStep.verify|verify} messages. - * @param message ProtoStep message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoStep, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoStep message, length delimited. Does not implicitly {@link gauge.messages.ProtoStep.verify|verify} messages. - * @param message ProtoStep message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoStep, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoStep message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoStep; - - /** - * Decodes a ProtoStep message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoStep; - - /** - * Verifies a ProtoStep message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoStep message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoStep - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoStep; - - /** - * Creates a plain object from a ProtoStep message. Also converts values to other types if specified. - * @param message ProtoStep - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoStep, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoStep to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ProtoConcept. */ - interface IProtoConcept { - - /** Represents the Step value of a Concept. */ - conceptStep?: (gauge.messages.IProtoStep|null); - - /** Collection of Steps in the given concepts. */ - steps?: (gauge.messages.IProtoItem[]|null); - - /** Holds the execution result. */ - conceptExecutionResult?: (gauge.messages.IProtoStepExecutionResult|null); - } - - /** A proto object representing a Concept */ - class ProtoConcept implements IProtoConcept { - - /** - * Constructs a new ProtoConcept. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoConcept); - - /** Represents the Step value of a Concept. */ - public conceptStep?: (gauge.messages.IProtoStep|null); - - /** Collection of Steps in the given concepts. */ - public steps: gauge.messages.IProtoItem[]; - - /** Holds the execution result. */ - public conceptExecutionResult?: (gauge.messages.IProtoStepExecutionResult|null); - - /** - * Creates a new ProtoConcept instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoConcept instance - */ - public static create(properties?: gauge.messages.IProtoConcept): gauge.messages.ProtoConcept; - - /** - * Encodes the specified ProtoConcept message. Does not implicitly {@link gauge.messages.ProtoConcept.verify|verify} messages. - * @param message ProtoConcept message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoConcept, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoConcept message, length delimited. Does not implicitly {@link gauge.messages.ProtoConcept.verify|verify} messages. - * @param message ProtoConcept message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoConcept, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoConcept message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoConcept - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoConcept; - - /** - * Decodes a ProtoConcept message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoConcept - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoConcept; - - /** - * Verifies a ProtoConcept message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoConcept message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoConcept - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoConcept; - - /** - * Creates a plain object from a ProtoConcept message. Also converts values to other types if specified. - * @param message ProtoConcept - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoConcept, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoConcept to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ProtoTags. */ - interface IProtoTags { - - /** A collection of Tags */ - tags?: (string[]|null); - } - - /** A proto object representing Tags */ - class ProtoTags implements IProtoTags { - - /** - * Constructs a new ProtoTags. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoTags); - - /** A collection of Tags */ - public tags: string[]; - - /** - * Creates a new ProtoTags instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoTags instance - */ - public static create(properties?: gauge.messages.IProtoTags): gauge.messages.ProtoTags; - - /** - * Encodes the specified ProtoTags message. Does not implicitly {@link gauge.messages.ProtoTags.verify|verify} messages. - * @param message ProtoTags message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoTags, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoTags message, length delimited. Does not implicitly {@link gauge.messages.ProtoTags.verify|verify} messages. - * @param message ProtoTags message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoTags, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoTags message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoTags - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoTags; - - /** - * Decodes a ProtoTags message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoTags - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoTags; - - /** - * Verifies a ProtoTags message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoTags message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoTags - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoTags; - - /** - * Creates a plain object from a ProtoTags message. Also converts values to other types if specified. - * @param message ProtoTags - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoTags, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoTags to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Fragment. */ - interface IFragment { - - /** Type of Fragment, valid values are Text, Parameter */ - fragmentType?: (gauge.messages.Fragment.FragmentType|null); - - /** Text part of the Fragment, valid only if FragmentType=Text */ - text?: (string|null); - - /** Parameter part of the Fragment, valid only if FragmentType=Parameter */ - parameter?: (gauge.messages.IParameter|null); - } - - /** Fragments, put together make up A Step */ - class Fragment implements IFragment { - - /** - * Constructs a new Fragment. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IFragment); - - /** Type of Fragment, valid values are Text, Parameter */ - public fragmentType: gauge.messages.Fragment.FragmentType; - - /** Text part of the Fragment, valid only if FragmentType=Text */ - public text: string; - - /** Parameter part of the Fragment, valid only if FragmentType=Parameter */ - public parameter?: (gauge.messages.IParameter|null); - - /** - * Creates a new Fragment instance using the specified properties. - * @param [properties] Properties to set - * @returns Fragment instance - */ - public static create(properties?: gauge.messages.IFragment): gauge.messages.Fragment; - - /** - * Encodes the specified Fragment message. Does not implicitly {@link gauge.messages.Fragment.verify|verify} messages. - * @param message Fragment message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IFragment, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Fragment message, length delimited. Does not implicitly {@link gauge.messages.Fragment.verify|verify} messages. - * @param message Fragment message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IFragment, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Fragment message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Fragment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.Fragment; - - /** - * Decodes a Fragment message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Fragment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.Fragment; - - /** - * Verifies a Fragment message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Fragment message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Fragment - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.Fragment; - - /** - * Creates a plain object from a Fragment message. Also converts values to other types if specified. - * @param message Fragment - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.Fragment, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Fragment to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace Fragment { - - /** Enum representing the types of Fragment */ - enum FragmentType { - Text = 0, - Parameter = 1 - } - } - - /** Properties of a Parameter. */ - interface IParameter { - - /** Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table */ - parameterType?: (gauge.messages.Parameter.ParameterType|null); - - /** Holds the value of the parameter */ - value?: (string|null); - - /** Holds the name of the parameter, used as Key to lookup the value. */ - name?: (string|null); - - /** Holds the table value, if parameterType=Table or Special_Table */ - table?: (gauge.messages.IProtoTable|null); - } - - /** A proto object representing Fragment. */ - class Parameter implements IParameter { - - /** - * Constructs a new Parameter. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IParameter); - - /** Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table */ - public parameterType: gauge.messages.Parameter.ParameterType; - - /** Holds the value of the parameter */ - public value: string; - - /** Holds the name of the parameter, used as Key to lookup the value. */ - public name: string; - - /** Holds the table value, if parameterType=Table or Special_Table */ - public table?: (gauge.messages.IProtoTable|null); - - /** - * Creates a new Parameter instance using the specified properties. - * @param [properties] Properties to set - * @returns Parameter instance - */ - public static create(properties?: gauge.messages.IParameter): gauge.messages.Parameter; - - /** - * Encodes the specified Parameter message. Does not implicitly {@link gauge.messages.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link gauge.messages.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Parameter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.Parameter; - - /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.Parameter; - - /** - * Verifies a Parameter message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Parameter - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.Parameter; - - /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @param message Parameter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Parameter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace Parameter { - - /** Enum representing types of Parameter. */ - enum ParameterType { - Static = 0, - Dynamic = 1, - Special_String = 2, - Special_Table = 3, - Table = 4 - } - } - - /** Properties of a ProtoComment. */ - interface IProtoComment { - - /** Text representing the Comment. */ - text?: (string|null); - } - - /** A proto object representing Comment. */ - class ProtoComment implements IProtoComment { - - /** - * Constructs a new ProtoComment. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoComment); - - /** Text representing the Comment. */ - public text: string; - - /** - * Creates a new ProtoComment instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoComment instance - */ - public static create(properties?: gauge.messages.IProtoComment): gauge.messages.ProtoComment; - - /** - * Encodes the specified ProtoComment message. Does not implicitly {@link gauge.messages.ProtoComment.verify|verify} messages. - * @param message ProtoComment message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoComment, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoComment message, length delimited. Does not implicitly {@link gauge.messages.ProtoComment.verify|verify} messages. - * @param message ProtoComment message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoComment, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoComment message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoComment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoComment; - - /** - * Decodes a ProtoComment message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoComment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoComment; - - /** - * Verifies a ProtoComment message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoComment message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoComment - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoComment; - - /** - * Creates a plain object from a ProtoComment message. Also converts values to other types if specified. - * @param message ProtoComment - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoComment, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoComment to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ProtoTable. */ - interface IProtoTable { - - /** Contains the Headers for the table */ - headers?: (gauge.messages.IProtoTableRow|null); - - /** Contains the Rows for the table */ - rows?: (gauge.messages.IProtoTableRow[]|null); - } - - /** A proto object representing Table. */ - class ProtoTable implements IProtoTable { - - /** - * Constructs a new ProtoTable. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoTable); - - /** Contains the Headers for the table */ - public headers?: (gauge.messages.IProtoTableRow|null); - - /** Contains the Rows for the table */ - public rows: gauge.messages.IProtoTableRow[]; - - /** - * Creates a new ProtoTable instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoTable instance - */ - public static create(properties?: gauge.messages.IProtoTable): gauge.messages.ProtoTable; - - /** - * Encodes the specified ProtoTable message. Does not implicitly {@link gauge.messages.ProtoTable.verify|verify} messages. - * @param message ProtoTable message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoTable, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoTable message, length delimited. Does not implicitly {@link gauge.messages.ProtoTable.verify|verify} messages. - * @param message ProtoTable message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoTable, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoTable message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoTable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoTable; - - /** - * Decodes a ProtoTable message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoTable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoTable; - - /** - * Verifies a ProtoTable message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoTable message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoTable - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoTable; - - /** - * Creates a plain object from a ProtoTable message. Also converts values to other types if specified. - * @param message ProtoTable - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoTable to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ProtoTableRow. */ - interface IProtoTableRow { - - /** Represents the cells of a given table */ - cells?: (string[]|null); - } - - /** A proto object representing Table. */ - class ProtoTableRow implements IProtoTableRow { - - /** - * Constructs a new ProtoTableRow. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoTableRow); - - /** Represents the cells of a given table */ - public cells: string[]; - - /** - * Creates a new ProtoTableRow instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoTableRow instance - */ - public static create(properties?: gauge.messages.IProtoTableRow): gauge.messages.ProtoTableRow; - - /** - * Encodes the specified ProtoTableRow message. Does not implicitly {@link gauge.messages.ProtoTableRow.verify|verify} messages. - * @param message ProtoTableRow message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoTableRow, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoTableRow message, length delimited. Does not implicitly {@link gauge.messages.ProtoTableRow.verify|verify} messages. - * @param message ProtoTableRow message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoTableRow, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoTableRow message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoTableRow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoTableRow; - - /** - * Decodes a ProtoTableRow message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoTableRow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoTableRow; - - /** - * Verifies a ProtoTableRow message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoTableRow message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoTableRow - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoTableRow; - - /** - * Creates a plain object from a ProtoTableRow message. Also converts values to other types if specified. - * @param message ProtoTableRow - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoTableRow, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoTableRow to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ProtoStepExecutionResult. */ - interface IProtoStepExecutionResult { - - /** The actual result of the execution */ - executionResult?: (gauge.messages.IProtoExecutionResult|null); - - /** Contains a 'before' hook failure message. This happens when the `before_step` hook has an error. */ - preHookFailure?: (gauge.messages.IProtoHookFailure|null); - - /** Contains a 'after' hook failure message. This happens when the `after_step` hook has an error. */ - postHookFailure?: (gauge.messages.IProtoHookFailure|null); - - /** ProtoStepExecutionResult skipped */ - skipped?: (boolean|null); - - /** ProtoStepExecutionResult skippedReason */ - skippedReason?: (string|null); - } - - /** A proto object representing Step Execution result */ - class ProtoStepExecutionResult implements IProtoStepExecutionResult { - - /** - * Constructs a new ProtoStepExecutionResult. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoStepExecutionResult); - - /** The actual result of the execution */ - public executionResult?: (gauge.messages.IProtoExecutionResult|null); - - /** Contains a 'before' hook failure message. This happens when the `before_step` hook has an error. */ - public preHookFailure?: (gauge.messages.IProtoHookFailure|null); - - /** Contains a 'after' hook failure message. This happens when the `after_step` hook has an error. */ - public postHookFailure?: (gauge.messages.IProtoHookFailure|null); - - /** ProtoStepExecutionResult skipped. */ - public skipped: boolean; - - /** ProtoStepExecutionResult skippedReason. */ - public skippedReason: string; - - /** - * Creates a new ProtoStepExecutionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoStepExecutionResult instance - */ - public static create(properties?: gauge.messages.IProtoStepExecutionResult): gauge.messages.ProtoStepExecutionResult; - - /** - * Encodes the specified ProtoStepExecutionResult message. Does not implicitly {@link gauge.messages.ProtoStepExecutionResult.verify|verify} messages. - * @param message ProtoStepExecutionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoStepExecutionResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoStepExecutionResult message, length delimited. Does not implicitly {@link gauge.messages.ProtoStepExecutionResult.verify|verify} messages. - * @param message ProtoStepExecutionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoStepExecutionResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoStepExecutionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoStepExecutionResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoStepExecutionResult; - - /** - * Decodes a ProtoStepExecutionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoStepExecutionResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoStepExecutionResult; - - /** - * Verifies a ProtoStepExecutionResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoStepExecutionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoStepExecutionResult - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoStepExecutionResult; - - /** - * Creates a plain object from a ProtoStepExecutionResult message. Also converts values to other types if specified. - * @param message ProtoStepExecutionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoStepExecutionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoStepExecutionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ProtoExecutionResult. */ - interface IProtoExecutionResult { - - /** Flag to indicate failure */ - failed?: (boolean|null); - - /** Flag to indicate if the error is recoverable from. */ - recoverableError?: (boolean|null); - - /** The actual error message. */ - errorMessage?: (string|null); - - /** Stacktrace of the error */ - stackTrace?: (string|null); - - /** [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure. */ - screenShot?: (Uint8Array|null); - - /** Holds the time taken for executing this scenario. */ - executionTime?: (number|Long|null); - - /** Additional information at exec time to be available on reports */ - message?: (string[]|null); - - /** Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION */ - errorType?: (gauge.messages.ProtoExecutionResult.ErrorType|null); - - /** [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure. */ - failureScreenshot?: (Uint8Array|null); - - /** [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked */ - screenshots?: (Uint8Array[]|null); - - /** Path to the screenshot file captured at the time of failure. */ - failureScreenshotFile?: (string|null); - - /** Path to the screenshot files captured using Gauge screenshsot API. */ - screenshotFiles?: (string[]|null); - } - - /** A proto object representing the result of an execution */ - class ProtoExecutionResult implements IProtoExecutionResult { - - /** - * Constructs a new ProtoExecutionResult. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoExecutionResult); - - /** Flag to indicate failure */ - public failed: boolean; - - /** Flag to indicate if the error is recoverable from. */ - public recoverableError: boolean; - - /** The actual error message. */ - public errorMessage: string; - - /** Stacktrace of the error */ - public stackTrace: string; - - /** [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure. */ - public screenShot: Uint8Array; - - /** Holds the time taken for executing this scenario. */ - public executionTime: (number|Long); - - /** Additional information at exec time to be available on reports */ - public message: string[]; - - /** Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION */ - public errorType: gauge.messages.ProtoExecutionResult.ErrorType; - - /** [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure. */ - public failureScreenshot: Uint8Array; - - /** [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked */ - public screenshots: Uint8Array[]; - - /** Path to the screenshot file captured at the time of failure. */ - public failureScreenshotFile: string; - - /** Path to the screenshot files captured using Gauge screenshsot API. */ - public screenshotFiles: string[]; - - /** - * Creates a new ProtoExecutionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoExecutionResult instance - */ - public static create(properties?: gauge.messages.IProtoExecutionResult): gauge.messages.ProtoExecutionResult; - - /** - * Encodes the specified ProtoExecutionResult message. Does not implicitly {@link gauge.messages.ProtoExecutionResult.verify|verify} messages. - * @param message ProtoExecutionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoExecutionResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoExecutionResult message, length delimited. Does not implicitly {@link gauge.messages.ProtoExecutionResult.verify|verify} messages. - * @param message ProtoExecutionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoExecutionResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoExecutionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoExecutionResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoExecutionResult; - - /** - * Decodes a ProtoExecutionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoExecutionResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoExecutionResult; - - /** - * Verifies a ProtoExecutionResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoExecutionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoExecutionResult - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoExecutionResult; - - /** - * Creates a plain object from a ProtoExecutionResult message. Also converts values to other types if specified. - * @param message ProtoExecutionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoExecutionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoExecutionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ProtoExecutionResult { - - /** ErrorType enum. */ - enum ErrorType { - ASSERTION = 0, - VERIFICATION = 1 - } - } - - /** Properties of a ProtoHookFailure. */ - interface IProtoHookFailure { - - /** Stacktrace from the failure */ - stackTrace?: (string|null); - - /** Error message from the failure */ - errorMessage?: (string|null); - - /** [DEPRECATED, use failureScreenshotFile] Bytes holding the screenshot taken at the time of failure. */ - screenShot?: (Uint8Array|null); - - /** ProtoHookFailure tableRowIndex */ - tableRowIndex?: (number|null); - - /** [DEPRECATED, use failureScreenshotFile] Bytes holding the screenshot taken at the time of failure. */ - failureScreenshot?: (Uint8Array|null); - - /** Path to the screenshot file captured at the time of failure. */ - failureScreenshotFile?: (string|null); - } - - /** Used to hold failure information for before_suite, before_spec, before_scenario and before_spec hooks. */ - class ProtoHookFailure implements IProtoHookFailure { - - /** - * Constructs a new ProtoHookFailure. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoHookFailure); - - /** Stacktrace from the failure */ - public stackTrace: string; - - /** Error message from the failure */ - public errorMessage: string; - - /** [DEPRECATED, use failureScreenshotFile] Bytes holding the screenshot taken at the time of failure. */ - public screenShot: Uint8Array; - - /** ProtoHookFailure tableRowIndex. */ - public tableRowIndex: number; - - /** [DEPRECATED, use failureScreenshotFile] Bytes holding the screenshot taken at the time of failure. */ - public failureScreenshot: Uint8Array; - - /** Path to the screenshot file captured at the time of failure. */ - public failureScreenshotFile: string; - - /** - * Creates a new ProtoHookFailure instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoHookFailure instance - */ - public static create(properties?: gauge.messages.IProtoHookFailure): gauge.messages.ProtoHookFailure; - - /** - * Encodes the specified ProtoHookFailure message. Does not implicitly {@link gauge.messages.ProtoHookFailure.verify|verify} messages. - * @param message ProtoHookFailure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoHookFailure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoHookFailure message, length delimited. Does not implicitly {@link gauge.messages.ProtoHookFailure.verify|verify} messages. - * @param message ProtoHookFailure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoHookFailure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoHookFailure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoHookFailure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoHookFailure; - - /** - * Decodes a ProtoHookFailure message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoHookFailure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoHookFailure; - - /** - * Verifies a ProtoHookFailure message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoHookFailure message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoHookFailure - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoHookFailure; - - /** - * Creates a plain object from a ProtoHookFailure message. Also converts values to other types if specified. - * @param message ProtoHookFailure - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoHookFailure, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoHookFailure to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ProtoSuiteResult. */ - interface IProtoSuiteResult { - - /** Contains the result from the execution */ - specResults?: (gauge.messages.IProtoSpecResult[]|null); - - /** Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error */ - preHookFailure?: (gauge.messages.IProtoHookFailure|null); - - /** Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error */ - postHookFailure?: (gauge.messages.IProtoHookFailure|null); - - /** Flag to indicate failure */ - failed?: (boolean|null); - - /** Holds the count of number of Specifications that failed. */ - specsFailedCount?: (number|null); - - /** Holds the time taken for executing the whole suite. */ - executionTime?: (number|Long|null); - - /** Holds a metric indicating the success rate of the execution. */ - successRate?: (number|null); - - /** The environment against which execution was done */ - environment?: (string|null); - - /** Tag expression used for filtering specification */ - tags?: (string|null); - - /** Project name */ - projectName?: (string|null); - - /** Timestamp of when execution started */ - timestamp?: (string|null); - - /** ProtoSuiteResult specsSkippedCount */ - specsSkippedCount?: (number|null); - - /** Additional information at pre hook exec time to be available on reports */ - preHookMessages?: (string[]|null); - - /** Additional information at post hook exec time to be available on reports */ - postHookMessages?: (string[]|null); - - /** [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports */ - preHookMessage?: (string[]|null); - - /** [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports */ - postHookMessage?: (string[]|null); - - /** [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports */ - preHookScreenshots?: (Uint8Array[]|null); - - /** [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports */ - postHookScreenshots?: (Uint8Array[]|null); - - /** ProtoSuiteResult chunked */ - chunked?: (boolean|null); - - /** ProtoSuiteResult chunkSize */ - chunkSize?: (number|Long|null); - - /** Screenshots captured on pre hook exec time to be available on reports */ - preHookScreenshotFiles?: (string[]|null); - - /** Screenshots captured on post hook exec time to be available on reports */ - postHookScreenshotFiles?: (string[]|null); - } - - /** A proto object representing the result of entire Suite execution. */ - class ProtoSuiteResult implements IProtoSuiteResult { - - /** - * Constructs a new ProtoSuiteResult. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoSuiteResult); - - /** Contains the result from the execution */ - public specResults: gauge.messages.IProtoSpecResult[]; - - /** Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error */ - public preHookFailure?: (gauge.messages.IProtoHookFailure|null); - - /** Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error */ - public postHookFailure?: (gauge.messages.IProtoHookFailure|null); - - /** Flag to indicate failure */ - public failed: boolean; - - /** Holds the count of number of Specifications that failed. */ - public specsFailedCount: number; - - /** Holds the time taken for executing the whole suite. */ - public executionTime: (number|Long); - - /** Holds a metric indicating the success rate of the execution. */ - public successRate: number; - - /** The environment against which execution was done */ - public environment: string; - - /** Tag expression used for filtering specification */ - public tags: string; - - /** Project name */ - public projectName: string; - - /** Timestamp of when execution started */ - public timestamp: string; - - /** ProtoSuiteResult specsSkippedCount. */ - public specsSkippedCount: number; - - /** Additional information at pre hook exec time to be available on reports */ - public preHookMessages: string[]; - - /** Additional information at post hook exec time to be available on reports */ - public postHookMessages: string[]; - - /** [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports */ - public preHookMessage: string[]; - - /** [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports */ - public postHookMessage: string[]; - - /** [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports */ - public preHookScreenshots: Uint8Array[]; - - /** [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports */ - public postHookScreenshots: Uint8Array[]; - - /** ProtoSuiteResult chunked. */ - public chunked: boolean; - - /** ProtoSuiteResult chunkSize. */ - public chunkSize: (number|Long); - - /** Screenshots captured on pre hook exec time to be available on reports */ - public preHookScreenshotFiles: string[]; - - /** Screenshots captured on post hook exec time to be available on reports */ - public postHookScreenshotFiles: string[]; - - /** - * Creates a new ProtoSuiteResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoSuiteResult instance - */ - public static create(properties?: gauge.messages.IProtoSuiteResult): gauge.messages.ProtoSuiteResult; - - /** - * Encodes the specified ProtoSuiteResult message. Does not implicitly {@link gauge.messages.ProtoSuiteResult.verify|verify} messages. - * @param message ProtoSuiteResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoSuiteResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoSuiteResult message, length delimited. Does not implicitly {@link gauge.messages.ProtoSuiteResult.verify|verify} messages. - * @param message ProtoSuiteResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoSuiteResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoSuiteResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoSuiteResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoSuiteResult; - - /** - * Decodes a ProtoSuiteResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoSuiteResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoSuiteResult; - - /** - * Verifies a ProtoSuiteResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoSuiteResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoSuiteResult - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoSuiteResult; - - /** - * Creates a plain object from a ProtoSuiteResult message. Also converts values to other types if specified. - * @param message ProtoSuiteResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoSuiteResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoSuiteResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ProtoSpecResult. */ - interface IProtoSpecResult { - - /** Represents the corresponding Specification */ - protoSpec?: (gauge.messages.IProtoSpec|null); - - /** Holds the number of Scenarios executed */ - scenarioCount?: (number|null); - - /** Holds the number of Scenarios failed */ - scenarioFailedCount?: (number|null); - - /** Flag to indicate failure */ - failed?: (boolean|null); - - /** Holds the row numbers, which caused the execution to fail. */ - failedDataTableRows?: (number[]|null); - - /** Holds the time taken for executing the spec. */ - executionTime?: (number|Long|null); - - /** Flag to indicate if spec is skipped */ - skipped?: (boolean|null); - - /** Holds the number of Scenarios skipped */ - scenarioSkippedCount?: (number|null); - - /** Holds the row numbers, for which the execution skipped. */ - skippedDataTableRows?: (number[]|null); - - /** Holds parse, validation and skipped errors. */ - errors?: (gauge.messages.IError[]|null); - - /** Holds the timestamp of event starting. */ - timestamp?: (string|null); - } - - /** A proto object representing the result of Spec execution. */ - class ProtoSpecResult implements IProtoSpecResult { - - /** - * Constructs a new ProtoSpecResult. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoSpecResult); - - /** Represents the corresponding Specification */ - public protoSpec?: (gauge.messages.IProtoSpec|null); - - /** Holds the number of Scenarios executed */ - public scenarioCount: number; - - /** Holds the number of Scenarios failed */ - public scenarioFailedCount: number; - - /** Flag to indicate failure */ - public failed: boolean; - - /** Holds the row numbers, which caused the execution to fail. */ - public failedDataTableRows: number[]; - - /** Holds the time taken for executing the spec. */ - public executionTime: (number|Long); - - /** Flag to indicate if spec is skipped */ - public skipped: boolean; - - /** Holds the number of Scenarios skipped */ - public scenarioSkippedCount: number; - - /** Holds the row numbers, for which the execution skipped. */ - public skippedDataTableRows: number[]; - - /** Holds parse, validation and skipped errors. */ - public errors: gauge.messages.IError[]; - - /** Holds the timestamp of event starting. */ - public timestamp: string; - - /** - * Creates a new ProtoSpecResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoSpecResult instance - */ - public static create(properties?: gauge.messages.IProtoSpecResult): gauge.messages.ProtoSpecResult; - - /** - * Encodes the specified ProtoSpecResult message. Does not implicitly {@link gauge.messages.ProtoSpecResult.verify|verify} messages. - * @param message ProtoSpecResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoSpecResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoSpecResult message, length delimited. Does not implicitly {@link gauge.messages.ProtoSpecResult.verify|verify} messages. - * @param message ProtoSpecResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoSpecResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoSpecResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoSpecResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoSpecResult; - - /** - * Decodes a ProtoSpecResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoSpecResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoSpecResult; - - /** - * Verifies a ProtoSpecResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoSpecResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoSpecResult - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoSpecResult; - - /** - * Creates a plain object from a ProtoSpecResult message. Also converts values to other types if specified. - * @param message ProtoSpecResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoSpecResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoSpecResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ProtoScenarioResult. */ - interface IProtoScenarioResult { - - /** Collection of scenarios in scenario execution result. */ - protoItem?: (gauge.messages.IProtoItem|null); - - /** Holds the time taken for executing the whole suite. */ - executionTime?: (number|Long|null); - - /** Holds the timestamp of event starting. */ - timestamp?: (string|null); - } - - /** A proto object representing the result of Scenario execution. */ - class ProtoScenarioResult implements IProtoScenarioResult { - - /** - * Constructs a new ProtoScenarioResult. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoScenarioResult); - - /** Collection of scenarios in scenario execution result. */ - public protoItem?: (gauge.messages.IProtoItem|null); - - /** Holds the time taken for executing the whole suite. */ - public executionTime: (number|Long); - - /** Holds the timestamp of event starting. */ - public timestamp: string; - - /** - * Creates a new ProtoScenarioResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoScenarioResult instance - */ - public static create(properties?: gauge.messages.IProtoScenarioResult): gauge.messages.ProtoScenarioResult; - - /** - * Encodes the specified ProtoScenarioResult message. Does not implicitly {@link gauge.messages.ProtoScenarioResult.verify|verify} messages. - * @param message ProtoScenarioResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoScenarioResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoScenarioResult message, length delimited. Does not implicitly {@link gauge.messages.ProtoScenarioResult.verify|verify} messages. - * @param message ProtoScenarioResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoScenarioResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoScenarioResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoScenarioResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoScenarioResult; - - /** - * Decodes a ProtoScenarioResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoScenarioResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoScenarioResult; - - /** - * Verifies a ProtoScenarioResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoScenarioResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoScenarioResult - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoScenarioResult; - - /** - * Creates a plain object from a ProtoScenarioResult message. Also converts values to other types if specified. - * @param message ProtoScenarioResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoScenarioResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoScenarioResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ProtoStepResult. */ - interface IProtoStepResult { - - /** Collection of steps in step execution result. */ - protoItem?: (gauge.messages.IProtoItem|null); - - /** Holds the time taken for executing the whole suite. */ - executionTime?: (number|Long|null); - - /** Holds the timestamp of event starting. */ - timestamp?: (string|null); - } - - /** A proto object representing the result of Step execution. */ - class ProtoStepResult implements IProtoStepResult { - - /** - * Constructs a new ProtoStepResult. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoStepResult); - - /** Collection of steps in step execution result. */ - public protoItem?: (gauge.messages.IProtoItem|null); - - /** Holds the time taken for executing the whole suite. */ - public executionTime: (number|Long); - - /** Holds the timestamp of event starting. */ - public timestamp: string; - - /** - * Creates a new ProtoStepResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoStepResult instance - */ - public static create(properties?: gauge.messages.IProtoStepResult): gauge.messages.ProtoStepResult; - - /** - * Encodes the specified ProtoStepResult message. Does not implicitly {@link gauge.messages.ProtoStepResult.verify|verify} messages. - * @param message ProtoStepResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoStepResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoStepResult message, length delimited. Does not implicitly {@link gauge.messages.ProtoStepResult.verify|verify} messages. - * @param message ProtoStepResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoStepResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoStepResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoStepResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoStepResult; - - /** - * Decodes a ProtoStepResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoStepResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoStepResult; - - /** - * Verifies a ProtoStepResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoStepResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoStepResult - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoStepResult; - - /** - * Creates a plain object from a ProtoStepResult message. Also converts values to other types if specified. - * @param message ProtoStepResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoStepResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoStepResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an Error. */ - interface IError { - - /** Holds the type of error */ - type?: (gauge.messages.Error.ErrorType|null); - - /** Holds the filename. */ - filename?: (string|null); - - /** Holds the line number of the error in file. */ - lineNumber?: (number|null); - - /** Holds the error message. */ - message?: (string|null); - } - - /** A proto object representing an error in spec/Scenario. */ - class Error implements IError { - - /** - * Constructs a new Error. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IError); - - /** Holds the type of error */ - public type: gauge.messages.Error.ErrorType; - - /** Holds the filename. */ - public filename: string; - - /** Holds the line number of the error in file. */ - public lineNumber: number; - - /** Holds the error message. */ - public message: string; - - /** - * Creates a new Error instance using the specified properties. - * @param [properties] Properties to set - * @returns Error instance - */ - public static create(properties?: gauge.messages.IError): gauge.messages.Error; - - /** - * Encodes the specified Error message. Does not implicitly {@link gauge.messages.Error.verify|verify} messages. - * @param message Error message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Error message, length delimited. Does not implicitly {@link gauge.messages.Error.verify|verify} messages. - * @param message Error message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Error message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Error - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.Error; - - /** - * Decodes an Error message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Error - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.Error; - - /** - * Verifies an Error message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an Error message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Error - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.Error; - - /** - * Creates a plain object from an Error message. Also converts values to other types if specified. - * @param message Error - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.Error, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Error to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace Error { - - /** ErrorType enum. */ - enum ErrorType { - PARSE_ERROR = 0, - VALIDATION_ERROR = 1 - } - } - - /** Properties of a ProtoStepValue. */ - interface IProtoStepValue { - - /** The actual string value describing he Step */ - stepValue?: (string|null); - - /** The parameterized string value describing he Step. The parameters are replaced with placeholders. */ - parameterizedStepValue?: (string|null); - - /** A collection of strings representing the parameters. */ - parameters?: (string[]|null); - } - - /** A proto object representing a Step value. */ - class ProtoStepValue implements IProtoStepValue { - - /** - * Constructs a new ProtoStepValue. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IProtoStepValue); - - /** The actual string value describing he Step */ - public stepValue: string; - - /** The parameterized string value describing he Step. The parameters are replaced with placeholders. */ - public parameterizedStepValue: string; - - /** A collection of strings representing the parameters. */ - public parameters: string[]; - - /** - * Creates a new ProtoStepValue instance using the specified properties. - * @param [properties] Properties to set - * @returns ProtoStepValue instance - */ - public static create(properties?: gauge.messages.IProtoStepValue): gauge.messages.ProtoStepValue; - - /** - * Encodes the specified ProtoStepValue message. Does not implicitly {@link gauge.messages.ProtoStepValue.verify|verify} messages. - * @param message ProtoStepValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IProtoStepValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ProtoStepValue message, length delimited. Does not implicitly {@link gauge.messages.ProtoStepValue.verify|verify} messages. - * @param message ProtoStepValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IProtoStepValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProtoStepValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProtoStepValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ProtoStepValue; - - /** - * Decodes a ProtoStepValue message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProtoStepValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ProtoStepValue; - - /** - * Verifies a ProtoStepValue message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ProtoStepValue message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProtoStepValue - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ProtoStepValue; - - /** - * Creates a plain object from a ProtoStepValue message. Also converts values to other types if specified. - * @param message ProtoStepValue - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ProtoStepValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ProtoStepValue to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Represents a lspService */ - class lspService extends $protobuf.rpc.Service { - - /** - * Constructs a new lspService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new lspService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): lspService; - - /** - * Calls GetStepNames. - * @param request StepNamesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StepNamesResponse - */ - public getStepNames(request: gauge.messages.IStepNamesRequest, callback: gauge.messages.lspService.GetStepNamesCallback): void; - - /** - * Calls GetStepNames. - * @param request StepNamesRequest message or plain object - * @returns Promise - */ - public getStepNames(request: gauge.messages.IStepNamesRequest): Promise; - - /** - * Calls CacheFile. - * @param request CacheFileRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public cacheFile(request: gauge.messages.ICacheFileRequest, callback: gauge.messages.lspService.CacheFileCallback): void; - - /** - * Calls CacheFile. - * @param request CacheFileRequest message or plain object - * @returns Promise - */ - public cacheFile(request: gauge.messages.ICacheFileRequest): Promise; - - /** - * Calls GetStepPositions. - * @param request StepPositionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StepPositionsResponse - */ - public getStepPositions(request: gauge.messages.IStepPositionsRequest, callback: gauge.messages.lspService.GetStepPositionsCallback): void; - - /** - * Calls GetStepPositions. - * @param request StepPositionsRequest message or plain object - * @returns Promise - */ - public getStepPositions(request: gauge.messages.IStepPositionsRequest): Promise; - - /** - * Calls GetImplementationFiles. - * @param request Empty message or plain object - * @param callback Node-style callback called with the error, if any, and ImplementationFileListResponse - */ - public getImplementationFiles(request: gauge.messages.IEmpty, callback: gauge.messages.lspService.GetImplementationFilesCallback): void; - - /** - * Calls GetImplementationFiles. - * @param request Empty message or plain object - * @returns Promise - */ - public getImplementationFiles(request: gauge.messages.IEmpty): Promise; - - /** - * Calls ImplementStub. - * @param request StubImplementationCodeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FileDiff - */ - public implementStub(request: gauge.messages.IStubImplementationCodeRequest, callback: gauge.messages.lspService.ImplementStubCallback): void; - - /** - * Calls ImplementStub. - * @param request StubImplementationCodeRequest message or plain object - * @returns Promise - */ - public implementStub(request: gauge.messages.IStubImplementationCodeRequest): Promise; - - /** - * Calls ValidateStep. - * @param request StepValidateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StepValidateResponse - */ - public validateStep(request: gauge.messages.IStepValidateRequest, callback: gauge.messages.lspService.ValidateStepCallback): void; - - /** - * Calls ValidateStep. - * @param request StepValidateRequest message or plain object - * @returns Promise - */ - public validateStep(request: gauge.messages.IStepValidateRequest): Promise; - - /** - * Calls Refactor. - * @param request RefactorRequest message or plain object - * @param callback Node-style callback called with the error, if any, and RefactorResponse - */ - public refactor(request: gauge.messages.IRefactorRequest, callback: gauge.messages.lspService.RefactorCallback): void; - - /** - * Calls Refactor. - * @param request RefactorRequest message or plain object - * @returns Promise - */ - public refactor(request: gauge.messages.IRefactorRequest): Promise; - - /** - * Calls GetStepName. - * @param request StepNameRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StepNameResponse - */ - public getStepName(request: gauge.messages.IStepNameRequest, callback: gauge.messages.lspService.GetStepNameCallback): void; - - /** - * Calls GetStepName. - * @param request StepNameRequest message or plain object - * @returns Promise - */ - public getStepName(request: gauge.messages.IStepNameRequest): Promise; - - /** - * Calls GetGlobPatterns. - * @param request Empty message or plain object - * @param callback Node-style callback called with the error, if any, and ImplementationFileGlobPatternResponse - */ - public getGlobPatterns(request: gauge.messages.IEmpty, callback: gauge.messages.lspService.GetGlobPatternsCallback): void; - - /** - * Calls GetGlobPatterns. - * @param request Empty message or plain object - * @returns Promise - */ - public getGlobPatterns(request: gauge.messages.IEmpty): Promise; - - /** - * Calls KillProcess. - * @param request KillProcessRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public killProcess(request: gauge.messages.IKillProcessRequest, callback: gauge.messages.lspService.KillProcessCallback): void; - - /** - * Calls KillProcess. - * @param request KillProcessRequest message or plain object - * @returns Promise - */ - public killProcess(request: gauge.messages.IKillProcessRequest): Promise; - } - - namespace lspService { - - /** - * Callback as used by {@link gauge.messages.lspService#getStepNames}. - * @param error Error, if any - * @param [response] StepNamesResponse - */ - type GetStepNamesCallback = (error: (Error|null), response?: gauge.messages.StepNamesResponse) => void; - - /** - * Callback as used by {@link gauge.messages.lspService#cacheFile}. - * @param error Error, if any - * @param [response] Empty - */ - type CacheFileCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - - /** - * Callback as used by {@link gauge.messages.lspService#getStepPositions}. - * @param error Error, if any - * @param [response] StepPositionsResponse - */ - type GetStepPositionsCallback = (error: (Error|null), response?: gauge.messages.StepPositionsResponse) => void; - - /** - * Callback as used by {@link gauge.messages.lspService#getImplementationFiles}. - * @param error Error, if any - * @param [response] ImplementationFileListResponse - */ - type GetImplementationFilesCallback = (error: (Error|null), response?: gauge.messages.ImplementationFileListResponse) => void; - - /** - * Callback as used by {@link gauge.messages.lspService#implementStub}. - * @param error Error, if any - * @param [response] FileDiff - */ - type ImplementStubCallback = (error: (Error|null), response?: gauge.messages.FileDiff) => void; - - /** - * Callback as used by {@link gauge.messages.lspService#validateStep}. - * @param error Error, if any - * @param [response] StepValidateResponse - */ - type ValidateStepCallback = (error: (Error|null), response?: gauge.messages.StepValidateResponse) => void; - - /** - * Callback as used by {@link gauge.messages.lspService#refactor}. - * @param error Error, if any - * @param [response] RefactorResponse - */ - type RefactorCallback = (error: (Error|null), response?: gauge.messages.RefactorResponse) => void; - - /** - * Callback as used by {@link gauge.messages.lspService#getStepName}. - * @param error Error, if any - * @param [response] StepNameResponse - */ - type GetStepNameCallback = (error: (Error|null), response?: gauge.messages.StepNameResponse) => void; - - /** - * Callback as used by {@link gauge.messages.lspService#getGlobPatterns}. - * @param error Error, if any - * @param [response] ImplementationFileGlobPatternResponse - */ - type GetGlobPatternsCallback = (error: (Error|null), response?: gauge.messages.ImplementationFileGlobPatternResponse) => void; - - /** - * Callback as used by {@link gauge.messages.lspService#killProcess}. - * @param error Error, if any - * @param [response] Empty - */ - type KillProcessCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - } - - /** Properties of a KillProcessRequest. */ - interface IKillProcessRequest { - } - - /** Default request. Tells the runner to shutdown. */ - class KillProcessRequest implements IKillProcessRequest { - - /** - * Constructs a new KillProcessRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IKillProcessRequest); - - /** - * Creates a new KillProcessRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns KillProcessRequest instance - */ - public static create(properties?: gauge.messages.IKillProcessRequest): gauge.messages.KillProcessRequest; - - /** - * Encodes the specified KillProcessRequest message. Does not implicitly {@link gauge.messages.KillProcessRequest.verify|verify} messages. - * @param message KillProcessRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IKillProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified KillProcessRequest message, length delimited. Does not implicitly {@link gauge.messages.KillProcessRequest.verify|verify} messages. - * @param message KillProcessRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IKillProcessRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KillProcessRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KillProcessRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.KillProcessRequest; - - /** - * Decodes a KillProcessRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KillProcessRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.KillProcessRequest; - - /** - * Verifies a KillProcessRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a KillProcessRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KillProcessRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.KillProcessRequest; - - /** - * Creates a plain object from a KillProcessRequest message. Also converts values to other types if specified. - * @param message KillProcessRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.KillProcessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this KillProcessRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ExecutionStatusResponse. */ - interface IExecutionStatusResponse { - - /** Holds the suite result after suite execution done. */ - executionResult?: (gauge.messages.IProtoExecutionResult|null); - } - - /** usually step execution, hooks etc will return this */ - class ExecutionStatusResponse implements IExecutionStatusResponse { - - /** - * Constructs a new ExecutionStatusResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IExecutionStatusResponse); - - /** Holds the suite result after suite execution done. */ - public executionResult?: (gauge.messages.IProtoExecutionResult|null); - - /** - * Creates a new ExecutionStatusResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionStatusResponse instance - */ - public static create(properties?: gauge.messages.IExecutionStatusResponse): gauge.messages.ExecutionStatusResponse; - - /** - * Encodes the specified ExecutionStatusResponse message. Does not implicitly {@link gauge.messages.ExecutionStatusResponse.verify|verify} messages. - * @param message ExecutionStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IExecutionStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecutionStatusResponse message, length delimited. Does not implicitly {@link gauge.messages.ExecutionStatusResponse.verify|verify} messages. - * @param message ExecutionStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IExecutionStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionStatusResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ExecutionStatusResponse; - - /** - * Decodes an ExecutionStatusResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecutionStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ExecutionStatusResponse; - - /** - * Verifies an ExecutionStatusResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecutionStatusResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecutionStatusResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ExecutionStatusResponse; - - /** - * Creates a plain object from an ExecutionStatusResponse message. Also converts values to other types if specified. - * @param message ExecutionStatusResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ExecutionStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecutionStatusResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ExecutionStartingRequest. */ - interface IExecutionStartingRequest { - - /** Holds the current suite execution info. */ - currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** Some fields will not be populated before execution. */ - suiteResult?: (gauge.messages.IProtoSuiteResult|null); - - /** ExecutionStartingRequest stream */ - stream?: (number|null); - } - - /** Sent at start of Suite Execution. Tells the runner to execute `before_suite` hook. */ - class ExecutionStartingRequest implements IExecutionStartingRequest { - - /** - * Constructs a new ExecutionStartingRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IExecutionStartingRequest); - - /** Holds the current suite execution info. */ - public currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** Some fields will not be populated before execution. */ - public suiteResult?: (gauge.messages.IProtoSuiteResult|null); - - /** ExecutionStartingRequest stream. */ - public stream: number; - - /** - * Creates a new ExecutionStartingRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionStartingRequest instance - */ - public static create(properties?: gauge.messages.IExecutionStartingRequest): gauge.messages.ExecutionStartingRequest; - - /** - * Encodes the specified ExecutionStartingRequest message. Does not implicitly {@link gauge.messages.ExecutionStartingRequest.verify|verify} messages. - * @param message ExecutionStartingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IExecutionStartingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecutionStartingRequest message, length delimited. Does not implicitly {@link gauge.messages.ExecutionStartingRequest.verify|verify} messages. - * @param message ExecutionStartingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IExecutionStartingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionStartingRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ExecutionStartingRequest; - - /** - * Decodes an ExecutionStartingRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ExecutionStartingRequest; - - /** - * Verifies an ExecutionStartingRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecutionStartingRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecutionStartingRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ExecutionStartingRequest; - - /** - * Creates a plain object from an ExecutionStartingRequest message. Also converts values to other types if specified. - * @param message ExecutionStartingRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ExecutionStartingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecutionStartingRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ExecutionEndingRequest. */ - interface IExecutionEndingRequest { - - /** Holds the current suite execution info. */ - currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** Holds the suite result in execution ending. */ - suiteResult?: (gauge.messages.IProtoSuiteResult|null); - - /** ExecutionEndingRequest stream */ - stream?: (number|null); - } - - /** Sent at end of Suite Execution. Tells the runner to execute `after_suite` hook. */ - class ExecutionEndingRequest implements IExecutionEndingRequest { - - /** - * Constructs a new ExecutionEndingRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IExecutionEndingRequest); - - /** Holds the current suite execution info. */ - public currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** Holds the suite result in execution ending. */ - public suiteResult?: (gauge.messages.IProtoSuiteResult|null); - - /** ExecutionEndingRequest stream. */ - public stream: number; - - /** - * Creates a new ExecutionEndingRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionEndingRequest instance - */ - public static create(properties?: gauge.messages.IExecutionEndingRequest): gauge.messages.ExecutionEndingRequest; - - /** - * Encodes the specified ExecutionEndingRequest message. Does not implicitly {@link gauge.messages.ExecutionEndingRequest.verify|verify} messages. - * @param message ExecutionEndingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IExecutionEndingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecutionEndingRequest message, length delimited. Does not implicitly {@link gauge.messages.ExecutionEndingRequest.verify|verify} messages. - * @param message ExecutionEndingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IExecutionEndingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionEndingRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ExecutionEndingRequest; - - /** - * Decodes an ExecutionEndingRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ExecutionEndingRequest; - - /** - * Verifies an ExecutionEndingRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecutionEndingRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecutionEndingRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ExecutionEndingRequest; - - /** - * Creates a plain object from an ExecutionEndingRequest message. Also converts values to other types if specified. - * @param message ExecutionEndingRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ExecutionEndingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecutionEndingRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a SpecExecutionStartingRequest. */ - interface ISpecExecutionStartingRequest { - - /** Holds the current spec execution info. */ - currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** Some fields will not be populated before execution. */ - specResult?: (gauge.messages.IProtoSpecResult|null); - - /** SpecExecutionStartingRequest stream */ - stream?: (number|null); - } - - /** Sent at start of Spec Execution. Tells the runner to execute `before_spec` hook. */ - class SpecExecutionStartingRequest implements ISpecExecutionStartingRequest { - - /** - * Constructs a new SpecExecutionStartingRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.ISpecExecutionStartingRequest); - - /** Holds the current spec execution info. */ - public currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** Some fields will not be populated before execution. */ - public specResult?: (gauge.messages.IProtoSpecResult|null); - - /** SpecExecutionStartingRequest stream. */ - public stream: number; - - /** - * Creates a new SpecExecutionStartingRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SpecExecutionStartingRequest instance - */ - public static create(properties?: gauge.messages.ISpecExecutionStartingRequest): gauge.messages.SpecExecutionStartingRequest; - - /** - * Encodes the specified SpecExecutionStartingRequest message. Does not implicitly {@link gauge.messages.SpecExecutionStartingRequest.verify|verify} messages. - * @param message SpecExecutionStartingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.ISpecExecutionStartingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SpecExecutionStartingRequest message, length delimited. Does not implicitly {@link gauge.messages.SpecExecutionStartingRequest.verify|verify} messages. - * @param message SpecExecutionStartingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.ISpecExecutionStartingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SpecExecutionStartingRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SpecExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.SpecExecutionStartingRequest; - - /** - * Decodes a SpecExecutionStartingRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SpecExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.SpecExecutionStartingRequest; - - /** - * Verifies a SpecExecutionStartingRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SpecExecutionStartingRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SpecExecutionStartingRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.SpecExecutionStartingRequest; - - /** - * Creates a plain object from a SpecExecutionStartingRequest message. Also converts values to other types if specified. - * @param message SpecExecutionStartingRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.SpecExecutionStartingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SpecExecutionStartingRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a SpecExecutionEndingRequest. */ - interface ISpecExecutionEndingRequest { - - /** Holds the current spec execution info. */ - currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** Holds the specs result in spec execution ending. */ - specResult?: (gauge.messages.IProtoSpecResult|null); - - /** SpecExecutionEndingRequest stream */ - stream?: (number|null); - } - - /** Sent at end of Spec Execution. Tells the runner to execute `after_spec` hook. */ - class SpecExecutionEndingRequest implements ISpecExecutionEndingRequest { - - /** - * Constructs a new SpecExecutionEndingRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.ISpecExecutionEndingRequest); - - /** Holds the current spec execution info. */ - public currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** Holds the specs result in spec execution ending. */ - public specResult?: (gauge.messages.IProtoSpecResult|null); - - /** SpecExecutionEndingRequest stream. */ - public stream: number; - - /** - * Creates a new SpecExecutionEndingRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SpecExecutionEndingRequest instance - */ - public static create(properties?: gauge.messages.ISpecExecutionEndingRequest): gauge.messages.SpecExecutionEndingRequest; - - /** - * Encodes the specified SpecExecutionEndingRequest message. Does not implicitly {@link gauge.messages.SpecExecutionEndingRequest.verify|verify} messages. - * @param message SpecExecutionEndingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.ISpecExecutionEndingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SpecExecutionEndingRequest message, length delimited. Does not implicitly {@link gauge.messages.SpecExecutionEndingRequest.verify|verify} messages. - * @param message SpecExecutionEndingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.ISpecExecutionEndingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SpecExecutionEndingRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SpecExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.SpecExecutionEndingRequest; - - /** - * Decodes a SpecExecutionEndingRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SpecExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.SpecExecutionEndingRequest; - - /** - * Verifies a SpecExecutionEndingRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SpecExecutionEndingRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SpecExecutionEndingRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.SpecExecutionEndingRequest; - - /** - * Creates a plain object from a SpecExecutionEndingRequest message. Also converts values to other types if specified. - * @param message SpecExecutionEndingRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.SpecExecutionEndingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SpecExecutionEndingRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ScenarioExecutionStartingRequest. */ - interface IScenarioExecutionStartingRequest { - - /** Holds the current sceanrio execution info. */ - currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** Some fields will not be populated before execution. */ - scenarioResult?: (gauge.messages.IProtoScenarioResult|null); - - /** ScenarioExecutionStartingRequest stream */ - stream?: (number|null); - } - - /** Sent at start of Scenario Execution. Tells the runner to execute `before_scenario` hook. */ - class ScenarioExecutionStartingRequest implements IScenarioExecutionStartingRequest { - - /** - * Constructs a new ScenarioExecutionStartingRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IScenarioExecutionStartingRequest); - - /** Holds the current sceanrio execution info. */ - public currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** Some fields will not be populated before execution. */ - public scenarioResult?: (gauge.messages.IProtoScenarioResult|null); - - /** ScenarioExecutionStartingRequest stream. */ - public stream: number; - - /** - * Creates a new ScenarioExecutionStartingRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ScenarioExecutionStartingRequest instance - */ - public static create(properties?: gauge.messages.IScenarioExecutionStartingRequest): gauge.messages.ScenarioExecutionStartingRequest; - - /** - * Encodes the specified ScenarioExecutionStartingRequest message. Does not implicitly {@link gauge.messages.ScenarioExecutionStartingRequest.verify|verify} messages. - * @param message ScenarioExecutionStartingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IScenarioExecutionStartingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ScenarioExecutionStartingRequest message, length delimited. Does not implicitly {@link gauge.messages.ScenarioExecutionStartingRequest.verify|verify} messages. - * @param message ScenarioExecutionStartingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IScenarioExecutionStartingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ScenarioExecutionStartingRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ScenarioExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ScenarioExecutionStartingRequest; - - /** - * Decodes a ScenarioExecutionStartingRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ScenarioExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ScenarioExecutionStartingRequest; - - /** - * Verifies a ScenarioExecutionStartingRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ScenarioExecutionStartingRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ScenarioExecutionStartingRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ScenarioExecutionStartingRequest; - - /** - * Creates a plain object from a ScenarioExecutionStartingRequest message. Also converts values to other types if specified. - * @param message ScenarioExecutionStartingRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ScenarioExecutionStartingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ScenarioExecutionStartingRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ScenarioExecutionEndingRequest. */ - interface IScenarioExecutionEndingRequest { - - /** Holds the current scenario execution info. */ - currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** ScenarioExecutionEndingRequest scenarioResult */ - scenarioResult?: (gauge.messages.IProtoScenarioResult|null); - - /** ScenarioExecutionEndingRequest stream */ - stream?: (number|null); - } - - /** Sent at end of Scenario Execution. Tells the runner to execute `after_scenario` hook. */ - class ScenarioExecutionEndingRequest implements IScenarioExecutionEndingRequest { - - /** - * Constructs a new ScenarioExecutionEndingRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IScenarioExecutionEndingRequest); - - /** Holds the current scenario execution info. */ - public currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** ScenarioExecutionEndingRequest scenarioResult. */ - public scenarioResult?: (gauge.messages.IProtoScenarioResult|null); - - /** ScenarioExecutionEndingRequest stream. */ - public stream: number; - - /** - * Creates a new ScenarioExecutionEndingRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ScenarioExecutionEndingRequest instance - */ - public static create(properties?: gauge.messages.IScenarioExecutionEndingRequest): gauge.messages.ScenarioExecutionEndingRequest; - - /** - * Encodes the specified ScenarioExecutionEndingRequest message. Does not implicitly {@link gauge.messages.ScenarioExecutionEndingRequest.verify|verify} messages. - * @param message ScenarioExecutionEndingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IScenarioExecutionEndingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ScenarioExecutionEndingRequest message, length delimited. Does not implicitly {@link gauge.messages.ScenarioExecutionEndingRequest.verify|verify} messages. - * @param message ScenarioExecutionEndingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IScenarioExecutionEndingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ScenarioExecutionEndingRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ScenarioExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ScenarioExecutionEndingRequest; - - /** - * Decodes a ScenarioExecutionEndingRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ScenarioExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ScenarioExecutionEndingRequest; - - /** - * Verifies a ScenarioExecutionEndingRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ScenarioExecutionEndingRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ScenarioExecutionEndingRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ScenarioExecutionEndingRequest; - - /** - * Creates a plain object from a ScenarioExecutionEndingRequest message. Also converts values to other types if specified. - * @param message ScenarioExecutionEndingRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ScenarioExecutionEndingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ScenarioExecutionEndingRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StepExecutionStartingRequest. */ - interface IStepExecutionStartingRequest { - - /** Holds the current step execution info. */ - currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** Some fields will not be populated before execution. */ - stepResult?: (gauge.messages.IProtoStepResult|null); - - /** StepExecutionStartingRequest stream */ - stream?: (number|null); - } - - /** Sent at start of Step Execution. Tells the runner to execute `before_step` hook. */ - class StepExecutionStartingRequest implements IStepExecutionStartingRequest { - - /** - * Constructs a new StepExecutionStartingRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IStepExecutionStartingRequest); - - /** Holds the current step execution info. */ - public currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** Some fields will not be populated before execution. */ - public stepResult?: (gauge.messages.IProtoStepResult|null); - - /** StepExecutionStartingRequest stream. */ - public stream: number; - - /** - * Creates a new StepExecutionStartingRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StepExecutionStartingRequest instance - */ - public static create(properties?: gauge.messages.IStepExecutionStartingRequest): gauge.messages.StepExecutionStartingRequest; - - /** - * Encodes the specified StepExecutionStartingRequest message. Does not implicitly {@link gauge.messages.StepExecutionStartingRequest.verify|verify} messages. - * @param message StepExecutionStartingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IStepExecutionStartingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StepExecutionStartingRequest message, length delimited. Does not implicitly {@link gauge.messages.StepExecutionStartingRequest.verify|verify} messages. - * @param message StepExecutionStartingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IStepExecutionStartingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StepExecutionStartingRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StepExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.StepExecutionStartingRequest; - - /** - * Decodes a StepExecutionStartingRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StepExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.StepExecutionStartingRequest; - - /** - * Verifies a StepExecutionStartingRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StepExecutionStartingRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StepExecutionStartingRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.StepExecutionStartingRequest; - - /** - * Creates a plain object from a StepExecutionStartingRequest message. Also converts values to other types if specified. - * @param message StepExecutionStartingRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.StepExecutionStartingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StepExecutionStartingRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StepExecutionEndingRequest. */ - interface IStepExecutionEndingRequest { - - /** Holds the current step execution info. */ - currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** Holds step result in step execution ending. */ - stepResult?: (gauge.messages.IProtoStepResult|null); - - /** StepExecutionEndingRequest stream */ - stream?: (number|null); - } - - /** Sent at end of Step Execution. Tells the runner to execute `after_step` hook. */ - class StepExecutionEndingRequest implements IStepExecutionEndingRequest { - - /** - * Constructs a new StepExecutionEndingRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IStepExecutionEndingRequest); - - /** Holds the current step execution info. */ - public currentExecutionInfo?: (gauge.messages.IExecutionInfo|null); - - /** Holds step result in step execution ending. */ - public stepResult?: (gauge.messages.IProtoStepResult|null); - - /** StepExecutionEndingRequest stream. */ - public stream: number; - - /** - * Creates a new StepExecutionEndingRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StepExecutionEndingRequest instance - */ - public static create(properties?: gauge.messages.IStepExecutionEndingRequest): gauge.messages.StepExecutionEndingRequest; - - /** - * Encodes the specified StepExecutionEndingRequest message. Does not implicitly {@link gauge.messages.StepExecutionEndingRequest.verify|verify} messages. - * @param message StepExecutionEndingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IStepExecutionEndingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StepExecutionEndingRequest message, length delimited. Does not implicitly {@link gauge.messages.StepExecutionEndingRequest.verify|verify} messages. - * @param message StepExecutionEndingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IStepExecutionEndingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StepExecutionEndingRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StepExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.StepExecutionEndingRequest; - - /** - * Decodes a StepExecutionEndingRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StepExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.StepExecutionEndingRequest; - - /** - * Verifies a StepExecutionEndingRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StepExecutionEndingRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StepExecutionEndingRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.StepExecutionEndingRequest; - - /** - * Creates a plain object from a StepExecutionEndingRequest message. Also converts values to other types if specified. - * @param message StepExecutionEndingRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.StepExecutionEndingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StepExecutionEndingRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ExecutionArg. */ - interface IExecutionArg { - - /** Holds the flag name passed from command line. */ - flagName?: (string|null); - - /** Holds the flag value passed from command line. */ - flagValue?: (string[]|null); - } - - /** Contains command line arguments which passed by user during execution. */ - class ExecutionArg implements IExecutionArg { - - /** - * Constructs a new ExecutionArg. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IExecutionArg); - - /** Holds the flag name passed from command line. */ - public flagName: string; - - /** Holds the flag value passed from command line. */ - public flagValue: string[]; - - /** - * Creates a new ExecutionArg instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionArg instance - */ - public static create(properties?: gauge.messages.IExecutionArg): gauge.messages.ExecutionArg; - - /** - * Encodes the specified ExecutionArg message. Does not implicitly {@link gauge.messages.ExecutionArg.verify|verify} messages. - * @param message ExecutionArg message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IExecutionArg, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecutionArg message, length delimited. Does not implicitly {@link gauge.messages.ExecutionArg.verify|verify} messages. - * @param message ExecutionArg message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IExecutionArg, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionArg message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionArg - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ExecutionArg; - - /** - * Decodes an ExecutionArg message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecutionArg - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ExecutionArg; - - /** - * Verifies an ExecutionArg message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecutionArg message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecutionArg - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ExecutionArg; - - /** - * Creates a plain object from an ExecutionArg message. Also converts values to other types if specified. - * @param message ExecutionArg - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ExecutionArg, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecutionArg to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ExecutionInfo. */ - interface IExecutionInfo { - - /** Holds the information of the current Spec. Valid in context of Spec execution. */ - currentSpec?: (gauge.messages.ISpecInfo|null); - - /** Holds the information of the current Scenario. Valid in context of Scenario execution. */ - currentScenario?: (gauge.messages.IScenarioInfo|null); - - /** Holds the information of the current Step. Valid in context of Step execution. */ - currentStep?: (gauge.messages.IStepInfo|null); - - /** Stacktrace of the execution. Valid only if there is an error in execution. */ - stacktrace?: (string|null); - - /** Holds the project name */ - projectName?: (string|null); - - /** Holds the command line arguments. */ - ExecutionArgs?: (gauge.messages.IExecutionArg[]|null); - - /** Holds the number of running execution streams. */ - numberOfExecutionStreams?: (number|null); - - /** Holds the runner id for parallel execution. */ - runnerId?: (number|null); - } - - /** Depending on the context (Step, Scenario, Spec or Suite), the respective fields are set. */ - class ExecutionInfo implements IExecutionInfo { - - /** - * Constructs a new ExecutionInfo. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IExecutionInfo); - - /** Holds the information of the current Spec. Valid in context of Spec execution. */ - public currentSpec?: (gauge.messages.ISpecInfo|null); - - /** Holds the information of the current Scenario. Valid in context of Scenario execution. */ - public currentScenario?: (gauge.messages.IScenarioInfo|null); - - /** Holds the information of the current Step. Valid in context of Step execution. */ - public currentStep?: (gauge.messages.IStepInfo|null); - - /** Stacktrace of the execution. Valid only if there is an error in execution. */ - public stacktrace: string; - - /** Holds the project name */ - public projectName: string; - - /** Holds the command line arguments. */ - public ExecutionArgs: gauge.messages.IExecutionArg[]; - - /** Holds the number of running execution streams. */ - public numberOfExecutionStreams: number; - - /** Holds the runner id for parallel execution. */ - public runnerId: number; - - /** - * Creates a new ExecutionInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionInfo instance - */ - public static create(properties?: gauge.messages.IExecutionInfo): gauge.messages.ExecutionInfo; - - /** - * Encodes the specified ExecutionInfo message. Does not implicitly {@link gauge.messages.ExecutionInfo.verify|verify} messages. - * @param message ExecutionInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IExecutionInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecutionInfo message, length delimited. Does not implicitly {@link gauge.messages.ExecutionInfo.verify|verify} messages. - * @param message ExecutionInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IExecutionInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ExecutionInfo; - - /** - * Decodes an ExecutionInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecutionInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ExecutionInfo; - - /** - * Verifies an ExecutionInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecutionInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecutionInfo - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ExecutionInfo; - - /** - * Creates a plain object from an ExecutionInfo message. Also converts values to other types if specified. - * @param message ExecutionInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ExecutionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecutionInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a SpecInfo. */ - interface ISpecInfo { - - /** Name of the current Spec being executed. */ - name?: (string|null); - - /** Full File path containing the current Spec being executed. */ - fileName?: (string|null); - - /** Flag to indicate if the current Spec execution failed. */ - isFailed?: (boolean|null); - - /** Tags relevant to the current Spec execution. */ - tags?: (string[]|null); - } - - /** Contains details of the Spec execution. */ - class SpecInfo implements ISpecInfo { - - /** - * Constructs a new SpecInfo. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.ISpecInfo); - - /** Name of the current Spec being executed. */ - public name: string; - - /** Full File path containing the current Spec being executed. */ - public fileName: string; - - /** Flag to indicate if the current Spec execution failed. */ - public isFailed: boolean; - - /** Tags relevant to the current Spec execution. */ - public tags: string[]; - - /** - * Creates a new SpecInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns SpecInfo instance - */ - public static create(properties?: gauge.messages.ISpecInfo): gauge.messages.SpecInfo; - - /** - * Encodes the specified SpecInfo message. Does not implicitly {@link gauge.messages.SpecInfo.verify|verify} messages. - * @param message SpecInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.ISpecInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SpecInfo message, length delimited. Does not implicitly {@link gauge.messages.SpecInfo.verify|verify} messages. - * @param message SpecInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.ISpecInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SpecInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SpecInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.SpecInfo; - - /** - * Decodes a SpecInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SpecInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.SpecInfo; - - /** - * Verifies a SpecInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SpecInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SpecInfo - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.SpecInfo; - - /** - * Creates a plain object from a SpecInfo message. Also converts values to other types if specified. - * @param message SpecInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.SpecInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SpecInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ScenarioInfo. */ - interface IScenarioInfo { - - /** Name of the current Scenario being executed. */ - name?: (string|null); - - /** Flag to indicate if the current Scenario execution failed. */ - isFailed?: (boolean|null); - - /** Tags relevant to the current Scenario execution. */ - tags?: (string[]|null); - } - - /** Contains details of the Scenario execution. */ - class ScenarioInfo implements IScenarioInfo { - - /** - * Constructs a new ScenarioInfo. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IScenarioInfo); - - /** Name of the current Scenario being executed. */ - public name: string; - - /** Flag to indicate if the current Scenario execution failed. */ - public isFailed: boolean; - - /** Tags relevant to the current Scenario execution. */ - public tags: string[]; - - /** - * Creates a new ScenarioInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ScenarioInfo instance - */ - public static create(properties?: gauge.messages.IScenarioInfo): gauge.messages.ScenarioInfo; - - /** - * Encodes the specified ScenarioInfo message. Does not implicitly {@link gauge.messages.ScenarioInfo.verify|verify} messages. - * @param message ScenarioInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IScenarioInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ScenarioInfo message, length delimited. Does not implicitly {@link gauge.messages.ScenarioInfo.verify|verify} messages. - * @param message ScenarioInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IScenarioInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ScenarioInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ScenarioInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ScenarioInfo; - - /** - * Decodes a ScenarioInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ScenarioInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ScenarioInfo; - - /** - * Verifies a ScenarioInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ScenarioInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ScenarioInfo - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ScenarioInfo; - - /** - * Creates a plain object from a ScenarioInfo message. Also converts values to other types if specified. - * @param message ScenarioInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ScenarioInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ScenarioInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StepInfo. */ - interface IStepInfo { - - /** The current request to execute Step */ - step?: (gauge.messages.IExecuteStepRequest|null); - - /** Flag to indicate if the current Step execution failed. */ - isFailed?: (boolean|null); - - /** The current stack trace in case of failure */ - stackTrace?: (string|null); - - /** The error message in case of failure */ - errorMessage?: (string|null); - } - - /** Contains details of the Step execution. */ - class StepInfo implements IStepInfo { - - /** - * Constructs a new StepInfo. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IStepInfo); - - /** The current request to execute Step */ - public step?: (gauge.messages.IExecuteStepRequest|null); - - /** Flag to indicate if the current Step execution failed. */ - public isFailed: boolean; - - /** The current stack trace in case of failure */ - public stackTrace: string; - - /** The error message in case of failure */ - public errorMessage: string; - - /** - * Creates a new StepInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns StepInfo instance - */ - public static create(properties?: gauge.messages.IStepInfo): gauge.messages.StepInfo; - - /** - * Encodes the specified StepInfo message. Does not implicitly {@link gauge.messages.StepInfo.verify|verify} messages. - * @param message StepInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IStepInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StepInfo message, length delimited. Does not implicitly {@link gauge.messages.StepInfo.verify|verify} messages. - * @param message StepInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IStepInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StepInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StepInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.StepInfo; - - /** - * Decodes a StepInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StepInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.StepInfo; - - /** - * Verifies a StepInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StepInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StepInfo - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.StepInfo; - - /** - * Creates a plain object from a StepInfo message. Also converts values to other types if specified. - * @param message StepInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.StepInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StepInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ExecuteStepRequest. */ - interface IExecuteStepRequest { - - /** This contains the parameters as defined in the Spec. */ - actualStepText?: (string|null); - - /** The paramters are replaced with placeholders. */ - parsedStepText?: (string|null); - - /** Flag to indicate if the execution of the Scenario, containing the current Step, failed. */ - scenarioFailing?: (boolean|null); - - /** Collection of parameters applicable to the current Step. */ - parameters?: (gauge.messages.IParameter[]|null); - - /** ExecuteStepRequest stream */ - stream?: (number|null); - } - - /** Request sent ot the runner to Execute a Step */ - class ExecuteStepRequest implements IExecuteStepRequest { - - /** - * Constructs a new ExecuteStepRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IExecuteStepRequest); - - /** This contains the parameters as defined in the Spec. */ - public actualStepText: string; - - /** The paramters are replaced with placeholders. */ - public parsedStepText: string; - - /** Flag to indicate if the execution of the Scenario, containing the current Step, failed. */ - public scenarioFailing: boolean; - - /** Collection of parameters applicable to the current Step. */ - public parameters: gauge.messages.IParameter[]; - - /** ExecuteStepRequest stream. */ - public stream: number; - - /** - * Creates a new ExecuteStepRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteStepRequest instance - */ - public static create(properties?: gauge.messages.IExecuteStepRequest): gauge.messages.ExecuteStepRequest; - - /** - * Encodes the specified ExecuteStepRequest message. Does not implicitly {@link gauge.messages.ExecuteStepRequest.verify|verify} messages. - * @param message ExecuteStepRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IExecuteStepRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteStepRequest message, length delimited. Does not implicitly {@link gauge.messages.ExecuteStepRequest.verify|verify} messages. - * @param message ExecuteStepRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IExecuteStepRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteStepRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteStepRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ExecuteStepRequest; - - /** - * Decodes an ExecuteStepRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteStepRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ExecuteStepRequest; - - /** - * Verifies an ExecuteStepRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteStepRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteStepRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ExecuteStepRequest; - - /** - * Creates a plain object from an ExecuteStepRequest message. Also converts values to other types if specified. - * @param message ExecuteStepRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ExecuteStepRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteStepRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StepValidateRequest. */ - interface IStepValidateRequest { - - /** The text is used to lookup Step implementation */ - stepText?: (string|null); - - /** The number of paramters in the Step */ - numberOfParameters?: (number|null); - - /** This is use to generate step implementation template */ - stepValue?: (gauge.messages.IProtoStepValue|null); - } - - /** The runner should check if there is an implementation defined for the given Step Text. */ - class StepValidateRequest implements IStepValidateRequest { - - /** - * Constructs a new StepValidateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IStepValidateRequest); - - /** The text is used to lookup Step implementation */ - public stepText: string; - - /** The number of paramters in the Step */ - public numberOfParameters: number; - - /** This is use to generate step implementation template */ - public stepValue?: (gauge.messages.IProtoStepValue|null); - - /** - * Creates a new StepValidateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StepValidateRequest instance - */ - public static create(properties?: gauge.messages.IStepValidateRequest): gauge.messages.StepValidateRequest; - - /** - * Encodes the specified StepValidateRequest message. Does not implicitly {@link gauge.messages.StepValidateRequest.verify|verify} messages. - * @param message StepValidateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IStepValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StepValidateRequest message, length delimited. Does not implicitly {@link gauge.messages.StepValidateRequest.verify|verify} messages. - * @param message StepValidateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IStepValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StepValidateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StepValidateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.StepValidateRequest; - - /** - * Decodes a StepValidateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StepValidateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.StepValidateRequest; - - /** - * Verifies a StepValidateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StepValidateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StepValidateRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.StepValidateRequest; - - /** - * Creates a plain object from a StepValidateRequest message. Also converts values to other types if specified. - * @param message StepValidateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.StepValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StepValidateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StepValidateResponse. */ - interface IStepValidateResponse { - - /** StepValidateResponse isValid */ - isValid?: (boolean|null); - - /** StepValidateResponse errorMessage */ - errorMessage?: (string|null); - - /** StepValidateResponse errorType */ - errorType?: (gauge.messages.StepValidateResponse.ErrorType|null); - - /** StepValidateResponse suggestion */ - suggestion?: (string|null); - } - - /** Returns an error message if it is an error response. */ - class StepValidateResponse implements IStepValidateResponse { - - /** - * Constructs a new StepValidateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IStepValidateResponse); - - /** StepValidateResponse isValid. */ - public isValid: boolean; - - /** StepValidateResponse errorMessage. */ - public errorMessage: string; - - /** StepValidateResponse errorType. */ - public errorType: gauge.messages.StepValidateResponse.ErrorType; - - /** StepValidateResponse suggestion. */ - public suggestion: string; - - /** - * Creates a new StepValidateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StepValidateResponse instance - */ - public static create(properties?: gauge.messages.IStepValidateResponse): gauge.messages.StepValidateResponse; - - /** - * Encodes the specified StepValidateResponse message. Does not implicitly {@link gauge.messages.StepValidateResponse.verify|verify} messages. - * @param message StepValidateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IStepValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StepValidateResponse message, length delimited. Does not implicitly {@link gauge.messages.StepValidateResponse.verify|verify} messages. - * @param message StepValidateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IStepValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StepValidateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StepValidateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.StepValidateResponse; - - /** - * Decodes a StepValidateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StepValidateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.StepValidateResponse; - - /** - * Verifies a StepValidateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StepValidateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StepValidateResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.StepValidateResponse; - - /** - * Creates a plain object from a StepValidateResponse message. Also converts values to other types if specified. - * @param message StepValidateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.StepValidateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StepValidateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace StepValidateResponse { - - /** ErrorType enum. */ - enum ErrorType { - STEP_IMPLEMENTATION_NOT_FOUND = 0, - DUPLICATE_STEP_IMPLEMENTATION = 1 - } - } - - /** Properties of a SuiteExecutionResult. */ - interface ISuiteExecutionResult { - - /** SuiteExecutionResult suiteResult */ - suiteResult?: (gauge.messages.IProtoSuiteResult|null); - } - - /** Result of the Suite Execution. */ - class SuiteExecutionResult implements ISuiteExecutionResult { - - /** - * Constructs a new SuiteExecutionResult. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.ISuiteExecutionResult); - - /** SuiteExecutionResult suiteResult. */ - public suiteResult?: (gauge.messages.IProtoSuiteResult|null); - - /** - * Creates a new SuiteExecutionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns SuiteExecutionResult instance - */ - public static create(properties?: gauge.messages.ISuiteExecutionResult): gauge.messages.SuiteExecutionResult; - - /** - * Encodes the specified SuiteExecutionResult message. Does not implicitly {@link gauge.messages.SuiteExecutionResult.verify|verify} messages. - * @param message SuiteExecutionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.ISuiteExecutionResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SuiteExecutionResult message, length delimited. Does not implicitly {@link gauge.messages.SuiteExecutionResult.verify|verify} messages. - * @param message SuiteExecutionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.ISuiteExecutionResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SuiteExecutionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SuiteExecutionResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.SuiteExecutionResult; - - /** - * Decodes a SuiteExecutionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SuiteExecutionResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.SuiteExecutionResult; - - /** - * Verifies a SuiteExecutionResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SuiteExecutionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SuiteExecutionResult - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.SuiteExecutionResult; - - /** - * Creates a plain object from a SuiteExecutionResult message. Also converts values to other types if specified. - * @param message SuiteExecutionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.SuiteExecutionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SuiteExecutionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a SuiteExecutionResultItem. */ - interface ISuiteExecutionResultItem { - - /** SuiteExecutionResultItem resultItem */ - resultItem?: (gauge.messages.IProtoItem|null); - } - - /** Represents a SuiteExecutionResultItem. */ - class SuiteExecutionResultItem implements ISuiteExecutionResultItem { - - /** - * Constructs a new SuiteExecutionResultItem. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.ISuiteExecutionResultItem); - - /** SuiteExecutionResultItem resultItem. */ - public resultItem?: (gauge.messages.IProtoItem|null); - - /** - * Creates a new SuiteExecutionResultItem instance using the specified properties. - * @param [properties] Properties to set - * @returns SuiteExecutionResultItem instance - */ - public static create(properties?: gauge.messages.ISuiteExecutionResultItem): gauge.messages.SuiteExecutionResultItem; - - /** - * Encodes the specified SuiteExecutionResultItem message. Does not implicitly {@link gauge.messages.SuiteExecutionResultItem.verify|verify} messages. - * @param message SuiteExecutionResultItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.ISuiteExecutionResultItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SuiteExecutionResultItem message, length delimited. Does not implicitly {@link gauge.messages.SuiteExecutionResultItem.verify|verify} messages. - * @param message SuiteExecutionResultItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.ISuiteExecutionResultItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SuiteExecutionResultItem message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SuiteExecutionResultItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.SuiteExecutionResultItem; - - /** - * Decodes a SuiteExecutionResultItem message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SuiteExecutionResultItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.SuiteExecutionResultItem; - - /** - * Verifies a SuiteExecutionResultItem message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SuiteExecutionResultItem message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SuiteExecutionResultItem - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.SuiteExecutionResultItem; - - /** - * Creates a plain object from a SuiteExecutionResultItem message. Also converts values to other types if specified. - * @param message SuiteExecutionResultItem - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.SuiteExecutionResultItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SuiteExecutionResultItem to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StepNamesRequest. */ - interface IStepNamesRequest { - } - - /** Requests Gauge to give all Step Names. */ - class StepNamesRequest implements IStepNamesRequest { - - /** - * Constructs a new StepNamesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IStepNamesRequest); - - /** - * Creates a new StepNamesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StepNamesRequest instance - */ - public static create(properties?: gauge.messages.IStepNamesRequest): gauge.messages.StepNamesRequest; - - /** - * Encodes the specified StepNamesRequest message. Does not implicitly {@link gauge.messages.StepNamesRequest.verify|verify} messages. - * @param message StepNamesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IStepNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StepNamesRequest message, length delimited. Does not implicitly {@link gauge.messages.StepNamesRequest.verify|verify} messages. - * @param message StepNamesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IStepNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StepNamesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StepNamesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.StepNamesRequest; - - /** - * Decodes a StepNamesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StepNamesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.StepNamesRequest; - - /** - * Verifies a StepNamesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StepNamesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StepNamesRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.StepNamesRequest; - - /** - * Creates a plain object from a StepNamesRequest message. Also converts values to other types if specified. - * @param message StepNamesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.StepNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StepNamesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StepNamesResponse. */ - interface IStepNamesResponse { - - /** Collection of strings corresponding to Step texts. */ - steps?: (string[]|null); - } - - /** Response to StepNamesRequest */ - class StepNamesResponse implements IStepNamesResponse { - - /** - * Constructs a new StepNamesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IStepNamesResponse); - - /** Collection of strings corresponding to Step texts. */ - public steps: string[]; - - /** - * Creates a new StepNamesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StepNamesResponse instance - */ - public static create(properties?: gauge.messages.IStepNamesResponse): gauge.messages.StepNamesResponse; - - /** - * Encodes the specified StepNamesResponse message. Does not implicitly {@link gauge.messages.StepNamesResponse.verify|verify} messages. - * @param message StepNamesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IStepNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StepNamesResponse message, length delimited. Does not implicitly {@link gauge.messages.StepNamesResponse.verify|verify} messages. - * @param message StepNamesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IStepNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StepNamesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StepNamesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.StepNamesResponse; - - /** - * Decodes a StepNamesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StepNamesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.StepNamesResponse; - - /** - * Verifies a StepNamesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StepNamesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StepNamesResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.StepNamesResponse; - - /** - * Creates a plain object from a StepNamesResponse message. Also converts values to other types if specified. - * @param message StepNamesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.StepNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StepNamesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ScenarioDataStoreInitRequest. */ - interface IScenarioDataStoreInitRequest { - - /** ScenarioDataStoreInitRequest stream */ - stream?: (number|null); - } - - /** Scenario Datastore is reset after every Scenario execution. */ - class ScenarioDataStoreInitRequest implements IScenarioDataStoreInitRequest { - - /** - * Constructs a new ScenarioDataStoreInitRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IScenarioDataStoreInitRequest); - - /** ScenarioDataStoreInitRequest stream. */ - public stream: number; - - /** - * Creates a new ScenarioDataStoreInitRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ScenarioDataStoreInitRequest instance - */ - public static create(properties?: gauge.messages.IScenarioDataStoreInitRequest): gauge.messages.ScenarioDataStoreInitRequest; - - /** - * Encodes the specified ScenarioDataStoreInitRequest message. Does not implicitly {@link gauge.messages.ScenarioDataStoreInitRequest.verify|verify} messages. - * @param message ScenarioDataStoreInitRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IScenarioDataStoreInitRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ScenarioDataStoreInitRequest message, length delimited. Does not implicitly {@link gauge.messages.ScenarioDataStoreInitRequest.verify|verify} messages. - * @param message ScenarioDataStoreInitRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IScenarioDataStoreInitRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ScenarioDataStoreInitRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ScenarioDataStoreInitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ScenarioDataStoreInitRequest; - - /** - * Decodes a ScenarioDataStoreInitRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ScenarioDataStoreInitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ScenarioDataStoreInitRequest; - - /** - * Verifies a ScenarioDataStoreInitRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ScenarioDataStoreInitRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ScenarioDataStoreInitRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ScenarioDataStoreInitRequest; - - /** - * Creates a plain object from a ScenarioDataStoreInitRequest message. Also converts values to other types if specified. - * @param message ScenarioDataStoreInitRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ScenarioDataStoreInitRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ScenarioDataStoreInitRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a SpecDataStoreInitRequest. */ - interface ISpecDataStoreInitRequest { - - /** SpecDataStoreInitRequest stream */ - stream?: (number|null); - } - - /** Spec Datastore is reset after every Spec execution. */ - class SpecDataStoreInitRequest implements ISpecDataStoreInitRequest { - - /** - * Constructs a new SpecDataStoreInitRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.ISpecDataStoreInitRequest); - - /** SpecDataStoreInitRequest stream. */ - public stream: number; - - /** - * Creates a new SpecDataStoreInitRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SpecDataStoreInitRequest instance - */ - public static create(properties?: gauge.messages.ISpecDataStoreInitRequest): gauge.messages.SpecDataStoreInitRequest; - - /** - * Encodes the specified SpecDataStoreInitRequest message. Does not implicitly {@link gauge.messages.SpecDataStoreInitRequest.verify|verify} messages. - * @param message SpecDataStoreInitRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.ISpecDataStoreInitRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SpecDataStoreInitRequest message, length delimited. Does not implicitly {@link gauge.messages.SpecDataStoreInitRequest.verify|verify} messages. - * @param message SpecDataStoreInitRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.ISpecDataStoreInitRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SpecDataStoreInitRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SpecDataStoreInitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.SpecDataStoreInitRequest; - - /** - * Decodes a SpecDataStoreInitRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SpecDataStoreInitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.SpecDataStoreInitRequest; - - /** - * Verifies a SpecDataStoreInitRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SpecDataStoreInitRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SpecDataStoreInitRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.SpecDataStoreInitRequest; - - /** - * Creates a plain object from a SpecDataStoreInitRequest message. Also converts values to other types if specified. - * @param message SpecDataStoreInitRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.SpecDataStoreInitRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SpecDataStoreInitRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a SuiteDataStoreInitRequest. */ - interface ISuiteDataStoreInitRequest { - - /** SuiteDataStoreInitRequest stream */ - stream?: (number|null); - } - - /** Suite Datastore is reset after every Suite execution. */ - class SuiteDataStoreInitRequest implements ISuiteDataStoreInitRequest { - - /** - * Constructs a new SuiteDataStoreInitRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.ISuiteDataStoreInitRequest); - - /** SuiteDataStoreInitRequest stream. */ - public stream: number; - - /** - * Creates a new SuiteDataStoreInitRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SuiteDataStoreInitRequest instance - */ - public static create(properties?: gauge.messages.ISuiteDataStoreInitRequest): gauge.messages.SuiteDataStoreInitRequest; - - /** - * Encodes the specified SuiteDataStoreInitRequest message. Does not implicitly {@link gauge.messages.SuiteDataStoreInitRequest.verify|verify} messages. - * @param message SuiteDataStoreInitRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.ISuiteDataStoreInitRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SuiteDataStoreInitRequest message, length delimited. Does not implicitly {@link gauge.messages.SuiteDataStoreInitRequest.verify|verify} messages. - * @param message SuiteDataStoreInitRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.ISuiteDataStoreInitRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SuiteDataStoreInitRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SuiteDataStoreInitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.SuiteDataStoreInitRequest; - - /** - * Decodes a SuiteDataStoreInitRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SuiteDataStoreInitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.SuiteDataStoreInitRequest; - - /** - * Verifies a SuiteDataStoreInitRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SuiteDataStoreInitRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SuiteDataStoreInitRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.SuiteDataStoreInitRequest; - - /** - * Creates a plain object from a SuiteDataStoreInitRequest message. Also converts values to other types if specified. - * @param message SuiteDataStoreInitRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.SuiteDataStoreInitRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SuiteDataStoreInitRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ParameterPosition. */ - interface IParameterPosition { - - /** ParameterPosition oldPosition */ - oldPosition?: (number|null); - - /** ParameterPosition newPosition */ - newPosition?: (number|null); - } - - /** Used when refactoring a Step. */ - class ParameterPosition implements IParameterPosition { - - /** - * Constructs a new ParameterPosition. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IParameterPosition); - - /** ParameterPosition oldPosition. */ - public oldPosition: number; - - /** ParameterPosition newPosition. */ - public newPosition: number; - - /** - * Creates a new ParameterPosition instance using the specified properties. - * @param [properties] Properties to set - * @returns ParameterPosition instance - */ - public static create(properties?: gauge.messages.IParameterPosition): gauge.messages.ParameterPosition; - - /** - * Encodes the specified ParameterPosition message. Does not implicitly {@link gauge.messages.ParameterPosition.verify|verify} messages. - * @param message ParameterPosition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IParameterPosition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ParameterPosition message, length delimited. Does not implicitly {@link gauge.messages.ParameterPosition.verify|verify} messages. - * @param message ParameterPosition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IParameterPosition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ParameterPosition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ParameterPosition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ParameterPosition; - - /** - * Decodes a ParameterPosition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ParameterPosition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ParameterPosition; - - /** - * Verifies a ParameterPosition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ParameterPosition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ParameterPosition - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ParameterPosition; - - /** - * Creates a plain object from a ParameterPosition message. Also converts values to other types if specified. - * @param message ParameterPosition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ParameterPosition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ParameterPosition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RefactorRequest. */ - interface IRefactorRequest { - - /** Old value, used to lookup Step to refactor */ - oldStepValue?: (gauge.messages.IProtoStepValue|null); - - /** New value, the to-be value of Step being refactored. */ - newStepValue?: (gauge.messages.IProtoStepValue|null); - - /** Holds parameter positions of all parameters. Contains old and new parameter positions. */ - paramPositions?: (gauge.messages.IParameterPosition[]|null); - - /** If set to true, the refactored files should be saved to the file system before returning the response. */ - saveChanges?: (boolean|null); - } - - /** Tells the runner to refactor the specified Step. */ - class RefactorRequest implements IRefactorRequest { - - /** - * Constructs a new RefactorRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IRefactorRequest); - - /** Old value, used to lookup Step to refactor */ - public oldStepValue?: (gauge.messages.IProtoStepValue|null); - - /** New value, the to-be value of Step being refactored. */ - public newStepValue?: (gauge.messages.IProtoStepValue|null); - - /** Holds parameter positions of all parameters. Contains old and new parameter positions. */ - public paramPositions: gauge.messages.IParameterPosition[]; - - /** If set to true, the refactored files should be saved to the file system before returning the response. */ - public saveChanges: boolean; - - /** - * Creates a new RefactorRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RefactorRequest instance - */ - public static create(properties?: gauge.messages.IRefactorRequest): gauge.messages.RefactorRequest; - - /** - * Encodes the specified RefactorRequest message. Does not implicitly {@link gauge.messages.RefactorRequest.verify|verify} messages. - * @param message RefactorRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IRefactorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RefactorRequest message, length delimited. Does not implicitly {@link gauge.messages.RefactorRequest.verify|verify} messages. - * @param message RefactorRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IRefactorRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RefactorRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RefactorRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.RefactorRequest; - - /** - * Decodes a RefactorRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RefactorRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.RefactorRequest; - - /** - * Verifies a RefactorRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RefactorRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RefactorRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.RefactorRequest; - - /** - * Creates a plain object from a RefactorRequest message. Also converts values to other types if specified. - * @param message RefactorRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.RefactorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RefactorRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a FileChanges. */ - interface IFileChanges { - - /** FileChanges fileName */ - fileName?: (string|null); - - /** FileChanges fileContent */ - fileContent?: (string|null); - - /** FileChanges diffs */ - diffs?: (gauge.messages.ITextDiff[]|null); - } - - /** Give all file changes to be made to file system */ - class FileChanges implements IFileChanges { - - /** - * Constructs a new FileChanges. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IFileChanges); - - /** FileChanges fileName. */ - public fileName: string; - - /** FileChanges fileContent. */ - public fileContent: string; - - /** FileChanges diffs. */ - public diffs: gauge.messages.ITextDiff[]; - - /** - * Creates a new FileChanges instance using the specified properties. - * @param [properties] Properties to set - * @returns FileChanges instance - */ - public static create(properties?: gauge.messages.IFileChanges): gauge.messages.FileChanges; - - /** - * Encodes the specified FileChanges message. Does not implicitly {@link gauge.messages.FileChanges.verify|verify} messages. - * @param message FileChanges message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IFileChanges, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FileChanges message, length delimited. Does not implicitly {@link gauge.messages.FileChanges.verify|verify} messages. - * @param message FileChanges message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IFileChanges, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileChanges message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileChanges - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.FileChanges; - - /** - * Decodes a FileChanges message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FileChanges - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.FileChanges; - - /** - * Verifies a FileChanges message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FileChanges message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FileChanges - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.FileChanges; - - /** - * Creates a plain object from a FileChanges message. Also converts values to other types if specified. - * @param message FileChanges - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.FileChanges, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FileChanges to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RefactorResponse. */ - interface IRefactorResponse { - - /** Flag indicating the success of Refactor operation. */ - success?: (boolean|null); - - /** Error message, valid only if Refactor wasn't successful */ - error?: (string|null); - - /** List of files that were affected because of the refactoring. */ - filesChanged?: (string[]|null); - - /** List of file changes to be made to successfully achieve refactoring. */ - fileChanges?: (gauge.messages.IFileChanges[]|null); - } - - /** Response of a RefactorRequest */ - class RefactorResponse implements IRefactorResponse { - - /** - * Constructs a new RefactorResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IRefactorResponse); - - /** Flag indicating the success of Refactor operation. */ - public success: boolean; - - /** Error message, valid only if Refactor wasn't successful */ - public error: string; - - /** List of files that were affected because of the refactoring. */ - public filesChanged: string[]; - - /** List of file changes to be made to successfully achieve refactoring. */ - public fileChanges: gauge.messages.IFileChanges[]; - - /** - * Creates a new RefactorResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RefactorResponse instance - */ - public static create(properties?: gauge.messages.IRefactorResponse): gauge.messages.RefactorResponse; - - /** - * Encodes the specified RefactorResponse message. Does not implicitly {@link gauge.messages.RefactorResponse.verify|verify} messages. - * @param message RefactorResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IRefactorResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RefactorResponse message, length delimited. Does not implicitly {@link gauge.messages.RefactorResponse.verify|verify} messages. - * @param message RefactorResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IRefactorResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RefactorResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RefactorResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.RefactorResponse; - - /** - * Decodes a RefactorResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RefactorResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.RefactorResponse; - - /** - * Verifies a RefactorResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RefactorResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RefactorResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.RefactorResponse; - - /** - * Creates a plain object from a RefactorResponse message. Also converts values to other types if specified. - * @param message RefactorResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.RefactorResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RefactorResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StepNameRequest. */ - interface IStepNameRequest { - - /** This is the parsed step value, i.e. with placeholders for parameters. */ - stepValue?: (string|null); - } - - /** Request for details on a Single Step. */ - class StepNameRequest implements IStepNameRequest { - - /** - * Constructs a new StepNameRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IStepNameRequest); - - /** This is the parsed step value, i.e. with placeholders for parameters. */ - public stepValue: string; - - /** - * Creates a new StepNameRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StepNameRequest instance - */ - public static create(properties?: gauge.messages.IStepNameRequest): gauge.messages.StepNameRequest; - - /** - * Encodes the specified StepNameRequest message. Does not implicitly {@link gauge.messages.StepNameRequest.verify|verify} messages. - * @param message StepNameRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IStepNameRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StepNameRequest message, length delimited. Does not implicitly {@link gauge.messages.StepNameRequest.verify|verify} messages. - * @param message StepNameRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IStepNameRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StepNameRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StepNameRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.StepNameRequest; - - /** - * Decodes a StepNameRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StepNameRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.StepNameRequest; - - /** - * Verifies a StepNameRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StepNameRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StepNameRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.StepNameRequest; - - /** - * Creates a plain object from a StepNameRequest message. Also converts values to other types if specified. - * @param message StepNameRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.StepNameRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StepNameRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StepNameResponse. */ - interface IStepNameResponse { - - /** Flag indicating if there is a match for the given Step Text. */ - isStepPresent?: (boolean|null); - - /** The Step name of the given step. */ - stepName?: (string[]|null); - - /** Flag indicating if the given Step is an alias. */ - hasAlias?: (boolean|null); - - /** File name in which the step implementation exists */ - fileName?: (string|null); - - /** Range of step */ - span?: (gauge.messages.ISpan|null); - } - - /** Response to StepNameRequest. */ - class StepNameResponse implements IStepNameResponse { - - /** - * Constructs a new StepNameResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IStepNameResponse); - - /** Flag indicating if there is a match for the given Step Text. */ - public isStepPresent: boolean; - - /** The Step name of the given step. */ - public stepName: string[]; - - /** Flag indicating if the given Step is an alias. */ - public hasAlias: boolean; - - /** File name in which the step implementation exists */ - public fileName: string; - - /** Range of step */ - public span?: (gauge.messages.ISpan|null); - - /** - * Creates a new StepNameResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StepNameResponse instance - */ - public static create(properties?: gauge.messages.IStepNameResponse): gauge.messages.StepNameResponse; - - /** - * Encodes the specified StepNameResponse message. Does not implicitly {@link gauge.messages.StepNameResponse.verify|verify} messages. - * @param message StepNameResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IStepNameResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StepNameResponse message, length delimited. Does not implicitly {@link gauge.messages.StepNameResponse.verify|verify} messages. - * @param message StepNameResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IStepNameResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StepNameResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StepNameResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.StepNameResponse; - - /** - * Decodes a StepNameResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StepNameResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.StepNameResponse; - - /** - * Verifies a StepNameResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StepNameResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StepNameResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.StepNameResponse; - - /** - * Creates a plain object from a StepNameResponse message. Also converts values to other types if specified. - * @param message StepNameResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.StepNameResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StepNameResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UnsupportedMessageResponse. */ - interface IUnsupportedMessageResponse { - - /** UnsupportedMessageResponse message */ - message?: (string|null); - } - - /** Response when a unsupported message request is sent. */ - class UnsupportedMessageResponse implements IUnsupportedMessageResponse { - - /** - * Constructs a new UnsupportedMessageResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IUnsupportedMessageResponse); - - /** UnsupportedMessageResponse message. */ - public message: string; - - /** - * Creates a new UnsupportedMessageResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UnsupportedMessageResponse instance - */ - public static create(properties?: gauge.messages.IUnsupportedMessageResponse): gauge.messages.UnsupportedMessageResponse; - - /** - * Encodes the specified UnsupportedMessageResponse message. Does not implicitly {@link gauge.messages.UnsupportedMessageResponse.verify|verify} messages. - * @param message UnsupportedMessageResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IUnsupportedMessageResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UnsupportedMessageResponse message, length delimited. Does not implicitly {@link gauge.messages.UnsupportedMessageResponse.verify|verify} messages. - * @param message UnsupportedMessageResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IUnsupportedMessageResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UnsupportedMessageResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UnsupportedMessageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.UnsupportedMessageResponse; - - /** - * Decodes an UnsupportedMessageResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UnsupportedMessageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.UnsupportedMessageResponse; - - /** - * Verifies an UnsupportedMessageResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UnsupportedMessageResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UnsupportedMessageResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.UnsupportedMessageResponse; - - /** - * Creates a plain object from an UnsupportedMessageResponse message. Also converts values to other types if specified. - * @param message UnsupportedMessageResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.UnsupportedMessageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UnsupportedMessageResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CacheFileRequest. */ - interface ICacheFileRequest { - - /** File content of the file to be cached */ - content?: (string|null); - - /** File path of the file to be cached */ - filePath?: (string|null); - - /** Specifies if the file is closed */ - isClosed?: (boolean|null); - - /** Specifies the status of the file */ - status?: (gauge.messages.CacheFileRequest.FileStatus|null); - } - - /** so runner can cache file contents present on the client(an editor). */ - class CacheFileRequest implements ICacheFileRequest { - - /** - * Constructs a new CacheFileRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.ICacheFileRequest); - - /** File content of the file to be cached */ - public content: string; - - /** File path of the file to be cached */ - public filePath: string; - - /** Specifies if the file is closed */ - public isClosed: boolean; - - /** Specifies the status of the file */ - public status: gauge.messages.CacheFileRequest.FileStatus; - - /** - * Creates a new CacheFileRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CacheFileRequest instance - */ - public static create(properties?: gauge.messages.ICacheFileRequest): gauge.messages.CacheFileRequest; - - /** - * Encodes the specified CacheFileRequest message. Does not implicitly {@link gauge.messages.CacheFileRequest.verify|verify} messages. - * @param message CacheFileRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.ICacheFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CacheFileRequest message, length delimited. Does not implicitly {@link gauge.messages.CacheFileRequest.verify|verify} messages. - * @param message CacheFileRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.ICacheFileRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CacheFileRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CacheFileRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.CacheFileRequest; - - /** - * Decodes a CacheFileRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CacheFileRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.CacheFileRequest; - - /** - * Verifies a CacheFileRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CacheFileRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CacheFileRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.CacheFileRequest; - - /** - * Creates a plain object from a CacheFileRequest message. Also converts values to other types if specified. - * @param message CacheFileRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.CacheFileRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CacheFileRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace CacheFileRequest { - - /** FileStatus enum. */ - enum FileStatus { - CHANGED = 0, - CLOSED = 1, - CREATED = 2, - DELETED = 3, - OPENED = 4 - } - } - - /** Properties of a StepPositionsRequest. */ - interface IStepPositionsRequest { - - /** Get step positions for file path */ - filePath?: (string|null); - } - - /** Request for find step positions */ - class StepPositionsRequest implements IStepPositionsRequest { - - /** - * Constructs a new StepPositionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IStepPositionsRequest); - - /** Get step positions for file path */ - public filePath: string; - - /** - * Creates a new StepPositionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StepPositionsRequest instance - */ - public static create(properties?: gauge.messages.IStepPositionsRequest): gauge.messages.StepPositionsRequest; - - /** - * Encodes the specified StepPositionsRequest message. Does not implicitly {@link gauge.messages.StepPositionsRequest.verify|verify} messages. - * @param message StepPositionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IStepPositionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StepPositionsRequest message, length delimited. Does not implicitly {@link gauge.messages.StepPositionsRequest.verify|verify} messages. - * @param message StepPositionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IStepPositionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StepPositionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StepPositionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.StepPositionsRequest; - - /** - * Decodes a StepPositionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StepPositionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.StepPositionsRequest; - - /** - * Verifies a StepPositionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StepPositionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StepPositionsRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.StepPositionsRequest; - - /** - * Creates a plain object from a StepPositionsRequest message. Also converts values to other types if specified. - * @param message StepPositionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.StepPositionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StepPositionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StepPositionsResponse. */ - interface IStepPositionsResponse { - - /** Step Position */ - stepPositions?: (gauge.messages.StepPositionsResponse.IStepPosition[]|null); - - /** Error message */ - error?: (string|null); - } - - /** Response for find step positions */ - class StepPositionsResponse implements IStepPositionsResponse { - - /** - * Constructs a new StepPositionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IStepPositionsResponse); - - /** Step Position */ - public stepPositions: gauge.messages.StepPositionsResponse.IStepPosition[]; - - /** Error message */ - public error: string; - - /** - * Creates a new StepPositionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StepPositionsResponse instance - */ - public static create(properties?: gauge.messages.IStepPositionsResponse): gauge.messages.StepPositionsResponse; - - /** - * Encodes the specified StepPositionsResponse message. Does not implicitly {@link gauge.messages.StepPositionsResponse.verify|verify} messages. - * @param message StepPositionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IStepPositionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StepPositionsResponse message, length delimited. Does not implicitly {@link gauge.messages.StepPositionsResponse.verify|verify} messages. - * @param message StepPositionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IStepPositionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StepPositionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StepPositionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.StepPositionsResponse; - - /** - * Decodes a StepPositionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StepPositionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.StepPositionsResponse; - - /** - * Verifies a StepPositionsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StepPositionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StepPositionsResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.StepPositionsResponse; - - /** - * Creates a plain object from a StepPositionsResponse message. Also converts values to other types if specified. - * @param message StepPositionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.StepPositionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StepPositionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace StepPositionsResponse { - - /** Properties of a StepPosition. */ - interface IStepPosition { - - /** Step Value */ - stepValue?: (string|null); - - /** Range of step */ - span?: (gauge.messages.ISpan|null); - } - - /** Step position for each step implementation */ - class StepPosition implements IStepPosition { - - /** - * Constructs a new StepPosition. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.StepPositionsResponse.IStepPosition); - - /** Step Value */ - public stepValue: string; - - /** Range of step */ - public span?: (gauge.messages.ISpan|null); - - /** - * Creates a new StepPosition instance using the specified properties. - * @param [properties] Properties to set - * @returns StepPosition instance - */ - public static create(properties?: gauge.messages.StepPositionsResponse.IStepPosition): gauge.messages.StepPositionsResponse.StepPosition; - - /** - * Encodes the specified StepPosition message. Does not implicitly {@link gauge.messages.StepPositionsResponse.StepPosition.verify|verify} messages. - * @param message StepPosition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.StepPositionsResponse.IStepPosition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StepPosition message, length delimited. Does not implicitly {@link gauge.messages.StepPositionsResponse.StepPosition.verify|verify} messages. - * @param message StepPosition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.StepPositionsResponse.IStepPosition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StepPosition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StepPosition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.StepPositionsResponse.StepPosition; - - /** - * Decodes a StepPosition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StepPosition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.StepPositionsResponse.StepPosition; - - /** - * Verifies a StepPosition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StepPosition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StepPosition - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.StepPositionsResponse.StepPosition; - - /** - * Creates a plain object from a StepPosition message. Also converts values to other types if specified. - * @param message StepPosition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.StepPositionsResponse.StepPosition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StepPosition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of an ImplementationFileGlobPatternRequest. */ - interface IImplementationFileGlobPatternRequest { - } - - /** Request for getting Implementation file glob pattern */ - class ImplementationFileGlobPatternRequest implements IImplementationFileGlobPatternRequest { - - /** - * Constructs a new ImplementationFileGlobPatternRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IImplementationFileGlobPatternRequest); - - /** - * Creates a new ImplementationFileGlobPatternRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ImplementationFileGlobPatternRequest instance - */ - public static create(properties?: gauge.messages.IImplementationFileGlobPatternRequest): gauge.messages.ImplementationFileGlobPatternRequest; - - /** - * Encodes the specified ImplementationFileGlobPatternRequest message. Does not implicitly {@link gauge.messages.ImplementationFileGlobPatternRequest.verify|verify} messages. - * @param message ImplementationFileGlobPatternRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IImplementationFileGlobPatternRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ImplementationFileGlobPatternRequest message, length delimited. Does not implicitly {@link gauge.messages.ImplementationFileGlobPatternRequest.verify|verify} messages. - * @param message ImplementationFileGlobPatternRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IImplementationFileGlobPatternRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ImplementationFileGlobPatternRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImplementationFileGlobPatternRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ImplementationFileGlobPatternRequest; - - /** - * Decodes an ImplementationFileGlobPatternRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImplementationFileGlobPatternRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ImplementationFileGlobPatternRequest; - - /** - * Verifies an ImplementationFileGlobPatternRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ImplementationFileGlobPatternRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImplementationFileGlobPatternRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ImplementationFileGlobPatternRequest; - - /** - * Creates a plain object from an ImplementationFileGlobPatternRequest message. Also converts values to other types if specified. - * @param message ImplementationFileGlobPatternRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ImplementationFileGlobPatternRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ImplementationFileGlobPatternRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ImplementationFileGlobPatternResponse. */ - interface IImplementationFileGlobPatternResponse { - - /** List of implementation file glob patterns */ - globPatterns?: (string[]|null); - } - - /** Response for getting Implementation file glob pattern */ - class ImplementationFileGlobPatternResponse implements IImplementationFileGlobPatternResponse { - - /** - * Constructs a new ImplementationFileGlobPatternResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IImplementationFileGlobPatternResponse); - - /** List of implementation file glob patterns */ - public globPatterns: string[]; - - /** - * Creates a new ImplementationFileGlobPatternResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ImplementationFileGlobPatternResponse instance - */ - public static create(properties?: gauge.messages.IImplementationFileGlobPatternResponse): gauge.messages.ImplementationFileGlobPatternResponse; - - /** - * Encodes the specified ImplementationFileGlobPatternResponse message. Does not implicitly {@link gauge.messages.ImplementationFileGlobPatternResponse.verify|verify} messages. - * @param message ImplementationFileGlobPatternResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IImplementationFileGlobPatternResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ImplementationFileGlobPatternResponse message, length delimited. Does not implicitly {@link gauge.messages.ImplementationFileGlobPatternResponse.verify|verify} messages. - * @param message ImplementationFileGlobPatternResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IImplementationFileGlobPatternResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ImplementationFileGlobPatternResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImplementationFileGlobPatternResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ImplementationFileGlobPatternResponse; - - /** - * Decodes an ImplementationFileGlobPatternResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImplementationFileGlobPatternResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ImplementationFileGlobPatternResponse; - - /** - * Verifies an ImplementationFileGlobPatternResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ImplementationFileGlobPatternResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImplementationFileGlobPatternResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ImplementationFileGlobPatternResponse; - - /** - * Creates a plain object from an ImplementationFileGlobPatternResponse message. Also converts values to other types if specified. - * @param message ImplementationFileGlobPatternResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ImplementationFileGlobPatternResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ImplementationFileGlobPatternResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ImplementationFileListRequest. */ - interface IImplementationFileListRequest { - } - - /** Request for getting Implementation file list */ - class ImplementationFileListRequest implements IImplementationFileListRequest { - - /** - * Constructs a new ImplementationFileListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IImplementationFileListRequest); - - /** - * Creates a new ImplementationFileListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ImplementationFileListRequest instance - */ - public static create(properties?: gauge.messages.IImplementationFileListRequest): gauge.messages.ImplementationFileListRequest; - - /** - * Encodes the specified ImplementationFileListRequest message. Does not implicitly {@link gauge.messages.ImplementationFileListRequest.verify|verify} messages. - * @param message ImplementationFileListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IImplementationFileListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ImplementationFileListRequest message, length delimited. Does not implicitly {@link gauge.messages.ImplementationFileListRequest.verify|verify} messages. - * @param message ImplementationFileListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IImplementationFileListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ImplementationFileListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImplementationFileListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ImplementationFileListRequest; - - /** - * Decodes an ImplementationFileListRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImplementationFileListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ImplementationFileListRequest; - - /** - * Verifies an ImplementationFileListRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ImplementationFileListRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImplementationFileListRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ImplementationFileListRequest; - - /** - * Creates a plain object from an ImplementationFileListRequest message. Also converts values to other types if specified. - * @param message ImplementationFileListRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ImplementationFileListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ImplementationFileListRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ImplementationFileListResponse. */ - interface IImplementationFileListResponse { - - /** List of implementation files */ - implementationFilePaths?: (string[]|null); - } - - /** Response for getting Implementation file list */ - class ImplementationFileListResponse implements IImplementationFileListResponse { - - /** - * Constructs a new ImplementationFileListResponse. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IImplementationFileListResponse); - - /** List of implementation files */ - public implementationFilePaths: string[]; - - /** - * Creates a new ImplementationFileListResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ImplementationFileListResponse instance - */ - public static create(properties?: gauge.messages.IImplementationFileListResponse): gauge.messages.ImplementationFileListResponse; - - /** - * Encodes the specified ImplementationFileListResponse message. Does not implicitly {@link gauge.messages.ImplementationFileListResponse.verify|verify} messages. - * @param message ImplementationFileListResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IImplementationFileListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ImplementationFileListResponse message, length delimited. Does not implicitly {@link gauge.messages.ImplementationFileListResponse.verify|verify} messages. - * @param message ImplementationFileListResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IImplementationFileListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ImplementationFileListResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImplementationFileListResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.ImplementationFileListResponse; - - /** - * Decodes an ImplementationFileListResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImplementationFileListResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.ImplementationFileListResponse; - - /** - * Verifies an ImplementationFileListResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ImplementationFileListResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImplementationFileListResponse - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.ImplementationFileListResponse; - - /** - * Creates a plain object from an ImplementationFileListResponse message. Also converts values to other types if specified. - * @param message ImplementationFileListResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.ImplementationFileListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ImplementationFileListResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StubImplementationCodeRequest. */ - interface IStubImplementationCodeRequest { - - /** Path of the file where the new stub implementation will be added */ - implementationFilePath?: (string|null); - - /** List of implementation codes to be appended to implementation file. */ - codes?: (string[]|null); - } - - /** Request for injecting code snippet into implementation file */ - class StubImplementationCodeRequest implements IStubImplementationCodeRequest { - - /** - * Constructs a new StubImplementationCodeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IStubImplementationCodeRequest); - - /** Path of the file where the new stub implementation will be added */ - public implementationFilePath: string; - - /** List of implementation codes to be appended to implementation file. */ - public codes: string[]; - - /** - * Creates a new StubImplementationCodeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StubImplementationCodeRequest instance - */ - public static create(properties?: gauge.messages.IStubImplementationCodeRequest): gauge.messages.StubImplementationCodeRequest; - - /** - * Encodes the specified StubImplementationCodeRequest message. Does not implicitly {@link gauge.messages.StubImplementationCodeRequest.verify|verify} messages. - * @param message StubImplementationCodeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IStubImplementationCodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StubImplementationCodeRequest message, length delimited. Does not implicitly {@link gauge.messages.StubImplementationCodeRequest.verify|verify} messages. - * @param message StubImplementationCodeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IStubImplementationCodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StubImplementationCodeRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StubImplementationCodeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.StubImplementationCodeRequest; - - /** - * Decodes a StubImplementationCodeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StubImplementationCodeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.StubImplementationCodeRequest; - - /** - * Verifies a StubImplementationCodeRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StubImplementationCodeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StubImplementationCodeRequest - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.StubImplementationCodeRequest; - - /** - * Creates a plain object from a StubImplementationCodeRequest message. Also converts values to other types if specified. - * @param message StubImplementationCodeRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.StubImplementationCodeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StubImplementationCodeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a TextDiff. */ - interface ITextDiff { - - /** Range of file to be replaced */ - span?: (gauge.messages.ISpan|null); - - /** New content to replace the content in the span */ - content?: (string|null); - } - - /** A Single Replace Diff Element to be applied */ - class TextDiff implements ITextDiff { - - /** - * Constructs a new TextDiff. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.ITextDiff); - - /** Range of file to be replaced */ - public span?: (gauge.messages.ISpan|null); - - /** New content to replace the content in the span */ - public content: string; - - /** - * Creates a new TextDiff instance using the specified properties. - * @param [properties] Properties to set - * @returns TextDiff instance - */ - public static create(properties?: gauge.messages.ITextDiff): gauge.messages.TextDiff; - - /** - * Encodes the specified TextDiff message. Does not implicitly {@link gauge.messages.TextDiff.verify|verify} messages. - * @param message TextDiff message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.ITextDiff, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TextDiff message, length delimited. Does not implicitly {@link gauge.messages.TextDiff.verify|verify} messages. - * @param message TextDiff message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.ITextDiff, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TextDiff message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextDiff - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.TextDiff; - - /** - * Decodes a TextDiff message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextDiff - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.TextDiff; - - /** - * Verifies a TextDiff message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TextDiff message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextDiff - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.TextDiff; - - /** - * Creates a plain object from a TextDiff message. Also converts values to other types if specified. - * @param message TextDiff - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.TextDiff, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TextDiff to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a FileDiff. */ - interface IFileDiff { - - /** File Path where the new content needs to be put in */ - filePath?: (string|null); - - /** The diffs which need to be applied to this file */ - textDiffs?: (gauge.messages.ITextDiff[]|null); - } - - /** Diffs to be applied to a file */ - class FileDiff implements IFileDiff { - - /** - * Constructs a new FileDiff. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IFileDiff); - - /** File Path where the new content needs to be put in */ - public filePath: string; - - /** The diffs which need to be applied to this file */ - public textDiffs: gauge.messages.ITextDiff[]; - - /** - * Creates a new FileDiff instance using the specified properties. - * @param [properties] Properties to set - * @returns FileDiff instance - */ - public static create(properties?: gauge.messages.IFileDiff): gauge.messages.FileDiff; - - /** - * Encodes the specified FileDiff message. Does not implicitly {@link gauge.messages.FileDiff.verify|verify} messages. - * @param message FileDiff message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IFileDiff, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FileDiff message, length delimited. Does not implicitly {@link gauge.messages.FileDiff.verify|verify} messages. - * @param message FileDiff message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IFileDiff, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileDiff message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileDiff - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.FileDiff; - - /** - * Decodes a FileDiff message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FileDiff - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.FileDiff; - - /** - * Verifies a FileDiff message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FileDiff message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FileDiff - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.FileDiff; - - /** - * Creates a plain object from a FileDiff message. Also converts values to other types if specified. - * @param message FileDiff - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.FileDiff, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FileDiff to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a KeepAlive. */ - interface IKeepAlive { - - /** ID of the plugin initiating this request */ - pluginId?: (string|null); - } - - /** Tell gauge to reset the kill timer, thus extending the life */ - class KeepAlive implements IKeepAlive { - - /** - * Constructs a new KeepAlive. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IKeepAlive); - - /** ID of the plugin initiating this request */ - public pluginId: string; - - /** - * Creates a new KeepAlive instance using the specified properties. - * @param [properties] Properties to set - * @returns KeepAlive instance - */ - public static create(properties?: gauge.messages.IKeepAlive): gauge.messages.KeepAlive; - - /** - * Encodes the specified KeepAlive message. Does not implicitly {@link gauge.messages.KeepAlive.verify|verify} messages. - * @param message KeepAlive message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IKeepAlive, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified KeepAlive message, length delimited. Does not implicitly {@link gauge.messages.KeepAlive.verify|verify} messages. - * @param message KeepAlive message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IKeepAlive, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KeepAlive message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KeepAlive - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.KeepAlive; - - /** - * Decodes a KeepAlive message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KeepAlive - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.KeepAlive; - - /** - * Verifies a KeepAlive message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a KeepAlive message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KeepAlive - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.KeepAlive; - - /** - * Creates a plain object from a KeepAlive message. Also converts values to other types if specified. - * @param message KeepAlive - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.KeepAlive, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this KeepAlive to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a SpecDetails. */ - interface ISpecDetails { - - /** Holds a collection of Spec details. */ - details?: (gauge.messages.SpecDetails.ISpecDetail[]|null); - } - - /** Represents a SpecDetails. */ - class SpecDetails implements ISpecDetails { - - /** - * Constructs a new SpecDetails. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.ISpecDetails); - - /** Holds a collection of Spec details. */ - public details: gauge.messages.SpecDetails.ISpecDetail[]; - - /** - * Creates a new SpecDetails instance using the specified properties. - * @param [properties] Properties to set - * @returns SpecDetails instance - */ - public static create(properties?: gauge.messages.ISpecDetails): gauge.messages.SpecDetails; - - /** - * Encodes the specified SpecDetails message. Does not implicitly {@link gauge.messages.SpecDetails.verify|verify} messages. - * @param message SpecDetails message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.ISpecDetails, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SpecDetails message, length delimited. Does not implicitly {@link gauge.messages.SpecDetails.verify|verify} messages. - * @param message SpecDetails message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.ISpecDetails, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SpecDetails message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SpecDetails - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.SpecDetails; - - /** - * Decodes a SpecDetails message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SpecDetails - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.SpecDetails; - - /** - * Verifies a SpecDetails message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SpecDetails message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SpecDetails - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.SpecDetails; - - /** - * Creates a plain object from a SpecDetails message. Also converts values to other types if specified. - * @param message SpecDetails - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.SpecDetails, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SpecDetails to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace SpecDetails { - - /** Properties of a SpecDetail. */ - interface ISpecDetail { - - /** Holds a collection of Specs that are defined in the project. */ - spec?: (gauge.messages.IProtoSpec|null); - - /** Holds a collection of parse errors present in the above spec. */ - parseErrors?: (gauge.messages.IError[]|null); - } - - /** Represents a SpecDetail. */ - class SpecDetail implements ISpecDetail { - - /** - * Constructs a new SpecDetail. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.SpecDetails.ISpecDetail); - - /** Holds a collection of Specs that are defined in the project. */ - public spec?: (gauge.messages.IProtoSpec|null); - - /** Holds a collection of parse errors present in the above spec. */ - public parseErrors: gauge.messages.IError[]; - - /** - * Creates a new SpecDetail instance using the specified properties. - * @param [properties] Properties to set - * @returns SpecDetail instance - */ - public static create(properties?: gauge.messages.SpecDetails.ISpecDetail): gauge.messages.SpecDetails.SpecDetail; - - /** - * Encodes the specified SpecDetail message. Does not implicitly {@link gauge.messages.SpecDetails.SpecDetail.verify|verify} messages. - * @param message SpecDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.SpecDetails.ISpecDetail, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SpecDetail message, length delimited. Does not implicitly {@link gauge.messages.SpecDetails.SpecDetail.verify|verify} messages. - * @param message SpecDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.SpecDetails.ISpecDetail, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SpecDetail message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SpecDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.SpecDetails.SpecDetail; - - /** - * Decodes a SpecDetail message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SpecDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.SpecDetails.SpecDetail; - - /** - * Verifies a SpecDetail message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SpecDetail message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SpecDetail - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.SpecDetails.SpecDetail; - - /** - * Creates a plain object from a SpecDetail message. Also converts values to other types if specified. - * @param message SpecDetail - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.SpecDetails.SpecDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SpecDetail to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of an Empty. */ - interface IEmpty { - } - - /** Represents an Empty. */ - class Empty implements IEmpty { - - /** - * Constructs a new Empty. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IEmpty); - - /** - * Creates a new Empty instance using the specified properties. - * @param [properties] Properties to set - * @returns Empty instance - */ - public static create(properties?: gauge.messages.IEmpty): gauge.messages.Empty; - - /** - * Encodes the specified Empty message. Does not implicitly {@link gauge.messages.Empty.verify|verify} messages. - * @param message Empty message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Empty message, length delimited. Does not implicitly {@link gauge.messages.Empty.verify|verify} messages. - * @param message Empty message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Empty message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Empty - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.Empty; - - /** - * Decodes an Empty message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Empty - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.Empty; - - /** - * Verifies an Empty message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an Empty message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Empty - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.Empty; - - /** - * Creates a plain object from an Empty message. Also converts values to other types if specified. - * @param message Empty - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Empty to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Message. */ - interface IMessage { - - /** Message messageType */ - messageType?: (gauge.messages.Message.MessageType|null); - - /** This is used to synchronize messages & responses */ - messageId?: (number|Long|null); - - /** [ExecutionStartingRequest](#gauge.messages.ExecutionStartingRequest) */ - executionStartingRequest?: (gauge.messages.IExecutionStartingRequest|null); - - /** [SpecExecutionStartingRequest](#gauge.messages.SpecExecutionStartingRequest) */ - specExecutionStartingRequest?: (gauge.messages.ISpecExecutionStartingRequest|null); - - /** [SpecExecutionEndingRequest](#gauge.messages.SpecExecutionEndingRequest) */ - specExecutionEndingRequest?: (gauge.messages.ISpecExecutionEndingRequest|null); - - /** [ScenarioExecutionStartingRequest](#gauge.messages.ScenarioExecutionStartingRequest) */ - scenarioExecutionStartingRequest?: (gauge.messages.IScenarioExecutionStartingRequest|null); - - /** [ScenarioExecutionEndingRequest](#gauge.messages.ScenarioExecutionEndingRequest) */ - scenarioExecutionEndingRequest?: (gauge.messages.IScenarioExecutionEndingRequest|null); - - /** [StepExecutionStartingRequest](#gauge.messages.StepExecutionStartingRequest) */ - stepExecutionStartingRequest?: (gauge.messages.IStepExecutionStartingRequest|null); - - /** [StepExecutionEndingRequest](#gauge.messages.StepExecutionEndingRequest) */ - stepExecutionEndingRequest?: (gauge.messages.IStepExecutionEndingRequest|null); - - /** [ExecuteStepRequest](#gauge.messages.ExecuteStepRequest) */ - executeStepRequest?: (gauge.messages.IExecuteStepRequest|null); - - /** [ExecutionEndingRequest](#gauge.messages.ExecutionEndingRequest) */ - executionEndingRequest?: (gauge.messages.IExecutionEndingRequest|null); - - /** [StepValidateRequest](#gauge.messages.StepValidateRequest) */ - stepValidateRequest?: (gauge.messages.IStepValidateRequest|null); - - /** [StepValidateResponse](#gauge.messages.StepValidateResponse) */ - stepValidateResponse?: (gauge.messages.IStepValidateResponse|null); - - /** [ExecutionStatusResponse](#gauge.messages.ExecutionStatusResponse) */ - executionStatusResponse?: (gauge.messages.IExecutionStatusResponse|null); - - /** [StepNamesRequest](#gauge.messages.StepNamesRequest) */ - stepNamesRequest?: (gauge.messages.IStepNamesRequest|null); - - /** [StepNamesResponse](#gauge.messages.StepNamesResponse) */ - stepNamesResponse?: (gauge.messages.IStepNamesResponse|null); - - /** [SuiteExecutionResult ](#gauge.messages.SuiteExecutionResult ) */ - suiteExecutionResult?: (gauge.messages.ISuiteExecutionResult|null); - - /** [KillProcessRequest](#gauge.messages.KillProcessRequest) */ - killProcessRequest?: (gauge.messages.IKillProcessRequest|null); - - /** [ScenarioDataStoreInitRequest](#gauge.messages.ScenarioDataStoreInitRequest) */ - scenarioDataStoreInitRequest?: (gauge.messages.IScenarioDataStoreInitRequest|null); - - /** [SpecDataStoreInitRequest](#gauge.messages.SpecDataStoreInitRequest) */ - specDataStoreInitRequest?: (gauge.messages.ISpecDataStoreInitRequest|null); - - /** [SuiteDataStoreInitRequest](#gauge.messages.SuiteDataStoreInitRequest) */ - suiteDataStoreInitRequest?: (gauge.messages.ISuiteDataStoreInitRequest|null); - - /** [StepNameRequest](#gauge.messages.StepNameRequest) */ - stepNameRequest?: (gauge.messages.IStepNameRequest|null); - - /** [StepNameResponse](#gauge.messages.StepNameResponse) */ - stepNameResponse?: (gauge.messages.IStepNameResponse|null); - - /** [RefactorRequest](#gauge.messages.RefactorRequest) */ - refactorRequest?: (gauge.messages.IRefactorRequest|null); - - /** [RefactorResponse](#gauge.messages.RefactorResponse) */ - refactorResponse?: (gauge.messages.IRefactorResponse|null); - - /** [UnsupportedMessageResponse](#gauge.messages.UnsupportedMessageResponse) */ - unsupportedMessageResponse?: (gauge.messages.IUnsupportedMessageResponse|null); - - /** [CacheFileRequest](#gauge.messages.CacheFileRequest) */ - cacheFileRequest?: (gauge.messages.ICacheFileRequest|null); - - /** [StepPositionsRequest](#gauge.messages.StepPositionsRequest) */ - stepPositionsRequest?: (gauge.messages.IStepPositionsRequest|null); - - /** [StepPositionsResponse](#gauge.messages.StepPositionsResponse) */ - stepPositionsResponse?: (gauge.messages.IStepPositionsResponse|null); - - /** [ImplementationFileListRequest](#gauge.messages.ImplementationFileListRequest) */ - implementationFileListRequest?: (gauge.messages.IImplementationFileListRequest|null); - - /** [ImplementationFileListResponse](#gauge.messages.ImplementationFileListResponse) */ - implementationFileListResponse?: (gauge.messages.IImplementationFileListResponse|null); - - /** [StubImplementationCodeRequest](#gauge.messages.StubImplementationCodeRequest) */ - stubImplementationCodeRequest?: (gauge.messages.IStubImplementationCodeRequest|null); - - /** [FileDiff](#gauge.messages.FileDiff) */ - fileDiff?: (gauge.messages.IFileDiff|null); - - /** [ImplementationFileGlobPatternRequest](#gauge.messages.ImplementationFileGlobPatternRequest) */ - implementationFileGlobPatternRequest?: (gauge.messages.IImplementationFileGlobPatternRequest|null); - - /** [ImplementationFileGlobPatternResponse](#gauge.messages.ImplementationFileGlobPatternResponse) */ - implementationFileGlobPatternResponse?: (gauge.messages.IImplementationFileGlobPatternResponse|null); - - /** [SuiteExecutionResult ](#gauge.messages.SuiteExecutionResult ) */ - suiteExecutionResultItem?: (gauge.messages.ISuiteExecutionResultItem|null); - - /** [KeepAlive ](#gauge.messages.KeepAlive ) */ - keepAlive?: (gauge.messages.IKeepAlive|null); - } - - /** One of the Request/Response fields will have value, depending on the MessageType set. */ - class Message implements IMessage { - - /** - * Constructs a new Message. - * @param [properties] Properties to set - */ - constructor(properties?: gauge.messages.IMessage); - - /** Message messageType. */ - public messageType: gauge.messages.Message.MessageType; - - /** This is used to synchronize messages & responses */ - public messageId: (number|Long); - - /** [ExecutionStartingRequest](#gauge.messages.ExecutionStartingRequest) */ - public executionStartingRequest?: (gauge.messages.IExecutionStartingRequest|null); - - /** [SpecExecutionStartingRequest](#gauge.messages.SpecExecutionStartingRequest) */ - public specExecutionStartingRequest?: (gauge.messages.ISpecExecutionStartingRequest|null); - - /** [SpecExecutionEndingRequest](#gauge.messages.SpecExecutionEndingRequest) */ - public specExecutionEndingRequest?: (gauge.messages.ISpecExecutionEndingRequest|null); - - /** [ScenarioExecutionStartingRequest](#gauge.messages.ScenarioExecutionStartingRequest) */ - public scenarioExecutionStartingRequest?: (gauge.messages.IScenarioExecutionStartingRequest|null); - - /** [ScenarioExecutionEndingRequest](#gauge.messages.ScenarioExecutionEndingRequest) */ - public scenarioExecutionEndingRequest?: (gauge.messages.IScenarioExecutionEndingRequest|null); - - /** [StepExecutionStartingRequest](#gauge.messages.StepExecutionStartingRequest) */ - public stepExecutionStartingRequest?: (gauge.messages.IStepExecutionStartingRequest|null); - - /** [StepExecutionEndingRequest](#gauge.messages.StepExecutionEndingRequest) */ - public stepExecutionEndingRequest?: (gauge.messages.IStepExecutionEndingRequest|null); - - /** [ExecuteStepRequest](#gauge.messages.ExecuteStepRequest) */ - public executeStepRequest?: (gauge.messages.IExecuteStepRequest|null); - - /** [ExecutionEndingRequest](#gauge.messages.ExecutionEndingRequest) */ - public executionEndingRequest?: (gauge.messages.IExecutionEndingRequest|null); - - /** [StepValidateRequest](#gauge.messages.StepValidateRequest) */ - public stepValidateRequest?: (gauge.messages.IStepValidateRequest|null); - - /** [StepValidateResponse](#gauge.messages.StepValidateResponse) */ - public stepValidateResponse?: (gauge.messages.IStepValidateResponse|null); - - /** [ExecutionStatusResponse](#gauge.messages.ExecutionStatusResponse) */ - public executionStatusResponse?: (gauge.messages.IExecutionStatusResponse|null); - - /** [StepNamesRequest](#gauge.messages.StepNamesRequest) */ - public stepNamesRequest?: (gauge.messages.IStepNamesRequest|null); - - /** [StepNamesResponse](#gauge.messages.StepNamesResponse) */ - public stepNamesResponse?: (gauge.messages.IStepNamesResponse|null); - - /** [SuiteExecutionResult ](#gauge.messages.SuiteExecutionResult ) */ - public suiteExecutionResult?: (gauge.messages.ISuiteExecutionResult|null); - - /** [KillProcessRequest](#gauge.messages.KillProcessRequest) */ - public killProcessRequest?: (gauge.messages.IKillProcessRequest|null); - - /** [ScenarioDataStoreInitRequest](#gauge.messages.ScenarioDataStoreInitRequest) */ - public scenarioDataStoreInitRequest?: (gauge.messages.IScenarioDataStoreInitRequest|null); - - /** [SpecDataStoreInitRequest](#gauge.messages.SpecDataStoreInitRequest) */ - public specDataStoreInitRequest?: (gauge.messages.ISpecDataStoreInitRequest|null); - - /** [SuiteDataStoreInitRequest](#gauge.messages.SuiteDataStoreInitRequest) */ - public suiteDataStoreInitRequest?: (gauge.messages.ISuiteDataStoreInitRequest|null); - - /** [StepNameRequest](#gauge.messages.StepNameRequest) */ - public stepNameRequest?: (gauge.messages.IStepNameRequest|null); - - /** [StepNameResponse](#gauge.messages.StepNameResponse) */ - public stepNameResponse?: (gauge.messages.IStepNameResponse|null); - - /** [RefactorRequest](#gauge.messages.RefactorRequest) */ - public refactorRequest?: (gauge.messages.IRefactorRequest|null); - - /** [RefactorResponse](#gauge.messages.RefactorResponse) */ - public refactorResponse?: (gauge.messages.IRefactorResponse|null); - - /** [UnsupportedMessageResponse](#gauge.messages.UnsupportedMessageResponse) */ - public unsupportedMessageResponse?: (gauge.messages.IUnsupportedMessageResponse|null); - - /** [CacheFileRequest](#gauge.messages.CacheFileRequest) */ - public cacheFileRequest?: (gauge.messages.ICacheFileRequest|null); - - /** [StepPositionsRequest](#gauge.messages.StepPositionsRequest) */ - public stepPositionsRequest?: (gauge.messages.IStepPositionsRequest|null); - - /** [StepPositionsResponse](#gauge.messages.StepPositionsResponse) */ - public stepPositionsResponse?: (gauge.messages.IStepPositionsResponse|null); - - /** [ImplementationFileListRequest](#gauge.messages.ImplementationFileListRequest) */ - public implementationFileListRequest?: (gauge.messages.IImplementationFileListRequest|null); - - /** [ImplementationFileListResponse](#gauge.messages.ImplementationFileListResponse) */ - public implementationFileListResponse?: (gauge.messages.IImplementationFileListResponse|null); - - /** [StubImplementationCodeRequest](#gauge.messages.StubImplementationCodeRequest) */ - public stubImplementationCodeRequest?: (gauge.messages.IStubImplementationCodeRequest|null); - - /** [FileDiff](#gauge.messages.FileDiff) */ - public fileDiff?: (gauge.messages.IFileDiff|null); - - /** [ImplementationFileGlobPatternRequest](#gauge.messages.ImplementationFileGlobPatternRequest) */ - public implementationFileGlobPatternRequest?: (gauge.messages.IImplementationFileGlobPatternRequest|null); - - /** [ImplementationFileGlobPatternResponse](#gauge.messages.ImplementationFileGlobPatternResponse) */ - public implementationFileGlobPatternResponse?: (gauge.messages.IImplementationFileGlobPatternResponse|null); - - /** [SuiteExecutionResult ](#gauge.messages.SuiteExecutionResult ) */ - public suiteExecutionResultItem?: (gauge.messages.ISuiteExecutionResultItem|null); - - /** [KeepAlive ](#gauge.messages.KeepAlive ) */ - public keepAlive?: (gauge.messages.IKeepAlive|null); - - /** - * Creates a new Message instance using the specified properties. - * @param [properties] Properties to set - * @returns Message instance - */ - public static create(properties?: gauge.messages.IMessage): gauge.messages.Message; - - /** - * Encodes the specified Message message. Does not implicitly {@link gauge.messages.Message.verify|verify} messages. - * @param message Message message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: gauge.messages.IMessage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Message message, length delimited. Does not implicitly {@link gauge.messages.Message.verify|verify} messages. - * @param message Message message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: gauge.messages.IMessage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Message message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Message - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gauge.messages.Message; - - /** - * Decodes a Message message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Message - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gauge.messages.Message; - - /** - * Verifies a Message message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Message message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Message - */ - public static fromObject(object: { [k: string]: any }): gauge.messages.Message; - - /** - * Creates a plain object from a Message message. Also converts values to other types if specified. - * @param message Message - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: gauge.messages.Message, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Message to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace Message { - - /** MessageType enum. */ - enum MessageType { - ExecutionStarting = 0, - SpecExecutionStarting = 1, - SpecExecutionEnding = 2, - ScenarioExecutionStarting = 3, - ScenarioExecutionEnding = 4, - StepExecutionStarting = 5, - StepExecutionEnding = 6, - ExecuteStep = 7, - ExecutionEnding = 8, - StepValidateRequest = 9, - StepValidateResponse = 10, - ExecutionStatusResponse = 11, - StepNamesRequest = 12, - StepNamesResponse = 13, - KillProcessRequest = 14, - SuiteExecutionResult = 15, - ScenarioDataStoreInit = 16, - SpecDataStoreInit = 17, - SuiteDataStoreInit = 18, - StepNameRequest = 19, - StepNameResponse = 20, - RefactorRequest = 21, - RefactorResponse = 22, - UnsupportedMessageResponse = 23, - CacheFileRequest = 24, - StepPositionsRequest = 25, - StepPositionsResponse = 26, - ImplementationFileListRequest = 27, - ImplementationFileListResponse = 28, - StubImplementationCodeRequest = 29, - FileDiff = 30, - ImplementationFileGlobPatternRequest = 31, - ImplementationFileGlobPatternResponse = 32, - SuiteExecutionResultItem = 33, - KeepAlive = 34 - } - } - - /** Represents a Runner */ - class Runner extends $protobuf.rpc.Service { - - /** - * Constructs a new Runner service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new Runner service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Runner; - - /** - * Calls ValidateStep. - * @param request StepValidateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StepValidateResponse - */ - public validateStep(request: gauge.messages.IStepValidateRequest, callback: gauge.messages.Runner.ValidateStepCallback): void; - - /** - * Calls ValidateStep. - * @param request StepValidateRequest message or plain object - * @returns Promise - */ - public validateStep(request: gauge.messages.IStepValidateRequest): Promise; - - /** - * Calls InitializeSuiteDataStore. - * @param request SuiteDataStoreInitRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionStatusResponse - */ - public initializeSuiteDataStore(request: gauge.messages.ISuiteDataStoreInitRequest, callback: gauge.messages.Runner.InitializeSuiteDataStoreCallback): void; - - /** - * Calls InitializeSuiteDataStore. - * @param request SuiteDataStoreInitRequest message or plain object - * @returns Promise - */ - public initializeSuiteDataStore(request: gauge.messages.ISuiteDataStoreInitRequest): Promise; - - /** - * Calls StartExecution. - * @param request ExecutionStartingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionStatusResponse - */ - public startExecution(request: gauge.messages.IExecutionStartingRequest, callback: gauge.messages.Runner.StartExecutionCallback): void; - - /** - * Calls StartExecution. - * @param request ExecutionStartingRequest message or plain object - * @returns Promise - */ - public startExecution(request: gauge.messages.IExecutionStartingRequest): Promise; - - /** - * Calls InitializeSpecDataStore. - * @param request SpecDataStoreInitRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionStatusResponse - */ - public initializeSpecDataStore(request: gauge.messages.ISpecDataStoreInitRequest, callback: gauge.messages.Runner.InitializeSpecDataStoreCallback): void; - - /** - * Calls InitializeSpecDataStore. - * @param request SpecDataStoreInitRequest message or plain object - * @returns Promise - */ - public initializeSpecDataStore(request: gauge.messages.ISpecDataStoreInitRequest): Promise; - - /** - * Calls StartSpecExecution. - * @param request SpecExecutionStartingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionStatusResponse - */ - public startSpecExecution(request: gauge.messages.ISpecExecutionStartingRequest, callback: gauge.messages.Runner.StartSpecExecutionCallback): void; - - /** - * Calls StartSpecExecution. - * @param request SpecExecutionStartingRequest message or plain object - * @returns Promise - */ - public startSpecExecution(request: gauge.messages.ISpecExecutionStartingRequest): Promise; - - /** - * Calls InitializeScenarioDataStore. - * @param request ScenarioDataStoreInitRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionStatusResponse - */ - public initializeScenarioDataStore(request: gauge.messages.IScenarioDataStoreInitRequest, callback: gauge.messages.Runner.InitializeScenarioDataStoreCallback): void; - - /** - * Calls InitializeScenarioDataStore. - * @param request ScenarioDataStoreInitRequest message or plain object - * @returns Promise - */ - public initializeScenarioDataStore(request: gauge.messages.IScenarioDataStoreInitRequest): Promise; - - /** - * Calls StartScenarioExecution. - * @param request ScenarioExecutionStartingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionStatusResponse - */ - public startScenarioExecution(request: gauge.messages.IScenarioExecutionStartingRequest, callback: gauge.messages.Runner.StartScenarioExecutionCallback): void; - - /** - * Calls StartScenarioExecution. - * @param request ScenarioExecutionStartingRequest message or plain object - * @returns Promise - */ - public startScenarioExecution(request: gauge.messages.IScenarioExecutionStartingRequest): Promise; - - /** - * Calls StartStepExecution. - * @param request StepExecutionStartingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionStatusResponse - */ - public startStepExecution(request: gauge.messages.IStepExecutionStartingRequest, callback: gauge.messages.Runner.StartStepExecutionCallback): void; - - /** - * Calls StartStepExecution. - * @param request StepExecutionStartingRequest message or plain object - * @returns Promise - */ - public startStepExecution(request: gauge.messages.IStepExecutionStartingRequest): Promise; - - /** - * Calls ExecuteStep. - * @param request ExecuteStepRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionStatusResponse - */ - public executeStep(request: gauge.messages.IExecuteStepRequest, callback: gauge.messages.Runner.ExecuteStepCallback): void; - - /** - * Calls ExecuteStep. - * @param request ExecuteStepRequest message or plain object - * @returns Promise - */ - public executeStep(request: gauge.messages.IExecuteStepRequest): Promise; - - /** - * Calls FinishStepExecution. - * @param request StepExecutionEndingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionStatusResponse - */ - public finishStepExecution(request: gauge.messages.IStepExecutionEndingRequest, callback: gauge.messages.Runner.FinishStepExecutionCallback): void; - - /** - * Calls FinishStepExecution. - * @param request StepExecutionEndingRequest message or plain object - * @returns Promise - */ - public finishStepExecution(request: gauge.messages.IStepExecutionEndingRequest): Promise; - - /** - * Calls FinishScenarioExecution. - * @param request ScenarioExecutionEndingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionStatusResponse - */ - public finishScenarioExecution(request: gauge.messages.IScenarioExecutionEndingRequest, callback: gauge.messages.Runner.FinishScenarioExecutionCallback): void; - - /** - * Calls FinishScenarioExecution. - * @param request ScenarioExecutionEndingRequest message or plain object - * @returns Promise - */ - public finishScenarioExecution(request: gauge.messages.IScenarioExecutionEndingRequest): Promise; - - /** - * Calls FinishSpecExecution. - * @param request SpecExecutionEndingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionStatusResponse - */ - public finishSpecExecution(request: gauge.messages.ISpecExecutionEndingRequest, callback: gauge.messages.Runner.FinishSpecExecutionCallback): void; - - /** - * Calls FinishSpecExecution. - * @param request SpecExecutionEndingRequest message or plain object - * @returns Promise - */ - public finishSpecExecution(request: gauge.messages.ISpecExecutionEndingRequest): Promise; - - /** - * Calls FinishExecution. - * @param request ExecutionEndingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionStatusResponse - */ - public finishExecution(request: gauge.messages.IExecutionEndingRequest, callback: gauge.messages.Runner.FinishExecutionCallback): void; - - /** - * Calls FinishExecution. - * @param request ExecutionEndingRequest message or plain object - * @returns Promise - */ - public finishExecution(request: gauge.messages.IExecutionEndingRequest): Promise; - - /** - * Calls CacheFile. - * @param request CacheFileRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public cacheFile(request: gauge.messages.ICacheFileRequest, callback: gauge.messages.Runner.CacheFileCallback): void; - - /** - * Calls CacheFile. - * @param request CacheFileRequest message or plain object - * @returns Promise - */ - public cacheFile(request: gauge.messages.ICacheFileRequest): Promise; - - /** - * Calls GetStepName. - * @param request StepNameRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StepNameResponse - */ - public getStepName(request: gauge.messages.IStepNameRequest, callback: gauge.messages.Runner.GetStepNameCallback): void; - - /** - * Calls GetStepName. - * @param request StepNameRequest message or plain object - * @returns Promise - */ - public getStepName(request: gauge.messages.IStepNameRequest): Promise; - - /** - * Calls GetGlobPatterns. - * @param request Empty message or plain object - * @param callback Node-style callback called with the error, if any, and ImplementationFileGlobPatternResponse - */ - public getGlobPatterns(request: gauge.messages.IEmpty, callback: gauge.messages.Runner.GetGlobPatternsCallback): void; - - /** - * Calls GetGlobPatterns. - * @param request Empty message or plain object - * @returns Promise - */ - public getGlobPatterns(request: gauge.messages.IEmpty): Promise; - - /** - * Calls GetStepNames. - * @param request StepNamesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StepNamesResponse - */ - public getStepNames(request: gauge.messages.IStepNamesRequest, callback: gauge.messages.Runner.GetStepNamesCallback): void; - - /** - * Calls GetStepNames. - * @param request StepNamesRequest message or plain object - * @returns Promise - */ - public getStepNames(request: gauge.messages.IStepNamesRequest): Promise; - - /** - * Calls GetStepPositions. - * @param request StepPositionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StepPositionsResponse - */ - public getStepPositions(request: gauge.messages.IStepPositionsRequest, callback: gauge.messages.Runner.GetStepPositionsCallback): void; - - /** - * Calls GetStepPositions. - * @param request StepPositionsRequest message or plain object - * @returns Promise - */ - public getStepPositions(request: gauge.messages.IStepPositionsRequest): Promise; - - /** - * Calls GetImplementationFiles. - * @param request Empty message or plain object - * @param callback Node-style callback called with the error, if any, and ImplementationFileListResponse - */ - public getImplementationFiles(request: gauge.messages.IEmpty, callback: gauge.messages.Runner.GetImplementationFilesCallback): void; - - /** - * Calls GetImplementationFiles. - * @param request Empty message or plain object - * @returns Promise - */ - public getImplementationFiles(request: gauge.messages.IEmpty): Promise; - - /** - * Calls ImplementStub. - * @param request StubImplementationCodeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FileDiff - */ - public implementStub(request: gauge.messages.IStubImplementationCodeRequest, callback: gauge.messages.Runner.ImplementStubCallback): void; - - /** - * Calls ImplementStub. - * @param request StubImplementationCodeRequest message or plain object - * @returns Promise - */ - public implementStub(request: gauge.messages.IStubImplementationCodeRequest): Promise; - - /** - * Calls Refactor. - * @param request RefactorRequest message or plain object - * @param callback Node-style callback called with the error, if any, and RefactorResponse - */ - public refactor(request: gauge.messages.IRefactorRequest, callback: gauge.messages.Runner.RefactorCallback): void; - - /** - * Calls Refactor. - * @param request RefactorRequest message or plain object - * @returns Promise - */ - public refactor(request: gauge.messages.IRefactorRequest): Promise; - - /** - * Calls Kill. - * @param request KillProcessRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public kill(request: gauge.messages.IKillProcessRequest, callback: gauge.messages.Runner.KillCallback): void; - - /** - * Calls Kill. - * @param request KillProcessRequest message or plain object - * @returns Promise - */ - public kill(request: gauge.messages.IKillProcessRequest): Promise; - } - - namespace Runner { - - /** - * Callback as used by {@link gauge.messages.Runner#validateStep}. - * @param error Error, if any - * @param [response] StepValidateResponse - */ - type ValidateStepCallback = (error: (Error|null), response?: gauge.messages.StepValidateResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#initializeSuiteDataStore}. - * @param error Error, if any - * @param [response] ExecutionStatusResponse - */ - type InitializeSuiteDataStoreCallback = (error: (Error|null), response?: gauge.messages.ExecutionStatusResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#startExecution}. - * @param error Error, if any - * @param [response] ExecutionStatusResponse - */ - type StartExecutionCallback = (error: (Error|null), response?: gauge.messages.ExecutionStatusResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#initializeSpecDataStore}. - * @param error Error, if any - * @param [response] ExecutionStatusResponse - */ - type InitializeSpecDataStoreCallback = (error: (Error|null), response?: gauge.messages.ExecutionStatusResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#startSpecExecution}. - * @param error Error, if any - * @param [response] ExecutionStatusResponse - */ - type StartSpecExecutionCallback = (error: (Error|null), response?: gauge.messages.ExecutionStatusResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#initializeScenarioDataStore}. - * @param error Error, if any - * @param [response] ExecutionStatusResponse - */ - type InitializeScenarioDataStoreCallback = (error: (Error|null), response?: gauge.messages.ExecutionStatusResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#startScenarioExecution}. - * @param error Error, if any - * @param [response] ExecutionStatusResponse - */ - type StartScenarioExecutionCallback = (error: (Error|null), response?: gauge.messages.ExecutionStatusResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#startStepExecution}. - * @param error Error, if any - * @param [response] ExecutionStatusResponse - */ - type StartStepExecutionCallback = (error: (Error|null), response?: gauge.messages.ExecutionStatusResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#executeStep}. - * @param error Error, if any - * @param [response] ExecutionStatusResponse - */ - type ExecuteStepCallback = (error: (Error|null), response?: gauge.messages.ExecutionStatusResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#finishStepExecution}. - * @param error Error, if any - * @param [response] ExecutionStatusResponse - */ - type FinishStepExecutionCallback = (error: (Error|null), response?: gauge.messages.ExecutionStatusResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#finishScenarioExecution}. - * @param error Error, if any - * @param [response] ExecutionStatusResponse - */ - type FinishScenarioExecutionCallback = (error: (Error|null), response?: gauge.messages.ExecutionStatusResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#finishSpecExecution}. - * @param error Error, if any - * @param [response] ExecutionStatusResponse - */ - type FinishSpecExecutionCallback = (error: (Error|null), response?: gauge.messages.ExecutionStatusResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#finishExecution}. - * @param error Error, if any - * @param [response] ExecutionStatusResponse - */ - type FinishExecutionCallback = (error: (Error|null), response?: gauge.messages.ExecutionStatusResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#cacheFile}. - * @param error Error, if any - * @param [response] Empty - */ - type CacheFileCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#getStepName}. - * @param error Error, if any - * @param [response] StepNameResponse - */ - type GetStepNameCallback = (error: (Error|null), response?: gauge.messages.StepNameResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#getGlobPatterns}. - * @param error Error, if any - * @param [response] ImplementationFileGlobPatternResponse - */ - type GetGlobPatternsCallback = (error: (Error|null), response?: gauge.messages.ImplementationFileGlobPatternResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#getStepNames}. - * @param error Error, if any - * @param [response] StepNamesResponse - */ - type GetStepNamesCallback = (error: (Error|null), response?: gauge.messages.StepNamesResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#getStepPositions}. - * @param error Error, if any - * @param [response] StepPositionsResponse - */ - type GetStepPositionsCallback = (error: (Error|null), response?: gauge.messages.StepPositionsResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#getImplementationFiles}. - * @param error Error, if any - * @param [response] ImplementationFileListResponse - */ - type GetImplementationFilesCallback = (error: (Error|null), response?: gauge.messages.ImplementationFileListResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#implementStub}. - * @param error Error, if any - * @param [response] FileDiff - */ - type ImplementStubCallback = (error: (Error|null), response?: gauge.messages.FileDiff) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#refactor}. - * @param error Error, if any - * @param [response] RefactorResponse - */ - type RefactorCallback = (error: (Error|null), response?: gauge.messages.RefactorResponse) => void; - - /** - * Callback as used by {@link gauge.messages.Runner#kill}. - * @param error Error, if any - * @param [response] Empty - */ - type KillCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - } - - /** Represents a Reporter */ - class Reporter extends $protobuf.rpc.Service { - - /** - * Constructs a new Reporter service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new Reporter service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Reporter; - - /** - * Calls NotifyExecutionStarting. - * @param request ExecutionStartingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public notifyExecutionStarting(request: gauge.messages.IExecutionStartingRequest, callback: gauge.messages.Reporter.NotifyExecutionStartingCallback): void; - - /** - * Calls NotifyExecutionStarting. - * @param request ExecutionStartingRequest message or plain object - * @returns Promise - */ - public notifyExecutionStarting(request: gauge.messages.IExecutionStartingRequest): Promise; - - /** - * Calls NotifySpecExecutionStarting. - * @param request SpecExecutionStartingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public notifySpecExecutionStarting(request: gauge.messages.ISpecExecutionStartingRequest, callback: gauge.messages.Reporter.NotifySpecExecutionStartingCallback): void; - - /** - * Calls NotifySpecExecutionStarting. - * @param request SpecExecutionStartingRequest message or plain object - * @returns Promise - */ - public notifySpecExecutionStarting(request: gauge.messages.ISpecExecutionStartingRequest): Promise; - - /** - * Calls NotifyScenarioExecutionStarting. - * @param request ScenarioExecutionStartingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public notifyScenarioExecutionStarting(request: gauge.messages.IScenarioExecutionStartingRequest, callback: gauge.messages.Reporter.NotifyScenarioExecutionStartingCallback): void; - - /** - * Calls NotifyScenarioExecutionStarting. - * @param request ScenarioExecutionStartingRequest message or plain object - * @returns Promise - */ - public notifyScenarioExecutionStarting(request: gauge.messages.IScenarioExecutionStartingRequest): Promise; - - /** - * Calls NotifyStepExecutionStarting. - * @param request StepExecutionStartingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public notifyStepExecutionStarting(request: gauge.messages.IStepExecutionStartingRequest, callback: gauge.messages.Reporter.NotifyStepExecutionStartingCallback): void; - - /** - * Calls NotifyStepExecutionStarting. - * @param request StepExecutionStartingRequest message or plain object - * @returns Promise - */ - public notifyStepExecutionStarting(request: gauge.messages.IStepExecutionStartingRequest): Promise; - - /** - * Calls NotifyStepExecutionEnding. - * @param request StepExecutionEndingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public notifyStepExecutionEnding(request: gauge.messages.IStepExecutionEndingRequest, callback: gauge.messages.Reporter.NotifyStepExecutionEndingCallback): void; - - /** - * Calls NotifyStepExecutionEnding. - * @param request StepExecutionEndingRequest message or plain object - * @returns Promise - */ - public notifyStepExecutionEnding(request: gauge.messages.IStepExecutionEndingRequest): Promise; - - /** - * Calls NotifyScenarioExecutionEnding. - * @param request ScenarioExecutionEndingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public notifyScenarioExecutionEnding(request: gauge.messages.IScenarioExecutionEndingRequest, callback: gauge.messages.Reporter.NotifyScenarioExecutionEndingCallback): void; - - /** - * Calls NotifyScenarioExecutionEnding. - * @param request ScenarioExecutionEndingRequest message or plain object - * @returns Promise - */ - public notifyScenarioExecutionEnding(request: gauge.messages.IScenarioExecutionEndingRequest): Promise; - - /** - * Calls NotifySpecExecutionEnding. - * @param request SpecExecutionEndingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public notifySpecExecutionEnding(request: gauge.messages.ISpecExecutionEndingRequest, callback: gauge.messages.Reporter.NotifySpecExecutionEndingCallback): void; - - /** - * Calls NotifySpecExecutionEnding. - * @param request SpecExecutionEndingRequest message or plain object - * @returns Promise - */ - public notifySpecExecutionEnding(request: gauge.messages.ISpecExecutionEndingRequest): Promise; - - /** - * Calls NotifyExecutionEnding. - * @param request ExecutionEndingRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public notifyExecutionEnding(request: gauge.messages.IExecutionEndingRequest, callback: gauge.messages.Reporter.NotifyExecutionEndingCallback): void; - - /** - * Calls NotifyExecutionEnding. - * @param request ExecutionEndingRequest message or plain object - * @returns Promise - */ - public notifyExecutionEnding(request: gauge.messages.IExecutionEndingRequest): Promise; - - /** - * Calls NotifySuiteResult. - * @param request SuiteExecutionResult message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public notifySuiteResult(request: gauge.messages.ISuiteExecutionResult, callback: gauge.messages.Reporter.NotifySuiteResultCallback): void; - - /** - * Calls NotifySuiteResult. - * @param request SuiteExecutionResult message or plain object - * @returns Promise - */ - public notifySuiteResult(request: gauge.messages.ISuiteExecutionResult): Promise; - - /** - * Calls Kill. - * @param request KillProcessRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public kill(request: gauge.messages.IKillProcessRequest, callback: gauge.messages.Reporter.KillCallback): void; - - /** - * Calls Kill. - * @param request KillProcessRequest message or plain object - * @returns Promise - */ - public kill(request: gauge.messages.IKillProcessRequest): Promise; - } - - namespace Reporter { - - /** - * Callback as used by {@link gauge.messages.Reporter#notifyExecutionStarting}. - * @param error Error, if any - * @param [response] Empty - */ - type NotifyExecutionStartingCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - - /** - * Callback as used by {@link gauge.messages.Reporter#notifySpecExecutionStarting}. - * @param error Error, if any - * @param [response] Empty - */ - type NotifySpecExecutionStartingCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - - /** - * Callback as used by {@link gauge.messages.Reporter#notifyScenarioExecutionStarting}. - * @param error Error, if any - * @param [response] Empty - */ - type NotifyScenarioExecutionStartingCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - - /** - * Callback as used by {@link gauge.messages.Reporter#notifyStepExecutionStarting}. - * @param error Error, if any - * @param [response] Empty - */ - type NotifyStepExecutionStartingCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - - /** - * Callback as used by {@link gauge.messages.Reporter#notifyStepExecutionEnding}. - * @param error Error, if any - * @param [response] Empty - */ - type NotifyStepExecutionEndingCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - - /** - * Callback as used by {@link gauge.messages.Reporter#notifyScenarioExecutionEnding}. - * @param error Error, if any - * @param [response] Empty - */ - type NotifyScenarioExecutionEndingCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - - /** - * Callback as used by {@link gauge.messages.Reporter#notifySpecExecutionEnding}. - * @param error Error, if any - * @param [response] Empty - */ - type NotifySpecExecutionEndingCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - - /** - * Callback as used by {@link gauge.messages.Reporter#notifyExecutionEnding}. - * @param error Error, if any - * @param [response] Empty - */ - type NotifyExecutionEndingCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - - /** - * Callback as used by {@link gauge.messages.Reporter#notifySuiteResult}. - * @param error Error, if any - * @param [response] Empty - */ - type NotifySuiteResultCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - - /** - * Callback as used by {@link gauge.messages.Reporter#kill}. - * @param error Error, if any - * @param [response] Empty - */ - type KillCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - } - - /** Represents a Documenter */ - class Documenter extends $protobuf.rpc.Service { - - /** - * Constructs a new Documenter service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new Documenter service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Documenter; - - /** - * Calls GenerateDocs. - * @param request SpecDetails message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public generateDocs(request: gauge.messages.ISpecDetails, callback: gauge.messages.Documenter.GenerateDocsCallback): void; - - /** - * Calls GenerateDocs. - * @param request SpecDetails message or plain object - * @returns Promise - */ - public generateDocs(request: gauge.messages.ISpecDetails): Promise; - - /** - * Calls Kill. - * @param request KillProcessRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public kill(request: gauge.messages.IKillProcessRequest, callback: gauge.messages.Documenter.KillCallback): void; - - /** - * Calls Kill. - * @param request KillProcessRequest message or plain object - * @returns Promise - */ - public kill(request: gauge.messages.IKillProcessRequest): Promise; - } - - namespace Documenter { - - /** - * Callback as used by {@link gauge.messages.Documenter#generateDocs}. - * @param error Error, if any - * @param [response] Empty - */ - type GenerateDocsCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - - /** - * Callback as used by {@link gauge.messages.Documenter#kill}. - * @param error Error, if any - * @param [response] Empty - */ - type KillCallback = (error: (Error|null), response?: gauge.messages.Empty) => void; - } - } -} diff --git a/src/gen/messages.js b/src/gen/messages.js deleted file mode 100644 index 5d281e3..0000000 --- a/src/gen/messages.js +++ /dev/null @@ -1,28561 +0,0 @@ -/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ -"use strict"; - -var $protobuf = require("protobufjs/minimal"); - -// Common aliases -var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; - -// Exported root namespace -var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); - -$root.gauge = (function() { - - /** - * Namespace gauge. - * @exports gauge - * @namespace - */ - var gauge = {}; - - gauge.messages = (function() { - - /** - * Namespace messages. - * @memberof gauge - * @namespace - */ - var messages = {}; - - messages.GetProjectRootRequest = (function() { - - /** - * Properties of a GetProjectRootRequest. - * @memberof gauge.messages - * @interface IGetProjectRootRequest - */ - - /** - * Constructs a new GetProjectRootRequest. - * @memberof gauge.messages - * @classdesc Request to get the Root Directory of the project - * @implements IGetProjectRootRequest - * @constructor - * @param {gauge.messages.IGetProjectRootRequest=} [properties] Properties to set - */ - function GetProjectRootRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new GetProjectRootRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.GetProjectRootRequest - * @static - * @param {gauge.messages.IGetProjectRootRequest=} [properties] Properties to set - * @returns {gauge.messages.GetProjectRootRequest} GetProjectRootRequest instance - */ - GetProjectRootRequest.create = function create(properties) { - return new GetProjectRootRequest(properties); - }; - - /** - * Encodes the specified GetProjectRootRequest message. Does not implicitly {@link gauge.messages.GetProjectRootRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.GetProjectRootRequest - * @static - * @param {gauge.messages.IGetProjectRootRequest} message GetProjectRootRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetProjectRootRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified GetProjectRootRequest message, length delimited. Does not implicitly {@link gauge.messages.GetProjectRootRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.GetProjectRootRequest - * @static - * @param {gauge.messages.IGetProjectRootRequest} message GetProjectRootRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetProjectRootRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetProjectRootRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.GetProjectRootRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.GetProjectRootRequest} GetProjectRootRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetProjectRootRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.GetProjectRootRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetProjectRootRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.GetProjectRootRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.GetProjectRootRequest} GetProjectRootRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetProjectRootRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetProjectRootRequest message. - * @function verify - * @memberof gauge.messages.GetProjectRootRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetProjectRootRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a GetProjectRootRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.GetProjectRootRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.GetProjectRootRequest} GetProjectRootRequest - */ - GetProjectRootRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.GetProjectRootRequest) - return object; - return new $root.gauge.messages.GetProjectRootRequest(); - }; - - /** - * Creates a plain object from a GetProjectRootRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.GetProjectRootRequest - * @static - * @param {gauge.messages.GetProjectRootRequest} message GetProjectRootRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetProjectRootRequest.toObject = function toObject() { - return {}; - }; - - /** - * Converts this GetProjectRootRequest to JSON. - * @function toJSON - * @memberof gauge.messages.GetProjectRootRequest - * @instance - * @returns {Object.} JSON object - */ - GetProjectRootRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetProjectRootRequest; - })(); - - messages.GetProjectRootResponse = (function() { - - /** - * Properties of a GetProjectRootResponse. - * @memberof gauge.messages - * @interface IGetProjectRootResponse - * @property {string|null} [projectRoot] Holds the absolute path of the Project Root directory. - */ - - /** - * Constructs a new GetProjectRootResponse. - * @memberof gauge.messages - * @classdesc Response of GetProjectRootRequest. - * @implements IGetProjectRootResponse - * @constructor - * @param {gauge.messages.IGetProjectRootResponse=} [properties] Properties to set - */ - function GetProjectRootResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the absolute path of the Project Root directory. - * @member {string} projectRoot - * @memberof gauge.messages.GetProjectRootResponse - * @instance - */ - GetProjectRootResponse.prototype.projectRoot = ""; - - /** - * Creates a new GetProjectRootResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.GetProjectRootResponse - * @static - * @param {gauge.messages.IGetProjectRootResponse=} [properties] Properties to set - * @returns {gauge.messages.GetProjectRootResponse} GetProjectRootResponse instance - */ - GetProjectRootResponse.create = function create(properties) { - return new GetProjectRootResponse(properties); - }; - - /** - * Encodes the specified GetProjectRootResponse message. Does not implicitly {@link gauge.messages.GetProjectRootResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.GetProjectRootResponse - * @static - * @param {gauge.messages.IGetProjectRootResponse} message GetProjectRootResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetProjectRootResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.projectRoot != null && message.hasOwnProperty("projectRoot")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectRoot); - return writer; - }; - - /** - * Encodes the specified GetProjectRootResponse message, length delimited. Does not implicitly {@link gauge.messages.GetProjectRootResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.GetProjectRootResponse - * @static - * @param {gauge.messages.IGetProjectRootResponse} message GetProjectRootResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetProjectRootResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetProjectRootResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.GetProjectRootResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.GetProjectRootResponse} GetProjectRootResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetProjectRootResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.GetProjectRootResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectRoot = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetProjectRootResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.GetProjectRootResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.GetProjectRootResponse} GetProjectRootResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetProjectRootResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetProjectRootResponse message. - * @function verify - * @memberof gauge.messages.GetProjectRootResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetProjectRootResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.projectRoot != null && message.hasOwnProperty("projectRoot")) - if (!$util.isString(message.projectRoot)) - return "projectRoot: string expected"; - return null; - }; - - /** - * Creates a GetProjectRootResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.GetProjectRootResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.GetProjectRootResponse} GetProjectRootResponse - */ - GetProjectRootResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.GetProjectRootResponse) - return object; - var message = new $root.gauge.messages.GetProjectRootResponse(); - if (object.projectRoot != null) - message.projectRoot = String(object.projectRoot); - return message; - }; - - /** - * Creates a plain object from a GetProjectRootResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.GetProjectRootResponse - * @static - * @param {gauge.messages.GetProjectRootResponse} message GetProjectRootResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetProjectRootResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.projectRoot = ""; - if (message.projectRoot != null && message.hasOwnProperty("projectRoot")) - object.projectRoot = message.projectRoot; - return object; - }; - - /** - * Converts this GetProjectRootResponse to JSON. - * @function toJSON - * @memberof gauge.messages.GetProjectRootResponse - * @instance - * @returns {Object.} JSON object - */ - GetProjectRootResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetProjectRootResponse; - })(); - - messages.GetInstallationRootRequest = (function() { - - /** - * Properties of a GetInstallationRootRequest. - * @memberof gauge.messages - * @interface IGetInstallationRootRequest - */ - - /** - * Constructs a new GetInstallationRootRequest. - * @memberof gauge.messages - * @classdesc Request to get the Root Directory of the Gauge installation - * @implements IGetInstallationRootRequest - * @constructor - * @param {gauge.messages.IGetInstallationRootRequest=} [properties] Properties to set - */ - function GetInstallationRootRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new GetInstallationRootRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.GetInstallationRootRequest - * @static - * @param {gauge.messages.IGetInstallationRootRequest=} [properties] Properties to set - * @returns {gauge.messages.GetInstallationRootRequest} GetInstallationRootRequest instance - */ - GetInstallationRootRequest.create = function create(properties) { - return new GetInstallationRootRequest(properties); - }; - - /** - * Encodes the specified GetInstallationRootRequest message. Does not implicitly {@link gauge.messages.GetInstallationRootRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.GetInstallationRootRequest - * @static - * @param {gauge.messages.IGetInstallationRootRequest} message GetInstallationRootRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetInstallationRootRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified GetInstallationRootRequest message, length delimited. Does not implicitly {@link gauge.messages.GetInstallationRootRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.GetInstallationRootRequest - * @static - * @param {gauge.messages.IGetInstallationRootRequest} message GetInstallationRootRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetInstallationRootRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetInstallationRootRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.GetInstallationRootRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.GetInstallationRootRequest} GetInstallationRootRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetInstallationRootRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.GetInstallationRootRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetInstallationRootRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.GetInstallationRootRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.GetInstallationRootRequest} GetInstallationRootRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetInstallationRootRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetInstallationRootRequest message. - * @function verify - * @memberof gauge.messages.GetInstallationRootRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetInstallationRootRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a GetInstallationRootRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.GetInstallationRootRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.GetInstallationRootRequest} GetInstallationRootRequest - */ - GetInstallationRootRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.GetInstallationRootRequest) - return object; - return new $root.gauge.messages.GetInstallationRootRequest(); - }; - - /** - * Creates a plain object from a GetInstallationRootRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.GetInstallationRootRequest - * @static - * @param {gauge.messages.GetInstallationRootRequest} message GetInstallationRootRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetInstallationRootRequest.toObject = function toObject() { - return {}; - }; - - /** - * Converts this GetInstallationRootRequest to JSON. - * @function toJSON - * @memberof gauge.messages.GetInstallationRootRequest - * @instance - * @returns {Object.} JSON object - */ - GetInstallationRootRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetInstallationRootRequest; - })(); - - messages.GetInstallationRootResponse = (function() { - - /** - * Properties of a GetInstallationRootResponse. - * @memberof gauge.messages - * @interface IGetInstallationRootResponse - * @property {string|null} [installationRoot] Holds the absolute path of the Gauge installation directory - */ - - /** - * Constructs a new GetInstallationRootResponse. - * @memberof gauge.messages - * @classdesc Response of GetInstallationRootRequest - * @implements IGetInstallationRootResponse - * @constructor - * @param {gauge.messages.IGetInstallationRootResponse=} [properties] Properties to set - */ - function GetInstallationRootResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the absolute path of the Gauge installation directory - * @member {string} installationRoot - * @memberof gauge.messages.GetInstallationRootResponse - * @instance - */ - GetInstallationRootResponse.prototype.installationRoot = ""; - - /** - * Creates a new GetInstallationRootResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.GetInstallationRootResponse - * @static - * @param {gauge.messages.IGetInstallationRootResponse=} [properties] Properties to set - * @returns {gauge.messages.GetInstallationRootResponse} GetInstallationRootResponse instance - */ - GetInstallationRootResponse.create = function create(properties) { - return new GetInstallationRootResponse(properties); - }; - - /** - * Encodes the specified GetInstallationRootResponse message. Does not implicitly {@link gauge.messages.GetInstallationRootResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.GetInstallationRootResponse - * @static - * @param {gauge.messages.IGetInstallationRootResponse} message GetInstallationRootResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetInstallationRootResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.installationRoot != null && message.hasOwnProperty("installationRoot")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.installationRoot); - return writer; - }; - - /** - * Encodes the specified GetInstallationRootResponse message, length delimited. Does not implicitly {@link gauge.messages.GetInstallationRootResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.GetInstallationRootResponse - * @static - * @param {gauge.messages.IGetInstallationRootResponse} message GetInstallationRootResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetInstallationRootResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetInstallationRootResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.GetInstallationRootResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.GetInstallationRootResponse} GetInstallationRootResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetInstallationRootResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.GetInstallationRootResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.installationRoot = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetInstallationRootResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.GetInstallationRootResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.GetInstallationRootResponse} GetInstallationRootResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetInstallationRootResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetInstallationRootResponse message. - * @function verify - * @memberof gauge.messages.GetInstallationRootResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetInstallationRootResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.installationRoot != null && message.hasOwnProperty("installationRoot")) - if (!$util.isString(message.installationRoot)) - return "installationRoot: string expected"; - return null; - }; - - /** - * Creates a GetInstallationRootResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.GetInstallationRootResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.GetInstallationRootResponse} GetInstallationRootResponse - */ - GetInstallationRootResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.GetInstallationRootResponse) - return object; - var message = new $root.gauge.messages.GetInstallationRootResponse(); - if (object.installationRoot != null) - message.installationRoot = String(object.installationRoot); - return message; - }; - - /** - * Creates a plain object from a GetInstallationRootResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.GetInstallationRootResponse - * @static - * @param {gauge.messages.GetInstallationRootResponse} message GetInstallationRootResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetInstallationRootResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.installationRoot = ""; - if (message.installationRoot != null && message.hasOwnProperty("installationRoot")) - object.installationRoot = message.installationRoot; - return object; - }; - - /** - * Converts this GetInstallationRootResponse to JSON. - * @function toJSON - * @memberof gauge.messages.GetInstallationRootResponse - * @instance - * @returns {Object.} JSON object - */ - GetInstallationRootResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetInstallationRootResponse; - })(); - - messages.GetAllStepsRequest = (function() { - - /** - * Properties of a GetAllStepsRequest. - * @memberof gauge.messages - * @interface IGetAllStepsRequest - */ - - /** - * Constructs a new GetAllStepsRequest. - * @memberof gauge.messages - * @classdesc Request to get all Steps in the project - * @implements IGetAllStepsRequest - * @constructor - * @param {gauge.messages.IGetAllStepsRequest=} [properties] Properties to set - */ - function GetAllStepsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new GetAllStepsRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.GetAllStepsRequest - * @static - * @param {gauge.messages.IGetAllStepsRequest=} [properties] Properties to set - * @returns {gauge.messages.GetAllStepsRequest} GetAllStepsRequest instance - */ - GetAllStepsRequest.create = function create(properties) { - return new GetAllStepsRequest(properties); - }; - - /** - * Encodes the specified GetAllStepsRequest message. Does not implicitly {@link gauge.messages.GetAllStepsRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.GetAllStepsRequest - * @static - * @param {gauge.messages.IGetAllStepsRequest} message GetAllStepsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllStepsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified GetAllStepsRequest message, length delimited. Does not implicitly {@link gauge.messages.GetAllStepsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.GetAllStepsRequest - * @static - * @param {gauge.messages.IGetAllStepsRequest} message GetAllStepsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllStepsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetAllStepsRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.GetAllStepsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.GetAllStepsRequest} GetAllStepsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllStepsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.GetAllStepsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetAllStepsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.GetAllStepsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.GetAllStepsRequest} GetAllStepsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllStepsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetAllStepsRequest message. - * @function verify - * @memberof gauge.messages.GetAllStepsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAllStepsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a GetAllStepsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.GetAllStepsRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.GetAllStepsRequest} GetAllStepsRequest - */ - GetAllStepsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.GetAllStepsRequest) - return object; - return new $root.gauge.messages.GetAllStepsRequest(); - }; - - /** - * Creates a plain object from a GetAllStepsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.GetAllStepsRequest - * @static - * @param {gauge.messages.GetAllStepsRequest} message GetAllStepsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetAllStepsRequest.toObject = function toObject() { - return {}; - }; - - /** - * Converts this GetAllStepsRequest to JSON. - * @function toJSON - * @memberof gauge.messages.GetAllStepsRequest - * @instance - * @returns {Object.} JSON object - */ - GetAllStepsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetAllStepsRequest; - })(); - - messages.GetAllStepsResponse = (function() { - - /** - * Properties of a GetAllStepsResponse. - * @memberof gauge.messages - * @interface IGetAllStepsResponse - * @property {Array.|null} [allSteps] Holds a collection of Steps that are defined in the project. - */ - - /** - * Constructs a new GetAllStepsResponse. - * @memberof gauge.messages - * @classdesc Response to GetAllStepsRequest - * @implements IGetAllStepsResponse - * @constructor - * @param {gauge.messages.IGetAllStepsResponse=} [properties] Properties to set - */ - function GetAllStepsResponse(properties) { - this.allSteps = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds a collection of Steps that are defined in the project. - * @member {Array.} allSteps - * @memberof gauge.messages.GetAllStepsResponse - * @instance - */ - GetAllStepsResponse.prototype.allSteps = $util.emptyArray; - - /** - * Creates a new GetAllStepsResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.GetAllStepsResponse - * @static - * @param {gauge.messages.IGetAllStepsResponse=} [properties] Properties to set - * @returns {gauge.messages.GetAllStepsResponse} GetAllStepsResponse instance - */ - GetAllStepsResponse.create = function create(properties) { - return new GetAllStepsResponse(properties); - }; - - /** - * Encodes the specified GetAllStepsResponse message. Does not implicitly {@link gauge.messages.GetAllStepsResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.GetAllStepsResponse - * @static - * @param {gauge.messages.IGetAllStepsResponse} message GetAllStepsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllStepsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.allSteps != null && message.allSteps.length) - for (var i = 0; i < message.allSteps.length; ++i) - $root.gauge.messages.ProtoStepValue.encode(message.allSteps[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetAllStepsResponse message, length delimited. Does not implicitly {@link gauge.messages.GetAllStepsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.GetAllStepsResponse - * @static - * @param {gauge.messages.IGetAllStepsResponse} message GetAllStepsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllStepsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetAllStepsResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.GetAllStepsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.GetAllStepsResponse} GetAllStepsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllStepsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.GetAllStepsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.allSteps && message.allSteps.length)) - message.allSteps = []; - message.allSteps.push($root.gauge.messages.ProtoStepValue.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetAllStepsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.GetAllStepsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.GetAllStepsResponse} GetAllStepsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllStepsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetAllStepsResponse message. - * @function verify - * @memberof gauge.messages.GetAllStepsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAllStepsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.allSteps != null && message.hasOwnProperty("allSteps")) { - if (!Array.isArray(message.allSteps)) - return "allSteps: array expected"; - for (var i = 0; i < message.allSteps.length; ++i) { - var error = $root.gauge.messages.ProtoStepValue.verify(message.allSteps[i]); - if (error) - return "allSteps." + error; - } - } - return null; - }; - - /** - * Creates a GetAllStepsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.GetAllStepsResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.GetAllStepsResponse} GetAllStepsResponse - */ - GetAllStepsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.GetAllStepsResponse) - return object; - var message = new $root.gauge.messages.GetAllStepsResponse(); - if (object.allSteps) { - if (!Array.isArray(object.allSteps)) - throw TypeError(".gauge.messages.GetAllStepsResponse.allSteps: array expected"); - message.allSteps = []; - for (var i = 0; i < object.allSteps.length; ++i) { - if (typeof object.allSteps[i] !== "object") - throw TypeError(".gauge.messages.GetAllStepsResponse.allSteps: object expected"); - message.allSteps[i] = $root.gauge.messages.ProtoStepValue.fromObject(object.allSteps[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a GetAllStepsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.GetAllStepsResponse - * @static - * @param {gauge.messages.GetAllStepsResponse} message GetAllStepsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetAllStepsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.allSteps = []; - if (message.allSteps && message.allSteps.length) { - object.allSteps = []; - for (var j = 0; j < message.allSteps.length; ++j) - object.allSteps[j] = $root.gauge.messages.ProtoStepValue.toObject(message.allSteps[j], options); - } - return object; - }; - - /** - * Converts this GetAllStepsResponse to JSON. - * @function toJSON - * @memberof gauge.messages.GetAllStepsResponse - * @instance - * @returns {Object.} JSON object - */ - GetAllStepsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetAllStepsResponse; - })(); - - messages.SpecsRequest = (function() { - - /** - * Properties of a SpecsRequest. - * @memberof gauge.messages - * @interface ISpecsRequest - * @property {Array.|null} [specs] SpecsRequest specs - */ - - /** - * Constructs a new SpecsRequest. - * @memberof gauge.messages - * @classdesc Request to get all Specs in the project - * @implements ISpecsRequest - * @constructor - * @param {gauge.messages.ISpecsRequest=} [properties] Properties to set - */ - function SpecsRequest(properties) { - this.specs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SpecsRequest specs. - * @member {Array.} specs - * @memberof gauge.messages.SpecsRequest - * @instance - */ - SpecsRequest.prototype.specs = $util.emptyArray; - - /** - * Creates a new SpecsRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.SpecsRequest - * @static - * @param {gauge.messages.ISpecsRequest=} [properties] Properties to set - * @returns {gauge.messages.SpecsRequest} SpecsRequest instance - */ - SpecsRequest.create = function create(properties) { - return new SpecsRequest(properties); - }; - - /** - * Encodes the specified SpecsRequest message. Does not implicitly {@link gauge.messages.SpecsRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.SpecsRequest - * @static - * @param {gauge.messages.ISpecsRequest} message SpecsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.specs != null && message.specs.length) - for (var i = 0; i < message.specs.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.specs[i]); - return writer; - }; - - /** - * Encodes the specified SpecsRequest message, length delimited. Does not implicitly {@link gauge.messages.SpecsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.SpecsRequest - * @static - * @param {gauge.messages.ISpecsRequest} message SpecsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SpecsRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.SpecsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.SpecsRequest} SpecsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.SpecsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.specs && message.specs.length)) - message.specs = []; - message.specs.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SpecsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.SpecsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.SpecsRequest} SpecsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SpecsRequest message. - * @function verify - * @memberof gauge.messages.SpecsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SpecsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.specs != null && message.hasOwnProperty("specs")) { - if (!Array.isArray(message.specs)) - return "specs: array expected"; - for (var i = 0; i < message.specs.length; ++i) - if (!$util.isString(message.specs[i])) - return "specs: string[] expected"; - } - return null; - }; - - /** - * Creates a SpecsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.SpecsRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.SpecsRequest} SpecsRequest - */ - SpecsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.SpecsRequest) - return object; - var message = new $root.gauge.messages.SpecsRequest(); - if (object.specs) { - if (!Array.isArray(object.specs)) - throw TypeError(".gauge.messages.SpecsRequest.specs: array expected"); - message.specs = []; - for (var i = 0; i < object.specs.length; ++i) - message.specs[i] = String(object.specs[i]); - } - return message; - }; - - /** - * Creates a plain object from a SpecsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.SpecsRequest - * @static - * @param {gauge.messages.SpecsRequest} message SpecsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SpecsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.specs = []; - if (message.specs && message.specs.length) { - object.specs = []; - for (var j = 0; j < message.specs.length; ++j) - object.specs[j] = message.specs[j]; - } - return object; - }; - - /** - * Converts this SpecsRequest to JSON. - * @function toJSON - * @memberof gauge.messages.SpecsRequest - * @instance - * @returns {Object.} JSON object - */ - SpecsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SpecsRequest; - })(); - - messages.SpecsResponse = (function() { - - /** - * Properties of a SpecsResponse. - * @memberof gauge.messages - * @interface ISpecsResponse - * @property {Array.|null} [details] Holds a collection of Spec details. - */ - - /** - * Constructs a new SpecsResponse. - * @memberof gauge.messages - * @classdesc Response to GetAllSpecsRequest - * @implements ISpecsResponse - * @constructor - * @param {gauge.messages.ISpecsResponse=} [properties] Properties to set - */ - function SpecsResponse(properties) { - this.details = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds a collection of Spec details. - * @member {Array.} details - * @memberof gauge.messages.SpecsResponse - * @instance - */ - SpecsResponse.prototype.details = $util.emptyArray; - - /** - * Creates a new SpecsResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.SpecsResponse - * @static - * @param {gauge.messages.ISpecsResponse=} [properties] Properties to set - * @returns {gauge.messages.SpecsResponse} SpecsResponse instance - */ - SpecsResponse.create = function create(properties) { - return new SpecsResponse(properties); - }; - - /** - * Encodes the specified SpecsResponse message. Does not implicitly {@link gauge.messages.SpecsResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.SpecsResponse - * @static - * @param {gauge.messages.ISpecsResponse} message SpecsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.details != null && message.details.length) - for (var i = 0; i < message.details.length; ++i) - $root.gauge.messages.SpecsResponse.SpecDetail.encode(message.details[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified SpecsResponse message, length delimited. Does not implicitly {@link gauge.messages.SpecsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.SpecsResponse - * @static - * @param {gauge.messages.ISpecsResponse} message SpecsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SpecsResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.SpecsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.SpecsResponse} SpecsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.SpecsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.details && message.details.length)) - message.details = []; - message.details.push($root.gauge.messages.SpecsResponse.SpecDetail.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SpecsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.SpecsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.SpecsResponse} SpecsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SpecsResponse message. - * @function verify - * @memberof gauge.messages.SpecsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SpecsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.details != null && message.hasOwnProperty("details")) { - if (!Array.isArray(message.details)) - return "details: array expected"; - for (var i = 0; i < message.details.length; ++i) { - var error = $root.gauge.messages.SpecsResponse.SpecDetail.verify(message.details[i]); - if (error) - return "details." + error; - } - } - return null; - }; - - /** - * Creates a SpecsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.SpecsResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.SpecsResponse} SpecsResponse - */ - SpecsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.SpecsResponse) - return object; - var message = new $root.gauge.messages.SpecsResponse(); - if (object.details) { - if (!Array.isArray(object.details)) - throw TypeError(".gauge.messages.SpecsResponse.details: array expected"); - message.details = []; - for (var i = 0; i < object.details.length; ++i) { - if (typeof object.details[i] !== "object") - throw TypeError(".gauge.messages.SpecsResponse.details: object expected"); - message.details[i] = $root.gauge.messages.SpecsResponse.SpecDetail.fromObject(object.details[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a SpecsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.SpecsResponse - * @static - * @param {gauge.messages.SpecsResponse} message SpecsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SpecsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.details = []; - if (message.details && message.details.length) { - object.details = []; - for (var j = 0; j < message.details.length; ++j) - object.details[j] = $root.gauge.messages.SpecsResponse.SpecDetail.toObject(message.details[j], options); - } - return object; - }; - - /** - * Converts this SpecsResponse to JSON. - * @function toJSON - * @memberof gauge.messages.SpecsResponse - * @instance - * @returns {Object.} JSON object - */ - SpecsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - SpecsResponse.SpecDetail = (function() { - - /** - * Properties of a SpecDetail. - * @memberof gauge.messages.SpecsResponse - * @interface ISpecDetail - * @property {gauge.messages.IProtoSpec|null} [spec] Holds a collection of Specs that are defined in the project. - * @property {Array.|null} [parseErrors] Holds a collection of parse errors present in the above spec. - */ - - /** - * Constructs a new SpecDetail. - * @memberof gauge.messages.SpecsResponse - * @classdesc Represents a SpecDetail. - * @implements ISpecDetail - * @constructor - * @param {gauge.messages.SpecsResponse.ISpecDetail=} [properties] Properties to set - */ - function SpecDetail(properties) { - this.parseErrors = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds a collection of Specs that are defined in the project. - * @member {gauge.messages.IProtoSpec|null|undefined} spec - * @memberof gauge.messages.SpecsResponse.SpecDetail - * @instance - */ - SpecDetail.prototype.spec = null; - - /** - * Holds a collection of parse errors present in the above spec. - * @member {Array.} parseErrors - * @memberof gauge.messages.SpecsResponse.SpecDetail - * @instance - */ - SpecDetail.prototype.parseErrors = $util.emptyArray; - - /** - * Creates a new SpecDetail instance using the specified properties. - * @function create - * @memberof gauge.messages.SpecsResponse.SpecDetail - * @static - * @param {gauge.messages.SpecsResponse.ISpecDetail=} [properties] Properties to set - * @returns {gauge.messages.SpecsResponse.SpecDetail} SpecDetail instance - */ - SpecDetail.create = function create(properties) { - return new SpecDetail(properties); - }; - - /** - * Encodes the specified SpecDetail message. Does not implicitly {@link gauge.messages.SpecsResponse.SpecDetail.verify|verify} messages. - * @function encode - * @memberof gauge.messages.SpecsResponse.SpecDetail - * @static - * @param {gauge.messages.SpecsResponse.ISpecDetail} message SpecDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecDetail.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.gauge.messages.ProtoSpec.encode(message.spec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parseErrors != null && message.parseErrors.length) - for (var i = 0; i < message.parseErrors.length; ++i) - $root.gauge.messages.Error.encode(message.parseErrors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified SpecDetail message, length delimited. Does not implicitly {@link gauge.messages.SpecsResponse.SpecDetail.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.SpecsResponse.SpecDetail - * @static - * @param {gauge.messages.SpecsResponse.ISpecDetail} message SpecDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecDetail.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SpecDetail message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.SpecsResponse.SpecDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.SpecsResponse.SpecDetail} SpecDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecDetail.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.SpecsResponse.SpecDetail(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.spec = $root.gauge.messages.ProtoSpec.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.parseErrors && message.parseErrors.length)) - message.parseErrors = []; - message.parseErrors.push($root.gauge.messages.Error.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SpecDetail message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.SpecsResponse.SpecDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.SpecsResponse.SpecDetail} SpecDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecDetail.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SpecDetail message. - * @function verify - * @memberof gauge.messages.SpecsResponse.SpecDetail - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SpecDetail.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.gauge.messages.ProtoSpec.verify(message.spec); - if (error) - return "spec." + error; - } - if (message.parseErrors != null && message.hasOwnProperty("parseErrors")) { - if (!Array.isArray(message.parseErrors)) - return "parseErrors: array expected"; - for (var i = 0; i < message.parseErrors.length; ++i) { - var error = $root.gauge.messages.Error.verify(message.parseErrors[i]); - if (error) - return "parseErrors." + error; - } - } - return null; - }; - - /** - * Creates a SpecDetail message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.SpecsResponse.SpecDetail - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.SpecsResponse.SpecDetail} SpecDetail - */ - SpecDetail.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.SpecsResponse.SpecDetail) - return object; - var message = new $root.gauge.messages.SpecsResponse.SpecDetail(); - if (object.spec != null) { - if (typeof object.spec !== "object") - throw TypeError(".gauge.messages.SpecsResponse.SpecDetail.spec: object expected"); - message.spec = $root.gauge.messages.ProtoSpec.fromObject(object.spec); - } - if (object.parseErrors) { - if (!Array.isArray(object.parseErrors)) - throw TypeError(".gauge.messages.SpecsResponse.SpecDetail.parseErrors: array expected"); - message.parseErrors = []; - for (var i = 0; i < object.parseErrors.length; ++i) { - if (typeof object.parseErrors[i] !== "object") - throw TypeError(".gauge.messages.SpecsResponse.SpecDetail.parseErrors: object expected"); - message.parseErrors[i] = $root.gauge.messages.Error.fromObject(object.parseErrors[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a SpecDetail message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.SpecsResponse.SpecDetail - * @static - * @param {gauge.messages.SpecsResponse.SpecDetail} message SpecDetail - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SpecDetail.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.parseErrors = []; - if (options.defaults) - object.spec = null; - if (message.spec != null && message.hasOwnProperty("spec")) - object.spec = $root.gauge.messages.ProtoSpec.toObject(message.spec, options); - if (message.parseErrors && message.parseErrors.length) { - object.parseErrors = []; - for (var j = 0; j < message.parseErrors.length; ++j) - object.parseErrors[j] = $root.gauge.messages.Error.toObject(message.parseErrors[j], options); - } - return object; - }; - - /** - * Converts this SpecDetail to JSON. - * @function toJSON - * @memberof gauge.messages.SpecsResponse.SpecDetail - * @instance - * @returns {Object.} JSON object - */ - SpecDetail.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SpecDetail; - })(); - - return SpecsResponse; - })(); - - messages.GetAllConceptsRequest = (function() { - - /** - * Properties of a GetAllConceptsRequest. - * @memberof gauge.messages - * @interface IGetAllConceptsRequest - */ - - /** - * Constructs a new GetAllConceptsRequest. - * @memberof gauge.messages - * @classdesc Request to get all Concepts in the project - * @implements IGetAllConceptsRequest - * @constructor - * @param {gauge.messages.IGetAllConceptsRequest=} [properties] Properties to set - */ - function GetAllConceptsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new GetAllConceptsRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.GetAllConceptsRequest - * @static - * @param {gauge.messages.IGetAllConceptsRequest=} [properties] Properties to set - * @returns {gauge.messages.GetAllConceptsRequest} GetAllConceptsRequest instance - */ - GetAllConceptsRequest.create = function create(properties) { - return new GetAllConceptsRequest(properties); - }; - - /** - * Encodes the specified GetAllConceptsRequest message. Does not implicitly {@link gauge.messages.GetAllConceptsRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.GetAllConceptsRequest - * @static - * @param {gauge.messages.IGetAllConceptsRequest} message GetAllConceptsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllConceptsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified GetAllConceptsRequest message, length delimited. Does not implicitly {@link gauge.messages.GetAllConceptsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.GetAllConceptsRequest - * @static - * @param {gauge.messages.IGetAllConceptsRequest} message GetAllConceptsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllConceptsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetAllConceptsRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.GetAllConceptsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.GetAllConceptsRequest} GetAllConceptsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllConceptsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.GetAllConceptsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetAllConceptsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.GetAllConceptsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.GetAllConceptsRequest} GetAllConceptsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllConceptsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetAllConceptsRequest message. - * @function verify - * @memberof gauge.messages.GetAllConceptsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAllConceptsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a GetAllConceptsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.GetAllConceptsRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.GetAllConceptsRequest} GetAllConceptsRequest - */ - GetAllConceptsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.GetAllConceptsRequest) - return object; - return new $root.gauge.messages.GetAllConceptsRequest(); - }; - - /** - * Creates a plain object from a GetAllConceptsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.GetAllConceptsRequest - * @static - * @param {gauge.messages.GetAllConceptsRequest} message GetAllConceptsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetAllConceptsRequest.toObject = function toObject() { - return {}; - }; - - /** - * Converts this GetAllConceptsRequest to JSON. - * @function toJSON - * @memberof gauge.messages.GetAllConceptsRequest - * @instance - * @returns {Object.} JSON object - */ - GetAllConceptsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetAllConceptsRequest; - })(); - - messages.GetAllConceptsResponse = (function() { - - /** - * Properties of a GetAllConceptsResponse. - * @memberof gauge.messages - * @interface IGetAllConceptsResponse - * @property {Array.|null} [concepts] Holds a collection of Concepts that are defined in the project. - */ - - /** - * Constructs a new GetAllConceptsResponse. - * @memberof gauge.messages - * @classdesc Response to GetAllConceptsResponse - * @implements IGetAllConceptsResponse - * @constructor - * @param {gauge.messages.IGetAllConceptsResponse=} [properties] Properties to set - */ - function GetAllConceptsResponse(properties) { - this.concepts = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds a collection of Concepts that are defined in the project. - * @member {Array.} concepts - * @memberof gauge.messages.GetAllConceptsResponse - * @instance - */ - GetAllConceptsResponse.prototype.concepts = $util.emptyArray; - - /** - * Creates a new GetAllConceptsResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.GetAllConceptsResponse - * @static - * @param {gauge.messages.IGetAllConceptsResponse=} [properties] Properties to set - * @returns {gauge.messages.GetAllConceptsResponse} GetAllConceptsResponse instance - */ - GetAllConceptsResponse.create = function create(properties) { - return new GetAllConceptsResponse(properties); - }; - - /** - * Encodes the specified GetAllConceptsResponse message. Does not implicitly {@link gauge.messages.GetAllConceptsResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.GetAllConceptsResponse - * @static - * @param {gauge.messages.IGetAllConceptsResponse} message GetAllConceptsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllConceptsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.concepts != null && message.concepts.length) - for (var i = 0; i < message.concepts.length; ++i) - $root.gauge.messages.ConceptInfo.encode(message.concepts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetAllConceptsResponse message, length delimited. Does not implicitly {@link gauge.messages.GetAllConceptsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.GetAllConceptsResponse - * @static - * @param {gauge.messages.IGetAllConceptsResponse} message GetAllConceptsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllConceptsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetAllConceptsResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.GetAllConceptsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.GetAllConceptsResponse} GetAllConceptsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllConceptsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.GetAllConceptsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.concepts && message.concepts.length)) - message.concepts = []; - message.concepts.push($root.gauge.messages.ConceptInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetAllConceptsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.GetAllConceptsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.GetAllConceptsResponse} GetAllConceptsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllConceptsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetAllConceptsResponse message. - * @function verify - * @memberof gauge.messages.GetAllConceptsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAllConceptsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.concepts != null && message.hasOwnProperty("concepts")) { - if (!Array.isArray(message.concepts)) - return "concepts: array expected"; - for (var i = 0; i < message.concepts.length; ++i) { - var error = $root.gauge.messages.ConceptInfo.verify(message.concepts[i]); - if (error) - return "concepts." + error; - } - } - return null; - }; - - /** - * Creates a GetAllConceptsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.GetAllConceptsResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.GetAllConceptsResponse} GetAllConceptsResponse - */ - GetAllConceptsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.GetAllConceptsResponse) - return object; - var message = new $root.gauge.messages.GetAllConceptsResponse(); - if (object.concepts) { - if (!Array.isArray(object.concepts)) - throw TypeError(".gauge.messages.GetAllConceptsResponse.concepts: array expected"); - message.concepts = []; - for (var i = 0; i < object.concepts.length; ++i) { - if (typeof object.concepts[i] !== "object") - throw TypeError(".gauge.messages.GetAllConceptsResponse.concepts: object expected"); - message.concepts[i] = $root.gauge.messages.ConceptInfo.fromObject(object.concepts[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a GetAllConceptsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.GetAllConceptsResponse - * @static - * @param {gauge.messages.GetAllConceptsResponse} message GetAllConceptsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetAllConceptsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.concepts = []; - if (message.concepts && message.concepts.length) { - object.concepts = []; - for (var j = 0; j < message.concepts.length; ++j) - object.concepts[j] = $root.gauge.messages.ConceptInfo.toObject(message.concepts[j], options); - } - return object; - }; - - /** - * Converts this GetAllConceptsResponse to JSON. - * @function toJSON - * @memberof gauge.messages.GetAllConceptsResponse - * @instance - * @returns {Object.} JSON object - */ - GetAllConceptsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetAllConceptsResponse; - })(); - - messages.ConceptInfo = (function() { - - /** - * Properties of a ConceptInfo. - * @memberof gauge.messages - * @interface IConceptInfo - * @property {gauge.messages.IProtoStepValue|null} [stepValue] The text that defines a concept - * @property {string|null} [filepath] The absolute path to the file that contains the Concept - * @property {number|null} [lineNumber] The line number in the file where the concept is defined. - */ - - /** - * Constructs a new ConceptInfo. - * @memberof gauge.messages - * @classdesc Details of a Concept - * @implements IConceptInfo - * @constructor - * @param {gauge.messages.IConceptInfo=} [properties] Properties to set - */ - function ConceptInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * The text that defines a concept - * @member {gauge.messages.IProtoStepValue|null|undefined} stepValue - * @memberof gauge.messages.ConceptInfo - * @instance - */ - ConceptInfo.prototype.stepValue = null; - - /** - * The absolute path to the file that contains the Concept - * @member {string} filepath - * @memberof gauge.messages.ConceptInfo - * @instance - */ - ConceptInfo.prototype.filepath = ""; - - /** - * The line number in the file where the concept is defined. - * @member {number} lineNumber - * @memberof gauge.messages.ConceptInfo - * @instance - */ - ConceptInfo.prototype.lineNumber = 0; - - /** - * Creates a new ConceptInfo instance using the specified properties. - * @function create - * @memberof gauge.messages.ConceptInfo - * @static - * @param {gauge.messages.IConceptInfo=} [properties] Properties to set - * @returns {gauge.messages.ConceptInfo} ConceptInfo instance - */ - ConceptInfo.create = function create(properties) { - return new ConceptInfo(properties); - }; - - /** - * Encodes the specified ConceptInfo message. Does not implicitly {@link gauge.messages.ConceptInfo.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ConceptInfo - * @static - * @param {gauge.messages.IConceptInfo} message ConceptInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConceptInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - $root.gauge.messages.ProtoStepValue.encode(message.stepValue, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.filepath != null && message.hasOwnProperty("filepath")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filepath); - if (message.lineNumber != null && message.hasOwnProperty("lineNumber")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.lineNumber); - return writer; - }; - - /** - * Encodes the specified ConceptInfo message, length delimited. Does not implicitly {@link gauge.messages.ConceptInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ConceptInfo - * @static - * @param {gauge.messages.IConceptInfo} message ConceptInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConceptInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ConceptInfo message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ConceptInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ConceptInfo} ConceptInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConceptInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ConceptInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stepValue = $root.gauge.messages.ProtoStepValue.decode(reader, reader.uint32()); - break; - case 2: - message.filepath = reader.string(); - break; - case 3: - message.lineNumber = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ConceptInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ConceptInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ConceptInfo} ConceptInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConceptInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ConceptInfo message. - * @function verify - * @memberof gauge.messages.ConceptInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConceptInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stepValue != null && message.hasOwnProperty("stepValue")) { - var error = $root.gauge.messages.ProtoStepValue.verify(message.stepValue); - if (error) - return "stepValue." + error; - } - if (message.filepath != null && message.hasOwnProperty("filepath")) - if (!$util.isString(message.filepath)) - return "filepath: string expected"; - if (message.lineNumber != null && message.hasOwnProperty("lineNumber")) - if (!$util.isInteger(message.lineNumber)) - return "lineNumber: integer expected"; - return null; - }; - - /** - * Creates a ConceptInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ConceptInfo - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ConceptInfo} ConceptInfo - */ - ConceptInfo.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ConceptInfo) - return object; - var message = new $root.gauge.messages.ConceptInfo(); - if (object.stepValue != null) { - if (typeof object.stepValue !== "object") - throw TypeError(".gauge.messages.ConceptInfo.stepValue: object expected"); - message.stepValue = $root.gauge.messages.ProtoStepValue.fromObject(object.stepValue); - } - if (object.filepath != null) - message.filepath = String(object.filepath); - if (object.lineNumber != null) - message.lineNumber = object.lineNumber | 0; - return message; - }; - - /** - * Creates a plain object from a ConceptInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ConceptInfo - * @static - * @param {gauge.messages.ConceptInfo} message ConceptInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConceptInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.stepValue = null; - object.filepath = ""; - object.lineNumber = 0; - } - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - object.stepValue = $root.gauge.messages.ProtoStepValue.toObject(message.stepValue, options); - if (message.filepath != null && message.hasOwnProperty("filepath")) - object.filepath = message.filepath; - if (message.lineNumber != null && message.hasOwnProperty("lineNumber")) - object.lineNumber = message.lineNumber; - return object; - }; - - /** - * Converts this ConceptInfo to JSON. - * @function toJSON - * @memberof gauge.messages.ConceptInfo - * @instance - * @returns {Object.} JSON object - */ - ConceptInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ConceptInfo; - })(); - - messages.GetStepValueRequest = (function() { - - /** - * Properties of a GetStepValueRequest. - * @memberof gauge.messages - * @interface IGetStepValueRequest - * @property {string|null} [stepText] The text of the Step. - * @property {boolean|null} [hasInlineTable] Flag to indicate if the Step has an inline table. - */ - - /** - * Constructs a new GetStepValueRequest. - * @memberof gauge.messages - * @classdesc Request to get a Step Value. - * @implements IGetStepValueRequest - * @constructor - * @param {gauge.messages.IGetStepValueRequest=} [properties] Properties to set - */ - function GetStepValueRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * The text of the Step. - * @member {string} stepText - * @memberof gauge.messages.GetStepValueRequest - * @instance - */ - GetStepValueRequest.prototype.stepText = ""; - - /** - * Flag to indicate if the Step has an inline table. - * @member {boolean} hasInlineTable - * @memberof gauge.messages.GetStepValueRequest - * @instance - */ - GetStepValueRequest.prototype.hasInlineTable = false; - - /** - * Creates a new GetStepValueRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.GetStepValueRequest - * @static - * @param {gauge.messages.IGetStepValueRequest=} [properties] Properties to set - * @returns {gauge.messages.GetStepValueRequest} GetStepValueRequest instance - */ - GetStepValueRequest.create = function create(properties) { - return new GetStepValueRequest(properties); - }; - - /** - * Encodes the specified GetStepValueRequest message. Does not implicitly {@link gauge.messages.GetStepValueRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.GetStepValueRequest - * @static - * @param {gauge.messages.IGetStepValueRequest} message GetStepValueRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetStepValueRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stepText != null && message.hasOwnProperty("stepText")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stepText); - if (message.hasInlineTable != null && message.hasOwnProperty("hasInlineTable")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.hasInlineTable); - return writer; - }; - - /** - * Encodes the specified GetStepValueRequest message, length delimited. Does not implicitly {@link gauge.messages.GetStepValueRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.GetStepValueRequest - * @static - * @param {gauge.messages.IGetStepValueRequest} message GetStepValueRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetStepValueRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetStepValueRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.GetStepValueRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.GetStepValueRequest} GetStepValueRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetStepValueRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.GetStepValueRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stepText = reader.string(); - break; - case 2: - message.hasInlineTable = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetStepValueRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.GetStepValueRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.GetStepValueRequest} GetStepValueRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetStepValueRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetStepValueRequest message. - * @function verify - * @memberof gauge.messages.GetStepValueRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetStepValueRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stepText != null && message.hasOwnProperty("stepText")) - if (!$util.isString(message.stepText)) - return "stepText: string expected"; - if (message.hasInlineTable != null && message.hasOwnProperty("hasInlineTable")) - if (typeof message.hasInlineTable !== "boolean") - return "hasInlineTable: boolean expected"; - return null; - }; - - /** - * Creates a GetStepValueRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.GetStepValueRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.GetStepValueRequest} GetStepValueRequest - */ - GetStepValueRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.GetStepValueRequest) - return object; - var message = new $root.gauge.messages.GetStepValueRequest(); - if (object.stepText != null) - message.stepText = String(object.stepText); - if (object.hasInlineTable != null) - message.hasInlineTable = Boolean(object.hasInlineTable); - return message; - }; - - /** - * Creates a plain object from a GetStepValueRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.GetStepValueRequest - * @static - * @param {gauge.messages.GetStepValueRequest} message GetStepValueRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetStepValueRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.stepText = ""; - object.hasInlineTable = false; - } - if (message.stepText != null && message.hasOwnProperty("stepText")) - object.stepText = message.stepText; - if (message.hasInlineTable != null && message.hasOwnProperty("hasInlineTable")) - object.hasInlineTable = message.hasInlineTable; - return object; - }; - - /** - * Converts this GetStepValueRequest to JSON. - * @function toJSON - * @memberof gauge.messages.GetStepValueRequest - * @instance - * @returns {Object.} JSON object - */ - GetStepValueRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetStepValueRequest; - })(); - - messages.GetStepValueResponse = (function() { - - /** - * Properties of a GetStepValueResponse. - * @memberof gauge.messages - * @interface IGetStepValueResponse - * @property {gauge.messages.IProtoStepValue|null} [stepValue] The Step corresponding to the request provided. - */ - - /** - * Constructs a new GetStepValueResponse. - * @memberof gauge.messages - * @classdesc Response to GetStepValueRequest - * @implements IGetStepValueResponse - * @constructor - * @param {gauge.messages.IGetStepValueResponse=} [properties] Properties to set - */ - function GetStepValueResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * The Step corresponding to the request provided. - * @member {gauge.messages.IProtoStepValue|null|undefined} stepValue - * @memberof gauge.messages.GetStepValueResponse - * @instance - */ - GetStepValueResponse.prototype.stepValue = null; - - /** - * Creates a new GetStepValueResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.GetStepValueResponse - * @static - * @param {gauge.messages.IGetStepValueResponse=} [properties] Properties to set - * @returns {gauge.messages.GetStepValueResponse} GetStepValueResponse instance - */ - GetStepValueResponse.create = function create(properties) { - return new GetStepValueResponse(properties); - }; - - /** - * Encodes the specified GetStepValueResponse message. Does not implicitly {@link gauge.messages.GetStepValueResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.GetStepValueResponse - * @static - * @param {gauge.messages.IGetStepValueResponse} message GetStepValueResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetStepValueResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - $root.gauge.messages.ProtoStepValue.encode(message.stepValue, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetStepValueResponse message, length delimited. Does not implicitly {@link gauge.messages.GetStepValueResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.GetStepValueResponse - * @static - * @param {gauge.messages.IGetStepValueResponse} message GetStepValueResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetStepValueResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetStepValueResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.GetStepValueResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.GetStepValueResponse} GetStepValueResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetStepValueResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.GetStepValueResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stepValue = $root.gauge.messages.ProtoStepValue.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetStepValueResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.GetStepValueResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.GetStepValueResponse} GetStepValueResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetStepValueResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetStepValueResponse message. - * @function verify - * @memberof gauge.messages.GetStepValueResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetStepValueResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stepValue != null && message.hasOwnProperty("stepValue")) { - var error = $root.gauge.messages.ProtoStepValue.verify(message.stepValue); - if (error) - return "stepValue." + error; - } - return null; - }; - - /** - * Creates a GetStepValueResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.GetStepValueResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.GetStepValueResponse} GetStepValueResponse - */ - GetStepValueResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.GetStepValueResponse) - return object; - var message = new $root.gauge.messages.GetStepValueResponse(); - if (object.stepValue != null) { - if (typeof object.stepValue !== "object") - throw TypeError(".gauge.messages.GetStepValueResponse.stepValue: object expected"); - message.stepValue = $root.gauge.messages.ProtoStepValue.fromObject(object.stepValue); - } - return message; - }; - - /** - * Creates a plain object from a GetStepValueResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.GetStepValueResponse - * @static - * @param {gauge.messages.GetStepValueResponse} message GetStepValueResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetStepValueResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.stepValue = null; - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - object.stepValue = $root.gauge.messages.ProtoStepValue.toObject(message.stepValue, options); - return object; - }; - - /** - * Converts this GetStepValueResponse to JSON. - * @function toJSON - * @memberof gauge.messages.GetStepValueResponse - * @instance - * @returns {Object.} JSON object - */ - GetStepValueResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetStepValueResponse; - })(); - - messages.GetLanguagePluginLibPathRequest = (function() { - - /** - * Properties of a GetLanguagePluginLibPathRequest. - * @memberof gauge.messages - * @interface IGetLanguagePluginLibPathRequest - * @property {string|null} [language] The language to locate the lib directory for. - */ - - /** - * Constructs a new GetLanguagePluginLibPathRequest. - * @memberof gauge.messages - * @classdesc Request to get the location of language plugin's Lib directory - * @implements IGetLanguagePluginLibPathRequest - * @constructor - * @param {gauge.messages.IGetLanguagePluginLibPathRequest=} [properties] Properties to set - */ - function GetLanguagePluginLibPathRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * The language to locate the lib directory for. - * @member {string} language - * @memberof gauge.messages.GetLanguagePluginLibPathRequest - * @instance - */ - GetLanguagePluginLibPathRequest.prototype.language = ""; - - /** - * Creates a new GetLanguagePluginLibPathRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.GetLanguagePluginLibPathRequest - * @static - * @param {gauge.messages.IGetLanguagePluginLibPathRequest=} [properties] Properties to set - * @returns {gauge.messages.GetLanguagePluginLibPathRequest} GetLanguagePluginLibPathRequest instance - */ - GetLanguagePluginLibPathRequest.create = function create(properties) { - return new GetLanguagePluginLibPathRequest(properties); - }; - - /** - * Encodes the specified GetLanguagePluginLibPathRequest message. Does not implicitly {@link gauge.messages.GetLanguagePluginLibPathRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.GetLanguagePluginLibPathRequest - * @static - * @param {gauge.messages.IGetLanguagePluginLibPathRequest} message GetLanguagePluginLibPathRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetLanguagePluginLibPathRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.language != null && message.hasOwnProperty("language")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.language); - return writer; - }; - - /** - * Encodes the specified GetLanguagePluginLibPathRequest message, length delimited. Does not implicitly {@link gauge.messages.GetLanguagePluginLibPathRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.GetLanguagePluginLibPathRequest - * @static - * @param {gauge.messages.IGetLanguagePluginLibPathRequest} message GetLanguagePluginLibPathRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetLanguagePluginLibPathRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetLanguagePluginLibPathRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.GetLanguagePluginLibPathRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.GetLanguagePluginLibPathRequest} GetLanguagePluginLibPathRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetLanguagePluginLibPathRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.GetLanguagePluginLibPathRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.language = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetLanguagePluginLibPathRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.GetLanguagePluginLibPathRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.GetLanguagePluginLibPathRequest} GetLanguagePluginLibPathRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetLanguagePluginLibPathRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetLanguagePluginLibPathRequest message. - * @function verify - * @memberof gauge.messages.GetLanguagePluginLibPathRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetLanguagePluginLibPathRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.language != null && message.hasOwnProperty("language")) - if (!$util.isString(message.language)) - return "language: string expected"; - return null; - }; - - /** - * Creates a GetLanguagePluginLibPathRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.GetLanguagePluginLibPathRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.GetLanguagePluginLibPathRequest} GetLanguagePluginLibPathRequest - */ - GetLanguagePluginLibPathRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.GetLanguagePluginLibPathRequest) - return object; - var message = new $root.gauge.messages.GetLanguagePluginLibPathRequest(); - if (object.language != null) - message.language = String(object.language); - return message; - }; - - /** - * Creates a plain object from a GetLanguagePluginLibPathRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.GetLanguagePluginLibPathRequest - * @static - * @param {gauge.messages.GetLanguagePluginLibPathRequest} message GetLanguagePluginLibPathRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetLanguagePluginLibPathRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.language = ""; - if (message.language != null && message.hasOwnProperty("language")) - object.language = message.language; - return object; - }; - - /** - * Converts this GetLanguagePluginLibPathRequest to JSON. - * @function toJSON - * @memberof gauge.messages.GetLanguagePluginLibPathRequest - * @instance - * @returns {Object.} JSON object - */ - GetLanguagePluginLibPathRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetLanguagePluginLibPathRequest; - })(); - - messages.GetLanguagePluginLibPathResponse = (function() { - - /** - * Properties of a GetLanguagePluginLibPathResponse. - * @memberof gauge.messages - * @interface IGetLanguagePluginLibPathResponse - * @property {string|null} [path] Absolute path to the Lib directory of the language. - */ - - /** - * Constructs a new GetLanguagePluginLibPathResponse. - * @memberof gauge.messages - * @classdesc Response to GetLanguagePluginLibPathRequest - * @implements IGetLanguagePluginLibPathResponse - * @constructor - * @param {gauge.messages.IGetLanguagePluginLibPathResponse=} [properties] Properties to set - */ - function GetLanguagePluginLibPathResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Absolute path to the Lib directory of the language. - * @member {string} path - * @memberof gauge.messages.GetLanguagePluginLibPathResponse - * @instance - */ - GetLanguagePluginLibPathResponse.prototype.path = ""; - - /** - * Creates a new GetLanguagePluginLibPathResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.GetLanguagePluginLibPathResponse - * @static - * @param {gauge.messages.IGetLanguagePluginLibPathResponse=} [properties] Properties to set - * @returns {gauge.messages.GetLanguagePluginLibPathResponse} GetLanguagePluginLibPathResponse instance - */ - GetLanguagePluginLibPathResponse.create = function create(properties) { - return new GetLanguagePluginLibPathResponse(properties); - }; - - /** - * Encodes the specified GetLanguagePluginLibPathResponse message. Does not implicitly {@link gauge.messages.GetLanguagePluginLibPathResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.GetLanguagePluginLibPathResponse - * @static - * @param {gauge.messages.IGetLanguagePluginLibPathResponse} message GetLanguagePluginLibPathResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetLanguagePluginLibPathResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.hasOwnProperty("path")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); - return writer; - }; - - /** - * Encodes the specified GetLanguagePluginLibPathResponse message, length delimited. Does not implicitly {@link gauge.messages.GetLanguagePluginLibPathResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.GetLanguagePluginLibPathResponse - * @static - * @param {gauge.messages.IGetLanguagePluginLibPathResponse} message GetLanguagePluginLibPathResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetLanguagePluginLibPathResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetLanguagePluginLibPathResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.GetLanguagePluginLibPathResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.GetLanguagePluginLibPathResponse} GetLanguagePluginLibPathResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetLanguagePluginLibPathResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.GetLanguagePluginLibPathResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.path = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetLanguagePluginLibPathResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.GetLanguagePluginLibPathResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.GetLanguagePluginLibPathResponse} GetLanguagePluginLibPathResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetLanguagePluginLibPathResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetLanguagePluginLibPathResponse message. - * @function verify - * @memberof gauge.messages.GetLanguagePluginLibPathResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetLanguagePluginLibPathResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - return null; - }; - - /** - * Creates a GetLanguagePluginLibPathResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.GetLanguagePluginLibPathResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.GetLanguagePluginLibPathResponse} GetLanguagePluginLibPathResponse - */ - GetLanguagePluginLibPathResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.GetLanguagePluginLibPathResponse) - return object; - var message = new $root.gauge.messages.GetLanguagePluginLibPathResponse(); - if (object.path != null) - message.path = String(object.path); - return message; - }; - - /** - * Creates a plain object from a GetLanguagePluginLibPathResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.GetLanguagePluginLibPathResponse - * @static - * @param {gauge.messages.GetLanguagePluginLibPathResponse} message GetLanguagePluginLibPathResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetLanguagePluginLibPathResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.path = ""; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - return object; - }; - - /** - * Converts this GetLanguagePluginLibPathResponse to JSON. - * @function toJSON - * @memberof gauge.messages.GetLanguagePluginLibPathResponse - * @instance - * @returns {Object.} JSON object - */ - GetLanguagePluginLibPathResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetLanguagePluginLibPathResponse; - })(); - - messages.ErrorResponse = (function() { - - /** - * Properties of an ErrorResponse. - * @memberof gauge.messages - * @interface IErrorResponse - * @property {string|null} [error] Actual error message - */ - - /** - * Constructs a new ErrorResponse. - * @memberof gauge.messages - * @classdesc A generic failure response - * @implements IErrorResponse - * @constructor - * @param {gauge.messages.IErrorResponse=} [properties] Properties to set - */ - function ErrorResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Actual error message - * @member {string} error - * @memberof gauge.messages.ErrorResponse - * @instance - */ - ErrorResponse.prototype.error = ""; - - /** - * Creates a new ErrorResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.ErrorResponse - * @static - * @param {gauge.messages.IErrorResponse=} [properties] Properties to set - * @returns {gauge.messages.ErrorResponse} ErrorResponse instance - */ - ErrorResponse.create = function create(properties) { - return new ErrorResponse(properties); - }; - - /** - * Encodes the specified ErrorResponse message. Does not implicitly {@link gauge.messages.ErrorResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ErrorResponse - * @static - * @param {gauge.messages.IErrorResponse} message ErrorResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ErrorResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.error != null && message.hasOwnProperty("error")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.error); - return writer; - }; - - /** - * Encodes the specified ErrorResponse message, length delimited. Does not implicitly {@link gauge.messages.ErrorResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ErrorResponse - * @static - * @param {gauge.messages.IErrorResponse} message ErrorResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ErrorResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ErrorResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ErrorResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ErrorResponse} ErrorResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ErrorResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ErrorResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.error = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ErrorResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ErrorResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ErrorResponse} ErrorResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ErrorResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ErrorResponse message. - * @function verify - * @memberof gauge.messages.ErrorResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ErrorResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) - if (!$util.isString(message.error)) - return "error: string expected"; - return null; - }; - - /** - * Creates an ErrorResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ErrorResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ErrorResponse} ErrorResponse - */ - ErrorResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ErrorResponse) - return object; - var message = new $root.gauge.messages.ErrorResponse(); - if (object.error != null) - message.error = String(object.error); - return message; - }; - - /** - * Creates a plain object from an ErrorResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ErrorResponse - * @static - * @param {gauge.messages.ErrorResponse} message ErrorResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ErrorResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.error = ""; - if (message.error != null && message.hasOwnProperty("error")) - object.error = message.error; - return object; - }; - - /** - * Converts this ErrorResponse to JSON. - * @function toJSON - * @memberof gauge.messages.ErrorResponse - * @instance - * @returns {Object.} JSON object - */ - ErrorResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ErrorResponse; - })(); - - messages.PerformRefactoringRequest = (function() { - - /** - * Properties of a PerformRefactoringRequest. - * @memberof gauge.messages - * @interface IPerformRefactoringRequest - * @property {string|null} [oldStep] Step to refactor - * @property {string|null} [newStep] Change to be made - */ - - /** - * Constructs a new PerformRefactoringRequest. - * @memberof gauge.messages - * @classdesc Request to perform a Refactor - * @implements IPerformRefactoringRequest - * @constructor - * @param {gauge.messages.IPerformRefactoringRequest=} [properties] Properties to set - */ - function PerformRefactoringRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Step to refactor - * @member {string} oldStep - * @memberof gauge.messages.PerformRefactoringRequest - * @instance - */ - PerformRefactoringRequest.prototype.oldStep = ""; - - /** - * Change to be made - * @member {string} newStep - * @memberof gauge.messages.PerformRefactoringRequest - * @instance - */ - PerformRefactoringRequest.prototype.newStep = ""; - - /** - * Creates a new PerformRefactoringRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.PerformRefactoringRequest - * @static - * @param {gauge.messages.IPerformRefactoringRequest=} [properties] Properties to set - * @returns {gauge.messages.PerformRefactoringRequest} PerformRefactoringRequest instance - */ - PerformRefactoringRequest.create = function create(properties) { - return new PerformRefactoringRequest(properties); - }; - - /** - * Encodes the specified PerformRefactoringRequest message. Does not implicitly {@link gauge.messages.PerformRefactoringRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.PerformRefactoringRequest - * @static - * @param {gauge.messages.IPerformRefactoringRequest} message PerformRefactoringRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PerformRefactoringRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.oldStep != null && message.hasOwnProperty("oldStep")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.oldStep); - if (message.newStep != null && message.hasOwnProperty("newStep")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.newStep); - return writer; - }; - - /** - * Encodes the specified PerformRefactoringRequest message, length delimited. Does not implicitly {@link gauge.messages.PerformRefactoringRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.PerformRefactoringRequest - * @static - * @param {gauge.messages.IPerformRefactoringRequest} message PerformRefactoringRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PerformRefactoringRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PerformRefactoringRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.PerformRefactoringRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.PerformRefactoringRequest} PerformRefactoringRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PerformRefactoringRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.PerformRefactoringRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.oldStep = reader.string(); - break; - case 2: - message.newStep = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PerformRefactoringRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.PerformRefactoringRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.PerformRefactoringRequest} PerformRefactoringRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PerformRefactoringRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PerformRefactoringRequest message. - * @function verify - * @memberof gauge.messages.PerformRefactoringRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PerformRefactoringRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.oldStep != null && message.hasOwnProperty("oldStep")) - if (!$util.isString(message.oldStep)) - return "oldStep: string expected"; - if (message.newStep != null && message.hasOwnProperty("newStep")) - if (!$util.isString(message.newStep)) - return "newStep: string expected"; - return null; - }; - - /** - * Creates a PerformRefactoringRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.PerformRefactoringRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.PerformRefactoringRequest} PerformRefactoringRequest - */ - PerformRefactoringRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.PerformRefactoringRequest) - return object; - var message = new $root.gauge.messages.PerformRefactoringRequest(); - if (object.oldStep != null) - message.oldStep = String(object.oldStep); - if (object.newStep != null) - message.newStep = String(object.newStep); - return message; - }; - - /** - * Creates a plain object from a PerformRefactoringRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.PerformRefactoringRequest - * @static - * @param {gauge.messages.PerformRefactoringRequest} message PerformRefactoringRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PerformRefactoringRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.oldStep = ""; - object.newStep = ""; - } - if (message.oldStep != null && message.hasOwnProperty("oldStep")) - object.oldStep = message.oldStep; - if (message.newStep != null && message.hasOwnProperty("newStep")) - object.newStep = message.newStep; - return object; - }; - - /** - * Converts this PerformRefactoringRequest to JSON. - * @function toJSON - * @memberof gauge.messages.PerformRefactoringRequest - * @instance - * @returns {Object.} JSON object - */ - PerformRefactoringRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PerformRefactoringRequest; - })(); - - messages.PerformRefactoringResponse = (function() { - - /** - * Properties of a PerformRefactoringResponse. - * @memberof gauge.messages - * @interface IPerformRefactoringResponse - * @property {boolean|null} [success] Flag indicating Success - * @property {Array.|null} [errors] Error message if the refactoring was unsuccessful. - * @property {Array.|null} [filesChanged] Collection of files that were changed as part of the Refactoring. - */ - - /** - * Constructs a new PerformRefactoringResponse. - * @memberof gauge.messages - * @classdesc Response to PerformRefactoringRequest - * @implements IPerformRefactoringResponse - * @constructor - * @param {gauge.messages.IPerformRefactoringResponse=} [properties] Properties to set - */ - function PerformRefactoringResponse(properties) { - this.errors = []; - this.filesChanged = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Flag indicating Success - * @member {boolean} success - * @memberof gauge.messages.PerformRefactoringResponse - * @instance - */ - PerformRefactoringResponse.prototype.success = false; - - /** - * Error message if the refactoring was unsuccessful. - * @member {Array.} errors - * @memberof gauge.messages.PerformRefactoringResponse - * @instance - */ - PerformRefactoringResponse.prototype.errors = $util.emptyArray; - - /** - * Collection of files that were changed as part of the Refactoring. - * @member {Array.} filesChanged - * @memberof gauge.messages.PerformRefactoringResponse - * @instance - */ - PerformRefactoringResponse.prototype.filesChanged = $util.emptyArray; - - /** - * Creates a new PerformRefactoringResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.PerformRefactoringResponse - * @static - * @param {gauge.messages.IPerformRefactoringResponse=} [properties] Properties to set - * @returns {gauge.messages.PerformRefactoringResponse} PerformRefactoringResponse instance - */ - PerformRefactoringResponse.create = function create(properties) { - return new PerformRefactoringResponse(properties); - }; - - /** - * Encodes the specified PerformRefactoringResponse message. Does not implicitly {@link gauge.messages.PerformRefactoringResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.PerformRefactoringResponse - * @static - * @param {gauge.messages.IPerformRefactoringResponse} message PerformRefactoringResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PerformRefactoringResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && message.hasOwnProperty("success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.errors != null && message.errors.length) - for (var i = 0; i < message.errors.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.errors[i]); - if (message.filesChanged != null && message.filesChanged.length) - for (var i = 0; i < message.filesChanged.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.filesChanged[i]); - return writer; - }; - - /** - * Encodes the specified PerformRefactoringResponse message, length delimited. Does not implicitly {@link gauge.messages.PerformRefactoringResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.PerformRefactoringResponse - * @static - * @param {gauge.messages.IPerformRefactoringResponse} message PerformRefactoringResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PerformRefactoringResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PerformRefactoringResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.PerformRefactoringResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.PerformRefactoringResponse} PerformRefactoringResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PerformRefactoringResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.PerformRefactoringResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.success = reader.bool(); - break; - case 2: - if (!(message.errors && message.errors.length)) - message.errors = []; - message.errors.push(reader.string()); - break; - case 3: - if (!(message.filesChanged && message.filesChanged.length)) - message.filesChanged = []; - message.filesChanged.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PerformRefactoringResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.PerformRefactoringResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.PerformRefactoringResponse} PerformRefactoringResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PerformRefactoringResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PerformRefactoringResponse message. - * @function verify - * @memberof gauge.messages.PerformRefactoringResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PerformRefactoringResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.errors != null && message.hasOwnProperty("errors")) { - if (!Array.isArray(message.errors)) - return "errors: array expected"; - for (var i = 0; i < message.errors.length; ++i) - if (!$util.isString(message.errors[i])) - return "errors: string[] expected"; - } - if (message.filesChanged != null && message.hasOwnProperty("filesChanged")) { - if (!Array.isArray(message.filesChanged)) - return "filesChanged: array expected"; - for (var i = 0; i < message.filesChanged.length; ++i) - if (!$util.isString(message.filesChanged[i])) - return "filesChanged: string[] expected"; - } - return null; - }; - - /** - * Creates a PerformRefactoringResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.PerformRefactoringResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.PerformRefactoringResponse} PerformRefactoringResponse - */ - PerformRefactoringResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.PerformRefactoringResponse) - return object; - var message = new $root.gauge.messages.PerformRefactoringResponse(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.errors) { - if (!Array.isArray(object.errors)) - throw TypeError(".gauge.messages.PerformRefactoringResponse.errors: array expected"); - message.errors = []; - for (var i = 0; i < object.errors.length; ++i) - message.errors[i] = String(object.errors[i]); - } - if (object.filesChanged) { - if (!Array.isArray(object.filesChanged)) - throw TypeError(".gauge.messages.PerformRefactoringResponse.filesChanged: array expected"); - message.filesChanged = []; - for (var i = 0; i < object.filesChanged.length; ++i) - message.filesChanged[i] = String(object.filesChanged[i]); - } - return message; - }; - - /** - * Creates a plain object from a PerformRefactoringResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.PerformRefactoringResponse - * @static - * @param {gauge.messages.PerformRefactoringResponse} message PerformRefactoringResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PerformRefactoringResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.errors = []; - object.filesChanged = []; - } - if (options.defaults) - object.success = false; - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.errors && message.errors.length) { - object.errors = []; - for (var j = 0; j < message.errors.length; ++j) - object.errors[j] = message.errors[j]; - } - if (message.filesChanged && message.filesChanged.length) { - object.filesChanged = []; - for (var j = 0; j < message.filesChanged.length; ++j) - object.filesChanged[j] = message.filesChanged[j]; - } - return object; - }; - - /** - * Converts this PerformRefactoringResponse to JSON. - * @function toJSON - * @memberof gauge.messages.PerformRefactoringResponse - * @instance - * @returns {Object.} JSON object - */ - PerformRefactoringResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PerformRefactoringResponse; - })(); - - messages.ExtractConceptRequest = (function() { - - /** - * Properties of an ExtractConceptRequest. - * @memberof gauge.messages - * @interface IExtractConceptRequest - * @property {gauge.messages.Istep|null} [conceptName] The Concept name given by the user - * @property {Array.|null} [steps] steps to extract - * @property {boolean|null} [changeAcrossProject] Flag indicating if refactoring should be done across project - * @property {string|null} [conceptFileName] The concept filename in which extracted concept will be added - * @property {gauge.messages.ItextInfo|null} [selectedTextInfo] Info related to selected text, only if changeAcrossProject is false - */ - - /** - * Constructs a new ExtractConceptRequest. - * @memberof gauge.messages - * @classdesc Request to perform Extract to Concept refactoring - * @implements IExtractConceptRequest - * @constructor - * @param {gauge.messages.IExtractConceptRequest=} [properties] Properties to set - */ - function ExtractConceptRequest(properties) { - this.steps = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * The Concept name given by the user - * @member {gauge.messages.Istep|null|undefined} conceptName - * @memberof gauge.messages.ExtractConceptRequest - * @instance - */ - ExtractConceptRequest.prototype.conceptName = null; - - /** - * steps to extract - * @member {Array.} steps - * @memberof gauge.messages.ExtractConceptRequest - * @instance - */ - ExtractConceptRequest.prototype.steps = $util.emptyArray; - - /** - * Flag indicating if refactoring should be done across project - * @member {boolean} changeAcrossProject - * @memberof gauge.messages.ExtractConceptRequest - * @instance - */ - ExtractConceptRequest.prototype.changeAcrossProject = false; - - /** - * The concept filename in which extracted concept will be added - * @member {string} conceptFileName - * @memberof gauge.messages.ExtractConceptRequest - * @instance - */ - ExtractConceptRequest.prototype.conceptFileName = ""; - - /** - * Info related to selected text, only if changeAcrossProject is false - * @member {gauge.messages.ItextInfo|null|undefined} selectedTextInfo - * @memberof gauge.messages.ExtractConceptRequest - * @instance - */ - ExtractConceptRequest.prototype.selectedTextInfo = null; - - /** - * Creates a new ExtractConceptRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.ExtractConceptRequest - * @static - * @param {gauge.messages.IExtractConceptRequest=} [properties] Properties to set - * @returns {gauge.messages.ExtractConceptRequest} ExtractConceptRequest instance - */ - ExtractConceptRequest.create = function create(properties) { - return new ExtractConceptRequest(properties); - }; - - /** - * Encodes the specified ExtractConceptRequest message. Does not implicitly {@link gauge.messages.ExtractConceptRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ExtractConceptRequest - * @static - * @param {gauge.messages.IExtractConceptRequest} message ExtractConceptRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtractConceptRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.conceptName != null && message.hasOwnProperty("conceptName")) - $root.gauge.messages.step.encode(message.conceptName, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.steps != null && message.steps.length) - for (var i = 0; i < message.steps.length; ++i) - $root.gauge.messages.step.encode(message.steps[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.changeAcrossProject != null && message.hasOwnProperty("changeAcrossProject")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.changeAcrossProject); - if (message.conceptFileName != null && message.hasOwnProperty("conceptFileName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.conceptFileName); - if (message.selectedTextInfo != null && message.hasOwnProperty("selectedTextInfo")) - $root.gauge.messages.textInfo.encode(message.selectedTextInfo, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ExtractConceptRequest message, length delimited. Does not implicitly {@link gauge.messages.ExtractConceptRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ExtractConceptRequest - * @static - * @param {gauge.messages.IExtractConceptRequest} message ExtractConceptRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtractConceptRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExtractConceptRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ExtractConceptRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ExtractConceptRequest} ExtractConceptRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtractConceptRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ExtractConceptRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.conceptName = $root.gauge.messages.step.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.steps && message.steps.length)) - message.steps = []; - message.steps.push($root.gauge.messages.step.decode(reader, reader.uint32())); - break; - case 3: - message.changeAcrossProject = reader.bool(); - break; - case 4: - message.conceptFileName = reader.string(); - break; - case 5: - message.selectedTextInfo = $root.gauge.messages.textInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExtractConceptRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ExtractConceptRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ExtractConceptRequest} ExtractConceptRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtractConceptRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExtractConceptRequest message. - * @function verify - * @memberof gauge.messages.ExtractConceptRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExtractConceptRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.conceptName != null && message.hasOwnProperty("conceptName")) { - var error = $root.gauge.messages.step.verify(message.conceptName); - if (error) - return "conceptName." + error; - } - if (message.steps != null && message.hasOwnProperty("steps")) { - if (!Array.isArray(message.steps)) - return "steps: array expected"; - for (var i = 0; i < message.steps.length; ++i) { - var error = $root.gauge.messages.step.verify(message.steps[i]); - if (error) - return "steps." + error; - } - } - if (message.changeAcrossProject != null && message.hasOwnProperty("changeAcrossProject")) - if (typeof message.changeAcrossProject !== "boolean") - return "changeAcrossProject: boolean expected"; - if (message.conceptFileName != null && message.hasOwnProperty("conceptFileName")) - if (!$util.isString(message.conceptFileName)) - return "conceptFileName: string expected"; - if (message.selectedTextInfo != null && message.hasOwnProperty("selectedTextInfo")) { - var error = $root.gauge.messages.textInfo.verify(message.selectedTextInfo); - if (error) - return "selectedTextInfo." + error; - } - return null; - }; - - /** - * Creates an ExtractConceptRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ExtractConceptRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ExtractConceptRequest} ExtractConceptRequest - */ - ExtractConceptRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ExtractConceptRequest) - return object; - var message = new $root.gauge.messages.ExtractConceptRequest(); - if (object.conceptName != null) { - if (typeof object.conceptName !== "object") - throw TypeError(".gauge.messages.ExtractConceptRequest.conceptName: object expected"); - message.conceptName = $root.gauge.messages.step.fromObject(object.conceptName); - } - if (object.steps) { - if (!Array.isArray(object.steps)) - throw TypeError(".gauge.messages.ExtractConceptRequest.steps: array expected"); - message.steps = []; - for (var i = 0; i < object.steps.length; ++i) { - if (typeof object.steps[i] !== "object") - throw TypeError(".gauge.messages.ExtractConceptRequest.steps: object expected"); - message.steps[i] = $root.gauge.messages.step.fromObject(object.steps[i]); - } - } - if (object.changeAcrossProject != null) - message.changeAcrossProject = Boolean(object.changeAcrossProject); - if (object.conceptFileName != null) - message.conceptFileName = String(object.conceptFileName); - if (object.selectedTextInfo != null) { - if (typeof object.selectedTextInfo !== "object") - throw TypeError(".gauge.messages.ExtractConceptRequest.selectedTextInfo: object expected"); - message.selectedTextInfo = $root.gauge.messages.textInfo.fromObject(object.selectedTextInfo); - } - return message; - }; - - /** - * Creates a plain object from an ExtractConceptRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ExtractConceptRequest - * @static - * @param {gauge.messages.ExtractConceptRequest} message ExtractConceptRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExtractConceptRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.steps = []; - if (options.defaults) { - object.conceptName = null; - object.changeAcrossProject = false; - object.conceptFileName = ""; - object.selectedTextInfo = null; - } - if (message.conceptName != null && message.hasOwnProperty("conceptName")) - object.conceptName = $root.gauge.messages.step.toObject(message.conceptName, options); - if (message.steps && message.steps.length) { - object.steps = []; - for (var j = 0; j < message.steps.length; ++j) - object.steps[j] = $root.gauge.messages.step.toObject(message.steps[j], options); - } - if (message.changeAcrossProject != null && message.hasOwnProperty("changeAcrossProject")) - object.changeAcrossProject = message.changeAcrossProject; - if (message.conceptFileName != null && message.hasOwnProperty("conceptFileName")) - object.conceptFileName = message.conceptFileName; - if (message.selectedTextInfo != null && message.hasOwnProperty("selectedTextInfo")) - object.selectedTextInfo = $root.gauge.messages.textInfo.toObject(message.selectedTextInfo, options); - return object; - }; - - /** - * Converts this ExtractConceptRequest to JSON. - * @function toJSON - * @memberof gauge.messages.ExtractConceptRequest - * @instance - * @returns {Object.} JSON object - */ - ExtractConceptRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ExtractConceptRequest; - })(); - - messages.textInfo = (function() { - - /** - * Properties of a textInfo. - * @memberof gauge.messages - * @interface ItextInfo - * @property {string|null} [fileName] The filename from where concept is being extracted - * @property {number|null} [startingLineNo] storing the starting and ending line number of selected text - * @property {number|null} [endLineNo] textInfo endLineNo - */ - - /** - * Constructs a new textInfo. - * @memberof gauge.messages - * @classdesc Represents a textInfo. - * @implements ItextInfo - * @constructor - * @param {gauge.messages.ItextInfo=} [properties] Properties to set - */ - function textInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * The filename from where concept is being extracted - * @member {string} fileName - * @memberof gauge.messages.textInfo - * @instance - */ - textInfo.prototype.fileName = ""; - - /** - * storing the starting and ending line number of selected text - * @member {number} startingLineNo - * @memberof gauge.messages.textInfo - * @instance - */ - textInfo.prototype.startingLineNo = 0; - - /** - * textInfo endLineNo. - * @member {number} endLineNo - * @memberof gauge.messages.textInfo - * @instance - */ - textInfo.prototype.endLineNo = 0; - - /** - * Creates a new textInfo instance using the specified properties. - * @function create - * @memberof gauge.messages.textInfo - * @static - * @param {gauge.messages.ItextInfo=} [properties] Properties to set - * @returns {gauge.messages.textInfo} textInfo instance - */ - textInfo.create = function create(properties) { - return new textInfo(properties); - }; - - /** - * Encodes the specified textInfo message. Does not implicitly {@link gauge.messages.textInfo.verify|verify} messages. - * @function encode - * @memberof gauge.messages.textInfo - * @static - * @param {gauge.messages.ItextInfo} message textInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - textInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fileName != null && message.hasOwnProperty("fileName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.fileName); - if (message.startingLineNo != null && message.hasOwnProperty("startingLineNo")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.startingLineNo); - if (message.endLineNo != null && message.hasOwnProperty("endLineNo")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.endLineNo); - return writer; - }; - - /** - * Encodes the specified textInfo message, length delimited. Does not implicitly {@link gauge.messages.textInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.textInfo - * @static - * @param {gauge.messages.ItextInfo} message textInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - textInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a textInfo message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.textInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.textInfo} textInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - textInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.textInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fileName = reader.string(); - break; - case 2: - message.startingLineNo = reader.int32(); - break; - case 3: - message.endLineNo = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a textInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.textInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.textInfo} textInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - textInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a textInfo message. - * @function verify - * @memberof gauge.messages.textInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - textInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fileName != null && message.hasOwnProperty("fileName")) - if (!$util.isString(message.fileName)) - return "fileName: string expected"; - if (message.startingLineNo != null && message.hasOwnProperty("startingLineNo")) - if (!$util.isInteger(message.startingLineNo)) - return "startingLineNo: integer expected"; - if (message.endLineNo != null && message.hasOwnProperty("endLineNo")) - if (!$util.isInteger(message.endLineNo)) - return "endLineNo: integer expected"; - return null; - }; - - /** - * Creates a textInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.textInfo - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.textInfo} textInfo - */ - textInfo.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.textInfo) - return object; - var message = new $root.gauge.messages.textInfo(); - if (object.fileName != null) - message.fileName = String(object.fileName); - if (object.startingLineNo != null) - message.startingLineNo = object.startingLineNo | 0; - if (object.endLineNo != null) - message.endLineNo = object.endLineNo | 0; - return message; - }; - - /** - * Creates a plain object from a textInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.textInfo - * @static - * @param {gauge.messages.textInfo} message textInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - textInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.fileName = ""; - object.startingLineNo = 0; - object.endLineNo = 0; - } - if (message.fileName != null && message.hasOwnProperty("fileName")) - object.fileName = message.fileName; - if (message.startingLineNo != null && message.hasOwnProperty("startingLineNo")) - object.startingLineNo = message.startingLineNo; - if (message.endLineNo != null && message.hasOwnProperty("endLineNo")) - object.endLineNo = message.endLineNo; - return object; - }; - - /** - * Converts this textInfo to JSON. - * @function toJSON - * @memberof gauge.messages.textInfo - * @instance - * @returns {Object.} JSON object - */ - textInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return textInfo; - })(); - - messages.step = (function() { - - /** - * Properties of a step. - * @memberof gauge.messages - * @interface Istep - * @property {string|null} [name] name of the step - * @property {string|null} [table] table present in step as parameter - * @property {string|null} [paramTableName] name of table in concept heading, if it comes as a param to concept - */ - - /** - * Constructs a new step. - * @memberof gauge.messages - * @classdesc Represents a step. - * @implements Istep - * @constructor - * @param {gauge.messages.Istep=} [properties] Properties to set - */ - function step(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * name of the step - * @member {string} name - * @memberof gauge.messages.step - * @instance - */ - step.prototype.name = ""; - - /** - * table present in step as parameter - * @member {string} table - * @memberof gauge.messages.step - * @instance - */ - step.prototype.table = ""; - - /** - * name of table in concept heading, if it comes as a param to concept - * @member {string} paramTableName - * @memberof gauge.messages.step - * @instance - */ - step.prototype.paramTableName = ""; - - /** - * Creates a new step instance using the specified properties. - * @function create - * @memberof gauge.messages.step - * @static - * @param {gauge.messages.Istep=} [properties] Properties to set - * @returns {gauge.messages.step} step instance - */ - step.create = function create(properties) { - return new step(properties); - }; - - /** - * Encodes the specified step message. Does not implicitly {@link gauge.messages.step.verify|verify} messages. - * @function encode - * @memberof gauge.messages.step - * @static - * @param {gauge.messages.Istep} message step message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - step.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.table != null && message.hasOwnProperty("table")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.table); - if (message.paramTableName != null && message.hasOwnProperty("paramTableName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.paramTableName); - return writer; - }; - - /** - * Encodes the specified step message, length delimited. Does not implicitly {@link gauge.messages.step.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.step - * @static - * @param {gauge.messages.Istep} message step message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - step.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a step message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.step - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.step} step - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - step.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.step(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.table = reader.string(); - break; - case 3: - message.paramTableName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a step message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.step - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.step} step - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - step.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a step message. - * @function verify - * @memberof gauge.messages.step - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - step.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.table != null && message.hasOwnProperty("table")) - if (!$util.isString(message.table)) - return "table: string expected"; - if (message.paramTableName != null && message.hasOwnProperty("paramTableName")) - if (!$util.isString(message.paramTableName)) - return "paramTableName: string expected"; - return null; - }; - - /** - * Creates a step message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.step - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.step} step - */ - step.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.step) - return object; - var message = new $root.gauge.messages.step(); - if (object.name != null) - message.name = String(object.name); - if (object.table != null) - message.table = String(object.table); - if (object.paramTableName != null) - message.paramTableName = String(object.paramTableName); - return message; - }; - - /** - * Creates a plain object from a step message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.step - * @static - * @param {gauge.messages.step} message step - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - step.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.table = ""; - object.paramTableName = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.table != null && message.hasOwnProperty("table")) - object.table = message.table; - if (message.paramTableName != null && message.hasOwnProperty("paramTableName")) - object.paramTableName = message.paramTableName; - return object; - }; - - /** - * Converts this step to JSON. - * @function toJSON - * @memberof gauge.messages.step - * @instance - * @returns {Object.} JSON object - */ - step.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return step; - })(); - - messages.ExtractConceptResponse = (function() { - - /** - * Properties of an ExtractConceptResponse. - * @memberof gauge.messages - * @interface IExtractConceptResponse - * @property {boolean|null} [isSuccess] Flag indicating Success - * @property {string|null} [error] Error message if the refactoring was unsuccessful. - * @property {Array.|null} [filesChanged] Collection of files that were changed as part of the Refactoring. - */ - - /** - * Constructs a new ExtractConceptResponse. - * @memberof gauge.messages - * @classdesc Response to perform Extract to Concept refactoring - * @implements IExtractConceptResponse - * @constructor - * @param {gauge.messages.IExtractConceptResponse=} [properties] Properties to set - */ - function ExtractConceptResponse(properties) { - this.filesChanged = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Flag indicating Success - * @member {boolean} isSuccess - * @memberof gauge.messages.ExtractConceptResponse - * @instance - */ - ExtractConceptResponse.prototype.isSuccess = false; - - /** - * Error message if the refactoring was unsuccessful. - * @member {string} error - * @memberof gauge.messages.ExtractConceptResponse - * @instance - */ - ExtractConceptResponse.prototype.error = ""; - - /** - * Collection of files that were changed as part of the Refactoring. - * @member {Array.} filesChanged - * @memberof gauge.messages.ExtractConceptResponse - * @instance - */ - ExtractConceptResponse.prototype.filesChanged = $util.emptyArray; - - /** - * Creates a new ExtractConceptResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.ExtractConceptResponse - * @static - * @param {gauge.messages.IExtractConceptResponse=} [properties] Properties to set - * @returns {gauge.messages.ExtractConceptResponse} ExtractConceptResponse instance - */ - ExtractConceptResponse.create = function create(properties) { - return new ExtractConceptResponse(properties); - }; - - /** - * Encodes the specified ExtractConceptResponse message. Does not implicitly {@link gauge.messages.ExtractConceptResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ExtractConceptResponse - * @static - * @param {gauge.messages.IExtractConceptResponse} message ExtractConceptResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtractConceptResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.isSuccess != null && message.hasOwnProperty("isSuccess")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isSuccess); - if (message.error != null && message.hasOwnProperty("error")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.error); - if (message.filesChanged != null && message.filesChanged.length) - for (var i = 0; i < message.filesChanged.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.filesChanged[i]); - return writer; - }; - - /** - * Encodes the specified ExtractConceptResponse message, length delimited. Does not implicitly {@link gauge.messages.ExtractConceptResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ExtractConceptResponse - * @static - * @param {gauge.messages.IExtractConceptResponse} message ExtractConceptResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtractConceptResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExtractConceptResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ExtractConceptResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ExtractConceptResponse} ExtractConceptResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtractConceptResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ExtractConceptResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.isSuccess = reader.bool(); - break; - case 2: - message.error = reader.string(); - break; - case 3: - if (!(message.filesChanged && message.filesChanged.length)) - message.filesChanged = []; - message.filesChanged.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExtractConceptResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ExtractConceptResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ExtractConceptResponse} ExtractConceptResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtractConceptResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExtractConceptResponse message. - * @function verify - * @memberof gauge.messages.ExtractConceptResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExtractConceptResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.isSuccess != null && message.hasOwnProperty("isSuccess")) - if (typeof message.isSuccess !== "boolean") - return "isSuccess: boolean expected"; - if (message.error != null && message.hasOwnProperty("error")) - if (!$util.isString(message.error)) - return "error: string expected"; - if (message.filesChanged != null && message.hasOwnProperty("filesChanged")) { - if (!Array.isArray(message.filesChanged)) - return "filesChanged: array expected"; - for (var i = 0; i < message.filesChanged.length; ++i) - if (!$util.isString(message.filesChanged[i])) - return "filesChanged: string[] expected"; - } - return null; - }; - - /** - * Creates an ExtractConceptResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ExtractConceptResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ExtractConceptResponse} ExtractConceptResponse - */ - ExtractConceptResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ExtractConceptResponse) - return object; - var message = new $root.gauge.messages.ExtractConceptResponse(); - if (object.isSuccess != null) - message.isSuccess = Boolean(object.isSuccess); - if (object.error != null) - message.error = String(object.error); - if (object.filesChanged) { - if (!Array.isArray(object.filesChanged)) - throw TypeError(".gauge.messages.ExtractConceptResponse.filesChanged: array expected"); - message.filesChanged = []; - for (var i = 0; i < object.filesChanged.length; ++i) - message.filesChanged[i] = String(object.filesChanged[i]); - } - return message; - }; - - /** - * Creates a plain object from an ExtractConceptResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ExtractConceptResponse - * @static - * @param {gauge.messages.ExtractConceptResponse} message ExtractConceptResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExtractConceptResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.filesChanged = []; - if (options.defaults) { - object.isSuccess = false; - object.error = ""; - } - if (message.isSuccess != null && message.hasOwnProperty("isSuccess")) - object.isSuccess = message.isSuccess; - if (message.error != null && message.hasOwnProperty("error")) - object.error = message.error; - if (message.filesChanged && message.filesChanged.length) { - object.filesChanged = []; - for (var j = 0; j < message.filesChanged.length; ++j) - object.filesChanged[j] = message.filesChanged[j]; - } - return object; - }; - - /** - * Converts this ExtractConceptResponse to JSON. - * @function toJSON - * @memberof gauge.messages.ExtractConceptResponse - * @instance - * @returns {Object.} JSON object - */ - ExtractConceptResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ExtractConceptResponse; - })(); - - messages.FormatSpecsRequest = (function() { - - /** - * Properties of a FormatSpecsRequest. - * @memberof gauge.messages - * @interface IFormatSpecsRequest - * @property {Array.|null} [specs] Specs to be formatted - */ - - /** - * Constructs a new FormatSpecsRequest. - * @memberof gauge.messages - * @classdesc Request to format spec files - * @implements IFormatSpecsRequest - * @constructor - * @param {gauge.messages.IFormatSpecsRequest=} [properties] Properties to set - */ - function FormatSpecsRequest(properties) { - this.specs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Specs to be formatted - * @member {Array.} specs - * @memberof gauge.messages.FormatSpecsRequest - * @instance - */ - FormatSpecsRequest.prototype.specs = $util.emptyArray; - - /** - * Creates a new FormatSpecsRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.FormatSpecsRequest - * @static - * @param {gauge.messages.IFormatSpecsRequest=} [properties] Properties to set - * @returns {gauge.messages.FormatSpecsRequest} FormatSpecsRequest instance - */ - FormatSpecsRequest.create = function create(properties) { - return new FormatSpecsRequest(properties); - }; - - /** - * Encodes the specified FormatSpecsRequest message. Does not implicitly {@link gauge.messages.FormatSpecsRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.FormatSpecsRequest - * @static - * @param {gauge.messages.IFormatSpecsRequest} message FormatSpecsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FormatSpecsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.specs != null && message.specs.length) - for (var i = 0; i < message.specs.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.specs[i]); - return writer; - }; - - /** - * Encodes the specified FormatSpecsRequest message, length delimited. Does not implicitly {@link gauge.messages.FormatSpecsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.FormatSpecsRequest - * @static - * @param {gauge.messages.IFormatSpecsRequest} message FormatSpecsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FormatSpecsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FormatSpecsRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.FormatSpecsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.FormatSpecsRequest} FormatSpecsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FormatSpecsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.FormatSpecsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.specs && message.specs.length)) - message.specs = []; - message.specs.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FormatSpecsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.FormatSpecsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.FormatSpecsRequest} FormatSpecsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FormatSpecsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FormatSpecsRequest message. - * @function verify - * @memberof gauge.messages.FormatSpecsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FormatSpecsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.specs != null && message.hasOwnProperty("specs")) { - if (!Array.isArray(message.specs)) - return "specs: array expected"; - for (var i = 0; i < message.specs.length; ++i) - if (!$util.isString(message.specs[i])) - return "specs: string[] expected"; - } - return null; - }; - - /** - * Creates a FormatSpecsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.FormatSpecsRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.FormatSpecsRequest} FormatSpecsRequest - */ - FormatSpecsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.FormatSpecsRequest) - return object; - var message = new $root.gauge.messages.FormatSpecsRequest(); - if (object.specs) { - if (!Array.isArray(object.specs)) - throw TypeError(".gauge.messages.FormatSpecsRequest.specs: array expected"); - message.specs = []; - for (var i = 0; i < object.specs.length; ++i) - message.specs[i] = String(object.specs[i]); - } - return message; - }; - - /** - * Creates a plain object from a FormatSpecsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.FormatSpecsRequest - * @static - * @param {gauge.messages.FormatSpecsRequest} message FormatSpecsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FormatSpecsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.specs = []; - if (message.specs && message.specs.length) { - object.specs = []; - for (var j = 0; j < message.specs.length; ++j) - object.specs[j] = message.specs[j]; - } - return object; - }; - - /** - * Converts this FormatSpecsRequest to JSON. - * @function toJSON - * @memberof gauge.messages.FormatSpecsRequest - * @instance - * @returns {Object.} JSON object - */ - FormatSpecsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return FormatSpecsRequest; - })(); - - messages.FormatSpecsResponse = (function() { - - /** - * Properties of a FormatSpecsResponse. - * @memberof gauge.messages - * @interface IFormatSpecsResponse - * @property {Array.|null} [errors] Errors occurred on formatting - * @property {Array.|null} [warnings] Warnings occurred on formatting - */ - - /** - * Constructs a new FormatSpecsResponse. - * @memberof gauge.messages - * @classdesc Response on formatting spec files - * @implements IFormatSpecsResponse - * @constructor - * @param {gauge.messages.IFormatSpecsResponse=} [properties] Properties to set - */ - function FormatSpecsResponse(properties) { - this.errors = []; - this.warnings = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Errors occurred on formatting - * @member {Array.} errors - * @memberof gauge.messages.FormatSpecsResponse - * @instance - */ - FormatSpecsResponse.prototype.errors = $util.emptyArray; - - /** - * Warnings occurred on formatting - * @member {Array.} warnings - * @memberof gauge.messages.FormatSpecsResponse - * @instance - */ - FormatSpecsResponse.prototype.warnings = $util.emptyArray; - - /** - * Creates a new FormatSpecsResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.FormatSpecsResponse - * @static - * @param {gauge.messages.IFormatSpecsResponse=} [properties] Properties to set - * @returns {gauge.messages.FormatSpecsResponse} FormatSpecsResponse instance - */ - FormatSpecsResponse.create = function create(properties) { - return new FormatSpecsResponse(properties); - }; - - /** - * Encodes the specified FormatSpecsResponse message. Does not implicitly {@link gauge.messages.FormatSpecsResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.FormatSpecsResponse - * @static - * @param {gauge.messages.IFormatSpecsResponse} message FormatSpecsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FormatSpecsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.errors != null && message.errors.length) - for (var i = 0; i < message.errors.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.errors[i]); - if (message.warnings != null && message.warnings.length) - for (var i = 0; i < message.warnings.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.warnings[i]); - return writer; - }; - - /** - * Encodes the specified FormatSpecsResponse message, length delimited. Does not implicitly {@link gauge.messages.FormatSpecsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.FormatSpecsResponse - * @static - * @param {gauge.messages.IFormatSpecsResponse} message FormatSpecsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FormatSpecsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FormatSpecsResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.FormatSpecsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.FormatSpecsResponse} FormatSpecsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FormatSpecsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.FormatSpecsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.errors && message.errors.length)) - message.errors = []; - message.errors.push(reader.string()); - break; - case 2: - if (!(message.warnings && message.warnings.length)) - message.warnings = []; - message.warnings.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FormatSpecsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.FormatSpecsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.FormatSpecsResponse} FormatSpecsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FormatSpecsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FormatSpecsResponse message. - * @function verify - * @memberof gauge.messages.FormatSpecsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FormatSpecsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.errors != null && message.hasOwnProperty("errors")) { - if (!Array.isArray(message.errors)) - return "errors: array expected"; - for (var i = 0; i < message.errors.length; ++i) - if (!$util.isString(message.errors[i])) - return "errors: string[] expected"; - } - if (message.warnings != null && message.hasOwnProperty("warnings")) { - if (!Array.isArray(message.warnings)) - return "warnings: array expected"; - for (var i = 0; i < message.warnings.length; ++i) - if (!$util.isString(message.warnings[i])) - return "warnings: string[] expected"; - } - return null; - }; - - /** - * Creates a FormatSpecsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.FormatSpecsResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.FormatSpecsResponse} FormatSpecsResponse - */ - FormatSpecsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.FormatSpecsResponse) - return object; - var message = new $root.gauge.messages.FormatSpecsResponse(); - if (object.errors) { - if (!Array.isArray(object.errors)) - throw TypeError(".gauge.messages.FormatSpecsResponse.errors: array expected"); - message.errors = []; - for (var i = 0; i < object.errors.length; ++i) - message.errors[i] = String(object.errors[i]); - } - if (object.warnings) { - if (!Array.isArray(object.warnings)) - throw TypeError(".gauge.messages.FormatSpecsResponse.warnings: array expected"); - message.warnings = []; - for (var i = 0; i < object.warnings.length; ++i) - message.warnings[i] = String(object.warnings[i]); - } - return message; - }; - - /** - * Creates a plain object from a FormatSpecsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.FormatSpecsResponse - * @static - * @param {gauge.messages.FormatSpecsResponse} message FormatSpecsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FormatSpecsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.errors = []; - object.warnings = []; - } - if (message.errors && message.errors.length) { - object.errors = []; - for (var j = 0; j < message.errors.length; ++j) - object.errors[j] = message.errors[j]; - } - if (message.warnings && message.warnings.length) { - object.warnings = []; - for (var j = 0; j < message.warnings.length; ++j) - object.warnings[j] = message.warnings[j]; - } - return object; - }; - - /** - * Converts this FormatSpecsResponse to JSON. - * @function toJSON - * @memberof gauge.messages.FormatSpecsResponse - * @instance - * @returns {Object.} JSON object - */ - FormatSpecsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return FormatSpecsResponse; - })(); - - messages.UnsupportedApiMessageResponse = (function() { - - /** - * Properties of an UnsupportedApiMessageResponse. - * @memberof gauge.messages - * @interface IUnsupportedApiMessageResponse - */ - - /** - * Constructs a new UnsupportedApiMessageResponse. - * @memberof gauge.messages - * @classdesc Response when a API message request is not supported. - * @implements IUnsupportedApiMessageResponse - * @constructor - * @param {gauge.messages.IUnsupportedApiMessageResponse=} [properties] Properties to set - */ - function UnsupportedApiMessageResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new UnsupportedApiMessageResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.UnsupportedApiMessageResponse - * @static - * @param {gauge.messages.IUnsupportedApiMessageResponse=} [properties] Properties to set - * @returns {gauge.messages.UnsupportedApiMessageResponse} UnsupportedApiMessageResponse instance - */ - UnsupportedApiMessageResponse.create = function create(properties) { - return new UnsupportedApiMessageResponse(properties); - }; - - /** - * Encodes the specified UnsupportedApiMessageResponse message. Does not implicitly {@link gauge.messages.UnsupportedApiMessageResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.UnsupportedApiMessageResponse - * @static - * @param {gauge.messages.IUnsupportedApiMessageResponse} message UnsupportedApiMessageResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UnsupportedApiMessageResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified UnsupportedApiMessageResponse message, length delimited. Does not implicitly {@link gauge.messages.UnsupportedApiMessageResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.UnsupportedApiMessageResponse - * @static - * @param {gauge.messages.IUnsupportedApiMessageResponse} message UnsupportedApiMessageResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UnsupportedApiMessageResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UnsupportedApiMessageResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.UnsupportedApiMessageResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.UnsupportedApiMessageResponse} UnsupportedApiMessageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UnsupportedApiMessageResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.UnsupportedApiMessageResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UnsupportedApiMessageResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.UnsupportedApiMessageResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.UnsupportedApiMessageResponse} UnsupportedApiMessageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UnsupportedApiMessageResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UnsupportedApiMessageResponse message. - * @function verify - * @memberof gauge.messages.UnsupportedApiMessageResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UnsupportedApiMessageResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates an UnsupportedApiMessageResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.UnsupportedApiMessageResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.UnsupportedApiMessageResponse} UnsupportedApiMessageResponse - */ - UnsupportedApiMessageResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.UnsupportedApiMessageResponse) - return object; - return new $root.gauge.messages.UnsupportedApiMessageResponse(); - }; - - /** - * Creates a plain object from an UnsupportedApiMessageResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.UnsupportedApiMessageResponse - * @static - * @param {gauge.messages.UnsupportedApiMessageResponse} message UnsupportedApiMessageResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UnsupportedApiMessageResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this UnsupportedApiMessageResponse to JSON. - * @function toJSON - * @memberof gauge.messages.UnsupportedApiMessageResponse - * @instance - * @returns {Object.} JSON object - */ - UnsupportedApiMessageResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UnsupportedApiMessageResponse; - })(); - - messages.APIMessage = (function() { - - /** - * Properties of a APIMessage. - * @memberof gauge.messages - * @interface IAPIMessage - * @property {gauge.messages.APIMessage.APIMessageType|null} [messageType] Type of API call being made - * @property {number|Long|null} [messageId] This is used to synchronize messages & responses - * @property {gauge.messages.IGetProjectRootRequest|null} [projectRootRequest] [GetProjectRootRequest](#gauge.messages.GetProjectRootRequest) - * @property {gauge.messages.IGetProjectRootResponse|null} [projectRootResponse] [GetProjectRootResponse](#gauge.messages.GetProjectRootResponse) - * @property {gauge.messages.IGetInstallationRootRequest|null} [installationRootRequest] [GetInstallationRootRequest](#gauge.messages.GetInstallationRootRequest) - * @property {gauge.messages.IGetInstallationRootResponse|null} [installationRootResponse] [GetInstallationRootResponse](#gauge.messages.GetInstallationRootResponse) - * @property {gauge.messages.IGetAllStepsRequest|null} [allStepsRequest] [GetAllStepsRequest](#gauge.messages.GetAllStepsRequest) - * @property {gauge.messages.IGetAllStepsResponse|null} [allStepsResponse] [GetAllStepsResponse](#gauge.messages.GetAllStepsResponse) - * @property {gauge.messages.ISpecsRequest|null} [specsRequest] [GetAllSpecsRequest](#gauge.messages.GetAllSpecsRequest) - * @property {gauge.messages.ISpecsResponse|null} [specsResponse] [GetAllSpecsResponse](#gauge.messages.GetAllSpecsResponse) - * @property {gauge.messages.IGetStepValueRequest|null} [stepValueRequest] [GetStepValueRequest](#gauge.messages.GetStepValueRequest) - * @property {gauge.messages.IGetStepValueResponse|null} [stepValueResponse] [GetStepValueResponse](#gauge.messages.GetStepValueResponse) - * @property {gauge.messages.IGetLanguagePluginLibPathRequest|null} [libPathRequest] [GetLanguagePluginLibPathRequest](#gauge.messages.GetLanguagePluginLibPathRequest) - * @property {gauge.messages.IGetLanguagePluginLibPathResponse|null} [libPathResponse] [GetLanguagePluginLibPathResponse](#gauge.messages.GetLanguagePluginLibPathResponse) - * @property {gauge.messages.IErrorResponse|null} [error] [ErrorResponse](#gauge.messages.ErrorResponse) - * @property {gauge.messages.IGetAllConceptsRequest|null} [allConceptsRequest] [GetAllConceptsRequest](#gauge.messages.GetAllConceptsRequest) - * @property {gauge.messages.IGetAllConceptsResponse|null} [allConceptsResponse] [GetAllConceptsResponse](#gauge.messages.GetAllConceptsResponse) - * @property {gauge.messages.IPerformRefactoringRequest|null} [performRefactoringRequest] [PerformRefactoringRequest](#gauge.messages.PerformRefactoringRequest) - * @property {gauge.messages.IPerformRefactoringResponse|null} [performRefactoringResponse] [PerformRefactoringResponse](#gauge.messages.PerformRefactoringResponse) - * @property {gauge.messages.IExtractConceptRequest|null} [extractConceptRequest] [ExtractConceptRequest](#gauge.messages.ExtractConceptRequest) - * @property {gauge.messages.IExtractConceptResponse|null} [extractConceptResponse] [ExtractConceptResponse](#gauge.messages.ExtractConceptResponse) - * @property {gauge.messages.IFormatSpecsRequest|null} [formatSpecsRequest] [FormatSpecsRequest] (#gauge.messages.FormatSpecsRequest) - * @property {gauge.messages.IFormatSpecsResponse|null} [formatSpecsResponse] [FormatSpecsResponse] (#gauge.messages.FormatSpecsResponse) - * @property {gauge.messages.IUnsupportedApiMessageResponse|null} [unsupportedApiMessageResponse] [UnsupportedApiMessageResponse] (#gauge.messages.UnsupportedApiMessageResponse) - */ - - /** - * Constructs a new APIMessage. - * @memberof gauge.messages - * @classdesc One of the Request/Response fields will have value, depending on the MessageType set. - * @implements IAPIMessage - * @constructor - * @param {gauge.messages.IAPIMessage=} [properties] Properties to set - */ - function APIMessage(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Type of API call being made - * @member {gauge.messages.APIMessage.APIMessageType} messageType - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.messageType = 0; - - /** - * This is used to synchronize messages & responses - * @member {number|Long} messageId - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.messageId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * [GetProjectRootRequest](#gauge.messages.GetProjectRootRequest) - * @member {gauge.messages.IGetProjectRootRequest|null|undefined} projectRootRequest - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.projectRootRequest = null; - - /** - * [GetProjectRootResponse](#gauge.messages.GetProjectRootResponse) - * @member {gauge.messages.IGetProjectRootResponse|null|undefined} projectRootResponse - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.projectRootResponse = null; - - /** - * [GetInstallationRootRequest](#gauge.messages.GetInstallationRootRequest) - * @member {gauge.messages.IGetInstallationRootRequest|null|undefined} installationRootRequest - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.installationRootRequest = null; - - /** - * [GetInstallationRootResponse](#gauge.messages.GetInstallationRootResponse) - * @member {gauge.messages.IGetInstallationRootResponse|null|undefined} installationRootResponse - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.installationRootResponse = null; - - /** - * [GetAllStepsRequest](#gauge.messages.GetAllStepsRequest) - * @member {gauge.messages.IGetAllStepsRequest|null|undefined} allStepsRequest - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.allStepsRequest = null; - - /** - * [GetAllStepsResponse](#gauge.messages.GetAllStepsResponse) - * @member {gauge.messages.IGetAllStepsResponse|null|undefined} allStepsResponse - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.allStepsResponse = null; - - /** - * [GetAllSpecsRequest](#gauge.messages.GetAllSpecsRequest) - * @member {gauge.messages.ISpecsRequest|null|undefined} specsRequest - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.specsRequest = null; - - /** - * [GetAllSpecsResponse](#gauge.messages.GetAllSpecsResponse) - * @member {gauge.messages.ISpecsResponse|null|undefined} specsResponse - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.specsResponse = null; - - /** - * [GetStepValueRequest](#gauge.messages.GetStepValueRequest) - * @member {gauge.messages.IGetStepValueRequest|null|undefined} stepValueRequest - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.stepValueRequest = null; - - /** - * [GetStepValueResponse](#gauge.messages.GetStepValueResponse) - * @member {gauge.messages.IGetStepValueResponse|null|undefined} stepValueResponse - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.stepValueResponse = null; - - /** - * [GetLanguagePluginLibPathRequest](#gauge.messages.GetLanguagePluginLibPathRequest) - * @member {gauge.messages.IGetLanguagePluginLibPathRequest|null|undefined} libPathRequest - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.libPathRequest = null; - - /** - * [GetLanguagePluginLibPathResponse](#gauge.messages.GetLanguagePluginLibPathResponse) - * @member {gauge.messages.IGetLanguagePluginLibPathResponse|null|undefined} libPathResponse - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.libPathResponse = null; - - /** - * [ErrorResponse](#gauge.messages.ErrorResponse) - * @member {gauge.messages.IErrorResponse|null|undefined} error - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.error = null; - - /** - * [GetAllConceptsRequest](#gauge.messages.GetAllConceptsRequest) - * @member {gauge.messages.IGetAllConceptsRequest|null|undefined} allConceptsRequest - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.allConceptsRequest = null; - - /** - * [GetAllConceptsResponse](#gauge.messages.GetAllConceptsResponse) - * @member {gauge.messages.IGetAllConceptsResponse|null|undefined} allConceptsResponse - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.allConceptsResponse = null; - - /** - * [PerformRefactoringRequest](#gauge.messages.PerformRefactoringRequest) - * @member {gauge.messages.IPerformRefactoringRequest|null|undefined} performRefactoringRequest - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.performRefactoringRequest = null; - - /** - * [PerformRefactoringResponse](#gauge.messages.PerformRefactoringResponse) - * @member {gauge.messages.IPerformRefactoringResponse|null|undefined} performRefactoringResponse - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.performRefactoringResponse = null; - - /** - * [ExtractConceptRequest](#gauge.messages.ExtractConceptRequest) - * @member {gauge.messages.IExtractConceptRequest|null|undefined} extractConceptRequest - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.extractConceptRequest = null; - - /** - * [ExtractConceptResponse](#gauge.messages.ExtractConceptResponse) - * @member {gauge.messages.IExtractConceptResponse|null|undefined} extractConceptResponse - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.extractConceptResponse = null; - - /** - * [FormatSpecsRequest] (#gauge.messages.FormatSpecsRequest) - * @member {gauge.messages.IFormatSpecsRequest|null|undefined} formatSpecsRequest - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.formatSpecsRequest = null; - - /** - * [FormatSpecsResponse] (#gauge.messages.FormatSpecsResponse) - * @member {gauge.messages.IFormatSpecsResponse|null|undefined} formatSpecsResponse - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.formatSpecsResponse = null; - - /** - * [UnsupportedApiMessageResponse] (#gauge.messages.UnsupportedApiMessageResponse) - * @member {gauge.messages.IUnsupportedApiMessageResponse|null|undefined} unsupportedApiMessageResponse - * @memberof gauge.messages.APIMessage - * @instance - */ - APIMessage.prototype.unsupportedApiMessageResponse = null; - - /** - * Creates a new APIMessage instance using the specified properties. - * @function create - * @memberof gauge.messages.APIMessage - * @static - * @param {gauge.messages.IAPIMessage=} [properties] Properties to set - * @returns {gauge.messages.APIMessage} APIMessage instance - */ - APIMessage.create = function create(properties) { - return new APIMessage(properties); - }; - - /** - * Encodes the specified APIMessage message. Does not implicitly {@link gauge.messages.APIMessage.verify|verify} messages. - * @function encode - * @memberof gauge.messages.APIMessage - * @static - * @param {gauge.messages.IAPIMessage} message APIMessage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - APIMessage.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageType != null && message.hasOwnProperty("messageType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); - if (message.messageId != null && message.hasOwnProperty("messageId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.messageId); - if (message.projectRootRequest != null && message.hasOwnProperty("projectRootRequest")) - $root.gauge.messages.GetProjectRootRequest.encode(message.projectRootRequest, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.projectRootResponse != null && message.hasOwnProperty("projectRootResponse")) - $root.gauge.messages.GetProjectRootResponse.encode(message.projectRootResponse, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.installationRootRequest != null && message.hasOwnProperty("installationRootRequest")) - $root.gauge.messages.GetInstallationRootRequest.encode(message.installationRootRequest, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.installationRootResponse != null && message.hasOwnProperty("installationRootResponse")) - $root.gauge.messages.GetInstallationRootResponse.encode(message.installationRootResponse, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.allStepsRequest != null && message.hasOwnProperty("allStepsRequest")) - $root.gauge.messages.GetAllStepsRequest.encode(message.allStepsRequest, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.allStepsResponse != null && message.hasOwnProperty("allStepsResponse")) - $root.gauge.messages.GetAllStepsResponse.encode(message.allStepsResponse, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.specsRequest != null && message.hasOwnProperty("specsRequest")) - $root.gauge.messages.SpecsRequest.encode(message.specsRequest, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.specsResponse != null && message.hasOwnProperty("specsResponse")) - $root.gauge.messages.SpecsResponse.encode(message.specsResponse, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.stepValueRequest != null && message.hasOwnProperty("stepValueRequest")) - $root.gauge.messages.GetStepValueRequest.encode(message.stepValueRequest, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.stepValueResponse != null && message.hasOwnProperty("stepValueResponse")) - $root.gauge.messages.GetStepValueResponse.encode(message.stepValueResponse, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.libPathRequest != null && message.hasOwnProperty("libPathRequest")) - $root.gauge.messages.GetLanguagePluginLibPathRequest.encode(message.libPathRequest, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.libPathResponse != null && message.hasOwnProperty("libPathResponse")) - $root.gauge.messages.GetLanguagePluginLibPathResponse.encode(message.libPathResponse, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) - $root.gauge.messages.ErrorResponse.encode(message.error, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.allConceptsRequest != null && message.hasOwnProperty("allConceptsRequest")) - $root.gauge.messages.GetAllConceptsRequest.encode(message.allConceptsRequest, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.allConceptsResponse != null && message.hasOwnProperty("allConceptsResponse")) - $root.gauge.messages.GetAllConceptsResponse.encode(message.allConceptsResponse, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.performRefactoringRequest != null && message.hasOwnProperty("performRefactoringRequest")) - $root.gauge.messages.PerformRefactoringRequest.encode(message.performRefactoringRequest, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.performRefactoringResponse != null && message.hasOwnProperty("performRefactoringResponse")) - $root.gauge.messages.PerformRefactoringResponse.encode(message.performRefactoringResponse, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.extractConceptRequest != null && message.hasOwnProperty("extractConceptRequest")) - $root.gauge.messages.ExtractConceptRequest.encode(message.extractConceptRequest, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.extractConceptResponse != null && message.hasOwnProperty("extractConceptResponse")) - $root.gauge.messages.ExtractConceptResponse.encode(message.extractConceptResponse, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.formatSpecsRequest != null && message.hasOwnProperty("formatSpecsRequest")) - $root.gauge.messages.FormatSpecsRequest.encode(message.formatSpecsRequest, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); - if (message.formatSpecsResponse != null && message.hasOwnProperty("formatSpecsResponse")) - $root.gauge.messages.FormatSpecsResponse.encode(message.formatSpecsResponse, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.unsupportedApiMessageResponse != null && message.hasOwnProperty("unsupportedApiMessageResponse")) - $root.gauge.messages.UnsupportedApiMessageResponse.encode(message.unsupportedApiMessageResponse, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified APIMessage message, length delimited. Does not implicitly {@link gauge.messages.APIMessage.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.APIMessage - * @static - * @param {gauge.messages.IAPIMessage} message APIMessage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - APIMessage.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a APIMessage message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.APIMessage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.APIMessage} APIMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - APIMessage.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.APIMessage(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messageType = reader.int32(); - break; - case 2: - message.messageId = reader.int64(); - break; - case 3: - message.projectRootRequest = $root.gauge.messages.GetProjectRootRequest.decode(reader, reader.uint32()); - break; - case 4: - message.projectRootResponse = $root.gauge.messages.GetProjectRootResponse.decode(reader, reader.uint32()); - break; - case 5: - message.installationRootRequest = $root.gauge.messages.GetInstallationRootRequest.decode(reader, reader.uint32()); - break; - case 6: - message.installationRootResponse = $root.gauge.messages.GetInstallationRootResponse.decode(reader, reader.uint32()); - break; - case 7: - message.allStepsRequest = $root.gauge.messages.GetAllStepsRequest.decode(reader, reader.uint32()); - break; - case 8: - message.allStepsResponse = $root.gauge.messages.GetAllStepsResponse.decode(reader, reader.uint32()); - break; - case 9: - message.specsRequest = $root.gauge.messages.SpecsRequest.decode(reader, reader.uint32()); - break; - case 10: - message.specsResponse = $root.gauge.messages.SpecsResponse.decode(reader, reader.uint32()); - break; - case 11: - message.stepValueRequest = $root.gauge.messages.GetStepValueRequest.decode(reader, reader.uint32()); - break; - case 12: - message.stepValueResponse = $root.gauge.messages.GetStepValueResponse.decode(reader, reader.uint32()); - break; - case 13: - message.libPathRequest = $root.gauge.messages.GetLanguagePluginLibPathRequest.decode(reader, reader.uint32()); - break; - case 14: - message.libPathResponse = $root.gauge.messages.GetLanguagePluginLibPathResponse.decode(reader, reader.uint32()); - break; - case 15: - message.error = $root.gauge.messages.ErrorResponse.decode(reader, reader.uint32()); - break; - case 16: - message.allConceptsRequest = $root.gauge.messages.GetAllConceptsRequest.decode(reader, reader.uint32()); - break; - case 17: - message.allConceptsResponse = $root.gauge.messages.GetAllConceptsResponse.decode(reader, reader.uint32()); - break; - case 18: - message.performRefactoringRequest = $root.gauge.messages.PerformRefactoringRequest.decode(reader, reader.uint32()); - break; - case 19: - message.performRefactoringResponse = $root.gauge.messages.PerformRefactoringResponse.decode(reader, reader.uint32()); - break; - case 20: - message.extractConceptRequest = $root.gauge.messages.ExtractConceptRequest.decode(reader, reader.uint32()); - break; - case 21: - message.extractConceptResponse = $root.gauge.messages.ExtractConceptResponse.decode(reader, reader.uint32()); - break; - case 22: - message.formatSpecsRequest = $root.gauge.messages.FormatSpecsRequest.decode(reader, reader.uint32()); - break; - case 23: - message.formatSpecsResponse = $root.gauge.messages.FormatSpecsResponse.decode(reader, reader.uint32()); - break; - case 24: - message.unsupportedApiMessageResponse = $root.gauge.messages.UnsupportedApiMessageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a APIMessage message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.APIMessage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.APIMessage} APIMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - APIMessage.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a APIMessage message. - * @function verify - * @memberof gauge.messages.APIMessage - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - APIMessage.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageType != null && message.hasOwnProperty("messageType")) - switch (message.messageType) { - default: - return "messageType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - break; - } - if (message.messageId != null && message.hasOwnProperty("messageId")) - if (!$util.isInteger(message.messageId) && !(message.messageId && $util.isInteger(message.messageId.low) && $util.isInteger(message.messageId.high))) - return "messageId: integer|Long expected"; - if (message.projectRootRequest != null && message.hasOwnProperty("projectRootRequest")) { - var error = $root.gauge.messages.GetProjectRootRequest.verify(message.projectRootRequest); - if (error) - return "projectRootRequest." + error; - } - if (message.projectRootResponse != null && message.hasOwnProperty("projectRootResponse")) { - var error = $root.gauge.messages.GetProjectRootResponse.verify(message.projectRootResponse); - if (error) - return "projectRootResponse." + error; - } - if (message.installationRootRequest != null && message.hasOwnProperty("installationRootRequest")) { - var error = $root.gauge.messages.GetInstallationRootRequest.verify(message.installationRootRequest); - if (error) - return "installationRootRequest." + error; - } - if (message.installationRootResponse != null && message.hasOwnProperty("installationRootResponse")) { - var error = $root.gauge.messages.GetInstallationRootResponse.verify(message.installationRootResponse); - if (error) - return "installationRootResponse." + error; - } - if (message.allStepsRequest != null && message.hasOwnProperty("allStepsRequest")) { - var error = $root.gauge.messages.GetAllStepsRequest.verify(message.allStepsRequest); - if (error) - return "allStepsRequest." + error; - } - if (message.allStepsResponse != null && message.hasOwnProperty("allStepsResponse")) { - var error = $root.gauge.messages.GetAllStepsResponse.verify(message.allStepsResponse); - if (error) - return "allStepsResponse." + error; - } - if (message.specsRequest != null && message.hasOwnProperty("specsRequest")) { - var error = $root.gauge.messages.SpecsRequest.verify(message.specsRequest); - if (error) - return "specsRequest." + error; - } - if (message.specsResponse != null && message.hasOwnProperty("specsResponse")) { - var error = $root.gauge.messages.SpecsResponse.verify(message.specsResponse); - if (error) - return "specsResponse." + error; - } - if (message.stepValueRequest != null && message.hasOwnProperty("stepValueRequest")) { - var error = $root.gauge.messages.GetStepValueRequest.verify(message.stepValueRequest); - if (error) - return "stepValueRequest." + error; - } - if (message.stepValueResponse != null && message.hasOwnProperty("stepValueResponse")) { - var error = $root.gauge.messages.GetStepValueResponse.verify(message.stepValueResponse); - if (error) - return "stepValueResponse." + error; - } - if (message.libPathRequest != null && message.hasOwnProperty("libPathRequest")) { - var error = $root.gauge.messages.GetLanguagePluginLibPathRequest.verify(message.libPathRequest); - if (error) - return "libPathRequest." + error; - } - if (message.libPathResponse != null && message.hasOwnProperty("libPathResponse")) { - var error = $root.gauge.messages.GetLanguagePluginLibPathResponse.verify(message.libPathResponse); - if (error) - return "libPathResponse." + error; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.gauge.messages.ErrorResponse.verify(message.error); - if (error) - return "error." + error; - } - if (message.allConceptsRequest != null && message.hasOwnProperty("allConceptsRequest")) { - var error = $root.gauge.messages.GetAllConceptsRequest.verify(message.allConceptsRequest); - if (error) - return "allConceptsRequest." + error; - } - if (message.allConceptsResponse != null && message.hasOwnProperty("allConceptsResponse")) { - var error = $root.gauge.messages.GetAllConceptsResponse.verify(message.allConceptsResponse); - if (error) - return "allConceptsResponse." + error; - } - if (message.performRefactoringRequest != null && message.hasOwnProperty("performRefactoringRequest")) { - var error = $root.gauge.messages.PerformRefactoringRequest.verify(message.performRefactoringRequest); - if (error) - return "performRefactoringRequest." + error; - } - if (message.performRefactoringResponse != null && message.hasOwnProperty("performRefactoringResponse")) { - var error = $root.gauge.messages.PerformRefactoringResponse.verify(message.performRefactoringResponse); - if (error) - return "performRefactoringResponse." + error; - } - if (message.extractConceptRequest != null && message.hasOwnProperty("extractConceptRequest")) { - var error = $root.gauge.messages.ExtractConceptRequest.verify(message.extractConceptRequest); - if (error) - return "extractConceptRequest." + error; - } - if (message.extractConceptResponse != null && message.hasOwnProperty("extractConceptResponse")) { - var error = $root.gauge.messages.ExtractConceptResponse.verify(message.extractConceptResponse); - if (error) - return "extractConceptResponse." + error; - } - if (message.formatSpecsRequest != null && message.hasOwnProperty("formatSpecsRequest")) { - var error = $root.gauge.messages.FormatSpecsRequest.verify(message.formatSpecsRequest); - if (error) - return "formatSpecsRequest." + error; - } - if (message.formatSpecsResponse != null && message.hasOwnProperty("formatSpecsResponse")) { - var error = $root.gauge.messages.FormatSpecsResponse.verify(message.formatSpecsResponse); - if (error) - return "formatSpecsResponse." + error; - } - if (message.unsupportedApiMessageResponse != null && message.hasOwnProperty("unsupportedApiMessageResponse")) { - var error = $root.gauge.messages.UnsupportedApiMessageResponse.verify(message.unsupportedApiMessageResponse); - if (error) - return "unsupportedApiMessageResponse." + error; - } - return null; - }; - - /** - * Creates a APIMessage message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.APIMessage - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.APIMessage} APIMessage - */ - APIMessage.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.APIMessage) - return object; - var message = new $root.gauge.messages.APIMessage(); - switch (object.messageType) { - case "GetProjectRootRequest": - case 0: - message.messageType = 0; - break; - case "GetProjectRootResponse": - case 1: - message.messageType = 1; - break; - case "GetInstallationRootRequest": - case 2: - message.messageType = 2; - break; - case "GetInstallationRootResponse": - case 3: - message.messageType = 3; - break; - case "GetAllStepsRequest": - case 4: - message.messageType = 4; - break; - case "GetAllStepResponse": - case 5: - message.messageType = 5; - break; - case "SpecsRequest": - case 6: - message.messageType = 6; - break; - case "SpecsResponse": - case 7: - message.messageType = 7; - break; - case "GetStepValueRequest": - case 8: - message.messageType = 8; - break; - case "GetStepValueResponse": - case 9: - message.messageType = 9; - break; - case "GetLanguagePluginLibPathRequest": - case 10: - message.messageType = 10; - break; - case "GetLanguagePluginLibPathResponse": - case 11: - message.messageType = 11; - break; - case "ErrorResponse": - case 12: - message.messageType = 12; - break; - case "GetAllConceptsRequest": - case 13: - message.messageType = 13; - break; - case "GetAllConceptsResponse": - case 14: - message.messageType = 14; - break; - case "PerformRefactoringRequest": - case 15: - message.messageType = 15; - break; - case "PerformRefactoringResponse": - case 16: - message.messageType = 16; - break; - case "ExtractConceptRequest": - case 17: - message.messageType = 17; - break; - case "ExtractConceptResponse": - case 18: - message.messageType = 18; - break; - case "FormatSpecsRequest": - case 19: - message.messageType = 19; - break; - case "FormatSpecsResponse": - case 20: - message.messageType = 20; - break; - case "UnsupportedApiMessageResponse": - case 21: - message.messageType = 21; - break; - } - if (object.messageId != null) - if ($util.Long) - (message.messageId = $util.Long.fromValue(object.messageId)).unsigned = false; - else if (typeof object.messageId === "string") - message.messageId = parseInt(object.messageId, 10); - else if (typeof object.messageId === "number") - message.messageId = object.messageId; - else if (typeof object.messageId === "object") - message.messageId = new $util.LongBits(object.messageId.low >>> 0, object.messageId.high >>> 0).toNumber(); - if (object.projectRootRequest != null) { - if (typeof object.projectRootRequest !== "object") - throw TypeError(".gauge.messages.APIMessage.projectRootRequest: object expected"); - message.projectRootRequest = $root.gauge.messages.GetProjectRootRequest.fromObject(object.projectRootRequest); - } - if (object.projectRootResponse != null) { - if (typeof object.projectRootResponse !== "object") - throw TypeError(".gauge.messages.APIMessage.projectRootResponse: object expected"); - message.projectRootResponse = $root.gauge.messages.GetProjectRootResponse.fromObject(object.projectRootResponse); - } - if (object.installationRootRequest != null) { - if (typeof object.installationRootRequest !== "object") - throw TypeError(".gauge.messages.APIMessage.installationRootRequest: object expected"); - message.installationRootRequest = $root.gauge.messages.GetInstallationRootRequest.fromObject(object.installationRootRequest); - } - if (object.installationRootResponse != null) { - if (typeof object.installationRootResponse !== "object") - throw TypeError(".gauge.messages.APIMessage.installationRootResponse: object expected"); - message.installationRootResponse = $root.gauge.messages.GetInstallationRootResponse.fromObject(object.installationRootResponse); - } - if (object.allStepsRequest != null) { - if (typeof object.allStepsRequest !== "object") - throw TypeError(".gauge.messages.APIMessage.allStepsRequest: object expected"); - message.allStepsRequest = $root.gauge.messages.GetAllStepsRequest.fromObject(object.allStepsRequest); - } - if (object.allStepsResponse != null) { - if (typeof object.allStepsResponse !== "object") - throw TypeError(".gauge.messages.APIMessage.allStepsResponse: object expected"); - message.allStepsResponse = $root.gauge.messages.GetAllStepsResponse.fromObject(object.allStepsResponse); - } - if (object.specsRequest != null) { - if (typeof object.specsRequest !== "object") - throw TypeError(".gauge.messages.APIMessage.specsRequest: object expected"); - message.specsRequest = $root.gauge.messages.SpecsRequest.fromObject(object.specsRequest); - } - if (object.specsResponse != null) { - if (typeof object.specsResponse !== "object") - throw TypeError(".gauge.messages.APIMessage.specsResponse: object expected"); - message.specsResponse = $root.gauge.messages.SpecsResponse.fromObject(object.specsResponse); - } - if (object.stepValueRequest != null) { - if (typeof object.stepValueRequest !== "object") - throw TypeError(".gauge.messages.APIMessage.stepValueRequest: object expected"); - message.stepValueRequest = $root.gauge.messages.GetStepValueRequest.fromObject(object.stepValueRequest); - } - if (object.stepValueResponse != null) { - if (typeof object.stepValueResponse !== "object") - throw TypeError(".gauge.messages.APIMessage.stepValueResponse: object expected"); - message.stepValueResponse = $root.gauge.messages.GetStepValueResponse.fromObject(object.stepValueResponse); - } - if (object.libPathRequest != null) { - if (typeof object.libPathRequest !== "object") - throw TypeError(".gauge.messages.APIMessage.libPathRequest: object expected"); - message.libPathRequest = $root.gauge.messages.GetLanguagePluginLibPathRequest.fromObject(object.libPathRequest); - } - if (object.libPathResponse != null) { - if (typeof object.libPathResponse !== "object") - throw TypeError(".gauge.messages.APIMessage.libPathResponse: object expected"); - message.libPathResponse = $root.gauge.messages.GetLanguagePluginLibPathResponse.fromObject(object.libPathResponse); - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".gauge.messages.APIMessage.error: object expected"); - message.error = $root.gauge.messages.ErrorResponse.fromObject(object.error); - } - if (object.allConceptsRequest != null) { - if (typeof object.allConceptsRequest !== "object") - throw TypeError(".gauge.messages.APIMessage.allConceptsRequest: object expected"); - message.allConceptsRequest = $root.gauge.messages.GetAllConceptsRequest.fromObject(object.allConceptsRequest); - } - if (object.allConceptsResponse != null) { - if (typeof object.allConceptsResponse !== "object") - throw TypeError(".gauge.messages.APIMessage.allConceptsResponse: object expected"); - message.allConceptsResponse = $root.gauge.messages.GetAllConceptsResponse.fromObject(object.allConceptsResponse); - } - if (object.performRefactoringRequest != null) { - if (typeof object.performRefactoringRequest !== "object") - throw TypeError(".gauge.messages.APIMessage.performRefactoringRequest: object expected"); - message.performRefactoringRequest = $root.gauge.messages.PerformRefactoringRequest.fromObject(object.performRefactoringRequest); - } - if (object.performRefactoringResponse != null) { - if (typeof object.performRefactoringResponse !== "object") - throw TypeError(".gauge.messages.APIMessage.performRefactoringResponse: object expected"); - message.performRefactoringResponse = $root.gauge.messages.PerformRefactoringResponse.fromObject(object.performRefactoringResponse); - } - if (object.extractConceptRequest != null) { - if (typeof object.extractConceptRequest !== "object") - throw TypeError(".gauge.messages.APIMessage.extractConceptRequest: object expected"); - message.extractConceptRequest = $root.gauge.messages.ExtractConceptRequest.fromObject(object.extractConceptRequest); - } - if (object.extractConceptResponse != null) { - if (typeof object.extractConceptResponse !== "object") - throw TypeError(".gauge.messages.APIMessage.extractConceptResponse: object expected"); - message.extractConceptResponse = $root.gauge.messages.ExtractConceptResponse.fromObject(object.extractConceptResponse); - } - if (object.formatSpecsRequest != null) { - if (typeof object.formatSpecsRequest !== "object") - throw TypeError(".gauge.messages.APIMessage.formatSpecsRequest: object expected"); - message.formatSpecsRequest = $root.gauge.messages.FormatSpecsRequest.fromObject(object.formatSpecsRequest); - } - if (object.formatSpecsResponse != null) { - if (typeof object.formatSpecsResponse !== "object") - throw TypeError(".gauge.messages.APIMessage.formatSpecsResponse: object expected"); - message.formatSpecsResponse = $root.gauge.messages.FormatSpecsResponse.fromObject(object.formatSpecsResponse); - } - if (object.unsupportedApiMessageResponse != null) { - if (typeof object.unsupportedApiMessageResponse !== "object") - throw TypeError(".gauge.messages.APIMessage.unsupportedApiMessageResponse: object expected"); - message.unsupportedApiMessageResponse = $root.gauge.messages.UnsupportedApiMessageResponse.fromObject(object.unsupportedApiMessageResponse); - } - return message; - }; - - /** - * Creates a plain object from a APIMessage message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.APIMessage - * @static - * @param {gauge.messages.APIMessage} message APIMessage - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - APIMessage.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.messageType = options.enums === String ? "GetProjectRootRequest" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.messageId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.messageId = options.longs === String ? "0" : 0; - object.projectRootRequest = null; - object.projectRootResponse = null; - object.installationRootRequest = null; - object.installationRootResponse = null; - object.allStepsRequest = null; - object.allStepsResponse = null; - object.specsRequest = null; - object.specsResponse = null; - object.stepValueRequest = null; - object.stepValueResponse = null; - object.libPathRequest = null; - object.libPathResponse = null; - object.error = null; - object.allConceptsRequest = null; - object.allConceptsResponse = null; - object.performRefactoringRequest = null; - object.performRefactoringResponse = null; - object.extractConceptRequest = null; - object.extractConceptResponse = null; - object.formatSpecsRequest = null; - object.formatSpecsResponse = null; - object.unsupportedApiMessageResponse = null; - } - if (message.messageType != null && message.hasOwnProperty("messageType")) - object.messageType = options.enums === String ? $root.gauge.messages.APIMessage.APIMessageType[message.messageType] : message.messageType; - if (message.messageId != null && message.hasOwnProperty("messageId")) - if (typeof message.messageId === "number") - object.messageId = options.longs === String ? String(message.messageId) : message.messageId; - else - object.messageId = options.longs === String ? $util.Long.prototype.toString.call(message.messageId) : options.longs === Number ? new $util.LongBits(message.messageId.low >>> 0, message.messageId.high >>> 0).toNumber() : message.messageId; - if (message.projectRootRequest != null && message.hasOwnProperty("projectRootRequest")) - object.projectRootRequest = $root.gauge.messages.GetProjectRootRequest.toObject(message.projectRootRequest, options); - if (message.projectRootResponse != null && message.hasOwnProperty("projectRootResponse")) - object.projectRootResponse = $root.gauge.messages.GetProjectRootResponse.toObject(message.projectRootResponse, options); - if (message.installationRootRequest != null && message.hasOwnProperty("installationRootRequest")) - object.installationRootRequest = $root.gauge.messages.GetInstallationRootRequest.toObject(message.installationRootRequest, options); - if (message.installationRootResponse != null && message.hasOwnProperty("installationRootResponse")) - object.installationRootResponse = $root.gauge.messages.GetInstallationRootResponse.toObject(message.installationRootResponse, options); - if (message.allStepsRequest != null && message.hasOwnProperty("allStepsRequest")) - object.allStepsRequest = $root.gauge.messages.GetAllStepsRequest.toObject(message.allStepsRequest, options); - if (message.allStepsResponse != null && message.hasOwnProperty("allStepsResponse")) - object.allStepsResponse = $root.gauge.messages.GetAllStepsResponse.toObject(message.allStepsResponse, options); - if (message.specsRequest != null && message.hasOwnProperty("specsRequest")) - object.specsRequest = $root.gauge.messages.SpecsRequest.toObject(message.specsRequest, options); - if (message.specsResponse != null && message.hasOwnProperty("specsResponse")) - object.specsResponse = $root.gauge.messages.SpecsResponse.toObject(message.specsResponse, options); - if (message.stepValueRequest != null && message.hasOwnProperty("stepValueRequest")) - object.stepValueRequest = $root.gauge.messages.GetStepValueRequest.toObject(message.stepValueRequest, options); - if (message.stepValueResponse != null && message.hasOwnProperty("stepValueResponse")) - object.stepValueResponse = $root.gauge.messages.GetStepValueResponse.toObject(message.stepValueResponse, options); - if (message.libPathRequest != null && message.hasOwnProperty("libPathRequest")) - object.libPathRequest = $root.gauge.messages.GetLanguagePluginLibPathRequest.toObject(message.libPathRequest, options); - if (message.libPathResponse != null && message.hasOwnProperty("libPathResponse")) - object.libPathResponse = $root.gauge.messages.GetLanguagePluginLibPathResponse.toObject(message.libPathResponse, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.gauge.messages.ErrorResponse.toObject(message.error, options); - if (message.allConceptsRequest != null && message.hasOwnProperty("allConceptsRequest")) - object.allConceptsRequest = $root.gauge.messages.GetAllConceptsRequest.toObject(message.allConceptsRequest, options); - if (message.allConceptsResponse != null && message.hasOwnProperty("allConceptsResponse")) - object.allConceptsResponse = $root.gauge.messages.GetAllConceptsResponse.toObject(message.allConceptsResponse, options); - if (message.performRefactoringRequest != null && message.hasOwnProperty("performRefactoringRequest")) - object.performRefactoringRequest = $root.gauge.messages.PerformRefactoringRequest.toObject(message.performRefactoringRequest, options); - if (message.performRefactoringResponse != null && message.hasOwnProperty("performRefactoringResponse")) - object.performRefactoringResponse = $root.gauge.messages.PerformRefactoringResponse.toObject(message.performRefactoringResponse, options); - if (message.extractConceptRequest != null && message.hasOwnProperty("extractConceptRequest")) - object.extractConceptRequest = $root.gauge.messages.ExtractConceptRequest.toObject(message.extractConceptRequest, options); - if (message.extractConceptResponse != null && message.hasOwnProperty("extractConceptResponse")) - object.extractConceptResponse = $root.gauge.messages.ExtractConceptResponse.toObject(message.extractConceptResponse, options); - if (message.formatSpecsRequest != null && message.hasOwnProperty("formatSpecsRequest")) - object.formatSpecsRequest = $root.gauge.messages.FormatSpecsRequest.toObject(message.formatSpecsRequest, options); - if (message.formatSpecsResponse != null && message.hasOwnProperty("formatSpecsResponse")) - object.formatSpecsResponse = $root.gauge.messages.FormatSpecsResponse.toObject(message.formatSpecsResponse, options); - if (message.unsupportedApiMessageResponse != null && message.hasOwnProperty("unsupportedApiMessageResponse")) - object.unsupportedApiMessageResponse = $root.gauge.messages.UnsupportedApiMessageResponse.toObject(message.unsupportedApiMessageResponse, options); - return object; - }; - - /** - * Converts this APIMessage to JSON. - * @function toJSON - * @memberof gauge.messages.APIMessage - * @instance - * @returns {Object.} JSON object - */ - APIMessage.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * APIMessageType enum. - * @name gauge.messages.APIMessage.APIMessageType - * @enum {string} - * @property {number} GetProjectRootRequest=0 GetProjectRootRequest value - * @property {number} GetProjectRootResponse=1 GetProjectRootResponse value - * @property {number} GetInstallationRootRequest=2 GetInstallationRootRequest value - * @property {number} GetInstallationRootResponse=3 GetInstallationRootResponse value - * @property {number} GetAllStepsRequest=4 GetAllStepsRequest value - * @property {number} GetAllStepResponse=5 GetAllStepResponse value - * @property {number} SpecsRequest=6 SpecsRequest value - * @property {number} SpecsResponse=7 SpecsResponse value - * @property {number} GetStepValueRequest=8 GetStepValueRequest value - * @property {number} GetStepValueResponse=9 GetStepValueResponse value - * @property {number} GetLanguagePluginLibPathRequest=10 GetLanguagePluginLibPathRequest value - * @property {number} GetLanguagePluginLibPathResponse=11 GetLanguagePluginLibPathResponse value - * @property {number} ErrorResponse=12 ErrorResponse value - * @property {number} GetAllConceptsRequest=13 GetAllConceptsRequest value - * @property {number} GetAllConceptsResponse=14 GetAllConceptsResponse value - * @property {number} PerformRefactoringRequest=15 PerformRefactoringRequest value - * @property {number} PerformRefactoringResponse=16 PerformRefactoringResponse value - * @property {number} ExtractConceptRequest=17 ExtractConceptRequest value - * @property {number} ExtractConceptResponse=18 ExtractConceptResponse value - * @property {number} FormatSpecsRequest=19 FormatSpecsRequest value - * @property {number} FormatSpecsResponse=20 FormatSpecsResponse value - * @property {number} UnsupportedApiMessageResponse=21 UnsupportedApiMessageResponse value - */ - APIMessage.APIMessageType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GetProjectRootRequest"] = 0; - values[valuesById[1] = "GetProjectRootResponse"] = 1; - values[valuesById[2] = "GetInstallationRootRequest"] = 2; - values[valuesById[3] = "GetInstallationRootResponse"] = 3; - values[valuesById[4] = "GetAllStepsRequest"] = 4; - values[valuesById[5] = "GetAllStepResponse"] = 5; - values[valuesById[6] = "SpecsRequest"] = 6; - values[valuesById[7] = "SpecsResponse"] = 7; - values[valuesById[8] = "GetStepValueRequest"] = 8; - values[valuesById[9] = "GetStepValueResponse"] = 9; - values[valuesById[10] = "GetLanguagePluginLibPathRequest"] = 10; - values[valuesById[11] = "GetLanguagePluginLibPathResponse"] = 11; - values[valuesById[12] = "ErrorResponse"] = 12; - values[valuesById[13] = "GetAllConceptsRequest"] = 13; - values[valuesById[14] = "GetAllConceptsResponse"] = 14; - values[valuesById[15] = "PerformRefactoringRequest"] = 15; - values[valuesById[16] = "PerformRefactoringResponse"] = 16; - values[valuesById[17] = "ExtractConceptRequest"] = 17; - values[valuesById[18] = "ExtractConceptResponse"] = 18; - values[valuesById[19] = "FormatSpecsRequest"] = 19; - values[valuesById[20] = "FormatSpecsResponse"] = 20; - values[valuesById[21] = "UnsupportedApiMessageResponse"] = 21; - return values; - })(); - - return APIMessage; - })(); - - messages.ProtoSpec = (function() { - - /** - * Properties of a ProtoSpec. - * @memberof gauge.messages - * @interface IProtoSpec - * @property {string|null} [specHeading] Heading describing the Specification - * @property {Array.|null} [items] A collection of items that come under this step - * @property {boolean|null} [isTableDriven] Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter. - * @property {Array.|null} [preHookFailures] Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error. - * @property {Array.|null} [postHookFailures] Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error. - * @property {string|null} [fileName] Contains the filename for that holds this specification. - * @property {Array.|null} [tags] Contains a list of tags that are defined at the specification level. Scenario tags are not present here. - * @property {Array.|null} [preHookMessages] Additional information at pre hook exec time to be available on reports - * @property {Array.|null} [postHookMessages] Additional information at post hook exec time to be available on reports - * @property {Array.|null} [preHookMessage] [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports - * @property {Array.|null} [postHookMessage] [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports - * @property {Array.|null} [preHookScreenshots] [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - * @property {Array.|null} [postHookScreenshots] [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - * @property {number|Long|null} [itemCount] used when items are sent as individual chunk - * @property {Array.|null} [preHookScreenshotFiles] Screenshots captured on pre hook exec time to be available on reports - * @property {Array.|null} [postHookScreenshotFiles] Screenshots captured on post hook exec time to be available on reports - */ - - /** - * Constructs a new ProtoSpec. - * @memberof gauge.messages - * @classdesc A specification can contain Scenarios or Steps, besides Comments - * @implements IProtoSpec - * @constructor - * @param {gauge.messages.IProtoSpec=} [properties] Properties to set - */ - function ProtoSpec(properties) { - this.items = []; - this.preHookFailures = []; - this.postHookFailures = []; - this.tags = []; - this.preHookMessages = []; - this.postHookMessages = []; - this.preHookMessage = []; - this.postHookMessage = []; - this.preHookScreenshots = []; - this.postHookScreenshots = []; - this.preHookScreenshotFiles = []; - this.postHookScreenshotFiles = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Heading describing the Specification - * @member {string} specHeading - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.specHeading = ""; - - /** - * A collection of items that come under this step - * @member {Array.} items - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.items = $util.emptyArray; - - /** - * Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter. - * @member {boolean} isTableDriven - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.isTableDriven = false; - - /** - * Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error. - * @member {Array.} preHookFailures - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.preHookFailures = $util.emptyArray; - - /** - * Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error. - * @member {Array.} postHookFailures - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.postHookFailures = $util.emptyArray; - - /** - * Contains the filename for that holds this specification. - * @member {string} fileName - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.fileName = ""; - - /** - * Contains a list of tags that are defined at the specification level. Scenario tags are not present here. - * @member {Array.} tags - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.tags = $util.emptyArray; - - /** - * Additional information at pre hook exec time to be available on reports - * @member {Array.} preHookMessages - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.preHookMessages = $util.emptyArray; - - /** - * Additional information at post hook exec time to be available on reports - * @member {Array.} postHookMessages - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.postHookMessages = $util.emptyArray; - - /** - * [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports - * @member {Array.} preHookMessage - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.preHookMessage = $util.emptyArray; - - /** - * [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports - * @member {Array.} postHookMessage - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.postHookMessage = $util.emptyArray; - - /** - * [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - * @member {Array.} preHookScreenshots - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.preHookScreenshots = $util.emptyArray; - - /** - * [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - * @member {Array.} postHookScreenshots - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.postHookScreenshots = $util.emptyArray; - - /** - * used when items are sent as individual chunk - * @member {number|Long} itemCount - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.itemCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Screenshots captured on pre hook exec time to be available on reports - * @member {Array.} preHookScreenshotFiles - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.preHookScreenshotFiles = $util.emptyArray; - - /** - * Screenshots captured on post hook exec time to be available on reports - * @member {Array.} postHookScreenshotFiles - * @memberof gauge.messages.ProtoSpec - * @instance - */ - ProtoSpec.prototype.postHookScreenshotFiles = $util.emptyArray; - - /** - * Creates a new ProtoSpec instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoSpec - * @static - * @param {gauge.messages.IProtoSpec=} [properties] Properties to set - * @returns {gauge.messages.ProtoSpec} ProtoSpec instance - */ - ProtoSpec.create = function create(properties) { - return new ProtoSpec(properties); - }; - - /** - * Encodes the specified ProtoSpec message. Does not implicitly {@link gauge.messages.ProtoSpec.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoSpec - * @static - * @param {gauge.messages.IProtoSpec} message ProtoSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.specHeading != null && message.hasOwnProperty("specHeading")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.specHeading); - if (message.items != null && message.items.length) - for (var i = 0; i < message.items.length; ++i) - $root.gauge.messages.ProtoItem.encode(message.items[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.isTableDriven != null && message.hasOwnProperty("isTableDriven")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isTableDriven); - if (message.preHookFailures != null && message.preHookFailures.length) - for (var i = 0; i < message.preHookFailures.length; ++i) - $root.gauge.messages.ProtoHookFailure.encode(message.preHookFailures[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.postHookFailures != null && message.postHookFailures.length) - for (var i = 0; i < message.postHookFailures.length; ++i) - $root.gauge.messages.ProtoHookFailure.encode(message.postHookFailures[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.fileName != null && message.hasOwnProperty("fileName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.fileName); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.tags[i]); - if (message.preHookMessages != null && message.preHookMessages.length) - for (var i = 0; i < message.preHookMessages.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.preHookMessages[i]); - if (message.postHookMessages != null && message.postHookMessages.length) - for (var i = 0; i < message.postHookMessages.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.postHookMessages[i]); - if (message.preHookMessage != null && message.preHookMessage.length) - for (var i = 0; i < message.preHookMessage.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.preHookMessage[i]); - if (message.postHookMessage != null && message.postHookMessage.length) - for (var i = 0; i < message.postHookMessage.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.postHookMessage[i]); - if (message.preHookScreenshots != null && message.preHookScreenshots.length) - for (var i = 0; i < message.preHookScreenshots.length; ++i) - writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.preHookScreenshots[i]); - if (message.postHookScreenshots != null && message.postHookScreenshots.length) - for (var i = 0; i < message.postHookScreenshots.length; ++i) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.postHookScreenshots[i]); - if (message.itemCount != null && message.hasOwnProperty("itemCount")) - writer.uint32(/* id 14, wireType 0 =*/112).int64(message.itemCount); - if (message.preHookScreenshotFiles != null && message.preHookScreenshotFiles.length) - for (var i = 0; i < message.preHookScreenshotFiles.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.preHookScreenshotFiles[i]); - if (message.postHookScreenshotFiles != null && message.postHookScreenshotFiles.length) - for (var i = 0; i < message.postHookScreenshotFiles.length; ++i) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.postHookScreenshotFiles[i]); - return writer; - }; - - /** - * Encodes the specified ProtoSpec message, length delimited. Does not implicitly {@link gauge.messages.ProtoSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoSpec - * @static - * @param {gauge.messages.IProtoSpec} message ProtoSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoSpec message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoSpec} ProtoSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.specHeading = reader.string(); - break; - case 2: - if (!(message.items && message.items.length)) - message.items = []; - message.items.push($root.gauge.messages.ProtoItem.decode(reader, reader.uint32())); - break; - case 3: - message.isTableDriven = reader.bool(); - break; - case 4: - if (!(message.preHookFailures && message.preHookFailures.length)) - message.preHookFailures = []; - message.preHookFailures.push($root.gauge.messages.ProtoHookFailure.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.postHookFailures && message.postHookFailures.length)) - message.postHookFailures = []; - message.postHookFailures.push($root.gauge.messages.ProtoHookFailure.decode(reader, reader.uint32())); - break; - case 6: - message.fileName = reader.string(); - break; - case 7: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - case 8: - if (!(message.preHookMessages && message.preHookMessages.length)) - message.preHookMessages = []; - message.preHookMessages.push(reader.string()); - break; - case 9: - if (!(message.postHookMessages && message.postHookMessages.length)) - message.postHookMessages = []; - message.postHookMessages.push(reader.string()); - break; - case 10: - if (!(message.preHookMessage && message.preHookMessage.length)) - message.preHookMessage = []; - message.preHookMessage.push(reader.string()); - break; - case 11: - if (!(message.postHookMessage && message.postHookMessage.length)) - message.postHookMessage = []; - message.postHookMessage.push(reader.string()); - break; - case 12: - if (!(message.preHookScreenshots && message.preHookScreenshots.length)) - message.preHookScreenshots = []; - message.preHookScreenshots.push(reader.bytes()); - break; - case 13: - if (!(message.postHookScreenshots && message.postHookScreenshots.length)) - message.postHookScreenshots = []; - message.postHookScreenshots.push(reader.bytes()); - break; - case 14: - message.itemCount = reader.int64(); - break; - case 15: - if (!(message.preHookScreenshotFiles && message.preHookScreenshotFiles.length)) - message.preHookScreenshotFiles = []; - message.preHookScreenshotFiles.push(reader.string()); - break; - case 16: - if (!(message.postHookScreenshotFiles && message.postHookScreenshotFiles.length)) - message.postHookScreenshotFiles = []; - message.postHookScreenshotFiles.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoSpec} ProtoSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoSpec message. - * @function verify - * @memberof gauge.messages.ProtoSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.specHeading != null && message.hasOwnProperty("specHeading")) - if (!$util.isString(message.specHeading)) - return "specHeading: string expected"; - if (message.items != null && message.hasOwnProperty("items")) { - if (!Array.isArray(message.items)) - return "items: array expected"; - for (var i = 0; i < message.items.length; ++i) { - var error = $root.gauge.messages.ProtoItem.verify(message.items[i]); - if (error) - return "items." + error; - } - } - if (message.isTableDriven != null && message.hasOwnProperty("isTableDriven")) - if (typeof message.isTableDriven !== "boolean") - return "isTableDriven: boolean expected"; - if (message.preHookFailures != null && message.hasOwnProperty("preHookFailures")) { - if (!Array.isArray(message.preHookFailures)) - return "preHookFailures: array expected"; - for (var i = 0; i < message.preHookFailures.length; ++i) { - var error = $root.gauge.messages.ProtoHookFailure.verify(message.preHookFailures[i]); - if (error) - return "preHookFailures." + error; - } - } - if (message.postHookFailures != null && message.hasOwnProperty("postHookFailures")) { - if (!Array.isArray(message.postHookFailures)) - return "postHookFailures: array expected"; - for (var i = 0; i < message.postHookFailures.length; ++i) { - var error = $root.gauge.messages.ProtoHookFailure.verify(message.postHookFailures[i]); - if (error) - return "postHookFailures." + error; - } - } - if (message.fileName != null && message.hasOwnProperty("fileName")) - if (!$util.isString(message.fileName)) - return "fileName: string expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - if (message.preHookMessages != null && message.hasOwnProperty("preHookMessages")) { - if (!Array.isArray(message.preHookMessages)) - return "preHookMessages: array expected"; - for (var i = 0; i < message.preHookMessages.length; ++i) - if (!$util.isString(message.preHookMessages[i])) - return "preHookMessages: string[] expected"; - } - if (message.postHookMessages != null && message.hasOwnProperty("postHookMessages")) { - if (!Array.isArray(message.postHookMessages)) - return "postHookMessages: array expected"; - for (var i = 0; i < message.postHookMessages.length; ++i) - if (!$util.isString(message.postHookMessages[i])) - return "postHookMessages: string[] expected"; - } - if (message.preHookMessage != null && message.hasOwnProperty("preHookMessage")) { - if (!Array.isArray(message.preHookMessage)) - return "preHookMessage: array expected"; - for (var i = 0; i < message.preHookMessage.length; ++i) - if (!$util.isString(message.preHookMessage[i])) - return "preHookMessage: string[] expected"; - } - if (message.postHookMessage != null && message.hasOwnProperty("postHookMessage")) { - if (!Array.isArray(message.postHookMessage)) - return "postHookMessage: array expected"; - for (var i = 0; i < message.postHookMessage.length; ++i) - if (!$util.isString(message.postHookMessage[i])) - return "postHookMessage: string[] expected"; - } - if (message.preHookScreenshots != null && message.hasOwnProperty("preHookScreenshots")) { - if (!Array.isArray(message.preHookScreenshots)) - return "preHookScreenshots: array expected"; - for (var i = 0; i < message.preHookScreenshots.length; ++i) - if (!(message.preHookScreenshots[i] && typeof message.preHookScreenshots[i].length === "number" || $util.isString(message.preHookScreenshots[i]))) - return "preHookScreenshots: buffer[] expected"; - } - if (message.postHookScreenshots != null && message.hasOwnProperty("postHookScreenshots")) { - if (!Array.isArray(message.postHookScreenshots)) - return "postHookScreenshots: array expected"; - for (var i = 0; i < message.postHookScreenshots.length; ++i) - if (!(message.postHookScreenshots[i] && typeof message.postHookScreenshots[i].length === "number" || $util.isString(message.postHookScreenshots[i]))) - return "postHookScreenshots: buffer[] expected"; - } - if (message.itemCount != null && message.hasOwnProperty("itemCount")) - if (!$util.isInteger(message.itemCount) && !(message.itemCount && $util.isInteger(message.itemCount.low) && $util.isInteger(message.itemCount.high))) - return "itemCount: integer|Long expected"; - if (message.preHookScreenshotFiles != null && message.hasOwnProperty("preHookScreenshotFiles")) { - if (!Array.isArray(message.preHookScreenshotFiles)) - return "preHookScreenshotFiles: array expected"; - for (var i = 0; i < message.preHookScreenshotFiles.length; ++i) - if (!$util.isString(message.preHookScreenshotFiles[i])) - return "preHookScreenshotFiles: string[] expected"; - } - if (message.postHookScreenshotFiles != null && message.hasOwnProperty("postHookScreenshotFiles")) { - if (!Array.isArray(message.postHookScreenshotFiles)) - return "postHookScreenshotFiles: array expected"; - for (var i = 0; i < message.postHookScreenshotFiles.length; ++i) - if (!$util.isString(message.postHookScreenshotFiles[i])) - return "postHookScreenshotFiles: string[] expected"; - } - return null; - }; - - /** - * Creates a ProtoSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoSpec - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoSpec} ProtoSpec - */ - ProtoSpec.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoSpec) - return object; - var message = new $root.gauge.messages.ProtoSpec(); - if (object.specHeading != null) - message.specHeading = String(object.specHeading); - if (object.items) { - if (!Array.isArray(object.items)) - throw TypeError(".gauge.messages.ProtoSpec.items: array expected"); - message.items = []; - for (var i = 0; i < object.items.length; ++i) { - if (typeof object.items[i] !== "object") - throw TypeError(".gauge.messages.ProtoSpec.items: object expected"); - message.items[i] = $root.gauge.messages.ProtoItem.fromObject(object.items[i]); - } - } - if (object.isTableDriven != null) - message.isTableDriven = Boolean(object.isTableDriven); - if (object.preHookFailures) { - if (!Array.isArray(object.preHookFailures)) - throw TypeError(".gauge.messages.ProtoSpec.preHookFailures: array expected"); - message.preHookFailures = []; - for (var i = 0; i < object.preHookFailures.length; ++i) { - if (typeof object.preHookFailures[i] !== "object") - throw TypeError(".gauge.messages.ProtoSpec.preHookFailures: object expected"); - message.preHookFailures[i] = $root.gauge.messages.ProtoHookFailure.fromObject(object.preHookFailures[i]); - } - } - if (object.postHookFailures) { - if (!Array.isArray(object.postHookFailures)) - throw TypeError(".gauge.messages.ProtoSpec.postHookFailures: array expected"); - message.postHookFailures = []; - for (var i = 0; i < object.postHookFailures.length; ++i) { - if (typeof object.postHookFailures[i] !== "object") - throw TypeError(".gauge.messages.ProtoSpec.postHookFailures: object expected"); - message.postHookFailures[i] = $root.gauge.messages.ProtoHookFailure.fromObject(object.postHookFailures[i]); - } - } - if (object.fileName != null) - message.fileName = String(object.fileName); - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".gauge.messages.ProtoSpec.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) - message.tags[i] = String(object.tags[i]); - } - if (object.preHookMessages) { - if (!Array.isArray(object.preHookMessages)) - throw TypeError(".gauge.messages.ProtoSpec.preHookMessages: array expected"); - message.preHookMessages = []; - for (var i = 0; i < object.preHookMessages.length; ++i) - message.preHookMessages[i] = String(object.preHookMessages[i]); - } - if (object.postHookMessages) { - if (!Array.isArray(object.postHookMessages)) - throw TypeError(".gauge.messages.ProtoSpec.postHookMessages: array expected"); - message.postHookMessages = []; - for (var i = 0; i < object.postHookMessages.length; ++i) - message.postHookMessages[i] = String(object.postHookMessages[i]); - } - if (object.preHookMessage) { - if (!Array.isArray(object.preHookMessage)) - throw TypeError(".gauge.messages.ProtoSpec.preHookMessage: array expected"); - message.preHookMessage = []; - for (var i = 0; i < object.preHookMessage.length; ++i) - message.preHookMessage[i] = String(object.preHookMessage[i]); - } - if (object.postHookMessage) { - if (!Array.isArray(object.postHookMessage)) - throw TypeError(".gauge.messages.ProtoSpec.postHookMessage: array expected"); - message.postHookMessage = []; - for (var i = 0; i < object.postHookMessage.length; ++i) - message.postHookMessage[i] = String(object.postHookMessage[i]); - } - if (object.preHookScreenshots) { - if (!Array.isArray(object.preHookScreenshots)) - throw TypeError(".gauge.messages.ProtoSpec.preHookScreenshots: array expected"); - message.preHookScreenshots = []; - for (var i = 0; i < object.preHookScreenshots.length; ++i) - if (typeof object.preHookScreenshots[i] === "string") - $util.base64.decode(object.preHookScreenshots[i], message.preHookScreenshots[i] = $util.newBuffer($util.base64.length(object.preHookScreenshots[i])), 0); - else if (object.preHookScreenshots[i].length) - message.preHookScreenshots[i] = object.preHookScreenshots[i]; - } - if (object.postHookScreenshots) { - if (!Array.isArray(object.postHookScreenshots)) - throw TypeError(".gauge.messages.ProtoSpec.postHookScreenshots: array expected"); - message.postHookScreenshots = []; - for (var i = 0; i < object.postHookScreenshots.length; ++i) - if (typeof object.postHookScreenshots[i] === "string") - $util.base64.decode(object.postHookScreenshots[i], message.postHookScreenshots[i] = $util.newBuffer($util.base64.length(object.postHookScreenshots[i])), 0); - else if (object.postHookScreenshots[i].length) - message.postHookScreenshots[i] = object.postHookScreenshots[i]; - } - if (object.itemCount != null) - if ($util.Long) - (message.itemCount = $util.Long.fromValue(object.itemCount)).unsigned = false; - else if (typeof object.itemCount === "string") - message.itemCount = parseInt(object.itemCount, 10); - else if (typeof object.itemCount === "number") - message.itemCount = object.itemCount; - else if (typeof object.itemCount === "object") - message.itemCount = new $util.LongBits(object.itemCount.low >>> 0, object.itemCount.high >>> 0).toNumber(); - if (object.preHookScreenshotFiles) { - if (!Array.isArray(object.preHookScreenshotFiles)) - throw TypeError(".gauge.messages.ProtoSpec.preHookScreenshotFiles: array expected"); - message.preHookScreenshotFiles = []; - for (var i = 0; i < object.preHookScreenshotFiles.length; ++i) - message.preHookScreenshotFiles[i] = String(object.preHookScreenshotFiles[i]); - } - if (object.postHookScreenshotFiles) { - if (!Array.isArray(object.postHookScreenshotFiles)) - throw TypeError(".gauge.messages.ProtoSpec.postHookScreenshotFiles: array expected"); - message.postHookScreenshotFiles = []; - for (var i = 0; i < object.postHookScreenshotFiles.length; ++i) - message.postHookScreenshotFiles[i] = String(object.postHookScreenshotFiles[i]); - } - return message; - }; - - /** - * Creates a plain object from a ProtoSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoSpec - * @static - * @param {gauge.messages.ProtoSpec} message ProtoSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.items = []; - object.preHookFailures = []; - object.postHookFailures = []; - object.tags = []; - object.preHookMessages = []; - object.postHookMessages = []; - object.preHookMessage = []; - object.postHookMessage = []; - object.preHookScreenshots = []; - object.postHookScreenshots = []; - object.preHookScreenshotFiles = []; - object.postHookScreenshotFiles = []; - } - if (options.defaults) { - object.specHeading = ""; - object.isTableDriven = false; - object.fileName = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.itemCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.itemCount = options.longs === String ? "0" : 0; - } - if (message.specHeading != null && message.hasOwnProperty("specHeading")) - object.specHeading = message.specHeading; - if (message.items && message.items.length) { - object.items = []; - for (var j = 0; j < message.items.length; ++j) - object.items[j] = $root.gauge.messages.ProtoItem.toObject(message.items[j], options); - } - if (message.isTableDriven != null && message.hasOwnProperty("isTableDriven")) - object.isTableDriven = message.isTableDriven; - if (message.preHookFailures && message.preHookFailures.length) { - object.preHookFailures = []; - for (var j = 0; j < message.preHookFailures.length; ++j) - object.preHookFailures[j] = $root.gauge.messages.ProtoHookFailure.toObject(message.preHookFailures[j], options); - } - if (message.postHookFailures && message.postHookFailures.length) { - object.postHookFailures = []; - for (var j = 0; j < message.postHookFailures.length; ++j) - object.postHookFailures[j] = $root.gauge.messages.ProtoHookFailure.toObject(message.postHookFailures[j], options); - } - if (message.fileName != null && message.hasOwnProperty("fileName")) - object.fileName = message.fileName; - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = message.tags[j]; - } - if (message.preHookMessages && message.preHookMessages.length) { - object.preHookMessages = []; - for (var j = 0; j < message.preHookMessages.length; ++j) - object.preHookMessages[j] = message.preHookMessages[j]; - } - if (message.postHookMessages && message.postHookMessages.length) { - object.postHookMessages = []; - for (var j = 0; j < message.postHookMessages.length; ++j) - object.postHookMessages[j] = message.postHookMessages[j]; - } - if (message.preHookMessage && message.preHookMessage.length) { - object.preHookMessage = []; - for (var j = 0; j < message.preHookMessage.length; ++j) - object.preHookMessage[j] = message.preHookMessage[j]; - } - if (message.postHookMessage && message.postHookMessage.length) { - object.postHookMessage = []; - for (var j = 0; j < message.postHookMessage.length; ++j) - object.postHookMessage[j] = message.postHookMessage[j]; - } - if (message.preHookScreenshots && message.preHookScreenshots.length) { - object.preHookScreenshots = []; - for (var j = 0; j < message.preHookScreenshots.length; ++j) - object.preHookScreenshots[j] = options.bytes === String ? $util.base64.encode(message.preHookScreenshots[j], 0, message.preHookScreenshots[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.preHookScreenshots[j]) : message.preHookScreenshots[j]; - } - if (message.postHookScreenshots && message.postHookScreenshots.length) { - object.postHookScreenshots = []; - for (var j = 0; j < message.postHookScreenshots.length; ++j) - object.postHookScreenshots[j] = options.bytes === String ? $util.base64.encode(message.postHookScreenshots[j], 0, message.postHookScreenshots[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.postHookScreenshots[j]) : message.postHookScreenshots[j]; - } - if (message.itemCount != null && message.hasOwnProperty("itemCount")) - if (typeof message.itemCount === "number") - object.itemCount = options.longs === String ? String(message.itemCount) : message.itemCount; - else - object.itemCount = options.longs === String ? $util.Long.prototype.toString.call(message.itemCount) : options.longs === Number ? new $util.LongBits(message.itemCount.low >>> 0, message.itemCount.high >>> 0).toNumber() : message.itemCount; - if (message.preHookScreenshotFiles && message.preHookScreenshotFiles.length) { - object.preHookScreenshotFiles = []; - for (var j = 0; j < message.preHookScreenshotFiles.length; ++j) - object.preHookScreenshotFiles[j] = message.preHookScreenshotFiles[j]; - } - if (message.postHookScreenshotFiles && message.postHookScreenshotFiles.length) { - object.postHookScreenshotFiles = []; - for (var j = 0; j < message.postHookScreenshotFiles.length; ++j) - object.postHookScreenshotFiles[j] = message.postHookScreenshotFiles[j]; - } - return object; - }; - - /** - * Converts this ProtoSpec to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoSpec - * @instance - * @returns {Object.} JSON object - */ - ProtoSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoSpec; - })(); - - messages.ProtoItem = (function() { - - /** - * Properties of a ProtoItem. - * @memberof gauge.messages - * @interface IProtoItem - * @property {gauge.messages.ProtoItem.ItemType|null} [itemType] Itemtype of the current ProtoItem - * @property {gauge.messages.IProtoStep|null} [step] Holds the Step definition. Valid only if ItemType = Step - * @property {gauge.messages.IProtoConcept|null} [concept] Holds the Concept definition. Valid only if ItemType = Concept - * @property {gauge.messages.IProtoScenario|null} [scenario] Holds the Scenario definition. Valid only if ItemType = Scenario - * @property {gauge.messages.IProtoTableDrivenScenario|null} [tableDrivenScenario] Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario - * @property {gauge.messages.IProtoComment|null} [comment] Holds the Comment definition. Valid only if ItemType = Comment - * @property {gauge.messages.IProtoTable|null} [table] Holds the Table definition. Valid only if ItemType = Table - * @property {gauge.messages.IProtoTags|null} [tags] Holds the Tags definition. Valid only if ItemType = Tags - * @property {string|null} [fileName] Holds the Filename that the item belongs to - */ - - /** - * Constructs a new ProtoItem. - * @memberof gauge.messages - * @classdesc Container for all valid Items under a Specification. - * @implements IProtoItem - * @constructor - * @param {gauge.messages.IProtoItem=} [properties] Properties to set - */ - function ProtoItem(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Itemtype of the current ProtoItem - * @member {gauge.messages.ProtoItem.ItemType} itemType - * @memberof gauge.messages.ProtoItem - * @instance - */ - ProtoItem.prototype.itemType = 0; - - /** - * Holds the Step definition. Valid only if ItemType = Step - * @member {gauge.messages.IProtoStep|null|undefined} step - * @memberof gauge.messages.ProtoItem - * @instance - */ - ProtoItem.prototype.step = null; - - /** - * Holds the Concept definition. Valid only if ItemType = Concept - * @member {gauge.messages.IProtoConcept|null|undefined} concept - * @memberof gauge.messages.ProtoItem - * @instance - */ - ProtoItem.prototype.concept = null; - - /** - * Holds the Scenario definition. Valid only if ItemType = Scenario - * @member {gauge.messages.IProtoScenario|null|undefined} scenario - * @memberof gauge.messages.ProtoItem - * @instance - */ - ProtoItem.prototype.scenario = null; - - /** - * Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario - * @member {gauge.messages.IProtoTableDrivenScenario|null|undefined} tableDrivenScenario - * @memberof gauge.messages.ProtoItem - * @instance - */ - ProtoItem.prototype.tableDrivenScenario = null; - - /** - * Holds the Comment definition. Valid only if ItemType = Comment - * @member {gauge.messages.IProtoComment|null|undefined} comment - * @memberof gauge.messages.ProtoItem - * @instance - */ - ProtoItem.prototype.comment = null; - - /** - * Holds the Table definition. Valid only if ItemType = Table - * @member {gauge.messages.IProtoTable|null|undefined} table - * @memberof gauge.messages.ProtoItem - * @instance - */ - ProtoItem.prototype.table = null; - - /** - * Holds the Tags definition. Valid only if ItemType = Tags - * @member {gauge.messages.IProtoTags|null|undefined} tags - * @memberof gauge.messages.ProtoItem - * @instance - */ - ProtoItem.prototype.tags = null; - - /** - * Holds the Filename that the item belongs to - * @member {string} fileName - * @memberof gauge.messages.ProtoItem - * @instance - */ - ProtoItem.prototype.fileName = ""; - - /** - * Creates a new ProtoItem instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoItem - * @static - * @param {gauge.messages.IProtoItem=} [properties] Properties to set - * @returns {gauge.messages.ProtoItem} ProtoItem instance - */ - ProtoItem.create = function create(properties) { - return new ProtoItem(properties); - }; - - /** - * Encodes the specified ProtoItem message. Does not implicitly {@link gauge.messages.ProtoItem.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoItem - * @static - * @param {gauge.messages.IProtoItem} message ProtoItem message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.itemType != null && message.hasOwnProperty("itemType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.itemType); - if (message.step != null && message.hasOwnProperty("step")) - $root.gauge.messages.ProtoStep.encode(message.step, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.concept != null && message.hasOwnProperty("concept")) - $root.gauge.messages.ProtoConcept.encode(message.concept, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.scenario != null && message.hasOwnProperty("scenario")) - $root.gauge.messages.ProtoScenario.encode(message.scenario, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.tableDrivenScenario != null && message.hasOwnProperty("tableDrivenScenario")) - $root.gauge.messages.ProtoTableDrivenScenario.encode(message.tableDrivenScenario, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.comment != null && message.hasOwnProperty("comment")) - $root.gauge.messages.ProtoComment.encode(message.comment, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.table != null && message.hasOwnProperty("table")) - $root.gauge.messages.ProtoTable.encode(message.table, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.tags != null && message.hasOwnProperty("tags")) - $root.gauge.messages.ProtoTags.encode(message.tags, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.fileName != null && message.hasOwnProperty("fileName")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.fileName); - return writer; - }; - - /** - * Encodes the specified ProtoItem message, length delimited. Does not implicitly {@link gauge.messages.ProtoItem.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoItem - * @static - * @param {gauge.messages.IProtoItem} message ProtoItem message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoItem.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoItem message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoItem - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoItem} ProtoItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoItem(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.itemType = reader.int32(); - break; - case 2: - message.step = $root.gauge.messages.ProtoStep.decode(reader, reader.uint32()); - break; - case 3: - message.concept = $root.gauge.messages.ProtoConcept.decode(reader, reader.uint32()); - break; - case 4: - message.scenario = $root.gauge.messages.ProtoScenario.decode(reader, reader.uint32()); - break; - case 5: - message.tableDrivenScenario = $root.gauge.messages.ProtoTableDrivenScenario.decode(reader, reader.uint32()); - break; - case 6: - message.comment = $root.gauge.messages.ProtoComment.decode(reader, reader.uint32()); - break; - case 7: - message.table = $root.gauge.messages.ProtoTable.decode(reader, reader.uint32()); - break; - case 8: - message.tags = $root.gauge.messages.ProtoTags.decode(reader, reader.uint32()); - break; - case 9: - message.fileName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoItem message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoItem - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoItem} ProtoItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoItem.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoItem message. - * @function verify - * @memberof gauge.messages.ProtoItem - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.itemType != null && message.hasOwnProperty("itemType")) - switch (message.itemType) { - default: - return "itemType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.step != null && message.hasOwnProperty("step")) { - var error = $root.gauge.messages.ProtoStep.verify(message.step); - if (error) - return "step." + error; - } - if (message.concept != null && message.hasOwnProperty("concept")) { - var error = $root.gauge.messages.ProtoConcept.verify(message.concept); - if (error) - return "concept." + error; - } - if (message.scenario != null && message.hasOwnProperty("scenario")) { - var error = $root.gauge.messages.ProtoScenario.verify(message.scenario); - if (error) - return "scenario." + error; - } - if (message.tableDrivenScenario != null && message.hasOwnProperty("tableDrivenScenario")) { - var error = $root.gauge.messages.ProtoTableDrivenScenario.verify(message.tableDrivenScenario); - if (error) - return "tableDrivenScenario." + error; - } - if (message.comment != null && message.hasOwnProperty("comment")) { - var error = $root.gauge.messages.ProtoComment.verify(message.comment); - if (error) - return "comment." + error; - } - if (message.table != null && message.hasOwnProperty("table")) { - var error = $root.gauge.messages.ProtoTable.verify(message.table); - if (error) - return "table." + error; - } - if (message.tags != null && message.hasOwnProperty("tags")) { - var error = $root.gauge.messages.ProtoTags.verify(message.tags); - if (error) - return "tags." + error; - } - if (message.fileName != null && message.hasOwnProperty("fileName")) - if (!$util.isString(message.fileName)) - return "fileName: string expected"; - return null; - }; - - /** - * Creates a ProtoItem message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoItem - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoItem} ProtoItem - */ - ProtoItem.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoItem) - return object; - var message = new $root.gauge.messages.ProtoItem(); - switch (object.itemType) { - case "Step": - case 0: - message.itemType = 0; - break; - case "Comment": - case 1: - message.itemType = 1; - break; - case "Concept": - case 2: - message.itemType = 2; - break; - case "Scenario": - case 3: - message.itemType = 3; - break; - case "TableDrivenScenario": - case 4: - message.itemType = 4; - break; - case "Table": - case 5: - message.itemType = 5; - break; - case "Tags": - case 6: - message.itemType = 6; - break; - } - if (object.step != null) { - if (typeof object.step !== "object") - throw TypeError(".gauge.messages.ProtoItem.step: object expected"); - message.step = $root.gauge.messages.ProtoStep.fromObject(object.step); - } - if (object.concept != null) { - if (typeof object.concept !== "object") - throw TypeError(".gauge.messages.ProtoItem.concept: object expected"); - message.concept = $root.gauge.messages.ProtoConcept.fromObject(object.concept); - } - if (object.scenario != null) { - if (typeof object.scenario !== "object") - throw TypeError(".gauge.messages.ProtoItem.scenario: object expected"); - message.scenario = $root.gauge.messages.ProtoScenario.fromObject(object.scenario); - } - if (object.tableDrivenScenario != null) { - if (typeof object.tableDrivenScenario !== "object") - throw TypeError(".gauge.messages.ProtoItem.tableDrivenScenario: object expected"); - message.tableDrivenScenario = $root.gauge.messages.ProtoTableDrivenScenario.fromObject(object.tableDrivenScenario); - } - if (object.comment != null) { - if (typeof object.comment !== "object") - throw TypeError(".gauge.messages.ProtoItem.comment: object expected"); - message.comment = $root.gauge.messages.ProtoComment.fromObject(object.comment); - } - if (object.table != null) { - if (typeof object.table !== "object") - throw TypeError(".gauge.messages.ProtoItem.table: object expected"); - message.table = $root.gauge.messages.ProtoTable.fromObject(object.table); - } - if (object.tags != null) { - if (typeof object.tags !== "object") - throw TypeError(".gauge.messages.ProtoItem.tags: object expected"); - message.tags = $root.gauge.messages.ProtoTags.fromObject(object.tags); - } - if (object.fileName != null) - message.fileName = String(object.fileName); - return message; - }; - - /** - * Creates a plain object from a ProtoItem message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoItem - * @static - * @param {gauge.messages.ProtoItem} message ProtoItem - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoItem.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.itemType = options.enums === String ? "Step" : 0; - object.step = null; - object.concept = null; - object.scenario = null; - object.tableDrivenScenario = null; - object.comment = null; - object.table = null; - object.tags = null; - object.fileName = ""; - } - if (message.itemType != null && message.hasOwnProperty("itemType")) - object.itemType = options.enums === String ? $root.gauge.messages.ProtoItem.ItemType[message.itemType] : message.itemType; - if (message.step != null && message.hasOwnProperty("step")) - object.step = $root.gauge.messages.ProtoStep.toObject(message.step, options); - if (message.concept != null && message.hasOwnProperty("concept")) - object.concept = $root.gauge.messages.ProtoConcept.toObject(message.concept, options); - if (message.scenario != null && message.hasOwnProperty("scenario")) - object.scenario = $root.gauge.messages.ProtoScenario.toObject(message.scenario, options); - if (message.tableDrivenScenario != null && message.hasOwnProperty("tableDrivenScenario")) - object.tableDrivenScenario = $root.gauge.messages.ProtoTableDrivenScenario.toObject(message.tableDrivenScenario, options); - if (message.comment != null && message.hasOwnProperty("comment")) - object.comment = $root.gauge.messages.ProtoComment.toObject(message.comment, options); - if (message.table != null && message.hasOwnProperty("table")) - object.table = $root.gauge.messages.ProtoTable.toObject(message.table, options); - if (message.tags != null && message.hasOwnProperty("tags")) - object.tags = $root.gauge.messages.ProtoTags.toObject(message.tags, options); - if (message.fileName != null && message.hasOwnProperty("fileName")) - object.fileName = message.fileName; - return object; - }; - - /** - * Converts this ProtoItem to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoItem - * @instance - * @returns {Object.} JSON object - */ - ProtoItem.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Enumerates various item types that the proto item can contain. Valid types are: Step, Comment, Concept, Scenario, TableDrivenScenario, Table, Tags - * @name gauge.messages.ProtoItem.ItemType - * @enum {string} - * @property {number} Step=0 Step value - * @property {number} Comment=1 Comment value - * @property {number} Concept=2 Concept value - * @property {number} Scenario=3 Scenario value - * @property {number} TableDrivenScenario=4 TableDrivenScenario value - * @property {number} Table=5 Table value - * @property {number} Tags=6 Tags value - */ - ProtoItem.ItemType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "Step"] = 0; - values[valuesById[1] = "Comment"] = 1; - values[valuesById[2] = "Concept"] = 2; - values[valuesById[3] = "Scenario"] = 3; - values[valuesById[4] = "TableDrivenScenario"] = 4; - values[valuesById[5] = "Table"] = 5; - values[valuesById[6] = "Tags"] = 6; - return values; - })(); - - return ProtoItem; - })(); - - /** - * Execution Status - * @name gauge.messages.ExecutionStatus - * @enum {string} - * @property {number} NOTEXECUTED=0 NOTEXECUTED value - * @property {number} PASSED=1 PASSED value - * @property {number} FAILED=2 FAILED value - * @property {number} SKIPPED=3 SKIPPED value - */ - messages.ExecutionStatus = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NOTEXECUTED"] = 0; - values[valuesById[1] = "PASSED"] = 1; - values[valuesById[2] = "FAILED"] = 2; - values[valuesById[3] = "SKIPPED"] = 3; - return values; - })(); - - messages.ProtoScenario = (function() { - - /** - * Properties of a ProtoScenario. - * @memberof gauge.messages - * @interface IProtoScenario - * @property {string|null} [scenarioHeading] Heading of the given Scenario - * @property {boolean|null} [failed] Flag to indicate if the Scenario execution failed - * @property {Array.|null} [contexts] Collection of Context steps. The Context steps are executed before every run. - * @property {Array.|null} [scenarioItems] Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables - * @property {gauge.messages.IProtoHookFailure|null} [preHookFailure] Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error. - * @property {gauge.messages.IProtoHookFailure|null} [postHookFailure] Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error. - * @property {Array.|null} [tags] Contains a list of tags that are defined at the specification level. Scenario tags are not present here. - * @property {number|Long|null} [executionTime] Holds the time taken for executing this scenario. - * @property {boolean|null} [skipped] Flag to indicate if the Scenario execution is skipped - * @property {Array.|null} [skipErrors] Holds the error messages for skipping scenario from execution - * @property {string|null} [ID] Holds the unique Identifier of a scenario. - * @property {Array.|null} [tearDownSteps] Collection of Teardown steps. The Teardown steps are executed after every run. - * @property {gauge.messages.ISpan|null} [span] Span(start, end) of scenario - * @property {gauge.messages.ExecutionStatus|null} [executionStatus] Execution status for the scenario - * @property {Array.|null} [preHookMessages] Additional information at pre hook exec time to be available on reports - * @property {Array.|null} [postHookMessages] Additional information at post hook exec time to be available on reports - * @property {Array.|null} [preHookMessage] [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports - * @property {Array.|null} [postHookMessage] [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports - * @property {Array.|null} [preHookScreenshots] [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - * @property {Array.|null} [postHookScreenshots] [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - * @property {Array.|null} [preHookScreenshotFiles] Screenshots captured on pre hook exec time to be available on reports - * @property {Array.|null} [postHookScreenshotFiles] Screenshots captured on post hook exec time to be available on reports - */ - - /** - * Constructs a new ProtoScenario. - * @memberof gauge.messages - * @classdesc A proto object representing a Scenario - * @implements IProtoScenario - * @constructor - * @param {gauge.messages.IProtoScenario=} [properties] Properties to set - */ - function ProtoScenario(properties) { - this.contexts = []; - this.scenarioItems = []; - this.tags = []; - this.skipErrors = []; - this.tearDownSteps = []; - this.preHookMessages = []; - this.postHookMessages = []; - this.preHookMessage = []; - this.postHookMessage = []; - this.preHookScreenshots = []; - this.postHookScreenshots = []; - this.preHookScreenshotFiles = []; - this.postHookScreenshotFiles = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Heading of the given Scenario - * @member {string} scenarioHeading - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.scenarioHeading = ""; - - /** - * Flag to indicate if the Scenario execution failed - * @member {boolean} failed - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.failed = false; - - /** - * Collection of Context steps. The Context steps are executed before every run. - * @member {Array.} contexts - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.contexts = $util.emptyArray; - - /** - * Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables - * @member {Array.} scenarioItems - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.scenarioItems = $util.emptyArray; - - /** - * Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error. - * @member {gauge.messages.IProtoHookFailure|null|undefined} preHookFailure - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.preHookFailure = null; - - /** - * Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error. - * @member {gauge.messages.IProtoHookFailure|null|undefined} postHookFailure - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.postHookFailure = null; - - /** - * Contains a list of tags that are defined at the specification level. Scenario tags are not present here. - * @member {Array.} tags - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.tags = $util.emptyArray; - - /** - * Holds the time taken for executing this scenario. - * @member {number|Long} executionTime - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.executionTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Flag to indicate if the Scenario execution is skipped - * @member {boolean} skipped - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.skipped = false; - - /** - * Holds the error messages for skipping scenario from execution - * @member {Array.} skipErrors - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.skipErrors = $util.emptyArray; - - /** - * Holds the unique Identifier of a scenario. - * @member {string} ID - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.ID = ""; - - /** - * Collection of Teardown steps. The Teardown steps are executed after every run. - * @member {Array.} tearDownSteps - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.tearDownSteps = $util.emptyArray; - - /** - * Span(start, end) of scenario - * @member {gauge.messages.ISpan|null|undefined} span - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.span = null; - - /** - * Execution status for the scenario - * @member {gauge.messages.ExecutionStatus} executionStatus - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.executionStatus = 0; - - /** - * Additional information at pre hook exec time to be available on reports - * @member {Array.} preHookMessages - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.preHookMessages = $util.emptyArray; - - /** - * Additional information at post hook exec time to be available on reports - * @member {Array.} postHookMessages - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.postHookMessages = $util.emptyArray; - - /** - * [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports - * @member {Array.} preHookMessage - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.preHookMessage = $util.emptyArray; - - /** - * [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports - * @member {Array.} postHookMessage - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.postHookMessage = $util.emptyArray; - - /** - * [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - * @member {Array.} preHookScreenshots - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.preHookScreenshots = $util.emptyArray; - - /** - * [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - * @member {Array.} postHookScreenshots - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.postHookScreenshots = $util.emptyArray; - - /** - * Screenshots captured on pre hook exec time to be available on reports - * @member {Array.} preHookScreenshotFiles - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.preHookScreenshotFiles = $util.emptyArray; - - /** - * Screenshots captured on post hook exec time to be available on reports - * @member {Array.} postHookScreenshotFiles - * @memberof gauge.messages.ProtoScenario - * @instance - */ - ProtoScenario.prototype.postHookScreenshotFiles = $util.emptyArray; - - /** - * Creates a new ProtoScenario instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoScenario - * @static - * @param {gauge.messages.IProtoScenario=} [properties] Properties to set - * @returns {gauge.messages.ProtoScenario} ProtoScenario instance - */ - ProtoScenario.create = function create(properties) { - return new ProtoScenario(properties); - }; - - /** - * Encodes the specified ProtoScenario message. Does not implicitly {@link gauge.messages.ProtoScenario.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoScenario - * @static - * @param {gauge.messages.IProtoScenario} message ProtoScenario message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoScenario.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.scenarioHeading != null && message.hasOwnProperty("scenarioHeading")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.scenarioHeading); - if (message.failed != null && message.hasOwnProperty("failed")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.failed); - if (message.contexts != null && message.contexts.length) - for (var i = 0; i < message.contexts.length; ++i) - $root.gauge.messages.ProtoItem.encode(message.contexts[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.scenarioItems != null && message.scenarioItems.length) - for (var i = 0; i < message.scenarioItems.length; ++i) - $root.gauge.messages.ProtoItem.encode(message.scenarioItems[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.preHookFailure != null && message.hasOwnProperty("preHookFailure")) - $root.gauge.messages.ProtoHookFailure.encode(message.preHookFailure, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.postHookFailure != null && message.hasOwnProperty("postHookFailure")) - $root.gauge.messages.ProtoHookFailure.encode(message.postHookFailure, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.tags[i]); - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.executionTime); - if (message.skipped != null && message.hasOwnProperty("skipped")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.skipped); - if (message.skipErrors != null && message.skipErrors.length) - for (var i = 0; i < message.skipErrors.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.skipErrors[i]); - if (message.ID != null && message.hasOwnProperty("ID")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.ID); - if (message.tearDownSteps != null && message.tearDownSteps.length) - for (var i = 0; i < message.tearDownSteps.length; ++i) - $root.gauge.messages.ProtoItem.encode(message.tearDownSteps[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.span != null && message.hasOwnProperty("span")) - $root.gauge.messages.Span.encode(message.span, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.executionStatus != null && message.hasOwnProperty("executionStatus")) - writer.uint32(/* id 14, wireType 0 =*/112).int32(message.executionStatus); - if (message.preHookMessages != null && message.preHookMessages.length) - for (var i = 0; i < message.preHookMessages.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.preHookMessages[i]); - if (message.postHookMessages != null && message.postHookMessages.length) - for (var i = 0; i < message.postHookMessages.length; ++i) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.postHookMessages[i]); - if (message.preHookMessage != null && message.preHookMessage.length) - for (var i = 0; i < message.preHookMessage.length; ++i) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.preHookMessage[i]); - if (message.postHookMessage != null && message.postHookMessage.length) - for (var i = 0; i < message.postHookMessage.length; ++i) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.postHookMessage[i]); - if (message.preHookScreenshots != null && message.preHookScreenshots.length) - for (var i = 0; i < message.preHookScreenshots.length; ++i) - writer.uint32(/* id 19, wireType 2 =*/154).bytes(message.preHookScreenshots[i]); - if (message.postHookScreenshots != null && message.postHookScreenshots.length) - for (var i = 0; i < message.postHookScreenshots.length; ++i) - writer.uint32(/* id 20, wireType 2 =*/162).bytes(message.postHookScreenshots[i]); - if (message.preHookScreenshotFiles != null && message.preHookScreenshotFiles.length) - for (var i = 0; i < message.preHookScreenshotFiles.length; ++i) - writer.uint32(/* id 21, wireType 2 =*/170).string(message.preHookScreenshotFiles[i]); - if (message.postHookScreenshotFiles != null && message.postHookScreenshotFiles.length) - for (var i = 0; i < message.postHookScreenshotFiles.length; ++i) - writer.uint32(/* id 22, wireType 2 =*/178).string(message.postHookScreenshotFiles[i]); - return writer; - }; - - /** - * Encodes the specified ProtoScenario message, length delimited. Does not implicitly {@link gauge.messages.ProtoScenario.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoScenario - * @static - * @param {gauge.messages.IProtoScenario} message ProtoScenario message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoScenario.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoScenario message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoScenario - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoScenario} ProtoScenario - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoScenario.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoScenario(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.scenarioHeading = reader.string(); - break; - case 2: - message.failed = reader.bool(); - break; - case 3: - if (!(message.contexts && message.contexts.length)) - message.contexts = []; - message.contexts.push($root.gauge.messages.ProtoItem.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.scenarioItems && message.scenarioItems.length)) - message.scenarioItems = []; - message.scenarioItems.push($root.gauge.messages.ProtoItem.decode(reader, reader.uint32())); - break; - case 5: - message.preHookFailure = $root.gauge.messages.ProtoHookFailure.decode(reader, reader.uint32()); - break; - case 6: - message.postHookFailure = $root.gauge.messages.ProtoHookFailure.decode(reader, reader.uint32()); - break; - case 7: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - case 8: - message.executionTime = reader.int64(); - break; - case 9: - message.skipped = reader.bool(); - break; - case 10: - if (!(message.skipErrors && message.skipErrors.length)) - message.skipErrors = []; - message.skipErrors.push(reader.string()); - break; - case 11: - message.ID = reader.string(); - break; - case 12: - if (!(message.tearDownSteps && message.tearDownSteps.length)) - message.tearDownSteps = []; - message.tearDownSteps.push($root.gauge.messages.ProtoItem.decode(reader, reader.uint32())); - break; - case 13: - message.span = $root.gauge.messages.Span.decode(reader, reader.uint32()); - break; - case 14: - message.executionStatus = reader.int32(); - break; - case 15: - if (!(message.preHookMessages && message.preHookMessages.length)) - message.preHookMessages = []; - message.preHookMessages.push(reader.string()); - break; - case 16: - if (!(message.postHookMessages && message.postHookMessages.length)) - message.postHookMessages = []; - message.postHookMessages.push(reader.string()); - break; - case 17: - if (!(message.preHookMessage && message.preHookMessage.length)) - message.preHookMessage = []; - message.preHookMessage.push(reader.string()); - break; - case 18: - if (!(message.postHookMessage && message.postHookMessage.length)) - message.postHookMessage = []; - message.postHookMessage.push(reader.string()); - break; - case 19: - if (!(message.preHookScreenshots && message.preHookScreenshots.length)) - message.preHookScreenshots = []; - message.preHookScreenshots.push(reader.bytes()); - break; - case 20: - if (!(message.postHookScreenshots && message.postHookScreenshots.length)) - message.postHookScreenshots = []; - message.postHookScreenshots.push(reader.bytes()); - break; - case 21: - if (!(message.preHookScreenshotFiles && message.preHookScreenshotFiles.length)) - message.preHookScreenshotFiles = []; - message.preHookScreenshotFiles.push(reader.string()); - break; - case 22: - if (!(message.postHookScreenshotFiles && message.postHookScreenshotFiles.length)) - message.postHookScreenshotFiles = []; - message.postHookScreenshotFiles.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoScenario message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoScenario - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoScenario} ProtoScenario - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoScenario.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoScenario message. - * @function verify - * @memberof gauge.messages.ProtoScenario - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoScenario.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.scenarioHeading != null && message.hasOwnProperty("scenarioHeading")) - if (!$util.isString(message.scenarioHeading)) - return "scenarioHeading: string expected"; - if (message.failed != null && message.hasOwnProperty("failed")) - if (typeof message.failed !== "boolean") - return "failed: boolean expected"; - if (message.contexts != null && message.hasOwnProperty("contexts")) { - if (!Array.isArray(message.contexts)) - return "contexts: array expected"; - for (var i = 0; i < message.contexts.length; ++i) { - var error = $root.gauge.messages.ProtoItem.verify(message.contexts[i]); - if (error) - return "contexts." + error; - } - } - if (message.scenarioItems != null && message.hasOwnProperty("scenarioItems")) { - if (!Array.isArray(message.scenarioItems)) - return "scenarioItems: array expected"; - for (var i = 0; i < message.scenarioItems.length; ++i) { - var error = $root.gauge.messages.ProtoItem.verify(message.scenarioItems[i]); - if (error) - return "scenarioItems." + error; - } - } - if (message.preHookFailure != null && message.hasOwnProperty("preHookFailure")) { - var error = $root.gauge.messages.ProtoHookFailure.verify(message.preHookFailure); - if (error) - return "preHookFailure." + error; - } - if (message.postHookFailure != null && message.hasOwnProperty("postHookFailure")) { - var error = $root.gauge.messages.ProtoHookFailure.verify(message.postHookFailure); - if (error) - return "postHookFailure." + error; - } - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - if (!$util.isInteger(message.executionTime) && !(message.executionTime && $util.isInteger(message.executionTime.low) && $util.isInteger(message.executionTime.high))) - return "executionTime: integer|Long expected"; - if (message.skipped != null && message.hasOwnProperty("skipped")) - if (typeof message.skipped !== "boolean") - return "skipped: boolean expected"; - if (message.skipErrors != null && message.hasOwnProperty("skipErrors")) { - if (!Array.isArray(message.skipErrors)) - return "skipErrors: array expected"; - for (var i = 0; i < message.skipErrors.length; ++i) - if (!$util.isString(message.skipErrors[i])) - return "skipErrors: string[] expected"; - } - if (message.ID != null && message.hasOwnProperty("ID")) - if (!$util.isString(message.ID)) - return "ID: string expected"; - if (message.tearDownSteps != null && message.hasOwnProperty("tearDownSteps")) { - if (!Array.isArray(message.tearDownSteps)) - return "tearDownSteps: array expected"; - for (var i = 0; i < message.tearDownSteps.length; ++i) { - var error = $root.gauge.messages.ProtoItem.verify(message.tearDownSteps[i]); - if (error) - return "tearDownSteps." + error; - } - } - if (message.span != null && message.hasOwnProperty("span")) { - var error = $root.gauge.messages.Span.verify(message.span); - if (error) - return "span." + error; - } - if (message.executionStatus != null && message.hasOwnProperty("executionStatus")) - switch (message.executionStatus) { - default: - return "executionStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.preHookMessages != null && message.hasOwnProperty("preHookMessages")) { - if (!Array.isArray(message.preHookMessages)) - return "preHookMessages: array expected"; - for (var i = 0; i < message.preHookMessages.length; ++i) - if (!$util.isString(message.preHookMessages[i])) - return "preHookMessages: string[] expected"; - } - if (message.postHookMessages != null && message.hasOwnProperty("postHookMessages")) { - if (!Array.isArray(message.postHookMessages)) - return "postHookMessages: array expected"; - for (var i = 0; i < message.postHookMessages.length; ++i) - if (!$util.isString(message.postHookMessages[i])) - return "postHookMessages: string[] expected"; - } - if (message.preHookMessage != null && message.hasOwnProperty("preHookMessage")) { - if (!Array.isArray(message.preHookMessage)) - return "preHookMessage: array expected"; - for (var i = 0; i < message.preHookMessage.length; ++i) - if (!$util.isString(message.preHookMessage[i])) - return "preHookMessage: string[] expected"; - } - if (message.postHookMessage != null && message.hasOwnProperty("postHookMessage")) { - if (!Array.isArray(message.postHookMessage)) - return "postHookMessage: array expected"; - for (var i = 0; i < message.postHookMessage.length; ++i) - if (!$util.isString(message.postHookMessage[i])) - return "postHookMessage: string[] expected"; - } - if (message.preHookScreenshots != null && message.hasOwnProperty("preHookScreenshots")) { - if (!Array.isArray(message.preHookScreenshots)) - return "preHookScreenshots: array expected"; - for (var i = 0; i < message.preHookScreenshots.length; ++i) - if (!(message.preHookScreenshots[i] && typeof message.preHookScreenshots[i].length === "number" || $util.isString(message.preHookScreenshots[i]))) - return "preHookScreenshots: buffer[] expected"; - } - if (message.postHookScreenshots != null && message.hasOwnProperty("postHookScreenshots")) { - if (!Array.isArray(message.postHookScreenshots)) - return "postHookScreenshots: array expected"; - for (var i = 0; i < message.postHookScreenshots.length; ++i) - if (!(message.postHookScreenshots[i] && typeof message.postHookScreenshots[i].length === "number" || $util.isString(message.postHookScreenshots[i]))) - return "postHookScreenshots: buffer[] expected"; - } - if (message.preHookScreenshotFiles != null && message.hasOwnProperty("preHookScreenshotFiles")) { - if (!Array.isArray(message.preHookScreenshotFiles)) - return "preHookScreenshotFiles: array expected"; - for (var i = 0; i < message.preHookScreenshotFiles.length; ++i) - if (!$util.isString(message.preHookScreenshotFiles[i])) - return "preHookScreenshotFiles: string[] expected"; - } - if (message.postHookScreenshotFiles != null && message.hasOwnProperty("postHookScreenshotFiles")) { - if (!Array.isArray(message.postHookScreenshotFiles)) - return "postHookScreenshotFiles: array expected"; - for (var i = 0; i < message.postHookScreenshotFiles.length; ++i) - if (!$util.isString(message.postHookScreenshotFiles[i])) - return "postHookScreenshotFiles: string[] expected"; - } - return null; - }; - - /** - * Creates a ProtoScenario message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoScenario - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoScenario} ProtoScenario - */ - ProtoScenario.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoScenario) - return object; - var message = new $root.gauge.messages.ProtoScenario(); - if (object.scenarioHeading != null) - message.scenarioHeading = String(object.scenarioHeading); - if (object.failed != null) - message.failed = Boolean(object.failed); - if (object.contexts) { - if (!Array.isArray(object.contexts)) - throw TypeError(".gauge.messages.ProtoScenario.contexts: array expected"); - message.contexts = []; - for (var i = 0; i < object.contexts.length; ++i) { - if (typeof object.contexts[i] !== "object") - throw TypeError(".gauge.messages.ProtoScenario.contexts: object expected"); - message.contexts[i] = $root.gauge.messages.ProtoItem.fromObject(object.contexts[i]); - } - } - if (object.scenarioItems) { - if (!Array.isArray(object.scenarioItems)) - throw TypeError(".gauge.messages.ProtoScenario.scenarioItems: array expected"); - message.scenarioItems = []; - for (var i = 0; i < object.scenarioItems.length; ++i) { - if (typeof object.scenarioItems[i] !== "object") - throw TypeError(".gauge.messages.ProtoScenario.scenarioItems: object expected"); - message.scenarioItems[i] = $root.gauge.messages.ProtoItem.fromObject(object.scenarioItems[i]); - } - } - if (object.preHookFailure != null) { - if (typeof object.preHookFailure !== "object") - throw TypeError(".gauge.messages.ProtoScenario.preHookFailure: object expected"); - message.preHookFailure = $root.gauge.messages.ProtoHookFailure.fromObject(object.preHookFailure); - } - if (object.postHookFailure != null) { - if (typeof object.postHookFailure !== "object") - throw TypeError(".gauge.messages.ProtoScenario.postHookFailure: object expected"); - message.postHookFailure = $root.gauge.messages.ProtoHookFailure.fromObject(object.postHookFailure); - } - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".gauge.messages.ProtoScenario.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) - message.tags[i] = String(object.tags[i]); - } - if (object.executionTime != null) - if ($util.Long) - (message.executionTime = $util.Long.fromValue(object.executionTime)).unsigned = false; - else if (typeof object.executionTime === "string") - message.executionTime = parseInt(object.executionTime, 10); - else if (typeof object.executionTime === "number") - message.executionTime = object.executionTime; - else if (typeof object.executionTime === "object") - message.executionTime = new $util.LongBits(object.executionTime.low >>> 0, object.executionTime.high >>> 0).toNumber(); - if (object.skipped != null) - message.skipped = Boolean(object.skipped); - if (object.skipErrors) { - if (!Array.isArray(object.skipErrors)) - throw TypeError(".gauge.messages.ProtoScenario.skipErrors: array expected"); - message.skipErrors = []; - for (var i = 0; i < object.skipErrors.length; ++i) - message.skipErrors[i] = String(object.skipErrors[i]); - } - if (object.ID != null) - message.ID = String(object.ID); - if (object.tearDownSteps) { - if (!Array.isArray(object.tearDownSteps)) - throw TypeError(".gauge.messages.ProtoScenario.tearDownSteps: array expected"); - message.tearDownSteps = []; - for (var i = 0; i < object.tearDownSteps.length; ++i) { - if (typeof object.tearDownSteps[i] !== "object") - throw TypeError(".gauge.messages.ProtoScenario.tearDownSteps: object expected"); - message.tearDownSteps[i] = $root.gauge.messages.ProtoItem.fromObject(object.tearDownSteps[i]); - } - } - if (object.span != null) { - if (typeof object.span !== "object") - throw TypeError(".gauge.messages.ProtoScenario.span: object expected"); - message.span = $root.gauge.messages.Span.fromObject(object.span); - } - switch (object.executionStatus) { - case "NOTEXECUTED": - case 0: - message.executionStatus = 0; - break; - case "PASSED": - case 1: - message.executionStatus = 1; - break; - case "FAILED": - case 2: - message.executionStatus = 2; - break; - case "SKIPPED": - case 3: - message.executionStatus = 3; - break; - } - if (object.preHookMessages) { - if (!Array.isArray(object.preHookMessages)) - throw TypeError(".gauge.messages.ProtoScenario.preHookMessages: array expected"); - message.preHookMessages = []; - for (var i = 0; i < object.preHookMessages.length; ++i) - message.preHookMessages[i] = String(object.preHookMessages[i]); - } - if (object.postHookMessages) { - if (!Array.isArray(object.postHookMessages)) - throw TypeError(".gauge.messages.ProtoScenario.postHookMessages: array expected"); - message.postHookMessages = []; - for (var i = 0; i < object.postHookMessages.length; ++i) - message.postHookMessages[i] = String(object.postHookMessages[i]); - } - if (object.preHookMessage) { - if (!Array.isArray(object.preHookMessage)) - throw TypeError(".gauge.messages.ProtoScenario.preHookMessage: array expected"); - message.preHookMessage = []; - for (var i = 0; i < object.preHookMessage.length; ++i) - message.preHookMessage[i] = String(object.preHookMessage[i]); - } - if (object.postHookMessage) { - if (!Array.isArray(object.postHookMessage)) - throw TypeError(".gauge.messages.ProtoScenario.postHookMessage: array expected"); - message.postHookMessage = []; - for (var i = 0; i < object.postHookMessage.length; ++i) - message.postHookMessage[i] = String(object.postHookMessage[i]); - } - if (object.preHookScreenshots) { - if (!Array.isArray(object.preHookScreenshots)) - throw TypeError(".gauge.messages.ProtoScenario.preHookScreenshots: array expected"); - message.preHookScreenshots = []; - for (var i = 0; i < object.preHookScreenshots.length; ++i) - if (typeof object.preHookScreenshots[i] === "string") - $util.base64.decode(object.preHookScreenshots[i], message.preHookScreenshots[i] = $util.newBuffer($util.base64.length(object.preHookScreenshots[i])), 0); - else if (object.preHookScreenshots[i].length) - message.preHookScreenshots[i] = object.preHookScreenshots[i]; - } - if (object.postHookScreenshots) { - if (!Array.isArray(object.postHookScreenshots)) - throw TypeError(".gauge.messages.ProtoScenario.postHookScreenshots: array expected"); - message.postHookScreenshots = []; - for (var i = 0; i < object.postHookScreenshots.length; ++i) - if (typeof object.postHookScreenshots[i] === "string") - $util.base64.decode(object.postHookScreenshots[i], message.postHookScreenshots[i] = $util.newBuffer($util.base64.length(object.postHookScreenshots[i])), 0); - else if (object.postHookScreenshots[i].length) - message.postHookScreenshots[i] = object.postHookScreenshots[i]; - } - if (object.preHookScreenshotFiles) { - if (!Array.isArray(object.preHookScreenshotFiles)) - throw TypeError(".gauge.messages.ProtoScenario.preHookScreenshotFiles: array expected"); - message.preHookScreenshotFiles = []; - for (var i = 0; i < object.preHookScreenshotFiles.length; ++i) - message.preHookScreenshotFiles[i] = String(object.preHookScreenshotFiles[i]); - } - if (object.postHookScreenshotFiles) { - if (!Array.isArray(object.postHookScreenshotFiles)) - throw TypeError(".gauge.messages.ProtoScenario.postHookScreenshotFiles: array expected"); - message.postHookScreenshotFiles = []; - for (var i = 0; i < object.postHookScreenshotFiles.length; ++i) - message.postHookScreenshotFiles[i] = String(object.postHookScreenshotFiles[i]); - } - return message; - }; - - /** - * Creates a plain object from a ProtoScenario message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoScenario - * @static - * @param {gauge.messages.ProtoScenario} message ProtoScenario - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoScenario.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.contexts = []; - object.scenarioItems = []; - object.tags = []; - object.skipErrors = []; - object.tearDownSteps = []; - object.preHookMessages = []; - object.postHookMessages = []; - object.preHookMessage = []; - object.postHookMessage = []; - object.preHookScreenshots = []; - object.postHookScreenshots = []; - object.preHookScreenshotFiles = []; - object.postHookScreenshotFiles = []; - } - if (options.defaults) { - object.scenarioHeading = ""; - object.failed = false; - object.preHookFailure = null; - object.postHookFailure = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.executionTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.executionTime = options.longs === String ? "0" : 0; - object.skipped = false; - object.ID = ""; - object.span = null; - object.executionStatus = options.enums === String ? "NOTEXECUTED" : 0; - } - if (message.scenarioHeading != null && message.hasOwnProperty("scenarioHeading")) - object.scenarioHeading = message.scenarioHeading; - if (message.failed != null && message.hasOwnProperty("failed")) - object.failed = message.failed; - if (message.contexts && message.contexts.length) { - object.contexts = []; - for (var j = 0; j < message.contexts.length; ++j) - object.contexts[j] = $root.gauge.messages.ProtoItem.toObject(message.contexts[j], options); - } - if (message.scenarioItems && message.scenarioItems.length) { - object.scenarioItems = []; - for (var j = 0; j < message.scenarioItems.length; ++j) - object.scenarioItems[j] = $root.gauge.messages.ProtoItem.toObject(message.scenarioItems[j], options); - } - if (message.preHookFailure != null && message.hasOwnProperty("preHookFailure")) - object.preHookFailure = $root.gauge.messages.ProtoHookFailure.toObject(message.preHookFailure, options); - if (message.postHookFailure != null && message.hasOwnProperty("postHookFailure")) - object.postHookFailure = $root.gauge.messages.ProtoHookFailure.toObject(message.postHookFailure, options); - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = message.tags[j]; - } - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - if (typeof message.executionTime === "number") - object.executionTime = options.longs === String ? String(message.executionTime) : message.executionTime; - else - object.executionTime = options.longs === String ? $util.Long.prototype.toString.call(message.executionTime) : options.longs === Number ? new $util.LongBits(message.executionTime.low >>> 0, message.executionTime.high >>> 0).toNumber() : message.executionTime; - if (message.skipped != null && message.hasOwnProperty("skipped")) - object.skipped = message.skipped; - if (message.skipErrors && message.skipErrors.length) { - object.skipErrors = []; - for (var j = 0; j < message.skipErrors.length; ++j) - object.skipErrors[j] = message.skipErrors[j]; - } - if (message.ID != null && message.hasOwnProperty("ID")) - object.ID = message.ID; - if (message.tearDownSteps && message.tearDownSteps.length) { - object.tearDownSteps = []; - for (var j = 0; j < message.tearDownSteps.length; ++j) - object.tearDownSteps[j] = $root.gauge.messages.ProtoItem.toObject(message.tearDownSteps[j], options); - } - if (message.span != null && message.hasOwnProperty("span")) - object.span = $root.gauge.messages.Span.toObject(message.span, options); - if (message.executionStatus != null && message.hasOwnProperty("executionStatus")) - object.executionStatus = options.enums === String ? $root.gauge.messages.ExecutionStatus[message.executionStatus] : message.executionStatus; - if (message.preHookMessages && message.preHookMessages.length) { - object.preHookMessages = []; - for (var j = 0; j < message.preHookMessages.length; ++j) - object.preHookMessages[j] = message.preHookMessages[j]; - } - if (message.postHookMessages && message.postHookMessages.length) { - object.postHookMessages = []; - for (var j = 0; j < message.postHookMessages.length; ++j) - object.postHookMessages[j] = message.postHookMessages[j]; - } - if (message.preHookMessage && message.preHookMessage.length) { - object.preHookMessage = []; - for (var j = 0; j < message.preHookMessage.length; ++j) - object.preHookMessage[j] = message.preHookMessage[j]; - } - if (message.postHookMessage && message.postHookMessage.length) { - object.postHookMessage = []; - for (var j = 0; j < message.postHookMessage.length; ++j) - object.postHookMessage[j] = message.postHookMessage[j]; - } - if (message.preHookScreenshots && message.preHookScreenshots.length) { - object.preHookScreenshots = []; - for (var j = 0; j < message.preHookScreenshots.length; ++j) - object.preHookScreenshots[j] = options.bytes === String ? $util.base64.encode(message.preHookScreenshots[j], 0, message.preHookScreenshots[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.preHookScreenshots[j]) : message.preHookScreenshots[j]; - } - if (message.postHookScreenshots && message.postHookScreenshots.length) { - object.postHookScreenshots = []; - for (var j = 0; j < message.postHookScreenshots.length; ++j) - object.postHookScreenshots[j] = options.bytes === String ? $util.base64.encode(message.postHookScreenshots[j], 0, message.postHookScreenshots[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.postHookScreenshots[j]) : message.postHookScreenshots[j]; - } - if (message.preHookScreenshotFiles && message.preHookScreenshotFiles.length) { - object.preHookScreenshotFiles = []; - for (var j = 0; j < message.preHookScreenshotFiles.length; ++j) - object.preHookScreenshotFiles[j] = message.preHookScreenshotFiles[j]; - } - if (message.postHookScreenshotFiles && message.postHookScreenshotFiles.length) { - object.postHookScreenshotFiles = []; - for (var j = 0; j < message.postHookScreenshotFiles.length; ++j) - object.postHookScreenshotFiles[j] = message.postHookScreenshotFiles[j]; - } - return object; - }; - - /** - * Converts this ProtoScenario to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoScenario - * @instance - * @returns {Object.} JSON object - */ - ProtoScenario.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoScenario; - })(); - - messages.Span = (function() { - - /** - * Properties of a Span. - * @memberof gauge.messages - * @interface ISpan - * @property {number|Long|null} [start] Span start - * @property {number|Long|null} [end] Span end - * @property {number|Long|null} [startChar] Span startChar - * @property {number|Long|null} [endChar] Span endChar - */ - - /** - * Constructs a new Span. - * @memberof gauge.messages - * @classdesc A proto object representing a Span of content - * @implements ISpan - * @constructor - * @param {gauge.messages.ISpan=} [properties] Properties to set - */ - function Span(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Span start. - * @member {number|Long} start - * @memberof gauge.messages.Span - * @instance - */ - Span.prototype.start = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Span end. - * @member {number|Long} end - * @memberof gauge.messages.Span - * @instance - */ - Span.prototype.end = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Span startChar. - * @member {number|Long} startChar - * @memberof gauge.messages.Span - * @instance - */ - Span.prototype.startChar = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Span endChar. - * @member {number|Long} endChar - * @memberof gauge.messages.Span - * @instance - */ - Span.prototype.endChar = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new Span instance using the specified properties. - * @function create - * @memberof gauge.messages.Span - * @static - * @param {gauge.messages.ISpan=} [properties] Properties to set - * @returns {gauge.messages.Span} Span instance - */ - Span.create = function create(properties) { - return new Span(properties); - }; - - /** - * Encodes the specified Span message. Does not implicitly {@link gauge.messages.Span.verify|verify} messages. - * @function encode - * @memberof gauge.messages.Span - * @static - * @param {gauge.messages.ISpan} message Span message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Span.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && message.hasOwnProperty("start")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.start); - if (message.end != null && message.hasOwnProperty("end")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.end); - if (message.startChar != null && message.hasOwnProperty("startChar")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.startChar); - if (message.endChar != null && message.hasOwnProperty("endChar")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.endChar); - return writer; - }; - - /** - * Encodes the specified Span message, length delimited. Does not implicitly {@link gauge.messages.Span.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.Span - * @static - * @param {gauge.messages.ISpan} message Span message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Span.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Span message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.Span - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.Span} Span - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Span.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.Span(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int64(); - break; - case 2: - message.end = reader.int64(); - break; - case 3: - message.startChar = reader.int64(); - break; - case 4: - message.endChar = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Span message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.Span - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.Span} Span - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Span.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Span message. - * @function verify - * @memberof gauge.messages.Span - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Span.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start) && !(message.start && $util.isInteger(message.start.low) && $util.isInteger(message.start.high))) - return "start: integer|Long expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end) && !(message.end && $util.isInteger(message.end.low) && $util.isInteger(message.end.high))) - return "end: integer|Long expected"; - if (message.startChar != null && message.hasOwnProperty("startChar")) - if (!$util.isInteger(message.startChar) && !(message.startChar && $util.isInteger(message.startChar.low) && $util.isInteger(message.startChar.high))) - return "startChar: integer|Long expected"; - if (message.endChar != null && message.hasOwnProperty("endChar")) - if (!$util.isInteger(message.endChar) && !(message.endChar && $util.isInteger(message.endChar.low) && $util.isInteger(message.endChar.high))) - return "endChar: integer|Long expected"; - return null; - }; - - /** - * Creates a Span message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.Span - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.Span} Span - */ - Span.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.Span) - return object; - var message = new $root.gauge.messages.Span(); - if (object.start != null) - if ($util.Long) - (message.start = $util.Long.fromValue(object.start)).unsigned = false; - else if (typeof object.start === "string") - message.start = parseInt(object.start, 10); - else if (typeof object.start === "number") - message.start = object.start; - else if (typeof object.start === "object") - message.start = new $util.LongBits(object.start.low >>> 0, object.start.high >>> 0).toNumber(); - if (object.end != null) - if ($util.Long) - (message.end = $util.Long.fromValue(object.end)).unsigned = false; - else if (typeof object.end === "string") - message.end = parseInt(object.end, 10); - else if (typeof object.end === "number") - message.end = object.end; - else if (typeof object.end === "object") - message.end = new $util.LongBits(object.end.low >>> 0, object.end.high >>> 0).toNumber(); - if (object.startChar != null) - if ($util.Long) - (message.startChar = $util.Long.fromValue(object.startChar)).unsigned = false; - else if (typeof object.startChar === "string") - message.startChar = parseInt(object.startChar, 10); - else if (typeof object.startChar === "number") - message.startChar = object.startChar; - else if (typeof object.startChar === "object") - message.startChar = new $util.LongBits(object.startChar.low >>> 0, object.startChar.high >>> 0).toNumber(); - if (object.endChar != null) - if ($util.Long) - (message.endChar = $util.Long.fromValue(object.endChar)).unsigned = false; - else if (typeof object.endChar === "string") - message.endChar = parseInt(object.endChar, 10); - else if (typeof object.endChar === "number") - message.endChar = object.endChar; - else if (typeof object.endChar === "object") - message.endChar = new $util.LongBits(object.endChar.low >>> 0, object.endChar.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a Span message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.Span - * @static - * @param {gauge.messages.Span} message Span - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Span.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.start = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.start = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.end = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.end = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.startChar = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.startChar = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.endChar = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.endChar = options.longs === String ? "0" : 0; - } - if (message.start != null && message.hasOwnProperty("start")) - if (typeof message.start === "number") - object.start = options.longs === String ? String(message.start) : message.start; - else - object.start = options.longs === String ? $util.Long.prototype.toString.call(message.start) : options.longs === Number ? new $util.LongBits(message.start.low >>> 0, message.start.high >>> 0).toNumber() : message.start; - if (message.end != null && message.hasOwnProperty("end")) - if (typeof message.end === "number") - object.end = options.longs === String ? String(message.end) : message.end; - else - object.end = options.longs === String ? $util.Long.prototype.toString.call(message.end) : options.longs === Number ? new $util.LongBits(message.end.low >>> 0, message.end.high >>> 0).toNumber() : message.end; - if (message.startChar != null && message.hasOwnProperty("startChar")) - if (typeof message.startChar === "number") - object.startChar = options.longs === String ? String(message.startChar) : message.startChar; - else - object.startChar = options.longs === String ? $util.Long.prototype.toString.call(message.startChar) : options.longs === Number ? new $util.LongBits(message.startChar.low >>> 0, message.startChar.high >>> 0).toNumber() : message.startChar; - if (message.endChar != null && message.hasOwnProperty("endChar")) - if (typeof message.endChar === "number") - object.endChar = options.longs === String ? String(message.endChar) : message.endChar; - else - object.endChar = options.longs === String ? $util.Long.prototype.toString.call(message.endChar) : options.longs === Number ? new $util.LongBits(message.endChar.low >>> 0, message.endChar.high >>> 0).toNumber() : message.endChar; - return object; - }; - - /** - * Converts this Span to JSON. - * @function toJSON - * @memberof gauge.messages.Span - * @instance - * @returns {Object.} JSON object - */ - Span.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Span; - })(); - - messages.ProtoTableDrivenScenario = (function() { - - /** - * Properties of a ProtoTableDrivenScenario. - * @memberof gauge.messages - * @interface IProtoTableDrivenScenario - * @property {gauge.messages.IProtoScenario|null} [scenario] Scenario under Table driven execution - * @property {number|null} [tableRowIndex] Row Index of data table against which the current scenario is executed - * @property {number|null} [scenarioTableRowIndex] Row Index of scenario data table against which the current scenario is executed - * @property {boolean|null} [isSpecTableDriven] Executed against a spec data table - * @property {boolean|null} [isScenarioTableDriven] Executed against a scenario data table - * @property {gauge.messages.IProtoTable|null} [scenarioDataTable] Holds the scenario data table - * @property {gauge.messages.IProtoTable|null} [scenarioTableRow] Hold the row of scenario data table. - */ - - /** - * Constructs a new ProtoTableDrivenScenario. - * @memberof gauge.messages - * @classdesc A proto object representing a TableDrivenScenario - * @implements IProtoTableDrivenScenario - * @constructor - * @param {gauge.messages.IProtoTableDrivenScenario=} [properties] Properties to set - */ - function ProtoTableDrivenScenario(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Scenario under Table driven execution - * @member {gauge.messages.IProtoScenario|null|undefined} scenario - * @memberof gauge.messages.ProtoTableDrivenScenario - * @instance - */ - ProtoTableDrivenScenario.prototype.scenario = null; - - /** - * Row Index of data table against which the current scenario is executed - * @member {number} tableRowIndex - * @memberof gauge.messages.ProtoTableDrivenScenario - * @instance - */ - ProtoTableDrivenScenario.prototype.tableRowIndex = 0; - - /** - * Row Index of scenario data table against which the current scenario is executed - * @member {number} scenarioTableRowIndex - * @memberof gauge.messages.ProtoTableDrivenScenario - * @instance - */ - ProtoTableDrivenScenario.prototype.scenarioTableRowIndex = 0; - - /** - * Executed against a spec data table - * @member {boolean} isSpecTableDriven - * @memberof gauge.messages.ProtoTableDrivenScenario - * @instance - */ - ProtoTableDrivenScenario.prototype.isSpecTableDriven = false; - - /** - * Executed against a scenario data table - * @member {boolean} isScenarioTableDriven - * @memberof gauge.messages.ProtoTableDrivenScenario - * @instance - */ - ProtoTableDrivenScenario.prototype.isScenarioTableDriven = false; - - /** - * Holds the scenario data table - * @member {gauge.messages.IProtoTable|null|undefined} scenarioDataTable - * @memberof gauge.messages.ProtoTableDrivenScenario - * @instance - */ - ProtoTableDrivenScenario.prototype.scenarioDataTable = null; - - /** - * Hold the row of scenario data table. - * @member {gauge.messages.IProtoTable|null|undefined} scenarioTableRow - * @memberof gauge.messages.ProtoTableDrivenScenario - * @instance - */ - ProtoTableDrivenScenario.prototype.scenarioTableRow = null; - - /** - * Creates a new ProtoTableDrivenScenario instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoTableDrivenScenario - * @static - * @param {gauge.messages.IProtoTableDrivenScenario=} [properties] Properties to set - * @returns {gauge.messages.ProtoTableDrivenScenario} ProtoTableDrivenScenario instance - */ - ProtoTableDrivenScenario.create = function create(properties) { - return new ProtoTableDrivenScenario(properties); - }; - - /** - * Encodes the specified ProtoTableDrivenScenario message. Does not implicitly {@link gauge.messages.ProtoTableDrivenScenario.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoTableDrivenScenario - * @static - * @param {gauge.messages.IProtoTableDrivenScenario} message ProtoTableDrivenScenario message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoTableDrivenScenario.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.scenario != null && message.hasOwnProperty("scenario")) - $root.gauge.messages.ProtoScenario.encode(message.scenario, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tableRowIndex != null && message.hasOwnProperty("tableRowIndex")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.tableRowIndex); - if (message.scenarioTableRowIndex != null && message.hasOwnProperty("scenarioTableRowIndex")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.scenarioTableRowIndex); - if (message.isSpecTableDriven != null && message.hasOwnProperty("isSpecTableDriven")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isSpecTableDriven); - if (message.isScenarioTableDriven != null && message.hasOwnProperty("isScenarioTableDriven")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isScenarioTableDriven); - if (message.scenarioDataTable != null && message.hasOwnProperty("scenarioDataTable")) - $root.gauge.messages.ProtoTable.encode(message.scenarioDataTable, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.scenarioTableRow != null && message.hasOwnProperty("scenarioTableRow")) - $root.gauge.messages.ProtoTable.encode(message.scenarioTableRow, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ProtoTableDrivenScenario message, length delimited. Does not implicitly {@link gauge.messages.ProtoTableDrivenScenario.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoTableDrivenScenario - * @static - * @param {gauge.messages.IProtoTableDrivenScenario} message ProtoTableDrivenScenario message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoTableDrivenScenario.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoTableDrivenScenario message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoTableDrivenScenario - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoTableDrivenScenario} ProtoTableDrivenScenario - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoTableDrivenScenario.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoTableDrivenScenario(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.scenario = $root.gauge.messages.ProtoScenario.decode(reader, reader.uint32()); - break; - case 2: - message.tableRowIndex = reader.int32(); - break; - case 3: - message.scenarioTableRowIndex = reader.int32(); - break; - case 4: - message.isSpecTableDriven = reader.bool(); - break; - case 5: - message.isScenarioTableDriven = reader.bool(); - break; - case 6: - message.scenarioDataTable = $root.gauge.messages.ProtoTable.decode(reader, reader.uint32()); - break; - case 7: - message.scenarioTableRow = $root.gauge.messages.ProtoTable.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoTableDrivenScenario message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoTableDrivenScenario - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoTableDrivenScenario} ProtoTableDrivenScenario - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoTableDrivenScenario.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoTableDrivenScenario message. - * @function verify - * @memberof gauge.messages.ProtoTableDrivenScenario - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoTableDrivenScenario.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.scenario != null && message.hasOwnProperty("scenario")) { - var error = $root.gauge.messages.ProtoScenario.verify(message.scenario); - if (error) - return "scenario." + error; - } - if (message.tableRowIndex != null && message.hasOwnProperty("tableRowIndex")) - if (!$util.isInteger(message.tableRowIndex)) - return "tableRowIndex: integer expected"; - if (message.scenarioTableRowIndex != null && message.hasOwnProperty("scenarioTableRowIndex")) - if (!$util.isInteger(message.scenarioTableRowIndex)) - return "scenarioTableRowIndex: integer expected"; - if (message.isSpecTableDriven != null && message.hasOwnProperty("isSpecTableDriven")) - if (typeof message.isSpecTableDriven !== "boolean") - return "isSpecTableDriven: boolean expected"; - if (message.isScenarioTableDriven != null && message.hasOwnProperty("isScenarioTableDriven")) - if (typeof message.isScenarioTableDriven !== "boolean") - return "isScenarioTableDriven: boolean expected"; - if (message.scenarioDataTable != null && message.hasOwnProperty("scenarioDataTable")) { - var error = $root.gauge.messages.ProtoTable.verify(message.scenarioDataTable); - if (error) - return "scenarioDataTable." + error; - } - if (message.scenarioTableRow != null && message.hasOwnProperty("scenarioTableRow")) { - var error = $root.gauge.messages.ProtoTable.verify(message.scenarioTableRow); - if (error) - return "scenarioTableRow." + error; - } - return null; - }; - - /** - * Creates a ProtoTableDrivenScenario message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoTableDrivenScenario - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoTableDrivenScenario} ProtoTableDrivenScenario - */ - ProtoTableDrivenScenario.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoTableDrivenScenario) - return object; - var message = new $root.gauge.messages.ProtoTableDrivenScenario(); - if (object.scenario != null) { - if (typeof object.scenario !== "object") - throw TypeError(".gauge.messages.ProtoTableDrivenScenario.scenario: object expected"); - message.scenario = $root.gauge.messages.ProtoScenario.fromObject(object.scenario); - } - if (object.tableRowIndex != null) - message.tableRowIndex = object.tableRowIndex | 0; - if (object.scenarioTableRowIndex != null) - message.scenarioTableRowIndex = object.scenarioTableRowIndex | 0; - if (object.isSpecTableDriven != null) - message.isSpecTableDriven = Boolean(object.isSpecTableDriven); - if (object.isScenarioTableDriven != null) - message.isScenarioTableDriven = Boolean(object.isScenarioTableDriven); - if (object.scenarioDataTable != null) { - if (typeof object.scenarioDataTable !== "object") - throw TypeError(".gauge.messages.ProtoTableDrivenScenario.scenarioDataTable: object expected"); - message.scenarioDataTable = $root.gauge.messages.ProtoTable.fromObject(object.scenarioDataTable); - } - if (object.scenarioTableRow != null) { - if (typeof object.scenarioTableRow !== "object") - throw TypeError(".gauge.messages.ProtoTableDrivenScenario.scenarioTableRow: object expected"); - message.scenarioTableRow = $root.gauge.messages.ProtoTable.fromObject(object.scenarioTableRow); - } - return message; - }; - - /** - * Creates a plain object from a ProtoTableDrivenScenario message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoTableDrivenScenario - * @static - * @param {gauge.messages.ProtoTableDrivenScenario} message ProtoTableDrivenScenario - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoTableDrivenScenario.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.scenario = null; - object.tableRowIndex = 0; - object.scenarioTableRowIndex = 0; - object.isSpecTableDriven = false; - object.isScenarioTableDriven = false; - object.scenarioDataTable = null; - object.scenarioTableRow = null; - } - if (message.scenario != null && message.hasOwnProperty("scenario")) - object.scenario = $root.gauge.messages.ProtoScenario.toObject(message.scenario, options); - if (message.tableRowIndex != null && message.hasOwnProperty("tableRowIndex")) - object.tableRowIndex = message.tableRowIndex; - if (message.scenarioTableRowIndex != null && message.hasOwnProperty("scenarioTableRowIndex")) - object.scenarioTableRowIndex = message.scenarioTableRowIndex; - if (message.isSpecTableDriven != null && message.hasOwnProperty("isSpecTableDriven")) - object.isSpecTableDriven = message.isSpecTableDriven; - if (message.isScenarioTableDriven != null && message.hasOwnProperty("isScenarioTableDriven")) - object.isScenarioTableDriven = message.isScenarioTableDriven; - if (message.scenarioDataTable != null && message.hasOwnProperty("scenarioDataTable")) - object.scenarioDataTable = $root.gauge.messages.ProtoTable.toObject(message.scenarioDataTable, options); - if (message.scenarioTableRow != null && message.hasOwnProperty("scenarioTableRow")) - object.scenarioTableRow = $root.gauge.messages.ProtoTable.toObject(message.scenarioTableRow, options); - return object; - }; - - /** - * Converts this ProtoTableDrivenScenario to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoTableDrivenScenario - * @instance - * @returns {Object.} JSON object - */ - ProtoTableDrivenScenario.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoTableDrivenScenario; - })(); - - messages.ProtoStep = (function() { - - /** - * Properties of a ProtoStep. - * @memberof gauge.messages - * @interface IProtoStep - * @property {string|null} [actualText] Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values. - * @property {string|null} [parsedText] Contains the parsed text of the Step. This will have placeholders for the parameters. - * @property {Array.|null} [fragments] Collection of a list of fragments for a Step. A fragment could be either text or parameter. - * @property {gauge.messages.IProtoStepExecutionResult|null} [stepExecutionResult] Holds the result from the execution. - * @property {Array.|null} [preHookMessages] Additional information at pre hook exec time to be available on reports - * @property {Array.|null} [postHookMessages] Additional information at post hook exec time to be available on reports - * @property {Array.|null} [preHookScreenshots] [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - * @property {Array.|null} [postHookScreenshots] [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - * @property {Array.|null} [preHookScreenshotFiles] Screenshots captured on pre hook exec time to be available on reports - * @property {Array.|null} [postHookScreenshotFiles] Screenshots captured on post hook exec time to be available on reports - */ - - /** - * Constructs a new ProtoStep. - * @memberof gauge.messages - * @classdesc A proto object representing a Step - * @implements IProtoStep - * @constructor - * @param {gauge.messages.IProtoStep=} [properties] Properties to set - */ - function ProtoStep(properties) { - this.fragments = []; - this.preHookMessages = []; - this.postHookMessages = []; - this.preHookScreenshots = []; - this.postHookScreenshots = []; - this.preHookScreenshotFiles = []; - this.postHookScreenshotFiles = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values. - * @member {string} actualText - * @memberof gauge.messages.ProtoStep - * @instance - */ - ProtoStep.prototype.actualText = ""; - - /** - * Contains the parsed text of the Step. This will have placeholders for the parameters. - * @member {string} parsedText - * @memberof gauge.messages.ProtoStep - * @instance - */ - ProtoStep.prototype.parsedText = ""; - - /** - * Collection of a list of fragments for a Step. A fragment could be either text or parameter. - * @member {Array.} fragments - * @memberof gauge.messages.ProtoStep - * @instance - */ - ProtoStep.prototype.fragments = $util.emptyArray; - - /** - * Holds the result from the execution. - * @member {gauge.messages.IProtoStepExecutionResult|null|undefined} stepExecutionResult - * @memberof gauge.messages.ProtoStep - * @instance - */ - ProtoStep.prototype.stepExecutionResult = null; - - /** - * Additional information at pre hook exec time to be available on reports - * @member {Array.} preHookMessages - * @memberof gauge.messages.ProtoStep - * @instance - */ - ProtoStep.prototype.preHookMessages = $util.emptyArray; - - /** - * Additional information at post hook exec time to be available on reports - * @member {Array.} postHookMessages - * @memberof gauge.messages.ProtoStep - * @instance - */ - ProtoStep.prototype.postHookMessages = $util.emptyArray; - - /** - * [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - * @member {Array.} preHookScreenshots - * @memberof gauge.messages.ProtoStep - * @instance - */ - ProtoStep.prototype.preHookScreenshots = $util.emptyArray; - - /** - * [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - * @member {Array.} postHookScreenshots - * @memberof gauge.messages.ProtoStep - * @instance - */ - ProtoStep.prototype.postHookScreenshots = $util.emptyArray; - - /** - * Screenshots captured on pre hook exec time to be available on reports - * @member {Array.} preHookScreenshotFiles - * @memberof gauge.messages.ProtoStep - * @instance - */ - ProtoStep.prototype.preHookScreenshotFiles = $util.emptyArray; - - /** - * Screenshots captured on post hook exec time to be available on reports - * @member {Array.} postHookScreenshotFiles - * @memberof gauge.messages.ProtoStep - * @instance - */ - ProtoStep.prototype.postHookScreenshotFiles = $util.emptyArray; - - /** - * Creates a new ProtoStep instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoStep - * @static - * @param {gauge.messages.IProtoStep=} [properties] Properties to set - * @returns {gauge.messages.ProtoStep} ProtoStep instance - */ - ProtoStep.create = function create(properties) { - return new ProtoStep(properties); - }; - - /** - * Encodes the specified ProtoStep message. Does not implicitly {@link gauge.messages.ProtoStep.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoStep - * @static - * @param {gauge.messages.IProtoStep} message ProtoStep message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoStep.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.actualText != null && message.hasOwnProperty("actualText")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.actualText); - if (message.parsedText != null && message.hasOwnProperty("parsedText")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parsedText); - if (message.fragments != null && message.fragments.length) - for (var i = 0; i < message.fragments.length; ++i) - $root.gauge.messages.Fragment.encode(message.fragments[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.stepExecutionResult != null && message.hasOwnProperty("stepExecutionResult")) - $root.gauge.messages.ProtoStepExecutionResult.encode(message.stepExecutionResult, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.preHookMessages != null && message.preHookMessages.length) - for (var i = 0; i < message.preHookMessages.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.preHookMessages[i]); - if (message.postHookMessages != null && message.postHookMessages.length) - for (var i = 0; i < message.postHookMessages.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.postHookMessages[i]); - if (message.preHookScreenshots != null && message.preHookScreenshots.length) - for (var i = 0; i < message.preHookScreenshots.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.preHookScreenshots[i]); - if (message.postHookScreenshots != null && message.postHookScreenshots.length) - for (var i = 0; i < message.postHookScreenshots.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.postHookScreenshots[i]); - if (message.preHookScreenshotFiles != null && message.preHookScreenshotFiles.length) - for (var i = 0; i < message.preHookScreenshotFiles.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.preHookScreenshotFiles[i]); - if (message.postHookScreenshotFiles != null && message.postHookScreenshotFiles.length) - for (var i = 0; i < message.postHookScreenshotFiles.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.postHookScreenshotFiles[i]); - return writer; - }; - - /** - * Encodes the specified ProtoStep message, length delimited. Does not implicitly {@link gauge.messages.ProtoStep.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoStep - * @static - * @param {gauge.messages.IProtoStep} message ProtoStep message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoStep.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoStep message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoStep - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoStep} ProtoStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoStep.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoStep(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.actualText = reader.string(); - break; - case 2: - message.parsedText = reader.string(); - break; - case 3: - if (!(message.fragments && message.fragments.length)) - message.fragments = []; - message.fragments.push($root.gauge.messages.Fragment.decode(reader, reader.uint32())); - break; - case 4: - message.stepExecutionResult = $root.gauge.messages.ProtoStepExecutionResult.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.preHookMessages && message.preHookMessages.length)) - message.preHookMessages = []; - message.preHookMessages.push(reader.string()); - break; - case 6: - if (!(message.postHookMessages && message.postHookMessages.length)) - message.postHookMessages = []; - message.postHookMessages.push(reader.string()); - break; - case 7: - if (!(message.preHookScreenshots && message.preHookScreenshots.length)) - message.preHookScreenshots = []; - message.preHookScreenshots.push(reader.bytes()); - break; - case 8: - if (!(message.postHookScreenshots && message.postHookScreenshots.length)) - message.postHookScreenshots = []; - message.postHookScreenshots.push(reader.bytes()); - break; - case 9: - if (!(message.preHookScreenshotFiles && message.preHookScreenshotFiles.length)) - message.preHookScreenshotFiles = []; - message.preHookScreenshotFiles.push(reader.string()); - break; - case 10: - if (!(message.postHookScreenshotFiles && message.postHookScreenshotFiles.length)) - message.postHookScreenshotFiles = []; - message.postHookScreenshotFiles.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoStep message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoStep - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoStep} ProtoStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoStep.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoStep message. - * @function verify - * @memberof gauge.messages.ProtoStep - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoStep.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.actualText != null && message.hasOwnProperty("actualText")) - if (!$util.isString(message.actualText)) - return "actualText: string expected"; - if (message.parsedText != null && message.hasOwnProperty("parsedText")) - if (!$util.isString(message.parsedText)) - return "parsedText: string expected"; - if (message.fragments != null && message.hasOwnProperty("fragments")) { - if (!Array.isArray(message.fragments)) - return "fragments: array expected"; - for (var i = 0; i < message.fragments.length; ++i) { - var error = $root.gauge.messages.Fragment.verify(message.fragments[i]); - if (error) - return "fragments." + error; - } - } - if (message.stepExecutionResult != null && message.hasOwnProperty("stepExecutionResult")) { - var error = $root.gauge.messages.ProtoStepExecutionResult.verify(message.stepExecutionResult); - if (error) - return "stepExecutionResult." + error; - } - if (message.preHookMessages != null && message.hasOwnProperty("preHookMessages")) { - if (!Array.isArray(message.preHookMessages)) - return "preHookMessages: array expected"; - for (var i = 0; i < message.preHookMessages.length; ++i) - if (!$util.isString(message.preHookMessages[i])) - return "preHookMessages: string[] expected"; - } - if (message.postHookMessages != null && message.hasOwnProperty("postHookMessages")) { - if (!Array.isArray(message.postHookMessages)) - return "postHookMessages: array expected"; - for (var i = 0; i < message.postHookMessages.length; ++i) - if (!$util.isString(message.postHookMessages[i])) - return "postHookMessages: string[] expected"; - } - if (message.preHookScreenshots != null && message.hasOwnProperty("preHookScreenshots")) { - if (!Array.isArray(message.preHookScreenshots)) - return "preHookScreenshots: array expected"; - for (var i = 0; i < message.preHookScreenshots.length; ++i) - if (!(message.preHookScreenshots[i] && typeof message.preHookScreenshots[i].length === "number" || $util.isString(message.preHookScreenshots[i]))) - return "preHookScreenshots: buffer[] expected"; - } - if (message.postHookScreenshots != null && message.hasOwnProperty("postHookScreenshots")) { - if (!Array.isArray(message.postHookScreenshots)) - return "postHookScreenshots: array expected"; - for (var i = 0; i < message.postHookScreenshots.length; ++i) - if (!(message.postHookScreenshots[i] && typeof message.postHookScreenshots[i].length === "number" || $util.isString(message.postHookScreenshots[i]))) - return "postHookScreenshots: buffer[] expected"; - } - if (message.preHookScreenshotFiles != null && message.hasOwnProperty("preHookScreenshotFiles")) { - if (!Array.isArray(message.preHookScreenshotFiles)) - return "preHookScreenshotFiles: array expected"; - for (var i = 0; i < message.preHookScreenshotFiles.length; ++i) - if (!$util.isString(message.preHookScreenshotFiles[i])) - return "preHookScreenshotFiles: string[] expected"; - } - if (message.postHookScreenshotFiles != null && message.hasOwnProperty("postHookScreenshotFiles")) { - if (!Array.isArray(message.postHookScreenshotFiles)) - return "postHookScreenshotFiles: array expected"; - for (var i = 0; i < message.postHookScreenshotFiles.length; ++i) - if (!$util.isString(message.postHookScreenshotFiles[i])) - return "postHookScreenshotFiles: string[] expected"; - } - return null; - }; - - /** - * Creates a ProtoStep message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoStep - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoStep} ProtoStep - */ - ProtoStep.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoStep) - return object; - var message = new $root.gauge.messages.ProtoStep(); - if (object.actualText != null) - message.actualText = String(object.actualText); - if (object.parsedText != null) - message.parsedText = String(object.parsedText); - if (object.fragments) { - if (!Array.isArray(object.fragments)) - throw TypeError(".gauge.messages.ProtoStep.fragments: array expected"); - message.fragments = []; - for (var i = 0; i < object.fragments.length; ++i) { - if (typeof object.fragments[i] !== "object") - throw TypeError(".gauge.messages.ProtoStep.fragments: object expected"); - message.fragments[i] = $root.gauge.messages.Fragment.fromObject(object.fragments[i]); - } - } - if (object.stepExecutionResult != null) { - if (typeof object.stepExecutionResult !== "object") - throw TypeError(".gauge.messages.ProtoStep.stepExecutionResult: object expected"); - message.stepExecutionResult = $root.gauge.messages.ProtoStepExecutionResult.fromObject(object.stepExecutionResult); - } - if (object.preHookMessages) { - if (!Array.isArray(object.preHookMessages)) - throw TypeError(".gauge.messages.ProtoStep.preHookMessages: array expected"); - message.preHookMessages = []; - for (var i = 0; i < object.preHookMessages.length; ++i) - message.preHookMessages[i] = String(object.preHookMessages[i]); - } - if (object.postHookMessages) { - if (!Array.isArray(object.postHookMessages)) - throw TypeError(".gauge.messages.ProtoStep.postHookMessages: array expected"); - message.postHookMessages = []; - for (var i = 0; i < object.postHookMessages.length; ++i) - message.postHookMessages[i] = String(object.postHookMessages[i]); - } - if (object.preHookScreenshots) { - if (!Array.isArray(object.preHookScreenshots)) - throw TypeError(".gauge.messages.ProtoStep.preHookScreenshots: array expected"); - message.preHookScreenshots = []; - for (var i = 0; i < object.preHookScreenshots.length; ++i) - if (typeof object.preHookScreenshots[i] === "string") - $util.base64.decode(object.preHookScreenshots[i], message.preHookScreenshots[i] = $util.newBuffer($util.base64.length(object.preHookScreenshots[i])), 0); - else if (object.preHookScreenshots[i].length) - message.preHookScreenshots[i] = object.preHookScreenshots[i]; - } - if (object.postHookScreenshots) { - if (!Array.isArray(object.postHookScreenshots)) - throw TypeError(".gauge.messages.ProtoStep.postHookScreenshots: array expected"); - message.postHookScreenshots = []; - for (var i = 0; i < object.postHookScreenshots.length; ++i) - if (typeof object.postHookScreenshots[i] === "string") - $util.base64.decode(object.postHookScreenshots[i], message.postHookScreenshots[i] = $util.newBuffer($util.base64.length(object.postHookScreenshots[i])), 0); - else if (object.postHookScreenshots[i].length) - message.postHookScreenshots[i] = object.postHookScreenshots[i]; - } - if (object.preHookScreenshotFiles) { - if (!Array.isArray(object.preHookScreenshotFiles)) - throw TypeError(".gauge.messages.ProtoStep.preHookScreenshotFiles: array expected"); - message.preHookScreenshotFiles = []; - for (var i = 0; i < object.preHookScreenshotFiles.length; ++i) - message.preHookScreenshotFiles[i] = String(object.preHookScreenshotFiles[i]); - } - if (object.postHookScreenshotFiles) { - if (!Array.isArray(object.postHookScreenshotFiles)) - throw TypeError(".gauge.messages.ProtoStep.postHookScreenshotFiles: array expected"); - message.postHookScreenshotFiles = []; - for (var i = 0; i < object.postHookScreenshotFiles.length; ++i) - message.postHookScreenshotFiles[i] = String(object.postHookScreenshotFiles[i]); - } - return message; - }; - - /** - * Creates a plain object from a ProtoStep message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoStep - * @static - * @param {gauge.messages.ProtoStep} message ProtoStep - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoStep.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.fragments = []; - object.preHookMessages = []; - object.postHookMessages = []; - object.preHookScreenshots = []; - object.postHookScreenshots = []; - object.preHookScreenshotFiles = []; - object.postHookScreenshotFiles = []; - } - if (options.defaults) { - object.actualText = ""; - object.parsedText = ""; - object.stepExecutionResult = null; - } - if (message.actualText != null && message.hasOwnProperty("actualText")) - object.actualText = message.actualText; - if (message.parsedText != null && message.hasOwnProperty("parsedText")) - object.parsedText = message.parsedText; - if (message.fragments && message.fragments.length) { - object.fragments = []; - for (var j = 0; j < message.fragments.length; ++j) - object.fragments[j] = $root.gauge.messages.Fragment.toObject(message.fragments[j], options); - } - if (message.stepExecutionResult != null && message.hasOwnProperty("stepExecutionResult")) - object.stepExecutionResult = $root.gauge.messages.ProtoStepExecutionResult.toObject(message.stepExecutionResult, options); - if (message.preHookMessages && message.preHookMessages.length) { - object.preHookMessages = []; - for (var j = 0; j < message.preHookMessages.length; ++j) - object.preHookMessages[j] = message.preHookMessages[j]; - } - if (message.postHookMessages && message.postHookMessages.length) { - object.postHookMessages = []; - for (var j = 0; j < message.postHookMessages.length; ++j) - object.postHookMessages[j] = message.postHookMessages[j]; - } - if (message.preHookScreenshots && message.preHookScreenshots.length) { - object.preHookScreenshots = []; - for (var j = 0; j < message.preHookScreenshots.length; ++j) - object.preHookScreenshots[j] = options.bytes === String ? $util.base64.encode(message.preHookScreenshots[j], 0, message.preHookScreenshots[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.preHookScreenshots[j]) : message.preHookScreenshots[j]; - } - if (message.postHookScreenshots && message.postHookScreenshots.length) { - object.postHookScreenshots = []; - for (var j = 0; j < message.postHookScreenshots.length; ++j) - object.postHookScreenshots[j] = options.bytes === String ? $util.base64.encode(message.postHookScreenshots[j], 0, message.postHookScreenshots[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.postHookScreenshots[j]) : message.postHookScreenshots[j]; - } - if (message.preHookScreenshotFiles && message.preHookScreenshotFiles.length) { - object.preHookScreenshotFiles = []; - for (var j = 0; j < message.preHookScreenshotFiles.length; ++j) - object.preHookScreenshotFiles[j] = message.preHookScreenshotFiles[j]; - } - if (message.postHookScreenshotFiles && message.postHookScreenshotFiles.length) { - object.postHookScreenshotFiles = []; - for (var j = 0; j < message.postHookScreenshotFiles.length; ++j) - object.postHookScreenshotFiles[j] = message.postHookScreenshotFiles[j]; - } - return object; - }; - - /** - * Converts this ProtoStep to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoStep - * @instance - * @returns {Object.} JSON object - */ - ProtoStep.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoStep; - })(); - - messages.ProtoConcept = (function() { - - /** - * Properties of a ProtoConcept. - * @memberof gauge.messages - * @interface IProtoConcept - * @property {gauge.messages.IProtoStep|null} [conceptStep] Represents the Step value of a Concept. - * @property {Array.|null} [steps] Collection of Steps in the given concepts. - * @property {gauge.messages.IProtoStepExecutionResult|null} [conceptExecutionResult] Holds the execution result. - */ - - /** - * Constructs a new ProtoConcept. - * @memberof gauge.messages - * @classdesc A proto object representing a Concept - * @implements IProtoConcept - * @constructor - * @param {gauge.messages.IProtoConcept=} [properties] Properties to set - */ - function ProtoConcept(properties) { - this.steps = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Represents the Step value of a Concept. - * @member {gauge.messages.IProtoStep|null|undefined} conceptStep - * @memberof gauge.messages.ProtoConcept - * @instance - */ - ProtoConcept.prototype.conceptStep = null; - - /** - * Collection of Steps in the given concepts. - * @member {Array.} steps - * @memberof gauge.messages.ProtoConcept - * @instance - */ - ProtoConcept.prototype.steps = $util.emptyArray; - - /** - * Holds the execution result. - * @member {gauge.messages.IProtoStepExecutionResult|null|undefined} conceptExecutionResult - * @memberof gauge.messages.ProtoConcept - * @instance - */ - ProtoConcept.prototype.conceptExecutionResult = null; - - /** - * Creates a new ProtoConcept instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoConcept - * @static - * @param {gauge.messages.IProtoConcept=} [properties] Properties to set - * @returns {gauge.messages.ProtoConcept} ProtoConcept instance - */ - ProtoConcept.create = function create(properties) { - return new ProtoConcept(properties); - }; - - /** - * Encodes the specified ProtoConcept message. Does not implicitly {@link gauge.messages.ProtoConcept.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoConcept - * @static - * @param {gauge.messages.IProtoConcept} message ProtoConcept message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoConcept.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.conceptStep != null && message.hasOwnProperty("conceptStep")) - $root.gauge.messages.ProtoStep.encode(message.conceptStep, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.steps != null && message.steps.length) - for (var i = 0; i < message.steps.length; ++i) - $root.gauge.messages.ProtoItem.encode(message.steps[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.conceptExecutionResult != null && message.hasOwnProperty("conceptExecutionResult")) - $root.gauge.messages.ProtoStepExecutionResult.encode(message.conceptExecutionResult, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ProtoConcept message, length delimited. Does not implicitly {@link gauge.messages.ProtoConcept.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoConcept - * @static - * @param {gauge.messages.IProtoConcept} message ProtoConcept message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoConcept.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoConcept message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoConcept - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoConcept} ProtoConcept - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoConcept.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoConcept(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.conceptStep = $root.gauge.messages.ProtoStep.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.steps && message.steps.length)) - message.steps = []; - message.steps.push($root.gauge.messages.ProtoItem.decode(reader, reader.uint32())); - break; - case 3: - message.conceptExecutionResult = $root.gauge.messages.ProtoStepExecutionResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoConcept message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoConcept - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoConcept} ProtoConcept - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoConcept.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoConcept message. - * @function verify - * @memberof gauge.messages.ProtoConcept - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoConcept.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.conceptStep != null && message.hasOwnProperty("conceptStep")) { - var error = $root.gauge.messages.ProtoStep.verify(message.conceptStep); - if (error) - return "conceptStep." + error; - } - if (message.steps != null && message.hasOwnProperty("steps")) { - if (!Array.isArray(message.steps)) - return "steps: array expected"; - for (var i = 0; i < message.steps.length; ++i) { - var error = $root.gauge.messages.ProtoItem.verify(message.steps[i]); - if (error) - return "steps." + error; - } - } - if (message.conceptExecutionResult != null && message.hasOwnProperty("conceptExecutionResult")) { - var error = $root.gauge.messages.ProtoStepExecutionResult.verify(message.conceptExecutionResult); - if (error) - return "conceptExecutionResult." + error; - } - return null; - }; - - /** - * Creates a ProtoConcept message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoConcept - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoConcept} ProtoConcept - */ - ProtoConcept.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoConcept) - return object; - var message = new $root.gauge.messages.ProtoConcept(); - if (object.conceptStep != null) { - if (typeof object.conceptStep !== "object") - throw TypeError(".gauge.messages.ProtoConcept.conceptStep: object expected"); - message.conceptStep = $root.gauge.messages.ProtoStep.fromObject(object.conceptStep); - } - if (object.steps) { - if (!Array.isArray(object.steps)) - throw TypeError(".gauge.messages.ProtoConcept.steps: array expected"); - message.steps = []; - for (var i = 0; i < object.steps.length; ++i) { - if (typeof object.steps[i] !== "object") - throw TypeError(".gauge.messages.ProtoConcept.steps: object expected"); - message.steps[i] = $root.gauge.messages.ProtoItem.fromObject(object.steps[i]); - } - } - if (object.conceptExecutionResult != null) { - if (typeof object.conceptExecutionResult !== "object") - throw TypeError(".gauge.messages.ProtoConcept.conceptExecutionResult: object expected"); - message.conceptExecutionResult = $root.gauge.messages.ProtoStepExecutionResult.fromObject(object.conceptExecutionResult); - } - return message; - }; - - /** - * Creates a plain object from a ProtoConcept message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoConcept - * @static - * @param {gauge.messages.ProtoConcept} message ProtoConcept - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoConcept.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.steps = []; - if (options.defaults) { - object.conceptStep = null; - object.conceptExecutionResult = null; - } - if (message.conceptStep != null && message.hasOwnProperty("conceptStep")) - object.conceptStep = $root.gauge.messages.ProtoStep.toObject(message.conceptStep, options); - if (message.steps && message.steps.length) { - object.steps = []; - for (var j = 0; j < message.steps.length; ++j) - object.steps[j] = $root.gauge.messages.ProtoItem.toObject(message.steps[j], options); - } - if (message.conceptExecutionResult != null && message.hasOwnProperty("conceptExecutionResult")) - object.conceptExecutionResult = $root.gauge.messages.ProtoStepExecutionResult.toObject(message.conceptExecutionResult, options); - return object; - }; - - /** - * Converts this ProtoConcept to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoConcept - * @instance - * @returns {Object.} JSON object - */ - ProtoConcept.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoConcept; - })(); - - messages.ProtoTags = (function() { - - /** - * Properties of a ProtoTags. - * @memberof gauge.messages - * @interface IProtoTags - * @property {Array.|null} [tags] A collection of Tags - */ - - /** - * Constructs a new ProtoTags. - * @memberof gauge.messages - * @classdesc A proto object representing Tags - * @implements IProtoTags - * @constructor - * @param {gauge.messages.IProtoTags=} [properties] Properties to set - */ - function ProtoTags(properties) { - this.tags = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * A collection of Tags - * @member {Array.} tags - * @memberof gauge.messages.ProtoTags - * @instance - */ - ProtoTags.prototype.tags = $util.emptyArray; - - /** - * Creates a new ProtoTags instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoTags - * @static - * @param {gauge.messages.IProtoTags=} [properties] Properties to set - * @returns {gauge.messages.ProtoTags} ProtoTags instance - */ - ProtoTags.create = function create(properties) { - return new ProtoTags(properties); - }; - - /** - * Encodes the specified ProtoTags message. Does not implicitly {@link gauge.messages.ProtoTags.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoTags - * @static - * @param {gauge.messages.IProtoTags} message ProtoTags message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoTags.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tags[i]); - return writer; - }; - - /** - * Encodes the specified ProtoTags message, length delimited. Does not implicitly {@link gauge.messages.ProtoTags.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoTags - * @static - * @param {gauge.messages.IProtoTags} message ProtoTags message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoTags.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoTags message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoTags - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoTags} ProtoTags - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoTags.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoTags(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoTags message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoTags - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoTags} ProtoTags - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoTags.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoTags message. - * @function verify - * @memberof gauge.messages.ProtoTags - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoTags.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - return null; - }; - - /** - * Creates a ProtoTags message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoTags - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoTags} ProtoTags - */ - ProtoTags.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoTags) - return object; - var message = new $root.gauge.messages.ProtoTags(); - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".gauge.messages.ProtoTags.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) - message.tags[i] = String(object.tags[i]); - } - return message; - }; - - /** - * Creates a plain object from a ProtoTags message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoTags - * @static - * @param {gauge.messages.ProtoTags} message ProtoTags - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoTags.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.tags = []; - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = message.tags[j]; - } - return object; - }; - - /** - * Converts this ProtoTags to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoTags - * @instance - * @returns {Object.} JSON object - */ - ProtoTags.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoTags; - })(); - - messages.Fragment = (function() { - - /** - * Properties of a Fragment. - * @memberof gauge.messages - * @interface IFragment - * @property {gauge.messages.Fragment.FragmentType|null} [fragmentType] Type of Fragment, valid values are Text, Parameter - * @property {string|null} [text] Text part of the Fragment, valid only if FragmentType=Text - * @property {gauge.messages.IParameter|null} [parameter] Parameter part of the Fragment, valid only if FragmentType=Parameter - */ - - /** - * Constructs a new Fragment. - * @memberof gauge.messages - * @classdesc Fragments, put together make up A Step - * @implements IFragment - * @constructor - * @param {gauge.messages.IFragment=} [properties] Properties to set - */ - function Fragment(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Type of Fragment, valid values are Text, Parameter - * @member {gauge.messages.Fragment.FragmentType} fragmentType - * @memberof gauge.messages.Fragment - * @instance - */ - Fragment.prototype.fragmentType = 0; - - /** - * Text part of the Fragment, valid only if FragmentType=Text - * @member {string} text - * @memberof gauge.messages.Fragment - * @instance - */ - Fragment.prototype.text = ""; - - /** - * Parameter part of the Fragment, valid only if FragmentType=Parameter - * @member {gauge.messages.IParameter|null|undefined} parameter - * @memberof gauge.messages.Fragment - * @instance - */ - Fragment.prototype.parameter = null; - - /** - * Creates a new Fragment instance using the specified properties. - * @function create - * @memberof gauge.messages.Fragment - * @static - * @param {gauge.messages.IFragment=} [properties] Properties to set - * @returns {gauge.messages.Fragment} Fragment instance - */ - Fragment.create = function create(properties) { - return new Fragment(properties); - }; - - /** - * Encodes the specified Fragment message. Does not implicitly {@link gauge.messages.Fragment.verify|verify} messages. - * @function encode - * @memberof gauge.messages.Fragment - * @static - * @param {gauge.messages.IFragment} message Fragment message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Fragment.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fragmentType != null && message.hasOwnProperty("fragmentType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.fragmentType); - if (message.text != null && message.hasOwnProperty("text")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.text); - if (message.parameter != null && message.hasOwnProperty("parameter")) - $root.gauge.messages.Parameter.encode(message.parameter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Fragment message, length delimited. Does not implicitly {@link gauge.messages.Fragment.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.Fragment - * @static - * @param {gauge.messages.IFragment} message Fragment message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Fragment.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Fragment message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.Fragment - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.Fragment} Fragment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Fragment.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.Fragment(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fragmentType = reader.int32(); - break; - case 2: - message.text = reader.string(); - break; - case 3: - message.parameter = $root.gauge.messages.Parameter.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Fragment message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.Fragment - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.Fragment} Fragment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Fragment.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Fragment message. - * @function verify - * @memberof gauge.messages.Fragment - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Fragment.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fragmentType != null && message.hasOwnProperty("fragmentType")) - switch (message.fragmentType) { - default: - return "fragmentType: enum value expected"; - case 0: - case 1: - break; - } - if (message.text != null && message.hasOwnProperty("text")) - if (!$util.isString(message.text)) - return "text: string expected"; - if (message.parameter != null && message.hasOwnProperty("parameter")) { - var error = $root.gauge.messages.Parameter.verify(message.parameter); - if (error) - return "parameter." + error; - } - return null; - }; - - /** - * Creates a Fragment message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.Fragment - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.Fragment} Fragment - */ - Fragment.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.Fragment) - return object; - var message = new $root.gauge.messages.Fragment(); - switch (object.fragmentType) { - case "Text": - case 0: - message.fragmentType = 0; - break; - case "Parameter": - case 1: - message.fragmentType = 1; - break; - } - if (object.text != null) - message.text = String(object.text); - if (object.parameter != null) { - if (typeof object.parameter !== "object") - throw TypeError(".gauge.messages.Fragment.parameter: object expected"); - message.parameter = $root.gauge.messages.Parameter.fromObject(object.parameter); - } - return message; - }; - - /** - * Creates a plain object from a Fragment message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.Fragment - * @static - * @param {gauge.messages.Fragment} message Fragment - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Fragment.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.fragmentType = options.enums === String ? "Text" : 0; - object.text = ""; - object.parameter = null; - } - if (message.fragmentType != null && message.hasOwnProperty("fragmentType")) - object.fragmentType = options.enums === String ? $root.gauge.messages.Fragment.FragmentType[message.fragmentType] : message.fragmentType; - if (message.text != null && message.hasOwnProperty("text")) - object.text = message.text; - if (message.parameter != null && message.hasOwnProperty("parameter")) - object.parameter = $root.gauge.messages.Parameter.toObject(message.parameter, options); - return object; - }; - - /** - * Converts this Fragment to JSON. - * @function toJSON - * @memberof gauge.messages.Fragment - * @instance - * @returns {Object.} JSON object - */ - Fragment.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Enum representing the types of Fragment - * @name gauge.messages.Fragment.FragmentType - * @enum {string} - * @property {number} Text=0 Fragment is a Text part - * @property {number} Parameter=1 Fragment is a Parameter part - */ - Fragment.FragmentType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "Text"] = 0; - values[valuesById[1] = "Parameter"] = 1; - return values; - })(); - - return Fragment; - })(); - - messages.Parameter = (function() { - - /** - * Properties of a Parameter. - * @memberof gauge.messages - * @interface IParameter - * @property {gauge.messages.Parameter.ParameterType|null} [parameterType] Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table - * @property {string|null} [value] Holds the value of the parameter - * @property {string|null} [name] Holds the name of the parameter, used as Key to lookup the value. - * @property {gauge.messages.IProtoTable|null} [table] Holds the table value, if parameterType=Table or Special_Table - */ - - /** - * Constructs a new Parameter. - * @memberof gauge.messages - * @classdesc A proto object representing Fragment. - * @implements IParameter - * @constructor - * @param {gauge.messages.IParameter=} [properties] Properties to set - */ - function Parameter(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table - * @member {gauge.messages.Parameter.ParameterType} parameterType - * @memberof gauge.messages.Parameter - * @instance - */ - Parameter.prototype.parameterType = 0; - - /** - * Holds the value of the parameter - * @member {string} value - * @memberof gauge.messages.Parameter - * @instance - */ - Parameter.prototype.value = ""; - - /** - * Holds the name of the parameter, used as Key to lookup the value. - * @member {string} name - * @memberof gauge.messages.Parameter - * @instance - */ - Parameter.prototype.name = ""; - - /** - * Holds the table value, if parameterType=Table or Special_Table - * @member {gauge.messages.IProtoTable|null|undefined} table - * @memberof gauge.messages.Parameter - * @instance - */ - Parameter.prototype.table = null; - - /** - * Creates a new Parameter instance using the specified properties. - * @function create - * @memberof gauge.messages.Parameter - * @static - * @param {gauge.messages.IParameter=} [properties] Properties to set - * @returns {gauge.messages.Parameter} Parameter instance - */ - Parameter.create = function create(properties) { - return new Parameter(properties); - }; - - /** - * Encodes the specified Parameter message. Does not implicitly {@link gauge.messages.Parameter.verify|verify} messages. - * @function encode - * @memberof gauge.messages.Parameter - * @static - * @param {gauge.messages.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameterType != null && message.hasOwnProperty("parameterType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.parameterType); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - if (message.table != null && message.hasOwnProperty("table")) - $root.gauge.messages.ProtoTable.encode(message.table, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link gauge.messages.Parameter.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.Parameter - * @static - * @param {gauge.messages.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Parameter message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.Parameter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parameterType = reader.int32(); - break; - case 2: - message.value = reader.string(); - break; - case 3: - message.name = reader.string(); - break; - case 4: - message.table = $root.gauge.messages.ProtoTable.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Parameter message. - * @function verify - * @memberof gauge.messages.Parameter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Parameter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameterType != null && message.hasOwnProperty("parameterType")) - switch (message.parameterType) { - default: - return "parameterType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.table != null && message.hasOwnProperty("table")) { - var error = $root.gauge.messages.ProtoTable.verify(message.table); - if (error) - return "table." + error; - } - return null; - }; - - /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.Parameter - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.Parameter} Parameter - */ - Parameter.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.Parameter) - return object; - var message = new $root.gauge.messages.Parameter(); - switch (object.parameterType) { - case "Static": - case 0: - message.parameterType = 0; - break; - case "Dynamic": - case 1: - message.parameterType = 1; - break; - case "Special_String": - case 2: - message.parameterType = 2; - break; - case "Special_Table": - case 3: - message.parameterType = 3; - break; - case "Table": - case 4: - message.parameterType = 4; - break; - } - if (object.value != null) - message.value = String(object.value); - if (object.name != null) - message.name = String(object.name); - if (object.table != null) { - if (typeof object.table !== "object") - throw TypeError(".gauge.messages.Parameter.table: object expected"); - message.table = $root.gauge.messages.ProtoTable.fromObject(object.table); - } - return message; - }; - - /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.Parameter - * @static - * @param {gauge.messages.Parameter} message Parameter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Parameter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parameterType = options.enums === String ? "Static" : 0; - object.value = ""; - object.name = ""; - object.table = null; - } - if (message.parameterType != null && message.hasOwnProperty("parameterType")) - object.parameterType = options.enums === String ? $root.gauge.messages.Parameter.ParameterType[message.parameterType] : message.parameterType; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.table != null && message.hasOwnProperty("table")) - object.table = $root.gauge.messages.ProtoTable.toObject(message.table, options); - return object; - }; - - /** - * Converts this Parameter to JSON. - * @function toJSON - * @memberof gauge.messages.Parameter - * @instance - * @returns {Object.} JSON object - */ - Parameter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Enum representing types of Parameter. - * @name gauge.messages.Parameter.ParameterType - * @enum {string} - * @property {number} Static=0 Static value - * @property {number} Dynamic=1 Dynamic value - * @property {number} Special_String=2 Special_String value - * @property {number} Special_Table=3 Special_Table value - * @property {number} Table=4 Table value - */ - Parameter.ParameterType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "Static"] = 0; - values[valuesById[1] = "Dynamic"] = 1; - values[valuesById[2] = "Special_String"] = 2; - values[valuesById[3] = "Special_Table"] = 3; - values[valuesById[4] = "Table"] = 4; - return values; - })(); - - return Parameter; - })(); - - messages.ProtoComment = (function() { - - /** - * Properties of a ProtoComment. - * @memberof gauge.messages - * @interface IProtoComment - * @property {string|null} [text] Text representing the Comment. - */ - - /** - * Constructs a new ProtoComment. - * @memberof gauge.messages - * @classdesc A proto object representing Comment. - * @implements IProtoComment - * @constructor - * @param {gauge.messages.IProtoComment=} [properties] Properties to set - */ - function ProtoComment(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Text representing the Comment. - * @member {string} text - * @memberof gauge.messages.ProtoComment - * @instance - */ - ProtoComment.prototype.text = ""; - - /** - * Creates a new ProtoComment instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoComment - * @static - * @param {gauge.messages.IProtoComment=} [properties] Properties to set - * @returns {gauge.messages.ProtoComment} ProtoComment instance - */ - ProtoComment.create = function create(properties) { - return new ProtoComment(properties); - }; - - /** - * Encodes the specified ProtoComment message. Does not implicitly {@link gauge.messages.ProtoComment.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoComment - * @static - * @param {gauge.messages.IProtoComment} message ProtoComment message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoComment.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.text != null && message.hasOwnProperty("text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - return writer; - }; - - /** - * Encodes the specified ProtoComment message, length delimited. Does not implicitly {@link gauge.messages.ProtoComment.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoComment - * @static - * @param {gauge.messages.IProtoComment} message ProtoComment message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoComment.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoComment message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoComment - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoComment} ProtoComment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoComment.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoComment(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.text = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoComment message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoComment - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoComment} ProtoComment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoComment.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoComment message. - * @function verify - * @memberof gauge.messages.ProtoComment - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoComment.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.text != null && message.hasOwnProperty("text")) - if (!$util.isString(message.text)) - return "text: string expected"; - return null; - }; - - /** - * Creates a ProtoComment message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoComment - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoComment} ProtoComment - */ - ProtoComment.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoComment) - return object; - var message = new $root.gauge.messages.ProtoComment(); - if (object.text != null) - message.text = String(object.text); - return message; - }; - - /** - * Creates a plain object from a ProtoComment message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoComment - * @static - * @param {gauge.messages.ProtoComment} message ProtoComment - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoComment.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.text = ""; - if (message.text != null && message.hasOwnProperty("text")) - object.text = message.text; - return object; - }; - - /** - * Converts this ProtoComment to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoComment - * @instance - * @returns {Object.} JSON object - */ - ProtoComment.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoComment; - })(); - - messages.ProtoTable = (function() { - - /** - * Properties of a ProtoTable. - * @memberof gauge.messages - * @interface IProtoTable - * @property {gauge.messages.IProtoTableRow|null} [headers] Contains the Headers for the table - * @property {Array.|null} [rows] Contains the Rows for the table - */ - - /** - * Constructs a new ProtoTable. - * @memberof gauge.messages - * @classdesc A proto object representing Table. - * @implements IProtoTable - * @constructor - * @param {gauge.messages.IProtoTable=} [properties] Properties to set - */ - function ProtoTable(properties) { - this.rows = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Contains the Headers for the table - * @member {gauge.messages.IProtoTableRow|null|undefined} headers - * @memberof gauge.messages.ProtoTable - * @instance - */ - ProtoTable.prototype.headers = null; - - /** - * Contains the Rows for the table - * @member {Array.} rows - * @memberof gauge.messages.ProtoTable - * @instance - */ - ProtoTable.prototype.rows = $util.emptyArray; - - /** - * Creates a new ProtoTable instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoTable - * @static - * @param {gauge.messages.IProtoTable=} [properties] Properties to set - * @returns {gauge.messages.ProtoTable} ProtoTable instance - */ - ProtoTable.create = function create(properties) { - return new ProtoTable(properties); - }; - - /** - * Encodes the specified ProtoTable message. Does not implicitly {@link gauge.messages.ProtoTable.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoTable - * @static - * @param {gauge.messages.IProtoTable} message ProtoTable message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoTable.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.headers != null && message.hasOwnProperty("headers")) - $root.gauge.messages.ProtoTableRow.encode(message.headers, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.rows != null && message.rows.length) - for (var i = 0; i < message.rows.length; ++i) - $root.gauge.messages.ProtoTableRow.encode(message.rows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ProtoTable message, length delimited. Does not implicitly {@link gauge.messages.ProtoTable.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoTable - * @static - * @param {gauge.messages.IProtoTable} message ProtoTable message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoTable.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoTable message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoTable - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoTable} ProtoTable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoTable.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoTable(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.headers = $root.gauge.messages.ProtoTableRow.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.rows && message.rows.length)) - message.rows = []; - message.rows.push($root.gauge.messages.ProtoTableRow.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoTable message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoTable - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoTable} ProtoTable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoTable.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoTable message. - * @function verify - * @memberof gauge.messages.ProtoTable - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoTable.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.headers != null && message.hasOwnProperty("headers")) { - var error = $root.gauge.messages.ProtoTableRow.verify(message.headers); - if (error) - return "headers." + error; - } - if (message.rows != null && message.hasOwnProperty("rows")) { - if (!Array.isArray(message.rows)) - return "rows: array expected"; - for (var i = 0; i < message.rows.length; ++i) { - var error = $root.gauge.messages.ProtoTableRow.verify(message.rows[i]); - if (error) - return "rows." + error; - } - } - return null; - }; - - /** - * Creates a ProtoTable message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoTable - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoTable} ProtoTable - */ - ProtoTable.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoTable) - return object; - var message = new $root.gauge.messages.ProtoTable(); - if (object.headers != null) { - if (typeof object.headers !== "object") - throw TypeError(".gauge.messages.ProtoTable.headers: object expected"); - message.headers = $root.gauge.messages.ProtoTableRow.fromObject(object.headers); - } - if (object.rows) { - if (!Array.isArray(object.rows)) - throw TypeError(".gauge.messages.ProtoTable.rows: array expected"); - message.rows = []; - for (var i = 0; i < object.rows.length; ++i) { - if (typeof object.rows[i] !== "object") - throw TypeError(".gauge.messages.ProtoTable.rows: object expected"); - message.rows[i] = $root.gauge.messages.ProtoTableRow.fromObject(object.rows[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a ProtoTable message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoTable - * @static - * @param {gauge.messages.ProtoTable} message ProtoTable - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoTable.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.rows = []; - if (options.defaults) - object.headers = null; - if (message.headers != null && message.hasOwnProperty("headers")) - object.headers = $root.gauge.messages.ProtoTableRow.toObject(message.headers, options); - if (message.rows && message.rows.length) { - object.rows = []; - for (var j = 0; j < message.rows.length; ++j) - object.rows[j] = $root.gauge.messages.ProtoTableRow.toObject(message.rows[j], options); - } - return object; - }; - - /** - * Converts this ProtoTable to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoTable - * @instance - * @returns {Object.} JSON object - */ - ProtoTable.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoTable; - })(); - - messages.ProtoTableRow = (function() { - - /** - * Properties of a ProtoTableRow. - * @memberof gauge.messages - * @interface IProtoTableRow - * @property {Array.|null} [cells] Represents the cells of a given table - */ - - /** - * Constructs a new ProtoTableRow. - * @memberof gauge.messages - * @classdesc A proto object representing Table. - * @implements IProtoTableRow - * @constructor - * @param {gauge.messages.IProtoTableRow=} [properties] Properties to set - */ - function ProtoTableRow(properties) { - this.cells = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Represents the cells of a given table - * @member {Array.} cells - * @memberof gauge.messages.ProtoTableRow - * @instance - */ - ProtoTableRow.prototype.cells = $util.emptyArray; - - /** - * Creates a new ProtoTableRow instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoTableRow - * @static - * @param {gauge.messages.IProtoTableRow=} [properties] Properties to set - * @returns {gauge.messages.ProtoTableRow} ProtoTableRow instance - */ - ProtoTableRow.create = function create(properties) { - return new ProtoTableRow(properties); - }; - - /** - * Encodes the specified ProtoTableRow message. Does not implicitly {@link gauge.messages.ProtoTableRow.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoTableRow - * @static - * @param {gauge.messages.IProtoTableRow} message ProtoTableRow message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoTableRow.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cells != null && message.cells.length) - for (var i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cells[i]); - return writer; - }; - - /** - * Encodes the specified ProtoTableRow message, length delimited. Does not implicitly {@link gauge.messages.ProtoTableRow.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoTableRow - * @static - * @param {gauge.messages.IProtoTableRow} message ProtoTableRow message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoTableRow.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoTableRow message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoTableRow - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoTableRow} ProtoTableRow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoTableRow.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoTableRow(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoTableRow message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoTableRow - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoTableRow} ProtoTableRow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoTableRow.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoTableRow message. - * @function verify - * @memberof gauge.messages.ProtoTableRow - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoTableRow.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (var i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } - return null; - }; - - /** - * Creates a ProtoTableRow message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoTableRow - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoTableRow} ProtoTableRow - */ - ProtoTableRow.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoTableRow) - return object; - var message = new $root.gauge.messages.ProtoTableRow(); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".gauge.messages.ProtoTableRow.cells: array expected"); - message.cells = []; - for (var i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } - return message; - }; - - /** - * Creates a plain object from a ProtoTableRow message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoTableRow - * @static - * @param {gauge.messages.ProtoTableRow} message ProtoTableRow - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoTableRow.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.cells = []; - if (message.cells && message.cells.length) { - object.cells = []; - for (var j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } - return object; - }; - - /** - * Converts this ProtoTableRow to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoTableRow - * @instance - * @returns {Object.} JSON object - */ - ProtoTableRow.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoTableRow; - })(); - - messages.ProtoStepExecutionResult = (function() { - - /** - * Properties of a ProtoStepExecutionResult. - * @memberof gauge.messages - * @interface IProtoStepExecutionResult - * @property {gauge.messages.IProtoExecutionResult|null} [executionResult] The actual result of the execution - * @property {gauge.messages.IProtoHookFailure|null} [preHookFailure] Contains a 'before' hook failure message. This happens when the `before_step` hook has an error. - * @property {gauge.messages.IProtoHookFailure|null} [postHookFailure] Contains a 'after' hook failure message. This happens when the `after_step` hook has an error. - * @property {boolean|null} [skipped] ProtoStepExecutionResult skipped - * @property {string|null} [skippedReason] ProtoStepExecutionResult skippedReason - */ - - /** - * Constructs a new ProtoStepExecutionResult. - * @memberof gauge.messages - * @classdesc A proto object representing Step Execution result - * @implements IProtoStepExecutionResult - * @constructor - * @param {gauge.messages.IProtoStepExecutionResult=} [properties] Properties to set - */ - function ProtoStepExecutionResult(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * The actual result of the execution - * @member {gauge.messages.IProtoExecutionResult|null|undefined} executionResult - * @memberof gauge.messages.ProtoStepExecutionResult - * @instance - */ - ProtoStepExecutionResult.prototype.executionResult = null; - - /** - * Contains a 'before' hook failure message. This happens when the `before_step` hook has an error. - * @member {gauge.messages.IProtoHookFailure|null|undefined} preHookFailure - * @memberof gauge.messages.ProtoStepExecutionResult - * @instance - */ - ProtoStepExecutionResult.prototype.preHookFailure = null; - - /** - * Contains a 'after' hook failure message. This happens when the `after_step` hook has an error. - * @member {gauge.messages.IProtoHookFailure|null|undefined} postHookFailure - * @memberof gauge.messages.ProtoStepExecutionResult - * @instance - */ - ProtoStepExecutionResult.prototype.postHookFailure = null; - - /** - * ProtoStepExecutionResult skipped. - * @member {boolean} skipped - * @memberof gauge.messages.ProtoStepExecutionResult - * @instance - */ - ProtoStepExecutionResult.prototype.skipped = false; - - /** - * ProtoStepExecutionResult skippedReason. - * @member {string} skippedReason - * @memberof gauge.messages.ProtoStepExecutionResult - * @instance - */ - ProtoStepExecutionResult.prototype.skippedReason = ""; - - /** - * Creates a new ProtoStepExecutionResult instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoStepExecutionResult - * @static - * @param {gauge.messages.IProtoStepExecutionResult=} [properties] Properties to set - * @returns {gauge.messages.ProtoStepExecutionResult} ProtoStepExecutionResult instance - */ - ProtoStepExecutionResult.create = function create(properties) { - return new ProtoStepExecutionResult(properties); - }; - - /** - * Encodes the specified ProtoStepExecutionResult message. Does not implicitly {@link gauge.messages.ProtoStepExecutionResult.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoStepExecutionResult - * @static - * @param {gauge.messages.IProtoStepExecutionResult} message ProtoStepExecutionResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoStepExecutionResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executionResult != null && message.hasOwnProperty("executionResult")) - $root.gauge.messages.ProtoExecutionResult.encode(message.executionResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.preHookFailure != null && message.hasOwnProperty("preHookFailure")) - $root.gauge.messages.ProtoHookFailure.encode(message.preHookFailure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.postHookFailure != null && message.hasOwnProperty("postHookFailure")) - $root.gauge.messages.ProtoHookFailure.encode(message.postHookFailure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.skipped != null && message.hasOwnProperty("skipped")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.skipped); - if (message.skippedReason != null && message.hasOwnProperty("skippedReason")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.skippedReason); - return writer; - }; - - /** - * Encodes the specified ProtoStepExecutionResult message, length delimited. Does not implicitly {@link gauge.messages.ProtoStepExecutionResult.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoStepExecutionResult - * @static - * @param {gauge.messages.IProtoStepExecutionResult} message ProtoStepExecutionResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoStepExecutionResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoStepExecutionResult message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoStepExecutionResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoStepExecutionResult} ProtoStepExecutionResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoStepExecutionResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoStepExecutionResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.executionResult = $root.gauge.messages.ProtoExecutionResult.decode(reader, reader.uint32()); - break; - case 2: - message.preHookFailure = $root.gauge.messages.ProtoHookFailure.decode(reader, reader.uint32()); - break; - case 3: - message.postHookFailure = $root.gauge.messages.ProtoHookFailure.decode(reader, reader.uint32()); - break; - case 4: - message.skipped = reader.bool(); - break; - case 5: - message.skippedReason = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoStepExecutionResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoStepExecutionResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoStepExecutionResult} ProtoStepExecutionResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoStepExecutionResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoStepExecutionResult message. - * @function verify - * @memberof gauge.messages.ProtoStepExecutionResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoStepExecutionResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.executionResult != null && message.hasOwnProperty("executionResult")) { - var error = $root.gauge.messages.ProtoExecutionResult.verify(message.executionResult); - if (error) - return "executionResult." + error; - } - if (message.preHookFailure != null && message.hasOwnProperty("preHookFailure")) { - var error = $root.gauge.messages.ProtoHookFailure.verify(message.preHookFailure); - if (error) - return "preHookFailure." + error; - } - if (message.postHookFailure != null && message.hasOwnProperty("postHookFailure")) { - var error = $root.gauge.messages.ProtoHookFailure.verify(message.postHookFailure); - if (error) - return "postHookFailure." + error; - } - if (message.skipped != null && message.hasOwnProperty("skipped")) - if (typeof message.skipped !== "boolean") - return "skipped: boolean expected"; - if (message.skippedReason != null && message.hasOwnProperty("skippedReason")) - if (!$util.isString(message.skippedReason)) - return "skippedReason: string expected"; - return null; - }; - - /** - * Creates a ProtoStepExecutionResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoStepExecutionResult - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoStepExecutionResult} ProtoStepExecutionResult - */ - ProtoStepExecutionResult.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoStepExecutionResult) - return object; - var message = new $root.gauge.messages.ProtoStepExecutionResult(); - if (object.executionResult != null) { - if (typeof object.executionResult !== "object") - throw TypeError(".gauge.messages.ProtoStepExecutionResult.executionResult: object expected"); - message.executionResult = $root.gauge.messages.ProtoExecutionResult.fromObject(object.executionResult); - } - if (object.preHookFailure != null) { - if (typeof object.preHookFailure !== "object") - throw TypeError(".gauge.messages.ProtoStepExecutionResult.preHookFailure: object expected"); - message.preHookFailure = $root.gauge.messages.ProtoHookFailure.fromObject(object.preHookFailure); - } - if (object.postHookFailure != null) { - if (typeof object.postHookFailure !== "object") - throw TypeError(".gauge.messages.ProtoStepExecutionResult.postHookFailure: object expected"); - message.postHookFailure = $root.gauge.messages.ProtoHookFailure.fromObject(object.postHookFailure); - } - if (object.skipped != null) - message.skipped = Boolean(object.skipped); - if (object.skippedReason != null) - message.skippedReason = String(object.skippedReason); - return message; - }; - - /** - * Creates a plain object from a ProtoStepExecutionResult message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoStepExecutionResult - * @static - * @param {gauge.messages.ProtoStepExecutionResult} message ProtoStepExecutionResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoStepExecutionResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.executionResult = null; - object.preHookFailure = null; - object.postHookFailure = null; - object.skipped = false; - object.skippedReason = ""; - } - if (message.executionResult != null && message.hasOwnProperty("executionResult")) - object.executionResult = $root.gauge.messages.ProtoExecutionResult.toObject(message.executionResult, options); - if (message.preHookFailure != null && message.hasOwnProperty("preHookFailure")) - object.preHookFailure = $root.gauge.messages.ProtoHookFailure.toObject(message.preHookFailure, options); - if (message.postHookFailure != null && message.hasOwnProperty("postHookFailure")) - object.postHookFailure = $root.gauge.messages.ProtoHookFailure.toObject(message.postHookFailure, options); - if (message.skipped != null && message.hasOwnProperty("skipped")) - object.skipped = message.skipped; - if (message.skippedReason != null && message.hasOwnProperty("skippedReason")) - object.skippedReason = message.skippedReason; - return object; - }; - - /** - * Converts this ProtoStepExecutionResult to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoStepExecutionResult - * @instance - * @returns {Object.} JSON object - */ - ProtoStepExecutionResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoStepExecutionResult; - })(); - - messages.ProtoExecutionResult = (function() { - - /** - * Properties of a ProtoExecutionResult. - * @memberof gauge.messages - * @interface IProtoExecutionResult - * @property {boolean|null} [failed] Flag to indicate failure - * @property {boolean|null} [recoverableError] Flag to indicate if the error is recoverable from. - * @property {string|null} [errorMessage] The actual error message. - * @property {string|null} [stackTrace] Stacktrace of the error - * @property {Uint8Array|null} [screenShot] [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure. - * @property {number|Long|null} [executionTime] Holds the time taken for executing this scenario. - * @property {Array.|null} [message] Additional information at exec time to be available on reports - * @property {gauge.messages.ProtoExecutionResult.ErrorType|null} [errorType] Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION - * @property {Uint8Array|null} [failureScreenshot] [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure. - * @property {Array.|null} [screenshots] [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked - * @property {string|null} [failureScreenshotFile] Path to the screenshot file captured at the time of failure. - * @property {Array.|null} [screenshotFiles] Path to the screenshot files captured using Gauge screenshsot API. - */ - - /** - * Constructs a new ProtoExecutionResult. - * @memberof gauge.messages - * @classdesc A proto object representing the result of an execution - * @implements IProtoExecutionResult - * @constructor - * @param {gauge.messages.IProtoExecutionResult=} [properties] Properties to set - */ - function ProtoExecutionResult(properties) { - this.message = []; - this.screenshots = []; - this.screenshotFiles = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Flag to indicate failure - * @member {boolean} failed - * @memberof gauge.messages.ProtoExecutionResult - * @instance - */ - ProtoExecutionResult.prototype.failed = false; - - /** - * Flag to indicate if the error is recoverable from. - * @member {boolean} recoverableError - * @memberof gauge.messages.ProtoExecutionResult - * @instance - */ - ProtoExecutionResult.prototype.recoverableError = false; - - /** - * The actual error message. - * @member {string} errorMessage - * @memberof gauge.messages.ProtoExecutionResult - * @instance - */ - ProtoExecutionResult.prototype.errorMessage = ""; - - /** - * Stacktrace of the error - * @member {string} stackTrace - * @memberof gauge.messages.ProtoExecutionResult - * @instance - */ - ProtoExecutionResult.prototype.stackTrace = ""; - - /** - * [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure. - * @member {Uint8Array} screenShot - * @memberof gauge.messages.ProtoExecutionResult - * @instance - */ - ProtoExecutionResult.prototype.screenShot = $util.newBuffer([]); - - /** - * Holds the time taken for executing this scenario. - * @member {number|Long} executionTime - * @memberof gauge.messages.ProtoExecutionResult - * @instance - */ - ProtoExecutionResult.prototype.executionTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Additional information at exec time to be available on reports - * @member {Array.} message - * @memberof gauge.messages.ProtoExecutionResult - * @instance - */ - ProtoExecutionResult.prototype.message = $util.emptyArray; - - /** - * Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION - * @member {gauge.messages.ProtoExecutionResult.ErrorType} errorType - * @memberof gauge.messages.ProtoExecutionResult - * @instance - */ - ProtoExecutionResult.prototype.errorType = 0; - - /** - * [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure. - * @member {Uint8Array} failureScreenshot - * @memberof gauge.messages.ProtoExecutionResult - * @instance - */ - ProtoExecutionResult.prototype.failureScreenshot = $util.newBuffer([]); - - /** - * [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked - * @member {Array.} screenshots - * @memberof gauge.messages.ProtoExecutionResult - * @instance - */ - ProtoExecutionResult.prototype.screenshots = $util.emptyArray; - - /** - * Path to the screenshot file captured at the time of failure. - * @member {string} failureScreenshotFile - * @memberof gauge.messages.ProtoExecutionResult - * @instance - */ - ProtoExecutionResult.prototype.failureScreenshotFile = ""; - - /** - * Path to the screenshot files captured using Gauge screenshsot API. - * @member {Array.} screenshotFiles - * @memberof gauge.messages.ProtoExecutionResult - * @instance - */ - ProtoExecutionResult.prototype.screenshotFiles = $util.emptyArray; - - /** - * Creates a new ProtoExecutionResult instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoExecutionResult - * @static - * @param {gauge.messages.IProtoExecutionResult=} [properties] Properties to set - * @returns {gauge.messages.ProtoExecutionResult} ProtoExecutionResult instance - */ - ProtoExecutionResult.create = function create(properties) { - return new ProtoExecutionResult(properties); - }; - - /** - * Encodes the specified ProtoExecutionResult message. Does not implicitly {@link gauge.messages.ProtoExecutionResult.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoExecutionResult - * @static - * @param {gauge.messages.IProtoExecutionResult} message ProtoExecutionResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoExecutionResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.failed != null && message.hasOwnProperty("failed")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.failed); - if (message.recoverableError != null && message.hasOwnProperty("recoverableError")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.recoverableError); - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.errorMessage); - if (message.stackTrace != null && message.hasOwnProperty("stackTrace")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.stackTrace); - if (message.screenShot != null && message.hasOwnProperty("screenShot")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.screenShot); - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.executionTime); - if (message.message != null && message.message.length) - for (var i = 0; i < message.message.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.message[i]); - if (message.errorType != null && message.hasOwnProperty("errorType")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.errorType); - if (message.failureScreenshot != null && message.hasOwnProperty("failureScreenshot")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.failureScreenshot); - if (message.screenshots != null && message.screenshots.length) - for (var i = 0; i < message.screenshots.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.screenshots[i]); - if (message.failureScreenshotFile != null && message.hasOwnProperty("failureScreenshotFile")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.failureScreenshotFile); - if (message.screenshotFiles != null && message.screenshotFiles.length) - for (var i = 0; i < message.screenshotFiles.length; ++i) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.screenshotFiles[i]); - return writer; - }; - - /** - * Encodes the specified ProtoExecutionResult message, length delimited. Does not implicitly {@link gauge.messages.ProtoExecutionResult.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoExecutionResult - * @static - * @param {gauge.messages.IProtoExecutionResult} message ProtoExecutionResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoExecutionResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoExecutionResult message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoExecutionResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoExecutionResult} ProtoExecutionResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoExecutionResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoExecutionResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.failed = reader.bool(); - break; - case 2: - message.recoverableError = reader.bool(); - break; - case 3: - message.errorMessage = reader.string(); - break; - case 4: - message.stackTrace = reader.string(); - break; - case 5: - message.screenShot = reader.bytes(); - break; - case 6: - message.executionTime = reader.int64(); - break; - case 7: - if (!(message.message && message.message.length)) - message.message = []; - message.message.push(reader.string()); - break; - case 8: - message.errorType = reader.int32(); - break; - case 9: - message.failureScreenshot = reader.bytes(); - break; - case 10: - if (!(message.screenshots && message.screenshots.length)) - message.screenshots = []; - message.screenshots.push(reader.bytes()); - break; - case 11: - message.failureScreenshotFile = reader.string(); - break; - case 12: - if (!(message.screenshotFiles && message.screenshotFiles.length)) - message.screenshotFiles = []; - message.screenshotFiles.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoExecutionResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoExecutionResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoExecutionResult} ProtoExecutionResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoExecutionResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoExecutionResult message. - * @function verify - * @memberof gauge.messages.ProtoExecutionResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoExecutionResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.failed != null && message.hasOwnProperty("failed")) - if (typeof message.failed !== "boolean") - return "failed: boolean expected"; - if (message.recoverableError != null && message.hasOwnProperty("recoverableError")) - if (typeof message.recoverableError !== "boolean") - return "recoverableError: boolean expected"; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - if (message.stackTrace != null && message.hasOwnProperty("stackTrace")) - if (!$util.isString(message.stackTrace)) - return "stackTrace: string expected"; - if (message.screenShot != null && message.hasOwnProperty("screenShot")) - if (!(message.screenShot && typeof message.screenShot.length === "number" || $util.isString(message.screenShot))) - return "screenShot: buffer expected"; - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - if (!$util.isInteger(message.executionTime) && !(message.executionTime && $util.isInteger(message.executionTime.low) && $util.isInteger(message.executionTime.high))) - return "executionTime: integer|Long expected"; - if (message.message != null && message.hasOwnProperty("message")) { - if (!Array.isArray(message.message)) - return "message: array expected"; - for (var i = 0; i < message.message.length; ++i) - if (!$util.isString(message.message[i])) - return "message: string[] expected"; - } - if (message.errorType != null && message.hasOwnProperty("errorType")) - switch (message.errorType) { - default: - return "errorType: enum value expected"; - case 0: - case 1: - break; - } - if (message.failureScreenshot != null && message.hasOwnProperty("failureScreenshot")) - if (!(message.failureScreenshot && typeof message.failureScreenshot.length === "number" || $util.isString(message.failureScreenshot))) - return "failureScreenshot: buffer expected"; - if (message.screenshots != null && message.hasOwnProperty("screenshots")) { - if (!Array.isArray(message.screenshots)) - return "screenshots: array expected"; - for (var i = 0; i < message.screenshots.length; ++i) - if (!(message.screenshots[i] && typeof message.screenshots[i].length === "number" || $util.isString(message.screenshots[i]))) - return "screenshots: buffer[] expected"; - } - if (message.failureScreenshotFile != null && message.hasOwnProperty("failureScreenshotFile")) - if (!$util.isString(message.failureScreenshotFile)) - return "failureScreenshotFile: string expected"; - if (message.screenshotFiles != null && message.hasOwnProperty("screenshotFiles")) { - if (!Array.isArray(message.screenshotFiles)) - return "screenshotFiles: array expected"; - for (var i = 0; i < message.screenshotFiles.length; ++i) - if (!$util.isString(message.screenshotFiles[i])) - return "screenshotFiles: string[] expected"; - } - return null; - }; - - /** - * Creates a ProtoExecutionResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoExecutionResult - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoExecutionResult} ProtoExecutionResult - */ - ProtoExecutionResult.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoExecutionResult) - return object; - var message = new $root.gauge.messages.ProtoExecutionResult(); - if (object.failed != null) - message.failed = Boolean(object.failed); - if (object.recoverableError != null) - message.recoverableError = Boolean(object.recoverableError); - if (object.errorMessage != null) - message.errorMessage = String(object.errorMessage); - if (object.stackTrace != null) - message.stackTrace = String(object.stackTrace); - if (object.screenShot != null) - if (typeof object.screenShot === "string") - $util.base64.decode(object.screenShot, message.screenShot = $util.newBuffer($util.base64.length(object.screenShot)), 0); - else if (object.screenShot.length) - message.screenShot = object.screenShot; - if (object.executionTime != null) - if ($util.Long) - (message.executionTime = $util.Long.fromValue(object.executionTime)).unsigned = false; - else if (typeof object.executionTime === "string") - message.executionTime = parseInt(object.executionTime, 10); - else if (typeof object.executionTime === "number") - message.executionTime = object.executionTime; - else if (typeof object.executionTime === "object") - message.executionTime = new $util.LongBits(object.executionTime.low >>> 0, object.executionTime.high >>> 0).toNumber(); - if (object.message) { - if (!Array.isArray(object.message)) - throw TypeError(".gauge.messages.ProtoExecutionResult.message: array expected"); - message.message = []; - for (var i = 0; i < object.message.length; ++i) - message.message[i] = String(object.message[i]); - } - switch (object.errorType) { - case "ASSERTION": - case 0: - message.errorType = 0; - break; - case "VERIFICATION": - case 1: - message.errorType = 1; - break; - } - if (object.failureScreenshot != null) - if (typeof object.failureScreenshot === "string") - $util.base64.decode(object.failureScreenshot, message.failureScreenshot = $util.newBuffer($util.base64.length(object.failureScreenshot)), 0); - else if (object.failureScreenshot.length) - message.failureScreenshot = object.failureScreenshot; - if (object.screenshots) { - if (!Array.isArray(object.screenshots)) - throw TypeError(".gauge.messages.ProtoExecutionResult.screenshots: array expected"); - message.screenshots = []; - for (var i = 0; i < object.screenshots.length; ++i) - if (typeof object.screenshots[i] === "string") - $util.base64.decode(object.screenshots[i], message.screenshots[i] = $util.newBuffer($util.base64.length(object.screenshots[i])), 0); - else if (object.screenshots[i].length) - message.screenshots[i] = object.screenshots[i]; - } - if (object.failureScreenshotFile != null) - message.failureScreenshotFile = String(object.failureScreenshotFile); - if (object.screenshotFiles) { - if (!Array.isArray(object.screenshotFiles)) - throw TypeError(".gauge.messages.ProtoExecutionResult.screenshotFiles: array expected"); - message.screenshotFiles = []; - for (var i = 0; i < object.screenshotFiles.length; ++i) - message.screenshotFiles[i] = String(object.screenshotFiles[i]); - } - return message; - }; - - /** - * Creates a plain object from a ProtoExecutionResult message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoExecutionResult - * @static - * @param {gauge.messages.ProtoExecutionResult} message ProtoExecutionResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoExecutionResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.message = []; - object.screenshots = []; - object.screenshotFiles = []; - } - if (options.defaults) { - object.failed = false; - object.recoverableError = false; - object.errorMessage = ""; - object.stackTrace = ""; - if (options.bytes === String) - object.screenShot = ""; - else { - object.screenShot = []; - if (options.bytes !== Array) - object.screenShot = $util.newBuffer(object.screenShot); - } - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.executionTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.executionTime = options.longs === String ? "0" : 0; - object.errorType = options.enums === String ? "ASSERTION" : 0; - if (options.bytes === String) - object.failureScreenshot = ""; - else { - object.failureScreenshot = []; - if (options.bytes !== Array) - object.failureScreenshot = $util.newBuffer(object.failureScreenshot); - } - object.failureScreenshotFile = ""; - } - if (message.failed != null && message.hasOwnProperty("failed")) - object.failed = message.failed; - if (message.recoverableError != null && message.hasOwnProperty("recoverableError")) - object.recoverableError = message.recoverableError; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - object.errorMessage = message.errorMessage; - if (message.stackTrace != null && message.hasOwnProperty("stackTrace")) - object.stackTrace = message.stackTrace; - if (message.screenShot != null && message.hasOwnProperty("screenShot")) - object.screenShot = options.bytes === String ? $util.base64.encode(message.screenShot, 0, message.screenShot.length) : options.bytes === Array ? Array.prototype.slice.call(message.screenShot) : message.screenShot; - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - if (typeof message.executionTime === "number") - object.executionTime = options.longs === String ? String(message.executionTime) : message.executionTime; - else - object.executionTime = options.longs === String ? $util.Long.prototype.toString.call(message.executionTime) : options.longs === Number ? new $util.LongBits(message.executionTime.low >>> 0, message.executionTime.high >>> 0).toNumber() : message.executionTime; - if (message.message && message.message.length) { - object.message = []; - for (var j = 0; j < message.message.length; ++j) - object.message[j] = message.message[j]; - } - if (message.errorType != null && message.hasOwnProperty("errorType")) - object.errorType = options.enums === String ? $root.gauge.messages.ProtoExecutionResult.ErrorType[message.errorType] : message.errorType; - if (message.failureScreenshot != null && message.hasOwnProperty("failureScreenshot")) - object.failureScreenshot = options.bytes === String ? $util.base64.encode(message.failureScreenshot, 0, message.failureScreenshot.length) : options.bytes === Array ? Array.prototype.slice.call(message.failureScreenshot) : message.failureScreenshot; - if (message.screenshots && message.screenshots.length) { - object.screenshots = []; - for (var j = 0; j < message.screenshots.length; ++j) - object.screenshots[j] = options.bytes === String ? $util.base64.encode(message.screenshots[j], 0, message.screenshots[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.screenshots[j]) : message.screenshots[j]; - } - if (message.failureScreenshotFile != null && message.hasOwnProperty("failureScreenshotFile")) - object.failureScreenshotFile = message.failureScreenshotFile; - if (message.screenshotFiles && message.screenshotFiles.length) { - object.screenshotFiles = []; - for (var j = 0; j < message.screenshotFiles.length; ++j) - object.screenshotFiles[j] = message.screenshotFiles[j]; - } - return object; - }; - - /** - * Converts this ProtoExecutionResult to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoExecutionResult - * @instance - * @returns {Object.} JSON object - */ - ProtoExecutionResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * ErrorType enum. - * @name gauge.messages.ProtoExecutionResult.ErrorType - * @enum {string} - * @property {number} ASSERTION=0 ASSERTION value - * @property {number} VERIFICATION=1 VERIFICATION value - */ - ProtoExecutionResult.ErrorType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ASSERTION"] = 0; - values[valuesById[1] = "VERIFICATION"] = 1; - return values; - })(); - - return ProtoExecutionResult; - })(); - - messages.ProtoHookFailure = (function() { - - /** - * Properties of a ProtoHookFailure. - * @memberof gauge.messages - * @interface IProtoHookFailure - * @property {string|null} [stackTrace] Stacktrace from the failure - * @property {string|null} [errorMessage] Error message from the failure - * @property {Uint8Array|null} [screenShot] [DEPRECATED, use failureScreenshotFile] Bytes holding the screenshot taken at the time of failure. - * @property {number|null} [tableRowIndex] ProtoHookFailure tableRowIndex - * @property {Uint8Array|null} [failureScreenshot] [DEPRECATED, use failureScreenshotFile] Bytes holding the screenshot taken at the time of failure. - * @property {string|null} [failureScreenshotFile] Path to the screenshot file captured at the time of failure. - */ - - /** - * Constructs a new ProtoHookFailure. - * @memberof gauge.messages - * @classdesc Used to hold failure information for before_suite, before_spec, before_scenario and before_spec hooks. - * @implements IProtoHookFailure - * @constructor - * @param {gauge.messages.IProtoHookFailure=} [properties] Properties to set - */ - function ProtoHookFailure(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Stacktrace from the failure - * @member {string} stackTrace - * @memberof gauge.messages.ProtoHookFailure - * @instance - */ - ProtoHookFailure.prototype.stackTrace = ""; - - /** - * Error message from the failure - * @member {string} errorMessage - * @memberof gauge.messages.ProtoHookFailure - * @instance - */ - ProtoHookFailure.prototype.errorMessage = ""; - - /** - * [DEPRECATED, use failureScreenshotFile] Bytes holding the screenshot taken at the time of failure. - * @member {Uint8Array} screenShot - * @memberof gauge.messages.ProtoHookFailure - * @instance - */ - ProtoHookFailure.prototype.screenShot = $util.newBuffer([]); - - /** - * ProtoHookFailure tableRowIndex. - * @member {number} tableRowIndex - * @memberof gauge.messages.ProtoHookFailure - * @instance - */ - ProtoHookFailure.prototype.tableRowIndex = 0; - - /** - * [DEPRECATED, use failureScreenshotFile] Bytes holding the screenshot taken at the time of failure. - * @member {Uint8Array} failureScreenshot - * @memberof gauge.messages.ProtoHookFailure - * @instance - */ - ProtoHookFailure.prototype.failureScreenshot = $util.newBuffer([]); - - /** - * Path to the screenshot file captured at the time of failure. - * @member {string} failureScreenshotFile - * @memberof gauge.messages.ProtoHookFailure - * @instance - */ - ProtoHookFailure.prototype.failureScreenshotFile = ""; - - /** - * Creates a new ProtoHookFailure instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoHookFailure - * @static - * @param {gauge.messages.IProtoHookFailure=} [properties] Properties to set - * @returns {gauge.messages.ProtoHookFailure} ProtoHookFailure instance - */ - ProtoHookFailure.create = function create(properties) { - return new ProtoHookFailure(properties); - }; - - /** - * Encodes the specified ProtoHookFailure message. Does not implicitly {@link gauge.messages.ProtoHookFailure.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoHookFailure - * @static - * @param {gauge.messages.IProtoHookFailure} message ProtoHookFailure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoHookFailure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stackTrace != null && message.hasOwnProperty("stackTrace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stackTrace); - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage); - if (message.screenShot != null && message.hasOwnProperty("screenShot")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.screenShot); - if (message.tableRowIndex != null && message.hasOwnProperty("tableRowIndex")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.tableRowIndex); - if (message.failureScreenshot != null && message.hasOwnProperty("failureScreenshot")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.failureScreenshot); - if (message.failureScreenshotFile != null && message.hasOwnProperty("failureScreenshotFile")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.failureScreenshotFile); - return writer; - }; - - /** - * Encodes the specified ProtoHookFailure message, length delimited. Does not implicitly {@link gauge.messages.ProtoHookFailure.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoHookFailure - * @static - * @param {gauge.messages.IProtoHookFailure} message ProtoHookFailure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoHookFailure.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoHookFailure message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoHookFailure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoHookFailure} ProtoHookFailure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoHookFailure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoHookFailure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stackTrace = reader.string(); - break; - case 2: - message.errorMessage = reader.string(); - break; - case 3: - message.screenShot = reader.bytes(); - break; - case 4: - message.tableRowIndex = reader.int32(); - break; - case 5: - message.failureScreenshot = reader.bytes(); - break; - case 6: - message.failureScreenshotFile = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoHookFailure message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoHookFailure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoHookFailure} ProtoHookFailure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoHookFailure.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoHookFailure message. - * @function verify - * @memberof gauge.messages.ProtoHookFailure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoHookFailure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stackTrace != null && message.hasOwnProperty("stackTrace")) - if (!$util.isString(message.stackTrace)) - return "stackTrace: string expected"; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - if (message.screenShot != null && message.hasOwnProperty("screenShot")) - if (!(message.screenShot && typeof message.screenShot.length === "number" || $util.isString(message.screenShot))) - return "screenShot: buffer expected"; - if (message.tableRowIndex != null && message.hasOwnProperty("tableRowIndex")) - if (!$util.isInteger(message.tableRowIndex)) - return "tableRowIndex: integer expected"; - if (message.failureScreenshot != null && message.hasOwnProperty("failureScreenshot")) - if (!(message.failureScreenshot && typeof message.failureScreenshot.length === "number" || $util.isString(message.failureScreenshot))) - return "failureScreenshot: buffer expected"; - if (message.failureScreenshotFile != null && message.hasOwnProperty("failureScreenshotFile")) - if (!$util.isString(message.failureScreenshotFile)) - return "failureScreenshotFile: string expected"; - return null; - }; - - /** - * Creates a ProtoHookFailure message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoHookFailure - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoHookFailure} ProtoHookFailure - */ - ProtoHookFailure.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoHookFailure) - return object; - var message = new $root.gauge.messages.ProtoHookFailure(); - if (object.stackTrace != null) - message.stackTrace = String(object.stackTrace); - if (object.errorMessage != null) - message.errorMessage = String(object.errorMessage); - if (object.screenShot != null) - if (typeof object.screenShot === "string") - $util.base64.decode(object.screenShot, message.screenShot = $util.newBuffer($util.base64.length(object.screenShot)), 0); - else if (object.screenShot.length) - message.screenShot = object.screenShot; - if (object.tableRowIndex != null) - message.tableRowIndex = object.tableRowIndex | 0; - if (object.failureScreenshot != null) - if (typeof object.failureScreenshot === "string") - $util.base64.decode(object.failureScreenshot, message.failureScreenshot = $util.newBuffer($util.base64.length(object.failureScreenshot)), 0); - else if (object.failureScreenshot.length) - message.failureScreenshot = object.failureScreenshot; - if (object.failureScreenshotFile != null) - message.failureScreenshotFile = String(object.failureScreenshotFile); - return message; - }; - - /** - * Creates a plain object from a ProtoHookFailure message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoHookFailure - * @static - * @param {gauge.messages.ProtoHookFailure} message ProtoHookFailure - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoHookFailure.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.stackTrace = ""; - object.errorMessage = ""; - if (options.bytes === String) - object.screenShot = ""; - else { - object.screenShot = []; - if (options.bytes !== Array) - object.screenShot = $util.newBuffer(object.screenShot); - } - object.tableRowIndex = 0; - if (options.bytes === String) - object.failureScreenshot = ""; - else { - object.failureScreenshot = []; - if (options.bytes !== Array) - object.failureScreenshot = $util.newBuffer(object.failureScreenshot); - } - object.failureScreenshotFile = ""; - } - if (message.stackTrace != null && message.hasOwnProperty("stackTrace")) - object.stackTrace = message.stackTrace; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - object.errorMessage = message.errorMessage; - if (message.screenShot != null && message.hasOwnProperty("screenShot")) - object.screenShot = options.bytes === String ? $util.base64.encode(message.screenShot, 0, message.screenShot.length) : options.bytes === Array ? Array.prototype.slice.call(message.screenShot) : message.screenShot; - if (message.tableRowIndex != null && message.hasOwnProperty("tableRowIndex")) - object.tableRowIndex = message.tableRowIndex; - if (message.failureScreenshot != null && message.hasOwnProperty("failureScreenshot")) - object.failureScreenshot = options.bytes === String ? $util.base64.encode(message.failureScreenshot, 0, message.failureScreenshot.length) : options.bytes === Array ? Array.prototype.slice.call(message.failureScreenshot) : message.failureScreenshot; - if (message.failureScreenshotFile != null && message.hasOwnProperty("failureScreenshotFile")) - object.failureScreenshotFile = message.failureScreenshotFile; - return object; - }; - - /** - * Converts this ProtoHookFailure to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoHookFailure - * @instance - * @returns {Object.} JSON object - */ - ProtoHookFailure.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoHookFailure; - })(); - - messages.ProtoSuiteResult = (function() { - - /** - * Properties of a ProtoSuiteResult. - * @memberof gauge.messages - * @interface IProtoSuiteResult - * @property {Array.|null} [specResults] Contains the result from the execution - * @property {gauge.messages.IProtoHookFailure|null} [preHookFailure] Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error - * @property {gauge.messages.IProtoHookFailure|null} [postHookFailure] Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error - * @property {boolean|null} [failed] Flag to indicate failure - * @property {number|null} [specsFailedCount] Holds the count of number of Specifications that failed. - * @property {number|Long|null} [executionTime] Holds the time taken for executing the whole suite. - * @property {number|null} [successRate] Holds a metric indicating the success rate of the execution. - * @property {string|null} [environment] The environment against which execution was done - * @property {string|null} [tags] Tag expression used for filtering specification - * @property {string|null} [projectName] Project name - * @property {string|null} [timestamp] Timestamp of when execution started - * @property {number|null} [specsSkippedCount] ProtoSuiteResult specsSkippedCount - * @property {Array.|null} [preHookMessages] Additional information at pre hook exec time to be available on reports - * @property {Array.|null} [postHookMessages] Additional information at post hook exec time to be available on reports - * @property {Array.|null} [preHookMessage] [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports - * @property {Array.|null} [postHookMessage] [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports - * @property {Array.|null} [preHookScreenshots] [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - * @property {Array.|null} [postHookScreenshots] [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - * @property {boolean|null} [chunked] ProtoSuiteResult chunked - * @property {number|Long|null} [chunkSize] ProtoSuiteResult chunkSize - * @property {Array.|null} [preHookScreenshotFiles] Screenshots captured on pre hook exec time to be available on reports - * @property {Array.|null} [postHookScreenshotFiles] Screenshots captured on post hook exec time to be available on reports - */ - - /** - * Constructs a new ProtoSuiteResult. - * @memberof gauge.messages - * @classdesc A proto object representing the result of entire Suite execution. - * @implements IProtoSuiteResult - * @constructor - * @param {gauge.messages.IProtoSuiteResult=} [properties] Properties to set - */ - function ProtoSuiteResult(properties) { - this.specResults = []; - this.preHookMessages = []; - this.postHookMessages = []; - this.preHookMessage = []; - this.postHookMessage = []; - this.preHookScreenshots = []; - this.postHookScreenshots = []; - this.preHookScreenshotFiles = []; - this.postHookScreenshotFiles = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Contains the result from the execution - * @member {Array.} specResults - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.specResults = $util.emptyArray; - - /** - * Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error - * @member {gauge.messages.IProtoHookFailure|null|undefined} preHookFailure - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.preHookFailure = null; - - /** - * Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error - * @member {gauge.messages.IProtoHookFailure|null|undefined} postHookFailure - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.postHookFailure = null; - - /** - * Flag to indicate failure - * @member {boolean} failed - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.failed = false; - - /** - * Holds the count of number of Specifications that failed. - * @member {number} specsFailedCount - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.specsFailedCount = 0; - - /** - * Holds the time taken for executing the whole suite. - * @member {number|Long} executionTime - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.executionTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Holds a metric indicating the success rate of the execution. - * @member {number} successRate - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.successRate = 0; - - /** - * The environment against which execution was done - * @member {string} environment - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.environment = ""; - - /** - * Tag expression used for filtering specification - * @member {string} tags - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.tags = ""; - - /** - * Project name - * @member {string} projectName - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.projectName = ""; - - /** - * Timestamp of when execution started - * @member {string} timestamp - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.timestamp = ""; - - /** - * ProtoSuiteResult specsSkippedCount. - * @member {number} specsSkippedCount - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.specsSkippedCount = 0; - - /** - * Additional information at pre hook exec time to be available on reports - * @member {Array.} preHookMessages - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.preHookMessages = $util.emptyArray; - - /** - * Additional information at post hook exec time to be available on reports - * @member {Array.} postHookMessages - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.postHookMessages = $util.emptyArray; - - /** - * [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports - * @member {Array.} preHookMessage - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.preHookMessage = $util.emptyArray; - - /** - * [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports - * @member {Array.} postHookMessage - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.postHookMessage = $util.emptyArray; - - /** - * [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - * @member {Array.} preHookScreenshots - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.preHookScreenshots = $util.emptyArray; - - /** - * [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - * @member {Array.} postHookScreenshots - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.postHookScreenshots = $util.emptyArray; - - /** - * ProtoSuiteResult chunked. - * @member {boolean} chunked - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.chunked = false; - - /** - * ProtoSuiteResult chunkSize. - * @member {number|Long} chunkSize - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.chunkSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Screenshots captured on pre hook exec time to be available on reports - * @member {Array.} preHookScreenshotFiles - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.preHookScreenshotFiles = $util.emptyArray; - - /** - * Screenshots captured on post hook exec time to be available on reports - * @member {Array.} postHookScreenshotFiles - * @memberof gauge.messages.ProtoSuiteResult - * @instance - */ - ProtoSuiteResult.prototype.postHookScreenshotFiles = $util.emptyArray; - - /** - * Creates a new ProtoSuiteResult instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoSuiteResult - * @static - * @param {gauge.messages.IProtoSuiteResult=} [properties] Properties to set - * @returns {gauge.messages.ProtoSuiteResult} ProtoSuiteResult instance - */ - ProtoSuiteResult.create = function create(properties) { - return new ProtoSuiteResult(properties); - }; - - /** - * Encodes the specified ProtoSuiteResult message. Does not implicitly {@link gauge.messages.ProtoSuiteResult.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoSuiteResult - * @static - * @param {gauge.messages.IProtoSuiteResult} message ProtoSuiteResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoSuiteResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.specResults != null && message.specResults.length) - for (var i = 0; i < message.specResults.length; ++i) - $root.gauge.messages.ProtoSpecResult.encode(message.specResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.preHookFailure != null && message.hasOwnProperty("preHookFailure")) - $root.gauge.messages.ProtoHookFailure.encode(message.preHookFailure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.postHookFailure != null && message.hasOwnProperty("postHookFailure")) - $root.gauge.messages.ProtoHookFailure.encode(message.postHookFailure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.failed != null && message.hasOwnProperty("failed")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.failed); - if (message.specsFailedCount != null && message.hasOwnProperty("specsFailedCount")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.specsFailedCount); - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.executionTime); - if (message.successRate != null && message.hasOwnProperty("successRate")) - writer.uint32(/* id 7, wireType 5 =*/61).float(message.successRate); - if (message.environment != null && message.hasOwnProperty("environment")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.environment); - if (message.tags != null && message.hasOwnProperty("tags")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.tags); - if (message.projectName != null && message.hasOwnProperty("projectName")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.projectName); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.timestamp); - if (message.specsSkippedCount != null && message.hasOwnProperty("specsSkippedCount")) - writer.uint32(/* id 12, wireType 0 =*/96).int32(message.specsSkippedCount); - if (message.preHookMessages != null && message.preHookMessages.length) - for (var i = 0; i < message.preHookMessages.length; ++i) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.preHookMessages[i]); - if (message.postHookMessages != null && message.postHookMessages.length) - for (var i = 0; i < message.postHookMessages.length; ++i) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.postHookMessages[i]); - if (message.preHookMessage != null && message.preHookMessage.length) - for (var i = 0; i < message.preHookMessage.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.preHookMessage[i]); - if (message.postHookMessage != null && message.postHookMessage.length) - for (var i = 0; i < message.postHookMessage.length; ++i) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.postHookMessage[i]); - if (message.preHookScreenshots != null && message.preHookScreenshots.length) - for (var i = 0; i < message.preHookScreenshots.length; ++i) - writer.uint32(/* id 17, wireType 2 =*/138).bytes(message.preHookScreenshots[i]); - if (message.postHookScreenshots != null && message.postHookScreenshots.length) - for (var i = 0; i < message.postHookScreenshots.length; ++i) - writer.uint32(/* id 18, wireType 2 =*/146).bytes(message.postHookScreenshots[i]); - if (message.chunked != null && message.hasOwnProperty("chunked")) - writer.uint32(/* id 19, wireType 0 =*/152).bool(message.chunked); - if (message.chunkSize != null && message.hasOwnProperty("chunkSize")) - writer.uint32(/* id 20, wireType 0 =*/160).int64(message.chunkSize); - if (message.preHookScreenshotFiles != null && message.preHookScreenshotFiles.length) - for (var i = 0; i < message.preHookScreenshotFiles.length; ++i) - writer.uint32(/* id 21, wireType 2 =*/170).string(message.preHookScreenshotFiles[i]); - if (message.postHookScreenshotFiles != null && message.postHookScreenshotFiles.length) - for (var i = 0; i < message.postHookScreenshotFiles.length; ++i) - writer.uint32(/* id 22, wireType 2 =*/178).string(message.postHookScreenshotFiles[i]); - return writer; - }; - - /** - * Encodes the specified ProtoSuiteResult message, length delimited. Does not implicitly {@link gauge.messages.ProtoSuiteResult.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoSuiteResult - * @static - * @param {gauge.messages.IProtoSuiteResult} message ProtoSuiteResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoSuiteResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoSuiteResult message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoSuiteResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoSuiteResult} ProtoSuiteResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoSuiteResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoSuiteResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.specResults && message.specResults.length)) - message.specResults = []; - message.specResults.push($root.gauge.messages.ProtoSpecResult.decode(reader, reader.uint32())); - break; - case 2: - message.preHookFailure = $root.gauge.messages.ProtoHookFailure.decode(reader, reader.uint32()); - break; - case 3: - message.postHookFailure = $root.gauge.messages.ProtoHookFailure.decode(reader, reader.uint32()); - break; - case 4: - message.failed = reader.bool(); - break; - case 5: - message.specsFailedCount = reader.int32(); - break; - case 6: - message.executionTime = reader.int64(); - break; - case 7: - message.successRate = reader.float(); - break; - case 8: - message.environment = reader.string(); - break; - case 9: - message.tags = reader.string(); - break; - case 10: - message.projectName = reader.string(); - break; - case 11: - message.timestamp = reader.string(); - break; - case 12: - message.specsSkippedCount = reader.int32(); - break; - case 13: - if (!(message.preHookMessages && message.preHookMessages.length)) - message.preHookMessages = []; - message.preHookMessages.push(reader.string()); - break; - case 14: - if (!(message.postHookMessages && message.postHookMessages.length)) - message.postHookMessages = []; - message.postHookMessages.push(reader.string()); - break; - case 15: - if (!(message.preHookMessage && message.preHookMessage.length)) - message.preHookMessage = []; - message.preHookMessage.push(reader.string()); - break; - case 16: - if (!(message.postHookMessage && message.postHookMessage.length)) - message.postHookMessage = []; - message.postHookMessage.push(reader.string()); - break; - case 17: - if (!(message.preHookScreenshots && message.preHookScreenshots.length)) - message.preHookScreenshots = []; - message.preHookScreenshots.push(reader.bytes()); - break; - case 18: - if (!(message.postHookScreenshots && message.postHookScreenshots.length)) - message.postHookScreenshots = []; - message.postHookScreenshots.push(reader.bytes()); - break; - case 19: - message.chunked = reader.bool(); - break; - case 20: - message.chunkSize = reader.int64(); - break; - case 21: - if (!(message.preHookScreenshotFiles && message.preHookScreenshotFiles.length)) - message.preHookScreenshotFiles = []; - message.preHookScreenshotFiles.push(reader.string()); - break; - case 22: - if (!(message.postHookScreenshotFiles && message.postHookScreenshotFiles.length)) - message.postHookScreenshotFiles = []; - message.postHookScreenshotFiles.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoSuiteResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoSuiteResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoSuiteResult} ProtoSuiteResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoSuiteResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoSuiteResult message. - * @function verify - * @memberof gauge.messages.ProtoSuiteResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoSuiteResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.specResults != null && message.hasOwnProperty("specResults")) { - if (!Array.isArray(message.specResults)) - return "specResults: array expected"; - for (var i = 0; i < message.specResults.length; ++i) { - var error = $root.gauge.messages.ProtoSpecResult.verify(message.specResults[i]); - if (error) - return "specResults." + error; - } - } - if (message.preHookFailure != null && message.hasOwnProperty("preHookFailure")) { - var error = $root.gauge.messages.ProtoHookFailure.verify(message.preHookFailure); - if (error) - return "preHookFailure." + error; - } - if (message.postHookFailure != null && message.hasOwnProperty("postHookFailure")) { - var error = $root.gauge.messages.ProtoHookFailure.verify(message.postHookFailure); - if (error) - return "postHookFailure." + error; - } - if (message.failed != null && message.hasOwnProperty("failed")) - if (typeof message.failed !== "boolean") - return "failed: boolean expected"; - if (message.specsFailedCount != null && message.hasOwnProperty("specsFailedCount")) - if (!$util.isInteger(message.specsFailedCount)) - return "specsFailedCount: integer expected"; - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - if (!$util.isInteger(message.executionTime) && !(message.executionTime && $util.isInteger(message.executionTime.low) && $util.isInteger(message.executionTime.high))) - return "executionTime: integer|Long expected"; - if (message.successRate != null && message.hasOwnProperty("successRate")) - if (typeof message.successRate !== "number") - return "successRate: number expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.tags != null && message.hasOwnProperty("tags")) - if (!$util.isString(message.tags)) - return "tags: string expected"; - if (message.projectName != null && message.hasOwnProperty("projectName")) - if (!$util.isString(message.projectName)) - return "projectName: string expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isString(message.timestamp)) - return "timestamp: string expected"; - if (message.specsSkippedCount != null && message.hasOwnProperty("specsSkippedCount")) - if (!$util.isInteger(message.specsSkippedCount)) - return "specsSkippedCount: integer expected"; - if (message.preHookMessages != null && message.hasOwnProperty("preHookMessages")) { - if (!Array.isArray(message.preHookMessages)) - return "preHookMessages: array expected"; - for (var i = 0; i < message.preHookMessages.length; ++i) - if (!$util.isString(message.preHookMessages[i])) - return "preHookMessages: string[] expected"; - } - if (message.postHookMessages != null && message.hasOwnProperty("postHookMessages")) { - if (!Array.isArray(message.postHookMessages)) - return "postHookMessages: array expected"; - for (var i = 0; i < message.postHookMessages.length; ++i) - if (!$util.isString(message.postHookMessages[i])) - return "postHookMessages: string[] expected"; - } - if (message.preHookMessage != null && message.hasOwnProperty("preHookMessage")) { - if (!Array.isArray(message.preHookMessage)) - return "preHookMessage: array expected"; - for (var i = 0; i < message.preHookMessage.length; ++i) - if (!$util.isString(message.preHookMessage[i])) - return "preHookMessage: string[] expected"; - } - if (message.postHookMessage != null && message.hasOwnProperty("postHookMessage")) { - if (!Array.isArray(message.postHookMessage)) - return "postHookMessage: array expected"; - for (var i = 0; i < message.postHookMessage.length; ++i) - if (!$util.isString(message.postHookMessage[i])) - return "postHookMessage: string[] expected"; - } - if (message.preHookScreenshots != null && message.hasOwnProperty("preHookScreenshots")) { - if (!Array.isArray(message.preHookScreenshots)) - return "preHookScreenshots: array expected"; - for (var i = 0; i < message.preHookScreenshots.length; ++i) - if (!(message.preHookScreenshots[i] && typeof message.preHookScreenshots[i].length === "number" || $util.isString(message.preHookScreenshots[i]))) - return "preHookScreenshots: buffer[] expected"; - } - if (message.postHookScreenshots != null && message.hasOwnProperty("postHookScreenshots")) { - if (!Array.isArray(message.postHookScreenshots)) - return "postHookScreenshots: array expected"; - for (var i = 0; i < message.postHookScreenshots.length; ++i) - if (!(message.postHookScreenshots[i] && typeof message.postHookScreenshots[i].length === "number" || $util.isString(message.postHookScreenshots[i]))) - return "postHookScreenshots: buffer[] expected"; - } - if (message.chunked != null && message.hasOwnProperty("chunked")) - if (typeof message.chunked !== "boolean") - return "chunked: boolean expected"; - if (message.chunkSize != null && message.hasOwnProperty("chunkSize")) - if (!$util.isInteger(message.chunkSize) && !(message.chunkSize && $util.isInteger(message.chunkSize.low) && $util.isInteger(message.chunkSize.high))) - return "chunkSize: integer|Long expected"; - if (message.preHookScreenshotFiles != null && message.hasOwnProperty("preHookScreenshotFiles")) { - if (!Array.isArray(message.preHookScreenshotFiles)) - return "preHookScreenshotFiles: array expected"; - for (var i = 0; i < message.preHookScreenshotFiles.length; ++i) - if (!$util.isString(message.preHookScreenshotFiles[i])) - return "preHookScreenshotFiles: string[] expected"; - } - if (message.postHookScreenshotFiles != null && message.hasOwnProperty("postHookScreenshotFiles")) { - if (!Array.isArray(message.postHookScreenshotFiles)) - return "postHookScreenshotFiles: array expected"; - for (var i = 0; i < message.postHookScreenshotFiles.length; ++i) - if (!$util.isString(message.postHookScreenshotFiles[i])) - return "postHookScreenshotFiles: string[] expected"; - } - return null; - }; - - /** - * Creates a ProtoSuiteResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoSuiteResult - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoSuiteResult} ProtoSuiteResult - */ - ProtoSuiteResult.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoSuiteResult) - return object; - var message = new $root.gauge.messages.ProtoSuiteResult(); - if (object.specResults) { - if (!Array.isArray(object.specResults)) - throw TypeError(".gauge.messages.ProtoSuiteResult.specResults: array expected"); - message.specResults = []; - for (var i = 0; i < object.specResults.length; ++i) { - if (typeof object.specResults[i] !== "object") - throw TypeError(".gauge.messages.ProtoSuiteResult.specResults: object expected"); - message.specResults[i] = $root.gauge.messages.ProtoSpecResult.fromObject(object.specResults[i]); - } - } - if (object.preHookFailure != null) { - if (typeof object.preHookFailure !== "object") - throw TypeError(".gauge.messages.ProtoSuiteResult.preHookFailure: object expected"); - message.preHookFailure = $root.gauge.messages.ProtoHookFailure.fromObject(object.preHookFailure); - } - if (object.postHookFailure != null) { - if (typeof object.postHookFailure !== "object") - throw TypeError(".gauge.messages.ProtoSuiteResult.postHookFailure: object expected"); - message.postHookFailure = $root.gauge.messages.ProtoHookFailure.fromObject(object.postHookFailure); - } - if (object.failed != null) - message.failed = Boolean(object.failed); - if (object.specsFailedCount != null) - message.specsFailedCount = object.specsFailedCount | 0; - if (object.executionTime != null) - if ($util.Long) - (message.executionTime = $util.Long.fromValue(object.executionTime)).unsigned = false; - else if (typeof object.executionTime === "string") - message.executionTime = parseInt(object.executionTime, 10); - else if (typeof object.executionTime === "number") - message.executionTime = object.executionTime; - else if (typeof object.executionTime === "object") - message.executionTime = new $util.LongBits(object.executionTime.low >>> 0, object.executionTime.high >>> 0).toNumber(); - if (object.successRate != null) - message.successRate = Number(object.successRate); - if (object.environment != null) - message.environment = String(object.environment); - if (object.tags != null) - message.tags = String(object.tags); - if (object.projectName != null) - message.projectName = String(object.projectName); - if (object.timestamp != null) - message.timestamp = String(object.timestamp); - if (object.specsSkippedCount != null) - message.specsSkippedCount = object.specsSkippedCount | 0; - if (object.preHookMessages) { - if (!Array.isArray(object.preHookMessages)) - throw TypeError(".gauge.messages.ProtoSuiteResult.preHookMessages: array expected"); - message.preHookMessages = []; - for (var i = 0; i < object.preHookMessages.length; ++i) - message.preHookMessages[i] = String(object.preHookMessages[i]); - } - if (object.postHookMessages) { - if (!Array.isArray(object.postHookMessages)) - throw TypeError(".gauge.messages.ProtoSuiteResult.postHookMessages: array expected"); - message.postHookMessages = []; - for (var i = 0; i < object.postHookMessages.length; ++i) - message.postHookMessages[i] = String(object.postHookMessages[i]); - } - if (object.preHookMessage) { - if (!Array.isArray(object.preHookMessage)) - throw TypeError(".gauge.messages.ProtoSuiteResult.preHookMessage: array expected"); - message.preHookMessage = []; - for (var i = 0; i < object.preHookMessage.length; ++i) - message.preHookMessage[i] = String(object.preHookMessage[i]); - } - if (object.postHookMessage) { - if (!Array.isArray(object.postHookMessage)) - throw TypeError(".gauge.messages.ProtoSuiteResult.postHookMessage: array expected"); - message.postHookMessage = []; - for (var i = 0; i < object.postHookMessage.length; ++i) - message.postHookMessage[i] = String(object.postHookMessage[i]); - } - if (object.preHookScreenshots) { - if (!Array.isArray(object.preHookScreenshots)) - throw TypeError(".gauge.messages.ProtoSuiteResult.preHookScreenshots: array expected"); - message.preHookScreenshots = []; - for (var i = 0; i < object.preHookScreenshots.length; ++i) - if (typeof object.preHookScreenshots[i] === "string") - $util.base64.decode(object.preHookScreenshots[i], message.preHookScreenshots[i] = $util.newBuffer($util.base64.length(object.preHookScreenshots[i])), 0); - else if (object.preHookScreenshots[i].length) - message.preHookScreenshots[i] = object.preHookScreenshots[i]; - } - if (object.postHookScreenshots) { - if (!Array.isArray(object.postHookScreenshots)) - throw TypeError(".gauge.messages.ProtoSuiteResult.postHookScreenshots: array expected"); - message.postHookScreenshots = []; - for (var i = 0; i < object.postHookScreenshots.length; ++i) - if (typeof object.postHookScreenshots[i] === "string") - $util.base64.decode(object.postHookScreenshots[i], message.postHookScreenshots[i] = $util.newBuffer($util.base64.length(object.postHookScreenshots[i])), 0); - else if (object.postHookScreenshots[i].length) - message.postHookScreenshots[i] = object.postHookScreenshots[i]; - } - if (object.chunked != null) - message.chunked = Boolean(object.chunked); - if (object.chunkSize != null) - if ($util.Long) - (message.chunkSize = $util.Long.fromValue(object.chunkSize)).unsigned = false; - else if (typeof object.chunkSize === "string") - message.chunkSize = parseInt(object.chunkSize, 10); - else if (typeof object.chunkSize === "number") - message.chunkSize = object.chunkSize; - else if (typeof object.chunkSize === "object") - message.chunkSize = new $util.LongBits(object.chunkSize.low >>> 0, object.chunkSize.high >>> 0).toNumber(); - if (object.preHookScreenshotFiles) { - if (!Array.isArray(object.preHookScreenshotFiles)) - throw TypeError(".gauge.messages.ProtoSuiteResult.preHookScreenshotFiles: array expected"); - message.preHookScreenshotFiles = []; - for (var i = 0; i < object.preHookScreenshotFiles.length; ++i) - message.preHookScreenshotFiles[i] = String(object.preHookScreenshotFiles[i]); - } - if (object.postHookScreenshotFiles) { - if (!Array.isArray(object.postHookScreenshotFiles)) - throw TypeError(".gauge.messages.ProtoSuiteResult.postHookScreenshotFiles: array expected"); - message.postHookScreenshotFiles = []; - for (var i = 0; i < object.postHookScreenshotFiles.length; ++i) - message.postHookScreenshotFiles[i] = String(object.postHookScreenshotFiles[i]); - } - return message; - }; - - /** - * Creates a plain object from a ProtoSuiteResult message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoSuiteResult - * @static - * @param {gauge.messages.ProtoSuiteResult} message ProtoSuiteResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoSuiteResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.specResults = []; - object.preHookMessages = []; - object.postHookMessages = []; - object.preHookMessage = []; - object.postHookMessage = []; - object.preHookScreenshots = []; - object.postHookScreenshots = []; - object.preHookScreenshotFiles = []; - object.postHookScreenshotFiles = []; - } - if (options.defaults) { - object.preHookFailure = null; - object.postHookFailure = null; - object.failed = false; - object.specsFailedCount = 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.executionTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.executionTime = options.longs === String ? "0" : 0; - object.successRate = 0; - object.environment = ""; - object.tags = ""; - object.projectName = ""; - object.timestamp = ""; - object.specsSkippedCount = 0; - object.chunked = false; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.chunkSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.chunkSize = options.longs === String ? "0" : 0; - } - if (message.specResults && message.specResults.length) { - object.specResults = []; - for (var j = 0; j < message.specResults.length; ++j) - object.specResults[j] = $root.gauge.messages.ProtoSpecResult.toObject(message.specResults[j], options); - } - if (message.preHookFailure != null && message.hasOwnProperty("preHookFailure")) - object.preHookFailure = $root.gauge.messages.ProtoHookFailure.toObject(message.preHookFailure, options); - if (message.postHookFailure != null && message.hasOwnProperty("postHookFailure")) - object.postHookFailure = $root.gauge.messages.ProtoHookFailure.toObject(message.postHookFailure, options); - if (message.failed != null && message.hasOwnProperty("failed")) - object.failed = message.failed; - if (message.specsFailedCount != null && message.hasOwnProperty("specsFailedCount")) - object.specsFailedCount = message.specsFailedCount; - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - if (typeof message.executionTime === "number") - object.executionTime = options.longs === String ? String(message.executionTime) : message.executionTime; - else - object.executionTime = options.longs === String ? $util.Long.prototype.toString.call(message.executionTime) : options.longs === Number ? new $util.LongBits(message.executionTime.low >>> 0, message.executionTime.high >>> 0).toNumber() : message.executionTime; - if (message.successRate != null && message.hasOwnProperty("successRate")) - object.successRate = options.json && !isFinite(message.successRate) ? String(message.successRate) : message.successRate; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.tags != null && message.hasOwnProperty("tags")) - object.tags = message.tags; - if (message.projectName != null && message.hasOwnProperty("projectName")) - object.projectName = message.projectName; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - object.timestamp = message.timestamp; - if (message.specsSkippedCount != null && message.hasOwnProperty("specsSkippedCount")) - object.specsSkippedCount = message.specsSkippedCount; - if (message.preHookMessages && message.preHookMessages.length) { - object.preHookMessages = []; - for (var j = 0; j < message.preHookMessages.length; ++j) - object.preHookMessages[j] = message.preHookMessages[j]; - } - if (message.postHookMessages && message.postHookMessages.length) { - object.postHookMessages = []; - for (var j = 0; j < message.postHookMessages.length; ++j) - object.postHookMessages[j] = message.postHookMessages[j]; - } - if (message.preHookMessage && message.preHookMessage.length) { - object.preHookMessage = []; - for (var j = 0; j < message.preHookMessage.length; ++j) - object.preHookMessage[j] = message.preHookMessage[j]; - } - if (message.postHookMessage && message.postHookMessage.length) { - object.postHookMessage = []; - for (var j = 0; j < message.postHookMessage.length; ++j) - object.postHookMessage[j] = message.postHookMessage[j]; - } - if (message.preHookScreenshots && message.preHookScreenshots.length) { - object.preHookScreenshots = []; - for (var j = 0; j < message.preHookScreenshots.length; ++j) - object.preHookScreenshots[j] = options.bytes === String ? $util.base64.encode(message.preHookScreenshots[j], 0, message.preHookScreenshots[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.preHookScreenshots[j]) : message.preHookScreenshots[j]; - } - if (message.postHookScreenshots && message.postHookScreenshots.length) { - object.postHookScreenshots = []; - for (var j = 0; j < message.postHookScreenshots.length; ++j) - object.postHookScreenshots[j] = options.bytes === String ? $util.base64.encode(message.postHookScreenshots[j], 0, message.postHookScreenshots[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.postHookScreenshots[j]) : message.postHookScreenshots[j]; - } - if (message.chunked != null && message.hasOwnProperty("chunked")) - object.chunked = message.chunked; - if (message.chunkSize != null && message.hasOwnProperty("chunkSize")) - if (typeof message.chunkSize === "number") - object.chunkSize = options.longs === String ? String(message.chunkSize) : message.chunkSize; - else - object.chunkSize = options.longs === String ? $util.Long.prototype.toString.call(message.chunkSize) : options.longs === Number ? new $util.LongBits(message.chunkSize.low >>> 0, message.chunkSize.high >>> 0).toNumber() : message.chunkSize; - if (message.preHookScreenshotFiles && message.preHookScreenshotFiles.length) { - object.preHookScreenshotFiles = []; - for (var j = 0; j < message.preHookScreenshotFiles.length; ++j) - object.preHookScreenshotFiles[j] = message.preHookScreenshotFiles[j]; - } - if (message.postHookScreenshotFiles && message.postHookScreenshotFiles.length) { - object.postHookScreenshotFiles = []; - for (var j = 0; j < message.postHookScreenshotFiles.length; ++j) - object.postHookScreenshotFiles[j] = message.postHookScreenshotFiles[j]; - } - return object; - }; - - /** - * Converts this ProtoSuiteResult to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoSuiteResult - * @instance - * @returns {Object.} JSON object - */ - ProtoSuiteResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoSuiteResult; - })(); - - messages.ProtoSpecResult = (function() { - - /** - * Properties of a ProtoSpecResult. - * @memberof gauge.messages - * @interface IProtoSpecResult - * @property {gauge.messages.IProtoSpec|null} [protoSpec] Represents the corresponding Specification - * @property {number|null} [scenarioCount] Holds the number of Scenarios executed - * @property {number|null} [scenarioFailedCount] Holds the number of Scenarios failed - * @property {boolean|null} [failed] Flag to indicate failure - * @property {Array.|null} [failedDataTableRows] Holds the row numbers, which caused the execution to fail. - * @property {number|Long|null} [executionTime] Holds the time taken for executing the spec. - * @property {boolean|null} [skipped] Flag to indicate if spec is skipped - * @property {number|null} [scenarioSkippedCount] Holds the number of Scenarios skipped - * @property {Array.|null} [skippedDataTableRows] Holds the row numbers, for which the execution skipped. - * @property {Array.|null} [errors] Holds parse, validation and skipped errors. - * @property {string|null} [timestamp] Holds the timestamp of event starting. - */ - - /** - * Constructs a new ProtoSpecResult. - * @memberof gauge.messages - * @classdesc A proto object representing the result of Spec execution. - * @implements IProtoSpecResult - * @constructor - * @param {gauge.messages.IProtoSpecResult=} [properties] Properties to set - */ - function ProtoSpecResult(properties) { - this.failedDataTableRows = []; - this.skippedDataTableRows = []; - this.errors = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Represents the corresponding Specification - * @member {gauge.messages.IProtoSpec|null|undefined} protoSpec - * @memberof gauge.messages.ProtoSpecResult - * @instance - */ - ProtoSpecResult.prototype.protoSpec = null; - - /** - * Holds the number of Scenarios executed - * @member {number} scenarioCount - * @memberof gauge.messages.ProtoSpecResult - * @instance - */ - ProtoSpecResult.prototype.scenarioCount = 0; - - /** - * Holds the number of Scenarios failed - * @member {number} scenarioFailedCount - * @memberof gauge.messages.ProtoSpecResult - * @instance - */ - ProtoSpecResult.prototype.scenarioFailedCount = 0; - - /** - * Flag to indicate failure - * @member {boolean} failed - * @memberof gauge.messages.ProtoSpecResult - * @instance - */ - ProtoSpecResult.prototype.failed = false; - - /** - * Holds the row numbers, which caused the execution to fail. - * @member {Array.} failedDataTableRows - * @memberof gauge.messages.ProtoSpecResult - * @instance - */ - ProtoSpecResult.prototype.failedDataTableRows = $util.emptyArray; - - /** - * Holds the time taken for executing the spec. - * @member {number|Long} executionTime - * @memberof gauge.messages.ProtoSpecResult - * @instance - */ - ProtoSpecResult.prototype.executionTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Flag to indicate if spec is skipped - * @member {boolean} skipped - * @memberof gauge.messages.ProtoSpecResult - * @instance - */ - ProtoSpecResult.prototype.skipped = false; - - /** - * Holds the number of Scenarios skipped - * @member {number} scenarioSkippedCount - * @memberof gauge.messages.ProtoSpecResult - * @instance - */ - ProtoSpecResult.prototype.scenarioSkippedCount = 0; - - /** - * Holds the row numbers, for which the execution skipped. - * @member {Array.} skippedDataTableRows - * @memberof gauge.messages.ProtoSpecResult - * @instance - */ - ProtoSpecResult.prototype.skippedDataTableRows = $util.emptyArray; - - /** - * Holds parse, validation and skipped errors. - * @member {Array.} errors - * @memberof gauge.messages.ProtoSpecResult - * @instance - */ - ProtoSpecResult.prototype.errors = $util.emptyArray; - - /** - * Holds the timestamp of event starting. - * @member {string} timestamp - * @memberof gauge.messages.ProtoSpecResult - * @instance - */ - ProtoSpecResult.prototype.timestamp = ""; - - /** - * Creates a new ProtoSpecResult instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoSpecResult - * @static - * @param {gauge.messages.IProtoSpecResult=} [properties] Properties to set - * @returns {gauge.messages.ProtoSpecResult} ProtoSpecResult instance - */ - ProtoSpecResult.create = function create(properties) { - return new ProtoSpecResult(properties); - }; - - /** - * Encodes the specified ProtoSpecResult message. Does not implicitly {@link gauge.messages.ProtoSpecResult.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoSpecResult - * @static - * @param {gauge.messages.IProtoSpecResult} message ProtoSpecResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoSpecResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.protoSpec != null && message.hasOwnProperty("protoSpec")) - $root.gauge.messages.ProtoSpec.encode(message.protoSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.scenarioCount != null && message.hasOwnProperty("scenarioCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.scenarioCount); - if (message.scenarioFailedCount != null && message.hasOwnProperty("scenarioFailedCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.scenarioFailedCount); - if (message.failed != null && message.hasOwnProperty("failed")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.failed); - if (message.failedDataTableRows != null && message.failedDataTableRows.length) { - writer.uint32(/* id 5, wireType 2 =*/42).fork(); - for (var i = 0; i < message.failedDataTableRows.length; ++i) - writer.int32(message.failedDataTableRows[i]); - writer.ldelim(); - } - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.executionTime); - if (message.skipped != null && message.hasOwnProperty("skipped")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.skipped); - if (message.scenarioSkippedCount != null && message.hasOwnProperty("scenarioSkippedCount")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.scenarioSkippedCount); - if (message.skippedDataTableRows != null && message.skippedDataTableRows.length) { - writer.uint32(/* id 9, wireType 2 =*/74).fork(); - for (var i = 0; i < message.skippedDataTableRows.length; ++i) - writer.int32(message.skippedDataTableRows[i]); - writer.ldelim(); - } - if (message.errors != null && message.errors.length) - for (var i = 0; i < message.errors.length; ++i) - $root.gauge.messages.Error.encode(message.errors[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.timestamp); - return writer; - }; - - /** - * Encodes the specified ProtoSpecResult message, length delimited. Does not implicitly {@link gauge.messages.ProtoSpecResult.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoSpecResult - * @static - * @param {gauge.messages.IProtoSpecResult} message ProtoSpecResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoSpecResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoSpecResult message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoSpecResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoSpecResult} ProtoSpecResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoSpecResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoSpecResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.protoSpec = $root.gauge.messages.ProtoSpec.decode(reader, reader.uint32()); - break; - case 2: - message.scenarioCount = reader.int32(); - break; - case 3: - message.scenarioFailedCount = reader.int32(); - break; - case 4: - message.failed = reader.bool(); - break; - case 5: - if (!(message.failedDataTableRows && message.failedDataTableRows.length)) - message.failedDataTableRows = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.failedDataTableRows.push(reader.int32()); - } else - message.failedDataTableRows.push(reader.int32()); - break; - case 6: - message.executionTime = reader.int64(); - break; - case 7: - message.skipped = reader.bool(); - break; - case 8: - message.scenarioSkippedCount = reader.int32(); - break; - case 9: - if (!(message.skippedDataTableRows && message.skippedDataTableRows.length)) - message.skippedDataTableRows = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.skippedDataTableRows.push(reader.int32()); - } else - message.skippedDataTableRows.push(reader.int32()); - break; - case 10: - if (!(message.errors && message.errors.length)) - message.errors = []; - message.errors.push($root.gauge.messages.Error.decode(reader, reader.uint32())); - break; - case 11: - message.timestamp = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoSpecResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoSpecResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoSpecResult} ProtoSpecResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoSpecResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoSpecResult message. - * @function verify - * @memberof gauge.messages.ProtoSpecResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoSpecResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.protoSpec != null && message.hasOwnProperty("protoSpec")) { - var error = $root.gauge.messages.ProtoSpec.verify(message.protoSpec); - if (error) - return "protoSpec." + error; - } - if (message.scenarioCount != null && message.hasOwnProperty("scenarioCount")) - if (!$util.isInteger(message.scenarioCount)) - return "scenarioCount: integer expected"; - if (message.scenarioFailedCount != null && message.hasOwnProperty("scenarioFailedCount")) - if (!$util.isInteger(message.scenarioFailedCount)) - return "scenarioFailedCount: integer expected"; - if (message.failed != null && message.hasOwnProperty("failed")) - if (typeof message.failed !== "boolean") - return "failed: boolean expected"; - if (message.failedDataTableRows != null && message.hasOwnProperty("failedDataTableRows")) { - if (!Array.isArray(message.failedDataTableRows)) - return "failedDataTableRows: array expected"; - for (var i = 0; i < message.failedDataTableRows.length; ++i) - if (!$util.isInteger(message.failedDataTableRows[i])) - return "failedDataTableRows: integer[] expected"; - } - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - if (!$util.isInteger(message.executionTime) && !(message.executionTime && $util.isInteger(message.executionTime.low) && $util.isInteger(message.executionTime.high))) - return "executionTime: integer|Long expected"; - if (message.skipped != null && message.hasOwnProperty("skipped")) - if (typeof message.skipped !== "boolean") - return "skipped: boolean expected"; - if (message.scenarioSkippedCount != null && message.hasOwnProperty("scenarioSkippedCount")) - if (!$util.isInteger(message.scenarioSkippedCount)) - return "scenarioSkippedCount: integer expected"; - if (message.skippedDataTableRows != null && message.hasOwnProperty("skippedDataTableRows")) { - if (!Array.isArray(message.skippedDataTableRows)) - return "skippedDataTableRows: array expected"; - for (var i = 0; i < message.skippedDataTableRows.length; ++i) - if (!$util.isInteger(message.skippedDataTableRows[i])) - return "skippedDataTableRows: integer[] expected"; - } - if (message.errors != null && message.hasOwnProperty("errors")) { - if (!Array.isArray(message.errors)) - return "errors: array expected"; - for (var i = 0; i < message.errors.length; ++i) { - var error = $root.gauge.messages.Error.verify(message.errors[i]); - if (error) - return "errors." + error; - } - } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isString(message.timestamp)) - return "timestamp: string expected"; - return null; - }; - - /** - * Creates a ProtoSpecResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoSpecResult - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoSpecResult} ProtoSpecResult - */ - ProtoSpecResult.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoSpecResult) - return object; - var message = new $root.gauge.messages.ProtoSpecResult(); - if (object.protoSpec != null) { - if (typeof object.protoSpec !== "object") - throw TypeError(".gauge.messages.ProtoSpecResult.protoSpec: object expected"); - message.protoSpec = $root.gauge.messages.ProtoSpec.fromObject(object.protoSpec); - } - if (object.scenarioCount != null) - message.scenarioCount = object.scenarioCount | 0; - if (object.scenarioFailedCount != null) - message.scenarioFailedCount = object.scenarioFailedCount | 0; - if (object.failed != null) - message.failed = Boolean(object.failed); - if (object.failedDataTableRows) { - if (!Array.isArray(object.failedDataTableRows)) - throw TypeError(".gauge.messages.ProtoSpecResult.failedDataTableRows: array expected"); - message.failedDataTableRows = []; - for (var i = 0; i < object.failedDataTableRows.length; ++i) - message.failedDataTableRows[i] = object.failedDataTableRows[i] | 0; - } - if (object.executionTime != null) - if ($util.Long) - (message.executionTime = $util.Long.fromValue(object.executionTime)).unsigned = false; - else if (typeof object.executionTime === "string") - message.executionTime = parseInt(object.executionTime, 10); - else if (typeof object.executionTime === "number") - message.executionTime = object.executionTime; - else if (typeof object.executionTime === "object") - message.executionTime = new $util.LongBits(object.executionTime.low >>> 0, object.executionTime.high >>> 0).toNumber(); - if (object.skipped != null) - message.skipped = Boolean(object.skipped); - if (object.scenarioSkippedCount != null) - message.scenarioSkippedCount = object.scenarioSkippedCount | 0; - if (object.skippedDataTableRows) { - if (!Array.isArray(object.skippedDataTableRows)) - throw TypeError(".gauge.messages.ProtoSpecResult.skippedDataTableRows: array expected"); - message.skippedDataTableRows = []; - for (var i = 0; i < object.skippedDataTableRows.length; ++i) - message.skippedDataTableRows[i] = object.skippedDataTableRows[i] | 0; - } - if (object.errors) { - if (!Array.isArray(object.errors)) - throw TypeError(".gauge.messages.ProtoSpecResult.errors: array expected"); - message.errors = []; - for (var i = 0; i < object.errors.length; ++i) { - if (typeof object.errors[i] !== "object") - throw TypeError(".gauge.messages.ProtoSpecResult.errors: object expected"); - message.errors[i] = $root.gauge.messages.Error.fromObject(object.errors[i]); - } - } - if (object.timestamp != null) - message.timestamp = String(object.timestamp); - return message; - }; - - /** - * Creates a plain object from a ProtoSpecResult message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoSpecResult - * @static - * @param {gauge.messages.ProtoSpecResult} message ProtoSpecResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoSpecResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.failedDataTableRows = []; - object.skippedDataTableRows = []; - object.errors = []; - } - if (options.defaults) { - object.protoSpec = null; - object.scenarioCount = 0; - object.scenarioFailedCount = 0; - object.failed = false; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.executionTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.executionTime = options.longs === String ? "0" : 0; - object.skipped = false; - object.scenarioSkippedCount = 0; - object.timestamp = ""; - } - if (message.protoSpec != null && message.hasOwnProperty("protoSpec")) - object.protoSpec = $root.gauge.messages.ProtoSpec.toObject(message.protoSpec, options); - if (message.scenarioCount != null && message.hasOwnProperty("scenarioCount")) - object.scenarioCount = message.scenarioCount; - if (message.scenarioFailedCount != null && message.hasOwnProperty("scenarioFailedCount")) - object.scenarioFailedCount = message.scenarioFailedCount; - if (message.failed != null && message.hasOwnProperty("failed")) - object.failed = message.failed; - if (message.failedDataTableRows && message.failedDataTableRows.length) { - object.failedDataTableRows = []; - for (var j = 0; j < message.failedDataTableRows.length; ++j) - object.failedDataTableRows[j] = message.failedDataTableRows[j]; - } - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - if (typeof message.executionTime === "number") - object.executionTime = options.longs === String ? String(message.executionTime) : message.executionTime; - else - object.executionTime = options.longs === String ? $util.Long.prototype.toString.call(message.executionTime) : options.longs === Number ? new $util.LongBits(message.executionTime.low >>> 0, message.executionTime.high >>> 0).toNumber() : message.executionTime; - if (message.skipped != null && message.hasOwnProperty("skipped")) - object.skipped = message.skipped; - if (message.scenarioSkippedCount != null && message.hasOwnProperty("scenarioSkippedCount")) - object.scenarioSkippedCount = message.scenarioSkippedCount; - if (message.skippedDataTableRows && message.skippedDataTableRows.length) { - object.skippedDataTableRows = []; - for (var j = 0; j < message.skippedDataTableRows.length; ++j) - object.skippedDataTableRows[j] = message.skippedDataTableRows[j]; - } - if (message.errors && message.errors.length) { - object.errors = []; - for (var j = 0; j < message.errors.length; ++j) - object.errors[j] = $root.gauge.messages.Error.toObject(message.errors[j], options); - } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - object.timestamp = message.timestamp; - return object; - }; - - /** - * Converts this ProtoSpecResult to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoSpecResult - * @instance - * @returns {Object.} JSON object - */ - ProtoSpecResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoSpecResult; - })(); - - messages.ProtoScenarioResult = (function() { - - /** - * Properties of a ProtoScenarioResult. - * @memberof gauge.messages - * @interface IProtoScenarioResult - * @property {gauge.messages.IProtoItem|null} [protoItem] Collection of scenarios in scenario execution result. - * @property {number|Long|null} [executionTime] Holds the time taken for executing the whole suite. - * @property {string|null} [timestamp] Holds the timestamp of event starting. - */ - - /** - * Constructs a new ProtoScenarioResult. - * @memberof gauge.messages - * @classdesc A proto object representing the result of Scenario execution. - * @implements IProtoScenarioResult - * @constructor - * @param {gauge.messages.IProtoScenarioResult=} [properties] Properties to set - */ - function ProtoScenarioResult(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Collection of scenarios in scenario execution result. - * @member {gauge.messages.IProtoItem|null|undefined} protoItem - * @memberof gauge.messages.ProtoScenarioResult - * @instance - */ - ProtoScenarioResult.prototype.protoItem = null; - - /** - * Holds the time taken for executing the whole suite. - * @member {number|Long} executionTime - * @memberof gauge.messages.ProtoScenarioResult - * @instance - */ - ProtoScenarioResult.prototype.executionTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Holds the timestamp of event starting. - * @member {string} timestamp - * @memberof gauge.messages.ProtoScenarioResult - * @instance - */ - ProtoScenarioResult.prototype.timestamp = ""; - - /** - * Creates a new ProtoScenarioResult instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoScenarioResult - * @static - * @param {gauge.messages.IProtoScenarioResult=} [properties] Properties to set - * @returns {gauge.messages.ProtoScenarioResult} ProtoScenarioResult instance - */ - ProtoScenarioResult.create = function create(properties) { - return new ProtoScenarioResult(properties); - }; - - /** - * Encodes the specified ProtoScenarioResult message. Does not implicitly {@link gauge.messages.ProtoScenarioResult.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoScenarioResult - * @static - * @param {gauge.messages.IProtoScenarioResult} message ProtoScenarioResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoScenarioResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.protoItem != null && message.hasOwnProperty("protoItem")) - $root.gauge.messages.ProtoItem.encode(message.protoItem, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.executionTime); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.timestamp); - return writer; - }; - - /** - * Encodes the specified ProtoScenarioResult message, length delimited. Does not implicitly {@link gauge.messages.ProtoScenarioResult.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoScenarioResult - * @static - * @param {gauge.messages.IProtoScenarioResult} message ProtoScenarioResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoScenarioResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoScenarioResult message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoScenarioResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoScenarioResult} ProtoScenarioResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoScenarioResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoScenarioResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.protoItem = $root.gauge.messages.ProtoItem.decode(reader, reader.uint32()); - break; - case 2: - message.executionTime = reader.int64(); - break; - case 3: - message.timestamp = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoScenarioResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoScenarioResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoScenarioResult} ProtoScenarioResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoScenarioResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoScenarioResult message. - * @function verify - * @memberof gauge.messages.ProtoScenarioResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoScenarioResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.protoItem != null && message.hasOwnProperty("protoItem")) { - var error = $root.gauge.messages.ProtoItem.verify(message.protoItem); - if (error) - return "protoItem." + error; - } - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - if (!$util.isInteger(message.executionTime) && !(message.executionTime && $util.isInteger(message.executionTime.low) && $util.isInteger(message.executionTime.high))) - return "executionTime: integer|Long expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isString(message.timestamp)) - return "timestamp: string expected"; - return null; - }; - - /** - * Creates a ProtoScenarioResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoScenarioResult - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoScenarioResult} ProtoScenarioResult - */ - ProtoScenarioResult.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoScenarioResult) - return object; - var message = new $root.gauge.messages.ProtoScenarioResult(); - if (object.protoItem != null) { - if (typeof object.protoItem !== "object") - throw TypeError(".gauge.messages.ProtoScenarioResult.protoItem: object expected"); - message.protoItem = $root.gauge.messages.ProtoItem.fromObject(object.protoItem); - } - if (object.executionTime != null) - if ($util.Long) - (message.executionTime = $util.Long.fromValue(object.executionTime)).unsigned = false; - else if (typeof object.executionTime === "string") - message.executionTime = parseInt(object.executionTime, 10); - else if (typeof object.executionTime === "number") - message.executionTime = object.executionTime; - else if (typeof object.executionTime === "object") - message.executionTime = new $util.LongBits(object.executionTime.low >>> 0, object.executionTime.high >>> 0).toNumber(); - if (object.timestamp != null) - message.timestamp = String(object.timestamp); - return message; - }; - - /** - * Creates a plain object from a ProtoScenarioResult message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoScenarioResult - * @static - * @param {gauge.messages.ProtoScenarioResult} message ProtoScenarioResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoScenarioResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.protoItem = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.executionTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.executionTime = options.longs === String ? "0" : 0; - object.timestamp = ""; - } - if (message.protoItem != null && message.hasOwnProperty("protoItem")) - object.protoItem = $root.gauge.messages.ProtoItem.toObject(message.protoItem, options); - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - if (typeof message.executionTime === "number") - object.executionTime = options.longs === String ? String(message.executionTime) : message.executionTime; - else - object.executionTime = options.longs === String ? $util.Long.prototype.toString.call(message.executionTime) : options.longs === Number ? new $util.LongBits(message.executionTime.low >>> 0, message.executionTime.high >>> 0).toNumber() : message.executionTime; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - object.timestamp = message.timestamp; - return object; - }; - - /** - * Converts this ProtoScenarioResult to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoScenarioResult - * @instance - * @returns {Object.} JSON object - */ - ProtoScenarioResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoScenarioResult; - })(); - - messages.ProtoStepResult = (function() { - - /** - * Properties of a ProtoStepResult. - * @memberof gauge.messages - * @interface IProtoStepResult - * @property {gauge.messages.IProtoItem|null} [protoItem] Collection of steps in step execution result. - * @property {number|Long|null} [executionTime] Holds the time taken for executing the whole suite. - * @property {string|null} [timestamp] Holds the timestamp of event starting. - */ - - /** - * Constructs a new ProtoStepResult. - * @memberof gauge.messages - * @classdesc A proto object representing the result of Step execution. - * @implements IProtoStepResult - * @constructor - * @param {gauge.messages.IProtoStepResult=} [properties] Properties to set - */ - function ProtoStepResult(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Collection of steps in step execution result. - * @member {gauge.messages.IProtoItem|null|undefined} protoItem - * @memberof gauge.messages.ProtoStepResult - * @instance - */ - ProtoStepResult.prototype.protoItem = null; - - /** - * Holds the time taken for executing the whole suite. - * @member {number|Long} executionTime - * @memberof gauge.messages.ProtoStepResult - * @instance - */ - ProtoStepResult.prototype.executionTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Holds the timestamp of event starting. - * @member {string} timestamp - * @memberof gauge.messages.ProtoStepResult - * @instance - */ - ProtoStepResult.prototype.timestamp = ""; - - /** - * Creates a new ProtoStepResult instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoStepResult - * @static - * @param {gauge.messages.IProtoStepResult=} [properties] Properties to set - * @returns {gauge.messages.ProtoStepResult} ProtoStepResult instance - */ - ProtoStepResult.create = function create(properties) { - return new ProtoStepResult(properties); - }; - - /** - * Encodes the specified ProtoStepResult message. Does not implicitly {@link gauge.messages.ProtoStepResult.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoStepResult - * @static - * @param {gauge.messages.IProtoStepResult} message ProtoStepResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoStepResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.protoItem != null && message.hasOwnProperty("protoItem")) - $root.gauge.messages.ProtoItem.encode(message.protoItem, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.executionTime); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.timestamp); - return writer; - }; - - /** - * Encodes the specified ProtoStepResult message, length delimited. Does not implicitly {@link gauge.messages.ProtoStepResult.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoStepResult - * @static - * @param {gauge.messages.IProtoStepResult} message ProtoStepResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoStepResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoStepResult message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoStepResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoStepResult} ProtoStepResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoStepResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoStepResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.protoItem = $root.gauge.messages.ProtoItem.decode(reader, reader.uint32()); - break; - case 2: - message.executionTime = reader.int64(); - break; - case 3: - message.timestamp = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoStepResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoStepResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoStepResult} ProtoStepResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoStepResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoStepResult message. - * @function verify - * @memberof gauge.messages.ProtoStepResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoStepResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.protoItem != null && message.hasOwnProperty("protoItem")) { - var error = $root.gauge.messages.ProtoItem.verify(message.protoItem); - if (error) - return "protoItem." + error; - } - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - if (!$util.isInteger(message.executionTime) && !(message.executionTime && $util.isInteger(message.executionTime.low) && $util.isInteger(message.executionTime.high))) - return "executionTime: integer|Long expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isString(message.timestamp)) - return "timestamp: string expected"; - return null; - }; - - /** - * Creates a ProtoStepResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoStepResult - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoStepResult} ProtoStepResult - */ - ProtoStepResult.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoStepResult) - return object; - var message = new $root.gauge.messages.ProtoStepResult(); - if (object.protoItem != null) { - if (typeof object.protoItem !== "object") - throw TypeError(".gauge.messages.ProtoStepResult.protoItem: object expected"); - message.protoItem = $root.gauge.messages.ProtoItem.fromObject(object.protoItem); - } - if (object.executionTime != null) - if ($util.Long) - (message.executionTime = $util.Long.fromValue(object.executionTime)).unsigned = false; - else if (typeof object.executionTime === "string") - message.executionTime = parseInt(object.executionTime, 10); - else if (typeof object.executionTime === "number") - message.executionTime = object.executionTime; - else if (typeof object.executionTime === "object") - message.executionTime = new $util.LongBits(object.executionTime.low >>> 0, object.executionTime.high >>> 0).toNumber(); - if (object.timestamp != null) - message.timestamp = String(object.timestamp); - return message; - }; - - /** - * Creates a plain object from a ProtoStepResult message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoStepResult - * @static - * @param {gauge.messages.ProtoStepResult} message ProtoStepResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoStepResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.protoItem = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.executionTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.executionTime = options.longs === String ? "0" : 0; - object.timestamp = ""; - } - if (message.protoItem != null && message.hasOwnProperty("protoItem")) - object.protoItem = $root.gauge.messages.ProtoItem.toObject(message.protoItem, options); - if (message.executionTime != null && message.hasOwnProperty("executionTime")) - if (typeof message.executionTime === "number") - object.executionTime = options.longs === String ? String(message.executionTime) : message.executionTime; - else - object.executionTime = options.longs === String ? $util.Long.prototype.toString.call(message.executionTime) : options.longs === Number ? new $util.LongBits(message.executionTime.low >>> 0, message.executionTime.high >>> 0).toNumber() : message.executionTime; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - object.timestamp = message.timestamp; - return object; - }; - - /** - * Converts this ProtoStepResult to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoStepResult - * @instance - * @returns {Object.} JSON object - */ - ProtoStepResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoStepResult; - })(); - - messages.Error = (function() { - - /** - * Properties of an Error. - * @memberof gauge.messages - * @interface IError - * @property {gauge.messages.Error.ErrorType|null} [type] Holds the type of error - * @property {string|null} [filename] Holds the filename. - * @property {number|null} [lineNumber] Holds the line number of the error in file. - * @property {string|null} [message] Holds the error message. - */ - - /** - * Constructs a new Error. - * @memberof gauge.messages - * @classdesc A proto object representing an error in spec/Scenario. - * @implements IError - * @constructor - * @param {gauge.messages.IError=} [properties] Properties to set - */ - function Error(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the type of error - * @member {gauge.messages.Error.ErrorType} type - * @memberof gauge.messages.Error - * @instance - */ - Error.prototype.type = 0; - - /** - * Holds the filename. - * @member {string} filename - * @memberof gauge.messages.Error - * @instance - */ - Error.prototype.filename = ""; - - /** - * Holds the line number of the error in file. - * @member {number} lineNumber - * @memberof gauge.messages.Error - * @instance - */ - Error.prototype.lineNumber = 0; - - /** - * Holds the error message. - * @member {string} message - * @memberof gauge.messages.Error - * @instance - */ - Error.prototype.message = ""; - - /** - * Creates a new Error instance using the specified properties. - * @function create - * @memberof gauge.messages.Error - * @static - * @param {gauge.messages.IError=} [properties] Properties to set - * @returns {gauge.messages.Error} Error instance - */ - Error.create = function create(properties) { - return new Error(properties); - }; - - /** - * Encodes the specified Error message. Does not implicitly {@link gauge.messages.Error.verify|verify} messages. - * @function encode - * @memberof gauge.messages.Error - * @static - * @param {gauge.messages.IError} message Error message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Error.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && message.hasOwnProperty("type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.filename != null && message.hasOwnProperty("filename")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filename); - if (message.lineNumber != null && message.hasOwnProperty("lineNumber")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.lineNumber); - if (message.message != null && message.hasOwnProperty("message")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); - return writer; - }; - - /** - * Encodes the specified Error message, length delimited. Does not implicitly {@link gauge.messages.Error.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.Error - * @static - * @param {gauge.messages.IError} message Error message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Error.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Error message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.Error - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.Error} Error - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Error.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.Error(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 2: - message.filename = reader.string(); - break; - case 3: - message.lineNumber = reader.int32(); - break; - case 4: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Error message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.Error - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.Error} Error - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Error.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Error message. - * @function verify - * @memberof gauge.messages.Error - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Error.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - break; - } - if (message.filename != null && message.hasOwnProperty("filename")) - if (!$util.isString(message.filename)) - return "filename: string expected"; - if (message.lineNumber != null && message.hasOwnProperty("lineNumber")) - if (!$util.isInteger(message.lineNumber)) - return "lineNumber: integer expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - - /** - * Creates an Error message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.Error - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.Error} Error - */ - Error.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.Error) - return object; - var message = new $root.gauge.messages.Error(); - switch (object.type) { - case "PARSE_ERROR": - case 0: - message.type = 0; - break; - case "VALIDATION_ERROR": - case 1: - message.type = 1; - break; - } - if (object.filename != null) - message.filename = String(object.filename); - if (object.lineNumber != null) - message.lineNumber = object.lineNumber | 0; - if (object.message != null) - message.message = String(object.message); - return message; - }; - - /** - * Creates a plain object from an Error message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.Error - * @static - * @param {gauge.messages.Error} message Error - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Error.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "PARSE_ERROR" : 0; - object.filename = ""; - object.lineNumber = 0; - object.message = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.gauge.messages.Error.ErrorType[message.type] : message.type; - if (message.filename != null && message.hasOwnProperty("filename")) - object.filename = message.filename; - if (message.lineNumber != null && message.hasOwnProperty("lineNumber")) - object.lineNumber = message.lineNumber; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - return object; - }; - - /** - * Converts this Error to JSON. - * @function toJSON - * @memberof gauge.messages.Error - * @instance - * @returns {Object.} JSON object - */ - Error.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * ErrorType enum. - * @name gauge.messages.Error.ErrorType - * @enum {string} - * @property {number} PARSE_ERROR=0 PARSE_ERROR value - * @property {number} VALIDATION_ERROR=1 VALIDATION_ERROR value - */ - Error.ErrorType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PARSE_ERROR"] = 0; - values[valuesById[1] = "VALIDATION_ERROR"] = 1; - return values; - })(); - - return Error; - })(); - - messages.ProtoStepValue = (function() { - - /** - * Properties of a ProtoStepValue. - * @memberof gauge.messages - * @interface IProtoStepValue - * @property {string|null} [stepValue] The actual string value describing he Step - * @property {string|null} [parameterizedStepValue] The parameterized string value describing he Step. The parameters are replaced with placeholders. - * @property {Array.|null} [parameters] A collection of strings representing the parameters. - */ - - /** - * Constructs a new ProtoStepValue. - * @memberof gauge.messages - * @classdesc A proto object representing a Step value. - * @implements IProtoStepValue - * @constructor - * @param {gauge.messages.IProtoStepValue=} [properties] Properties to set - */ - function ProtoStepValue(properties) { - this.parameters = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * The actual string value describing he Step - * @member {string} stepValue - * @memberof gauge.messages.ProtoStepValue - * @instance - */ - ProtoStepValue.prototype.stepValue = ""; - - /** - * The parameterized string value describing he Step. The parameters are replaced with placeholders. - * @member {string} parameterizedStepValue - * @memberof gauge.messages.ProtoStepValue - * @instance - */ - ProtoStepValue.prototype.parameterizedStepValue = ""; - - /** - * A collection of strings representing the parameters. - * @member {Array.} parameters - * @memberof gauge.messages.ProtoStepValue - * @instance - */ - ProtoStepValue.prototype.parameters = $util.emptyArray; - - /** - * Creates a new ProtoStepValue instance using the specified properties. - * @function create - * @memberof gauge.messages.ProtoStepValue - * @static - * @param {gauge.messages.IProtoStepValue=} [properties] Properties to set - * @returns {gauge.messages.ProtoStepValue} ProtoStepValue instance - */ - ProtoStepValue.create = function create(properties) { - return new ProtoStepValue(properties); - }; - - /** - * Encodes the specified ProtoStepValue message. Does not implicitly {@link gauge.messages.ProtoStepValue.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ProtoStepValue - * @static - * @param {gauge.messages.IProtoStepValue} message ProtoStepValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoStepValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stepValue); - if (message.parameterizedStepValue != null && message.hasOwnProperty("parameterizedStepValue")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterizedStepValue); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.parameters[i]); - return writer; - }; - - /** - * Encodes the specified ProtoStepValue message, length delimited. Does not implicitly {@link gauge.messages.ProtoStepValue.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ProtoStepValue - * @static - * @param {gauge.messages.IProtoStepValue} message ProtoStepValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProtoStepValue.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ProtoStepValue message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ProtoStepValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ProtoStepValue} ProtoStepValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoStepValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ProtoStepValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stepValue = reader.string(); - break; - case 2: - message.parameterizedStepValue = reader.string(); - break; - case 3: - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ProtoStepValue message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ProtoStepValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ProtoStepValue} ProtoStepValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProtoStepValue.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProtoStepValue message. - * @function verify - * @memberof gauge.messages.ProtoStepValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProtoStepValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - if (!$util.isString(message.stepValue)) - return "stepValue: string expected"; - if (message.parameterizedStepValue != null && message.hasOwnProperty("parameterizedStepValue")) - if (!$util.isString(message.parameterizedStepValue)) - return "parameterizedStepValue: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!Array.isArray(message.parameters)) - return "parameters: array expected"; - for (var i = 0; i < message.parameters.length; ++i) - if (!$util.isString(message.parameters[i])) - return "parameters: string[] expected"; - } - return null; - }; - - /** - * Creates a ProtoStepValue message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ProtoStepValue - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ProtoStepValue} ProtoStepValue - */ - ProtoStepValue.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ProtoStepValue) - return object; - var message = new $root.gauge.messages.ProtoStepValue(); - if (object.stepValue != null) - message.stepValue = String(object.stepValue); - if (object.parameterizedStepValue != null) - message.parameterizedStepValue = String(object.parameterizedStepValue); - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".gauge.messages.ProtoStepValue.parameters: array expected"); - message.parameters = []; - for (var i = 0; i < object.parameters.length; ++i) - message.parameters[i] = String(object.parameters[i]); - } - return message; - }; - - /** - * Creates a plain object from a ProtoStepValue message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ProtoStepValue - * @static - * @param {gauge.messages.ProtoStepValue} message ProtoStepValue - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProtoStepValue.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.parameters = []; - if (options.defaults) { - object.stepValue = ""; - object.parameterizedStepValue = ""; - } - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - object.stepValue = message.stepValue; - if (message.parameterizedStepValue != null && message.hasOwnProperty("parameterizedStepValue")) - object.parameterizedStepValue = message.parameterizedStepValue; - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = message.parameters[j]; - } - return object; - }; - - /** - * Converts this ProtoStepValue to JSON. - * @function toJSON - * @memberof gauge.messages.ProtoStepValue - * @instance - * @returns {Object.} JSON object - */ - ProtoStepValue.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ProtoStepValue; - })(); - - messages.lspService = (function() { - - /** - * Constructs a new lspService service. - * @memberof gauge.messages - * @classdesc Represents a lspService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function lspService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (lspService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = lspService; - - /** - * Creates new lspService service using the specified rpc implementation. - * @function create - * @memberof gauge.messages.lspService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {lspService} RPC service. Useful where requests and/or responses are streamed. - */ - lspService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link gauge.messages.lspService#getStepNames}. - * @memberof gauge.messages.lspService - * @typedef GetStepNamesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.StepNamesResponse} [response] StepNamesResponse - */ - - /** - * Calls GetStepNames. - * @function getStepNames - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IStepNamesRequest} request StepNamesRequest message or plain object - * @param {gauge.messages.lspService.GetStepNamesCallback} callback Node-style callback called with the error, if any, and StepNamesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(lspService.prototype.getStepNames = function getStepNames(request, callback) { - return this.rpcCall(getStepNames, $root.gauge.messages.StepNamesRequest, $root.gauge.messages.StepNamesResponse, request, callback); - }, "name", { value: "GetStepNames" }); - - /** - * Calls GetStepNames. - * @function getStepNames - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IStepNamesRequest} request StepNamesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.lspService#cacheFile}. - * @memberof gauge.messages.lspService - * @typedef CacheFileCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls CacheFile. - * @function cacheFile - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.ICacheFileRequest} request CacheFileRequest message or plain object - * @param {gauge.messages.lspService.CacheFileCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(lspService.prototype.cacheFile = function cacheFile(request, callback) { - return this.rpcCall(cacheFile, $root.gauge.messages.CacheFileRequest, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "CacheFile" }); - - /** - * Calls CacheFile. - * @function cacheFile - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.ICacheFileRequest} request CacheFileRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.lspService#getStepPositions}. - * @memberof gauge.messages.lspService - * @typedef GetStepPositionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.StepPositionsResponse} [response] StepPositionsResponse - */ - - /** - * Calls GetStepPositions. - * @function getStepPositions - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IStepPositionsRequest} request StepPositionsRequest message or plain object - * @param {gauge.messages.lspService.GetStepPositionsCallback} callback Node-style callback called with the error, if any, and StepPositionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(lspService.prototype.getStepPositions = function getStepPositions(request, callback) { - return this.rpcCall(getStepPositions, $root.gauge.messages.StepPositionsRequest, $root.gauge.messages.StepPositionsResponse, request, callback); - }, "name", { value: "GetStepPositions" }); - - /** - * Calls GetStepPositions. - * @function getStepPositions - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IStepPositionsRequest} request StepPositionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.lspService#getImplementationFiles}. - * @memberof gauge.messages.lspService - * @typedef GetImplementationFilesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ImplementationFileListResponse} [response] ImplementationFileListResponse - */ - - /** - * Calls GetImplementationFiles. - * @function getImplementationFiles - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IEmpty} request Empty message or plain object - * @param {gauge.messages.lspService.GetImplementationFilesCallback} callback Node-style callback called with the error, if any, and ImplementationFileListResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(lspService.prototype.getImplementationFiles = function getImplementationFiles(request, callback) { - return this.rpcCall(getImplementationFiles, $root.gauge.messages.Empty, $root.gauge.messages.ImplementationFileListResponse, request, callback); - }, "name", { value: "GetImplementationFiles" }); - - /** - * Calls GetImplementationFiles. - * @function getImplementationFiles - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IEmpty} request Empty message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.lspService#implementStub}. - * @memberof gauge.messages.lspService - * @typedef ImplementStubCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.FileDiff} [response] FileDiff - */ - - /** - * Calls ImplementStub. - * @function implementStub - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IStubImplementationCodeRequest} request StubImplementationCodeRequest message or plain object - * @param {gauge.messages.lspService.ImplementStubCallback} callback Node-style callback called with the error, if any, and FileDiff - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(lspService.prototype.implementStub = function implementStub(request, callback) { - return this.rpcCall(implementStub, $root.gauge.messages.StubImplementationCodeRequest, $root.gauge.messages.FileDiff, request, callback); - }, "name", { value: "ImplementStub" }); - - /** - * Calls ImplementStub. - * @function implementStub - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IStubImplementationCodeRequest} request StubImplementationCodeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.lspService#validateStep}. - * @memberof gauge.messages.lspService - * @typedef ValidateStepCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.StepValidateResponse} [response] StepValidateResponse - */ - - /** - * Calls ValidateStep. - * @function validateStep - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IStepValidateRequest} request StepValidateRequest message or plain object - * @param {gauge.messages.lspService.ValidateStepCallback} callback Node-style callback called with the error, if any, and StepValidateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(lspService.prototype.validateStep = function validateStep(request, callback) { - return this.rpcCall(validateStep, $root.gauge.messages.StepValidateRequest, $root.gauge.messages.StepValidateResponse, request, callback); - }, "name", { value: "ValidateStep" }); - - /** - * Calls ValidateStep. - * @function validateStep - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IStepValidateRequest} request StepValidateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.lspService#refactor}. - * @memberof gauge.messages.lspService - * @typedef RefactorCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.RefactorResponse} [response] RefactorResponse - */ - - /** - * Calls Refactor. - * @function refactor - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IRefactorRequest} request RefactorRequest message or plain object - * @param {gauge.messages.lspService.RefactorCallback} callback Node-style callback called with the error, if any, and RefactorResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(lspService.prototype.refactor = function refactor(request, callback) { - return this.rpcCall(refactor, $root.gauge.messages.RefactorRequest, $root.gauge.messages.RefactorResponse, request, callback); - }, "name", { value: "Refactor" }); - - /** - * Calls Refactor. - * @function refactor - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IRefactorRequest} request RefactorRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.lspService#getStepName}. - * @memberof gauge.messages.lspService - * @typedef GetStepNameCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.StepNameResponse} [response] StepNameResponse - */ - - /** - * Calls GetStepName. - * @function getStepName - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IStepNameRequest} request StepNameRequest message or plain object - * @param {gauge.messages.lspService.GetStepNameCallback} callback Node-style callback called with the error, if any, and StepNameResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(lspService.prototype.getStepName = function getStepName(request, callback) { - return this.rpcCall(getStepName, $root.gauge.messages.StepNameRequest, $root.gauge.messages.StepNameResponse, request, callback); - }, "name", { value: "GetStepName" }); - - /** - * Calls GetStepName. - * @function getStepName - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IStepNameRequest} request StepNameRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.lspService#getGlobPatterns}. - * @memberof gauge.messages.lspService - * @typedef GetGlobPatternsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ImplementationFileGlobPatternResponse} [response] ImplementationFileGlobPatternResponse - */ - - /** - * Calls GetGlobPatterns. - * @function getGlobPatterns - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IEmpty} request Empty message or plain object - * @param {gauge.messages.lspService.GetGlobPatternsCallback} callback Node-style callback called with the error, if any, and ImplementationFileGlobPatternResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(lspService.prototype.getGlobPatterns = function getGlobPatterns(request, callback) { - return this.rpcCall(getGlobPatterns, $root.gauge.messages.Empty, $root.gauge.messages.ImplementationFileGlobPatternResponse, request, callback); - }, "name", { value: "GetGlobPatterns" }); - - /** - * Calls GetGlobPatterns. - * @function getGlobPatterns - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IEmpty} request Empty message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.lspService#killProcess}. - * @memberof gauge.messages.lspService - * @typedef KillProcessCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls KillProcess. - * @function killProcess - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IKillProcessRequest} request KillProcessRequest message or plain object - * @param {gauge.messages.lspService.KillProcessCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(lspService.prototype.killProcess = function killProcess(request, callback) { - return this.rpcCall(killProcess, $root.gauge.messages.KillProcessRequest, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "KillProcess" }); - - /** - * Calls KillProcess. - * @function killProcess - * @memberof gauge.messages.lspService - * @instance - * @param {gauge.messages.IKillProcessRequest} request KillProcessRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return lspService; - })(); - - messages.KillProcessRequest = (function() { - - /** - * Properties of a KillProcessRequest. - * @memberof gauge.messages - * @interface IKillProcessRequest - */ - - /** - * Constructs a new KillProcessRequest. - * @memberof gauge.messages - * @classdesc Default request. Tells the runner to shutdown. - * @implements IKillProcessRequest - * @constructor - * @param {gauge.messages.IKillProcessRequest=} [properties] Properties to set - */ - function KillProcessRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new KillProcessRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.KillProcessRequest - * @static - * @param {gauge.messages.IKillProcessRequest=} [properties] Properties to set - * @returns {gauge.messages.KillProcessRequest} KillProcessRequest instance - */ - KillProcessRequest.create = function create(properties) { - return new KillProcessRequest(properties); - }; - - /** - * Encodes the specified KillProcessRequest message. Does not implicitly {@link gauge.messages.KillProcessRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.KillProcessRequest - * @static - * @param {gauge.messages.IKillProcessRequest} message KillProcessRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KillProcessRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified KillProcessRequest message, length delimited. Does not implicitly {@link gauge.messages.KillProcessRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.KillProcessRequest - * @static - * @param {gauge.messages.IKillProcessRequest} message KillProcessRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KillProcessRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a KillProcessRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.KillProcessRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.KillProcessRequest} KillProcessRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KillProcessRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.KillProcessRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a KillProcessRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.KillProcessRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.KillProcessRequest} KillProcessRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KillProcessRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KillProcessRequest message. - * @function verify - * @memberof gauge.messages.KillProcessRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KillProcessRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a KillProcessRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.KillProcessRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.KillProcessRequest} KillProcessRequest - */ - KillProcessRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.KillProcessRequest) - return object; - return new $root.gauge.messages.KillProcessRequest(); - }; - - /** - * Creates a plain object from a KillProcessRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.KillProcessRequest - * @static - * @param {gauge.messages.KillProcessRequest} message KillProcessRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KillProcessRequest.toObject = function toObject() { - return {}; - }; - - /** - * Converts this KillProcessRequest to JSON. - * @function toJSON - * @memberof gauge.messages.KillProcessRequest - * @instance - * @returns {Object.} JSON object - */ - KillProcessRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return KillProcessRequest; - })(); - - messages.ExecutionStatusResponse = (function() { - - /** - * Properties of an ExecutionStatusResponse. - * @memberof gauge.messages - * @interface IExecutionStatusResponse - * @property {gauge.messages.IProtoExecutionResult|null} [executionResult] Holds the suite result after suite execution done. - */ - - /** - * Constructs a new ExecutionStatusResponse. - * @memberof gauge.messages - * @classdesc usually step execution, hooks etc will return this - * @implements IExecutionStatusResponse - * @constructor - * @param {gauge.messages.IExecutionStatusResponse=} [properties] Properties to set - */ - function ExecutionStatusResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the suite result after suite execution done. - * @member {gauge.messages.IProtoExecutionResult|null|undefined} executionResult - * @memberof gauge.messages.ExecutionStatusResponse - * @instance - */ - ExecutionStatusResponse.prototype.executionResult = null; - - /** - * Creates a new ExecutionStatusResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.ExecutionStatusResponse - * @static - * @param {gauge.messages.IExecutionStatusResponse=} [properties] Properties to set - * @returns {gauge.messages.ExecutionStatusResponse} ExecutionStatusResponse instance - */ - ExecutionStatusResponse.create = function create(properties) { - return new ExecutionStatusResponse(properties); - }; - - /** - * Encodes the specified ExecutionStatusResponse message. Does not implicitly {@link gauge.messages.ExecutionStatusResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ExecutionStatusResponse - * @static - * @param {gauge.messages.IExecutionStatusResponse} message ExecutionStatusResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionStatusResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executionResult != null && message.hasOwnProperty("executionResult")) - $root.gauge.messages.ProtoExecutionResult.encode(message.executionResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ExecutionStatusResponse message, length delimited. Does not implicitly {@link gauge.messages.ExecutionStatusResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ExecutionStatusResponse - * @static - * @param {gauge.messages.IExecutionStatusResponse} message ExecutionStatusResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExecutionStatusResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ExecutionStatusResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ExecutionStatusResponse} ExecutionStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionStatusResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ExecutionStatusResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.executionResult = $root.gauge.messages.ProtoExecutionResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExecutionStatusResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ExecutionStatusResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ExecutionStatusResponse} ExecutionStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionStatusResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExecutionStatusResponse message. - * @function verify - * @memberof gauge.messages.ExecutionStatusResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionStatusResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.executionResult != null && message.hasOwnProperty("executionResult")) { - var error = $root.gauge.messages.ProtoExecutionResult.verify(message.executionResult); - if (error) - return "executionResult." + error; - } - return null; - }; - - /** - * Creates an ExecutionStatusResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ExecutionStatusResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ExecutionStatusResponse} ExecutionStatusResponse - */ - ExecutionStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ExecutionStatusResponse) - return object; - var message = new $root.gauge.messages.ExecutionStatusResponse(); - if (object.executionResult != null) { - if (typeof object.executionResult !== "object") - throw TypeError(".gauge.messages.ExecutionStatusResponse.executionResult: object expected"); - message.executionResult = $root.gauge.messages.ProtoExecutionResult.fromObject(object.executionResult); - } - return message; - }; - - /** - * Creates a plain object from an ExecutionStatusResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ExecutionStatusResponse - * @static - * @param {gauge.messages.ExecutionStatusResponse} message ExecutionStatusResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExecutionStatusResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.executionResult = null; - if (message.executionResult != null && message.hasOwnProperty("executionResult")) - object.executionResult = $root.gauge.messages.ProtoExecutionResult.toObject(message.executionResult, options); - return object; - }; - - /** - * Converts this ExecutionStatusResponse to JSON. - * @function toJSON - * @memberof gauge.messages.ExecutionStatusResponse - * @instance - * @returns {Object.} JSON object - */ - ExecutionStatusResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ExecutionStatusResponse; - })(); - - messages.ExecutionStartingRequest = (function() { - - /** - * Properties of an ExecutionStartingRequest. - * @memberof gauge.messages - * @interface IExecutionStartingRequest - * @property {gauge.messages.IExecutionInfo|null} [currentExecutionInfo] Holds the current suite execution info. - * @property {gauge.messages.IProtoSuiteResult|null} [suiteResult] Some fields will not be populated before execution. - * @property {number|null} [stream] ExecutionStartingRequest stream - */ - - /** - * Constructs a new ExecutionStartingRequest. - * @memberof gauge.messages - * @classdesc Sent at start of Suite Execution. Tells the runner to execute `before_suite` hook. - * @implements IExecutionStartingRequest - * @constructor - * @param {gauge.messages.IExecutionStartingRequest=} [properties] Properties to set - */ - function ExecutionStartingRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the current suite execution info. - * @member {gauge.messages.IExecutionInfo|null|undefined} currentExecutionInfo - * @memberof gauge.messages.ExecutionStartingRequest - * @instance - */ - ExecutionStartingRequest.prototype.currentExecutionInfo = null; - - /** - * Some fields will not be populated before execution. - * @member {gauge.messages.IProtoSuiteResult|null|undefined} suiteResult - * @memberof gauge.messages.ExecutionStartingRequest - * @instance - */ - ExecutionStartingRequest.prototype.suiteResult = null; - - /** - * ExecutionStartingRequest stream. - * @member {number} stream - * @memberof gauge.messages.ExecutionStartingRequest - * @instance - */ - ExecutionStartingRequest.prototype.stream = 0; - - /** - * Creates a new ExecutionStartingRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.ExecutionStartingRequest - * @static - * @param {gauge.messages.IExecutionStartingRequest=} [properties] Properties to set - * @returns {gauge.messages.ExecutionStartingRequest} ExecutionStartingRequest instance - */ - ExecutionStartingRequest.create = function create(properties) { - return new ExecutionStartingRequest(properties); - }; - - /** - * Encodes the specified ExecutionStartingRequest message. Does not implicitly {@link gauge.messages.ExecutionStartingRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ExecutionStartingRequest - * @static - * @param {gauge.messages.IExecutionStartingRequest} message ExecutionStartingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionStartingRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - $root.gauge.messages.ExecutionInfo.encode(message.currentExecutionInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.suiteResult != null && message.hasOwnProperty("suiteResult")) - $root.gauge.messages.ProtoSuiteResult.encode(message.suiteResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.stream != null && message.hasOwnProperty("stream")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.stream); - return writer; - }; - - /** - * Encodes the specified ExecutionStartingRequest message, length delimited. Does not implicitly {@link gauge.messages.ExecutionStartingRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ExecutionStartingRequest - * @static - * @param {gauge.messages.IExecutionStartingRequest} message ExecutionStartingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionStartingRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExecutionStartingRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ExecutionStartingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ExecutionStartingRequest} ExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionStartingRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ExecutionStartingRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.decode(reader, reader.uint32()); - break; - case 2: - message.suiteResult = $root.gauge.messages.ProtoSuiteResult.decode(reader, reader.uint32()); - break; - case 3: - message.stream = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExecutionStartingRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ExecutionStartingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ExecutionStartingRequest} ExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionStartingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExecutionStartingRequest message. - * @function verify - * @memberof gauge.messages.ExecutionStartingRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionStartingRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) { - var error = $root.gauge.messages.ExecutionInfo.verify(message.currentExecutionInfo); - if (error) - return "currentExecutionInfo." + error; - } - if (message.suiteResult != null && message.hasOwnProperty("suiteResult")) { - var error = $root.gauge.messages.ProtoSuiteResult.verify(message.suiteResult); - if (error) - return "suiteResult." + error; - } - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isInteger(message.stream)) - return "stream: integer expected"; - return null; - }; - - /** - * Creates an ExecutionStartingRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ExecutionStartingRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ExecutionStartingRequest} ExecutionStartingRequest - */ - ExecutionStartingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ExecutionStartingRequest) - return object; - var message = new $root.gauge.messages.ExecutionStartingRequest(); - if (object.currentExecutionInfo != null) { - if (typeof object.currentExecutionInfo !== "object") - throw TypeError(".gauge.messages.ExecutionStartingRequest.currentExecutionInfo: object expected"); - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.fromObject(object.currentExecutionInfo); - } - if (object.suiteResult != null) { - if (typeof object.suiteResult !== "object") - throw TypeError(".gauge.messages.ExecutionStartingRequest.suiteResult: object expected"); - message.suiteResult = $root.gauge.messages.ProtoSuiteResult.fromObject(object.suiteResult); - } - if (object.stream != null) - message.stream = object.stream | 0; - return message; - }; - - /** - * Creates a plain object from an ExecutionStartingRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ExecutionStartingRequest - * @static - * @param {gauge.messages.ExecutionStartingRequest} message ExecutionStartingRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExecutionStartingRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.currentExecutionInfo = null; - object.suiteResult = null; - object.stream = 0; - } - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - object.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.toObject(message.currentExecutionInfo, options); - if (message.suiteResult != null && message.hasOwnProperty("suiteResult")) - object.suiteResult = $root.gauge.messages.ProtoSuiteResult.toObject(message.suiteResult, options); - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - return object; - }; - - /** - * Converts this ExecutionStartingRequest to JSON. - * @function toJSON - * @memberof gauge.messages.ExecutionStartingRequest - * @instance - * @returns {Object.} JSON object - */ - ExecutionStartingRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ExecutionStartingRequest; - })(); - - messages.ExecutionEndingRequest = (function() { - - /** - * Properties of an ExecutionEndingRequest. - * @memberof gauge.messages - * @interface IExecutionEndingRequest - * @property {gauge.messages.IExecutionInfo|null} [currentExecutionInfo] Holds the current suite execution info. - * @property {gauge.messages.IProtoSuiteResult|null} [suiteResult] Holds the suite result in execution ending. - * @property {number|null} [stream] ExecutionEndingRequest stream - */ - - /** - * Constructs a new ExecutionEndingRequest. - * @memberof gauge.messages - * @classdesc Sent at end of Suite Execution. Tells the runner to execute `after_suite` hook. - * @implements IExecutionEndingRequest - * @constructor - * @param {gauge.messages.IExecutionEndingRequest=} [properties] Properties to set - */ - function ExecutionEndingRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the current suite execution info. - * @member {gauge.messages.IExecutionInfo|null|undefined} currentExecutionInfo - * @memberof gauge.messages.ExecutionEndingRequest - * @instance - */ - ExecutionEndingRequest.prototype.currentExecutionInfo = null; - - /** - * Holds the suite result in execution ending. - * @member {gauge.messages.IProtoSuiteResult|null|undefined} suiteResult - * @memberof gauge.messages.ExecutionEndingRequest - * @instance - */ - ExecutionEndingRequest.prototype.suiteResult = null; - - /** - * ExecutionEndingRequest stream. - * @member {number} stream - * @memberof gauge.messages.ExecutionEndingRequest - * @instance - */ - ExecutionEndingRequest.prototype.stream = 0; - - /** - * Creates a new ExecutionEndingRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.ExecutionEndingRequest - * @static - * @param {gauge.messages.IExecutionEndingRequest=} [properties] Properties to set - * @returns {gauge.messages.ExecutionEndingRequest} ExecutionEndingRequest instance - */ - ExecutionEndingRequest.create = function create(properties) { - return new ExecutionEndingRequest(properties); - }; - - /** - * Encodes the specified ExecutionEndingRequest message. Does not implicitly {@link gauge.messages.ExecutionEndingRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ExecutionEndingRequest - * @static - * @param {gauge.messages.IExecutionEndingRequest} message ExecutionEndingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionEndingRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - $root.gauge.messages.ExecutionInfo.encode(message.currentExecutionInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.suiteResult != null && message.hasOwnProperty("suiteResult")) - $root.gauge.messages.ProtoSuiteResult.encode(message.suiteResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.stream != null && message.hasOwnProperty("stream")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.stream); - return writer; - }; - - /** - * Encodes the specified ExecutionEndingRequest message, length delimited. Does not implicitly {@link gauge.messages.ExecutionEndingRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ExecutionEndingRequest - * @static - * @param {gauge.messages.IExecutionEndingRequest} message ExecutionEndingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionEndingRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExecutionEndingRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ExecutionEndingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ExecutionEndingRequest} ExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionEndingRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ExecutionEndingRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.decode(reader, reader.uint32()); - break; - case 2: - message.suiteResult = $root.gauge.messages.ProtoSuiteResult.decode(reader, reader.uint32()); - break; - case 3: - message.stream = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExecutionEndingRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ExecutionEndingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ExecutionEndingRequest} ExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionEndingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExecutionEndingRequest message. - * @function verify - * @memberof gauge.messages.ExecutionEndingRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionEndingRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) { - var error = $root.gauge.messages.ExecutionInfo.verify(message.currentExecutionInfo); - if (error) - return "currentExecutionInfo." + error; - } - if (message.suiteResult != null && message.hasOwnProperty("suiteResult")) { - var error = $root.gauge.messages.ProtoSuiteResult.verify(message.suiteResult); - if (error) - return "suiteResult." + error; - } - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isInteger(message.stream)) - return "stream: integer expected"; - return null; - }; - - /** - * Creates an ExecutionEndingRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ExecutionEndingRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ExecutionEndingRequest} ExecutionEndingRequest - */ - ExecutionEndingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ExecutionEndingRequest) - return object; - var message = new $root.gauge.messages.ExecutionEndingRequest(); - if (object.currentExecutionInfo != null) { - if (typeof object.currentExecutionInfo !== "object") - throw TypeError(".gauge.messages.ExecutionEndingRequest.currentExecutionInfo: object expected"); - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.fromObject(object.currentExecutionInfo); - } - if (object.suiteResult != null) { - if (typeof object.suiteResult !== "object") - throw TypeError(".gauge.messages.ExecutionEndingRequest.suiteResult: object expected"); - message.suiteResult = $root.gauge.messages.ProtoSuiteResult.fromObject(object.suiteResult); - } - if (object.stream != null) - message.stream = object.stream | 0; - return message; - }; - - /** - * Creates a plain object from an ExecutionEndingRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ExecutionEndingRequest - * @static - * @param {gauge.messages.ExecutionEndingRequest} message ExecutionEndingRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExecutionEndingRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.currentExecutionInfo = null; - object.suiteResult = null; - object.stream = 0; - } - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - object.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.toObject(message.currentExecutionInfo, options); - if (message.suiteResult != null && message.hasOwnProperty("suiteResult")) - object.suiteResult = $root.gauge.messages.ProtoSuiteResult.toObject(message.suiteResult, options); - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - return object; - }; - - /** - * Converts this ExecutionEndingRequest to JSON. - * @function toJSON - * @memberof gauge.messages.ExecutionEndingRequest - * @instance - * @returns {Object.} JSON object - */ - ExecutionEndingRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ExecutionEndingRequest; - })(); - - messages.SpecExecutionStartingRequest = (function() { - - /** - * Properties of a SpecExecutionStartingRequest. - * @memberof gauge.messages - * @interface ISpecExecutionStartingRequest - * @property {gauge.messages.IExecutionInfo|null} [currentExecutionInfo] Holds the current spec execution info. - * @property {gauge.messages.IProtoSpecResult|null} [specResult] Some fields will not be populated before execution. - * @property {number|null} [stream] SpecExecutionStartingRequest stream - */ - - /** - * Constructs a new SpecExecutionStartingRequest. - * @memberof gauge.messages - * @classdesc Sent at start of Spec Execution. Tells the runner to execute `before_spec` hook. - * @implements ISpecExecutionStartingRequest - * @constructor - * @param {gauge.messages.ISpecExecutionStartingRequest=} [properties] Properties to set - */ - function SpecExecutionStartingRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the current spec execution info. - * @member {gauge.messages.IExecutionInfo|null|undefined} currentExecutionInfo - * @memberof gauge.messages.SpecExecutionStartingRequest - * @instance - */ - SpecExecutionStartingRequest.prototype.currentExecutionInfo = null; - - /** - * Some fields will not be populated before execution. - * @member {gauge.messages.IProtoSpecResult|null|undefined} specResult - * @memberof gauge.messages.SpecExecutionStartingRequest - * @instance - */ - SpecExecutionStartingRequest.prototype.specResult = null; - - /** - * SpecExecutionStartingRequest stream. - * @member {number} stream - * @memberof gauge.messages.SpecExecutionStartingRequest - * @instance - */ - SpecExecutionStartingRequest.prototype.stream = 0; - - /** - * Creates a new SpecExecutionStartingRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.SpecExecutionStartingRequest - * @static - * @param {gauge.messages.ISpecExecutionStartingRequest=} [properties] Properties to set - * @returns {gauge.messages.SpecExecutionStartingRequest} SpecExecutionStartingRequest instance - */ - SpecExecutionStartingRequest.create = function create(properties) { - return new SpecExecutionStartingRequest(properties); - }; - - /** - * Encodes the specified SpecExecutionStartingRequest message. Does not implicitly {@link gauge.messages.SpecExecutionStartingRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.SpecExecutionStartingRequest - * @static - * @param {gauge.messages.ISpecExecutionStartingRequest} message SpecExecutionStartingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecExecutionStartingRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - $root.gauge.messages.ExecutionInfo.encode(message.currentExecutionInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.specResult != null && message.hasOwnProperty("specResult")) - $root.gauge.messages.ProtoSpecResult.encode(message.specResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.stream != null && message.hasOwnProperty("stream")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.stream); - return writer; - }; - - /** - * Encodes the specified SpecExecutionStartingRequest message, length delimited. Does not implicitly {@link gauge.messages.SpecExecutionStartingRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.SpecExecutionStartingRequest - * @static - * @param {gauge.messages.ISpecExecutionStartingRequest} message SpecExecutionStartingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecExecutionStartingRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SpecExecutionStartingRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.SpecExecutionStartingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.SpecExecutionStartingRequest} SpecExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecExecutionStartingRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.SpecExecutionStartingRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.decode(reader, reader.uint32()); - break; - case 2: - message.specResult = $root.gauge.messages.ProtoSpecResult.decode(reader, reader.uint32()); - break; - case 3: - message.stream = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SpecExecutionStartingRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.SpecExecutionStartingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.SpecExecutionStartingRequest} SpecExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecExecutionStartingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SpecExecutionStartingRequest message. - * @function verify - * @memberof gauge.messages.SpecExecutionStartingRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SpecExecutionStartingRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) { - var error = $root.gauge.messages.ExecutionInfo.verify(message.currentExecutionInfo); - if (error) - return "currentExecutionInfo." + error; - } - if (message.specResult != null && message.hasOwnProperty("specResult")) { - var error = $root.gauge.messages.ProtoSpecResult.verify(message.specResult); - if (error) - return "specResult." + error; - } - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isInteger(message.stream)) - return "stream: integer expected"; - return null; - }; - - /** - * Creates a SpecExecutionStartingRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.SpecExecutionStartingRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.SpecExecutionStartingRequest} SpecExecutionStartingRequest - */ - SpecExecutionStartingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.SpecExecutionStartingRequest) - return object; - var message = new $root.gauge.messages.SpecExecutionStartingRequest(); - if (object.currentExecutionInfo != null) { - if (typeof object.currentExecutionInfo !== "object") - throw TypeError(".gauge.messages.SpecExecutionStartingRequest.currentExecutionInfo: object expected"); - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.fromObject(object.currentExecutionInfo); - } - if (object.specResult != null) { - if (typeof object.specResult !== "object") - throw TypeError(".gauge.messages.SpecExecutionStartingRequest.specResult: object expected"); - message.specResult = $root.gauge.messages.ProtoSpecResult.fromObject(object.specResult); - } - if (object.stream != null) - message.stream = object.stream | 0; - return message; - }; - - /** - * Creates a plain object from a SpecExecutionStartingRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.SpecExecutionStartingRequest - * @static - * @param {gauge.messages.SpecExecutionStartingRequest} message SpecExecutionStartingRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SpecExecutionStartingRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.currentExecutionInfo = null; - object.specResult = null; - object.stream = 0; - } - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - object.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.toObject(message.currentExecutionInfo, options); - if (message.specResult != null && message.hasOwnProperty("specResult")) - object.specResult = $root.gauge.messages.ProtoSpecResult.toObject(message.specResult, options); - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - return object; - }; - - /** - * Converts this SpecExecutionStartingRequest to JSON. - * @function toJSON - * @memberof gauge.messages.SpecExecutionStartingRequest - * @instance - * @returns {Object.} JSON object - */ - SpecExecutionStartingRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SpecExecutionStartingRequest; - })(); - - messages.SpecExecutionEndingRequest = (function() { - - /** - * Properties of a SpecExecutionEndingRequest. - * @memberof gauge.messages - * @interface ISpecExecutionEndingRequest - * @property {gauge.messages.IExecutionInfo|null} [currentExecutionInfo] Holds the current spec execution info. - * @property {gauge.messages.IProtoSpecResult|null} [specResult] Holds the specs result in spec execution ending. - * @property {number|null} [stream] SpecExecutionEndingRequest stream - */ - - /** - * Constructs a new SpecExecutionEndingRequest. - * @memberof gauge.messages - * @classdesc Sent at end of Spec Execution. Tells the runner to execute `after_spec` hook. - * @implements ISpecExecutionEndingRequest - * @constructor - * @param {gauge.messages.ISpecExecutionEndingRequest=} [properties] Properties to set - */ - function SpecExecutionEndingRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the current spec execution info. - * @member {gauge.messages.IExecutionInfo|null|undefined} currentExecutionInfo - * @memberof gauge.messages.SpecExecutionEndingRequest - * @instance - */ - SpecExecutionEndingRequest.prototype.currentExecutionInfo = null; - - /** - * Holds the specs result in spec execution ending. - * @member {gauge.messages.IProtoSpecResult|null|undefined} specResult - * @memberof gauge.messages.SpecExecutionEndingRequest - * @instance - */ - SpecExecutionEndingRequest.prototype.specResult = null; - - /** - * SpecExecutionEndingRequest stream. - * @member {number} stream - * @memberof gauge.messages.SpecExecutionEndingRequest - * @instance - */ - SpecExecutionEndingRequest.prototype.stream = 0; - - /** - * Creates a new SpecExecutionEndingRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.SpecExecutionEndingRequest - * @static - * @param {gauge.messages.ISpecExecutionEndingRequest=} [properties] Properties to set - * @returns {gauge.messages.SpecExecutionEndingRequest} SpecExecutionEndingRequest instance - */ - SpecExecutionEndingRequest.create = function create(properties) { - return new SpecExecutionEndingRequest(properties); - }; - - /** - * Encodes the specified SpecExecutionEndingRequest message. Does not implicitly {@link gauge.messages.SpecExecutionEndingRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.SpecExecutionEndingRequest - * @static - * @param {gauge.messages.ISpecExecutionEndingRequest} message SpecExecutionEndingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecExecutionEndingRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - $root.gauge.messages.ExecutionInfo.encode(message.currentExecutionInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.specResult != null && message.hasOwnProperty("specResult")) - $root.gauge.messages.ProtoSpecResult.encode(message.specResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.stream != null && message.hasOwnProperty("stream")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.stream); - return writer; - }; - - /** - * Encodes the specified SpecExecutionEndingRequest message, length delimited. Does not implicitly {@link gauge.messages.SpecExecutionEndingRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.SpecExecutionEndingRequest - * @static - * @param {gauge.messages.ISpecExecutionEndingRequest} message SpecExecutionEndingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecExecutionEndingRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SpecExecutionEndingRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.SpecExecutionEndingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.SpecExecutionEndingRequest} SpecExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecExecutionEndingRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.SpecExecutionEndingRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.decode(reader, reader.uint32()); - break; - case 2: - message.specResult = $root.gauge.messages.ProtoSpecResult.decode(reader, reader.uint32()); - break; - case 3: - message.stream = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SpecExecutionEndingRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.SpecExecutionEndingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.SpecExecutionEndingRequest} SpecExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecExecutionEndingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SpecExecutionEndingRequest message. - * @function verify - * @memberof gauge.messages.SpecExecutionEndingRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SpecExecutionEndingRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) { - var error = $root.gauge.messages.ExecutionInfo.verify(message.currentExecutionInfo); - if (error) - return "currentExecutionInfo." + error; - } - if (message.specResult != null && message.hasOwnProperty("specResult")) { - var error = $root.gauge.messages.ProtoSpecResult.verify(message.specResult); - if (error) - return "specResult." + error; - } - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isInteger(message.stream)) - return "stream: integer expected"; - return null; - }; - - /** - * Creates a SpecExecutionEndingRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.SpecExecutionEndingRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.SpecExecutionEndingRequest} SpecExecutionEndingRequest - */ - SpecExecutionEndingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.SpecExecutionEndingRequest) - return object; - var message = new $root.gauge.messages.SpecExecutionEndingRequest(); - if (object.currentExecutionInfo != null) { - if (typeof object.currentExecutionInfo !== "object") - throw TypeError(".gauge.messages.SpecExecutionEndingRequest.currentExecutionInfo: object expected"); - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.fromObject(object.currentExecutionInfo); - } - if (object.specResult != null) { - if (typeof object.specResult !== "object") - throw TypeError(".gauge.messages.SpecExecutionEndingRequest.specResult: object expected"); - message.specResult = $root.gauge.messages.ProtoSpecResult.fromObject(object.specResult); - } - if (object.stream != null) - message.stream = object.stream | 0; - return message; - }; - - /** - * Creates a plain object from a SpecExecutionEndingRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.SpecExecutionEndingRequest - * @static - * @param {gauge.messages.SpecExecutionEndingRequest} message SpecExecutionEndingRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SpecExecutionEndingRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.currentExecutionInfo = null; - object.specResult = null; - object.stream = 0; - } - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - object.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.toObject(message.currentExecutionInfo, options); - if (message.specResult != null && message.hasOwnProperty("specResult")) - object.specResult = $root.gauge.messages.ProtoSpecResult.toObject(message.specResult, options); - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - return object; - }; - - /** - * Converts this SpecExecutionEndingRequest to JSON. - * @function toJSON - * @memberof gauge.messages.SpecExecutionEndingRequest - * @instance - * @returns {Object.} JSON object - */ - SpecExecutionEndingRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SpecExecutionEndingRequest; - })(); - - messages.ScenarioExecutionStartingRequest = (function() { - - /** - * Properties of a ScenarioExecutionStartingRequest. - * @memberof gauge.messages - * @interface IScenarioExecutionStartingRequest - * @property {gauge.messages.IExecutionInfo|null} [currentExecutionInfo] Holds the current sceanrio execution info. - * @property {gauge.messages.IProtoScenarioResult|null} [scenarioResult] Some fields will not be populated before execution. - * @property {number|null} [stream] ScenarioExecutionStartingRequest stream - */ - - /** - * Constructs a new ScenarioExecutionStartingRequest. - * @memberof gauge.messages - * @classdesc Sent at start of Scenario Execution. Tells the runner to execute `before_scenario` hook. - * @implements IScenarioExecutionStartingRequest - * @constructor - * @param {gauge.messages.IScenarioExecutionStartingRequest=} [properties] Properties to set - */ - function ScenarioExecutionStartingRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the current sceanrio execution info. - * @member {gauge.messages.IExecutionInfo|null|undefined} currentExecutionInfo - * @memberof gauge.messages.ScenarioExecutionStartingRequest - * @instance - */ - ScenarioExecutionStartingRequest.prototype.currentExecutionInfo = null; - - /** - * Some fields will not be populated before execution. - * @member {gauge.messages.IProtoScenarioResult|null|undefined} scenarioResult - * @memberof gauge.messages.ScenarioExecutionStartingRequest - * @instance - */ - ScenarioExecutionStartingRequest.prototype.scenarioResult = null; - - /** - * ScenarioExecutionStartingRequest stream. - * @member {number} stream - * @memberof gauge.messages.ScenarioExecutionStartingRequest - * @instance - */ - ScenarioExecutionStartingRequest.prototype.stream = 0; - - /** - * Creates a new ScenarioExecutionStartingRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.ScenarioExecutionStartingRequest - * @static - * @param {gauge.messages.IScenarioExecutionStartingRequest=} [properties] Properties to set - * @returns {gauge.messages.ScenarioExecutionStartingRequest} ScenarioExecutionStartingRequest instance - */ - ScenarioExecutionStartingRequest.create = function create(properties) { - return new ScenarioExecutionStartingRequest(properties); - }; - - /** - * Encodes the specified ScenarioExecutionStartingRequest message. Does not implicitly {@link gauge.messages.ScenarioExecutionStartingRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ScenarioExecutionStartingRequest - * @static - * @param {gauge.messages.IScenarioExecutionStartingRequest} message ScenarioExecutionStartingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ScenarioExecutionStartingRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - $root.gauge.messages.ExecutionInfo.encode(message.currentExecutionInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.scenarioResult != null && message.hasOwnProperty("scenarioResult")) - $root.gauge.messages.ProtoScenarioResult.encode(message.scenarioResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.stream != null && message.hasOwnProperty("stream")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.stream); - return writer; - }; - - /** - * Encodes the specified ScenarioExecutionStartingRequest message, length delimited. Does not implicitly {@link gauge.messages.ScenarioExecutionStartingRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ScenarioExecutionStartingRequest - * @static - * @param {gauge.messages.IScenarioExecutionStartingRequest} message ScenarioExecutionStartingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ScenarioExecutionStartingRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ScenarioExecutionStartingRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ScenarioExecutionStartingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ScenarioExecutionStartingRequest} ScenarioExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ScenarioExecutionStartingRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ScenarioExecutionStartingRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.decode(reader, reader.uint32()); - break; - case 2: - message.scenarioResult = $root.gauge.messages.ProtoScenarioResult.decode(reader, reader.uint32()); - break; - case 3: - message.stream = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ScenarioExecutionStartingRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ScenarioExecutionStartingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ScenarioExecutionStartingRequest} ScenarioExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ScenarioExecutionStartingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ScenarioExecutionStartingRequest message. - * @function verify - * @memberof gauge.messages.ScenarioExecutionStartingRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ScenarioExecutionStartingRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) { - var error = $root.gauge.messages.ExecutionInfo.verify(message.currentExecutionInfo); - if (error) - return "currentExecutionInfo." + error; - } - if (message.scenarioResult != null && message.hasOwnProperty("scenarioResult")) { - var error = $root.gauge.messages.ProtoScenarioResult.verify(message.scenarioResult); - if (error) - return "scenarioResult." + error; - } - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isInteger(message.stream)) - return "stream: integer expected"; - return null; - }; - - /** - * Creates a ScenarioExecutionStartingRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ScenarioExecutionStartingRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ScenarioExecutionStartingRequest} ScenarioExecutionStartingRequest - */ - ScenarioExecutionStartingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ScenarioExecutionStartingRequest) - return object; - var message = new $root.gauge.messages.ScenarioExecutionStartingRequest(); - if (object.currentExecutionInfo != null) { - if (typeof object.currentExecutionInfo !== "object") - throw TypeError(".gauge.messages.ScenarioExecutionStartingRequest.currentExecutionInfo: object expected"); - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.fromObject(object.currentExecutionInfo); - } - if (object.scenarioResult != null) { - if (typeof object.scenarioResult !== "object") - throw TypeError(".gauge.messages.ScenarioExecutionStartingRequest.scenarioResult: object expected"); - message.scenarioResult = $root.gauge.messages.ProtoScenarioResult.fromObject(object.scenarioResult); - } - if (object.stream != null) - message.stream = object.stream | 0; - return message; - }; - - /** - * Creates a plain object from a ScenarioExecutionStartingRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ScenarioExecutionStartingRequest - * @static - * @param {gauge.messages.ScenarioExecutionStartingRequest} message ScenarioExecutionStartingRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ScenarioExecutionStartingRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.currentExecutionInfo = null; - object.scenarioResult = null; - object.stream = 0; - } - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - object.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.toObject(message.currentExecutionInfo, options); - if (message.scenarioResult != null && message.hasOwnProperty("scenarioResult")) - object.scenarioResult = $root.gauge.messages.ProtoScenarioResult.toObject(message.scenarioResult, options); - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - return object; - }; - - /** - * Converts this ScenarioExecutionStartingRequest to JSON. - * @function toJSON - * @memberof gauge.messages.ScenarioExecutionStartingRequest - * @instance - * @returns {Object.} JSON object - */ - ScenarioExecutionStartingRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ScenarioExecutionStartingRequest; - })(); - - messages.ScenarioExecutionEndingRequest = (function() { - - /** - * Properties of a ScenarioExecutionEndingRequest. - * @memberof gauge.messages - * @interface IScenarioExecutionEndingRequest - * @property {gauge.messages.IExecutionInfo|null} [currentExecutionInfo] Holds the current scenario execution info. - * @property {gauge.messages.IProtoScenarioResult|null} [scenarioResult] ScenarioExecutionEndingRequest scenarioResult - * @property {number|null} [stream] ScenarioExecutionEndingRequest stream - */ - - /** - * Constructs a new ScenarioExecutionEndingRequest. - * @memberof gauge.messages - * @classdesc Sent at end of Scenario Execution. Tells the runner to execute `after_scenario` hook. - * @implements IScenarioExecutionEndingRequest - * @constructor - * @param {gauge.messages.IScenarioExecutionEndingRequest=} [properties] Properties to set - */ - function ScenarioExecutionEndingRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the current scenario execution info. - * @member {gauge.messages.IExecutionInfo|null|undefined} currentExecutionInfo - * @memberof gauge.messages.ScenarioExecutionEndingRequest - * @instance - */ - ScenarioExecutionEndingRequest.prototype.currentExecutionInfo = null; - - /** - * ScenarioExecutionEndingRequest scenarioResult. - * @member {gauge.messages.IProtoScenarioResult|null|undefined} scenarioResult - * @memberof gauge.messages.ScenarioExecutionEndingRequest - * @instance - */ - ScenarioExecutionEndingRequest.prototype.scenarioResult = null; - - /** - * ScenarioExecutionEndingRequest stream. - * @member {number} stream - * @memberof gauge.messages.ScenarioExecutionEndingRequest - * @instance - */ - ScenarioExecutionEndingRequest.prototype.stream = 0; - - /** - * Creates a new ScenarioExecutionEndingRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.ScenarioExecutionEndingRequest - * @static - * @param {gauge.messages.IScenarioExecutionEndingRequest=} [properties] Properties to set - * @returns {gauge.messages.ScenarioExecutionEndingRequest} ScenarioExecutionEndingRequest instance - */ - ScenarioExecutionEndingRequest.create = function create(properties) { - return new ScenarioExecutionEndingRequest(properties); - }; - - /** - * Encodes the specified ScenarioExecutionEndingRequest message. Does not implicitly {@link gauge.messages.ScenarioExecutionEndingRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ScenarioExecutionEndingRequest - * @static - * @param {gauge.messages.IScenarioExecutionEndingRequest} message ScenarioExecutionEndingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ScenarioExecutionEndingRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - $root.gauge.messages.ExecutionInfo.encode(message.currentExecutionInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.scenarioResult != null && message.hasOwnProperty("scenarioResult")) - $root.gauge.messages.ProtoScenarioResult.encode(message.scenarioResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.stream != null && message.hasOwnProperty("stream")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.stream); - return writer; - }; - - /** - * Encodes the specified ScenarioExecutionEndingRequest message, length delimited. Does not implicitly {@link gauge.messages.ScenarioExecutionEndingRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ScenarioExecutionEndingRequest - * @static - * @param {gauge.messages.IScenarioExecutionEndingRequest} message ScenarioExecutionEndingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ScenarioExecutionEndingRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ScenarioExecutionEndingRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ScenarioExecutionEndingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ScenarioExecutionEndingRequest} ScenarioExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ScenarioExecutionEndingRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ScenarioExecutionEndingRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.decode(reader, reader.uint32()); - break; - case 2: - message.scenarioResult = $root.gauge.messages.ProtoScenarioResult.decode(reader, reader.uint32()); - break; - case 3: - message.stream = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ScenarioExecutionEndingRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ScenarioExecutionEndingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ScenarioExecutionEndingRequest} ScenarioExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ScenarioExecutionEndingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ScenarioExecutionEndingRequest message. - * @function verify - * @memberof gauge.messages.ScenarioExecutionEndingRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ScenarioExecutionEndingRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) { - var error = $root.gauge.messages.ExecutionInfo.verify(message.currentExecutionInfo); - if (error) - return "currentExecutionInfo." + error; - } - if (message.scenarioResult != null && message.hasOwnProperty("scenarioResult")) { - var error = $root.gauge.messages.ProtoScenarioResult.verify(message.scenarioResult); - if (error) - return "scenarioResult." + error; - } - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isInteger(message.stream)) - return "stream: integer expected"; - return null; - }; - - /** - * Creates a ScenarioExecutionEndingRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ScenarioExecutionEndingRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ScenarioExecutionEndingRequest} ScenarioExecutionEndingRequest - */ - ScenarioExecutionEndingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ScenarioExecutionEndingRequest) - return object; - var message = new $root.gauge.messages.ScenarioExecutionEndingRequest(); - if (object.currentExecutionInfo != null) { - if (typeof object.currentExecutionInfo !== "object") - throw TypeError(".gauge.messages.ScenarioExecutionEndingRequest.currentExecutionInfo: object expected"); - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.fromObject(object.currentExecutionInfo); - } - if (object.scenarioResult != null) { - if (typeof object.scenarioResult !== "object") - throw TypeError(".gauge.messages.ScenarioExecutionEndingRequest.scenarioResult: object expected"); - message.scenarioResult = $root.gauge.messages.ProtoScenarioResult.fromObject(object.scenarioResult); - } - if (object.stream != null) - message.stream = object.stream | 0; - return message; - }; - - /** - * Creates a plain object from a ScenarioExecutionEndingRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ScenarioExecutionEndingRequest - * @static - * @param {gauge.messages.ScenarioExecutionEndingRequest} message ScenarioExecutionEndingRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ScenarioExecutionEndingRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.currentExecutionInfo = null; - object.scenarioResult = null; - object.stream = 0; - } - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - object.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.toObject(message.currentExecutionInfo, options); - if (message.scenarioResult != null && message.hasOwnProperty("scenarioResult")) - object.scenarioResult = $root.gauge.messages.ProtoScenarioResult.toObject(message.scenarioResult, options); - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - return object; - }; - - /** - * Converts this ScenarioExecutionEndingRequest to JSON. - * @function toJSON - * @memberof gauge.messages.ScenarioExecutionEndingRequest - * @instance - * @returns {Object.} JSON object - */ - ScenarioExecutionEndingRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ScenarioExecutionEndingRequest; - })(); - - messages.StepExecutionStartingRequest = (function() { - - /** - * Properties of a StepExecutionStartingRequest. - * @memberof gauge.messages - * @interface IStepExecutionStartingRequest - * @property {gauge.messages.IExecutionInfo|null} [currentExecutionInfo] Holds the current step execution info. - * @property {gauge.messages.IProtoStepResult|null} [stepResult] Some fields will not be populated before execution. - * @property {number|null} [stream] StepExecutionStartingRequest stream - */ - - /** - * Constructs a new StepExecutionStartingRequest. - * @memberof gauge.messages - * @classdesc Sent at start of Step Execution. Tells the runner to execute `before_step` hook. - * @implements IStepExecutionStartingRequest - * @constructor - * @param {gauge.messages.IStepExecutionStartingRequest=} [properties] Properties to set - */ - function StepExecutionStartingRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the current step execution info. - * @member {gauge.messages.IExecutionInfo|null|undefined} currentExecutionInfo - * @memberof gauge.messages.StepExecutionStartingRequest - * @instance - */ - StepExecutionStartingRequest.prototype.currentExecutionInfo = null; - - /** - * Some fields will not be populated before execution. - * @member {gauge.messages.IProtoStepResult|null|undefined} stepResult - * @memberof gauge.messages.StepExecutionStartingRequest - * @instance - */ - StepExecutionStartingRequest.prototype.stepResult = null; - - /** - * StepExecutionStartingRequest stream. - * @member {number} stream - * @memberof gauge.messages.StepExecutionStartingRequest - * @instance - */ - StepExecutionStartingRequest.prototype.stream = 0; - - /** - * Creates a new StepExecutionStartingRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.StepExecutionStartingRequest - * @static - * @param {gauge.messages.IStepExecutionStartingRequest=} [properties] Properties to set - * @returns {gauge.messages.StepExecutionStartingRequest} StepExecutionStartingRequest instance - */ - StepExecutionStartingRequest.create = function create(properties) { - return new StepExecutionStartingRequest(properties); - }; - - /** - * Encodes the specified StepExecutionStartingRequest message. Does not implicitly {@link gauge.messages.StepExecutionStartingRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.StepExecutionStartingRequest - * @static - * @param {gauge.messages.IStepExecutionStartingRequest} message StepExecutionStartingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepExecutionStartingRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - $root.gauge.messages.ExecutionInfo.encode(message.currentExecutionInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.stepResult != null && message.hasOwnProperty("stepResult")) - $root.gauge.messages.ProtoStepResult.encode(message.stepResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.stream != null && message.hasOwnProperty("stream")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.stream); - return writer; - }; - - /** - * Encodes the specified StepExecutionStartingRequest message, length delimited. Does not implicitly {@link gauge.messages.StepExecutionStartingRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.StepExecutionStartingRequest - * @static - * @param {gauge.messages.IStepExecutionStartingRequest} message StepExecutionStartingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepExecutionStartingRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StepExecutionStartingRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.StepExecutionStartingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.StepExecutionStartingRequest} StepExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepExecutionStartingRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.StepExecutionStartingRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.decode(reader, reader.uint32()); - break; - case 2: - message.stepResult = $root.gauge.messages.ProtoStepResult.decode(reader, reader.uint32()); - break; - case 3: - message.stream = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StepExecutionStartingRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.StepExecutionStartingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.StepExecutionStartingRequest} StepExecutionStartingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepExecutionStartingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StepExecutionStartingRequest message. - * @function verify - * @memberof gauge.messages.StepExecutionStartingRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StepExecutionStartingRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) { - var error = $root.gauge.messages.ExecutionInfo.verify(message.currentExecutionInfo); - if (error) - return "currentExecutionInfo." + error; - } - if (message.stepResult != null && message.hasOwnProperty("stepResult")) { - var error = $root.gauge.messages.ProtoStepResult.verify(message.stepResult); - if (error) - return "stepResult." + error; - } - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isInteger(message.stream)) - return "stream: integer expected"; - return null; - }; - - /** - * Creates a StepExecutionStartingRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.StepExecutionStartingRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.StepExecutionStartingRequest} StepExecutionStartingRequest - */ - StepExecutionStartingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.StepExecutionStartingRequest) - return object; - var message = new $root.gauge.messages.StepExecutionStartingRequest(); - if (object.currentExecutionInfo != null) { - if (typeof object.currentExecutionInfo !== "object") - throw TypeError(".gauge.messages.StepExecutionStartingRequest.currentExecutionInfo: object expected"); - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.fromObject(object.currentExecutionInfo); - } - if (object.stepResult != null) { - if (typeof object.stepResult !== "object") - throw TypeError(".gauge.messages.StepExecutionStartingRequest.stepResult: object expected"); - message.stepResult = $root.gauge.messages.ProtoStepResult.fromObject(object.stepResult); - } - if (object.stream != null) - message.stream = object.stream | 0; - return message; - }; - - /** - * Creates a plain object from a StepExecutionStartingRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.StepExecutionStartingRequest - * @static - * @param {gauge.messages.StepExecutionStartingRequest} message StepExecutionStartingRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StepExecutionStartingRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.currentExecutionInfo = null; - object.stepResult = null; - object.stream = 0; - } - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - object.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.toObject(message.currentExecutionInfo, options); - if (message.stepResult != null && message.hasOwnProperty("stepResult")) - object.stepResult = $root.gauge.messages.ProtoStepResult.toObject(message.stepResult, options); - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - return object; - }; - - /** - * Converts this StepExecutionStartingRequest to JSON. - * @function toJSON - * @memberof gauge.messages.StepExecutionStartingRequest - * @instance - * @returns {Object.} JSON object - */ - StepExecutionStartingRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StepExecutionStartingRequest; - })(); - - messages.StepExecutionEndingRequest = (function() { - - /** - * Properties of a StepExecutionEndingRequest. - * @memberof gauge.messages - * @interface IStepExecutionEndingRequest - * @property {gauge.messages.IExecutionInfo|null} [currentExecutionInfo] Holds the current step execution info. - * @property {gauge.messages.IProtoStepResult|null} [stepResult] Holds step result in step execution ending. - * @property {number|null} [stream] StepExecutionEndingRequest stream - */ - - /** - * Constructs a new StepExecutionEndingRequest. - * @memberof gauge.messages - * @classdesc Sent at end of Step Execution. Tells the runner to execute `after_step` hook. - * @implements IStepExecutionEndingRequest - * @constructor - * @param {gauge.messages.IStepExecutionEndingRequest=} [properties] Properties to set - */ - function StepExecutionEndingRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the current step execution info. - * @member {gauge.messages.IExecutionInfo|null|undefined} currentExecutionInfo - * @memberof gauge.messages.StepExecutionEndingRequest - * @instance - */ - StepExecutionEndingRequest.prototype.currentExecutionInfo = null; - - /** - * Holds step result in step execution ending. - * @member {gauge.messages.IProtoStepResult|null|undefined} stepResult - * @memberof gauge.messages.StepExecutionEndingRequest - * @instance - */ - StepExecutionEndingRequest.prototype.stepResult = null; - - /** - * StepExecutionEndingRequest stream. - * @member {number} stream - * @memberof gauge.messages.StepExecutionEndingRequest - * @instance - */ - StepExecutionEndingRequest.prototype.stream = 0; - - /** - * Creates a new StepExecutionEndingRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.StepExecutionEndingRequest - * @static - * @param {gauge.messages.IStepExecutionEndingRequest=} [properties] Properties to set - * @returns {gauge.messages.StepExecutionEndingRequest} StepExecutionEndingRequest instance - */ - StepExecutionEndingRequest.create = function create(properties) { - return new StepExecutionEndingRequest(properties); - }; - - /** - * Encodes the specified StepExecutionEndingRequest message. Does not implicitly {@link gauge.messages.StepExecutionEndingRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.StepExecutionEndingRequest - * @static - * @param {gauge.messages.IStepExecutionEndingRequest} message StepExecutionEndingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepExecutionEndingRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - $root.gauge.messages.ExecutionInfo.encode(message.currentExecutionInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.stepResult != null && message.hasOwnProperty("stepResult")) - $root.gauge.messages.ProtoStepResult.encode(message.stepResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.stream != null && message.hasOwnProperty("stream")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.stream); - return writer; - }; - - /** - * Encodes the specified StepExecutionEndingRequest message, length delimited. Does not implicitly {@link gauge.messages.StepExecutionEndingRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.StepExecutionEndingRequest - * @static - * @param {gauge.messages.IStepExecutionEndingRequest} message StepExecutionEndingRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepExecutionEndingRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StepExecutionEndingRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.StepExecutionEndingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.StepExecutionEndingRequest} StepExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepExecutionEndingRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.StepExecutionEndingRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.decode(reader, reader.uint32()); - break; - case 2: - message.stepResult = $root.gauge.messages.ProtoStepResult.decode(reader, reader.uint32()); - break; - case 3: - message.stream = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StepExecutionEndingRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.StepExecutionEndingRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.StepExecutionEndingRequest} StepExecutionEndingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepExecutionEndingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StepExecutionEndingRequest message. - * @function verify - * @memberof gauge.messages.StepExecutionEndingRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StepExecutionEndingRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) { - var error = $root.gauge.messages.ExecutionInfo.verify(message.currentExecutionInfo); - if (error) - return "currentExecutionInfo." + error; - } - if (message.stepResult != null && message.hasOwnProperty("stepResult")) { - var error = $root.gauge.messages.ProtoStepResult.verify(message.stepResult); - if (error) - return "stepResult." + error; - } - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isInteger(message.stream)) - return "stream: integer expected"; - return null; - }; - - /** - * Creates a StepExecutionEndingRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.StepExecutionEndingRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.StepExecutionEndingRequest} StepExecutionEndingRequest - */ - StepExecutionEndingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.StepExecutionEndingRequest) - return object; - var message = new $root.gauge.messages.StepExecutionEndingRequest(); - if (object.currentExecutionInfo != null) { - if (typeof object.currentExecutionInfo !== "object") - throw TypeError(".gauge.messages.StepExecutionEndingRequest.currentExecutionInfo: object expected"); - message.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.fromObject(object.currentExecutionInfo); - } - if (object.stepResult != null) { - if (typeof object.stepResult !== "object") - throw TypeError(".gauge.messages.StepExecutionEndingRequest.stepResult: object expected"); - message.stepResult = $root.gauge.messages.ProtoStepResult.fromObject(object.stepResult); - } - if (object.stream != null) - message.stream = object.stream | 0; - return message; - }; - - /** - * Creates a plain object from a StepExecutionEndingRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.StepExecutionEndingRequest - * @static - * @param {gauge.messages.StepExecutionEndingRequest} message StepExecutionEndingRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StepExecutionEndingRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.currentExecutionInfo = null; - object.stepResult = null; - object.stream = 0; - } - if (message.currentExecutionInfo != null && message.hasOwnProperty("currentExecutionInfo")) - object.currentExecutionInfo = $root.gauge.messages.ExecutionInfo.toObject(message.currentExecutionInfo, options); - if (message.stepResult != null && message.hasOwnProperty("stepResult")) - object.stepResult = $root.gauge.messages.ProtoStepResult.toObject(message.stepResult, options); - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - return object; - }; - - /** - * Converts this StepExecutionEndingRequest to JSON. - * @function toJSON - * @memberof gauge.messages.StepExecutionEndingRequest - * @instance - * @returns {Object.} JSON object - */ - StepExecutionEndingRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StepExecutionEndingRequest; - })(); - - messages.ExecutionArg = (function() { - - /** - * Properties of an ExecutionArg. - * @memberof gauge.messages - * @interface IExecutionArg - * @property {string|null} [flagName] Holds the flag name passed from command line. - * @property {Array.|null} [flagValue] Holds the flag value passed from command line. - */ - - /** - * Constructs a new ExecutionArg. - * @memberof gauge.messages - * @classdesc Contains command line arguments which passed by user during execution. - * @implements IExecutionArg - * @constructor - * @param {gauge.messages.IExecutionArg=} [properties] Properties to set - */ - function ExecutionArg(properties) { - this.flagValue = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the flag name passed from command line. - * @member {string} flagName - * @memberof gauge.messages.ExecutionArg - * @instance - */ - ExecutionArg.prototype.flagName = ""; - - /** - * Holds the flag value passed from command line. - * @member {Array.} flagValue - * @memberof gauge.messages.ExecutionArg - * @instance - */ - ExecutionArg.prototype.flagValue = $util.emptyArray; - - /** - * Creates a new ExecutionArg instance using the specified properties. - * @function create - * @memberof gauge.messages.ExecutionArg - * @static - * @param {gauge.messages.IExecutionArg=} [properties] Properties to set - * @returns {gauge.messages.ExecutionArg} ExecutionArg instance - */ - ExecutionArg.create = function create(properties) { - return new ExecutionArg(properties); - }; - - /** - * Encodes the specified ExecutionArg message. Does not implicitly {@link gauge.messages.ExecutionArg.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ExecutionArg - * @static - * @param {gauge.messages.IExecutionArg} message ExecutionArg message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionArg.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.flagName != null && message.hasOwnProperty("flagName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.flagName); - if (message.flagValue != null && message.flagValue.length) - for (var i = 0; i < message.flagValue.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flagValue[i]); - return writer; - }; - - /** - * Encodes the specified ExecutionArg message, length delimited. Does not implicitly {@link gauge.messages.ExecutionArg.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ExecutionArg - * @static - * @param {gauge.messages.IExecutionArg} message ExecutionArg message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionArg.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExecutionArg message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ExecutionArg - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ExecutionArg} ExecutionArg - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionArg.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ExecutionArg(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.flagName = reader.string(); - break; - case 2: - if (!(message.flagValue && message.flagValue.length)) - message.flagValue = []; - message.flagValue.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExecutionArg message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ExecutionArg - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ExecutionArg} ExecutionArg - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionArg.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExecutionArg message. - * @function verify - * @memberof gauge.messages.ExecutionArg - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionArg.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.flagName != null && message.hasOwnProperty("flagName")) - if (!$util.isString(message.flagName)) - return "flagName: string expected"; - if (message.flagValue != null && message.hasOwnProperty("flagValue")) { - if (!Array.isArray(message.flagValue)) - return "flagValue: array expected"; - for (var i = 0; i < message.flagValue.length; ++i) - if (!$util.isString(message.flagValue[i])) - return "flagValue: string[] expected"; - } - return null; - }; - - /** - * Creates an ExecutionArg message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ExecutionArg - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ExecutionArg} ExecutionArg - */ - ExecutionArg.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ExecutionArg) - return object; - var message = new $root.gauge.messages.ExecutionArg(); - if (object.flagName != null) - message.flagName = String(object.flagName); - if (object.flagValue) { - if (!Array.isArray(object.flagValue)) - throw TypeError(".gauge.messages.ExecutionArg.flagValue: array expected"); - message.flagValue = []; - for (var i = 0; i < object.flagValue.length; ++i) - message.flagValue[i] = String(object.flagValue[i]); - } - return message; - }; - - /** - * Creates a plain object from an ExecutionArg message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ExecutionArg - * @static - * @param {gauge.messages.ExecutionArg} message ExecutionArg - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExecutionArg.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.flagValue = []; - if (options.defaults) - object.flagName = ""; - if (message.flagName != null && message.hasOwnProperty("flagName")) - object.flagName = message.flagName; - if (message.flagValue && message.flagValue.length) { - object.flagValue = []; - for (var j = 0; j < message.flagValue.length; ++j) - object.flagValue[j] = message.flagValue[j]; - } - return object; - }; - - /** - * Converts this ExecutionArg to JSON. - * @function toJSON - * @memberof gauge.messages.ExecutionArg - * @instance - * @returns {Object.} JSON object - */ - ExecutionArg.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ExecutionArg; - })(); - - messages.ExecutionInfo = (function() { - - /** - * Properties of an ExecutionInfo. - * @memberof gauge.messages - * @interface IExecutionInfo - * @property {gauge.messages.ISpecInfo|null} [currentSpec] Holds the information of the current Spec. Valid in context of Spec execution. - * @property {gauge.messages.IScenarioInfo|null} [currentScenario] Holds the information of the current Scenario. Valid in context of Scenario execution. - * @property {gauge.messages.IStepInfo|null} [currentStep] Holds the information of the current Step. Valid in context of Step execution. - * @property {string|null} [stacktrace] Stacktrace of the execution. Valid only if there is an error in execution. - * @property {string|null} [projectName] Holds the project name - * @property {Array.|null} [ExecutionArgs] Holds the command line arguments. - * @property {number|null} [numberOfExecutionStreams] Holds the number of running execution streams. - * @property {number|null} [runnerId] Holds the runner id for parallel execution. - */ - - /** - * Constructs a new ExecutionInfo. - * @memberof gauge.messages - * @classdesc Depending on the context (Step, Scenario, Spec or Suite), the respective fields are set. - * @implements IExecutionInfo - * @constructor - * @param {gauge.messages.IExecutionInfo=} [properties] Properties to set - */ - function ExecutionInfo(properties) { - this.ExecutionArgs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds the information of the current Spec. Valid in context of Spec execution. - * @member {gauge.messages.ISpecInfo|null|undefined} currentSpec - * @memberof gauge.messages.ExecutionInfo - * @instance - */ - ExecutionInfo.prototype.currentSpec = null; - - /** - * Holds the information of the current Scenario. Valid in context of Scenario execution. - * @member {gauge.messages.IScenarioInfo|null|undefined} currentScenario - * @memberof gauge.messages.ExecutionInfo - * @instance - */ - ExecutionInfo.prototype.currentScenario = null; - - /** - * Holds the information of the current Step. Valid in context of Step execution. - * @member {gauge.messages.IStepInfo|null|undefined} currentStep - * @memberof gauge.messages.ExecutionInfo - * @instance - */ - ExecutionInfo.prototype.currentStep = null; - - /** - * Stacktrace of the execution. Valid only if there is an error in execution. - * @member {string} stacktrace - * @memberof gauge.messages.ExecutionInfo - * @instance - */ - ExecutionInfo.prototype.stacktrace = ""; - - /** - * Holds the project name - * @member {string} projectName - * @memberof gauge.messages.ExecutionInfo - * @instance - */ - ExecutionInfo.prototype.projectName = ""; - - /** - * Holds the command line arguments. - * @member {Array.} ExecutionArgs - * @memberof gauge.messages.ExecutionInfo - * @instance - */ - ExecutionInfo.prototype.ExecutionArgs = $util.emptyArray; - - /** - * Holds the number of running execution streams. - * @member {number} numberOfExecutionStreams - * @memberof gauge.messages.ExecutionInfo - * @instance - */ - ExecutionInfo.prototype.numberOfExecutionStreams = 0; - - /** - * Holds the runner id for parallel execution. - * @member {number} runnerId - * @memberof gauge.messages.ExecutionInfo - * @instance - */ - ExecutionInfo.prototype.runnerId = 0; - - /** - * Creates a new ExecutionInfo instance using the specified properties. - * @function create - * @memberof gauge.messages.ExecutionInfo - * @static - * @param {gauge.messages.IExecutionInfo=} [properties] Properties to set - * @returns {gauge.messages.ExecutionInfo} ExecutionInfo instance - */ - ExecutionInfo.create = function create(properties) { - return new ExecutionInfo(properties); - }; - - /** - * Encodes the specified ExecutionInfo message. Does not implicitly {@link gauge.messages.ExecutionInfo.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ExecutionInfo - * @static - * @param {gauge.messages.IExecutionInfo} message ExecutionInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.currentSpec != null && message.hasOwnProperty("currentSpec")) - $root.gauge.messages.SpecInfo.encode(message.currentSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.currentScenario != null && message.hasOwnProperty("currentScenario")) - $root.gauge.messages.ScenarioInfo.encode(message.currentScenario, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.currentStep != null && message.hasOwnProperty("currentStep")) - $root.gauge.messages.StepInfo.encode(message.currentStep, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.stacktrace != null && message.hasOwnProperty("stacktrace")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.stacktrace); - if (message.projectName != null && message.hasOwnProperty("projectName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.projectName); - if (message.ExecutionArgs != null && message.ExecutionArgs.length) - for (var i = 0; i < message.ExecutionArgs.length; ++i) - $root.gauge.messages.ExecutionArg.encode(message.ExecutionArgs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.numberOfExecutionStreams != null && message.hasOwnProperty("numberOfExecutionStreams")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.numberOfExecutionStreams); - if (message.runnerId != null && message.hasOwnProperty("runnerId")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.runnerId); - return writer; - }; - - /** - * Encodes the specified ExecutionInfo message, length delimited. Does not implicitly {@link gauge.messages.ExecutionInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ExecutionInfo - * @static - * @param {gauge.messages.IExecutionInfo} message ExecutionInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExecutionInfo message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ExecutionInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ExecutionInfo} ExecutionInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ExecutionInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.currentSpec = $root.gauge.messages.SpecInfo.decode(reader, reader.uint32()); - break; - case 2: - message.currentScenario = $root.gauge.messages.ScenarioInfo.decode(reader, reader.uint32()); - break; - case 3: - message.currentStep = $root.gauge.messages.StepInfo.decode(reader, reader.uint32()); - break; - case 4: - message.stacktrace = reader.string(); - break; - case 5: - message.projectName = reader.string(); - break; - case 6: - if (!(message.ExecutionArgs && message.ExecutionArgs.length)) - message.ExecutionArgs = []; - message.ExecutionArgs.push($root.gauge.messages.ExecutionArg.decode(reader, reader.uint32())); - break; - case 7: - message.numberOfExecutionStreams = reader.int32(); - break; - case 8: - message.runnerId = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExecutionInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ExecutionInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ExecutionInfo} ExecutionInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExecutionInfo message. - * @function verify - * @memberof gauge.messages.ExecutionInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.currentSpec != null && message.hasOwnProperty("currentSpec")) { - var error = $root.gauge.messages.SpecInfo.verify(message.currentSpec); - if (error) - return "currentSpec." + error; - } - if (message.currentScenario != null && message.hasOwnProperty("currentScenario")) { - var error = $root.gauge.messages.ScenarioInfo.verify(message.currentScenario); - if (error) - return "currentScenario." + error; - } - if (message.currentStep != null && message.hasOwnProperty("currentStep")) { - var error = $root.gauge.messages.StepInfo.verify(message.currentStep); - if (error) - return "currentStep." + error; - } - if (message.stacktrace != null && message.hasOwnProperty("stacktrace")) - if (!$util.isString(message.stacktrace)) - return "stacktrace: string expected"; - if (message.projectName != null && message.hasOwnProperty("projectName")) - if (!$util.isString(message.projectName)) - return "projectName: string expected"; - if (message.ExecutionArgs != null && message.hasOwnProperty("ExecutionArgs")) { - if (!Array.isArray(message.ExecutionArgs)) - return "ExecutionArgs: array expected"; - for (var i = 0; i < message.ExecutionArgs.length; ++i) { - var error = $root.gauge.messages.ExecutionArg.verify(message.ExecutionArgs[i]); - if (error) - return "ExecutionArgs." + error; - } - } - if (message.numberOfExecutionStreams != null && message.hasOwnProperty("numberOfExecutionStreams")) - if (!$util.isInteger(message.numberOfExecutionStreams)) - return "numberOfExecutionStreams: integer expected"; - if (message.runnerId != null && message.hasOwnProperty("runnerId")) - if (!$util.isInteger(message.runnerId)) - return "runnerId: integer expected"; - return null; - }; - - /** - * Creates an ExecutionInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ExecutionInfo - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ExecutionInfo} ExecutionInfo - */ - ExecutionInfo.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ExecutionInfo) - return object; - var message = new $root.gauge.messages.ExecutionInfo(); - if (object.currentSpec != null) { - if (typeof object.currentSpec !== "object") - throw TypeError(".gauge.messages.ExecutionInfo.currentSpec: object expected"); - message.currentSpec = $root.gauge.messages.SpecInfo.fromObject(object.currentSpec); - } - if (object.currentScenario != null) { - if (typeof object.currentScenario !== "object") - throw TypeError(".gauge.messages.ExecutionInfo.currentScenario: object expected"); - message.currentScenario = $root.gauge.messages.ScenarioInfo.fromObject(object.currentScenario); - } - if (object.currentStep != null) { - if (typeof object.currentStep !== "object") - throw TypeError(".gauge.messages.ExecutionInfo.currentStep: object expected"); - message.currentStep = $root.gauge.messages.StepInfo.fromObject(object.currentStep); - } - if (object.stacktrace != null) - message.stacktrace = String(object.stacktrace); - if (object.projectName != null) - message.projectName = String(object.projectName); - if (object.ExecutionArgs) { - if (!Array.isArray(object.ExecutionArgs)) - throw TypeError(".gauge.messages.ExecutionInfo.ExecutionArgs: array expected"); - message.ExecutionArgs = []; - for (var i = 0; i < object.ExecutionArgs.length; ++i) { - if (typeof object.ExecutionArgs[i] !== "object") - throw TypeError(".gauge.messages.ExecutionInfo.ExecutionArgs: object expected"); - message.ExecutionArgs[i] = $root.gauge.messages.ExecutionArg.fromObject(object.ExecutionArgs[i]); - } - } - if (object.numberOfExecutionStreams != null) - message.numberOfExecutionStreams = object.numberOfExecutionStreams | 0; - if (object.runnerId != null) - message.runnerId = object.runnerId | 0; - return message; - }; - - /** - * Creates a plain object from an ExecutionInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ExecutionInfo - * @static - * @param {gauge.messages.ExecutionInfo} message ExecutionInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExecutionInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.ExecutionArgs = []; - if (options.defaults) { - object.currentSpec = null; - object.currentScenario = null; - object.currentStep = null; - object.stacktrace = ""; - object.projectName = ""; - object.numberOfExecutionStreams = 0; - object.runnerId = 0; - } - if (message.currentSpec != null && message.hasOwnProperty("currentSpec")) - object.currentSpec = $root.gauge.messages.SpecInfo.toObject(message.currentSpec, options); - if (message.currentScenario != null && message.hasOwnProperty("currentScenario")) - object.currentScenario = $root.gauge.messages.ScenarioInfo.toObject(message.currentScenario, options); - if (message.currentStep != null && message.hasOwnProperty("currentStep")) - object.currentStep = $root.gauge.messages.StepInfo.toObject(message.currentStep, options); - if (message.stacktrace != null && message.hasOwnProperty("stacktrace")) - object.stacktrace = message.stacktrace; - if (message.projectName != null && message.hasOwnProperty("projectName")) - object.projectName = message.projectName; - if (message.ExecutionArgs && message.ExecutionArgs.length) { - object.ExecutionArgs = []; - for (var j = 0; j < message.ExecutionArgs.length; ++j) - object.ExecutionArgs[j] = $root.gauge.messages.ExecutionArg.toObject(message.ExecutionArgs[j], options); - } - if (message.numberOfExecutionStreams != null && message.hasOwnProperty("numberOfExecutionStreams")) - object.numberOfExecutionStreams = message.numberOfExecutionStreams; - if (message.runnerId != null && message.hasOwnProperty("runnerId")) - object.runnerId = message.runnerId; - return object; - }; - - /** - * Converts this ExecutionInfo to JSON. - * @function toJSON - * @memberof gauge.messages.ExecutionInfo - * @instance - * @returns {Object.} JSON object - */ - ExecutionInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ExecutionInfo; - })(); - - messages.SpecInfo = (function() { - - /** - * Properties of a SpecInfo. - * @memberof gauge.messages - * @interface ISpecInfo - * @property {string|null} [name] Name of the current Spec being executed. - * @property {string|null} [fileName] Full File path containing the current Spec being executed. - * @property {boolean|null} [isFailed] Flag to indicate if the current Spec execution failed. - * @property {Array.|null} [tags] Tags relevant to the current Spec execution. - */ - - /** - * Constructs a new SpecInfo. - * @memberof gauge.messages - * @classdesc Contains details of the Spec execution. - * @implements ISpecInfo - * @constructor - * @param {gauge.messages.ISpecInfo=} [properties] Properties to set - */ - function SpecInfo(properties) { - this.tags = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Name of the current Spec being executed. - * @member {string} name - * @memberof gauge.messages.SpecInfo - * @instance - */ - SpecInfo.prototype.name = ""; - - /** - * Full File path containing the current Spec being executed. - * @member {string} fileName - * @memberof gauge.messages.SpecInfo - * @instance - */ - SpecInfo.prototype.fileName = ""; - - /** - * Flag to indicate if the current Spec execution failed. - * @member {boolean} isFailed - * @memberof gauge.messages.SpecInfo - * @instance - */ - SpecInfo.prototype.isFailed = false; - - /** - * Tags relevant to the current Spec execution. - * @member {Array.} tags - * @memberof gauge.messages.SpecInfo - * @instance - */ - SpecInfo.prototype.tags = $util.emptyArray; - - /** - * Creates a new SpecInfo instance using the specified properties. - * @function create - * @memberof gauge.messages.SpecInfo - * @static - * @param {gauge.messages.ISpecInfo=} [properties] Properties to set - * @returns {gauge.messages.SpecInfo} SpecInfo instance - */ - SpecInfo.create = function create(properties) { - return new SpecInfo(properties); - }; - - /** - * Encodes the specified SpecInfo message. Does not implicitly {@link gauge.messages.SpecInfo.verify|verify} messages. - * @function encode - * @memberof gauge.messages.SpecInfo - * @static - * @param {gauge.messages.ISpecInfo} message SpecInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.fileName != null && message.hasOwnProperty("fileName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fileName); - if (message.isFailed != null && message.hasOwnProperty("isFailed")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isFailed); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.tags[i]); - return writer; - }; - - /** - * Encodes the specified SpecInfo message, length delimited. Does not implicitly {@link gauge.messages.SpecInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.SpecInfo - * @static - * @param {gauge.messages.ISpecInfo} message SpecInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SpecInfo message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.SpecInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.SpecInfo} SpecInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.SpecInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.fileName = reader.string(); - break; - case 3: - message.isFailed = reader.bool(); - break; - case 4: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SpecInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.SpecInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.SpecInfo} SpecInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SpecInfo message. - * @function verify - * @memberof gauge.messages.SpecInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SpecInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.fileName != null && message.hasOwnProperty("fileName")) - if (!$util.isString(message.fileName)) - return "fileName: string expected"; - if (message.isFailed != null && message.hasOwnProperty("isFailed")) - if (typeof message.isFailed !== "boolean") - return "isFailed: boolean expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - return null; - }; - - /** - * Creates a SpecInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.SpecInfo - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.SpecInfo} SpecInfo - */ - SpecInfo.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.SpecInfo) - return object; - var message = new $root.gauge.messages.SpecInfo(); - if (object.name != null) - message.name = String(object.name); - if (object.fileName != null) - message.fileName = String(object.fileName); - if (object.isFailed != null) - message.isFailed = Boolean(object.isFailed); - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".gauge.messages.SpecInfo.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) - message.tags[i] = String(object.tags[i]); - } - return message; - }; - - /** - * Creates a plain object from a SpecInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.SpecInfo - * @static - * @param {gauge.messages.SpecInfo} message SpecInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SpecInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.tags = []; - if (options.defaults) { - object.name = ""; - object.fileName = ""; - object.isFailed = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.fileName != null && message.hasOwnProperty("fileName")) - object.fileName = message.fileName; - if (message.isFailed != null && message.hasOwnProperty("isFailed")) - object.isFailed = message.isFailed; - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = message.tags[j]; - } - return object; - }; - - /** - * Converts this SpecInfo to JSON. - * @function toJSON - * @memberof gauge.messages.SpecInfo - * @instance - * @returns {Object.} JSON object - */ - SpecInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SpecInfo; - })(); - - messages.ScenarioInfo = (function() { - - /** - * Properties of a ScenarioInfo. - * @memberof gauge.messages - * @interface IScenarioInfo - * @property {string|null} [name] Name of the current Scenario being executed. - * @property {boolean|null} [isFailed] Flag to indicate if the current Scenario execution failed. - * @property {Array.|null} [tags] Tags relevant to the current Scenario execution. - */ - - /** - * Constructs a new ScenarioInfo. - * @memberof gauge.messages - * @classdesc Contains details of the Scenario execution. - * @implements IScenarioInfo - * @constructor - * @param {gauge.messages.IScenarioInfo=} [properties] Properties to set - */ - function ScenarioInfo(properties) { - this.tags = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Name of the current Scenario being executed. - * @member {string} name - * @memberof gauge.messages.ScenarioInfo - * @instance - */ - ScenarioInfo.prototype.name = ""; - - /** - * Flag to indicate if the current Scenario execution failed. - * @member {boolean} isFailed - * @memberof gauge.messages.ScenarioInfo - * @instance - */ - ScenarioInfo.prototype.isFailed = false; - - /** - * Tags relevant to the current Scenario execution. - * @member {Array.} tags - * @memberof gauge.messages.ScenarioInfo - * @instance - */ - ScenarioInfo.prototype.tags = $util.emptyArray; - - /** - * Creates a new ScenarioInfo instance using the specified properties. - * @function create - * @memberof gauge.messages.ScenarioInfo - * @static - * @param {gauge.messages.IScenarioInfo=} [properties] Properties to set - * @returns {gauge.messages.ScenarioInfo} ScenarioInfo instance - */ - ScenarioInfo.create = function create(properties) { - return new ScenarioInfo(properties); - }; - - /** - * Encodes the specified ScenarioInfo message. Does not implicitly {@link gauge.messages.ScenarioInfo.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ScenarioInfo - * @static - * @param {gauge.messages.IScenarioInfo} message ScenarioInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ScenarioInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.isFailed != null && message.hasOwnProperty("isFailed")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isFailed); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tags[i]); - return writer; - }; - - /** - * Encodes the specified ScenarioInfo message, length delimited. Does not implicitly {@link gauge.messages.ScenarioInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ScenarioInfo - * @static - * @param {gauge.messages.IScenarioInfo} message ScenarioInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ScenarioInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ScenarioInfo message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ScenarioInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ScenarioInfo} ScenarioInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ScenarioInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ScenarioInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.isFailed = reader.bool(); - break; - case 3: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ScenarioInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ScenarioInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ScenarioInfo} ScenarioInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ScenarioInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ScenarioInfo message. - * @function verify - * @memberof gauge.messages.ScenarioInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ScenarioInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.isFailed != null && message.hasOwnProperty("isFailed")) - if (typeof message.isFailed !== "boolean") - return "isFailed: boolean expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - return null; - }; - - /** - * Creates a ScenarioInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ScenarioInfo - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ScenarioInfo} ScenarioInfo - */ - ScenarioInfo.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ScenarioInfo) - return object; - var message = new $root.gauge.messages.ScenarioInfo(); - if (object.name != null) - message.name = String(object.name); - if (object.isFailed != null) - message.isFailed = Boolean(object.isFailed); - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".gauge.messages.ScenarioInfo.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) - message.tags[i] = String(object.tags[i]); - } - return message; - }; - - /** - * Creates a plain object from a ScenarioInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ScenarioInfo - * @static - * @param {gauge.messages.ScenarioInfo} message ScenarioInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ScenarioInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.tags = []; - if (options.defaults) { - object.name = ""; - object.isFailed = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.isFailed != null && message.hasOwnProperty("isFailed")) - object.isFailed = message.isFailed; - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = message.tags[j]; - } - return object; - }; - - /** - * Converts this ScenarioInfo to JSON. - * @function toJSON - * @memberof gauge.messages.ScenarioInfo - * @instance - * @returns {Object.} JSON object - */ - ScenarioInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ScenarioInfo; - })(); - - messages.StepInfo = (function() { - - /** - * Properties of a StepInfo. - * @memberof gauge.messages - * @interface IStepInfo - * @property {gauge.messages.IExecuteStepRequest|null} [step] The current request to execute Step - * @property {boolean|null} [isFailed] Flag to indicate if the current Step execution failed. - * @property {string|null} [stackTrace] The current stack trace in case of failure - * @property {string|null} [errorMessage] The error message in case of failure - */ - - /** - * Constructs a new StepInfo. - * @memberof gauge.messages - * @classdesc Contains details of the Step execution. - * @implements IStepInfo - * @constructor - * @param {gauge.messages.IStepInfo=} [properties] Properties to set - */ - function StepInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * The current request to execute Step - * @member {gauge.messages.IExecuteStepRequest|null|undefined} step - * @memberof gauge.messages.StepInfo - * @instance - */ - StepInfo.prototype.step = null; - - /** - * Flag to indicate if the current Step execution failed. - * @member {boolean} isFailed - * @memberof gauge.messages.StepInfo - * @instance - */ - StepInfo.prototype.isFailed = false; - - /** - * The current stack trace in case of failure - * @member {string} stackTrace - * @memberof gauge.messages.StepInfo - * @instance - */ - StepInfo.prototype.stackTrace = ""; - - /** - * The error message in case of failure - * @member {string} errorMessage - * @memberof gauge.messages.StepInfo - * @instance - */ - StepInfo.prototype.errorMessage = ""; - - /** - * Creates a new StepInfo instance using the specified properties. - * @function create - * @memberof gauge.messages.StepInfo - * @static - * @param {gauge.messages.IStepInfo=} [properties] Properties to set - * @returns {gauge.messages.StepInfo} StepInfo instance - */ - StepInfo.create = function create(properties) { - return new StepInfo(properties); - }; - - /** - * Encodes the specified StepInfo message. Does not implicitly {@link gauge.messages.StepInfo.verify|verify} messages. - * @function encode - * @memberof gauge.messages.StepInfo - * @static - * @param {gauge.messages.IStepInfo} message StepInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.step != null && message.hasOwnProperty("step")) - $root.gauge.messages.ExecuteStepRequest.encode(message.step, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.isFailed != null && message.hasOwnProperty("isFailed")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isFailed); - if (message.stackTrace != null && message.hasOwnProperty("stackTrace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stackTrace); - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.errorMessage); - return writer; - }; - - /** - * Encodes the specified StepInfo message, length delimited. Does not implicitly {@link gauge.messages.StepInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.StepInfo - * @static - * @param {gauge.messages.IStepInfo} message StepInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StepInfo message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.StepInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.StepInfo} StepInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.StepInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.step = $root.gauge.messages.ExecuteStepRequest.decode(reader, reader.uint32()); - break; - case 2: - message.isFailed = reader.bool(); - break; - case 3: - message.stackTrace = reader.string(); - break; - case 4: - message.errorMessage = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StepInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.StepInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.StepInfo} StepInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StepInfo message. - * @function verify - * @memberof gauge.messages.StepInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StepInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.step != null && message.hasOwnProperty("step")) { - var error = $root.gauge.messages.ExecuteStepRequest.verify(message.step); - if (error) - return "step." + error; - } - if (message.isFailed != null && message.hasOwnProperty("isFailed")) - if (typeof message.isFailed !== "boolean") - return "isFailed: boolean expected"; - if (message.stackTrace != null && message.hasOwnProperty("stackTrace")) - if (!$util.isString(message.stackTrace)) - return "stackTrace: string expected"; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - return null; - }; - - /** - * Creates a StepInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.StepInfo - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.StepInfo} StepInfo - */ - StepInfo.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.StepInfo) - return object; - var message = new $root.gauge.messages.StepInfo(); - if (object.step != null) { - if (typeof object.step !== "object") - throw TypeError(".gauge.messages.StepInfo.step: object expected"); - message.step = $root.gauge.messages.ExecuteStepRequest.fromObject(object.step); - } - if (object.isFailed != null) - message.isFailed = Boolean(object.isFailed); - if (object.stackTrace != null) - message.stackTrace = String(object.stackTrace); - if (object.errorMessage != null) - message.errorMessage = String(object.errorMessage); - return message; - }; - - /** - * Creates a plain object from a StepInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.StepInfo - * @static - * @param {gauge.messages.StepInfo} message StepInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StepInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.step = null; - object.isFailed = false; - object.stackTrace = ""; - object.errorMessage = ""; - } - if (message.step != null && message.hasOwnProperty("step")) - object.step = $root.gauge.messages.ExecuteStepRequest.toObject(message.step, options); - if (message.isFailed != null && message.hasOwnProperty("isFailed")) - object.isFailed = message.isFailed; - if (message.stackTrace != null && message.hasOwnProperty("stackTrace")) - object.stackTrace = message.stackTrace; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - object.errorMessage = message.errorMessage; - return object; - }; - - /** - * Converts this StepInfo to JSON. - * @function toJSON - * @memberof gauge.messages.StepInfo - * @instance - * @returns {Object.} JSON object - */ - StepInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StepInfo; - })(); - - messages.ExecuteStepRequest = (function() { - - /** - * Properties of an ExecuteStepRequest. - * @memberof gauge.messages - * @interface IExecuteStepRequest - * @property {string|null} [actualStepText] This contains the parameters as defined in the Spec. - * @property {string|null} [parsedStepText] The paramters are replaced with placeholders. - * @property {boolean|null} [scenarioFailing] Flag to indicate if the execution of the Scenario, containing the current Step, failed. - * @property {Array.|null} [parameters] Collection of parameters applicable to the current Step. - * @property {number|null} [stream] ExecuteStepRequest stream - */ - - /** - * Constructs a new ExecuteStepRequest. - * @memberof gauge.messages - * @classdesc Request sent ot the runner to Execute a Step - * @implements IExecuteStepRequest - * @constructor - * @param {gauge.messages.IExecuteStepRequest=} [properties] Properties to set - */ - function ExecuteStepRequest(properties) { - this.parameters = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * This contains the parameters as defined in the Spec. - * @member {string} actualStepText - * @memberof gauge.messages.ExecuteStepRequest - * @instance - */ - ExecuteStepRequest.prototype.actualStepText = ""; - - /** - * The paramters are replaced with placeholders. - * @member {string} parsedStepText - * @memberof gauge.messages.ExecuteStepRequest - * @instance - */ - ExecuteStepRequest.prototype.parsedStepText = ""; - - /** - * Flag to indicate if the execution of the Scenario, containing the current Step, failed. - * @member {boolean} scenarioFailing - * @memberof gauge.messages.ExecuteStepRequest - * @instance - */ - ExecuteStepRequest.prototype.scenarioFailing = false; - - /** - * Collection of parameters applicable to the current Step. - * @member {Array.} parameters - * @memberof gauge.messages.ExecuteStepRequest - * @instance - */ - ExecuteStepRequest.prototype.parameters = $util.emptyArray; - - /** - * ExecuteStepRequest stream. - * @member {number} stream - * @memberof gauge.messages.ExecuteStepRequest - * @instance - */ - ExecuteStepRequest.prototype.stream = 0; - - /** - * Creates a new ExecuteStepRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.ExecuteStepRequest - * @static - * @param {gauge.messages.IExecuteStepRequest=} [properties] Properties to set - * @returns {gauge.messages.ExecuteStepRequest} ExecuteStepRequest instance - */ - ExecuteStepRequest.create = function create(properties) { - return new ExecuteStepRequest(properties); - }; - - /** - * Encodes the specified ExecuteStepRequest message. Does not implicitly {@link gauge.messages.ExecuteStepRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ExecuteStepRequest - * @static - * @param {gauge.messages.IExecuteStepRequest} message ExecuteStepRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecuteStepRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.actualStepText != null && message.hasOwnProperty("actualStepText")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.actualStepText); - if (message.parsedStepText != null && message.hasOwnProperty("parsedStepText")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parsedStepText); - if (message.scenarioFailing != null && message.hasOwnProperty("scenarioFailing")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.scenarioFailing); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - $root.gauge.messages.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.stream != null && message.hasOwnProperty("stream")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.stream); - return writer; - }; - - /** - * Encodes the specified ExecuteStepRequest message, length delimited. Does not implicitly {@link gauge.messages.ExecuteStepRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ExecuteStepRequest - * @static - * @param {gauge.messages.IExecuteStepRequest} message ExecuteStepRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecuteStepRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExecuteStepRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ExecuteStepRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ExecuteStepRequest} ExecuteStepRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecuteStepRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ExecuteStepRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.actualStepText = reader.string(); - break; - case 2: - message.parsedStepText = reader.string(); - break; - case 3: - message.scenarioFailing = reader.bool(); - break; - case 4: - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.gauge.messages.Parameter.decode(reader, reader.uint32())); - break; - case 5: - message.stream = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExecuteStepRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ExecuteStepRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ExecuteStepRequest} ExecuteStepRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecuteStepRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExecuteStepRequest message. - * @function verify - * @memberof gauge.messages.ExecuteStepRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecuteStepRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.actualStepText != null && message.hasOwnProperty("actualStepText")) - if (!$util.isString(message.actualStepText)) - return "actualStepText: string expected"; - if (message.parsedStepText != null && message.hasOwnProperty("parsedStepText")) - if (!$util.isString(message.parsedStepText)) - return "parsedStepText: string expected"; - if (message.scenarioFailing != null && message.hasOwnProperty("scenarioFailing")) - if (typeof message.scenarioFailing !== "boolean") - return "scenarioFailing: boolean expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!Array.isArray(message.parameters)) - return "parameters: array expected"; - for (var i = 0; i < message.parameters.length; ++i) { - var error = $root.gauge.messages.Parameter.verify(message.parameters[i]); - if (error) - return "parameters." + error; - } - } - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isInteger(message.stream)) - return "stream: integer expected"; - return null; - }; - - /** - * Creates an ExecuteStepRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ExecuteStepRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ExecuteStepRequest} ExecuteStepRequest - */ - ExecuteStepRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ExecuteStepRequest) - return object; - var message = new $root.gauge.messages.ExecuteStepRequest(); - if (object.actualStepText != null) - message.actualStepText = String(object.actualStepText); - if (object.parsedStepText != null) - message.parsedStepText = String(object.parsedStepText); - if (object.scenarioFailing != null) - message.scenarioFailing = Boolean(object.scenarioFailing); - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".gauge.messages.ExecuteStepRequest.parameters: array expected"); - message.parameters = []; - for (var i = 0; i < object.parameters.length; ++i) { - if (typeof object.parameters[i] !== "object") - throw TypeError(".gauge.messages.ExecuteStepRequest.parameters: object expected"); - message.parameters[i] = $root.gauge.messages.Parameter.fromObject(object.parameters[i]); - } - } - if (object.stream != null) - message.stream = object.stream | 0; - return message; - }; - - /** - * Creates a plain object from an ExecuteStepRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ExecuteStepRequest - * @static - * @param {gauge.messages.ExecuteStepRequest} message ExecuteStepRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExecuteStepRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.parameters = []; - if (options.defaults) { - object.actualStepText = ""; - object.parsedStepText = ""; - object.scenarioFailing = false; - object.stream = 0; - } - if (message.actualStepText != null && message.hasOwnProperty("actualStepText")) - object.actualStepText = message.actualStepText; - if (message.parsedStepText != null && message.hasOwnProperty("parsedStepText")) - object.parsedStepText = message.parsedStepText; - if (message.scenarioFailing != null && message.hasOwnProperty("scenarioFailing")) - object.scenarioFailing = message.scenarioFailing; - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = $root.gauge.messages.Parameter.toObject(message.parameters[j], options); - } - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - return object; - }; - - /** - * Converts this ExecuteStepRequest to JSON. - * @function toJSON - * @memberof gauge.messages.ExecuteStepRequest - * @instance - * @returns {Object.} JSON object - */ - ExecuteStepRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ExecuteStepRequest; - })(); - - messages.StepValidateRequest = (function() { - - /** - * Properties of a StepValidateRequest. - * @memberof gauge.messages - * @interface IStepValidateRequest - * @property {string|null} [stepText] The text is used to lookup Step implementation - * @property {number|null} [numberOfParameters] The number of paramters in the Step - * @property {gauge.messages.IProtoStepValue|null} [stepValue] This is use to generate step implementation template - */ - - /** - * Constructs a new StepValidateRequest. - * @memberof gauge.messages - * @classdesc The runner should check if there is an implementation defined for the given Step Text. - * @implements IStepValidateRequest - * @constructor - * @param {gauge.messages.IStepValidateRequest=} [properties] Properties to set - */ - function StepValidateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * The text is used to lookup Step implementation - * @member {string} stepText - * @memberof gauge.messages.StepValidateRequest - * @instance - */ - StepValidateRequest.prototype.stepText = ""; - - /** - * The number of paramters in the Step - * @member {number} numberOfParameters - * @memberof gauge.messages.StepValidateRequest - * @instance - */ - StepValidateRequest.prototype.numberOfParameters = 0; - - /** - * This is use to generate step implementation template - * @member {gauge.messages.IProtoStepValue|null|undefined} stepValue - * @memberof gauge.messages.StepValidateRequest - * @instance - */ - StepValidateRequest.prototype.stepValue = null; - - /** - * Creates a new StepValidateRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.StepValidateRequest - * @static - * @param {gauge.messages.IStepValidateRequest=} [properties] Properties to set - * @returns {gauge.messages.StepValidateRequest} StepValidateRequest instance - */ - StepValidateRequest.create = function create(properties) { - return new StepValidateRequest(properties); - }; - - /** - * Encodes the specified StepValidateRequest message. Does not implicitly {@link gauge.messages.StepValidateRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.StepValidateRequest - * @static - * @param {gauge.messages.IStepValidateRequest} message StepValidateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepValidateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stepText != null && message.hasOwnProperty("stepText")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stepText); - if (message.numberOfParameters != null && message.hasOwnProperty("numberOfParameters")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.numberOfParameters); - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - $root.gauge.messages.ProtoStepValue.encode(message.stepValue, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified StepValidateRequest message, length delimited. Does not implicitly {@link gauge.messages.StepValidateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.StepValidateRequest - * @static - * @param {gauge.messages.IStepValidateRequest} message StepValidateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepValidateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StepValidateRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.StepValidateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.StepValidateRequest} StepValidateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepValidateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.StepValidateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stepText = reader.string(); - break; - case 2: - message.numberOfParameters = reader.int32(); - break; - case 3: - message.stepValue = $root.gauge.messages.ProtoStepValue.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StepValidateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.StepValidateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.StepValidateRequest} StepValidateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepValidateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StepValidateRequest message. - * @function verify - * @memberof gauge.messages.StepValidateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StepValidateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stepText != null && message.hasOwnProperty("stepText")) - if (!$util.isString(message.stepText)) - return "stepText: string expected"; - if (message.numberOfParameters != null && message.hasOwnProperty("numberOfParameters")) - if (!$util.isInteger(message.numberOfParameters)) - return "numberOfParameters: integer expected"; - if (message.stepValue != null && message.hasOwnProperty("stepValue")) { - var error = $root.gauge.messages.ProtoStepValue.verify(message.stepValue); - if (error) - return "stepValue." + error; - } - return null; - }; - - /** - * Creates a StepValidateRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.StepValidateRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.StepValidateRequest} StepValidateRequest - */ - StepValidateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.StepValidateRequest) - return object; - var message = new $root.gauge.messages.StepValidateRequest(); - if (object.stepText != null) - message.stepText = String(object.stepText); - if (object.numberOfParameters != null) - message.numberOfParameters = object.numberOfParameters | 0; - if (object.stepValue != null) { - if (typeof object.stepValue !== "object") - throw TypeError(".gauge.messages.StepValidateRequest.stepValue: object expected"); - message.stepValue = $root.gauge.messages.ProtoStepValue.fromObject(object.stepValue); - } - return message; - }; - - /** - * Creates a plain object from a StepValidateRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.StepValidateRequest - * @static - * @param {gauge.messages.StepValidateRequest} message StepValidateRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StepValidateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.stepText = ""; - object.numberOfParameters = 0; - object.stepValue = null; - } - if (message.stepText != null && message.hasOwnProperty("stepText")) - object.stepText = message.stepText; - if (message.numberOfParameters != null && message.hasOwnProperty("numberOfParameters")) - object.numberOfParameters = message.numberOfParameters; - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - object.stepValue = $root.gauge.messages.ProtoStepValue.toObject(message.stepValue, options); - return object; - }; - - /** - * Converts this StepValidateRequest to JSON. - * @function toJSON - * @memberof gauge.messages.StepValidateRequest - * @instance - * @returns {Object.} JSON object - */ - StepValidateRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StepValidateRequest; - })(); - - messages.StepValidateResponse = (function() { - - /** - * Properties of a StepValidateResponse. - * @memberof gauge.messages - * @interface IStepValidateResponse - * @property {boolean|null} [isValid] StepValidateResponse isValid - * @property {string|null} [errorMessage] StepValidateResponse errorMessage - * @property {gauge.messages.StepValidateResponse.ErrorType|null} [errorType] StepValidateResponse errorType - * @property {string|null} [suggestion] StepValidateResponse suggestion - */ - - /** - * Constructs a new StepValidateResponse. - * @memberof gauge.messages - * @classdesc Returns an error message if it is an error response. - * @implements IStepValidateResponse - * @constructor - * @param {gauge.messages.IStepValidateResponse=} [properties] Properties to set - */ - function StepValidateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StepValidateResponse isValid. - * @member {boolean} isValid - * @memberof gauge.messages.StepValidateResponse - * @instance - */ - StepValidateResponse.prototype.isValid = false; - - /** - * StepValidateResponse errorMessage. - * @member {string} errorMessage - * @memberof gauge.messages.StepValidateResponse - * @instance - */ - StepValidateResponse.prototype.errorMessage = ""; - - /** - * StepValidateResponse errorType. - * @member {gauge.messages.StepValidateResponse.ErrorType} errorType - * @memberof gauge.messages.StepValidateResponse - * @instance - */ - StepValidateResponse.prototype.errorType = 0; - - /** - * StepValidateResponse suggestion. - * @member {string} suggestion - * @memberof gauge.messages.StepValidateResponse - * @instance - */ - StepValidateResponse.prototype.suggestion = ""; - - /** - * Creates a new StepValidateResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.StepValidateResponse - * @static - * @param {gauge.messages.IStepValidateResponse=} [properties] Properties to set - * @returns {gauge.messages.StepValidateResponse} StepValidateResponse instance - */ - StepValidateResponse.create = function create(properties) { - return new StepValidateResponse(properties); - }; - - /** - * Encodes the specified StepValidateResponse message. Does not implicitly {@link gauge.messages.StepValidateResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.StepValidateResponse - * @static - * @param {gauge.messages.IStepValidateResponse} message StepValidateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepValidateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.isValid != null && message.hasOwnProperty("isValid")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isValid); - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage); - if (message.errorType != null && message.hasOwnProperty("errorType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.errorType); - if (message.suggestion != null && message.hasOwnProperty("suggestion")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.suggestion); - return writer; - }; - - /** - * Encodes the specified StepValidateResponse message, length delimited. Does not implicitly {@link gauge.messages.StepValidateResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.StepValidateResponse - * @static - * @param {gauge.messages.IStepValidateResponse} message StepValidateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepValidateResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StepValidateResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.StepValidateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.StepValidateResponse} StepValidateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepValidateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.StepValidateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.isValid = reader.bool(); - break; - case 2: - message.errorMessage = reader.string(); - break; - case 3: - message.errorType = reader.int32(); - break; - case 4: - message.suggestion = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StepValidateResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.StepValidateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.StepValidateResponse} StepValidateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepValidateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StepValidateResponse message. - * @function verify - * @memberof gauge.messages.StepValidateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StepValidateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.isValid != null && message.hasOwnProperty("isValid")) - if (typeof message.isValid !== "boolean") - return "isValid: boolean expected"; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - if (message.errorType != null && message.hasOwnProperty("errorType")) - switch (message.errorType) { - default: - return "errorType: enum value expected"; - case 0: - case 1: - break; - } - if (message.suggestion != null && message.hasOwnProperty("suggestion")) - if (!$util.isString(message.suggestion)) - return "suggestion: string expected"; - return null; - }; - - /** - * Creates a StepValidateResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.StepValidateResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.StepValidateResponse} StepValidateResponse - */ - StepValidateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.StepValidateResponse) - return object; - var message = new $root.gauge.messages.StepValidateResponse(); - if (object.isValid != null) - message.isValid = Boolean(object.isValid); - if (object.errorMessage != null) - message.errorMessage = String(object.errorMessage); - switch (object.errorType) { - case "STEP_IMPLEMENTATION_NOT_FOUND": - case 0: - message.errorType = 0; - break; - case "DUPLICATE_STEP_IMPLEMENTATION": - case 1: - message.errorType = 1; - break; - } - if (object.suggestion != null) - message.suggestion = String(object.suggestion); - return message; - }; - - /** - * Creates a plain object from a StepValidateResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.StepValidateResponse - * @static - * @param {gauge.messages.StepValidateResponse} message StepValidateResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StepValidateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.isValid = false; - object.errorMessage = ""; - object.errorType = options.enums === String ? "STEP_IMPLEMENTATION_NOT_FOUND" : 0; - object.suggestion = ""; - } - if (message.isValid != null && message.hasOwnProperty("isValid")) - object.isValid = message.isValid; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - object.errorMessage = message.errorMessage; - if (message.errorType != null && message.hasOwnProperty("errorType")) - object.errorType = options.enums === String ? $root.gauge.messages.StepValidateResponse.ErrorType[message.errorType] : message.errorType; - if (message.suggestion != null && message.hasOwnProperty("suggestion")) - object.suggestion = message.suggestion; - return object; - }; - - /** - * Converts this StepValidateResponse to JSON. - * @function toJSON - * @memberof gauge.messages.StepValidateResponse - * @instance - * @returns {Object.} JSON object - */ - StepValidateResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * ErrorType enum. - * @name gauge.messages.StepValidateResponse.ErrorType - * @enum {string} - * @property {number} STEP_IMPLEMENTATION_NOT_FOUND=0 STEP_IMPLEMENTATION_NOT_FOUND value - * @property {number} DUPLICATE_STEP_IMPLEMENTATION=1 DUPLICATE_STEP_IMPLEMENTATION value - */ - StepValidateResponse.ErrorType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STEP_IMPLEMENTATION_NOT_FOUND"] = 0; - values[valuesById[1] = "DUPLICATE_STEP_IMPLEMENTATION"] = 1; - return values; - })(); - - return StepValidateResponse; - })(); - - messages.SuiteExecutionResult = (function() { - - /** - * Properties of a SuiteExecutionResult. - * @memberof gauge.messages - * @interface ISuiteExecutionResult - * @property {gauge.messages.IProtoSuiteResult|null} [suiteResult] SuiteExecutionResult suiteResult - */ - - /** - * Constructs a new SuiteExecutionResult. - * @memberof gauge.messages - * @classdesc Result of the Suite Execution. - * @implements ISuiteExecutionResult - * @constructor - * @param {gauge.messages.ISuiteExecutionResult=} [properties] Properties to set - */ - function SuiteExecutionResult(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SuiteExecutionResult suiteResult. - * @member {gauge.messages.IProtoSuiteResult|null|undefined} suiteResult - * @memberof gauge.messages.SuiteExecutionResult - * @instance - */ - SuiteExecutionResult.prototype.suiteResult = null; - - /** - * Creates a new SuiteExecutionResult instance using the specified properties. - * @function create - * @memberof gauge.messages.SuiteExecutionResult - * @static - * @param {gauge.messages.ISuiteExecutionResult=} [properties] Properties to set - * @returns {gauge.messages.SuiteExecutionResult} SuiteExecutionResult instance - */ - SuiteExecutionResult.create = function create(properties) { - return new SuiteExecutionResult(properties); - }; - - /** - * Encodes the specified SuiteExecutionResult message. Does not implicitly {@link gauge.messages.SuiteExecutionResult.verify|verify} messages. - * @function encode - * @memberof gauge.messages.SuiteExecutionResult - * @static - * @param {gauge.messages.ISuiteExecutionResult} message SuiteExecutionResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SuiteExecutionResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.suiteResult != null && message.hasOwnProperty("suiteResult")) - $root.gauge.messages.ProtoSuiteResult.encode(message.suiteResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified SuiteExecutionResult message, length delimited. Does not implicitly {@link gauge.messages.SuiteExecutionResult.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.SuiteExecutionResult - * @static - * @param {gauge.messages.ISuiteExecutionResult} message SuiteExecutionResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SuiteExecutionResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SuiteExecutionResult message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.SuiteExecutionResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.SuiteExecutionResult} SuiteExecutionResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SuiteExecutionResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.SuiteExecutionResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.suiteResult = $root.gauge.messages.ProtoSuiteResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SuiteExecutionResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.SuiteExecutionResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.SuiteExecutionResult} SuiteExecutionResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SuiteExecutionResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SuiteExecutionResult message. - * @function verify - * @memberof gauge.messages.SuiteExecutionResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SuiteExecutionResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.suiteResult != null && message.hasOwnProperty("suiteResult")) { - var error = $root.gauge.messages.ProtoSuiteResult.verify(message.suiteResult); - if (error) - return "suiteResult." + error; - } - return null; - }; - - /** - * Creates a SuiteExecutionResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.SuiteExecutionResult - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.SuiteExecutionResult} SuiteExecutionResult - */ - SuiteExecutionResult.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.SuiteExecutionResult) - return object; - var message = new $root.gauge.messages.SuiteExecutionResult(); - if (object.suiteResult != null) { - if (typeof object.suiteResult !== "object") - throw TypeError(".gauge.messages.SuiteExecutionResult.suiteResult: object expected"); - message.suiteResult = $root.gauge.messages.ProtoSuiteResult.fromObject(object.suiteResult); - } - return message; - }; - - /** - * Creates a plain object from a SuiteExecutionResult message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.SuiteExecutionResult - * @static - * @param {gauge.messages.SuiteExecutionResult} message SuiteExecutionResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SuiteExecutionResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.suiteResult = null; - if (message.suiteResult != null && message.hasOwnProperty("suiteResult")) - object.suiteResult = $root.gauge.messages.ProtoSuiteResult.toObject(message.suiteResult, options); - return object; - }; - - /** - * Converts this SuiteExecutionResult to JSON. - * @function toJSON - * @memberof gauge.messages.SuiteExecutionResult - * @instance - * @returns {Object.} JSON object - */ - SuiteExecutionResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SuiteExecutionResult; - })(); - - messages.SuiteExecutionResultItem = (function() { - - /** - * Properties of a SuiteExecutionResultItem. - * @memberof gauge.messages - * @interface ISuiteExecutionResultItem - * @property {gauge.messages.IProtoItem|null} [resultItem] SuiteExecutionResultItem resultItem - */ - - /** - * Constructs a new SuiteExecutionResultItem. - * @memberof gauge.messages - * @classdesc Represents a SuiteExecutionResultItem. - * @implements ISuiteExecutionResultItem - * @constructor - * @param {gauge.messages.ISuiteExecutionResultItem=} [properties] Properties to set - */ - function SuiteExecutionResultItem(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SuiteExecutionResultItem resultItem. - * @member {gauge.messages.IProtoItem|null|undefined} resultItem - * @memberof gauge.messages.SuiteExecutionResultItem - * @instance - */ - SuiteExecutionResultItem.prototype.resultItem = null; - - /** - * Creates a new SuiteExecutionResultItem instance using the specified properties. - * @function create - * @memberof gauge.messages.SuiteExecutionResultItem - * @static - * @param {gauge.messages.ISuiteExecutionResultItem=} [properties] Properties to set - * @returns {gauge.messages.SuiteExecutionResultItem} SuiteExecutionResultItem instance - */ - SuiteExecutionResultItem.create = function create(properties) { - return new SuiteExecutionResultItem(properties); - }; - - /** - * Encodes the specified SuiteExecutionResultItem message. Does not implicitly {@link gauge.messages.SuiteExecutionResultItem.verify|verify} messages. - * @function encode - * @memberof gauge.messages.SuiteExecutionResultItem - * @static - * @param {gauge.messages.ISuiteExecutionResultItem} message SuiteExecutionResultItem message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SuiteExecutionResultItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resultItem != null && message.hasOwnProperty("resultItem")) - $root.gauge.messages.ProtoItem.encode(message.resultItem, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified SuiteExecutionResultItem message, length delimited. Does not implicitly {@link gauge.messages.SuiteExecutionResultItem.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.SuiteExecutionResultItem - * @static - * @param {gauge.messages.ISuiteExecutionResultItem} message SuiteExecutionResultItem message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SuiteExecutionResultItem.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SuiteExecutionResultItem message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.SuiteExecutionResultItem - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.SuiteExecutionResultItem} SuiteExecutionResultItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SuiteExecutionResultItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.SuiteExecutionResultItem(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resultItem = $root.gauge.messages.ProtoItem.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SuiteExecutionResultItem message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.SuiteExecutionResultItem - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.SuiteExecutionResultItem} SuiteExecutionResultItem - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SuiteExecutionResultItem.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SuiteExecutionResultItem message. - * @function verify - * @memberof gauge.messages.SuiteExecutionResultItem - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SuiteExecutionResultItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resultItem != null && message.hasOwnProperty("resultItem")) { - var error = $root.gauge.messages.ProtoItem.verify(message.resultItem); - if (error) - return "resultItem." + error; - } - return null; - }; - - /** - * Creates a SuiteExecutionResultItem message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.SuiteExecutionResultItem - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.SuiteExecutionResultItem} SuiteExecutionResultItem - */ - SuiteExecutionResultItem.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.SuiteExecutionResultItem) - return object; - var message = new $root.gauge.messages.SuiteExecutionResultItem(); - if (object.resultItem != null) { - if (typeof object.resultItem !== "object") - throw TypeError(".gauge.messages.SuiteExecutionResultItem.resultItem: object expected"); - message.resultItem = $root.gauge.messages.ProtoItem.fromObject(object.resultItem); - } - return message; - }; - - /** - * Creates a plain object from a SuiteExecutionResultItem message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.SuiteExecutionResultItem - * @static - * @param {gauge.messages.SuiteExecutionResultItem} message SuiteExecutionResultItem - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SuiteExecutionResultItem.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.resultItem = null; - if (message.resultItem != null && message.hasOwnProperty("resultItem")) - object.resultItem = $root.gauge.messages.ProtoItem.toObject(message.resultItem, options); - return object; - }; - - /** - * Converts this SuiteExecutionResultItem to JSON. - * @function toJSON - * @memberof gauge.messages.SuiteExecutionResultItem - * @instance - * @returns {Object.} JSON object - */ - SuiteExecutionResultItem.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SuiteExecutionResultItem; - })(); - - messages.StepNamesRequest = (function() { - - /** - * Properties of a StepNamesRequest. - * @memberof gauge.messages - * @interface IStepNamesRequest - */ - - /** - * Constructs a new StepNamesRequest. - * @memberof gauge.messages - * @classdesc Requests Gauge to give all Step Names. - * @implements IStepNamesRequest - * @constructor - * @param {gauge.messages.IStepNamesRequest=} [properties] Properties to set - */ - function StepNamesRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new StepNamesRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.StepNamesRequest - * @static - * @param {gauge.messages.IStepNamesRequest=} [properties] Properties to set - * @returns {gauge.messages.StepNamesRequest} StepNamesRequest instance - */ - StepNamesRequest.create = function create(properties) { - return new StepNamesRequest(properties); - }; - - /** - * Encodes the specified StepNamesRequest message. Does not implicitly {@link gauge.messages.StepNamesRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.StepNamesRequest - * @static - * @param {gauge.messages.IStepNamesRequest} message StepNamesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepNamesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified StepNamesRequest message, length delimited. Does not implicitly {@link gauge.messages.StepNamesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.StepNamesRequest - * @static - * @param {gauge.messages.IStepNamesRequest} message StepNamesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepNamesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StepNamesRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.StepNamesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.StepNamesRequest} StepNamesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepNamesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.StepNamesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StepNamesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.StepNamesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.StepNamesRequest} StepNamesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepNamesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StepNamesRequest message. - * @function verify - * @memberof gauge.messages.StepNamesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StepNamesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a StepNamesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.StepNamesRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.StepNamesRequest} StepNamesRequest - */ - StepNamesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.StepNamesRequest) - return object; - return new $root.gauge.messages.StepNamesRequest(); - }; - - /** - * Creates a plain object from a StepNamesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.StepNamesRequest - * @static - * @param {gauge.messages.StepNamesRequest} message StepNamesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StepNamesRequest.toObject = function toObject() { - return {}; - }; - - /** - * Converts this StepNamesRequest to JSON. - * @function toJSON - * @memberof gauge.messages.StepNamesRequest - * @instance - * @returns {Object.} JSON object - */ - StepNamesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StepNamesRequest; - })(); - - messages.StepNamesResponse = (function() { - - /** - * Properties of a StepNamesResponse. - * @memberof gauge.messages - * @interface IStepNamesResponse - * @property {Array.|null} [steps] Collection of strings corresponding to Step texts. - */ - - /** - * Constructs a new StepNamesResponse. - * @memberof gauge.messages - * @classdesc Response to StepNamesRequest - * @implements IStepNamesResponse - * @constructor - * @param {gauge.messages.IStepNamesResponse=} [properties] Properties to set - */ - function StepNamesResponse(properties) { - this.steps = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Collection of strings corresponding to Step texts. - * @member {Array.} steps - * @memberof gauge.messages.StepNamesResponse - * @instance - */ - StepNamesResponse.prototype.steps = $util.emptyArray; - - /** - * Creates a new StepNamesResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.StepNamesResponse - * @static - * @param {gauge.messages.IStepNamesResponse=} [properties] Properties to set - * @returns {gauge.messages.StepNamesResponse} StepNamesResponse instance - */ - StepNamesResponse.create = function create(properties) { - return new StepNamesResponse(properties); - }; - - /** - * Encodes the specified StepNamesResponse message. Does not implicitly {@link gauge.messages.StepNamesResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.StepNamesResponse - * @static - * @param {gauge.messages.IStepNamesResponse} message StepNamesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepNamesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.steps != null && message.steps.length) - for (var i = 0; i < message.steps.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.steps[i]); - return writer; - }; - - /** - * Encodes the specified StepNamesResponse message, length delimited. Does not implicitly {@link gauge.messages.StepNamesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.StepNamesResponse - * @static - * @param {gauge.messages.IStepNamesResponse} message StepNamesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepNamesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StepNamesResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.StepNamesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.StepNamesResponse} StepNamesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepNamesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.StepNamesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.steps && message.steps.length)) - message.steps = []; - message.steps.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StepNamesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.StepNamesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.StepNamesResponse} StepNamesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepNamesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StepNamesResponse message. - * @function verify - * @memberof gauge.messages.StepNamesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StepNamesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.steps != null && message.hasOwnProperty("steps")) { - if (!Array.isArray(message.steps)) - return "steps: array expected"; - for (var i = 0; i < message.steps.length; ++i) - if (!$util.isString(message.steps[i])) - return "steps: string[] expected"; - } - return null; - }; - - /** - * Creates a StepNamesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.StepNamesResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.StepNamesResponse} StepNamesResponse - */ - StepNamesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.StepNamesResponse) - return object; - var message = new $root.gauge.messages.StepNamesResponse(); - if (object.steps) { - if (!Array.isArray(object.steps)) - throw TypeError(".gauge.messages.StepNamesResponse.steps: array expected"); - message.steps = []; - for (var i = 0; i < object.steps.length; ++i) - message.steps[i] = String(object.steps[i]); - } - return message; - }; - - /** - * Creates a plain object from a StepNamesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.StepNamesResponse - * @static - * @param {gauge.messages.StepNamesResponse} message StepNamesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StepNamesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.steps = []; - if (message.steps && message.steps.length) { - object.steps = []; - for (var j = 0; j < message.steps.length; ++j) - object.steps[j] = message.steps[j]; - } - return object; - }; - - /** - * Converts this StepNamesResponse to JSON. - * @function toJSON - * @memberof gauge.messages.StepNamesResponse - * @instance - * @returns {Object.} JSON object - */ - StepNamesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StepNamesResponse; - })(); - - messages.ScenarioDataStoreInitRequest = (function() { - - /** - * Properties of a ScenarioDataStoreInitRequest. - * @memberof gauge.messages - * @interface IScenarioDataStoreInitRequest - * @property {number|null} [stream] ScenarioDataStoreInitRequest stream - */ - - /** - * Constructs a new ScenarioDataStoreInitRequest. - * @memberof gauge.messages - * @classdesc Scenario Datastore is reset after every Scenario execution. - * @implements IScenarioDataStoreInitRequest - * @constructor - * @param {gauge.messages.IScenarioDataStoreInitRequest=} [properties] Properties to set - */ - function ScenarioDataStoreInitRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ScenarioDataStoreInitRequest stream. - * @member {number} stream - * @memberof gauge.messages.ScenarioDataStoreInitRequest - * @instance - */ - ScenarioDataStoreInitRequest.prototype.stream = 0; - - /** - * Creates a new ScenarioDataStoreInitRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.ScenarioDataStoreInitRequest - * @static - * @param {gauge.messages.IScenarioDataStoreInitRequest=} [properties] Properties to set - * @returns {gauge.messages.ScenarioDataStoreInitRequest} ScenarioDataStoreInitRequest instance - */ - ScenarioDataStoreInitRequest.create = function create(properties) { - return new ScenarioDataStoreInitRequest(properties); - }; - - /** - * Encodes the specified ScenarioDataStoreInitRequest message. Does not implicitly {@link gauge.messages.ScenarioDataStoreInitRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ScenarioDataStoreInitRequest - * @static - * @param {gauge.messages.IScenarioDataStoreInitRequest} message ScenarioDataStoreInitRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ScenarioDataStoreInitRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stream != null && message.hasOwnProperty("stream")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.stream); - return writer; - }; - - /** - * Encodes the specified ScenarioDataStoreInitRequest message, length delimited. Does not implicitly {@link gauge.messages.ScenarioDataStoreInitRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ScenarioDataStoreInitRequest - * @static - * @param {gauge.messages.IScenarioDataStoreInitRequest} message ScenarioDataStoreInitRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ScenarioDataStoreInitRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ScenarioDataStoreInitRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ScenarioDataStoreInitRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ScenarioDataStoreInitRequest} ScenarioDataStoreInitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ScenarioDataStoreInitRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ScenarioDataStoreInitRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stream = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ScenarioDataStoreInitRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ScenarioDataStoreInitRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ScenarioDataStoreInitRequest} ScenarioDataStoreInitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ScenarioDataStoreInitRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ScenarioDataStoreInitRequest message. - * @function verify - * @memberof gauge.messages.ScenarioDataStoreInitRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ScenarioDataStoreInitRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isInteger(message.stream)) - return "stream: integer expected"; - return null; - }; - - /** - * Creates a ScenarioDataStoreInitRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ScenarioDataStoreInitRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ScenarioDataStoreInitRequest} ScenarioDataStoreInitRequest - */ - ScenarioDataStoreInitRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ScenarioDataStoreInitRequest) - return object; - var message = new $root.gauge.messages.ScenarioDataStoreInitRequest(); - if (object.stream != null) - message.stream = object.stream | 0; - return message; - }; - - /** - * Creates a plain object from a ScenarioDataStoreInitRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ScenarioDataStoreInitRequest - * @static - * @param {gauge.messages.ScenarioDataStoreInitRequest} message ScenarioDataStoreInitRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ScenarioDataStoreInitRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.stream = 0; - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - return object; - }; - - /** - * Converts this ScenarioDataStoreInitRequest to JSON. - * @function toJSON - * @memberof gauge.messages.ScenarioDataStoreInitRequest - * @instance - * @returns {Object.} JSON object - */ - ScenarioDataStoreInitRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ScenarioDataStoreInitRequest; - })(); - - messages.SpecDataStoreInitRequest = (function() { - - /** - * Properties of a SpecDataStoreInitRequest. - * @memberof gauge.messages - * @interface ISpecDataStoreInitRequest - * @property {number|null} [stream] SpecDataStoreInitRequest stream - */ - - /** - * Constructs a new SpecDataStoreInitRequest. - * @memberof gauge.messages - * @classdesc Spec Datastore is reset after every Spec execution. - * @implements ISpecDataStoreInitRequest - * @constructor - * @param {gauge.messages.ISpecDataStoreInitRequest=} [properties] Properties to set - */ - function SpecDataStoreInitRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SpecDataStoreInitRequest stream. - * @member {number} stream - * @memberof gauge.messages.SpecDataStoreInitRequest - * @instance - */ - SpecDataStoreInitRequest.prototype.stream = 0; - - /** - * Creates a new SpecDataStoreInitRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.SpecDataStoreInitRequest - * @static - * @param {gauge.messages.ISpecDataStoreInitRequest=} [properties] Properties to set - * @returns {gauge.messages.SpecDataStoreInitRequest} SpecDataStoreInitRequest instance - */ - SpecDataStoreInitRequest.create = function create(properties) { - return new SpecDataStoreInitRequest(properties); - }; - - /** - * Encodes the specified SpecDataStoreInitRequest message. Does not implicitly {@link gauge.messages.SpecDataStoreInitRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.SpecDataStoreInitRequest - * @static - * @param {gauge.messages.ISpecDataStoreInitRequest} message SpecDataStoreInitRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecDataStoreInitRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stream != null && message.hasOwnProperty("stream")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.stream); - return writer; - }; - - /** - * Encodes the specified SpecDataStoreInitRequest message, length delimited. Does not implicitly {@link gauge.messages.SpecDataStoreInitRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.SpecDataStoreInitRequest - * @static - * @param {gauge.messages.ISpecDataStoreInitRequest} message SpecDataStoreInitRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecDataStoreInitRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SpecDataStoreInitRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.SpecDataStoreInitRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.SpecDataStoreInitRequest} SpecDataStoreInitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecDataStoreInitRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.SpecDataStoreInitRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stream = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SpecDataStoreInitRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.SpecDataStoreInitRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.SpecDataStoreInitRequest} SpecDataStoreInitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecDataStoreInitRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SpecDataStoreInitRequest message. - * @function verify - * @memberof gauge.messages.SpecDataStoreInitRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SpecDataStoreInitRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isInteger(message.stream)) - return "stream: integer expected"; - return null; - }; - - /** - * Creates a SpecDataStoreInitRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.SpecDataStoreInitRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.SpecDataStoreInitRequest} SpecDataStoreInitRequest - */ - SpecDataStoreInitRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.SpecDataStoreInitRequest) - return object; - var message = new $root.gauge.messages.SpecDataStoreInitRequest(); - if (object.stream != null) - message.stream = object.stream | 0; - return message; - }; - - /** - * Creates a plain object from a SpecDataStoreInitRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.SpecDataStoreInitRequest - * @static - * @param {gauge.messages.SpecDataStoreInitRequest} message SpecDataStoreInitRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SpecDataStoreInitRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.stream = 0; - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - return object; - }; - - /** - * Converts this SpecDataStoreInitRequest to JSON. - * @function toJSON - * @memberof gauge.messages.SpecDataStoreInitRequest - * @instance - * @returns {Object.} JSON object - */ - SpecDataStoreInitRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SpecDataStoreInitRequest; - })(); - - messages.SuiteDataStoreInitRequest = (function() { - - /** - * Properties of a SuiteDataStoreInitRequest. - * @memberof gauge.messages - * @interface ISuiteDataStoreInitRequest - * @property {number|null} [stream] SuiteDataStoreInitRequest stream - */ - - /** - * Constructs a new SuiteDataStoreInitRequest. - * @memberof gauge.messages - * @classdesc Suite Datastore is reset after every Suite execution. - * @implements ISuiteDataStoreInitRequest - * @constructor - * @param {gauge.messages.ISuiteDataStoreInitRequest=} [properties] Properties to set - */ - function SuiteDataStoreInitRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SuiteDataStoreInitRequest stream. - * @member {number} stream - * @memberof gauge.messages.SuiteDataStoreInitRequest - * @instance - */ - SuiteDataStoreInitRequest.prototype.stream = 0; - - /** - * Creates a new SuiteDataStoreInitRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.SuiteDataStoreInitRequest - * @static - * @param {gauge.messages.ISuiteDataStoreInitRequest=} [properties] Properties to set - * @returns {gauge.messages.SuiteDataStoreInitRequest} SuiteDataStoreInitRequest instance - */ - SuiteDataStoreInitRequest.create = function create(properties) { - return new SuiteDataStoreInitRequest(properties); - }; - - /** - * Encodes the specified SuiteDataStoreInitRequest message. Does not implicitly {@link gauge.messages.SuiteDataStoreInitRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.SuiteDataStoreInitRequest - * @static - * @param {gauge.messages.ISuiteDataStoreInitRequest} message SuiteDataStoreInitRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SuiteDataStoreInitRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stream != null && message.hasOwnProperty("stream")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.stream); - return writer; - }; - - /** - * Encodes the specified SuiteDataStoreInitRequest message, length delimited. Does not implicitly {@link gauge.messages.SuiteDataStoreInitRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.SuiteDataStoreInitRequest - * @static - * @param {gauge.messages.ISuiteDataStoreInitRequest} message SuiteDataStoreInitRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SuiteDataStoreInitRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SuiteDataStoreInitRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.SuiteDataStoreInitRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.SuiteDataStoreInitRequest} SuiteDataStoreInitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SuiteDataStoreInitRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.SuiteDataStoreInitRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stream = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SuiteDataStoreInitRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.SuiteDataStoreInitRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.SuiteDataStoreInitRequest} SuiteDataStoreInitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SuiteDataStoreInitRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SuiteDataStoreInitRequest message. - * @function verify - * @memberof gauge.messages.SuiteDataStoreInitRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SuiteDataStoreInitRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isInteger(message.stream)) - return "stream: integer expected"; - return null; - }; - - /** - * Creates a SuiteDataStoreInitRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.SuiteDataStoreInitRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.SuiteDataStoreInitRequest} SuiteDataStoreInitRequest - */ - SuiteDataStoreInitRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.SuiteDataStoreInitRequest) - return object; - var message = new $root.gauge.messages.SuiteDataStoreInitRequest(); - if (object.stream != null) - message.stream = object.stream | 0; - return message; - }; - - /** - * Creates a plain object from a SuiteDataStoreInitRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.SuiteDataStoreInitRequest - * @static - * @param {gauge.messages.SuiteDataStoreInitRequest} message SuiteDataStoreInitRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SuiteDataStoreInitRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.stream = 0; - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - return object; - }; - - /** - * Converts this SuiteDataStoreInitRequest to JSON. - * @function toJSON - * @memberof gauge.messages.SuiteDataStoreInitRequest - * @instance - * @returns {Object.} JSON object - */ - SuiteDataStoreInitRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SuiteDataStoreInitRequest; - })(); - - messages.ParameterPosition = (function() { - - /** - * Properties of a ParameterPosition. - * @memberof gauge.messages - * @interface IParameterPosition - * @property {number|null} [oldPosition] ParameterPosition oldPosition - * @property {number|null} [newPosition] ParameterPosition newPosition - */ - - /** - * Constructs a new ParameterPosition. - * @memberof gauge.messages - * @classdesc Used when refactoring a Step. - * @implements IParameterPosition - * @constructor - * @param {gauge.messages.IParameterPosition=} [properties] Properties to set - */ - function ParameterPosition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ParameterPosition oldPosition. - * @member {number} oldPosition - * @memberof gauge.messages.ParameterPosition - * @instance - */ - ParameterPosition.prototype.oldPosition = 0; - - /** - * ParameterPosition newPosition. - * @member {number} newPosition - * @memberof gauge.messages.ParameterPosition - * @instance - */ - ParameterPosition.prototype.newPosition = 0; - - /** - * Creates a new ParameterPosition instance using the specified properties. - * @function create - * @memberof gauge.messages.ParameterPosition - * @static - * @param {gauge.messages.IParameterPosition=} [properties] Properties to set - * @returns {gauge.messages.ParameterPosition} ParameterPosition instance - */ - ParameterPosition.create = function create(properties) { - return new ParameterPosition(properties); - }; - - /** - * Encodes the specified ParameterPosition message. Does not implicitly {@link gauge.messages.ParameterPosition.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ParameterPosition - * @static - * @param {gauge.messages.IParameterPosition} message ParameterPosition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParameterPosition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.oldPosition != null && message.hasOwnProperty("oldPosition")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.oldPosition); - if (message.newPosition != null && message.hasOwnProperty("newPosition")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.newPosition); - return writer; - }; - - /** - * Encodes the specified ParameterPosition message, length delimited. Does not implicitly {@link gauge.messages.ParameterPosition.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ParameterPosition - * @static - * @param {gauge.messages.IParameterPosition} message ParameterPosition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParameterPosition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ParameterPosition message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ParameterPosition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ParameterPosition} ParameterPosition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParameterPosition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ParameterPosition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.oldPosition = reader.int32(); - break; - case 2: - message.newPosition = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ParameterPosition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ParameterPosition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ParameterPosition} ParameterPosition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParameterPosition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ParameterPosition message. - * @function verify - * @memberof gauge.messages.ParameterPosition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ParameterPosition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.oldPosition != null && message.hasOwnProperty("oldPosition")) - if (!$util.isInteger(message.oldPosition)) - return "oldPosition: integer expected"; - if (message.newPosition != null && message.hasOwnProperty("newPosition")) - if (!$util.isInteger(message.newPosition)) - return "newPosition: integer expected"; - return null; - }; - - /** - * Creates a ParameterPosition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ParameterPosition - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ParameterPosition} ParameterPosition - */ - ParameterPosition.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ParameterPosition) - return object; - var message = new $root.gauge.messages.ParameterPosition(); - if (object.oldPosition != null) - message.oldPosition = object.oldPosition | 0; - if (object.newPosition != null) - message.newPosition = object.newPosition | 0; - return message; - }; - - /** - * Creates a plain object from a ParameterPosition message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ParameterPosition - * @static - * @param {gauge.messages.ParameterPosition} message ParameterPosition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ParameterPosition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.oldPosition = 0; - object.newPosition = 0; - } - if (message.oldPosition != null && message.hasOwnProperty("oldPosition")) - object.oldPosition = message.oldPosition; - if (message.newPosition != null && message.hasOwnProperty("newPosition")) - object.newPosition = message.newPosition; - return object; - }; - - /** - * Converts this ParameterPosition to JSON. - * @function toJSON - * @memberof gauge.messages.ParameterPosition - * @instance - * @returns {Object.} JSON object - */ - ParameterPosition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ParameterPosition; - })(); - - messages.RefactorRequest = (function() { - - /** - * Properties of a RefactorRequest. - * @memberof gauge.messages - * @interface IRefactorRequest - * @property {gauge.messages.IProtoStepValue|null} [oldStepValue] Old value, used to lookup Step to refactor - * @property {gauge.messages.IProtoStepValue|null} [newStepValue] New value, the to-be value of Step being refactored. - * @property {Array.|null} [paramPositions] Holds parameter positions of all parameters. Contains old and new parameter positions. - * @property {boolean|null} [saveChanges] If set to true, the refactored files should be saved to the file system before returning the response. - */ - - /** - * Constructs a new RefactorRequest. - * @memberof gauge.messages - * @classdesc Tells the runner to refactor the specified Step. - * @implements IRefactorRequest - * @constructor - * @param {gauge.messages.IRefactorRequest=} [properties] Properties to set - */ - function RefactorRequest(properties) { - this.paramPositions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Old value, used to lookup Step to refactor - * @member {gauge.messages.IProtoStepValue|null|undefined} oldStepValue - * @memberof gauge.messages.RefactorRequest - * @instance - */ - RefactorRequest.prototype.oldStepValue = null; - - /** - * New value, the to-be value of Step being refactored. - * @member {gauge.messages.IProtoStepValue|null|undefined} newStepValue - * @memberof gauge.messages.RefactorRequest - * @instance - */ - RefactorRequest.prototype.newStepValue = null; - - /** - * Holds parameter positions of all parameters. Contains old and new parameter positions. - * @member {Array.} paramPositions - * @memberof gauge.messages.RefactorRequest - * @instance - */ - RefactorRequest.prototype.paramPositions = $util.emptyArray; - - /** - * If set to true, the refactored files should be saved to the file system before returning the response. - * @member {boolean} saveChanges - * @memberof gauge.messages.RefactorRequest - * @instance - */ - RefactorRequest.prototype.saveChanges = false; - - /** - * Creates a new RefactorRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.RefactorRequest - * @static - * @param {gauge.messages.IRefactorRequest=} [properties] Properties to set - * @returns {gauge.messages.RefactorRequest} RefactorRequest instance - */ - RefactorRequest.create = function create(properties) { - return new RefactorRequest(properties); - }; - - /** - * Encodes the specified RefactorRequest message. Does not implicitly {@link gauge.messages.RefactorRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.RefactorRequest - * @static - * @param {gauge.messages.IRefactorRequest} message RefactorRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RefactorRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.oldStepValue != null && message.hasOwnProperty("oldStepValue")) - $root.gauge.messages.ProtoStepValue.encode(message.oldStepValue, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.newStepValue != null && message.hasOwnProperty("newStepValue")) - $root.gauge.messages.ProtoStepValue.encode(message.newStepValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.paramPositions != null && message.paramPositions.length) - for (var i = 0; i < message.paramPositions.length; ++i) - $root.gauge.messages.ParameterPosition.encode(message.paramPositions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.saveChanges != null && message.hasOwnProperty("saveChanges")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.saveChanges); - return writer; - }; - - /** - * Encodes the specified RefactorRequest message, length delimited. Does not implicitly {@link gauge.messages.RefactorRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.RefactorRequest - * @static - * @param {gauge.messages.IRefactorRequest} message RefactorRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RefactorRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RefactorRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.RefactorRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.RefactorRequest} RefactorRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RefactorRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.RefactorRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.oldStepValue = $root.gauge.messages.ProtoStepValue.decode(reader, reader.uint32()); - break; - case 2: - message.newStepValue = $root.gauge.messages.ProtoStepValue.decode(reader, reader.uint32()); - break; - case 3: - if (!(message.paramPositions && message.paramPositions.length)) - message.paramPositions = []; - message.paramPositions.push($root.gauge.messages.ParameterPosition.decode(reader, reader.uint32())); - break; - case 4: - message.saveChanges = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RefactorRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.RefactorRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.RefactorRequest} RefactorRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RefactorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RefactorRequest message. - * @function verify - * @memberof gauge.messages.RefactorRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RefactorRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.oldStepValue != null && message.hasOwnProperty("oldStepValue")) { - var error = $root.gauge.messages.ProtoStepValue.verify(message.oldStepValue); - if (error) - return "oldStepValue." + error; - } - if (message.newStepValue != null && message.hasOwnProperty("newStepValue")) { - var error = $root.gauge.messages.ProtoStepValue.verify(message.newStepValue); - if (error) - return "newStepValue." + error; - } - if (message.paramPositions != null && message.hasOwnProperty("paramPositions")) { - if (!Array.isArray(message.paramPositions)) - return "paramPositions: array expected"; - for (var i = 0; i < message.paramPositions.length; ++i) { - var error = $root.gauge.messages.ParameterPosition.verify(message.paramPositions[i]); - if (error) - return "paramPositions." + error; - } - } - if (message.saveChanges != null && message.hasOwnProperty("saveChanges")) - if (typeof message.saveChanges !== "boolean") - return "saveChanges: boolean expected"; - return null; - }; - - /** - * Creates a RefactorRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.RefactorRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.RefactorRequest} RefactorRequest - */ - RefactorRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.RefactorRequest) - return object; - var message = new $root.gauge.messages.RefactorRequest(); - if (object.oldStepValue != null) { - if (typeof object.oldStepValue !== "object") - throw TypeError(".gauge.messages.RefactorRequest.oldStepValue: object expected"); - message.oldStepValue = $root.gauge.messages.ProtoStepValue.fromObject(object.oldStepValue); - } - if (object.newStepValue != null) { - if (typeof object.newStepValue !== "object") - throw TypeError(".gauge.messages.RefactorRequest.newStepValue: object expected"); - message.newStepValue = $root.gauge.messages.ProtoStepValue.fromObject(object.newStepValue); - } - if (object.paramPositions) { - if (!Array.isArray(object.paramPositions)) - throw TypeError(".gauge.messages.RefactorRequest.paramPositions: array expected"); - message.paramPositions = []; - for (var i = 0; i < object.paramPositions.length; ++i) { - if (typeof object.paramPositions[i] !== "object") - throw TypeError(".gauge.messages.RefactorRequest.paramPositions: object expected"); - message.paramPositions[i] = $root.gauge.messages.ParameterPosition.fromObject(object.paramPositions[i]); - } - } - if (object.saveChanges != null) - message.saveChanges = Boolean(object.saveChanges); - return message; - }; - - /** - * Creates a plain object from a RefactorRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.RefactorRequest - * @static - * @param {gauge.messages.RefactorRequest} message RefactorRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RefactorRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.paramPositions = []; - if (options.defaults) { - object.oldStepValue = null; - object.newStepValue = null; - object.saveChanges = false; - } - if (message.oldStepValue != null && message.hasOwnProperty("oldStepValue")) - object.oldStepValue = $root.gauge.messages.ProtoStepValue.toObject(message.oldStepValue, options); - if (message.newStepValue != null && message.hasOwnProperty("newStepValue")) - object.newStepValue = $root.gauge.messages.ProtoStepValue.toObject(message.newStepValue, options); - if (message.paramPositions && message.paramPositions.length) { - object.paramPositions = []; - for (var j = 0; j < message.paramPositions.length; ++j) - object.paramPositions[j] = $root.gauge.messages.ParameterPosition.toObject(message.paramPositions[j], options); - } - if (message.saveChanges != null && message.hasOwnProperty("saveChanges")) - object.saveChanges = message.saveChanges; - return object; - }; - - /** - * Converts this RefactorRequest to JSON. - * @function toJSON - * @memberof gauge.messages.RefactorRequest - * @instance - * @returns {Object.} JSON object - */ - RefactorRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RefactorRequest; - })(); - - messages.FileChanges = (function() { - - /** - * Properties of a FileChanges. - * @memberof gauge.messages - * @interface IFileChanges - * @property {string|null} [fileName] FileChanges fileName - * @property {string|null} [fileContent] FileChanges fileContent - * @property {Array.|null} [diffs] FileChanges diffs - */ - - /** - * Constructs a new FileChanges. - * @memberof gauge.messages - * @classdesc Give all file changes to be made to file system - * @implements IFileChanges - * @constructor - * @param {gauge.messages.IFileChanges=} [properties] Properties to set - */ - function FileChanges(properties) { - this.diffs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FileChanges fileName. - * @member {string} fileName - * @memberof gauge.messages.FileChanges - * @instance - */ - FileChanges.prototype.fileName = ""; - - /** - * FileChanges fileContent. - * @member {string} fileContent - * @memberof gauge.messages.FileChanges - * @instance - */ - FileChanges.prototype.fileContent = ""; - - /** - * FileChanges diffs. - * @member {Array.} diffs - * @memberof gauge.messages.FileChanges - * @instance - */ - FileChanges.prototype.diffs = $util.emptyArray; - - /** - * Creates a new FileChanges instance using the specified properties. - * @function create - * @memberof gauge.messages.FileChanges - * @static - * @param {gauge.messages.IFileChanges=} [properties] Properties to set - * @returns {gauge.messages.FileChanges} FileChanges instance - */ - FileChanges.create = function create(properties) { - return new FileChanges(properties); - }; - - /** - * Encodes the specified FileChanges message. Does not implicitly {@link gauge.messages.FileChanges.verify|verify} messages. - * @function encode - * @memberof gauge.messages.FileChanges - * @static - * @param {gauge.messages.IFileChanges} message FileChanges message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileChanges.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fileName != null && message.hasOwnProperty("fileName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.fileName); - if (message.fileContent != null && message.hasOwnProperty("fileContent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fileContent); - if (message.diffs != null && message.diffs.length) - for (var i = 0; i < message.diffs.length; ++i) - $root.gauge.messages.TextDiff.encode(message.diffs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FileChanges message, length delimited. Does not implicitly {@link gauge.messages.FileChanges.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.FileChanges - * @static - * @param {gauge.messages.IFileChanges} message FileChanges message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileChanges.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FileChanges message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.FileChanges - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.FileChanges} FileChanges - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileChanges.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.FileChanges(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fileName = reader.string(); - break; - case 2: - message.fileContent = reader.string(); - break; - case 3: - if (!(message.diffs && message.diffs.length)) - message.diffs = []; - message.diffs.push($root.gauge.messages.TextDiff.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FileChanges message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.FileChanges - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.FileChanges} FileChanges - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileChanges.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FileChanges message. - * @function verify - * @memberof gauge.messages.FileChanges - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileChanges.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fileName != null && message.hasOwnProperty("fileName")) - if (!$util.isString(message.fileName)) - return "fileName: string expected"; - if (message.fileContent != null && message.hasOwnProperty("fileContent")) - if (!$util.isString(message.fileContent)) - return "fileContent: string expected"; - if (message.diffs != null && message.hasOwnProperty("diffs")) { - if (!Array.isArray(message.diffs)) - return "diffs: array expected"; - for (var i = 0; i < message.diffs.length; ++i) { - var error = $root.gauge.messages.TextDiff.verify(message.diffs[i]); - if (error) - return "diffs." + error; - } - } - return null; - }; - - /** - * Creates a FileChanges message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.FileChanges - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.FileChanges} FileChanges - */ - FileChanges.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.FileChanges) - return object; - var message = new $root.gauge.messages.FileChanges(); - if (object.fileName != null) - message.fileName = String(object.fileName); - if (object.fileContent != null) - message.fileContent = String(object.fileContent); - if (object.diffs) { - if (!Array.isArray(object.diffs)) - throw TypeError(".gauge.messages.FileChanges.diffs: array expected"); - message.diffs = []; - for (var i = 0; i < object.diffs.length; ++i) { - if (typeof object.diffs[i] !== "object") - throw TypeError(".gauge.messages.FileChanges.diffs: object expected"); - message.diffs[i] = $root.gauge.messages.TextDiff.fromObject(object.diffs[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a FileChanges message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.FileChanges - * @static - * @param {gauge.messages.FileChanges} message FileChanges - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileChanges.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.diffs = []; - if (options.defaults) { - object.fileName = ""; - object.fileContent = ""; - } - if (message.fileName != null && message.hasOwnProperty("fileName")) - object.fileName = message.fileName; - if (message.fileContent != null && message.hasOwnProperty("fileContent")) - object.fileContent = message.fileContent; - if (message.diffs && message.diffs.length) { - object.diffs = []; - for (var j = 0; j < message.diffs.length; ++j) - object.diffs[j] = $root.gauge.messages.TextDiff.toObject(message.diffs[j], options); - } - return object; - }; - - /** - * Converts this FileChanges to JSON. - * @function toJSON - * @memberof gauge.messages.FileChanges - * @instance - * @returns {Object.} JSON object - */ - FileChanges.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return FileChanges; - })(); - - messages.RefactorResponse = (function() { - - /** - * Properties of a RefactorResponse. - * @memberof gauge.messages - * @interface IRefactorResponse - * @property {boolean|null} [success] Flag indicating the success of Refactor operation. - * @property {string|null} [error] Error message, valid only if Refactor wasn't successful - * @property {Array.|null} [filesChanged] List of files that were affected because of the refactoring. - * @property {Array.|null} [fileChanges] List of file changes to be made to successfully achieve refactoring. - */ - - /** - * Constructs a new RefactorResponse. - * @memberof gauge.messages - * @classdesc Response of a RefactorRequest - * @implements IRefactorResponse - * @constructor - * @param {gauge.messages.IRefactorResponse=} [properties] Properties to set - */ - function RefactorResponse(properties) { - this.filesChanged = []; - this.fileChanges = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Flag indicating the success of Refactor operation. - * @member {boolean} success - * @memberof gauge.messages.RefactorResponse - * @instance - */ - RefactorResponse.prototype.success = false; - - /** - * Error message, valid only if Refactor wasn't successful - * @member {string} error - * @memberof gauge.messages.RefactorResponse - * @instance - */ - RefactorResponse.prototype.error = ""; - - /** - * List of files that were affected because of the refactoring. - * @member {Array.} filesChanged - * @memberof gauge.messages.RefactorResponse - * @instance - */ - RefactorResponse.prototype.filesChanged = $util.emptyArray; - - /** - * List of file changes to be made to successfully achieve refactoring. - * @member {Array.} fileChanges - * @memberof gauge.messages.RefactorResponse - * @instance - */ - RefactorResponse.prototype.fileChanges = $util.emptyArray; - - /** - * Creates a new RefactorResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.RefactorResponse - * @static - * @param {gauge.messages.IRefactorResponse=} [properties] Properties to set - * @returns {gauge.messages.RefactorResponse} RefactorResponse instance - */ - RefactorResponse.create = function create(properties) { - return new RefactorResponse(properties); - }; - - /** - * Encodes the specified RefactorResponse message. Does not implicitly {@link gauge.messages.RefactorResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.RefactorResponse - * @static - * @param {gauge.messages.IRefactorResponse} message RefactorResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RefactorResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && message.hasOwnProperty("success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.error != null && message.hasOwnProperty("error")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.error); - if (message.filesChanged != null && message.filesChanged.length) - for (var i = 0; i < message.filesChanged.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.filesChanged[i]); - if (message.fileChanges != null && message.fileChanges.length) - for (var i = 0; i < message.fileChanges.length; ++i) - $root.gauge.messages.FileChanges.encode(message.fileChanges[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified RefactorResponse message, length delimited. Does not implicitly {@link gauge.messages.RefactorResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.RefactorResponse - * @static - * @param {gauge.messages.IRefactorResponse} message RefactorResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RefactorResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RefactorResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.RefactorResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.RefactorResponse} RefactorResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RefactorResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.RefactorResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.success = reader.bool(); - break; - case 2: - message.error = reader.string(); - break; - case 3: - if (!(message.filesChanged && message.filesChanged.length)) - message.filesChanged = []; - message.filesChanged.push(reader.string()); - break; - case 4: - if (!(message.fileChanges && message.fileChanges.length)) - message.fileChanges = []; - message.fileChanges.push($root.gauge.messages.FileChanges.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RefactorResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.RefactorResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.RefactorResponse} RefactorResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RefactorResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RefactorResponse message. - * @function verify - * @memberof gauge.messages.RefactorResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RefactorResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.error != null && message.hasOwnProperty("error")) - if (!$util.isString(message.error)) - return "error: string expected"; - if (message.filesChanged != null && message.hasOwnProperty("filesChanged")) { - if (!Array.isArray(message.filesChanged)) - return "filesChanged: array expected"; - for (var i = 0; i < message.filesChanged.length; ++i) - if (!$util.isString(message.filesChanged[i])) - return "filesChanged: string[] expected"; - } - if (message.fileChanges != null && message.hasOwnProperty("fileChanges")) { - if (!Array.isArray(message.fileChanges)) - return "fileChanges: array expected"; - for (var i = 0; i < message.fileChanges.length; ++i) { - var error = $root.gauge.messages.FileChanges.verify(message.fileChanges[i]); - if (error) - return "fileChanges." + error; - } - } - return null; - }; - - /** - * Creates a RefactorResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.RefactorResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.RefactorResponse} RefactorResponse - */ - RefactorResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.RefactorResponse) - return object; - var message = new $root.gauge.messages.RefactorResponse(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.error != null) - message.error = String(object.error); - if (object.filesChanged) { - if (!Array.isArray(object.filesChanged)) - throw TypeError(".gauge.messages.RefactorResponse.filesChanged: array expected"); - message.filesChanged = []; - for (var i = 0; i < object.filesChanged.length; ++i) - message.filesChanged[i] = String(object.filesChanged[i]); - } - if (object.fileChanges) { - if (!Array.isArray(object.fileChanges)) - throw TypeError(".gauge.messages.RefactorResponse.fileChanges: array expected"); - message.fileChanges = []; - for (var i = 0; i < object.fileChanges.length; ++i) { - if (typeof object.fileChanges[i] !== "object") - throw TypeError(".gauge.messages.RefactorResponse.fileChanges: object expected"); - message.fileChanges[i] = $root.gauge.messages.FileChanges.fromObject(object.fileChanges[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a RefactorResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.RefactorResponse - * @static - * @param {gauge.messages.RefactorResponse} message RefactorResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RefactorResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.filesChanged = []; - object.fileChanges = []; - } - if (options.defaults) { - object.success = false; - object.error = ""; - } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.error != null && message.hasOwnProperty("error")) - object.error = message.error; - if (message.filesChanged && message.filesChanged.length) { - object.filesChanged = []; - for (var j = 0; j < message.filesChanged.length; ++j) - object.filesChanged[j] = message.filesChanged[j]; - } - if (message.fileChanges && message.fileChanges.length) { - object.fileChanges = []; - for (var j = 0; j < message.fileChanges.length; ++j) - object.fileChanges[j] = $root.gauge.messages.FileChanges.toObject(message.fileChanges[j], options); - } - return object; - }; - - /** - * Converts this RefactorResponse to JSON. - * @function toJSON - * @memberof gauge.messages.RefactorResponse - * @instance - * @returns {Object.} JSON object - */ - RefactorResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RefactorResponse; - })(); - - messages.StepNameRequest = (function() { - - /** - * Properties of a StepNameRequest. - * @memberof gauge.messages - * @interface IStepNameRequest - * @property {string|null} [stepValue] This is the parsed step value, i.e. with placeholders for parameters. - */ - - /** - * Constructs a new StepNameRequest. - * @memberof gauge.messages - * @classdesc Request for details on a Single Step. - * @implements IStepNameRequest - * @constructor - * @param {gauge.messages.IStepNameRequest=} [properties] Properties to set - */ - function StepNameRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * This is the parsed step value, i.e. with placeholders for parameters. - * @member {string} stepValue - * @memberof gauge.messages.StepNameRequest - * @instance - */ - StepNameRequest.prototype.stepValue = ""; - - /** - * Creates a new StepNameRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.StepNameRequest - * @static - * @param {gauge.messages.IStepNameRequest=} [properties] Properties to set - * @returns {gauge.messages.StepNameRequest} StepNameRequest instance - */ - StepNameRequest.create = function create(properties) { - return new StepNameRequest(properties); - }; - - /** - * Encodes the specified StepNameRequest message. Does not implicitly {@link gauge.messages.StepNameRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.StepNameRequest - * @static - * @param {gauge.messages.IStepNameRequest} message StepNameRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepNameRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stepValue); - return writer; - }; - - /** - * Encodes the specified StepNameRequest message, length delimited. Does not implicitly {@link gauge.messages.StepNameRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.StepNameRequest - * @static - * @param {gauge.messages.IStepNameRequest} message StepNameRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepNameRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StepNameRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.StepNameRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.StepNameRequest} StepNameRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepNameRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.StepNameRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stepValue = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StepNameRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.StepNameRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.StepNameRequest} StepNameRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepNameRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StepNameRequest message. - * @function verify - * @memberof gauge.messages.StepNameRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StepNameRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - if (!$util.isString(message.stepValue)) - return "stepValue: string expected"; - return null; - }; - - /** - * Creates a StepNameRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.StepNameRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.StepNameRequest} StepNameRequest - */ - StepNameRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.StepNameRequest) - return object; - var message = new $root.gauge.messages.StepNameRequest(); - if (object.stepValue != null) - message.stepValue = String(object.stepValue); - return message; - }; - - /** - * Creates a plain object from a StepNameRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.StepNameRequest - * @static - * @param {gauge.messages.StepNameRequest} message StepNameRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StepNameRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.stepValue = ""; - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - object.stepValue = message.stepValue; - return object; - }; - - /** - * Converts this StepNameRequest to JSON. - * @function toJSON - * @memberof gauge.messages.StepNameRequest - * @instance - * @returns {Object.} JSON object - */ - StepNameRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StepNameRequest; - })(); - - messages.StepNameResponse = (function() { - - /** - * Properties of a StepNameResponse. - * @memberof gauge.messages - * @interface IStepNameResponse - * @property {boolean|null} [isStepPresent] Flag indicating if there is a match for the given Step Text. - * @property {Array.|null} [stepName] The Step name of the given step. - * @property {boolean|null} [hasAlias] Flag indicating if the given Step is an alias. - * @property {string|null} [fileName] File name in which the step implementation exists - * @property {gauge.messages.ISpan|null} [span] Range of step - */ - - /** - * Constructs a new StepNameResponse. - * @memberof gauge.messages - * @classdesc Response to StepNameRequest. - * @implements IStepNameResponse - * @constructor - * @param {gauge.messages.IStepNameResponse=} [properties] Properties to set - */ - function StepNameResponse(properties) { - this.stepName = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Flag indicating if there is a match for the given Step Text. - * @member {boolean} isStepPresent - * @memberof gauge.messages.StepNameResponse - * @instance - */ - StepNameResponse.prototype.isStepPresent = false; - - /** - * The Step name of the given step. - * @member {Array.} stepName - * @memberof gauge.messages.StepNameResponse - * @instance - */ - StepNameResponse.prototype.stepName = $util.emptyArray; - - /** - * Flag indicating if the given Step is an alias. - * @member {boolean} hasAlias - * @memberof gauge.messages.StepNameResponse - * @instance - */ - StepNameResponse.prototype.hasAlias = false; - - /** - * File name in which the step implementation exists - * @member {string} fileName - * @memberof gauge.messages.StepNameResponse - * @instance - */ - StepNameResponse.prototype.fileName = ""; - - /** - * Range of step - * @member {gauge.messages.ISpan|null|undefined} span - * @memberof gauge.messages.StepNameResponse - * @instance - */ - StepNameResponse.prototype.span = null; - - /** - * Creates a new StepNameResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.StepNameResponse - * @static - * @param {gauge.messages.IStepNameResponse=} [properties] Properties to set - * @returns {gauge.messages.StepNameResponse} StepNameResponse instance - */ - StepNameResponse.create = function create(properties) { - return new StepNameResponse(properties); - }; - - /** - * Encodes the specified StepNameResponse message. Does not implicitly {@link gauge.messages.StepNameResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.StepNameResponse - * @static - * @param {gauge.messages.IStepNameResponse} message StepNameResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepNameResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.isStepPresent != null && message.hasOwnProperty("isStepPresent")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isStepPresent); - if (message.stepName != null && message.stepName.length) - for (var i = 0; i < message.stepName.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.stepName[i]); - if (message.hasAlias != null && message.hasOwnProperty("hasAlias")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.hasAlias); - if (message.fileName != null && message.hasOwnProperty("fileName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.fileName); - if (message.span != null && message.hasOwnProperty("span")) - $root.gauge.messages.Span.encode(message.span, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified StepNameResponse message, length delimited. Does not implicitly {@link gauge.messages.StepNameResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.StepNameResponse - * @static - * @param {gauge.messages.IStepNameResponse} message StepNameResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepNameResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StepNameResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.StepNameResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.StepNameResponse} StepNameResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepNameResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.StepNameResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.isStepPresent = reader.bool(); - break; - case 2: - if (!(message.stepName && message.stepName.length)) - message.stepName = []; - message.stepName.push(reader.string()); - break; - case 3: - message.hasAlias = reader.bool(); - break; - case 4: - message.fileName = reader.string(); - break; - case 5: - message.span = $root.gauge.messages.Span.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StepNameResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.StepNameResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.StepNameResponse} StepNameResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepNameResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StepNameResponse message. - * @function verify - * @memberof gauge.messages.StepNameResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StepNameResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.isStepPresent != null && message.hasOwnProperty("isStepPresent")) - if (typeof message.isStepPresent !== "boolean") - return "isStepPresent: boolean expected"; - if (message.stepName != null && message.hasOwnProperty("stepName")) { - if (!Array.isArray(message.stepName)) - return "stepName: array expected"; - for (var i = 0; i < message.stepName.length; ++i) - if (!$util.isString(message.stepName[i])) - return "stepName: string[] expected"; - } - if (message.hasAlias != null && message.hasOwnProperty("hasAlias")) - if (typeof message.hasAlias !== "boolean") - return "hasAlias: boolean expected"; - if (message.fileName != null && message.hasOwnProperty("fileName")) - if (!$util.isString(message.fileName)) - return "fileName: string expected"; - if (message.span != null && message.hasOwnProperty("span")) { - var error = $root.gauge.messages.Span.verify(message.span); - if (error) - return "span." + error; - } - return null; - }; - - /** - * Creates a StepNameResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.StepNameResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.StepNameResponse} StepNameResponse - */ - StepNameResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.StepNameResponse) - return object; - var message = new $root.gauge.messages.StepNameResponse(); - if (object.isStepPresent != null) - message.isStepPresent = Boolean(object.isStepPresent); - if (object.stepName) { - if (!Array.isArray(object.stepName)) - throw TypeError(".gauge.messages.StepNameResponse.stepName: array expected"); - message.stepName = []; - for (var i = 0; i < object.stepName.length; ++i) - message.stepName[i] = String(object.stepName[i]); - } - if (object.hasAlias != null) - message.hasAlias = Boolean(object.hasAlias); - if (object.fileName != null) - message.fileName = String(object.fileName); - if (object.span != null) { - if (typeof object.span !== "object") - throw TypeError(".gauge.messages.StepNameResponse.span: object expected"); - message.span = $root.gauge.messages.Span.fromObject(object.span); - } - return message; - }; - - /** - * Creates a plain object from a StepNameResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.StepNameResponse - * @static - * @param {gauge.messages.StepNameResponse} message StepNameResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StepNameResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.stepName = []; - if (options.defaults) { - object.isStepPresent = false; - object.hasAlias = false; - object.fileName = ""; - object.span = null; - } - if (message.isStepPresent != null && message.hasOwnProperty("isStepPresent")) - object.isStepPresent = message.isStepPresent; - if (message.stepName && message.stepName.length) { - object.stepName = []; - for (var j = 0; j < message.stepName.length; ++j) - object.stepName[j] = message.stepName[j]; - } - if (message.hasAlias != null && message.hasOwnProperty("hasAlias")) - object.hasAlias = message.hasAlias; - if (message.fileName != null && message.hasOwnProperty("fileName")) - object.fileName = message.fileName; - if (message.span != null && message.hasOwnProperty("span")) - object.span = $root.gauge.messages.Span.toObject(message.span, options); - return object; - }; - - /** - * Converts this StepNameResponse to JSON. - * @function toJSON - * @memberof gauge.messages.StepNameResponse - * @instance - * @returns {Object.} JSON object - */ - StepNameResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StepNameResponse; - })(); - - messages.UnsupportedMessageResponse = (function() { - - /** - * Properties of an UnsupportedMessageResponse. - * @memberof gauge.messages - * @interface IUnsupportedMessageResponse - * @property {string|null} [message] UnsupportedMessageResponse message - */ - - /** - * Constructs a new UnsupportedMessageResponse. - * @memberof gauge.messages - * @classdesc Response when a unsupported message request is sent. - * @implements IUnsupportedMessageResponse - * @constructor - * @param {gauge.messages.IUnsupportedMessageResponse=} [properties] Properties to set - */ - function UnsupportedMessageResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UnsupportedMessageResponse message. - * @member {string} message - * @memberof gauge.messages.UnsupportedMessageResponse - * @instance - */ - UnsupportedMessageResponse.prototype.message = ""; - - /** - * Creates a new UnsupportedMessageResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.UnsupportedMessageResponse - * @static - * @param {gauge.messages.IUnsupportedMessageResponse=} [properties] Properties to set - * @returns {gauge.messages.UnsupportedMessageResponse} UnsupportedMessageResponse instance - */ - UnsupportedMessageResponse.create = function create(properties) { - return new UnsupportedMessageResponse(properties); - }; - - /** - * Encodes the specified UnsupportedMessageResponse message. Does not implicitly {@link gauge.messages.UnsupportedMessageResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.UnsupportedMessageResponse - * @static - * @param {gauge.messages.IUnsupportedMessageResponse} message UnsupportedMessageResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UnsupportedMessageResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.message != null && message.hasOwnProperty("message")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.message); - return writer; - }; - - /** - * Encodes the specified UnsupportedMessageResponse message, length delimited. Does not implicitly {@link gauge.messages.UnsupportedMessageResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.UnsupportedMessageResponse - * @static - * @param {gauge.messages.IUnsupportedMessageResponse} message UnsupportedMessageResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UnsupportedMessageResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UnsupportedMessageResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.UnsupportedMessageResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.UnsupportedMessageResponse} UnsupportedMessageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UnsupportedMessageResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.UnsupportedMessageResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UnsupportedMessageResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.UnsupportedMessageResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.UnsupportedMessageResponse} UnsupportedMessageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UnsupportedMessageResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UnsupportedMessageResponse message. - * @function verify - * @memberof gauge.messages.UnsupportedMessageResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UnsupportedMessageResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - - /** - * Creates an UnsupportedMessageResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.UnsupportedMessageResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.UnsupportedMessageResponse} UnsupportedMessageResponse - */ - UnsupportedMessageResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.UnsupportedMessageResponse) - return object; - var message = new $root.gauge.messages.UnsupportedMessageResponse(); - if (object.message != null) - message.message = String(object.message); - return message; - }; - - /** - * Creates a plain object from an UnsupportedMessageResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.UnsupportedMessageResponse - * @static - * @param {gauge.messages.UnsupportedMessageResponse} message UnsupportedMessageResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UnsupportedMessageResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.message = ""; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - return object; - }; - - /** - * Converts this UnsupportedMessageResponse to JSON. - * @function toJSON - * @memberof gauge.messages.UnsupportedMessageResponse - * @instance - * @returns {Object.} JSON object - */ - UnsupportedMessageResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UnsupportedMessageResponse; - })(); - - messages.CacheFileRequest = (function() { - - /** - * Properties of a CacheFileRequest. - * @memberof gauge.messages - * @interface ICacheFileRequest - * @property {string|null} [content] File content of the file to be cached - * @property {string|null} [filePath] File path of the file to be cached - * @property {boolean|null} [isClosed] Specifies if the file is closed - * @property {gauge.messages.CacheFileRequest.FileStatus|null} [status] Specifies the status of the file - */ - - /** - * Constructs a new CacheFileRequest. - * @memberof gauge.messages - * @classdesc so runner can cache file contents present on the client(an editor). - * @implements ICacheFileRequest - * @constructor - * @param {gauge.messages.ICacheFileRequest=} [properties] Properties to set - */ - function CacheFileRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * File content of the file to be cached - * @member {string} content - * @memberof gauge.messages.CacheFileRequest - * @instance - */ - CacheFileRequest.prototype.content = ""; - - /** - * File path of the file to be cached - * @member {string} filePath - * @memberof gauge.messages.CacheFileRequest - * @instance - */ - CacheFileRequest.prototype.filePath = ""; - - /** - * Specifies if the file is closed - * @member {boolean} isClosed - * @memberof gauge.messages.CacheFileRequest - * @instance - */ - CacheFileRequest.prototype.isClosed = false; - - /** - * Specifies the status of the file - * @member {gauge.messages.CacheFileRequest.FileStatus} status - * @memberof gauge.messages.CacheFileRequest - * @instance - */ - CacheFileRequest.prototype.status = 0; - - /** - * Creates a new CacheFileRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.CacheFileRequest - * @static - * @param {gauge.messages.ICacheFileRequest=} [properties] Properties to set - * @returns {gauge.messages.CacheFileRequest} CacheFileRequest instance - */ - CacheFileRequest.create = function create(properties) { - return new CacheFileRequest(properties); - }; - - /** - * Encodes the specified CacheFileRequest message. Does not implicitly {@link gauge.messages.CacheFileRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.CacheFileRequest - * @static - * @param {gauge.messages.ICacheFileRequest} message CacheFileRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CacheFileRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.content != null && message.hasOwnProperty("content")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.content); - if (message.filePath != null && message.hasOwnProperty("filePath")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filePath); - if (message.isClosed != null && message.hasOwnProperty("isClosed")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isClosed); - if (message.status != null && message.hasOwnProperty("status")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); - return writer; - }; - - /** - * Encodes the specified CacheFileRequest message, length delimited. Does not implicitly {@link gauge.messages.CacheFileRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.CacheFileRequest - * @static - * @param {gauge.messages.ICacheFileRequest} message CacheFileRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CacheFileRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CacheFileRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.CacheFileRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.CacheFileRequest} CacheFileRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CacheFileRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.CacheFileRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.content = reader.string(); - break; - case 2: - message.filePath = reader.string(); - break; - case 3: - message.isClosed = reader.bool(); - break; - case 4: - message.status = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CacheFileRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.CacheFileRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.CacheFileRequest} CacheFileRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CacheFileRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CacheFileRequest message. - * @function verify - * @memberof gauge.messages.CacheFileRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CacheFileRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.content != null && message.hasOwnProperty("content")) - if (!$util.isString(message.content)) - return "content: string expected"; - if (message.filePath != null && message.hasOwnProperty("filePath")) - if (!$util.isString(message.filePath)) - return "filePath: string expected"; - if (message.isClosed != null && message.hasOwnProperty("isClosed")) - if (typeof message.isClosed !== "boolean") - return "isClosed: boolean expected"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - - /** - * Creates a CacheFileRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.CacheFileRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.CacheFileRequest} CacheFileRequest - */ - CacheFileRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.CacheFileRequest) - return object; - var message = new $root.gauge.messages.CacheFileRequest(); - if (object.content != null) - message.content = String(object.content); - if (object.filePath != null) - message.filePath = String(object.filePath); - if (object.isClosed != null) - message.isClosed = Boolean(object.isClosed); - switch (object.status) { - case "CHANGED": - case 0: - message.status = 0; - break; - case "CLOSED": - case 1: - message.status = 1; - break; - case "CREATED": - case 2: - message.status = 2; - break; - case "DELETED": - case 3: - message.status = 3; - break; - case "OPENED": - case 4: - message.status = 4; - break; - } - return message; - }; - - /** - * Creates a plain object from a CacheFileRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.CacheFileRequest - * @static - * @param {gauge.messages.CacheFileRequest} message CacheFileRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CacheFileRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.content = ""; - object.filePath = ""; - object.isClosed = false; - object.status = options.enums === String ? "CHANGED" : 0; - } - if (message.content != null && message.hasOwnProperty("content")) - object.content = message.content; - if (message.filePath != null && message.hasOwnProperty("filePath")) - object.filePath = message.filePath; - if (message.isClosed != null && message.hasOwnProperty("isClosed")) - object.isClosed = message.isClosed; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.gauge.messages.CacheFileRequest.FileStatus[message.status] : message.status; - return object; - }; - - /** - * Converts this CacheFileRequest to JSON. - * @function toJSON - * @memberof gauge.messages.CacheFileRequest - * @instance - * @returns {Object.} JSON object - */ - CacheFileRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * FileStatus enum. - * @name gauge.messages.CacheFileRequest.FileStatus - * @enum {string} - * @property {number} CHANGED=0 The file content was changed in the client - * @property {number} CLOSED=1 The file was closed in the client - * @property {number} CREATED=2 The file was created on the client - * @property {number} DELETED=3 The file was deleted on the client - * @property {number} OPENED=4 The file is opened in the client - */ - CacheFileRequest.FileStatus = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CHANGED"] = 0; - values[valuesById[1] = "CLOSED"] = 1; - values[valuesById[2] = "CREATED"] = 2; - values[valuesById[3] = "DELETED"] = 3; - values[valuesById[4] = "OPENED"] = 4; - return values; - })(); - - return CacheFileRequest; - })(); - - messages.StepPositionsRequest = (function() { - - /** - * Properties of a StepPositionsRequest. - * @memberof gauge.messages - * @interface IStepPositionsRequest - * @property {string|null} [filePath] Get step positions for file path - */ - - /** - * Constructs a new StepPositionsRequest. - * @memberof gauge.messages - * @classdesc Request for find step positions - * @implements IStepPositionsRequest - * @constructor - * @param {gauge.messages.IStepPositionsRequest=} [properties] Properties to set - */ - function StepPositionsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Get step positions for file path - * @member {string} filePath - * @memberof gauge.messages.StepPositionsRequest - * @instance - */ - StepPositionsRequest.prototype.filePath = ""; - - /** - * Creates a new StepPositionsRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.StepPositionsRequest - * @static - * @param {gauge.messages.IStepPositionsRequest=} [properties] Properties to set - * @returns {gauge.messages.StepPositionsRequest} StepPositionsRequest instance - */ - StepPositionsRequest.create = function create(properties) { - return new StepPositionsRequest(properties); - }; - - /** - * Encodes the specified StepPositionsRequest message. Does not implicitly {@link gauge.messages.StepPositionsRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.StepPositionsRequest - * @static - * @param {gauge.messages.IStepPositionsRequest} message StepPositionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepPositionsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.filePath != null && message.hasOwnProperty("filePath")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.filePath); - return writer; - }; - - /** - * Encodes the specified StepPositionsRequest message, length delimited. Does not implicitly {@link gauge.messages.StepPositionsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.StepPositionsRequest - * @static - * @param {gauge.messages.IStepPositionsRequest} message StepPositionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepPositionsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StepPositionsRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.StepPositionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.StepPositionsRequest} StepPositionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepPositionsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.StepPositionsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.filePath = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StepPositionsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.StepPositionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.StepPositionsRequest} StepPositionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepPositionsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StepPositionsRequest message. - * @function verify - * @memberof gauge.messages.StepPositionsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StepPositionsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.filePath != null && message.hasOwnProperty("filePath")) - if (!$util.isString(message.filePath)) - return "filePath: string expected"; - return null; - }; - - /** - * Creates a StepPositionsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.StepPositionsRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.StepPositionsRequest} StepPositionsRequest - */ - StepPositionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.StepPositionsRequest) - return object; - var message = new $root.gauge.messages.StepPositionsRequest(); - if (object.filePath != null) - message.filePath = String(object.filePath); - return message; - }; - - /** - * Creates a plain object from a StepPositionsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.StepPositionsRequest - * @static - * @param {gauge.messages.StepPositionsRequest} message StepPositionsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StepPositionsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.filePath = ""; - if (message.filePath != null && message.hasOwnProperty("filePath")) - object.filePath = message.filePath; - return object; - }; - - /** - * Converts this StepPositionsRequest to JSON. - * @function toJSON - * @memberof gauge.messages.StepPositionsRequest - * @instance - * @returns {Object.} JSON object - */ - StepPositionsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StepPositionsRequest; - })(); - - messages.StepPositionsResponse = (function() { - - /** - * Properties of a StepPositionsResponse. - * @memberof gauge.messages - * @interface IStepPositionsResponse - * @property {Array.|null} [stepPositions] Step Position - * @property {string|null} [error] Error message - */ - - /** - * Constructs a new StepPositionsResponse. - * @memberof gauge.messages - * @classdesc Response for find step positions - * @implements IStepPositionsResponse - * @constructor - * @param {gauge.messages.IStepPositionsResponse=} [properties] Properties to set - */ - function StepPositionsResponse(properties) { - this.stepPositions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Step Position - * @member {Array.} stepPositions - * @memberof gauge.messages.StepPositionsResponse - * @instance - */ - StepPositionsResponse.prototype.stepPositions = $util.emptyArray; - - /** - * Error message - * @member {string} error - * @memberof gauge.messages.StepPositionsResponse - * @instance - */ - StepPositionsResponse.prototype.error = ""; - - /** - * Creates a new StepPositionsResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.StepPositionsResponse - * @static - * @param {gauge.messages.IStepPositionsResponse=} [properties] Properties to set - * @returns {gauge.messages.StepPositionsResponse} StepPositionsResponse instance - */ - StepPositionsResponse.create = function create(properties) { - return new StepPositionsResponse(properties); - }; - - /** - * Encodes the specified StepPositionsResponse message. Does not implicitly {@link gauge.messages.StepPositionsResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.StepPositionsResponse - * @static - * @param {gauge.messages.IStepPositionsResponse} message StepPositionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepPositionsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stepPositions != null && message.stepPositions.length) - for (var i = 0; i < message.stepPositions.length; ++i) - $root.gauge.messages.StepPositionsResponse.StepPosition.encode(message.stepPositions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.error); - return writer; - }; - - /** - * Encodes the specified StepPositionsResponse message, length delimited. Does not implicitly {@link gauge.messages.StepPositionsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.StepPositionsResponse - * @static - * @param {gauge.messages.IStepPositionsResponse} message StepPositionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepPositionsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StepPositionsResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.StepPositionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.StepPositionsResponse} StepPositionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepPositionsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.StepPositionsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.stepPositions && message.stepPositions.length)) - message.stepPositions = []; - message.stepPositions.push($root.gauge.messages.StepPositionsResponse.StepPosition.decode(reader, reader.uint32())); - break; - case 2: - message.error = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StepPositionsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.StepPositionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.StepPositionsResponse} StepPositionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepPositionsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StepPositionsResponse message. - * @function verify - * @memberof gauge.messages.StepPositionsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StepPositionsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stepPositions != null && message.hasOwnProperty("stepPositions")) { - if (!Array.isArray(message.stepPositions)) - return "stepPositions: array expected"; - for (var i = 0; i < message.stepPositions.length; ++i) { - var error = $root.gauge.messages.StepPositionsResponse.StepPosition.verify(message.stepPositions[i]); - if (error) - return "stepPositions." + error; - } - } - if (message.error != null && message.hasOwnProperty("error")) - if (!$util.isString(message.error)) - return "error: string expected"; - return null; - }; - - /** - * Creates a StepPositionsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.StepPositionsResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.StepPositionsResponse} StepPositionsResponse - */ - StepPositionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.StepPositionsResponse) - return object; - var message = new $root.gauge.messages.StepPositionsResponse(); - if (object.stepPositions) { - if (!Array.isArray(object.stepPositions)) - throw TypeError(".gauge.messages.StepPositionsResponse.stepPositions: array expected"); - message.stepPositions = []; - for (var i = 0; i < object.stepPositions.length; ++i) { - if (typeof object.stepPositions[i] !== "object") - throw TypeError(".gauge.messages.StepPositionsResponse.stepPositions: object expected"); - message.stepPositions[i] = $root.gauge.messages.StepPositionsResponse.StepPosition.fromObject(object.stepPositions[i]); - } - } - if (object.error != null) - message.error = String(object.error); - return message; - }; - - /** - * Creates a plain object from a StepPositionsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.StepPositionsResponse - * @static - * @param {gauge.messages.StepPositionsResponse} message StepPositionsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StepPositionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.stepPositions = []; - if (options.defaults) - object.error = ""; - if (message.stepPositions && message.stepPositions.length) { - object.stepPositions = []; - for (var j = 0; j < message.stepPositions.length; ++j) - object.stepPositions[j] = $root.gauge.messages.StepPositionsResponse.StepPosition.toObject(message.stepPositions[j], options); - } - if (message.error != null && message.hasOwnProperty("error")) - object.error = message.error; - return object; - }; - - /** - * Converts this StepPositionsResponse to JSON. - * @function toJSON - * @memberof gauge.messages.StepPositionsResponse - * @instance - * @returns {Object.} JSON object - */ - StepPositionsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - StepPositionsResponse.StepPosition = (function() { - - /** - * Properties of a StepPosition. - * @memberof gauge.messages.StepPositionsResponse - * @interface IStepPosition - * @property {string|null} [stepValue] Step Value - * @property {gauge.messages.ISpan|null} [span] Range of step - */ - - /** - * Constructs a new StepPosition. - * @memberof gauge.messages.StepPositionsResponse - * @classdesc Step position for each step implementation - * @implements IStepPosition - * @constructor - * @param {gauge.messages.StepPositionsResponse.IStepPosition=} [properties] Properties to set - */ - function StepPosition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Step Value - * @member {string} stepValue - * @memberof gauge.messages.StepPositionsResponse.StepPosition - * @instance - */ - StepPosition.prototype.stepValue = ""; - - /** - * Range of step - * @member {gauge.messages.ISpan|null|undefined} span - * @memberof gauge.messages.StepPositionsResponse.StepPosition - * @instance - */ - StepPosition.prototype.span = null; - - /** - * Creates a new StepPosition instance using the specified properties. - * @function create - * @memberof gauge.messages.StepPositionsResponse.StepPosition - * @static - * @param {gauge.messages.StepPositionsResponse.IStepPosition=} [properties] Properties to set - * @returns {gauge.messages.StepPositionsResponse.StepPosition} StepPosition instance - */ - StepPosition.create = function create(properties) { - return new StepPosition(properties); - }; - - /** - * Encodes the specified StepPosition message. Does not implicitly {@link gauge.messages.StepPositionsResponse.StepPosition.verify|verify} messages. - * @function encode - * @memberof gauge.messages.StepPositionsResponse.StepPosition - * @static - * @param {gauge.messages.StepPositionsResponse.IStepPosition} message StepPosition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepPosition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stepValue); - if (message.span != null && message.hasOwnProperty("span")) - $root.gauge.messages.Span.encode(message.span, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified StepPosition message, length delimited. Does not implicitly {@link gauge.messages.StepPositionsResponse.StepPosition.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.StepPositionsResponse.StepPosition - * @static - * @param {gauge.messages.StepPositionsResponse.IStepPosition} message StepPosition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StepPosition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StepPosition message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.StepPositionsResponse.StepPosition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.StepPositionsResponse.StepPosition} StepPosition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepPosition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.StepPositionsResponse.StepPosition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stepValue = reader.string(); - break; - case 2: - message.span = $root.gauge.messages.Span.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StepPosition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.StepPositionsResponse.StepPosition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.StepPositionsResponse.StepPosition} StepPosition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StepPosition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StepPosition message. - * @function verify - * @memberof gauge.messages.StepPositionsResponse.StepPosition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StepPosition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - if (!$util.isString(message.stepValue)) - return "stepValue: string expected"; - if (message.span != null && message.hasOwnProperty("span")) { - var error = $root.gauge.messages.Span.verify(message.span); - if (error) - return "span." + error; - } - return null; - }; - - /** - * Creates a StepPosition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.StepPositionsResponse.StepPosition - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.StepPositionsResponse.StepPosition} StepPosition - */ - StepPosition.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.StepPositionsResponse.StepPosition) - return object; - var message = new $root.gauge.messages.StepPositionsResponse.StepPosition(); - if (object.stepValue != null) - message.stepValue = String(object.stepValue); - if (object.span != null) { - if (typeof object.span !== "object") - throw TypeError(".gauge.messages.StepPositionsResponse.StepPosition.span: object expected"); - message.span = $root.gauge.messages.Span.fromObject(object.span); - } - return message; - }; - - /** - * Creates a plain object from a StepPosition message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.StepPositionsResponse.StepPosition - * @static - * @param {gauge.messages.StepPositionsResponse.StepPosition} message StepPosition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StepPosition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.stepValue = ""; - object.span = null; - } - if (message.stepValue != null && message.hasOwnProperty("stepValue")) - object.stepValue = message.stepValue; - if (message.span != null && message.hasOwnProperty("span")) - object.span = $root.gauge.messages.Span.toObject(message.span, options); - return object; - }; - - /** - * Converts this StepPosition to JSON. - * @function toJSON - * @memberof gauge.messages.StepPositionsResponse.StepPosition - * @instance - * @returns {Object.} JSON object - */ - StepPosition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StepPosition; - })(); - - return StepPositionsResponse; - })(); - - messages.ImplementationFileGlobPatternRequest = (function() { - - /** - * Properties of an ImplementationFileGlobPatternRequest. - * @memberof gauge.messages - * @interface IImplementationFileGlobPatternRequest - */ - - /** - * Constructs a new ImplementationFileGlobPatternRequest. - * @memberof gauge.messages - * @classdesc Request for getting Implementation file glob pattern - * @implements IImplementationFileGlobPatternRequest - * @constructor - * @param {gauge.messages.IImplementationFileGlobPatternRequest=} [properties] Properties to set - */ - function ImplementationFileGlobPatternRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ImplementationFileGlobPatternRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.ImplementationFileGlobPatternRequest - * @static - * @param {gauge.messages.IImplementationFileGlobPatternRequest=} [properties] Properties to set - * @returns {gauge.messages.ImplementationFileGlobPatternRequest} ImplementationFileGlobPatternRequest instance - */ - ImplementationFileGlobPatternRequest.create = function create(properties) { - return new ImplementationFileGlobPatternRequest(properties); - }; - - /** - * Encodes the specified ImplementationFileGlobPatternRequest message. Does not implicitly {@link gauge.messages.ImplementationFileGlobPatternRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ImplementationFileGlobPatternRequest - * @static - * @param {gauge.messages.IImplementationFileGlobPatternRequest} message ImplementationFileGlobPatternRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImplementationFileGlobPatternRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified ImplementationFileGlobPatternRequest message, length delimited. Does not implicitly {@link gauge.messages.ImplementationFileGlobPatternRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ImplementationFileGlobPatternRequest - * @static - * @param {gauge.messages.IImplementationFileGlobPatternRequest} message ImplementationFileGlobPatternRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImplementationFileGlobPatternRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ImplementationFileGlobPatternRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ImplementationFileGlobPatternRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ImplementationFileGlobPatternRequest} ImplementationFileGlobPatternRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImplementationFileGlobPatternRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ImplementationFileGlobPatternRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ImplementationFileGlobPatternRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ImplementationFileGlobPatternRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ImplementationFileGlobPatternRequest} ImplementationFileGlobPatternRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImplementationFileGlobPatternRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ImplementationFileGlobPatternRequest message. - * @function verify - * @memberof gauge.messages.ImplementationFileGlobPatternRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ImplementationFileGlobPatternRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates an ImplementationFileGlobPatternRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ImplementationFileGlobPatternRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ImplementationFileGlobPatternRequest} ImplementationFileGlobPatternRequest - */ - ImplementationFileGlobPatternRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ImplementationFileGlobPatternRequest) - return object; - return new $root.gauge.messages.ImplementationFileGlobPatternRequest(); - }; - - /** - * Creates a plain object from an ImplementationFileGlobPatternRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ImplementationFileGlobPatternRequest - * @static - * @param {gauge.messages.ImplementationFileGlobPatternRequest} message ImplementationFileGlobPatternRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ImplementationFileGlobPatternRequest.toObject = function toObject() { - return {}; - }; - - /** - * Converts this ImplementationFileGlobPatternRequest to JSON. - * @function toJSON - * @memberof gauge.messages.ImplementationFileGlobPatternRequest - * @instance - * @returns {Object.} JSON object - */ - ImplementationFileGlobPatternRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ImplementationFileGlobPatternRequest; - })(); - - messages.ImplementationFileGlobPatternResponse = (function() { - - /** - * Properties of an ImplementationFileGlobPatternResponse. - * @memberof gauge.messages - * @interface IImplementationFileGlobPatternResponse - * @property {Array.|null} [globPatterns] List of implementation file glob patterns - */ - - /** - * Constructs a new ImplementationFileGlobPatternResponse. - * @memberof gauge.messages - * @classdesc Response for getting Implementation file glob pattern - * @implements IImplementationFileGlobPatternResponse - * @constructor - * @param {gauge.messages.IImplementationFileGlobPatternResponse=} [properties] Properties to set - */ - function ImplementationFileGlobPatternResponse(properties) { - this.globPatterns = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * List of implementation file glob patterns - * @member {Array.} globPatterns - * @memberof gauge.messages.ImplementationFileGlobPatternResponse - * @instance - */ - ImplementationFileGlobPatternResponse.prototype.globPatterns = $util.emptyArray; - - /** - * Creates a new ImplementationFileGlobPatternResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.ImplementationFileGlobPatternResponse - * @static - * @param {gauge.messages.IImplementationFileGlobPatternResponse=} [properties] Properties to set - * @returns {gauge.messages.ImplementationFileGlobPatternResponse} ImplementationFileGlobPatternResponse instance - */ - ImplementationFileGlobPatternResponse.create = function create(properties) { - return new ImplementationFileGlobPatternResponse(properties); - }; - - /** - * Encodes the specified ImplementationFileGlobPatternResponse message. Does not implicitly {@link gauge.messages.ImplementationFileGlobPatternResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ImplementationFileGlobPatternResponse - * @static - * @param {gauge.messages.IImplementationFileGlobPatternResponse} message ImplementationFileGlobPatternResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImplementationFileGlobPatternResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.globPatterns != null && message.globPatterns.length) - for (var i = 0; i < message.globPatterns.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.globPatterns[i]); - return writer; - }; - - /** - * Encodes the specified ImplementationFileGlobPatternResponse message, length delimited. Does not implicitly {@link gauge.messages.ImplementationFileGlobPatternResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ImplementationFileGlobPatternResponse - * @static - * @param {gauge.messages.IImplementationFileGlobPatternResponse} message ImplementationFileGlobPatternResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImplementationFileGlobPatternResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ImplementationFileGlobPatternResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ImplementationFileGlobPatternResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ImplementationFileGlobPatternResponse} ImplementationFileGlobPatternResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImplementationFileGlobPatternResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ImplementationFileGlobPatternResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.globPatterns && message.globPatterns.length)) - message.globPatterns = []; - message.globPatterns.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ImplementationFileGlobPatternResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ImplementationFileGlobPatternResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ImplementationFileGlobPatternResponse} ImplementationFileGlobPatternResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImplementationFileGlobPatternResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ImplementationFileGlobPatternResponse message. - * @function verify - * @memberof gauge.messages.ImplementationFileGlobPatternResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ImplementationFileGlobPatternResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.globPatterns != null && message.hasOwnProperty("globPatterns")) { - if (!Array.isArray(message.globPatterns)) - return "globPatterns: array expected"; - for (var i = 0; i < message.globPatterns.length; ++i) - if (!$util.isString(message.globPatterns[i])) - return "globPatterns: string[] expected"; - } - return null; - }; - - /** - * Creates an ImplementationFileGlobPatternResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ImplementationFileGlobPatternResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ImplementationFileGlobPatternResponse} ImplementationFileGlobPatternResponse - */ - ImplementationFileGlobPatternResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ImplementationFileGlobPatternResponse) - return object; - var message = new $root.gauge.messages.ImplementationFileGlobPatternResponse(); - if (object.globPatterns) { - if (!Array.isArray(object.globPatterns)) - throw TypeError(".gauge.messages.ImplementationFileGlobPatternResponse.globPatterns: array expected"); - message.globPatterns = []; - for (var i = 0; i < object.globPatterns.length; ++i) - message.globPatterns[i] = String(object.globPatterns[i]); - } - return message; - }; - - /** - * Creates a plain object from an ImplementationFileGlobPatternResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ImplementationFileGlobPatternResponse - * @static - * @param {gauge.messages.ImplementationFileGlobPatternResponse} message ImplementationFileGlobPatternResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ImplementationFileGlobPatternResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.globPatterns = []; - if (message.globPatterns && message.globPatterns.length) { - object.globPatterns = []; - for (var j = 0; j < message.globPatterns.length; ++j) - object.globPatterns[j] = message.globPatterns[j]; - } - return object; - }; - - /** - * Converts this ImplementationFileGlobPatternResponse to JSON. - * @function toJSON - * @memberof gauge.messages.ImplementationFileGlobPatternResponse - * @instance - * @returns {Object.} JSON object - */ - ImplementationFileGlobPatternResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ImplementationFileGlobPatternResponse; - })(); - - messages.ImplementationFileListRequest = (function() { - - /** - * Properties of an ImplementationFileListRequest. - * @memberof gauge.messages - * @interface IImplementationFileListRequest - */ - - /** - * Constructs a new ImplementationFileListRequest. - * @memberof gauge.messages - * @classdesc Request for getting Implementation file list - * @implements IImplementationFileListRequest - * @constructor - * @param {gauge.messages.IImplementationFileListRequest=} [properties] Properties to set - */ - function ImplementationFileListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ImplementationFileListRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.ImplementationFileListRequest - * @static - * @param {gauge.messages.IImplementationFileListRequest=} [properties] Properties to set - * @returns {gauge.messages.ImplementationFileListRequest} ImplementationFileListRequest instance - */ - ImplementationFileListRequest.create = function create(properties) { - return new ImplementationFileListRequest(properties); - }; - - /** - * Encodes the specified ImplementationFileListRequest message. Does not implicitly {@link gauge.messages.ImplementationFileListRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ImplementationFileListRequest - * @static - * @param {gauge.messages.IImplementationFileListRequest} message ImplementationFileListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImplementationFileListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified ImplementationFileListRequest message, length delimited. Does not implicitly {@link gauge.messages.ImplementationFileListRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ImplementationFileListRequest - * @static - * @param {gauge.messages.IImplementationFileListRequest} message ImplementationFileListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImplementationFileListRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ImplementationFileListRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ImplementationFileListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ImplementationFileListRequest} ImplementationFileListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImplementationFileListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ImplementationFileListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ImplementationFileListRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ImplementationFileListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ImplementationFileListRequest} ImplementationFileListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImplementationFileListRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ImplementationFileListRequest message. - * @function verify - * @memberof gauge.messages.ImplementationFileListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ImplementationFileListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates an ImplementationFileListRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ImplementationFileListRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ImplementationFileListRequest} ImplementationFileListRequest - */ - ImplementationFileListRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ImplementationFileListRequest) - return object; - return new $root.gauge.messages.ImplementationFileListRequest(); - }; - - /** - * Creates a plain object from an ImplementationFileListRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ImplementationFileListRequest - * @static - * @param {gauge.messages.ImplementationFileListRequest} message ImplementationFileListRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ImplementationFileListRequest.toObject = function toObject() { - return {}; - }; - - /** - * Converts this ImplementationFileListRequest to JSON. - * @function toJSON - * @memberof gauge.messages.ImplementationFileListRequest - * @instance - * @returns {Object.} JSON object - */ - ImplementationFileListRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ImplementationFileListRequest; - })(); - - messages.ImplementationFileListResponse = (function() { - - /** - * Properties of an ImplementationFileListResponse. - * @memberof gauge.messages - * @interface IImplementationFileListResponse - * @property {Array.|null} [implementationFilePaths] List of implementation files - */ - - /** - * Constructs a new ImplementationFileListResponse. - * @memberof gauge.messages - * @classdesc Response for getting Implementation file list - * @implements IImplementationFileListResponse - * @constructor - * @param {gauge.messages.IImplementationFileListResponse=} [properties] Properties to set - */ - function ImplementationFileListResponse(properties) { - this.implementationFilePaths = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * List of implementation files - * @member {Array.} implementationFilePaths - * @memberof gauge.messages.ImplementationFileListResponse - * @instance - */ - ImplementationFileListResponse.prototype.implementationFilePaths = $util.emptyArray; - - /** - * Creates a new ImplementationFileListResponse instance using the specified properties. - * @function create - * @memberof gauge.messages.ImplementationFileListResponse - * @static - * @param {gauge.messages.IImplementationFileListResponse=} [properties] Properties to set - * @returns {gauge.messages.ImplementationFileListResponse} ImplementationFileListResponse instance - */ - ImplementationFileListResponse.create = function create(properties) { - return new ImplementationFileListResponse(properties); - }; - - /** - * Encodes the specified ImplementationFileListResponse message. Does not implicitly {@link gauge.messages.ImplementationFileListResponse.verify|verify} messages. - * @function encode - * @memberof gauge.messages.ImplementationFileListResponse - * @static - * @param {gauge.messages.IImplementationFileListResponse} message ImplementationFileListResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImplementationFileListResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.implementationFilePaths != null && message.implementationFilePaths.length) - for (var i = 0; i < message.implementationFilePaths.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.implementationFilePaths[i]); - return writer; - }; - - /** - * Encodes the specified ImplementationFileListResponse message, length delimited. Does not implicitly {@link gauge.messages.ImplementationFileListResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.ImplementationFileListResponse - * @static - * @param {gauge.messages.IImplementationFileListResponse} message ImplementationFileListResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImplementationFileListResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ImplementationFileListResponse message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.ImplementationFileListResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.ImplementationFileListResponse} ImplementationFileListResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImplementationFileListResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.ImplementationFileListResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.implementationFilePaths && message.implementationFilePaths.length)) - message.implementationFilePaths = []; - message.implementationFilePaths.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ImplementationFileListResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.ImplementationFileListResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.ImplementationFileListResponse} ImplementationFileListResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImplementationFileListResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ImplementationFileListResponse message. - * @function verify - * @memberof gauge.messages.ImplementationFileListResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ImplementationFileListResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.implementationFilePaths != null && message.hasOwnProperty("implementationFilePaths")) { - if (!Array.isArray(message.implementationFilePaths)) - return "implementationFilePaths: array expected"; - for (var i = 0; i < message.implementationFilePaths.length; ++i) - if (!$util.isString(message.implementationFilePaths[i])) - return "implementationFilePaths: string[] expected"; - } - return null; - }; - - /** - * Creates an ImplementationFileListResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.ImplementationFileListResponse - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.ImplementationFileListResponse} ImplementationFileListResponse - */ - ImplementationFileListResponse.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.ImplementationFileListResponse) - return object; - var message = new $root.gauge.messages.ImplementationFileListResponse(); - if (object.implementationFilePaths) { - if (!Array.isArray(object.implementationFilePaths)) - throw TypeError(".gauge.messages.ImplementationFileListResponse.implementationFilePaths: array expected"); - message.implementationFilePaths = []; - for (var i = 0; i < object.implementationFilePaths.length; ++i) - message.implementationFilePaths[i] = String(object.implementationFilePaths[i]); - } - return message; - }; - - /** - * Creates a plain object from an ImplementationFileListResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.ImplementationFileListResponse - * @static - * @param {gauge.messages.ImplementationFileListResponse} message ImplementationFileListResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ImplementationFileListResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.implementationFilePaths = []; - if (message.implementationFilePaths && message.implementationFilePaths.length) { - object.implementationFilePaths = []; - for (var j = 0; j < message.implementationFilePaths.length; ++j) - object.implementationFilePaths[j] = message.implementationFilePaths[j]; - } - return object; - }; - - /** - * Converts this ImplementationFileListResponse to JSON. - * @function toJSON - * @memberof gauge.messages.ImplementationFileListResponse - * @instance - * @returns {Object.} JSON object - */ - ImplementationFileListResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ImplementationFileListResponse; - })(); - - messages.StubImplementationCodeRequest = (function() { - - /** - * Properties of a StubImplementationCodeRequest. - * @memberof gauge.messages - * @interface IStubImplementationCodeRequest - * @property {string|null} [implementationFilePath] Path of the file where the new stub implementation will be added - * @property {Array.|null} [codes] List of implementation codes to be appended to implementation file. - */ - - /** - * Constructs a new StubImplementationCodeRequest. - * @memberof gauge.messages - * @classdesc Request for injecting code snippet into implementation file - * @implements IStubImplementationCodeRequest - * @constructor - * @param {gauge.messages.IStubImplementationCodeRequest=} [properties] Properties to set - */ - function StubImplementationCodeRequest(properties) { - this.codes = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Path of the file where the new stub implementation will be added - * @member {string} implementationFilePath - * @memberof gauge.messages.StubImplementationCodeRequest - * @instance - */ - StubImplementationCodeRequest.prototype.implementationFilePath = ""; - - /** - * List of implementation codes to be appended to implementation file. - * @member {Array.} codes - * @memberof gauge.messages.StubImplementationCodeRequest - * @instance - */ - StubImplementationCodeRequest.prototype.codes = $util.emptyArray; - - /** - * Creates a new StubImplementationCodeRequest instance using the specified properties. - * @function create - * @memberof gauge.messages.StubImplementationCodeRequest - * @static - * @param {gauge.messages.IStubImplementationCodeRequest=} [properties] Properties to set - * @returns {gauge.messages.StubImplementationCodeRequest} StubImplementationCodeRequest instance - */ - StubImplementationCodeRequest.create = function create(properties) { - return new StubImplementationCodeRequest(properties); - }; - - /** - * Encodes the specified StubImplementationCodeRequest message. Does not implicitly {@link gauge.messages.StubImplementationCodeRequest.verify|verify} messages. - * @function encode - * @memberof gauge.messages.StubImplementationCodeRequest - * @static - * @param {gauge.messages.IStubImplementationCodeRequest} message StubImplementationCodeRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StubImplementationCodeRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.implementationFilePath != null && message.hasOwnProperty("implementationFilePath")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.implementationFilePath); - if (message.codes != null && message.codes.length) - for (var i = 0; i < message.codes.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.codes[i]); - return writer; - }; - - /** - * Encodes the specified StubImplementationCodeRequest message, length delimited. Does not implicitly {@link gauge.messages.StubImplementationCodeRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.StubImplementationCodeRequest - * @static - * @param {gauge.messages.IStubImplementationCodeRequest} message StubImplementationCodeRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StubImplementationCodeRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StubImplementationCodeRequest message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.StubImplementationCodeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.StubImplementationCodeRequest} StubImplementationCodeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StubImplementationCodeRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.StubImplementationCodeRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.implementationFilePath = reader.string(); - break; - case 2: - if (!(message.codes && message.codes.length)) - message.codes = []; - message.codes.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StubImplementationCodeRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.StubImplementationCodeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.StubImplementationCodeRequest} StubImplementationCodeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StubImplementationCodeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StubImplementationCodeRequest message. - * @function verify - * @memberof gauge.messages.StubImplementationCodeRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StubImplementationCodeRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.implementationFilePath != null && message.hasOwnProperty("implementationFilePath")) - if (!$util.isString(message.implementationFilePath)) - return "implementationFilePath: string expected"; - if (message.codes != null && message.hasOwnProperty("codes")) { - if (!Array.isArray(message.codes)) - return "codes: array expected"; - for (var i = 0; i < message.codes.length; ++i) - if (!$util.isString(message.codes[i])) - return "codes: string[] expected"; - } - return null; - }; - - /** - * Creates a StubImplementationCodeRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.StubImplementationCodeRequest - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.StubImplementationCodeRequest} StubImplementationCodeRequest - */ - StubImplementationCodeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.StubImplementationCodeRequest) - return object; - var message = new $root.gauge.messages.StubImplementationCodeRequest(); - if (object.implementationFilePath != null) - message.implementationFilePath = String(object.implementationFilePath); - if (object.codes) { - if (!Array.isArray(object.codes)) - throw TypeError(".gauge.messages.StubImplementationCodeRequest.codes: array expected"); - message.codes = []; - for (var i = 0; i < object.codes.length; ++i) - message.codes[i] = String(object.codes[i]); - } - return message; - }; - - /** - * Creates a plain object from a StubImplementationCodeRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.StubImplementationCodeRequest - * @static - * @param {gauge.messages.StubImplementationCodeRequest} message StubImplementationCodeRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StubImplementationCodeRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.codes = []; - if (options.defaults) - object.implementationFilePath = ""; - if (message.implementationFilePath != null && message.hasOwnProperty("implementationFilePath")) - object.implementationFilePath = message.implementationFilePath; - if (message.codes && message.codes.length) { - object.codes = []; - for (var j = 0; j < message.codes.length; ++j) - object.codes[j] = message.codes[j]; - } - return object; - }; - - /** - * Converts this StubImplementationCodeRequest to JSON. - * @function toJSON - * @memberof gauge.messages.StubImplementationCodeRequest - * @instance - * @returns {Object.} JSON object - */ - StubImplementationCodeRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StubImplementationCodeRequest; - })(); - - messages.TextDiff = (function() { - - /** - * Properties of a TextDiff. - * @memberof gauge.messages - * @interface ITextDiff - * @property {gauge.messages.ISpan|null} [span] Range of file to be replaced - * @property {string|null} [content] New content to replace the content in the span - */ - - /** - * Constructs a new TextDiff. - * @memberof gauge.messages - * @classdesc A Single Replace Diff Element to be applied - * @implements ITextDiff - * @constructor - * @param {gauge.messages.ITextDiff=} [properties] Properties to set - */ - function TextDiff(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Range of file to be replaced - * @member {gauge.messages.ISpan|null|undefined} span - * @memberof gauge.messages.TextDiff - * @instance - */ - TextDiff.prototype.span = null; - - /** - * New content to replace the content in the span - * @member {string} content - * @memberof gauge.messages.TextDiff - * @instance - */ - TextDiff.prototype.content = ""; - - /** - * Creates a new TextDiff instance using the specified properties. - * @function create - * @memberof gauge.messages.TextDiff - * @static - * @param {gauge.messages.ITextDiff=} [properties] Properties to set - * @returns {gauge.messages.TextDiff} TextDiff instance - */ - TextDiff.create = function create(properties) { - return new TextDiff(properties); - }; - - /** - * Encodes the specified TextDiff message. Does not implicitly {@link gauge.messages.TextDiff.verify|verify} messages. - * @function encode - * @memberof gauge.messages.TextDiff - * @static - * @param {gauge.messages.ITextDiff} message TextDiff message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TextDiff.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.span != null && message.hasOwnProperty("span")) - $root.gauge.messages.Span.encode(message.span, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.content != null && message.hasOwnProperty("content")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.content); - return writer; - }; - - /** - * Encodes the specified TextDiff message, length delimited. Does not implicitly {@link gauge.messages.TextDiff.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.TextDiff - * @static - * @param {gauge.messages.ITextDiff} message TextDiff message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TextDiff.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TextDiff message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.TextDiff - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.TextDiff} TextDiff - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TextDiff.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.TextDiff(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.span = $root.gauge.messages.Span.decode(reader, reader.uint32()); - break; - case 2: - message.content = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a TextDiff message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.TextDiff - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.TextDiff} TextDiff - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TextDiff.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TextDiff message. - * @function verify - * @memberof gauge.messages.TextDiff - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TextDiff.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.span != null && message.hasOwnProperty("span")) { - var error = $root.gauge.messages.Span.verify(message.span); - if (error) - return "span." + error; - } - if (message.content != null && message.hasOwnProperty("content")) - if (!$util.isString(message.content)) - return "content: string expected"; - return null; - }; - - /** - * Creates a TextDiff message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.TextDiff - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.TextDiff} TextDiff - */ - TextDiff.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.TextDiff) - return object; - var message = new $root.gauge.messages.TextDiff(); - if (object.span != null) { - if (typeof object.span !== "object") - throw TypeError(".gauge.messages.TextDiff.span: object expected"); - message.span = $root.gauge.messages.Span.fromObject(object.span); - } - if (object.content != null) - message.content = String(object.content); - return message; - }; - - /** - * Creates a plain object from a TextDiff message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.TextDiff - * @static - * @param {gauge.messages.TextDiff} message TextDiff - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TextDiff.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.span = null; - object.content = ""; - } - if (message.span != null && message.hasOwnProperty("span")) - object.span = $root.gauge.messages.Span.toObject(message.span, options); - if (message.content != null && message.hasOwnProperty("content")) - object.content = message.content; - return object; - }; - - /** - * Converts this TextDiff to JSON. - * @function toJSON - * @memberof gauge.messages.TextDiff - * @instance - * @returns {Object.} JSON object - */ - TextDiff.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return TextDiff; - })(); - - messages.FileDiff = (function() { - - /** - * Properties of a FileDiff. - * @memberof gauge.messages - * @interface IFileDiff - * @property {string|null} [filePath] File Path where the new content needs to be put in - * @property {Array.|null} [textDiffs] The diffs which need to be applied to this file - */ - - /** - * Constructs a new FileDiff. - * @memberof gauge.messages - * @classdesc Diffs to be applied to a file - * @implements IFileDiff - * @constructor - * @param {gauge.messages.IFileDiff=} [properties] Properties to set - */ - function FileDiff(properties) { - this.textDiffs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * File Path where the new content needs to be put in - * @member {string} filePath - * @memberof gauge.messages.FileDiff - * @instance - */ - FileDiff.prototype.filePath = ""; - - /** - * The diffs which need to be applied to this file - * @member {Array.} textDiffs - * @memberof gauge.messages.FileDiff - * @instance - */ - FileDiff.prototype.textDiffs = $util.emptyArray; - - /** - * Creates a new FileDiff instance using the specified properties. - * @function create - * @memberof gauge.messages.FileDiff - * @static - * @param {gauge.messages.IFileDiff=} [properties] Properties to set - * @returns {gauge.messages.FileDiff} FileDiff instance - */ - FileDiff.create = function create(properties) { - return new FileDiff(properties); - }; - - /** - * Encodes the specified FileDiff message. Does not implicitly {@link gauge.messages.FileDiff.verify|verify} messages. - * @function encode - * @memberof gauge.messages.FileDiff - * @static - * @param {gauge.messages.IFileDiff} message FileDiff message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDiff.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.filePath != null && message.hasOwnProperty("filePath")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.filePath); - if (message.textDiffs != null && message.textDiffs.length) - for (var i = 0; i < message.textDiffs.length; ++i) - $root.gauge.messages.TextDiff.encode(message.textDiffs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FileDiff message, length delimited. Does not implicitly {@link gauge.messages.FileDiff.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.FileDiff - * @static - * @param {gauge.messages.IFileDiff} message FileDiff message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDiff.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FileDiff message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.FileDiff - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.FileDiff} FileDiff - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDiff.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.FileDiff(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.filePath = reader.string(); - break; - case 2: - if (!(message.textDiffs && message.textDiffs.length)) - message.textDiffs = []; - message.textDiffs.push($root.gauge.messages.TextDiff.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FileDiff message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.FileDiff - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.FileDiff} FileDiff - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDiff.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FileDiff message. - * @function verify - * @memberof gauge.messages.FileDiff - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDiff.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.filePath != null && message.hasOwnProperty("filePath")) - if (!$util.isString(message.filePath)) - return "filePath: string expected"; - if (message.textDiffs != null && message.hasOwnProperty("textDiffs")) { - if (!Array.isArray(message.textDiffs)) - return "textDiffs: array expected"; - for (var i = 0; i < message.textDiffs.length; ++i) { - var error = $root.gauge.messages.TextDiff.verify(message.textDiffs[i]); - if (error) - return "textDiffs." + error; - } - } - return null; - }; - - /** - * Creates a FileDiff message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.FileDiff - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.FileDiff} FileDiff - */ - FileDiff.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.FileDiff) - return object; - var message = new $root.gauge.messages.FileDiff(); - if (object.filePath != null) - message.filePath = String(object.filePath); - if (object.textDiffs) { - if (!Array.isArray(object.textDiffs)) - throw TypeError(".gauge.messages.FileDiff.textDiffs: array expected"); - message.textDiffs = []; - for (var i = 0; i < object.textDiffs.length; ++i) { - if (typeof object.textDiffs[i] !== "object") - throw TypeError(".gauge.messages.FileDiff.textDiffs: object expected"); - message.textDiffs[i] = $root.gauge.messages.TextDiff.fromObject(object.textDiffs[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a FileDiff message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.FileDiff - * @static - * @param {gauge.messages.FileDiff} message FileDiff - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileDiff.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.textDiffs = []; - if (options.defaults) - object.filePath = ""; - if (message.filePath != null && message.hasOwnProperty("filePath")) - object.filePath = message.filePath; - if (message.textDiffs && message.textDiffs.length) { - object.textDiffs = []; - for (var j = 0; j < message.textDiffs.length; ++j) - object.textDiffs[j] = $root.gauge.messages.TextDiff.toObject(message.textDiffs[j], options); - } - return object; - }; - - /** - * Converts this FileDiff to JSON. - * @function toJSON - * @memberof gauge.messages.FileDiff - * @instance - * @returns {Object.} JSON object - */ - FileDiff.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return FileDiff; - })(); - - messages.KeepAlive = (function() { - - /** - * Properties of a KeepAlive. - * @memberof gauge.messages - * @interface IKeepAlive - * @property {string|null} [pluginId] ID of the plugin initiating this request - */ - - /** - * Constructs a new KeepAlive. - * @memberof gauge.messages - * @classdesc Tell gauge to reset the kill timer, thus extending the life - * @implements IKeepAlive - * @constructor - * @param {gauge.messages.IKeepAlive=} [properties] Properties to set - */ - function KeepAlive(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ID of the plugin initiating this request - * @member {string} pluginId - * @memberof gauge.messages.KeepAlive - * @instance - */ - KeepAlive.prototype.pluginId = ""; - - /** - * Creates a new KeepAlive instance using the specified properties. - * @function create - * @memberof gauge.messages.KeepAlive - * @static - * @param {gauge.messages.IKeepAlive=} [properties] Properties to set - * @returns {gauge.messages.KeepAlive} KeepAlive instance - */ - KeepAlive.create = function create(properties) { - return new KeepAlive(properties); - }; - - /** - * Encodes the specified KeepAlive message. Does not implicitly {@link gauge.messages.KeepAlive.verify|verify} messages. - * @function encode - * @memberof gauge.messages.KeepAlive - * @static - * @param {gauge.messages.IKeepAlive} message KeepAlive message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KeepAlive.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.pluginId != null && message.hasOwnProperty("pluginId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.pluginId); - return writer; - }; - - /** - * Encodes the specified KeepAlive message, length delimited. Does not implicitly {@link gauge.messages.KeepAlive.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.KeepAlive - * @static - * @param {gauge.messages.IKeepAlive} message KeepAlive message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KeepAlive.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a KeepAlive message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.KeepAlive - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.KeepAlive} KeepAlive - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KeepAlive.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.KeepAlive(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pluginId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a KeepAlive message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.KeepAlive - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.KeepAlive} KeepAlive - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KeepAlive.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KeepAlive message. - * @function verify - * @memberof gauge.messages.KeepAlive - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KeepAlive.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.pluginId != null && message.hasOwnProperty("pluginId")) - if (!$util.isString(message.pluginId)) - return "pluginId: string expected"; - return null; - }; - - /** - * Creates a KeepAlive message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.KeepAlive - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.KeepAlive} KeepAlive - */ - KeepAlive.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.KeepAlive) - return object; - var message = new $root.gauge.messages.KeepAlive(); - if (object.pluginId != null) - message.pluginId = String(object.pluginId); - return message; - }; - - /** - * Creates a plain object from a KeepAlive message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.KeepAlive - * @static - * @param {gauge.messages.KeepAlive} message KeepAlive - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KeepAlive.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.pluginId = ""; - if (message.pluginId != null && message.hasOwnProperty("pluginId")) - object.pluginId = message.pluginId; - return object; - }; - - /** - * Converts this KeepAlive to JSON. - * @function toJSON - * @memberof gauge.messages.KeepAlive - * @instance - * @returns {Object.} JSON object - */ - KeepAlive.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return KeepAlive; - })(); - - messages.SpecDetails = (function() { - - /** - * Properties of a SpecDetails. - * @memberof gauge.messages - * @interface ISpecDetails - * @property {Array.|null} [details] Holds a collection of Spec details. - */ - - /** - * Constructs a new SpecDetails. - * @memberof gauge.messages - * @classdesc Represents a SpecDetails. - * @implements ISpecDetails - * @constructor - * @param {gauge.messages.ISpecDetails=} [properties] Properties to set - */ - function SpecDetails(properties) { - this.details = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds a collection of Spec details. - * @member {Array.} details - * @memberof gauge.messages.SpecDetails - * @instance - */ - SpecDetails.prototype.details = $util.emptyArray; - - /** - * Creates a new SpecDetails instance using the specified properties. - * @function create - * @memberof gauge.messages.SpecDetails - * @static - * @param {gauge.messages.ISpecDetails=} [properties] Properties to set - * @returns {gauge.messages.SpecDetails} SpecDetails instance - */ - SpecDetails.create = function create(properties) { - return new SpecDetails(properties); - }; - - /** - * Encodes the specified SpecDetails message. Does not implicitly {@link gauge.messages.SpecDetails.verify|verify} messages. - * @function encode - * @memberof gauge.messages.SpecDetails - * @static - * @param {gauge.messages.ISpecDetails} message SpecDetails message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecDetails.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.details != null && message.details.length) - for (var i = 0; i < message.details.length; ++i) - $root.gauge.messages.SpecDetails.SpecDetail.encode(message.details[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified SpecDetails message, length delimited. Does not implicitly {@link gauge.messages.SpecDetails.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.SpecDetails - * @static - * @param {gauge.messages.ISpecDetails} message SpecDetails message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecDetails.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SpecDetails message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.SpecDetails - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.SpecDetails} SpecDetails - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecDetails.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.SpecDetails(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.details && message.details.length)) - message.details = []; - message.details.push($root.gauge.messages.SpecDetails.SpecDetail.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SpecDetails message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.SpecDetails - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.SpecDetails} SpecDetails - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecDetails.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SpecDetails message. - * @function verify - * @memberof gauge.messages.SpecDetails - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SpecDetails.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.details != null && message.hasOwnProperty("details")) { - if (!Array.isArray(message.details)) - return "details: array expected"; - for (var i = 0; i < message.details.length; ++i) { - var error = $root.gauge.messages.SpecDetails.SpecDetail.verify(message.details[i]); - if (error) - return "details." + error; - } - } - return null; - }; - - /** - * Creates a SpecDetails message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.SpecDetails - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.SpecDetails} SpecDetails - */ - SpecDetails.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.SpecDetails) - return object; - var message = new $root.gauge.messages.SpecDetails(); - if (object.details) { - if (!Array.isArray(object.details)) - throw TypeError(".gauge.messages.SpecDetails.details: array expected"); - message.details = []; - for (var i = 0; i < object.details.length; ++i) { - if (typeof object.details[i] !== "object") - throw TypeError(".gauge.messages.SpecDetails.details: object expected"); - message.details[i] = $root.gauge.messages.SpecDetails.SpecDetail.fromObject(object.details[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a SpecDetails message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.SpecDetails - * @static - * @param {gauge.messages.SpecDetails} message SpecDetails - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SpecDetails.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.details = []; - if (message.details && message.details.length) { - object.details = []; - for (var j = 0; j < message.details.length; ++j) - object.details[j] = $root.gauge.messages.SpecDetails.SpecDetail.toObject(message.details[j], options); - } - return object; - }; - - /** - * Converts this SpecDetails to JSON. - * @function toJSON - * @memberof gauge.messages.SpecDetails - * @instance - * @returns {Object.} JSON object - */ - SpecDetails.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - SpecDetails.SpecDetail = (function() { - - /** - * Properties of a SpecDetail. - * @memberof gauge.messages.SpecDetails - * @interface ISpecDetail - * @property {gauge.messages.IProtoSpec|null} [spec] Holds a collection of Specs that are defined in the project. - * @property {Array.|null} [parseErrors] Holds a collection of parse errors present in the above spec. - */ - - /** - * Constructs a new SpecDetail. - * @memberof gauge.messages.SpecDetails - * @classdesc Represents a SpecDetail. - * @implements ISpecDetail - * @constructor - * @param {gauge.messages.SpecDetails.ISpecDetail=} [properties] Properties to set - */ - function SpecDetail(properties) { - this.parseErrors = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Holds a collection of Specs that are defined in the project. - * @member {gauge.messages.IProtoSpec|null|undefined} spec - * @memberof gauge.messages.SpecDetails.SpecDetail - * @instance - */ - SpecDetail.prototype.spec = null; - - /** - * Holds a collection of parse errors present in the above spec. - * @member {Array.} parseErrors - * @memberof gauge.messages.SpecDetails.SpecDetail - * @instance - */ - SpecDetail.prototype.parseErrors = $util.emptyArray; - - /** - * Creates a new SpecDetail instance using the specified properties. - * @function create - * @memberof gauge.messages.SpecDetails.SpecDetail - * @static - * @param {gauge.messages.SpecDetails.ISpecDetail=} [properties] Properties to set - * @returns {gauge.messages.SpecDetails.SpecDetail} SpecDetail instance - */ - SpecDetail.create = function create(properties) { - return new SpecDetail(properties); - }; - - /** - * Encodes the specified SpecDetail message. Does not implicitly {@link gauge.messages.SpecDetails.SpecDetail.verify|verify} messages. - * @function encode - * @memberof gauge.messages.SpecDetails.SpecDetail - * @static - * @param {gauge.messages.SpecDetails.ISpecDetail} message SpecDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecDetail.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.gauge.messages.ProtoSpec.encode(message.spec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parseErrors != null && message.parseErrors.length) - for (var i = 0; i < message.parseErrors.length; ++i) - $root.gauge.messages.Error.encode(message.parseErrors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified SpecDetail message, length delimited. Does not implicitly {@link gauge.messages.SpecDetails.SpecDetail.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.SpecDetails.SpecDetail - * @static - * @param {gauge.messages.SpecDetails.ISpecDetail} message SpecDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpecDetail.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SpecDetail message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.SpecDetails.SpecDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.SpecDetails.SpecDetail} SpecDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecDetail.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.SpecDetails.SpecDetail(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.spec = $root.gauge.messages.ProtoSpec.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.parseErrors && message.parseErrors.length)) - message.parseErrors = []; - message.parseErrors.push($root.gauge.messages.Error.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SpecDetail message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.SpecDetails.SpecDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.SpecDetails.SpecDetail} SpecDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SpecDetail.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SpecDetail message. - * @function verify - * @memberof gauge.messages.SpecDetails.SpecDetail - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SpecDetail.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.gauge.messages.ProtoSpec.verify(message.spec); - if (error) - return "spec." + error; - } - if (message.parseErrors != null && message.hasOwnProperty("parseErrors")) { - if (!Array.isArray(message.parseErrors)) - return "parseErrors: array expected"; - for (var i = 0; i < message.parseErrors.length; ++i) { - var error = $root.gauge.messages.Error.verify(message.parseErrors[i]); - if (error) - return "parseErrors." + error; - } - } - return null; - }; - - /** - * Creates a SpecDetail message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.SpecDetails.SpecDetail - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.SpecDetails.SpecDetail} SpecDetail - */ - SpecDetail.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.SpecDetails.SpecDetail) - return object; - var message = new $root.gauge.messages.SpecDetails.SpecDetail(); - if (object.spec != null) { - if (typeof object.spec !== "object") - throw TypeError(".gauge.messages.SpecDetails.SpecDetail.spec: object expected"); - message.spec = $root.gauge.messages.ProtoSpec.fromObject(object.spec); - } - if (object.parseErrors) { - if (!Array.isArray(object.parseErrors)) - throw TypeError(".gauge.messages.SpecDetails.SpecDetail.parseErrors: array expected"); - message.parseErrors = []; - for (var i = 0; i < object.parseErrors.length; ++i) { - if (typeof object.parseErrors[i] !== "object") - throw TypeError(".gauge.messages.SpecDetails.SpecDetail.parseErrors: object expected"); - message.parseErrors[i] = $root.gauge.messages.Error.fromObject(object.parseErrors[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a SpecDetail message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.SpecDetails.SpecDetail - * @static - * @param {gauge.messages.SpecDetails.SpecDetail} message SpecDetail - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SpecDetail.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.parseErrors = []; - if (options.defaults) - object.spec = null; - if (message.spec != null && message.hasOwnProperty("spec")) - object.spec = $root.gauge.messages.ProtoSpec.toObject(message.spec, options); - if (message.parseErrors && message.parseErrors.length) { - object.parseErrors = []; - for (var j = 0; j < message.parseErrors.length; ++j) - object.parseErrors[j] = $root.gauge.messages.Error.toObject(message.parseErrors[j], options); - } - return object; - }; - - /** - * Converts this SpecDetail to JSON. - * @function toJSON - * @memberof gauge.messages.SpecDetails.SpecDetail - * @instance - * @returns {Object.} JSON object - */ - SpecDetail.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SpecDetail; - })(); - - return SpecDetails; - })(); - - messages.Empty = (function() { - - /** - * Properties of an Empty. - * @memberof gauge.messages - * @interface IEmpty - */ - - /** - * Constructs a new Empty. - * @memberof gauge.messages - * @classdesc Represents an Empty. - * @implements IEmpty - * @constructor - * @param {gauge.messages.IEmpty=} [properties] Properties to set - */ - function Empty(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new Empty instance using the specified properties. - * @function create - * @memberof gauge.messages.Empty - * @static - * @param {gauge.messages.IEmpty=} [properties] Properties to set - * @returns {gauge.messages.Empty} Empty instance - */ - Empty.create = function create(properties) { - return new Empty(properties); - }; - - /** - * Encodes the specified Empty message. Does not implicitly {@link gauge.messages.Empty.verify|verify} messages. - * @function encode - * @memberof gauge.messages.Empty - * @static - * @param {gauge.messages.IEmpty} message Empty message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Empty.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified Empty message, length delimited. Does not implicitly {@link gauge.messages.Empty.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.Empty - * @static - * @param {gauge.messages.IEmpty} message Empty message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Empty.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Empty message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.Empty - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.Empty} Empty - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Empty.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.Empty(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Empty message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.Empty - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.Empty} Empty - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Empty.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Empty message. - * @function verify - * @memberof gauge.messages.Empty - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Empty.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates an Empty message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.Empty - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.Empty} Empty - */ - Empty.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.Empty) - return object; - return new $root.gauge.messages.Empty(); - }; - - /** - * Creates a plain object from an Empty message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.Empty - * @static - * @param {gauge.messages.Empty} message Empty - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Empty.toObject = function toObject() { - return {}; - }; - - /** - * Converts this Empty to JSON. - * @function toJSON - * @memberof gauge.messages.Empty - * @instance - * @returns {Object.} JSON object - */ - Empty.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Empty; - })(); - - messages.Message = (function() { - - /** - * Properties of a Message. - * @memberof gauge.messages - * @interface IMessage - * @property {gauge.messages.Message.MessageType|null} [messageType] Message messageType - * @property {number|Long|null} [messageId] This is used to synchronize messages & responses - * @property {gauge.messages.IExecutionStartingRequest|null} [executionStartingRequest] [ExecutionStartingRequest](#gauge.messages.ExecutionStartingRequest) - * @property {gauge.messages.ISpecExecutionStartingRequest|null} [specExecutionStartingRequest] [SpecExecutionStartingRequest](#gauge.messages.SpecExecutionStartingRequest) - * @property {gauge.messages.ISpecExecutionEndingRequest|null} [specExecutionEndingRequest] [SpecExecutionEndingRequest](#gauge.messages.SpecExecutionEndingRequest) - * @property {gauge.messages.IScenarioExecutionStartingRequest|null} [scenarioExecutionStartingRequest] [ScenarioExecutionStartingRequest](#gauge.messages.ScenarioExecutionStartingRequest) - * @property {gauge.messages.IScenarioExecutionEndingRequest|null} [scenarioExecutionEndingRequest] [ScenarioExecutionEndingRequest](#gauge.messages.ScenarioExecutionEndingRequest) - * @property {gauge.messages.IStepExecutionStartingRequest|null} [stepExecutionStartingRequest] [StepExecutionStartingRequest](#gauge.messages.StepExecutionStartingRequest) - * @property {gauge.messages.IStepExecutionEndingRequest|null} [stepExecutionEndingRequest] [StepExecutionEndingRequest](#gauge.messages.StepExecutionEndingRequest) - * @property {gauge.messages.IExecuteStepRequest|null} [executeStepRequest] [ExecuteStepRequest](#gauge.messages.ExecuteStepRequest) - * @property {gauge.messages.IExecutionEndingRequest|null} [executionEndingRequest] [ExecutionEndingRequest](#gauge.messages.ExecutionEndingRequest) - * @property {gauge.messages.IStepValidateRequest|null} [stepValidateRequest] [StepValidateRequest](#gauge.messages.StepValidateRequest) - * @property {gauge.messages.IStepValidateResponse|null} [stepValidateResponse] [StepValidateResponse](#gauge.messages.StepValidateResponse) - * @property {gauge.messages.IExecutionStatusResponse|null} [executionStatusResponse] [ExecutionStatusResponse](#gauge.messages.ExecutionStatusResponse) - * @property {gauge.messages.IStepNamesRequest|null} [stepNamesRequest] [StepNamesRequest](#gauge.messages.StepNamesRequest) - * @property {gauge.messages.IStepNamesResponse|null} [stepNamesResponse] [StepNamesResponse](#gauge.messages.StepNamesResponse) - * @property {gauge.messages.ISuiteExecutionResult|null} [suiteExecutionResult] [SuiteExecutionResult ](#gauge.messages.SuiteExecutionResult ) - * @property {gauge.messages.IKillProcessRequest|null} [killProcessRequest] [KillProcessRequest](#gauge.messages.KillProcessRequest) - * @property {gauge.messages.IScenarioDataStoreInitRequest|null} [scenarioDataStoreInitRequest] [ScenarioDataStoreInitRequest](#gauge.messages.ScenarioDataStoreInitRequest) - * @property {gauge.messages.ISpecDataStoreInitRequest|null} [specDataStoreInitRequest] [SpecDataStoreInitRequest](#gauge.messages.SpecDataStoreInitRequest) - * @property {gauge.messages.ISuiteDataStoreInitRequest|null} [suiteDataStoreInitRequest] [SuiteDataStoreInitRequest](#gauge.messages.SuiteDataStoreInitRequest) - * @property {gauge.messages.IStepNameRequest|null} [stepNameRequest] [StepNameRequest](#gauge.messages.StepNameRequest) - * @property {gauge.messages.IStepNameResponse|null} [stepNameResponse] [StepNameResponse](#gauge.messages.StepNameResponse) - * @property {gauge.messages.IRefactorRequest|null} [refactorRequest] [RefactorRequest](#gauge.messages.RefactorRequest) - * @property {gauge.messages.IRefactorResponse|null} [refactorResponse] [RefactorResponse](#gauge.messages.RefactorResponse) - * @property {gauge.messages.IUnsupportedMessageResponse|null} [unsupportedMessageResponse] [UnsupportedMessageResponse](#gauge.messages.UnsupportedMessageResponse) - * @property {gauge.messages.ICacheFileRequest|null} [cacheFileRequest] [CacheFileRequest](#gauge.messages.CacheFileRequest) - * @property {gauge.messages.IStepPositionsRequest|null} [stepPositionsRequest] [StepPositionsRequest](#gauge.messages.StepPositionsRequest) - * @property {gauge.messages.IStepPositionsResponse|null} [stepPositionsResponse] [StepPositionsResponse](#gauge.messages.StepPositionsResponse) - * @property {gauge.messages.IImplementationFileListRequest|null} [implementationFileListRequest] [ImplementationFileListRequest](#gauge.messages.ImplementationFileListRequest) - * @property {gauge.messages.IImplementationFileListResponse|null} [implementationFileListResponse] [ImplementationFileListResponse](#gauge.messages.ImplementationFileListResponse) - * @property {gauge.messages.IStubImplementationCodeRequest|null} [stubImplementationCodeRequest] [StubImplementationCodeRequest](#gauge.messages.StubImplementationCodeRequest) - * @property {gauge.messages.IFileDiff|null} [fileDiff] [FileDiff](#gauge.messages.FileDiff) - * @property {gauge.messages.IImplementationFileGlobPatternRequest|null} [implementationFileGlobPatternRequest] [ImplementationFileGlobPatternRequest](#gauge.messages.ImplementationFileGlobPatternRequest) - * @property {gauge.messages.IImplementationFileGlobPatternResponse|null} [implementationFileGlobPatternResponse] [ImplementationFileGlobPatternResponse](#gauge.messages.ImplementationFileGlobPatternResponse) - * @property {gauge.messages.ISuiteExecutionResultItem|null} [suiteExecutionResultItem] [SuiteExecutionResult ](#gauge.messages.SuiteExecutionResult ) - * @property {gauge.messages.IKeepAlive|null} [keepAlive] [KeepAlive ](#gauge.messages.KeepAlive ) - */ - - /** - * Constructs a new Message. - * @memberof gauge.messages - * @classdesc One of the Request/Response fields will have value, depending on the MessageType set. - * @implements IMessage - * @constructor - * @param {gauge.messages.IMessage=} [properties] Properties to set - */ - function Message(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Message messageType. - * @member {gauge.messages.Message.MessageType} messageType - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.messageType = 0; - - /** - * This is used to synchronize messages & responses - * @member {number|Long} messageId - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.messageId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * [ExecutionStartingRequest](#gauge.messages.ExecutionStartingRequest) - * @member {gauge.messages.IExecutionStartingRequest|null|undefined} executionStartingRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.executionStartingRequest = null; - - /** - * [SpecExecutionStartingRequest](#gauge.messages.SpecExecutionStartingRequest) - * @member {gauge.messages.ISpecExecutionStartingRequest|null|undefined} specExecutionStartingRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.specExecutionStartingRequest = null; - - /** - * [SpecExecutionEndingRequest](#gauge.messages.SpecExecutionEndingRequest) - * @member {gauge.messages.ISpecExecutionEndingRequest|null|undefined} specExecutionEndingRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.specExecutionEndingRequest = null; - - /** - * [ScenarioExecutionStartingRequest](#gauge.messages.ScenarioExecutionStartingRequest) - * @member {gauge.messages.IScenarioExecutionStartingRequest|null|undefined} scenarioExecutionStartingRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.scenarioExecutionStartingRequest = null; - - /** - * [ScenarioExecutionEndingRequest](#gauge.messages.ScenarioExecutionEndingRequest) - * @member {gauge.messages.IScenarioExecutionEndingRequest|null|undefined} scenarioExecutionEndingRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.scenarioExecutionEndingRequest = null; - - /** - * [StepExecutionStartingRequest](#gauge.messages.StepExecutionStartingRequest) - * @member {gauge.messages.IStepExecutionStartingRequest|null|undefined} stepExecutionStartingRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.stepExecutionStartingRequest = null; - - /** - * [StepExecutionEndingRequest](#gauge.messages.StepExecutionEndingRequest) - * @member {gauge.messages.IStepExecutionEndingRequest|null|undefined} stepExecutionEndingRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.stepExecutionEndingRequest = null; - - /** - * [ExecuteStepRequest](#gauge.messages.ExecuteStepRequest) - * @member {gauge.messages.IExecuteStepRequest|null|undefined} executeStepRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.executeStepRequest = null; - - /** - * [ExecutionEndingRequest](#gauge.messages.ExecutionEndingRequest) - * @member {gauge.messages.IExecutionEndingRequest|null|undefined} executionEndingRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.executionEndingRequest = null; - - /** - * [StepValidateRequest](#gauge.messages.StepValidateRequest) - * @member {gauge.messages.IStepValidateRequest|null|undefined} stepValidateRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.stepValidateRequest = null; - - /** - * [StepValidateResponse](#gauge.messages.StepValidateResponse) - * @member {gauge.messages.IStepValidateResponse|null|undefined} stepValidateResponse - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.stepValidateResponse = null; - - /** - * [ExecutionStatusResponse](#gauge.messages.ExecutionStatusResponse) - * @member {gauge.messages.IExecutionStatusResponse|null|undefined} executionStatusResponse - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.executionStatusResponse = null; - - /** - * [StepNamesRequest](#gauge.messages.StepNamesRequest) - * @member {gauge.messages.IStepNamesRequest|null|undefined} stepNamesRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.stepNamesRequest = null; - - /** - * [StepNamesResponse](#gauge.messages.StepNamesResponse) - * @member {gauge.messages.IStepNamesResponse|null|undefined} stepNamesResponse - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.stepNamesResponse = null; - - /** - * [SuiteExecutionResult ](#gauge.messages.SuiteExecutionResult ) - * @member {gauge.messages.ISuiteExecutionResult|null|undefined} suiteExecutionResult - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.suiteExecutionResult = null; - - /** - * [KillProcessRequest](#gauge.messages.KillProcessRequest) - * @member {gauge.messages.IKillProcessRequest|null|undefined} killProcessRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.killProcessRequest = null; - - /** - * [ScenarioDataStoreInitRequest](#gauge.messages.ScenarioDataStoreInitRequest) - * @member {gauge.messages.IScenarioDataStoreInitRequest|null|undefined} scenarioDataStoreInitRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.scenarioDataStoreInitRequest = null; - - /** - * [SpecDataStoreInitRequest](#gauge.messages.SpecDataStoreInitRequest) - * @member {gauge.messages.ISpecDataStoreInitRequest|null|undefined} specDataStoreInitRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.specDataStoreInitRequest = null; - - /** - * [SuiteDataStoreInitRequest](#gauge.messages.SuiteDataStoreInitRequest) - * @member {gauge.messages.ISuiteDataStoreInitRequest|null|undefined} suiteDataStoreInitRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.suiteDataStoreInitRequest = null; - - /** - * [StepNameRequest](#gauge.messages.StepNameRequest) - * @member {gauge.messages.IStepNameRequest|null|undefined} stepNameRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.stepNameRequest = null; - - /** - * [StepNameResponse](#gauge.messages.StepNameResponse) - * @member {gauge.messages.IStepNameResponse|null|undefined} stepNameResponse - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.stepNameResponse = null; - - /** - * [RefactorRequest](#gauge.messages.RefactorRequest) - * @member {gauge.messages.IRefactorRequest|null|undefined} refactorRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.refactorRequest = null; - - /** - * [RefactorResponse](#gauge.messages.RefactorResponse) - * @member {gauge.messages.IRefactorResponse|null|undefined} refactorResponse - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.refactorResponse = null; - - /** - * [UnsupportedMessageResponse](#gauge.messages.UnsupportedMessageResponse) - * @member {gauge.messages.IUnsupportedMessageResponse|null|undefined} unsupportedMessageResponse - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.unsupportedMessageResponse = null; - - /** - * [CacheFileRequest](#gauge.messages.CacheFileRequest) - * @member {gauge.messages.ICacheFileRequest|null|undefined} cacheFileRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.cacheFileRequest = null; - - /** - * [StepPositionsRequest](#gauge.messages.StepPositionsRequest) - * @member {gauge.messages.IStepPositionsRequest|null|undefined} stepPositionsRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.stepPositionsRequest = null; - - /** - * [StepPositionsResponse](#gauge.messages.StepPositionsResponse) - * @member {gauge.messages.IStepPositionsResponse|null|undefined} stepPositionsResponse - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.stepPositionsResponse = null; - - /** - * [ImplementationFileListRequest](#gauge.messages.ImplementationFileListRequest) - * @member {gauge.messages.IImplementationFileListRequest|null|undefined} implementationFileListRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.implementationFileListRequest = null; - - /** - * [ImplementationFileListResponse](#gauge.messages.ImplementationFileListResponse) - * @member {gauge.messages.IImplementationFileListResponse|null|undefined} implementationFileListResponse - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.implementationFileListResponse = null; - - /** - * [StubImplementationCodeRequest](#gauge.messages.StubImplementationCodeRequest) - * @member {gauge.messages.IStubImplementationCodeRequest|null|undefined} stubImplementationCodeRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.stubImplementationCodeRequest = null; - - /** - * [FileDiff](#gauge.messages.FileDiff) - * @member {gauge.messages.IFileDiff|null|undefined} fileDiff - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.fileDiff = null; - - /** - * [ImplementationFileGlobPatternRequest](#gauge.messages.ImplementationFileGlobPatternRequest) - * @member {gauge.messages.IImplementationFileGlobPatternRequest|null|undefined} implementationFileGlobPatternRequest - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.implementationFileGlobPatternRequest = null; - - /** - * [ImplementationFileGlobPatternResponse](#gauge.messages.ImplementationFileGlobPatternResponse) - * @member {gauge.messages.IImplementationFileGlobPatternResponse|null|undefined} implementationFileGlobPatternResponse - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.implementationFileGlobPatternResponse = null; - - /** - * [SuiteExecutionResult ](#gauge.messages.SuiteExecutionResult ) - * @member {gauge.messages.ISuiteExecutionResultItem|null|undefined} suiteExecutionResultItem - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.suiteExecutionResultItem = null; - - /** - * [KeepAlive ](#gauge.messages.KeepAlive ) - * @member {gauge.messages.IKeepAlive|null|undefined} keepAlive - * @memberof gauge.messages.Message - * @instance - */ - Message.prototype.keepAlive = null; - - /** - * Creates a new Message instance using the specified properties. - * @function create - * @memberof gauge.messages.Message - * @static - * @param {gauge.messages.IMessage=} [properties] Properties to set - * @returns {gauge.messages.Message} Message instance - */ - Message.create = function create(properties) { - return new Message(properties); - }; - - /** - * Encodes the specified Message message. Does not implicitly {@link gauge.messages.Message.verify|verify} messages. - * @function encode - * @memberof gauge.messages.Message - * @static - * @param {gauge.messages.IMessage} message Message message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Message.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageType != null && message.hasOwnProperty("messageType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); - if (message.messageId != null && message.hasOwnProperty("messageId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.messageId); - if (message.executionStartingRequest != null && message.hasOwnProperty("executionStartingRequest")) - $root.gauge.messages.ExecutionStartingRequest.encode(message.executionStartingRequest, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.specExecutionStartingRequest != null && message.hasOwnProperty("specExecutionStartingRequest")) - $root.gauge.messages.SpecExecutionStartingRequest.encode(message.specExecutionStartingRequest, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.specExecutionEndingRequest != null && message.hasOwnProperty("specExecutionEndingRequest")) - $root.gauge.messages.SpecExecutionEndingRequest.encode(message.specExecutionEndingRequest, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.scenarioExecutionStartingRequest != null && message.hasOwnProperty("scenarioExecutionStartingRequest")) - $root.gauge.messages.ScenarioExecutionStartingRequest.encode(message.scenarioExecutionStartingRequest, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.scenarioExecutionEndingRequest != null && message.hasOwnProperty("scenarioExecutionEndingRequest")) - $root.gauge.messages.ScenarioExecutionEndingRequest.encode(message.scenarioExecutionEndingRequest, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.stepExecutionStartingRequest != null && message.hasOwnProperty("stepExecutionStartingRequest")) - $root.gauge.messages.StepExecutionStartingRequest.encode(message.stepExecutionStartingRequest, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.stepExecutionEndingRequest != null && message.hasOwnProperty("stepExecutionEndingRequest")) - $root.gauge.messages.StepExecutionEndingRequest.encode(message.stepExecutionEndingRequest, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.executeStepRequest != null && message.hasOwnProperty("executeStepRequest")) - $root.gauge.messages.ExecuteStepRequest.encode(message.executeStepRequest, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.executionEndingRequest != null && message.hasOwnProperty("executionEndingRequest")) - $root.gauge.messages.ExecutionEndingRequest.encode(message.executionEndingRequest, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.stepValidateRequest != null && message.hasOwnProperty("stepValidateRequest")) - $root.gauge.messages.StepValidateRequest.encode(message.stepValidateRequest, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.stepValidateResponse != null && message.hasOwnProperty("stepValidateResponse")) - $root.gauge.messages.StepValidateResponse.encode(message.stepValidateResponse, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.executionStatusResponse != null && message.hasOwnProperty("executionStatusResponse")) - $root.gauge.messages.ExecutionStatusResponse.encode(message.executionStatusResponse, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.stepNamesRequest != null && message.hasOwnProperty("stepNamesRequest")) - $root.gauge.messages.StepNamesRequest.encode(message.stepNamesRequest, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.stepNamesResponse != null && message.hasOwnProperty("stepNamesResponse")) - $root.gauge.messages.StepNamesResponse.encode(message.stepNamesResponse, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.suiteExecutionResult != null && message.hasOwnProperty("suiteExecutionResult")) - $root.gauge.messages.SuiteExecutionResult.encode(message.suiteExecutionResult, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.killProcessRequest != null && message.hasOwnProperty("killProcessRequest")) - $root.gauge.messages.KillProcessRequest.encode(message.killProcessRequest, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.scenarioDataStoreInitRequest != null && message.hasOwnProperty("scenarioDataStoreInitRequest")) - $root.gauge.messages.ScenarioDataStoreInitRequest.encode(message.scenarioDataStoreInitRequest, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.specDataStoreInitRequest != null && message.hasOwnProperty("specDataStoreInitRequest")) - $root.gauge.messages.SpecDataStoreInitRequest.encode(message.specDataStoreInitRequest, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.suiteDataStoreInitRequest != null && message.hasOwnProperty("suiteDataStoreInitRequest")) - $root.gauge.messages.SuiteDataStoreInitRequest.encode(message.suiteDataStoreInitRequest, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.stepNameRequest != null && message.hasOwnProperty("stepNameRequest")) - $root.gauge.messages.StepNameRequest.encode(message.stepNameRequest, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); - if (message.stepNameResponse != null && message.hasOwnProperty("stepNameResponse")) - $root.gauge.messages.StepNameResponse.encode(message.stepNameResponse, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.refactorRequest != null && message.hasOwnProperty("refactorRequest")) - $root.gauge.messages.RefactorRequest.encode(message.refactorRequest, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); - if (message.refactorResponse != null && message.hasOwnProperty("refactorResponse")) - $root.gauge.messages.RefactorResponse.encode(message.refactorResponse, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); - if (message.unsupportedMessageResponse != null && message.hasOwnProperty("unsupportedMessageResponse")) - $root.gauge.messages.UnsupportedMessageResponse.encode(message.unsupportedMessageResponse, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); - if (message.cacheFileRequest != null && message.hasOwnProperty("cacheFileRequest")) - $root.gauge.messages.CacheFileRequest.encode(message.cacheFileRequest, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); - if (message.stepPositionsRequest != null && message.hasOwnProperty("stepPositionsRequest")) - $root.gauge.messages.StepPositionsRequest.encode(message.stepPositionsRequest, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); - if (message.stepPositionsResponse != null && message.hasOwnProperty("stepPositionsResponse")) - $root.gauge.messages.StepPositionsResponse.encode(message.stepPositionsResponse, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); - if (message.implementationFileListRequest != null && message.hasOwnProperty("implementationFileListRequest")) - $root.gauge.messages.ImplementationFileListRequest.encode(message.implementationFileListRequest, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); - if (message.implementationFileListResponse != null && message.hasOwnProperty("implementationFileListResponse")) - $root.gauge.messages.ImplementationFileListResponse.encode(message.implementationFileListResponse, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); - if (message.stubImplementationCodeRequest != null && message.hasOwnProperty("stubImplementationCodeRequest")) - $root.gauge.messages.StubImplementationCodeRequest.encode(message.stubImplementationCodeRequest, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); - if (message.fileDiff != null && message.hasOwnProperty("fileDiff")) - $root.gauge.messages.FileDiff.encode(message.fileDiff, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim(); - if (message.implementationFileGlobPatternRequest != null && message.hasOwnProperty("implementationFileGlobPatternRequest")) - $root.gauge.messages.ImplementationFileGlobPatternRequest.encode(message.implementationFileGlobPatternRequest, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); - if (message.implementationFileGlobPatternResponse != null && message.hasOwnProperty("implementationFileGlobPatternResponse")) - $root.gauge.messages.ImplementationFileGlobPatternResponse.encode(message.implementationFileGlobPatternResponse, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); - if (message.suiteExecutionResultItem != null && message.hasOwnProperty("suiteExecutionResultItem")) - $root.gauge.messages.SuiteExecutionResultItem.encode(message.suiteExecutionResultItem, writer.uint32(/* id 36, wireType 2 =*/290).fork()).ldelim(); - if (message.keepAlive != null && message.hasOwnProperty("keepAlive")) - $root.gauge.messages.KeepAlive.encode(message.keepAlive, writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Message message, length delimited. Does not implicitly {@link gauge.messages.Message.verify|verify} messages. - * @function encodeDelimited - * @memberof gauge.messages.Message - * @static - * @param {gauge.messages.IMessage} message Message message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Message.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Message message from the specified reader or buffer. - * @function decode - * @memberof gauge.messages.Message - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {gauge.messages.Message} Message - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Message.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gauge.messages.Message(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messageType = reader.int32(); - break; - case 2: - message.messageId = reader.int64(); - break; - case 3: - message.executionStartingRequest = $root.gauge.messages.ExecutionStartingRequest.decode(reader, reader.uint32()); - break; - case 4: - message.specExecutionStartingRequest = $root.gauge.messages.SpecExecutionStartingRequest.decode(reader, reader.uint32()); - break; - case 5: - message.specExecutionEndingRequest = $root.gauge.messages.SpecExecutionEndingRequest.decode(reader, reader.uint32()); - break; - case 6: - message.scenarioExecutionStartingRequest = $root.gauge.messages.ScenarioExecutionStartingRequest.decode(reader, reader.uint32()); - break; - case 7: - message.scenarioExecutionEndingRequest = $root.gauge.messages.ScenarioExecutionEndingRequest.decode(reader, reader.uint32()); - break; - case 8: - message.stepExecutionStartingRequest = $root.gauge.messages.StepExecutionStartingRequest.decode(reader, reader.uint32()); - break; - case 9: - message.stepExecutionEndingRequest = $root.gauge.messages.StepExecutionEndingRequest.decode(reader, reader.uint32()); - break; - case 10: - message.executeStepRequest = $root.gauge.messages.ExecuteStepRequest.decode(reader, reader.uint32()); - break; - case 11: - message.executionEndingRequest = $root.gauge.messages.ExecutionEndingRequest.decode(reader, reader.uint32()); - break; - case 12: - message.stepValidateRequest = $root.gauge.messages.StepValidateRequest.decode(reader, reader.uint32()); - break; - case 13: - message.stepValidateResponse = $root.gauge.messages.StepValidateResponse.decode(reader, reader.uint32()); - break; - case 14: - message.executionStatusResponse = $root.gauge.messages.ExecutionStatusResponse.decode(reader, reader.uint32()); - break; - case 15: - message.stepNamesRequest = $root.gauge.messages.StepNamesRequest.decode(reader, reader.uint32()); - break; - case 16: - message.stepNamesResponse = $root.gauge.messages.StepNamesResponse.decode(reader, reader.uint32()); - break; - case 17: - message.suiteExecutionResult = $root.gauge.messages.SuiteExecutionResult.decode(reader, reader.uint32()); - break; - case 18: - message.killProcessRequest = $root.gauge.messages.KillProcessRequest.decode(reader, reader.uint32()); - break; - case 19: - message.scenarioDataStoreInitRequest = $root.gauge.messages.ScenarioDataStoreInitRequest.decode(reader, reader.uint32()); - break; - case 20: - message.specDataStoreInitRequest = $root.gauge.messages.SpecDataStoreInitRequest.decode(reader, reader.uint32()); - break; - case 21: - message.suiteDataStoreInitRequest = $root.gauge.messages.SuiteDataStoreInitRequest.decode(reader, reader.uint32()); - break; - case 22: - message.stepNameRequest = $root.gauge.messages.StepNameRequest.decode(reader, reader.uint32()); - break; - case 23: - message.stepNameResponse = $root.gauge.messages.StepNameResponse.decode(reader, reader.uint32()); - break; - case 24: - message.refactorRequest = $root.gauge.messages.RefactorRequest.decode(reader, reader.uint32()); - break; - case 25: - message.refactorResponse = $root.gauge.messages.RefactorResponse.decode(reader, reader.uint32()); - break; - case 26: - message.unsupportedMessageResponse = $root.gauge.messages.UnsupportedMessageResponse.decode(reader, reader.uint32()); - break; - case 27: - message.cacheFileRequest = $root.gauge.messages.CacheFileRequest.decode(reader, reader.uint32()); - break; - case 28: - message.stepPositionsRequest = $root.gauge.messages.StepPositionsRequest.decode(reader, reader.uint32()); - break; - case 29: - message.stepPositionsResponse = $root.gauge.messages.StepPositionsResponse.decode(reader, reader.uint32()); - break; - case 30: - message.implementationFileListRequest = $root.gauge.messages.ImplementationFileListRequest.decode(reader, reader.uint32()); - break; - case 31: - message.implementationFileListResponse = $root.gauge.messages.ImplementationFileListResponse.decode(reader, reader.uint32()); - break; - case 32: - message.stubImplementationCodeRequest = $root.gauge.messages.StubImplementationCodeRequest.decode(reader, reader.uint32()); - break; - case 33: - message.fileDiff = $root.gauge.messages.FileDiff.decode(reader, reader.uint32()); - break; - case 34: - message.implementationFileGlobPatternRequest = $root.gauge.messages.ImplementationFileGlobPatternRequest.decode(reader, reader.uint32()); - break; - case 35: - message.implementationFileGlobPatternResponse = $root.gauge.messages.ImplementationFileGlobPatternResponse.decode(reader, reader.uint32()); - break; - case 36: - message.suiteExecutionResultItem = $root.gauge.messages.SuiteExecutionResultItem.decode(reader, reader.uint32()); - break; - case 37: - message.keepAlive = $root.gauge.messages.KeepAlive.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Message message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof gauge.messages.Message - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {gauge.messages.Message} Message - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Message.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Message message. - * @function verify - * @memberof gauge.messages.Message - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Message.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageType != null && message.hasOwnProperty("messageType")) - switch (message.messageType) { - default: - return "messageType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - case 25: - case 26: - case 27: - case 28: - case 29: - case 30: - case 31: - case 32: - case 33: - case 34: - break; - } - if (message.messageId != null && message.hasOwnProperty("messageId")) - if (!$util.isInteger(message.messageId) && !(message.messageId && $util.isInteger(message.messageId.low) && $util.isInteger(message.messageId.high))) - return "messageId: integer|Long expected"; - if (message.executionStartingRequest != null && message.hasOwnProperty("executionStartingRequest")) { - var error = $root.gauge.messages.ExecutionStartingRequest.verify(message.executionStartingRequest); - if (error) - return "executionStartingRequest." + error; - } - if (message.specExecutionStartingRequest != null && message.hasOwnProperty("specExecutionStartingRequest")) { - var error = $root.gauge.messages.SpecExecutionStartingRequest.verify(message.specExecutionStartingRequest); - if (error) - return "specExecutionStartingRequest." + error; - } - if (message.specExecutionEndingRequest != null && message.hasOwnProperty("specExecutionEndingRequest")) { - var error = $root.gauge.messages.SpecExecutionEndingRequest.verify(message.specExecutionEndingRequest); - if (error) - return "specExecutionEndingRequest." + error; - } - if (message.scenarioExecutionStartingRequest != null && message.hasOwnProperty("scenarioExecutionStartingRequest")) { - var error = $root.gauge.messages.ScenarioExecutionStartingRequest.verify(message.scenarioExecutionStartingRequest); - if (error) - return "scenarioExecutionStartingRequest." + error; - } - if (message.scenarioExecutionEndingRequest != null && message.hasOwnProperty("scenarioExecutionEndingRequest")) { - var error = $root.gauge.messages.ScenarioExecutionEndingRequest.verify(message.scenarioExecutionEndingRequest); - if (error) - return "scenarioExecutionEndingRequest." + error; - } - if (message.stepExecutionStartingRequest != null && message.hasOwnProperty("stepExecutionStartingRequest")) { - var error = $root.gauge.messages.StepExecutionStartingRequest.verify(message.stepExecutionStartingRequest); - if (error) - return "stepExecutionStartingRequest." + error; - } - if (message.stepExecutionEndingRequest != null && message.hasOwnProperty("stepExecutionEndingRequest")) { - var error = $root.gauge.messages.StepExecutionEndingRequest.verify(message.stepExecutionEndingRequest); - if (error) - return "stepExecutionEndingRequest." + error; - } - if (message.executeStepRequest != null && message.hasOwnProperty("executeStepRequest")) { - var error = $root.gauge.messages.ExecuteStepRequest.verify(message.executeStepRequest); - if (error) - return "executeStepRequest." + error; - } - if (message.executionEndingRequest != null && message.hasOwnProperty("executionEndingRequest")) { - var error = $root.gauge.messages.ExecutionEndingRequest.verify(message.executionEndingRequest); - if (error) - return "executionEndingRequest." + error; - } - if (message.stepValidateRequest != null && message.hasOwnProperty("stepValidateRequest")) { - var error = $root.gauge.messages.StepValidateRequest.verify(message.stepValidateRequest); - if (error) - return "stepValidateRequest." + error; - } - if (message.stepValidateResponse != null && message.hasOwnProperty("stepValidateResponse")) { - var error = $root.gauge.messages.StepValidateResponse.verify(message.stepValidateResponse); - if (error) - return "stepValidateResponse." + error; - } - if (message.executionStatusResponse != null && message.hasOwnProperty("executionStatusResponse")) { - var error = $root.gauge.messages.ExecutionStatusResponse.verify(message.executionStatusResponse); - if (error) - return "executionStatusResponse." + error; - } - if (message.stepNamesRequest != null && message.hasOwnProperty("stepNamesRequest")) { - var error = $root.gauge.messages.StepNamesRequest.verify(message.stepNamesRequest); - if (error) - return "stepNamesRequest." + error; - } - if (message.stepNamesResponse != null && message.hasOwnProperty("stepNamesResponse")) { - var error = $root.gauge.messages.StepNamesResponse.verify(message.stepNamesResponse); - if (error) - return "stepNamesResponse." + error; - } - if (message.suiteExecutionResult != null && message.hasOwnProperty("suiteExecutionResult")) { - var error = $root.gauge.messages.SuiteExecutionResult.verify(message.suiteExecutionResult); - if (error) - return "suiteExecutionResult." + error; - } - if (message.killProcessRequest != null && message.hasOwnProperty("killProcessRequest")) { - var error = $root.gauge.messages.KillProcessRequest.verify(message.killProcessRequest); - if (error) - return "killProcessRequest." + error; - } - if (message.scenarioDataStoreInitRequest != null && message.hasOwnProperty("scenarioDataStoreInitRequest")) { - var error = $root.gauge.messages.ScenarioDataStoreInitRequest.verify(message.scenarioDataStoreInitRequest); - if (error) - return "scenarioDataStoreInitRequest." + error; - } - if (message.specDataStoreInitRequest != null && message.hasOwnProperty("specDataStoreInitRequest")) { - var error = $root.gauge.messages.SpecDataStoreInitRequest.verify(message.specDataStoreInitRequest); - if (error) - return "specDataStoreInitRequest." + error; - } - if (message.suiteDataStoreInitRequest != null && message.hasOwnProperty("suiteDataStoreInitRequest")) { - var error = $root.gauge.messages.SuiteDataStoreInitRequest.verify(message.suiteDataStoreInitRequest); - if (error) - return "suiteDataStoreInitRequest." + error; - } - if (message.stepNameRequest != null && message.hasOwnProperty("stepNameRequest")) { - var error = $root.gauge.messages.StepNameRequest.verify(message.stepNameRequest); - if (error) - return "stepNameRequest." + error; - } - if (message.stepNameResponse != null && message.hasOwnProperty("stepNameResponse")) { - var error = $root.gauge.messages.StepNameResponse.verify(message.stepNameResponse); - if (error) - return "stepNameResponse." + error; - } - if (message.refactorRequest != null && message.hasOwnProperty("refactorRequest")) { - var error = $root.gauge.messages.RefactorRequest.verify(message.refactorRequest); - if (error) - return "refactorRequest." + error; - } - if (message.refactorResponse != null && message.hasOwnProperty("refactorResponse")) { - var error = $root.gauge.messages.RefactorResponse.verify(message.refactorResponse); - if (error) - return "refactorResponse." + error; - } - if (message.unsupportedMessageResponse != null && message.hasOwnProperty("unsupportedMessageResponse")) { - var error = $root.gauge.messages.UnsupportedMessageResponse.verify(message.unsupportedMessageResponse); - if (error) - return "unsupportedMessageResponse." + error; - } - if (message.cacheFileRequest != null && message.hasOwnProperty("cacheFileRequest")) { - var error = $root.gauge.messages.CacheFileRequest.verify(message.cacheFileRequest); - if (error) - return "cacheFileRequest." + error; - } - if (message.stepPositionsRequest != null && message.hasOwnProperty("stepPositionsRequest")) { - var error = $root.gauge.messages.StepPositionsRequest.verify(message.stepPositionsRequest); - if (error) - return "stepPositionsRequest." + error; - } - if (message.stepPositionsResponse != null && message.hasOwnProperty("stepPositionsResponse")) { - var error = $root.gauge.messages.StepPositionsResponse.verify(message.stepPositionsResponse); - if (error) - return "stepPositionsResponse." + error; - } - if (message.implementationFileListRequest != null && message.hasOwnProperty("implementationFileListRequest")) { - var error = $root.gauge.messages.ImplementationFileListRequest.verify(message.implementationFileListRequest); - if (error) - return "implementationFileListRequest." + error; - } - if (message.implementationFileListResponse != null && message.hasOwnProperty("implementationFileListResponse")) { - var error = $root.gauge.messages.ImplementationFileListResponse.verify(message.implementationFileListResponse); - if (error) - return "implementationFileListResponse." + error; - } - if (message.stubImplementationCodeRequest != null && message.hasOwnProperty("stubImplementationCodeRequest")) { - var error = $root.gauge.messages.StubImplementationCodeRequest.verify(message.stubImplementationCodeRequest); - if (error) - return "stubImplementationCodeRequest." + error; - } - if (message.fileDiff != null && message.hasOwnProperty("fileDiff")) { - var error = $root.gauge.messages.FileDiff.verify(message.fileDiff); - if (error) - return "fileDiff." + error; - } - if (message.implementationFileGlobPatternRequest != null && message.hasOwnProperty("implementationFileGlobPatternRequest")) { - var error = $root.gauge.messages.ImplementationFileGlobPatternRequest.verify(message.implementationFileGlobPatternRequest); - if (error) - return "implementationFileGlobPatternRequest." + error; - } - if (message.implementationFileGlobPatternResponse != null && message.hasOwnProperty("implementationFileGlobPatternResponse")) { - var error = $root.gauge.messages.ImplementationFileGlobPatternResponse.verify(message.implementationFileGlobPatternResponse); - if (error) - return "implementationFileGlobPatternResponse." + error; - } - if (message.suiteExecutionResultItem != null && message.hasOwnProperty("suiteExecutionResultItem")) { - var error = $root.gauge.messages.SuiteExecutionResultItem.verify(message.suiteExecutionResultItem); - if (error) - return "suiteExecutionResultItem." + error; - } - if (message.keepAlive != null && message.hasOwnProperty("keepAlive")) { - var error = $root.gauge.messages.KeepAlive.verify(message.keepAlive); - if (error) - return "keepAlive." + error; - } - return null; - }; - - /** - * Creates a Message message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof gauge.messages.Message - * @static - * @param {Object.} object Plain object - * @returns {gauge.messages.Message} Message - */ - Message.fromObject = function fromObject(object) { - if (object instanceof $root.gauge.messages.Message) - return object; - var message = new $root.gauge.messages.Message(); - switch (object.messageType) { - case "ExecutionStarting": - case 0: - message.messageType = 0; - break; - case "SpecExecutionStarting": - case 1: - message.messageType = 1; - break; - case "SpecExecutionEnding": - case 2: - message.messageType = 2; - break; - case "ScenarioExecutionStarting": - case 3: - message.messageType = 3; - break; - case "ScenarioExecutionEnding": - case 4: - message.messageType = 4; - break; - case "StepExecutionStarting": - case 5: - message.messageType = 5; - break; - case "StepExecutionEnding": - case 6: - message.messageType = 6; - break; - case "ExecuteStep": - case 7: - message.messageType = 7; - break; - case "ExecutionEnding": - case 8: - message.messageType = 8; - break; - case "StepValidateRequest": - case 9: - message.messageType = 9; - break; - case "StepValidateResponse": - case 10: - message.messageType = 10; - break; - case "ExecutionStatusResponse": - case 11: - message.messageType = 11; - break; - case "StepNamesRequest": - case 12: - message.messageType = 12; - break; - case "StepNamesResponse": - case 13: - message.messageType = 13; - break; - case "KillProcessRequest": - case 14: - message.messageType = 14; - break; - case "SuiteExecutionResult": - case 15: - message.messageType = 15; - break; - case "ScenarioDataStoreInit": - case 16: - message.messageType = 16; - break; - case "SpecDataStoreInit": - case 17: - message.messageType = 17; - break; - case "SuiteDataStoreInit": - case 18: - message.messageType = 18; - break; - case "StepNameRequest": - case 19: - message.messageType = 19; - break; - case "StepNameResponse": - case 20: - message.messageType = 20; - break; - case "RefactorRequest": - case 21: - message.messageType = 21; - break; - case "RefactorResponse": - case 22: - message.messageType = 22; - break; - case "UnsupportedMessageResponse": - case 23: - message.messageType = 23; - break; - case "CacheFileRequest": - case 24: - message.messageType = 24; - break; - case "StepPositionsRequest": - case 25: - message.messageType = 25; - break; - case "StepPositionsResponse": - case 26: - message.messageType = 26; - break; - case "ImplementationFileListRequest": - case 27: - message.messageType = 27; - break; - case "ImplementationFileListResponse": - case 28: - message.messageType = 28; - break; - case "StubImplementationCodeRequest": - case 29: - message.messageType = 29; - break; - case "FileDiff": - case 30: - message.messageType = 30; - break; - case "ImplementationFileGlobPatternRequest": - case 31: - message.messageType = 31; - break; - case "ImplementationFileGlobPatternResponse": - case 32: - message.messageType = 32; - break; - case "SuiteExecutionResultItem": - case 33: - message.messageType = 33; - break; - case "KeepAlive": - case 34: - message.messageType = 34; - break; - } - if (object.messageId != null) - if ($util.Long) - (message.messageId = $util.Long.fromValue(object.messageId)).unsigned = false; - else if (typeof object.messageId === "string") - message.messageId = parseInt(object.messageId, 10); - else if (typeof object.messageId === "number") - message.messageId = object.messageId; - else if (typeof object.messageId === "object") - message.messageId = new $util.LongBits(object.messageId.low >>> 0, object.messageId.high >>> 0).toNumber(); - if (object.executionStartingRequest != null) { - if (typeof object.executionStartingRequest !== "object") - throw TypeError(".gauge.messages.Message.executionStartingRequest: object expected"); - message.executionStartingRequest = $root.gauge.messages.ExecutionStartingRequest.fromObject(object.executionStartingRequest); - } - if (object.specExecutionStartingRequest != null) { - if (typeof object.specExecutionStartingRequest !== "object") - throw TypeError(".gauge.messages.Message.specExecutionStartingRequest: object expected"); - message.specExecutionStartingRequest = $root.gauge.messages.SpecExecutionStartingRequest.fromObject(object.specExecutionStartingRequest); - } - if (object.specExecutionEndingRequest != null) { - if (typeof object.specExecutionEndingRequest !== "object") - throw TypeError(".gauge.messages.Message.specExecutionEndingRequest: object expected"); - message.specExecutionEndingRequest = $root.gauge.messages.SpecExecutionEndingRequest.fromObject(object.specExecutionEndingRequest); - } - if (object.scenarioExecutionStartingRequest != null) { - if (typeof object.scenarioExecutionStartingRequest !== "object") - throw TypeError(".gauge.messages.Message.scenarioExecutionStartingRequest: object expected"); - message.scenarioExecutionStartingRequest = $root.gauge.messages.ScenarioExecutionStartingRequest.fromObject(object.scenarioExecutionStartingRequest); - } - if (object.scenarioExecutionEndingRequest != null) { - if (typeof object.scenarioExecutionEndingRequest !== "object") - throw TypeError(".gauge.messages.Message.scenarioExecutionEndingRequest: object expected"); - message.scenarioExecutionEndingRequest = $root.gauge.messages.ScenarioExecutionEndingRequest.fromObject(object.scenarioExecutionEndingRequest); - } - if (object.stepExecutionStartingRequest != null) { - if (typeof object.stepExecutionStartingRequest !== "object") - throw TypeError(".gauge.messages.Message.stepExecutionStartingRequest: object expected"); - message.stepExecutionStartingRequest = $root.gauge.messages.StepExecutionStartingRequest.fromObject(object.stepExecutionStartingRequest); - } - if (object.stepExecutionEndingRequest != null) { - if (typeof object.stepExecutionEndingRequest !== "object") - throw TypeError(".gauge.messages.Message.stepExecutionEndingRequest: object expected"); - message.stepExecutionEndingRequest = $root.gauge.messages.StepExecutionEndingRequest.fromObject(object.stepExecutionEndingRequest); - } - if (object.executeStepRequest != null) { - if (typeof object.executeStepRequest !== "object") - throw TypeError(".gauge.messages.Message.executeStepRequest: object expected"); - message.executeStepRequest = $root.gauge.messages.ExecuteStepRequest.fromObject(object.executeStepRequest); - } - if (object.executionEndingRequest != null) { - if (typeof object.executionEndingRequest !== "object") - throw TypeError(".gauge.messages.Message.executionEndingRequest: object expected"); - message.executionEndingRequest = $root.gauge.messages.ExecutionEndingRequest.fromObject(object.executionEndingRequest); - } - if (object.stepValidateRequest != null) { - if (typeof object.stepValidateRequest !== "object") - throw TypeError(".gauge.messages.Message.stepValidateRequest: object expected"); - message.stepValidateRequest = $root.gauge.messages.StepValidateRequest.fromObject(object.stepValidateRequest); - } - if (object.stepValidateResponse != null) { - if (typeof object.stepValidateResponse !== "object") - throw TypeError(".gauge.messages.Message.stepValidateResponse: object expected"); - message.stepValidateResponse = $root.gauge.messages.StepValidateResponse.fromObject(object.stepValidateResponse); - } - if (object.executionStatusResponse != null) { - if (typeof object.executionStatusResponse !== "object") - throw TypeError(".gauge.messages.Message.executionStatusResponse: object expected"); - message.executionStatusResponse = $root.gauge.messages.ExecutionStatusResponse.fromObject(object.executionStatusResponse); - } - if (object.stepNamesRequest != null) { - if (typeof object.stepNamesRequest !== "object") - throw TypeError(".gauge.messages.Message.stepNamesRequest: object expected"); - message.stepNamesRequest = $root.gauge.messages.StepNamesRequest.fromObject(object.stepNamesRequest); - } - if (object.stepNamesResponse != null) { - if (typeof object.stepNamesResponse !== "object") - throw TypeError(".gauge.messages.Message.stepNamesResponse: object expected"); - message.stepNamesResponse = $root.gauge.messages.StepNamesResponse.fromObject(object.stepNamesResponse); - } - if (object.suiteExecutionResult != null) { - if (typeof object.suiteExecutionResult !== "object") - throw TypeError(".gauge.messages.Message.suiteExecutionResult: object expected"); - message.suiteExecutionResult = $root.gauge.messages.SuiteExecutionResult.fromObject(object.suiteExecutionResult); - } - if (object.killProcessRequest != null) { - if (typeof object.killProcessRequest !== "object") - throw TypeError(".gauge.messages.Message.killProcessRequest: object expected"); - message.killProcessRequest = $root.gauge.messages.KillProcessRequest.fromObject(object.killProcessRequest); - } - if (object.scenarioDataStoreInitRequest != null) { - if (typeof object.scenarioDataStoreInitRequest !== "object") - throw TypeError(".gauge.messages.Message.scenarioDataStoreInitRequest: object expected"); - message.scenarioDataStoreInitRequest = $root.gauge.messages.ScenarioDataStoreInitRequest.fromObject(object.scenarioDataStoreInitRequest); - } - if (object.specDataStoreInitRequest != null) { - if (typeof object.specDataStoreInitRequest !== "object") - throw TypeError(".gauge.messages.Message.specDataStoreInitRequest: object expected"); - message.specDataStoreInitRequest = $root.gauge.messages.SpecDataStoreInitRequest.fromObject(object.specDataStoreInitRequest); - } - if (object.suiteDataStoreInitRequest != null) { - if (typeof object.suiteDataStoreInitRequest !== "object") - throw TypeError(".gauge.messages.Message.suiteDataStoreInitRequest: object expected"); - message.suiteDataStoreInitRequest = $root.gauge.messages.SuiteDataStoreInitRequest.fromObject(object.suiteDataStoreInitRequest); - } - if (object.stepNameRequest != null) { - if (typeof object.stepNameRequest !== "object") - throw TypeError(".gauge.messages.Message.stepNameRequest: object expected"); - message.stepNameRequest = $root.gauge.messages.StepNameRequest.fromObject(object.stepNameRequest); - } - if (object.stepNameResponse != null) { - if (typeof object.stepNameResponse !== "object") - throw TypeError(".gauge.messages.Message.stepNameResponse: object expected"); - message.stepNameResponse = $root.gauge.messages.StepNameResponse.fromObject(object.stepNameResponse); - } - if (object.refactorRequest != null) { - if (typeof object.refactorRequest !== "object") - throw TypeError(".gauge.messages.Message.refactorRequest: object expected"); - message.refactorRequest = $root.gauge.messages.RefactorRequest.fromObject(object.refactorRequest); - } - if (object.refactorResponse != null) { - if (typeof object.refactorResponse !== "object") - throw TypeError(".gauge.messages.Message.refactorResponse: object expected"); - message.refactorResponse = $root.gauge.messages.RefactorResponse.fromObject(object.refactorResponse); - } - if (object.unsupportedMessageResponse != null) { - if (typeof object.unsupportedMessageResponse !== "object") - throw TypeError(".gauge.messages.Message.unsupportedMessageResponse: object expected"); - message.unsupportedMessageResponse = $root.gauge.messages.UnsupportedMessageResponse.fromObject(object.unsupportedMessageResponse); - } - if (object.cacheFileRequest != null) { - if (typeof object.cacheFileRequest !== "object") - throw TypeError(".gauge.messages.Message.cacheFileRequest: object expected"); - message.cacheFileRequest = $root.gauge.messages.CacheFileRequest.fromObject(object.cacheFileRequest); - } - if (object.stepPositionsRequest != null) { - if (typeof object.stepPositionsRequest !== "object") - throw TypeError(".gauge.messages.Message.stepPositionsRequest: object expected"); - message.stepPositionsRequest = $root.gauge.messages.StepPositionsRequest.fromObject(object.stepPositionsRequest); - } - if (object.stepPositionsResponse != null) { - if (typeof object.stepPositionsResponse !== "object") - throw TypeError(".gauge.messages.Message.stepPositionsResponse: object expected"); - message.stepPositionsResponse = $root.gauge.messages.StepPositionsResponse.fromObject(object.stepPositionsResponse); - } - if (object.implementationFileListRequest != null) { - if (typeof object.implementationFileListRequest !== "object") - throw TypeError(".gauge.messages.Message.implementationFileListRequest: object expected"); - message.implementationFileListRequest = $root.gauge.messages.ImplementationFileListRequest.fromObject(object.implementationFileListRequest); - } - if (object.implementationFileListResponse != null) { - if (typeof object.implementationFileListResponse !== "object") - throw TypeError(".gauge.messages.Message.implementationFileListResponse: object expected"); - message.implementationFileListResponse = $root.gauge.messages.ImplementationFileListResponse.fromObject(object.implementationFileListResponse); - } - if (object.stubImplementationCodeRequest != null) { - if (typeof object.stubImplementationCodeRequest !== "object") - throw TypeError(".gauge.messages.Message.stubImplementationCodeRequest: object expected"); - message.stubImplementationCodeRequest = $root.gauge.messages.StubImplementationCodeRequest.fromObject(object.stubImplementationCodeRequest); - } - if (object.fileDiff != null) { - if (typeof object.fileDiff !== "object") - throw TypeError(".gauge.messages.Message.fileDiff: object expected"); - message.fileDiff = $root.gauge.messages.FileDiff.fromObject(object.fileDiff); - } - if (object.implementationFileGlobPatternRequest != null) { - if (typeof object.implementationFileGlobPatternRequest !== "object") - throw TypeError(".gauge.messages.Message.implementationFileGlobPatternRequest: object expected"); - message.implementationFileGlobPatternRequest = $root.gauge.messages.ImplementationFileGlobPatternRequest.fromObject(object.implementationFileGlobPatternRequest); - } - if (object.implementationFileGlobPatternResponse != null) { - if (typeof object.implementationFileGlobPatternResponse !== "object") - throw TypeError(".gauge.messages.Message.implementationFileGlobPatternResponse: object expected"); - message.implementationFileGlobPatternResponse = $root.gauge.messages.ImplementationFileGlobPatternResponse.fromObject(object.implementationFileGlobPatternResponse); - } - if (object.suiteExecutionResultItem != null) { - if (typeof object.suiteExecutionResultItem !== "object") - throw TypeError(".gauge.messages.Message.suiteExecutionResultItem: object expected"); - message.suiteExecutionResultItem = $root.gauge.messages.SuiteExecutionResultItem.fromObject(object.suiteExecutionResultItem); - } - if (object.keepAlive != null) { - if (typeof object.keepAlive !== "object") - throw TypeError(".gauge.messages.Message.keepAlive: object expected"); - message.keepAlive = $root.gauge.messages.KeepAlive.fromObject(object.keepAlive); - } - return message; - }; - - /** - * Creates a plain object from a Message message. Also converts values to other types if specified. - * @function toObject - * @memberof gauge.messages.Message - * @static - * @param {gauge.messages.Message} message Message - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Message.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.messageType = options.enums === String ? "ExecutionStarting" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.messageId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.messageId = options.longs === String ? "0" : 0; - object.executionStartingRequest = null; - object.specExecutionStartingRequest = null; - object.specExecutionEndingRequest = null; - object.scenarioExecutionStartingRequest = null; - object.scenarioExecutionEndingRequest = null; - object.stepExecutionStartingRequest = null; - object.stepExecutionEndingRequest = null; - object.executeStepRequest = null; - object.executionEndingRequest = null; - object.stepValidateRequest = null; - object.stepValidateResponse = null; - object.executionStatusResponse = null; - object.stepNamesRequest = null; - object.stepNamesResponse = null; - object.suiteExecutionResult = null; - object.killProcessRequest = null; - object.scenarioDataStoreInitRequest = null; - object.specDataStoreInitRequest = null; - object.suiteDataStoreInitRequest = null; - object.stepNameRequest = null; - object.stepNameResponse = null; - object.refactorRequest = null; - object.refactorResponse = null; - object.unsupportedMessageResponse = null; - object.cacheFileRequest = null; - object.stepPositionsRequest = null; - object.stepPositionsResponse = null; - object.implementationFileListRequest = null; - object.implementationFileListResponse = null; - object.stubImplementationCodeRequest = null; - object.fileDiff = null; - object.implementationFileGlobPatternRequest = null; - object.implementationFileGlobPatternResponse = null; - object.suiteExecutionResultItem = null; - object.keepAlive = null; - } - if (message.messageType != null && message.hasOwnProperty("messageType")) - object.messageType = options.enums === String ? $root.gauge.messages.Message.MessageType[message.messageType] : message.messageType; - if (message.messageId != null && message.hasOwnProperty("messageId")) - if (typeof message.messageId === "number") - object.messageId = options.longs === String ? String(message.messageId) : message.messageId; - else - object.messageId = options.longs === String ? $util.Long.prototype.toString.call(message.messageId) : options.longs === Number ? new $util.LongBits(message.messageId.low >>> 0, message.messageId.high >>> 0).toNumber() : message.messageId; - if (message.executionStartingRequest != null && message.hasOwnProperty("executionStartingRequest")) - object.executionStartingRequest = $root.gauge.messages.ExecutionStartingRequest.toObject(message.executionStartingRequest, options); - if (message.specExecutionStartingRequest != null && message.hasOwnProperty("specExecutionStartingRequest")) - object.specExecutionStartingRequest = $root.gauge.messages.SpecExecutionStartingRequest.toObject(message.specExecutionStartingRequest, options); - if (message.specExecutionEndingRequest != null && message.hasOwnProperty("specExecutionEndingRequest")) - object.specExecutionEndingRequest = $root.gauge.messages.SpecExecutionEndingRequest.toObject(message.specExecutionEndingRequest, options); - if (message.scenarioExecutionStartingRequest != null && message.hasOwnProperty("scenarioExecutionStartingRequest")) - object.scenarioExecutionStartingRequest = $root.gauge.messages.ScenarioExecutionStartingRequest.toObject(message.scenarioExecutionStartingRequest, options); - if (message.scenarioExecutionEndingRequest != null && message.hasOwnProperty("scenarioExecutionEndingRequest")) - object.scenarioExecutionEndingRequest = $root.gauge.messages.ScenarioExecutionEndingRequest.toObject(message.scenarioExecutionEndingRequest, options); - if (message.stepExecutionStartingRequest != null && message.hasOwnProperty("stepExecutionStartingRequest")) - object.stepExecutionStartingRequest = $root.gauge.messages.StepExecutionStartingRequest.toObject(message.stepExecutionStartingRequest, options); - if (message.stepExecutionEndingRequest != null && message.hasOwnProperty("stepExecutionEndingRequest")) - object.stepExecutionEndingRequest = $root.gauge.messages.StepExecutionEndingRequest.toObject(message.stepExecutionEndingRequest, options); - if (message.executeStepRequest != null && message.hasOwnProperty("executeStepRequest")) - object.executeStepRequest = $root.gauge.messages.ExecuteStepRequest.toObject(message.executeStepRequest, options); - if (message.executionEndingRequest != null && message.hasOwnProperty("executionEndingRequest")) - object.executionEndingRequest = $root.gauge.messages.ExecutionEndingRequest.toObject(message.executionEndingRequest, options); - if (message.stepValidateRequest != null && message.hasOwnProperty("stepValidateRequest")) - object.stepValidateRequest = $root.gauge.messages.StepValidateRequest.toObject(message.stepValidateRequest, options); - if (message.stepValidateResponse != null && message.hasOwnProperty("stepValidateResponse")) - object.stepValidateResponse = $root.gauge.messages.StepValidateResponse.toObject(message.stepValidateResponse, options); - if (message.executionStatusResponse != null && message.hasOwnProperty("executionStatusResponse")) - object.executionStatusResponse = $root.gauge.messages.ExecutionStatusResponse.toObject(message.executionStatusResponse, options); - if (message.stepNamesRequest != null && message.hasOwnProperty("stepNamesRequest")) - object.stepNamesRequest = $root.gauge.messages.StepNamesRequest.toObject(message.stepNamesRequest, options); - if (message.stepNamesResponse != null && message.hasOwnProperty("stepNamesResponse")) - object.stepNamesResponse = $root.gauge.messages.StepNamesResponse.toObject(message.stepNamesResponse, options); - if (message.suiteExecutionResult != null && message.hasOwnProperty("suiteExecutionResult")) - object.suiteExecutionResult = $root.gauge.messages.SuiteExecutionResult.toObject(message.suiteExecutionResult, options); - if (message.killProcessRequest != null && message.hasOwnProperty("killProcessRequest")) - object.killProcessRequest = $root.gauge.messages.KillProcessRequest.toObject(message.killProcessRequest, options); - if (message.scenarioDataStoreInitRequest != null && message.hasOwnProperty("scenarioDataStoreInitRequest")) - object.scenarioDataStoreInitRequest = $root.gauge.messages.ScenarioDataStoreInitRequest.toObject(message.scenarioDataStoreInitRequest, options); - if (message.specDataStoreInitRequest != null && message.hasOwnProperty("specDataStoreInitRequest")) - object.specDataStoreInitRequest = $root.gauge.messages.SpecDataStoreInitRequest.toObject(message.specDataStoreInitRequest, options); - if (message.suiteDataStoreInitRequest != null && message.hasOwnProperty("suiteDataStoreInitRequest")) - object.suiteDataStoreInitRequest = $root.gauge.messages.SuiteDataStoreInitRequest.toObject(message.suiteDataStoreInitRequest, options); - if (message.stepNameRequest != null && message.hasOwnProperty("stepNameRequest")) - object.stepNameRequest = $root.gauge.messages.StepNameRequest.toObject(message.stepNameRequest, options); - if (message.stepNameResponse != null && message.hasOwnProperty("stepNameResponse")) - object.stepNameResponse = $root.gauge.messages.StepNameResponse.toObject(message.stepNameResponse, options); - if (message.refactorRequest != null && message.hasOwnProperty("refactorRequest")) - object.refactorRequest = $root.gauge.messages.RefactorRequest.toObject(message.refactorRequest, options); - if (message.refactorResponse != null && message.hasOwnProperty("refactorResponse")) - object.refactorResponse = $root.gauge.messages.RefactorResponse.toObject(message.refactorResponse, options); - if (message.unsupportedMessageResponse != null && message.hasOwnProperty("unsupportedMessageResponse")) - object.unsupportedMessageResponse = $root.gauge.messages.UnsupportedMessageResponse.toObject(message.unsupportedMessageResponse, options); - if (message.cacheFileRequest != null && message.hasOwnProperty("cacheFileRequest")) - object.cacheFileRequest = $root.gauge.messages.CacheFileRequest.toObject(message.cacheFileRequest, options); - if (message.stepPositionsRequest != null && message.hasOwnProperty("stepPositionsRequest")) - object.stepPositionsRequest = $root.gauge.messages.StepPositionsRequest.toObject(message.stepPositionsRequest, options); - if (message.stepPositionsResponse != null && message.hasOwnProperty("stepPositionsResponse")) - object.stepPositionsResponse = $root.gauge.messages.StepPositionsResponse.toObject(message.stepPositionsResponse, options); - if (message.implementationFileListRequest != null && message.hasOwnProperty("implementationFileListRequest")) - object.implementationFileListRequest = $root.gauge.messages.ImplementationFileListRequest.toObject(message.implementationFileListRequest, options); - if (message.implementationFileListResponse != null && message.hasOwnProperty("implementationFileListResponse")) - object.implementationFileListResponse = $root.gauge.messages.ImplementationFileListResponse.toObject(message.implementationFileListResponse, options); - if (message.stubImplementationCodeRequest != null && message.hasOwnProperty("stubImplementationCodeRequest")) - object.stubImplementationCodeRequest = $root.gauge.messages.StubImplementationCodeRequest.toObject(message.stubImplementationCodeRequest, options); - if (message.fileDiff != null && message.hasOwnProperty("fileDiff")) - object.fileDiff = $root.gauge.messages.FileDiff.toObject(message.fileDiff, options); - if (message.implementationFileGlobPatternRequest != null && message.hasOwnProperty("implementationFileGlobPatternRequest")) - object.implementationFileGlobPatternRequest = $root.gauge.messages.ImplementationFileGlobPatternRequest.toObject(message.implementationFileGlobPatternRequest, options); - if (message.implementationFileGlobPatternResponse != null && message.hasOwnProperty("implementationFileGlobPatternResponse")) - object.implementationFileGlobPatternResponse = $root.gauge.messages.ImplementationFileGlobPatternResponse.toObject(message.implementationFileGlobPatternResponse, options); - if (message.suiteExecutionResultItem != null && message.hasOwnProperty("suiteExecutionResultItem")) - object.suiteExecutionResultItem = $root.gauge.messages.SuiteExecutionResultItem.toObject(message.suiteExecutionResultItem, options); - if (message.keepAlive != null && message.hasOwnProperty("keepAlive")) - object.keepAlive = $root.gauge.messages.KeepAlive.toObject(message.keepAlive, options); - return object; - }; - - /** - * Converts this Message to JSON. - * @function toJSON - * @memberof gauge.messages.Message - * @instance - * @returns {Object.} JSON object - */ - Message.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * MessageType enum. - * @name gauge.messages.Message.MessageType - * @enum {string} - * @property {number} ExecutionStarting=0 ExecutionStarting value - * @property {number} SpecExecutionStarting=1 SpecExecutionStarting value - * @property {number} SpecExecutionEnding=2 SpecExecutionEnding value - * @property {number} ScenarioExecutionStarting=3 ScenarioExecutionStarting value - * @property {number} ScenarioExecutionEnding=4 ScenarioExecutionEnding value - * @property {number} StepExecutionStarting=5 StepExecutionStarting value - * @property {number} StepExecutionEnding=6 StepExecutionEnding value - * @property {number} ExecuteStep=7 ExecuteStep value - * @property {number} ExecutionEnding=8 ExecutionEnding value - * @property {number} StepValidateRequest=9 StepValidateRequest value - * @property {number} StepValidateResponse=10 StepValidateResponse value - * @property {number} ExecutionStatusResponse=11 ExecutionStatusResponse value - * @property {number} StepNamesRequest=12 StepNamesRequest value - * @property {number} StepNamesResponse=13 StepNamesResponse value - * @property {number} KillProcessRequest=14 KillProcessRequest value - * @property {number} SuiteExecutionResult=15 SuiteExecutionResult value - * @property {number} ScenarioDataStoreInit=16 ScenarioDataStoreInit value - * @property {number} SpecDataStoreInit=17 SpecDataStoreInit value - * @property {number} SuiteDataStoreInit=18 SuiteDataStoreInit value - * @property {number} StepNameRequest=19 StepNameRequest value - * @property {number} StepNameResponse=20 StepNameResponse value - * @property {number} RefactorRequest=21 RefactorRequest value - * @property {number} RefactorResponse=22 RefactorResponse value - * @property {number} UnsupportedMessageResponse=23 UnsupportedMessageResponse value - * @property {number} CacheFileRequest=24 CacheFileRequest value - * @property {number} StepPositionsRequest=25 StepPositionsRequest value - * @property {number} StepPositionsResponse=26 StepPositionsResponse value - * @property {number} ImplementationFileListRequest=27 ImplementationFileListRequest value - * @property {number} ImplementationFileListResponse=28 ImplementationFileListResponse value - * @property {number} StubImplementationCodeRequest=29 StubImplementationCodeRequest value - * @property {number} FileDiff=30 FileDiff value - * @property {number} ImplementationFileGlobPatternRequest=31 ImplementationFileGlobPatternRequest value - * @property {number} ImplementationFileGlobPatternResponse=32 ImplementationFileGlobPatternResponse value - * @property {number} SuiteExecutionResultItem=33 SuiteExecutionResultItem value - * @property {number} KeepAlive=34 KeepAlive value - */ - Message.MessageType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ExecutionStarting"] = 0; - values[valuesById[1] = "SpecExecutionStarting"] = 1; - values[valuesById[2] = "SpecExecutionEnding"] = 2; - values[valuesById[3] = "ScenarioExecutionStarting"] = 3; - values[valuesById[4] = "ScenarioExecutionEnding"] = 4; - values[valuesById[5] = "StepExecutionStarting"] = 5; - values[valuesById[6] = "StepExecutionEnding"] = 6; - values[valuesById[7] = "ExecuteStep"] = 7; - values[valuesById[8] = "ExecutionEnding"] = 8; - values[valuesById[9] = "StepValidateRequest"] = 9; - values[valuesById[10] = "StepValidateResponse"] = 10; - values[valuesById[11] = "ExecutionStatusResponse"] = 11; - values[valuesById[12] = "StepNamesRequest"] = 12; - values[valuesById[13] = "StepNamesResponse"] = 13; - values[valuesById[14] = "KillProcessRequest"] = 14; - values[valuesById[15] = "SuiteExecutionResult"] = 15; - values[valuesById[16] = "ScenarioDataStoreInit"] = 16; - values[valuesById[17] = "SpecDataStoreInit"] = 17; - values[valuesById[18] = "SuiteDataStoreInit"] = 18; - values[valuesById[19] = "StepNameRequest"] = 19; - values[valuesById[20] = "StepNameResponse"] = 20; - values[valuesById[21] = "RefactorRequest"] = 21; - values[valuesById[22] = "RefactorResponse"] = 22; - values[valuesById[23] = "UnsupportedMessageResponse"] = 23; - values[valuesById[24] = "CacheFileRequest"] = 24; - values[valuesById[25] = "StepPositionsRequest"] = 25; - values[valuesById[26] = "StepPositionsResponse"] = 26; - values[valuesById[27] = "ImplementationFileListRequest"] = 27; - values[valuesById[28] = "ImplementationFileListResponse"] = 28; - values[valuesById[29] = "StubImplementationCodeRequest"] = 29; - values[valuesById[30] = "FileDiff"] = 30; - values[valuesById[31] = "ImplementationFileGlobPatternRequest"] = 31; - values[valuesById[32] = "ImplementationFileGlobPatternResponse"] = 32; - values[valuesById[33] = "SuiteExecutionResultItem"] = 33; - values[valuesById[34] = "KeepAlive"] = 34; - return values; - })(); - - return Message; - })(); - - messages.Runner = (function() { - - /** - * Constructs a new Runner service. - * @memberof gauge.messages - * @classdesc Represents a Runner - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Runner(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Runner.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Runner; - - /** - * Creates new Runner service using the specified rpc implementation. - * @function create - * @memberof gauge.messages.Runner - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Runner} RPC service. Useful where requests and/or responses are streamed. - */ - Runner.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link gauge.messages.Runner#validateStep}. - * @memberof gauge.messages.Runner - * @typedef ValidateStepCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.StepValidateResponse} [response] StepValidateResponse - */ - - /** - * Calls ValidateStep. - * @function validateStep - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IStepValidateRequest} request StepValidateRequest message or plain object - * @param {gauge.messages.Runner.ValidateStepCallback} callback Node-style callback called with the error, if any, and StepValidateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.validateStep = function validateStep(request, callback) { - return this.rpcCall(validateStep, $root.gauge.messages.StepValidateRequest, $root.gauge.messages.StepValidateResponse, request, callback); - }, "name", { value: "ValidateStep" }); - - /** - * Calls ValidateStep. - * @function validateStep - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IStepValidateRequest} request StepValidateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#initializeSuiteDataStore}. - * @memberof gauge.messages.Runner - * @typedef InitializeSuiteDataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ExecutionStatusResponse} [response] ExecutionStatusResponse - */ - - /** - * Calls InitializeSuiteDataStore. - * @function initializeSuiteDataStore - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.ISuiteDataStoreInitRequest} request SuiteDataStoreInitRequest message or plain object - * @param {gauge.messages.Runner.InitializeSuiteDataStoreCallback} callback Node-style callback called with the error, if any, and ExecutionStatusResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.initializeSuiteDataStore = function initializeSuiteDataStore(request, callback) { - return this.rpcCall(initializeSuiteDataStore, $root.gauge.messages.SuiteDataStoreInitRequest, $root.gauge.messages.ExecutionStatusResponse, request, callback); - }, "name", { value: "InitializeSuiteDataStore" }); - - /** - * Calls InitializeSuiteDataStore. - * @function initializeSuiteDataStore - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.ISuiteDataStoreInitRequest} request SuiteDataStoreInitRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#startExecution}. - * @memberof gauge.messages.Runner - * @typedef StartExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ExecutionStatusResponse} [response] ExecutionStatusResponse - */ - - /** - * Calls StartExecution. - * @function startExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IExecutionStartingRequest} request ExecutionStartingRequest message or plain object - * @param {gauge.messages.Runner.StartExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionStatusResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.startExecution = function startExecution(request, callback) { - return this.rpcCall(startExecution, $root.gauge.messages.ExecutionStartingRequest, $root.gauge.messages.ExecutionStatusResponse, request, callback); - }, "name", { value: "StartExecution" }); - - /** - * Calls StartExecution. - * @function startExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IExecutionStartingRequest} request ExecutionStartingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#initializeSpecDataStore}. - * @memberof gauge.messages.Runner - * @typedef InitializeSpecDataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ExecutionStatusResponse} [response] ExecutionStatusResponse - */ - - /** - * Calls InitializeSpecDataStore. - * @function initializeSpecDataStore - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.ISpecDataStoreInitRequest} request SpecDataStoreInitRequest message or plain object - * @param {gauge.messages.Runner.InitializeSpecDataStoreCallback} callback Node-style callback called with the error, if any, and ExecutionStatusResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.initializeSpecDataStore = function initializeSpecDataStore(request, callback) { - return this.rpcCall(initializeSpecDataStore, $root.gauge.messages.SpecDataStoreInitRequest, $root.gauge.messages.ExecutionStatusResponse, request, callback); - }, "name", { value: "InitializeSpecDataStore" }); - - /** - * Calls InitializeSpecDataStore. - * @function initializeSpecDataStore - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.ISpecDataStoreInitRequest} request SpecDataStoreInitRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#startSpecExecution}. - * @memberof gauge.messages.Runner - * @typedef StartSpecExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ExecutionStatusResponse} [response] ExecutionStatusResponse - */ - - /** - * Calls StartSpecExecution. - * @function startSpecExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.ISpecExecutionStartingRequest} request SpecExecutionStartingRequest message or plain object - * @param {gauge.messages.Runner.StartSpecExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionStatusResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.startSpecExecution = function startSpecExecution(request, callback) { - return this.rpcCall(startSpecExecution, $root.gauge.messages.SpecExecutionStartingRequest, $root.gauge.messages.ExecutionStatusResponse, request, callback); - }, "name", { value: "StartSpecExecution" }); - - /** - * Calls StartSpecExecution. - * @function startSpecExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.ISpecExecutionStartingRequest} request SpecExecutionStartingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#initializeScenarioDataStore}. - * @memberof gauge.messages.Runner - * @typedef InitializeScenarioDataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ExecutionStatusResponse} [response] ExecutionStatusResponse - */ - - /** - * Calls InitializeScenarioDataStore. - * @function initializeScenarioDataStore - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IScenarioDataStoreInitRequest} request ScenarioDataStoreInitRequest message or plain object - * @param {gauge.messages.Runner.InitializeScenarioDataStoreCallback} callback Node-style callback called with the error, if any, and ExecutionStatusResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.initializeScenarioDataStore = function initializeScenarioDataStore(request, callback) { - return this.rpcCall(initializeScenarioDataStore, $root.gauge.messages.ScenarioDataStoreInitRequest, $root.gauge.messages.ExecutionStatusResponse, request, callback); - }, "name", { value: "InitializeScenarioDataStore" }); - - /** - * Calls InitializeScenarioDataStore. - * @function initializeScenarioDataStore - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IScenarioDataStoreInitRequest} request ScenarioDataStoreInitRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#startScenarioExecution}. - * @memberof gauge.messages.Runner - * @typedef StartScenarioExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ExecutionStatusResponse} [response] ExecutionStatusResponse - */ - - /** - * Calls StartScenarioExecution. - * @function startScenarioExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IScenarioExecutionStartingRequest} request ScenarioExecutionStartingRequest message or plain object - * @param {gauge.messages.Runner.StartScenarioExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionStatusResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.startScenarioExecution = function startScenarioExecution(request, callback) { - return this.rpcCall(startScenarioExecution, $root.gauge.messages.ScenarioExecutionStartingRequest, $root.gauge.messages.ExecutionStatusResponse, request, callback); - }, "name", { value: "StartScenarioExecution" }); - - /** - * Calls StartScenarioExecution. - * @function startScenarioExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IScenarioExecutionStartingRequest} request ScenarioExecutionStartingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#startStepExecution}. - * @memberof gauge.messages.Runner - * @typedef StartStepExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ExecutionStatusResponse} [response] ExecutionStatusResponse - */ - - /** - * Calls StartStepExecution. - * @function startStepExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IStepExecutionStartingRequest} request StepExecutionStartingRequest message or plain object - * @param {gauge.messages.Runner.StartStepExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionStatusResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.startStepExecution = function startStepExecution(request, callback) { - return this.rpcCall(startStepExecution, $root.gauge.messages.StepExecutionStartingRequest, $root.gauge.messages.ExecutionStatusResponse, request, callback); - }, "name", { value: "StartStepExecution" }); - - /** - * Calls StartStepExecution. - * @function startStepExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IStepExecutionStartingRequest} request StepExecutionStartingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#executeStep}. - * @memberof gauge.messages.Runner - * @typedef ExecuteStepCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ExecutionStatusResponse} [response] ExecutionStatusResponse - */ - - /** - * Calls ExecuteStep. - * @function executeStep - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IExecuteStepRequest} request ExecuteStepRequest message or plain object - * @param {gauge.messages.Runner.ExecuteStepCallback} callback Node-style callback called with the error, if any, and ExecutionStatusResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.executeStep = function executeStep(request, callback) { - return this.rpcCall(executeStep, $root.gauge.messages.ExecuteStepRequest, $root.gauge.messages.ExecutionStatusResponse, request, callback); - }, "name", { value: "ExecuteStep" }); - - /** - * Calls ExecuteStep. - * @function executeStep - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IExecuteStepRequest} request ExecuteStepRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#finishStepExecution}. - * @memberof gauge.messages.Runner - * @typedef FinishStepExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ExecutionStatusResponse} [response] ExecutionStatusResponse - */ - - /** - * Calls FinishStepExecution. - * @function finishStepExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IStepExecutionEndingRequest} request StepExecutionEndingRequest message or plain object - * @param {gauge.messages.Runner.FinishStepExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionStatusResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.finishStepExecution = function finishStepExecution(request, callback) { - return this.rpcCall(finishStepExecution, $root.gauge.messages.StepExecutionEndingRequest, $root.gauge.messages.ExecutionStatusResponse, request, callback); - }, "name", { value: "FinishStepExecution" }); - - /** - * Calls FinishStepExecution. - * @function finishStepExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IStepExecutionEndingRequest} request StepExecutionEndingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#finishScenarioExecution}. - * @memberof gauge.messages.Runner - * @typedef FinishScenarioExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ExecutionStatusResponse} [response] ExecutionStatusResponse - */ - - /** - * Calls FinishScenarioExecution. - * @function finishScenarioExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IScenarioExecutionEndingRequest} request ScenarioExecutionEndingRequest message or plain object - * @param {gauge.messages.Runner.FinishScenarioExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionStatusResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.finishScenarioExecution = function finishScenarioExecution(request, callback) { - return this.rpcCall(finishScenarioExecution, $root.gauge.messages.ScenarioExecutionEndingRequest, $root.gauge.messages.ExecutionStatusResponse, request, callback); - }, "name", { value: "FinishScenarioExecution" }); - - /** - * Calls FinishScenarioExecution. - * @function finishScenarioExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IScenarioExecutionEndingRequest} request ScenarioExecutionEndingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#finishSpecExecution}. - * @memberof gauge.messages.Runner - * @typedef FinishSpecExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ExecutionStatusResponse} [response] ExecutionStatusResponse - */ - - /** - * Calls FinishSpecExecution. - * @function finishSpecExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.ISpecExecutionEndingRequest} request SpecExecutionEndingRequest message or plain object - * @param {gauge.messages.Runner.FinishSpecExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionStatusResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.finishSpecExecution = function finishSpecExecution(request, callback) { - return this.rpcCall(finishSpecExecution, $root.gauge.messages.SpecExecutionEndingRequest, $root.gauge.messages.ExecutionStatusResponse, request, callback); - }, "name", { value: "FinishSpecExecution" }); - - /** - * Calls FinishSpecExecution. - * @function finishSpecExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.ISpecExecutionEndingRequest} request SpecExecutionEndingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#finishExecution}. - * @memberof gauge.messages.Runner - * @typedef FinishExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ExecutionStatusResponse} [response] ExecutionStatusResponse - */ - - /** - * Calls FinishExecution. - * @function finishExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IExecutionEndingRequest} request ExecutionEndingRequest message or plain object - * @param {gauge.messages.Runner.FinishExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionStatusResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.finishExecution = function finishExecution(request, callback) { - return this.rpcCall(finishExecution, $root.gauge.messages.ExecutionEndingRequest, $root.gauge.messages.ExecutionStatusResponse, request, callback); - }, "name", { value: "FinishExecution" }); - - /** - * Calls FinishExecution. - * @function finishExecution - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IExecutionEndingRequest} request ExecutionEndingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#cacheFile}. - * @memberof gauge.messages.Runner - * @typedef CacheFileCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls CacheFile. - * @function cacheFile - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.ICacheFileRequest} request CacheFileRequest message or plain object - * @param {gauge.messages.Runner.CacheFileCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.cacheFile = function cacheFile(request, callback) { - return this.rpcCall(cacheFile, $root.gauge.messages.CacheFileRequest, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "CacheFile" }); - - /** - * Calls CacheFile. - * @function cacheFile - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.ICacheFileRequest} request CacheFileRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#getStepName}. - * @memberof gauge.messages.Runner - * @typedef GetStepNameCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.StepNameResponse} [response] StepNameResponse - */ - - /** - * Calls GetStepName. - * @function getStepName - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IStepNameRequest} request StepNameRequest message or plain object - * @param {gauge.messages.Runner.GetStepNameCallback} callback Node-style callback called with the error, if any, and StepNameResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.getStepName = function getStepName(request, callback) { - return this.rpcCall(getStepName, $root.gauge.messages.StepNameRequest, $root.gauge.messages.StepNameResponse, request, callback); - }, "name", { value: "GetStepName" }); - - /** - * Calls GetStepName. - * @function getStepName - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IStepNameRequest} request StepNameRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#getGlobPatterns}. - * @memberof gauge.messages.Runner - * @typedef GetGlobPatternsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ImplementationFileGlobPatternResponse} [response] ImplementationFileGlobPatternResponse - */ - - /** - * Calls GetGlobPatterns. - * @function getGlobPatterns - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IEmpty} request Empty message or plain object - * @param {gauge.messages.Runner.GetGlobPatternsCallback} callback Node-style callback called with the error, if any, and ImplementationFileGlobPatternResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.getGlobPatterns = function getGlobPatterns(request, callback) { - return this.rpcCall(getGlobPatterns, $root.gauge.messages.Empty, $root.gauge.messages.ImplementationFileGlobPatternResponse, request, callback); - }, "name", { value: "GetGlobPatterns" }); - - /** - * Calls GetGlobPatterns. - * @function getGlobPatterns - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IEmpty} request Empty message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#getStepNames}. - * @memberof gauge.messages.Runner - * @typedef GetStepNamesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.StepNamesResponse} [response] StepNamesResponse - */ - - /** - * Calls GetStepNames. - * @function getStepNames - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IStepNamesRequest} request StepNamesRequest message or plain object - * @param {gauge.messages.Runner.GetStepNamesCallback} callback Node-style callback called with the error, if any, and StepNamesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.getStepNames = function getStepNames(request, callback) { - return this.rpcCall(getStepNames, $root.gauge.messages.StepNamesRequest, $root.gauge.messages.StepNamesResponse, request, callback); - }, "name", { value: "GetStepNames" }); - - /** - * Calls GetStepNames. - * @function getStepNames - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IStepNamesRequest} request StepNamesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#getStepPositions}. - * @memberof gauge.messages.Runner - * @typedef GetStepPositionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.StepPositionsResponse} [response] StepPositionsResponse - */ - - /** - * Calls GetStepPositions. - * @function getStepPositions - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IStepPositionsRequest} request StepPositionsRequest message or plain object - * @param {gauge.messages.Runner.GetStepPositionsCallback} callback Node-style callback called with the error, if any, and StepPositionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.getStepPositions = function getStepPositions(request, callback) { - return this.rpcCall(getStepPositions, $root.gauge.messages.StepPositionsRequest, $root.gauge.messages.StepPositionsResponse, request, callback); - }, "name", { value: "GetStepPositions" }); - - /** - * Calls GetStepPositions. - * @function getStepPositions - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IStepPositionsRequest} request StepPositionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#getImplementationFiles}. - * @memberof gauge.messages.Runner - * @typedef GetImplementationFilesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.ImplementationFileListResponse} [response] ImplementationFileListResponse - */ - - /** - * Calls GetImplementationFiles. - * @function getImplementationFiles - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IEmpty} request Empty message or plain object - * @param {gauge.messages.Runner.GetImplementationFilesCallback} callback Node-style callback called with the error, if any, and ImplementationFileListResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.getImplementationFiles = function getImplementationFiles(request, callback) { - return this.rpcCall(getImplementationFiles, $root.gauge.messages.Empty, $root.gauge.messages.ImplementationFileListResponse, request, callback); - }, "name", { value: "GetImplementationFiles" }); - - /** - * Calls GetImplementationFiles. - * @function getImplementationFiles - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IEmpty} request Empty message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#implementStub}. - * @memberof gauge.messages.Runner - * @typedef ImplementStubCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.FileDiff} [response] FileDiff - */ - - /** - * Calls ImplementStub. - * @function implementStub - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IStubImplementationCodeRequest} request StubImplementationCodeRequest message or plain object - * @param {gauge.messages.Runner.ImplementStubCallback} callback Node-style callback called with the error, if any, and FileDiff - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.implementStub = function implementStub(request, callback) { - return this.rpcCall(implementStub, $root.gauge.messages.StubImplementationCodeRequest, $root.gauge.messages.FileDiff, request, callback); - }, "name", { value: "ImplementStub" }); - - /** - * Calls ImplementStub. - * @function implementStub - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IStubImplementationCodeRequest} request StubImplementationCodeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#refactor}. - * @memberof gauge.messages.Runner - * @typedef RefactorCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.RefactorResponse} [response] RefactorResponse - */ - - /** - * Calls Refactor. - * @function refactor - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IRefactorRequest} request RefactorRequest message or plain object - * @param {gauge.messages.Runner.RefactorCallback} callback Node-style callback called with the error, if any, and RefactorResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.refactor = function refactor(request, callback) { - return this.rpcCall(refactor, $root.gauge.messages.RefactorRequest, $root.gauge.messages.RefactorResponse, request, callback); - }, "name", { value: "Refactor" }); - - /** - * Calls Refactor. - * @function refactor - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IRefactorRequest} request RefactorRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Runner#kill}. - * @memberof gauge.messages.Runner - * @typedef KillCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls Kill. - * @function kill - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IKillProcessRequest} request KillProcessRequest message or plain object - * @param {gauge.messages.Runner.KillCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Runner.prototype.kill = function kill(request, callback) { - return this.rpcCall(kill, $root.gauge.messages.KillProcessRequest, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "Kill" }); - - /** - * Calls Kill. - * @function kill - * @memberof gauge.messages.Runner - * @instance - * @param {gauge.messages.IKillProcessRequest} request KillProcessRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Runner; - })(); - - messages.Reporter = (function() { - - /** - * Constructs a new Reporter service. - * @memberof gauge.messages - * @classdesc Represents a Reporter - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Reporter(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Reporter.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Reporter; - - /** - * Creates new Reporter service using the specified rpc implementation. - * @function create - * @memberof gauge.messages.Reporter - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Reporter} RPC service. Useful where requests and/or responses are streamed. - */ - Reporter.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link gauge.messages.Reporter#notifyExecutionStarting}. - * @memberof gauge.messages.Reporter - * @typedef NotifyExecutionStartingCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls NotifyExecutionStarting. - * @function notifyExecutionStarting - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.IExecutionStartingRequest} request ExecutionStartingRequest message or plain object - * @param {gauge.messages.Reporter.NotifyExecutionStartingCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Reporter.prototype.notifyExecutionStarting = function notifyExecutionStarting(request, callback) { - return this.rpcCall(notifyExecutionStarting, $root.gauge.messages.ExecutionStartingRequest, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "NotifyExecutionStarting" }); - - /** - * Calls NotifyExecutionStarting. - * @function notifyExecutionStarting - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.IExecutionStartingRequest} request ExecutionStartingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Reporter#notifySpecExecutionStarting}. - * @memberof gauge.messages.Reporter - * @typedef NotifySpecExecutionStartingCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls NotifySpecExecutionStarting. - * @function notifySpecExecutionStarting - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.ISpecExecutionStartingRequest} request SpecExecutionStartingRequest message or plain object - * @param {gauge.messages.Reporter.NotifySpecExecutionStartingCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Reporter.prototype.notifySpecExecutionStarting = function notifySpecExecutionStarting(request, callback) { - return this.rpcCall(notifySpecExecutionStarting, $root.gauge.messages.SpecExecutionStartingRequest, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "NotifySpecExecutionStarting" }); - - /** - * Calls NotifySpecExecutionStarting. - * @function notifySpecExecutionStarting - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.ISpecExecutionStartingRequest} request SpecExecutionStartingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Reporter#notifyScenarioExecutionStarting}. - * @memberof gauge.messages.Reporter - * @typedef NotifyScenarioExecutionStartingCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls NotifyScenarioExecutionStarting. - * @function notifyScenarioExecutionStarting - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.IScenarioExecutionStartingRequest} request ScenarioExecutionStartingRequest message or plain object - * @param {gauge.messages.Reporter.NotifyScenarioExecutionStartingCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Reporter.prototype.notifyScenarioExecutionStarting = function notifyScenarioExecutionStarting(request, callback) { - return this.rpcCall(notifyScenarioExecutionStarting, $root.gauge.messages.ScenarioExecutionStartingRequest, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "NotifyScenarioExecutionStarting" }); - - /** - * Calls NotifyScenarioExecutionStarting. - * @function notifyScenarioExecutionStarting - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.IScenarioExecutionStartingRequest} request ScenarioExecutionStartingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Reporter#notifyStepExecutionStarting}. - * @memberof gauge.messages.Reporter - * @typedef NotifyStepExecutionStartingCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls NotifyStepExecutionStarting. - * @function notifyStepExecutionStarting - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.IStepExecutionStartingRequest} request StepExecutionStartingRequest message or plain object - * @param {gauge.messages.Reporter.NotifyStepExecutionStartingCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Reporter.prototype.notifyStepExecutionStarting = function notifyStepExecutionStarting(request, callback) { - return this.rpcCall(notifyStepExecutionStarting, $root.gauge.messages.StepExecutionStartingRequest, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "NotifyStepExecutionStarting" }); - - /** - * Calls NotifyStepExecutionStarting. - * @function notifyStepExecutionStarting - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.IStepExecutionStartingRequest} request StepExecutionStartingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Reporter#notifyStepExecutionEnding}. - * @memberof gauge.messages.Reporter - * @typedef NotifyStepExecutionEndingCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls NotifyStepExecutionEnding. - * @function notifyStepExecutionEnding - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.IStepExecutionEndingRequest} request StepExecutionEndingRequest message or plain object - * @param {gauge.messages.Reporter.NotifyStepExecutionEndingCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Reporter.prototype.notifyStepExecutionEnding = function notifyStepExecutionEnding(request, callback) { - return this.rpcCall(notifyStepExecutionEnding, $root.gauge.messages.StepExecutionEndingRequest, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "NotifyStepExecutionEnding" }); - - /** - * Calls NotifyStepExecutionEnding. - * @function notifyStepExecutionEnding - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.IStepExecutionEndingRequest} request StepExecutionEndingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Reporter#notifyScenarioExecutionEnding}. - * @memberof gauge.messages.Reporter - * @typedef NotifyScenarioExecutionEndingCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls NotifyScenarioExecutionEnding. - * @function notifyScenarioExecutionEnding - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.IScenarioExecutionEndingRequest} request ScenarioExecutionEndingRequest message or plain object - * @param {gauge.messages.Reporter.NotifyScenarioExecutionEndingCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Reporter.prototype.notifyScenarioExecutionEnding = function notifyScenarioExecutionEnding(request, callback) { - return this.rpcCall(notifyScenarioExecutionEnding, $root.gauge.messages.ScenarioExecutionEndingRequest, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "NotifyScenarioExecutionEnding" }); - - /** - * Calls NotifyScenarioExecutionEnding. - * @function notifyScenarioExecutionEnding - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.IScenarioExecutionEndingRequest} request ScenarioExecutionEndingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Reporter#notifySpecExecutionEnding}. - * @memberof gauge.messages.Reporter - * @typedef NotifySpecExecutionEndingCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls NotifySpecExecutionEnding. - * @function notifySpecExecutionEnding - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.ISpecExecutionEndingRequest} request SpecExecutionEndingRequest message or plain object - * @param {gauge.messages.Reporter.NotifySpecExecutionEndingCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Reporter.prototype.notifySpecExecutionEnding = function notifySpecExecutionEnding(request, callback) { - return this.rpcCall(notifySpecExecutionEnding, $root.gauge.messages.SpecExecutionEndingRequest, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "NotifySpecExecutionEnding" }); - - /** - * Calls NotifySpecExecutionEnding. - * @function notifySpecExecutionEnding - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.ISpecExecutionEndingRequest} request SpecExecutionEndingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Reporter#notifyExecutionEnding}. - * @memberof gauge.messages.Reporter - * @typedef NotifyExecutionEndingCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls NotifyExecutionEnding. - * @function notifyExecutionEnding - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.IExecutionEndingRequest} request ExecutionEndingRequest message or plain object - * @param {gauge.messages.Reporter.NotifyExecutionEndingCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Reporter.prototype.notifyExecutionEnding = function notifyExecutionEnding(request, callback) { - return this.rpcCall(notifyExecutionEnding, $root.gauge.messages.ExecutionEndingRequest, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "NotifyExecutionEnding" }); - - /** - * Calls NotifyExecutionEnding. - * @function notifyExecutionEnding - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.IExecutionEndingRequest} request ExecutionEndingRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Reporter#notifySuiteResult}. - * @memberof gauge.messages.Reporter - * @typedef NotifySuiteResultCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls NotifySuiteResult. - * @function notifySuiteResult - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.ISuiteExecutionResult} request SuiteExecutionResult message or plain object - * @param {gauge.messages.Reporter.NotifySuiteResultCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Reporter.prototype.notifySuiteResult = function notifySuiteResult(request, callback) { - return this.rpcCall(notifySuiteResult, $root.gauge.messages.SuiteExecutionResult, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "NotifySuiteResult" }); - - /** - * Calls NotifySuiteResult. - * @function notifySuiteResult - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.ISuiteExecutionResult} request SuiteExecutionResult message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Reporter#kill}. - * @memberof gauge.messages.Reporter - * @typedef KillCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls Kill. - * @function kill - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.IKillProcessRequest} request KillProcessRequest message or plain object - * @param {gauge.messages.Reporter.KillCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Reporter.prototype.kill = function kill(request, callback) { - return this.rpcCall(kill, $root.gauge.messages.KillProcessRequest, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "Kill" }); - - /** - * Calls Kill. - * @function kill - * @memberof gauge.messages.Reporter - * @instance - * @param {gauge.messages.IKillProcessRequest} request KillProcessRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Reporter; - })(); - - messages.Documenter = (function() { - - /** - * Constructs a new Documenter service. - * @memberof gauge.messages - * @classdesc Represents a Documenter - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Documenter(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Documenter.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Documenter; - - /** - * Creates new Documenter service using the specified rpc implementation. - * @function create - * @memberof gauge.messages.Documenter - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Documenter} RPC service. Useful where requests and/or responses are streamed. - */ - Documenter.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link gauge.messages.Documenter#generateDocs}. - * @memberof gauge.messages.Documenter - * @typedef GenerateDocsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls GenerateDocs. - * @function generateDocs - * @memberof gauge.messages.Documenter - * @instance - * @param {gauge.messages.ISpecDetails} request SpecDetails message or plain object - * @param {gauge.messages.Documenter.GenerateDocsCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Documenter.prototype.generateDocs = function generateDocs(request, callback) { - return this.rpcCall(generateDocs, $root.gauge.messages.SpecDetails, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "GenerateDocs" }); - - /** - * Calls GenerateDocs. - * @function generateDocs - * @memberof gauge.messages.Documenter - * @instance - * @param {gauge.messages.ISpecDetails} request SpecDetails message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link gauge.messages.Documenter#kill}. - * @memberof gauge.messages.Documenter - * @typedef KillCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {gauge.messages.Empty} [response] Empty - */ - - /** - * Calls Kill. - * @function kill - * @memberof gauge.messages.Documenter - * @instance - * @param {gauge.messages.IKillProcessRequest} request KillProcessRequest message or plain object - * @param {gauge.messages.Documenter.KillCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Documenter.prototype.kill = function kill(request, callback) { - return this.rpcCall(kill, $root.gauge.messages.KillProcessRequest, $root.gauge.messages.Empty, request, callback); - }, "name", { value: "Kill" }); - - /** - * Calls Kill. - * @function kill - * @memberof gauge.messages.Documenter - * @instance - * @param {gauge.messages.IKillProcessRequest} request KillProcessRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Documenter; - })(); - - return messages; - })(); - - return gauge; -})(); - -module.exports = $root; diff --git a/src/gen/messages.proto b/src/gen/messages.proto deleted file mode 100644 index 9e4aa4a..0000000 --- a/src/gen/messages.proto +++ /dev/null @@ -1,564 +0,0 @@ -// Copyright 2015 ThoughtWorks, Inc. - -// This file is part of gauge-proto. - -// gauge-proto is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// gauge-proto is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with gauge-proto. If not, see . - - -// The comments are exported to Markdown, hence they may contain markdown syntax and cross-refs. -syntax = "proto3"; -package gauge.messages; -option csharp_namespace = "Gauge.Messages"; -option java_package = "com.thoughtworks.gauge"; - -import "spec.proto"; - -/// Default request. Tells the runner to shutdown. -message KillProcessRequest { -} - -/// Sends to any request which needs a execution status as response -/// usually step execution, hooks etc will return this -message ExecutionStatusResponse { - /// Holds the suite result after suite execution done. - gauge.messages.ProtoExecutionResult executionResult = 1; -} - -/// Sent at start of Suite Execution. Tells the runner to execute `before_suite` hook. -message ExecutionStartingRequest { - /// Holds the current suite execution info. - ExecutionInfo currentExecutionInfo = 1; - /// Holds the suite result in execution starting. - /// Some fields will not be populated before execution. - gauge.messages.ProtoSuiteResult suiteResult = 2; - - int32 stream = 3; -} - -/// Sent at end of Suite Execution. Tells the runner to execute `after_suite` hook. -message ExecutionEndingRequest { - /// Holds the current suite execution info. - ExecutionInfo currentExecutionInfo = 1; - /// Holds the suite result in execution ending. - gauge.messages.ProtoSuiteResult suiteResult = 2; - - int32 stream = 3; -} - -/// Sent at start of Spec Execution. Tells the runner to execute `before_spec` hook. -message SpecExecutionStartingRequest { - /// Holds the current spec execution info. - ExecutionInfo currentExecutionInfo = 1; - /// Holds the specs result in spec execution starting. - /// Some fields will not be populated before execution. - gauge.messages.ProtoSpecResult specResult = 2; - - int32 stream = 3; -} - -/// Sent at end of Spec Execution. Tells the runner to execute `after_spec` hook. -message SpecExecutionEndingRequest { - /// Holds the current spec execution info. - ExecutionInfo currentExecutionInfo = 1; - /// Holds the specs result in spec execution ending. - gauge.messages.ProtoSpecResult specResult = 2; - - int32 stream = 3; -} - -/// Sent at start of Scenario Execution. Tells the runner to execute `before_scenario` hook. -message ScenarioExecutionStartingRequest { - /// Holds the current sceanrio execution info. - ExecutionInfo currentExecutionInfo = 1; - /// Holds the scenarion result in scenarion execution starting. - /// Some fields will not be populated before execution. - gauge.messages.ProtoScenarioResult scenarioResult = 2; - - int32 stream = 3; -} - -/// Sent at end of Scenario Execution. Tells the runner to execute `after_scenario` hook. -message ScenarioExecutionEndingRequest { - /// Holds the current scenario execution info. - ExecutionInfo currentExecutionInfo = 1; - gauge.messages.ProtoScenarioResult scenarioResult = 2; - - int32 stream = 3; -} - -/// Sent at start of Step Execution. Tells the runner to execute `before_step` hook. -message StepExecutionStartingRequest { - /// Holds the current step execution info. - ExecutionInfo currentExecutionInfo = 1; - /// Holds step result in step execution starting. - /// Some fields will not be populated before execution. - gauge.messages.ProtoStepResult stepResult = 2; - - int32 stream = 3; -} - -/// Sent at end of Step Execution. Tells the runner to execute `after_step` hook. -message StepExecutionEndingRequest { - /// Holds the current step execution info. - ExecutionInfo currentExecutionInfo = 1; - /// Holds step result in step execution ending. - gauge.messages.ProtoStepResult stepResult = 2; - - int32 stream = 3; -} - -/// Contains command line arguments which passed by user during execution. -message ExecutionArg { - /// Holds the flag name passed from command line. - string flagName = 1; - /// Holds the flag value passed from command line. - repeated string flagValue = 2; -} - - -/// Contains details of the execution. -/// Depending on the context (Step, Scenario, Spec or Suite), the respective fields are set. -message ExecutionInfo { - /// Holds the information of the current Spec. Valid in context of Spec execution. - SpecInfo currentSpec = 1; - /// Holds the information of the current Scenario. Valid in context of Scenario execution. - ScenarioInfo currentScenario = 2; - /// Holds the information of the current Step. Valid in context of Step execution. - StepInfo currentStep = 3; - /// Stacktrace of the execution. Valid only if there is an error in execution. - string stacktrace = 4; - /// Holds the project name - string projectName = 5; - /// Holds the command line arguments. - repeated ExecutionArg ExecutionArgs = 6; - /// Holds the number of running execution streams. - int32 numberOfExecutionStreams = 7; - /// Holds the runner id for parallel execution. - int32 runnerId = 8; -} - -/// Contains details of the Spec execution. -message SpecInfo { - /// Name of the current Spec being executed. - string name = 1; - /// Full File path containing the current Spec being executed. - string fileName = 2; - /// Flag to indicate if the current Spec execution failed. - bool isFailed = 3; - /// Tags relevant to the current Spec execution. - repeated string tags = 4; -} - -/// Contains details of the Scenario execution. -message ScenarioInfo { - /// Name of the current Scenario being executed. - string name = 1; - /// Flag to indicate if the current Scenario execution failed. - bool isFailed = 2; - /// Tags relevant to the current Scenario execution. - repeated string tags = 3; -} - -/// Contains details of the Step execution. -message StepInfo { - /// The current request to execute Step - ExecuteStepRequest step = 1; - /// Flag to indicate if the current Step execution failed. - bool isFailed = 2; - /// The current stack trace in case of failure - string stackTrace = 3; - /// The error message in case of failure - string errorMessage = 4; -} - -/// Request sent ot the runner to Execute a Step -message ExecuteStepRequest { - /// Contains the actual text of the Step being executed. - /// This contains the parameters as defined in the Spec. - string actualStepText = 1; - /// Contains the parsed text of the Step being executed. - /// The paramters are replaced with placeholders. - string parsedStepText = 2; - /// Flag to indicate if the execution of the Scenario, containing the current Step, failed. - bool scenarioFailing = 3; - /// Collection of parameters applicable to the current Step. - repeated gauge.messages.Parameter parameters = 4; - - int32 stream = 5; -} - -/// Request sent ot the runner to check if given Step is valid. -/// The runner should check if there is an implementation defined for the given Step Text. -message StepValidateRequest { - /// The text is used to lookup Step implementation - string stepText = 1; - /// The number of paramters in the Step - int32 numberOfParameters = 2; - ///This is use to generate step implementation template - gauge.messages.ProtoStepValue stepValue = 3; -} - -/// Response of StepValidateRequest. -/// The runner tells the caller if the Request was valid, -/// i.e. an implementation exists for given Step text. -/// Returns an error message if it is an error response. -message StepValidateResponse { - enum ErrorType { - STEP_IMPLEMENTATION_NOT_FOUND = 0; - DUPLICATE_STEP_IMPLEMENTATION = 1; - } - bool isValid = 1; - string errorMessage = 2; - ErrorType errorType = 3; - string suggestion = 4; -} - -/// Result of the Suite Execution. -message SuiteExecutionResult { - gauge.messages.ProtoSuiteResult suiteResult = 1; -} - -message SuiteExecutionResultItem { - gauge.messages.ProtoItem resultItem = 1; -} - -/// Requests Gauge to give all Step Names. -message StepNamesRequest { -} - - -/// Response to StepNamesRequest -message StepNamesResponse { - /// Collection of strings corresponding to Step texts. - repeated string steps = 1; -} - -/// Request runner to initialize Scenario DataStore -/// Scenario Datastore is reset after every Scenario execution. -message ScenarioDataStoreInitRequest { - int32 stream = 1; -} - -/// Request runner to initialize Spec DataStore -/// Spec Datastore is reset after every Spec execution. -message SpecDataStoreInitRequest { - int32 stream = 1; -} - -/// Request runner to initialize Suite DataStore -/// Suite Datastore is reset after every Suite execution. -message SuiteDataStoreInitRequest { - int32 stream = 1; -} - -/// Holds the new and old positions of a parameter. -/// Used when refactoring a Step. -message ParameterPosition { - int32 oldPosition = 1; - int32 newPosition = 2; -} - -/// Tells the runner to refactor the specified Step. -message RefactorRequest { - /// Old value, used to lookup Step to refactor - gauge.messages.ProtoStepValue oldStepValue = 1; - /// New value, the to-be value of Step being refactored. - gauge.messages.ProtoStepValue newStepValue = 2; - /// Holds parameter positions of all parameters. Contains old and new parameter positions. - repeated ParameterPosition paramPositions = 3; - /// If set to true, the refactored files should be saved to the file system before returning the response. - bool saveChanges = 4; -} - -/// Give all file changes to be made to file system -message FileChanges { - string fileName = 1; - string fileContent = 2 [deprecated=true]; - repeated TextDiff diffs = 3; -} - -/// Response of a RefactorRequest -message RefactorResponse { - /// Flag indicating the success of Refactor operation. - bool success = 1; - /// Error message, valid only if Refactor wasn't successful - string error = 2; - /// List of files that were affected because of the refactoring. - repeated string filesChanged = 3; - /// List of file changes to be made to successfully achieve refactoring. - repeated FileChanges fileChanges = 4; -} - -/// Request for details on a Single Step. -message StepNameRequest { - /// Step text to lookup the Step. - /// This is the parsed step value, i.e. with placeholders for parameters. - string stepValue = 1; -} - -/// Response to StepNameRequest. -message StepNameResponse { - /// Flag indicating if there is a match for the given Step Text. - bool isStepPresent = 1; - /// The Step name of the given step. - repeated string stepName = 2; - /// Flag indicating if the given Step is an alias. - bool hasAlias = 3; - /// File name in which the step implementation exists - string fileName = 4; - /// Range of step - gauge.messages.Span span = 5; -} - -/// Response when a unsupported message request is sent. -message UnsupportedMessageResponse { - string message = 1; -} - -/// Request for caching a file. -/// Gauge sends this request when running in LSP mode, -/// so runner can cache file contents present on the client(an editor). -message CacheFileRequest { - enum FileStatus { - /// The file content was changed in the client - CHANGED = 0; - /// The file was closed in the client - CLOSED = 1; - /// The file was created on the client - CREATED = 2; - /// The file was deleted on the client - DELETED = 3; - /// The file is opened in the client - OPENED = 4; - } - /// File content of the file to be cached - string content = 1; - /// File path of the file to be cached - string filePath = 2; - /// Specifies if the file is closed - bool isClosed = 3; - /// Specifies the status of the file - FileStatus status = 4; -} - -/// Request for find step positions -message StepPositionsRequest { - /// Get step positions for file path - string filePath = 1; -} - -/// Response for find step positions -message StepPositionsResponse { - /// Step position for each step implementation - message StepPosition { - /// Step Value - string stepValue = 1; - /// Range of step - gauge.messages.Span span = 2; - } - /// Step Position - repeated StepPosition stepPositions = 1; - /// Error message - string error = 2; -} - -/// Request for getting Implementation file glob pattern -message ImplementationFileGlobPatternRequest { -} - -/// Response for getting Implementation file glob pattern -message ImplementationFileGlobPatternResponse { - /// List of implementation file glob patterns - repeated string globPatterns = 1; -} - -/// Request for getting Implementation file list -message ImplementationFileListRequest { -} - -/// Response for getting Implementation file list -message ImplementationFileListResponse { - /// List of implementation files - repeated string implementationFilePaths = 1; -} - -/// Request for injecting code snippet into implementation file -message StubImplementationCodeRequest { - /// Path of the file where the new stub implementation will be added - string implementationFilePath = 1; - - /// List of implementation codes to be appended to implementation file. - repeated string codes = 2; -} - -/// A Single Replace Diff Element to be applied -message TextDiff { - /// Range of file to be replaced - gauge.messages.Span span = 1; - - /// New content to replace the content in the span - string content = 2; -} - -/// Diffs to be applied to a file -message FileDiff { - /// File Path where the new content needs to be put in - string filePath = 1; - - /// The diffs which need to be applied to this file - repeated TextDiff textDiffs = 2; -} - - -/// Tell gauge to reset the kill timer, thus extending the life -message KeepAlive { - /// ID of the plugin initiating this request - string pluginId = 1; -} - -message SpecDetails { - /// Holds a collection of Spec details. - repeated SpecDetail details = 1; - - message SpecDetail { - /// Holds a collection of Specs that are defined in the project. - ProtoSpec spec = 1; - /// Holds a collection of parse errors present in the above spec. - repeated Error parseErrors = 2; - } -} - - -// Empty is a blank response, to be used when there is no return expected. -message Empty {} - -/// This is the message which gets transferred all the time -/// with proper message type set -/// One of the Request/Response fields will have value, depending on the MessageType set. -message Message { - enum MessageType { - ExecutionStarting = 0; - SpecExecutionStarting = 1; - SpecExecutionEnding = 2; - ScenarioExecutionStarting = 3; - ScenarioExecutionEnding = 4; - StepExecutionStarting = 5; - StepExecutionEnding = 6; - ExecuteStep = 7; - ExecutionEnding = 8; - StepValidateRequest = 9; - StepValidateResponse = 10; - ExecutionStatusResponse = 11; - StepNamesRequest = 12; - StepNamesResponse = 13; - KillProcessRequest = 14; - SuiteExecutionResult = 15; - ScenarioDataStoreInit = 16; - SpecDataStoreInit = 17; - SuiteDataStoreInit = 18; - StepNameRequest = 19; - StepNameResponse = 20; - RefactorRequest = 21; - RefactorResponse = 22; - UnsupportedMessageResponse = 23; - CacheFileRequest = 24; - StepPositionsRequest = 25; - StepPositionsResponse = 26; - ImplementationFileListRequest = 27; - ImplementationFileListResponse = 28; - StubImplementationCodeRequest = 29; - FileDiff = 30; - ImplementationFileGlobPatternRequest = 31; - ImplementationFileGlobPatternResponse = 32; - SuiteExecutionResultItem = 33; - KeepAlive = 34; - } - - MessageType messageType = 1; - - /// A unique id to represent this message. A response to the message should copy over this value. - /// This is used to synchronize messages & responses - int64 messageId = 2; - - /// [ExecutionStartingRequest](#gauge.messages.ExecutionStartingRequest) - ExecutionStartingRequest executionStartingRequest = 3; - /// [SpecExecutionStartingRequest](#gauge.messages.SpecExecutionStartingRequest) - SpecExecutionStartingRequest specExecutionStartingRequest = 4; - /// [SpecExecutionEndingRequest](#gauge.messages.SpecExecutionEndingRequest) - SpecExecutionEndingRequest specExecutionEndingRequest = 5; - /// [ScenarioExecutionStartingRequest](#gauge.messages.ScenarioExecutionStartingRequest) - ScenarioExecutionStartingRequest scenarioExecutionStartingRequest = 6; - /// [ScenarioExecutionEndingRequest](#gauge.messages.ScenarioExecutionEndingRequest) - ScenarioExecutionEndingRequest scenarioExecutionEndingRequest = 7; - /// [StepExecutionStartingRequest](#gauge.messages.StepExecutionStartingRequest) - StepExecutionStartingRequest stepExecutionStartingRequest = 8; - /// [StepExecutionEndingRequest](#gauge.messages.StepExecutionEndingRequest) - StepExecutionEndingRequest stepExecutionEndingRequest = 9; - /// [ExecuteStepRequest](#gauge.messages.ExecuteStepRequest) - ExecuteStepRequest executeStepRequest = 10; - /// [ExecutionEndingRequest](#gauge.messages.ExecutionEndingRequest) - ExecutionEndingRequest executionEndingRequest = 11; - /// [StepValidateRequest](#gauge.messages.StepValidateRequest) - StepValidateRequest stepValidateRequest = 12; - /// [StepValidateResponse](#gauge.messages.StepValidateResponse) - StepValidateResponse stepValidateResponse = 13; - /// [ExecutionStatusResponse](#gauge.messages.ExecutionStatusResponse) - ExecutionStatusResponse executionStatusResponse = 14; - /// [StepNamesRequest](#gauge.messages.StepNamesRequest) - StepNamesRequest stepNamesRequest = 15; - /// [StepNamesResponse](#gauge.messages.StepNamesResponse) - StepNamesResponse stepNamesResponse = 16; - /// [SuiteExecutionResult ](#gauge.messages.SuiteExecutionResult ) - SuiteExecutionResult suiteExecutionResult = 17; - /// [KillProcessRequest](#gauge.messages.KillProcessRequest) - KillProcessRequest killProcessRequest = 18; - /// [ScenarioDataStoreInitRequest](#gauge.messages.ScenarioDataStoreInitRequest) - ScenarioDataStoreInitRequest scenarioDataStoreInitRequest = 19; - /// [SpecDataStoreInitRequest](#gauge.messages.SpecDataStoreInitRequest) - SpecDataStoreInitRequest specDataStoreInitRequest = 20; - /// [SuiteDataStoreInitRequest](#gauge.messages.SuiteDataStoreInitRequest) - SuiteDataStoreInitRequest suiteDataStoreInitRequest = 21; - /// [StepNameRequest](#gauge.messages.StepNameRequest) - StepNameRequest stepNameRequest= 22; - /// [StepNameResponse](#gauge.messages.StepNameResponse) - StepNameResponse stepNameResponse= 23; - /// [RefactorRequest](#gauge.messages.RefactorRequest) - RefactorRequest refactorRequest = 24; - /// [RefactorResponse](#gauge.messages.RefactorResponse) - RefactorResponse refactorResponse = 25; - /// [UnsupportedMessageResponse](#gauge.messages.UnsupportedMessageResponse) - UnsupportedMessageResponse unsupportedMessageResponse = 26; - /// [CacheFileRequest](#gauge.messages.CacheFileRequest) - CacheFileRequest cacheFileRequest = 27; - /// [StepPositionsRequest](#gauge.messages.StepPositionsRequest) - StepPositionsRequest stepPositionsRequest = 28; - /// [StepPositionsResponse](#gauge.messages.StepPositionsResponse) - StepPositionsResponse stepPositionsResponse = 29; - /// [ImplementationFileListRequest](#gauge.messages.ImplementationFileListRequest) - ImplementationFileListRequest implementationFileListRequest = 30; - /// [ImplementationFileListResponse](#gauge.messages.ImplementationFileListResponse) - ImplementationFileListResponse implementationFileListResponse = 31; - /// [StubImplementationCodeRequest](#gauge.messages.StubImplementationCodeRequest) - StubImplementationCodeRequest stubImplementationCodeRequest = 32; - /// [FileDiff](#gauge.messages.FileDiff) - FileDiff fileDiff = 33; - /// [ImplementationFileGlobPatternRequest](#gauge.messages.ImplementationFileGlobPatternRequest) - ImplementationFileGlobPatternRequest implementationFileGlobPatternRequest = 34; - /// [ImplementationFileGlobPatternResponse](#gauge.messages.ImplementationFileGlobPatternResponse) - ImplementationFileGlobPatternResponse implementationFileGlobPatternResponse = 35; - /// [SuiteExecutionResult ](#gauge.messages.SuiteExecutionResult ) - SuiteExecutionResultItem suiteExecutionResultItem = 36; - /// [KeepAlive ](#gauge.messages.KeepAlive ) - KeepAlive keepAlive = 37; -} diff --git a/src/gen/messages_pb.d.ts b/src/gen/messages_pb.d.ts new file mode 100644 index 0000000..2822721 --- /dev/null +++ b/src/gen/messages_pb.d.ts @@ -0,0 +1,1685 @@ +// package: gauge.messages +// file: messages.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as spec_pb from "./spec_pb"; + +export class KillProcessRequest extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): KillProcessRequest.AsObject; + static toObject(includeInstance: boolean, msg: KillProcessRequest): KillProcessRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: KillProcessRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): KillProcessRequest; + static deserializeBinaryFromReader(message: KillProcessRequest, reader: jspb.BinaryReader): KillProcessRequest; +} + +export namespace KillProcessRequest { + export type AsObject = { + } +} + +export class ExecutionStatusResponse extends jspb.Message { + + hasExecutionresult(): boolean; + clearExecutionresult(): void; + getExecutionresult(): spec_pb.ProtoExecutionResult | undefined; + setExecutionresult(value?: spec_pb.ProtoExecutionResult): ExecutionStatusResponse; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ExecutionStatusResponse.AsObject; + static toObject(includeInstance: boolean, msg: ExecutionStatusResponse): ExecutionStatusResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ExecutionStatusResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ExecutionStatusResponse; + static deserializeBinaryFromReader(message: ExecutionStatusResponse, reader: jspb.BinaryReader): ExecutionStatusResponse; +} + +export namespace ExecutionStatusResponse { + export type AsObject = { + executionresult?: spec_pb.ProtoExecutionResult.AsObject, + } +} + +export class ExecutionStartingRequest extends jspb.Message { + + hasCurrentexecutioninfo(): boolean; + clearCurrentexecutioninfo(): void; + getCurrentexecutioninfo(): ExecutionInfo | undefined; + setCurrentexecutioninfo(value?: ExecutionInfo): ExecutionStartingRequest; + + + hasSuiteresult(): boolean; + clearSuiteresult(): void; + getSuiteresult(): spec_pb.ProtoSuiteResult | undefined; + setSuiteresult(value?: spec_pb.ProtoSuiteResult): ExecutionStartingRequest; + + getStream(): number; + setStream(value: number): ExecutionStartingRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ExecutionStartingRequest.AsObject; + static toObject(includeInstance: boolean, msg: ExecutionStartingRequest): ExecutionStartingRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ExecutionStartingRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ExecutionStartingRequest; + static deserializeBinaryFromReader(message: ExecutionStartingRequest, reader: jspb.BinaryReader): ExecutionStartingRequest; +} + +export namespace ExecutionStartingRequest { + export type AsObject = { + currentexecutioninfo?: ExecutionInfo.AsObject, + suiteresult?: spec_pb.ProtoSuiteResult.AsObject, + stream: number, + } +} + +export class ExecutionEndingRequest extends jspb.Message { + + hasCurrentexecutioninfo(): boolean; + clearCurrentexecutioninfo(): void; + getCurrentexecutioninfo(): ExecutionInfo | undefined; + setCurrentexecutioninfo(value?: ExecutionInfo): ExecutionEndingRequest; + + + hasSuiteresult(): boolean; + clearSuiteresult(): void; + getSuiteresult(): spec_pb.ProtoSuiteResult | undefined; + setSuiteresult(value?: spec_pb.ProtoSuiteResult): ExecutionEndingRequest; + + getStream(): number; + setStream(value: number): ExecutionEndingRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ExecutionEndingRequest.AsObject; + static toObject(includeInstance: boolean, msg: ExecutionEndingRequest): ExecutionEndingRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ExecutionEndingRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ExecutionEndingRequest; + static deserializeBinaryFromReader(message: ExecutionEndingRequest, reader: jspb.BinaryReader): ExecutionEndingRequest; +} + +export namespace ExecutionEndingRequest { + export type AsObject = { + currentexecutioninfo?: ExecutionInfo.AsObject, + suiteresult?: spec_pb.ProtoSuiteResult.AsObject, + stream: number, + } +} + +export class SpecExecutionStartingRequest extends jspb.Message { + + hasCurrentexecutioninfo(): boolean; + clearCurrentexecutioninfo(): void; + getCurrentexecutioninfo(): ExecutionInfo | undefined; + setCurrentexecutioninfo(value?: ExecutionInfo): SpecExecutionStartingRequest; + + + hasSpecresult(): boolean; + clearSpecresult(): void; + getSpecresult(): spec_pb.ProtoSpecResult | undefined; + setSpecresult(value?: spec_pb.ProtoSpecResult): SpecExecutionStartingRequest; + + getStream(): number; + setStream(value: number): SpecExecutionStartingRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SpecExecutionStartingRequest.AsObject; + static toObject(includeInstance: boolean, msg: SpecExecutionStartingRequest): SpecExecutionStartingRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SpecExecutionStartingRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SpecExecutionStartingRequest; + static deserializeBinaryFromReader(message: SpecExecutionStartingRequest, reader: jspb.BinaryReader): SpecExecutionStartingRequest; +} + +export namespace SpecExecutionStartingRequest { + export type AsObject = { + currentexecutioninfo?: ExecutionInfo.AsObject, + specresult?: spec_pb.ProtoSpecResult.AsObject, + stream: number, + } +} + +export class SpecExecutionEndingRequest extends jspb.Message { + + hasCurrentexecutioninfo(): boolean; + clearCurrentexecutioninfo(): void; + getCurrentexecutioninfo(): ExecutionInfo | undefined; + setCurrentexecutioninfo(value?: ExecutionInfo): SpecExecutionEndingRequest; + + + hasSpecresult(): boolean; + clearSpecresult(): void; + getSpecresult(): spec_pb.ProtoSpecResult | undefined; + setSpecresult(value?: spec_pb.ProtoSpecResult): SpecExecutionEndingRequest; + + getStream(): number; + setStream(value: number): SpecExecutionEndingRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SpecExecutionEndingRequest.AsObject; + static toObject(includeInstance: boolean, msg: SpecExecutionEndingRequest): SpecExecutionEndingRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SpecExecutionEndingRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SpecExecutionEndingRequest; + static deserializeBinaryFromReader(message: SpecExecutionEndingRequest, reader: jspb.BinaryReader): SpecExecutionEndingRequest; +} + +export namespace SpecExecutionEndingRequest { + export type AsObject = { + currentexecutioninfo?: ExecutionInfo.AsObject, + specresult?: spec_pb.ProtoSpecResult.AsObject, + stream: number, + } +} + +export class ScenarioExecutionStartingRequest extends jspb.Message { + + hasCurrentexecutioninfo(): boolean; + clearCurrentexecutioninfo(): void; + getCurrentexecutioninfo(): ExecutionInfo | undefined; + setCurrentexecutioninfo(value?: ExecutionInfo): ScenarioExecutionStartingRequest; + + + hasScenarioresult(): boolean; + clearScenarioresult(): void; + getScenarioresult(): spec_pb.ProtoScenarioResult | undefined; + setScenarioresult(value?: spec_pb.ProtoScenarioResult): ScenarioExecutionStartingRequest; + + getStream(): number; + setStream(value: number): ScenarioExecutionStartingRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ScenarioExecutionStartingRequest.AsObject; + static toObject(includeInstance: boolean, msg: ScenarioExecutionStartingRequest): ScenarioExecutionStartingRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ScenarioExecutionStartingRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ScenarioExecutionStartingRequest; + static deserializeBinaryFromReader(message: ScenarioExecutionStartingRequest, reader: jspb.BinaryReader): ScenarioExecutionStartingRequest; +} + +export namespace ScenarioExecutionStartingRequest { + export type AsObject = { + currentexecutioninfo?: ExecutionInfo.AsObject, + scenarioresult?: spec_pb.ProtoScenarioResult.AsObject, + stream: number, + } +} + +export class ScenarioExecutionEndingRequest extends jspb.Message { + + hasCurrentexecutioninfo(): boolean; + clearCurrentexecutioninfo(): void; + getCurrentexecutioninfo(): ExecutionInfo | undefined; + setCurrentexecutioninfo(value?: ExecutionInfo): ScenarioExecutionEndingRequest; + + + hasScenarioresult(): boolean; + clearScenarioresult(): void; + getScenarioresult(): spec_pb.ProtoScenarioResult | undefined; + setScenarioresult(value?: spec_pb.ProtoScenarioResult): ScenarioExecutionEndingRequest; + + getStream(): number; + setStream(value: number): ScenarioExecutionEndingRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ScenarioExecutionEndingRequest.AsObject; + static toObject(includeInstance: boolean, msg: ScenarioExecutionEndingRequest): ScenarioExecutionEndingRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ScenarioExecutionEndingRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ScenarioExecutionEndingRequest; + static deserializeBinaryFromReader(message: ScenarioExecutionEndingRequest, reader: jspb.BinaryReader): ScenarioExecutionEndingRequest; +} + +export namespace ScenarioExecutionEndingRequest { + export type AsObject = { + currentexecutioninfo?: ExecutionInfo.AsObject, + scenarioresult?: spec_pb.ProtoScenarioResult.AsObject, + stream: number, + } +} + +export class StepExecutionStartingRequest extends jspb.Message { + + hasCurrentexecutioninfo(): boolean; + clearCurrentexecutioninfo(): void; + getCurrentexecutioninfo(): ExecutionInfo | undefined; + setCurrentexecutioninfo(value?: ExecutionInfo): StepExecutionStartingRequest; + + + hasStepresult(): boolean; + clearStepresult(): void; + getStepresult(): spec_pb.ProtoStepResult | undefined; + setStepresult(value?: spec_pb.ProtoStepResult): StepExecutionStartingRequest; + + getStream(): number; + setStream(value: number): StepExecutionStartingRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StepExecutionStartingRequest.AsObject; + static toObject(includeInstance: boolean, msg: StepExecutionStartingRequest): StepExecutionStartingRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StepExecutionStartingRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StepExecutionStartingRequest; + static deserializeBinaryFromReader(message: StepExecutionStartingRequest, reader: jspb.BinaryReader): StepExecutionStartingRequest; +} + +export namespace StepExecutionStartingRequest { + export type AsObject = { + currentexecutioninfo?: ExecutionInfo.AsObject, + stepresult?: spec_pb.ProtoStepResult.AsObject, + stream: number, + } +} + +export class StepExecutionEndingRequest extends jspb.Message { + + hasCurrentexecutioninfo(): boolean; + clearCurrentexecutioninfo(): void; + getCurrentexecutioninfo(): ExecutionInfo | undefined; + setCurrentexecutioninfo(value?: ExecutionInfo): StepExecutionEndingRequest; + + + hasStepresult(): boolean; + clearStepresult(): void; + getStepresult(): spec_pb.ProtoStepResult | undefined; + setStepresult(value?: spec_pb.ProtoStepResult): StepExecutionEndingRequest; + + getStream(): number; + setStream(value: number): StepExecutionEndingRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StepExecutionEndingRequest.AsObject; + static toObject(includeInstance: boolean, msg: StepExecutionEndingRequest): StepExecutionEndingRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StepExecutionEndingRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StepExecutionEndingRequest; + static deserializeBinaryFromReader(message: StepExecutionEndingRequest, reader: jspb.BinaryReader): StepExecutionEndingRequest; +} + +export namespace StepExecutionEndingRequest { + export type AsObject = { + currentexecutioninfo?: ExecutionInfo.AsObject, + stepresult?: spec_pb.ProtoStepResult.AsObject, + stream: number, + } +} + +export class ExecutionArg extends jspb.Message { + getFlagname(): string; + setFlagname(value: string): ExecutionArg; + + clearFlagvalueList(): void; + getFlagvalueList(): Array; + setFlagvalueList(value: Array): ExecutionArg; + addFlagvalue(value: string, index?: number): string; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ExecutionArg.AsObject; + static toObject(includeInstance: boolean, msg: ExecutionArg): ExecutionArg.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ExecutionArg, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ExecutionArg; + static deserializeBinaryFromReader(message: ExecutionArg, reader: jspb.BinaryReader): ExecutionArg; +} + +export namespace ExecutionArg { + export type AsObject = { + flagname: string, + flagvalueList: Array, + } +} + +export class ExecutionInfo extends jspb.Message { + + hasCurrentspec(): boolean; + clearCurrentspec(): void; + getCurrentspec(): SpecInfo | undefined; + setCurrentspec(value?: SpecInfo): ExecutionInfo; + + + hasCurrentscenario(): boolean; + clearCurrentscenario(): void; + getCurrentscenario(): ScenarioInfo | undefined; + setCurrentscenario(value?: ScenarioInfo): ExecutionInfo; + + + hasCurrentstep(): boolean; + clearCurrentstep(): void; + getCurrentstep(): StepInfo | undefined; + setCurrentstep(value?: StepInfo): ExecutionInfo; + + getStacktrace(): string; + setStacktrace(value: string): ExecutionInfo; + + getProjectname(): string; + setProjectname(value: string): ExecutionInfo; + + clearExecutionargsList(): void; + getExecutionargsList(): Array; + setExecutionargsList(value: Array): ExecutionInfo; + addExecutionargs(value?: ExecutionArg, index?: number): ExecutionArg; + + getNumberofexecutionstreams(): number; + setNumberofexecutionstreams(value: number): ExecutionInfo; + + getRunnerid(): number; + setRunnerid(value: number): ExecutionInfo; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ExecutionInfo.AsObject; + static toObject(includeInstance: boolean, msg: ExecutionInfo): ExecutionInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ExecutionInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ExecutionInfo; + static deserializeBinaryFromReader(message: ExecutionInfo, reader: jspb.BinaryReader): ExecutionInfo; +} + +export namespace ExecutionInfo { + export type AsObject = { + currentspec?: SpecInfo.AsObject, + currentscenario?: ScenarioInfo.AsObject, + currentstep?: StepInfo.AsObject, + stacktrace: string, + projectname: string, + executionargsList: Array, + numberofexecutionstreams: number, + runnerid: number, + } +} + +export class SpecInfo extends jspb.Message { + getName(): string; + setName(value: string): SpecInfo; + + getFilename(): string; + setFilename(value: string): SpecInfo; + + getIsfailed(): boolean; + setIsfailed(value: boolean): SpecInfo; + + clearTagsList(): void; + getTagsList(): Array; + setTagsList(value: Array): SpecInfo; + addTags(value: string, index?: number): string; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SpecInfo.AsObject; + static toObject(includeInstance: boolean, msg: SpecInfo): SpecInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SpecInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SpecInfo; + static deserializeBinaryFromReader(message: SpecInfo, reader: jspb.BinaryReader): SpecInfo; +} + +export namespace SpecInfo { + export type AsObject = { + name: string, + filename: string, + isfailed: boolean, + tagsList: Array, + } +} + +export class ScenarioInfo extends jspb.Message { + getName(): string; + setName(value: string): ScenarioInfo; + + getIsfailed(): boolean; + setIsfailed(value: boolean): ScenarioInfo; + + clearTagsList(): void; + getTagsList(): Array; + setTagsList(value: Array): ScenarioInfo; + addTags(value: string, index?: number): string; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ScenarioInfo.AsObject; + static toObject(includeInstance: boolean, msg: ScenarioInfo): ScenarioInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ScenarioInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ScenarioInfo; + static deserializeBinaryFromReader(message: ScenarioInfo, reader: jspb.BinaryReader): ScenarioInfo; +} + +export namespace ScenarioInfo { + export type AsObject = { + name: string, + isfailed: boolean, + tagsList: Array, + } +} + +export class StepInfo extends jspb.Message { + + hasStep(): boolean; + clearStep(): void; + getStep(): ExecuteStepRequest | undefined; + setStep(value?: ExecuteStepRequest): StepInfo; + + getIsfailed(): boolean; + setIsfailed(value: boolean): StepInfo; + + getStacktrace(): string; + setStacktrace(value: string): StepInfo; + + getErrormessage(): string; + setErrormessage(value: string): StepInfo; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StepInfo.AsObject; + static toObject(includeInstance: boolean, msg: StepInfo): StepInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StepInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StepInfo; + static deserializeBinaryFromReader(message: StepInfo, reader: jspb.BinaryReader): StepInfo; +} + +export namespace StepInfo { + export type AsObject = { + step?: ExecuteStepRequest.AsObject, + isfailed: boolean, + stacktrace: string, + errormessage: string, + } +} + +export class ExecuteStepRequest extends jspb.Message { + getActualsteptext(): string; + setActualsteptext(value: string): ExecuteStepRequest; + + getParsedsteptext(): string; + setParsedsteptext(value: string): ExecuteStepRequest; + + getScenariofailing(): boolean; + setScenariofailing(value: boolean): ExecuteStepRequest; + + clearParametersList(): void; + getParametersList(): Array; + setParametersList(value: Array): ExecuteStepRequest; + addParameters(value?: spec_pb.Parameter, index?: number): spec_pb.Parameter; + + getStream(): number; + setStream(value: number): ExecuteStepRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ExecuteStepRequest.AsObject; + static toObject(includeInstance: boolean, msg: ExecuteStepRequest): ExecuteStepRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ExecuteStepRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ExecuteStepRequest; + static deserializeBinaryFromReader(message: ExecuteStepRequest, reader: jspb.BinaryReader): ExecuteStepRequest; +} + +export namespace ExecuteStepRequest { + export type AsObject = { + actualsteptext: string, + parsedsteptext: string, + scenariofailing: boolean, + parametersList: Array, + stream: number, + } +} + +export class StepValidateRequest extends jspb.Message { + getSteptext(): string; + setSteptext(value: string): StepValidateRequest; + + getNumberofparameters(): number; + setNumberofparameters(value: number): StepValidateRequest; + + + hasStepvalue(): boolean; + clearStepvalue(): void; + getStepvalue(): spec_pb.ProtoStepValue | undefined; + setStepvalue(value?: spec_pb.ProtoStepValue): StepValidateRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StepValidateRequest.AsObject; + static toObject(includeInstance: boolean, msg: StepValidateRequest): StepValidateRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StepValidateRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StepValidateRequest; + static deserializeBinaryFromReader(message: StepValidateRequest, reader: jspb.BinaryReader): StepValidateRequest; +} + +export namespace StepValidateRequest { + export type AsObject = { + steptext: string, + numberofparameters: number, + stepvalue?: spec_pb.ProtoStepValue.AsObject, + } +} + +export class StepValidateResponse extends jspb.Message { + getIsvalid(): boolean; + setIsvalid(value: boolean): StepValidateResponse; + + getErrormessage(): string; + setErrormessage(value: string): StepValidateResponse; + + getErrortype(): StepValidateResponse.ErrorType; + setErrortype(value: StepValidateResponse.ErrorType): StepValidateResponse; + + getSuggestion(): string; + setSuggestion(value: string): StepValidateResponse; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StepValidateResponse.AsObject; + static toObject(includeInstance: boolean, msg: StepValidateResponse): StepValidateResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StepValidateResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StepValidateResponse; + static deserializeBinaryFromReader(message: StepValidateResponse, reader: jspb.BinaryReader): StepValidateResponse; +} + +export namespace StepValidateResponse { + export type AsObject = { + isvalid: boolean, + errormessage: string, + errortype: StepValidateResponse.ErrorType, + suggestion: string, + } + + export enum ErrorType { + STEP_IMPLEMENTATION_NOT_FOUND = 0, + DUPLICATE_STEP_IMPLEMENTATION = 1, + } + +} + +export class SuiteExecutionResult extends jspb.Message { + + hasSuiteresult(): boolean; + clearSuiteresult(): void; + getSuiteresult(): spec_pb.ProtoSuiteResult | undefined; + setSuiteresult(value?: spec_pb.ProtoSuiteResult): SuiteExecutionResult; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SuiteExecutionResult.AsObject; + static toObject(includeInstance: boolean, msg: SuiteExecutionResult): SuiteExecutionResult.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SuiteExecutionResult, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SuiteExecutionResult; + static deserializeBinaryFromReader(message: SuiteExecutionResult, reader: jspb.BinaryReader): SuiteExecutionResult; +} + +export namespace SuiteExecutionResult { + export type AsObject = { + suiteresult?: spec_pb.ProtoSuiteResult.AsObject, + } +} + +export class SuiteExecutionResultItem extends jspb.Message { + + hasResultitem(): boolean; + clearResultitem(): void; + getResultitem(): spec_pb.ProtoItem | undefined; + setResultitem(value?: spec_pb.ProtoItem): SuiteExecutionResultItem; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SuiteExecutionResultItem.AsObject; + static toObject(includeInstance: boolean, msg: SuiteExecutionResultItem): SuiteExecutionResultItem.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SuiteExecutionResultItem, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SuiteExecutionResultItem; + static deserializeBinaryFromReader(message: SuiteExecutionResultItem, reader: jspb.BinaryReader): SuiteExecutionResultItem; +} + +export namespace SuiteExecutionResultItem { + export type AsObject = { + resultitem?: spec_pb.ProtoItem.AsObject, + } +} + +export class StepNamesRequest extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StepNamesRequest.AsObject; + static toObject(includeInstance: boolean, msg: StepNamesRequest): StepNamesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StepNamesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StepNamesRequest; + static deserializeBinaryFromReader(message: StepNamesRequest, reader: jspb.BinaryReader): StepNamesRequest; +} + +export namespace StepNamesRequest { + export type AsObject = { + } +} + +export class StepNamesResponse extends jspb.Message { + clearStepsList(): void; + getStepsList(): Array; + setStepsList(value: Array): StepNamesResponse; + addSteps(value: string, index?: number): string; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StepNamesResponse.AsObject; + static toObject(includeInstance: boolean, msg: StepNamesResponse): StepNamesResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StepNamesResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StepNamesResponse; + static deserializeBinaryFromReader(message: StepNamesResponse, reader: jspb.BinaryReader): StepNamesResponse; +} + +export namespace StepNamesResponse { + export type AsObject = { + stepsList: Array, + } +} + +export class ScenarioDataStoreInitRequest extends jspb.Message { + getStream(): number; + setStream(value: number): ScenarioDataStoreInitRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ScenarioDataStoreInitRequest.AsObject; + static toObject(includeInstance: boolean, msg: ScenarioDataStoreInitRequest): ScenarioDataStoreInitRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ScenarioDataStoreInitRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ScenarioDataStoreInitRequest; + static deserializeBinaryFromReader(message: ScenarioDataStoreInitRequest, reader: jspb.BinaryReader): ScenarioDataStoreInitRequest; +} + +export namespace ScenarioDataStoreInitRequest { + export type AsObject = { + stream: number, + } +} + +export class SpecDataStoreInitRequest extends jspb.Message { + getStream(): number; + setStream(value: number): SpecDataStoreInitRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SpecDataStoreInitRequest.AsObject; + static toObject(includeInstance: boolean, msg: SpecDataStoreInitRequest): SpecDataStoreInitRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SpecDataStoreInitRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SpecDataStoreInitRequest; + static deserializeBinaryFromReader(message: SpecDataStoreInitRequest, reader: jspb.BinaryReader): SpecDataStoreInitRequest; +} + +export namespace SpecDataStoreInitRequest { + export type AsObject = { + stream: number, + } +} + +export class SuiteDataStoreInitRequest extends jspb.Message { + getStream(): number; + setStream(value: number): SuiteDataStoreInitRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SuiteDataStoreInitRequest.AsObject; + static toObject(includeInstance: boolean, msg: SuiteDataStoreInitRequest): SuiteDataStoreInitRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SuiteDataStoreInitRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SuiteDataStoreInitRequest; + static deserializeBinaryFromReader(message: SuiteDataStoreInitRequest, reader: jspb.BinaryReader): SuiteDataStoreInitRequest; +} + +export namespace SuiteDataStoreInitRequest { + export type AsObject = { + stream: number, + } +} + +export class ParameterPosition extends jspb.Message { + getOldposition(): number; + setOldposition(value: number): ParameterPosition; + + getNewposition(): number; + setNewposition(value: number): ParameterPosition; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ParameterPosition.AsObject; + static toObject(includeInstance: boolean, msg: ParameterPosition): ParameterPosition.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ParameterPosition, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ParameterPosition; + static deserializeBinaryFromReader(message: ParameterPosition, reader: jspb.BinaryReader): ParameterPosition; +} + +export namespace ParameterPosition { + export type AsObject = { + oldposition: number, + newposition: number, + } +} + +export class RefactorRequest extends jspb.Message { + + hasOldstepvalue(): boolean; + clearOldstepvalue(): void; + getOldstepvalue(): spec_pb.ProtoStepValue | undefined; + setOldstepvalue(value?: spec_pb.ProtoStepValue): RefactorRequest; + + + hasNewstepvalue(): boolean; + clearNewstepvalue(): void; + getNewstepvalue(): spec_pb.ProtoStepValue | undefined; + setNewstepvalue(value?: spec_pb.ProtoStepValue): RefactorRequest; + + clearParampositionsList(): void; + getParampositionsList(): Array; + setParampositionsList(value: Array): RefactorRequest; + addParampositions(value?: ParameterPosition, index?: number): ParameterPosition; + + getSavechanges(): boolean; + setSavechanges(value: boolean): RefactorRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RefactorRequest.AsObject; + static toObject(includeInstance: boolean, msg: RefactorRequest): RefactorRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RefactorRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RefactorRequest; + static deserializeBinaryFromReader(message: RefactorRequest, reader: jspb.BinaryReader): RefactorRequest; +} + +export namespace RefactorRequest { + export type AsObject = { + oldstepvalue?: spec_pb.ProtoStepValue.AsObject, + newstepvalue?: spec_pb.ProtoStepValue.AsObject, + parampositionsList: Array, + savechanges: boolean, + } +} + +export class FileChanges extends jspb.Message { + getFilename(): string; + setFilename(value: string): FileChanges; + + getFilecontent(): string; + setFilecontent(value: string): FileChanges; + + clearDiffsList(): void; + getDiffsList(): Array; + setDiffsList(value: Array): FileChanges; + addDiffs(value?: TextDiff, index?: number): TextDiff; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FileChanges.AsObject; + static toObject(includeInstance: boolean, msg: FileChanges): FileChanges.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: FileChanges, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FileChanges; + static deserializeBinaryFromReader(message: FileChanges, reader: jspb.BinaryReader): FileChanges; +} + +export namespace FileChanges { + export type AsObject = { + filename: string, + filecontent: string, + diffsList: Array, + } +} + +export class RefactorResponse extends jspb.Message { + getSuccess(): boolean; + setSuccess(value: boolean): RefactorResponse; + + getError(): string; + setError(value: string): RefactorResponse; + + clearFileschangedList(): void; + getFileschangedList(): Array; + setFileschangedList(value: Array): RefactorResponse; + addFileschanged(value: string, index?: number): string; + + clearFilechangesList(): void; + getFilechangesList(): Array; + setFilechangesList(value: Array): RefactorResponse; + addFilechanges(value?: FileChanges, index?: number): FileChanges; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RefactorResponse.AsObject; + static toObject(includeInstance: boolean, msg: RefactorResponse): RefactorResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RefactorResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RefactorResponse; + static deserializeBinaryFromReader(message: RefactorResponse, reader: jspb.BinaryReader): RefactorResponse; +} + +export namespace RefactorResponse { + export type AsObject = { + success: boolean, + error: string, + fileschangedList: Array, + filechangesList: Array, + } +} + +export class StepNameRequest extends jspb.Message { + getStepvalue(): string; + setStepvalue(value: string): StepNameRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StepNameRequest.AsObject; + static toObject(includeInstance: boolean, msg: StepNameRequest): StepNameRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StepNameRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StepNameRequest; + static deserializeBinaryFromReader(message: StepNameRequest, reader: jspb.BinaryReader): StepNameRequest; +} + +export namespace StepNameRequest { + export type AsObject = { + stepvalue: string, + } +} + +export class StepNameResponse extends jspb.Message { + getIssteppresent(): boolean; + setIssteppresent(value: boolean): StepNameResponse; + + clearStepnameList(): void; + getStepnameList(): Array; + setStepnameList(value: Array): StepNameResponse; + addStepname(value: string, index?: number): string; + + getHasalias(): boolean; + setHasalias(value: boolean): StepNameResponse; + + getFilename(): string; + setFilename(value: string): StepNameResponse; + + + hasSpan(): boolean; + clearSpan(): void; + getSpan(): spec_pb.Span | undefined; + setSpan(value?: spec_pb.Span): StepNameResponse; + + getIsexternal(): boolean; + setIsexternal(value: boolean): StepNameResponse; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StepNameResponse.AsObject; + static toObject(includeInstance: boolean, msg: StepNameResponse): StepNameResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StepNameResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StepNameResponse; + static deserializeBinaryFromReader(message: StepNameResponse, reader: jspb.BinaryReader): StepNameResponse; +} + +export namespace StepNameResponse { + export type AsObject = { + issteppresent: boolean, + stepnameList: Array, + hasalias: boolean, + filename: string, + span?: spec_pb.Span.AsObject, + isexternal: boolean, + } +} + +export class UnsupportedMessageResponse extends jspb.Message { + getMessage(): string; + setMessage(value: string): UnsupportedMessageResponse; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UnsupportedMessageResponse.AsObject; + static toObject(includeInstance: boolean, msg: UnsupportedMessageResponse): UnsupportedMessageResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UnsupportedMessageResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UnsupportedMessageResponse; + static deserializeBinaryFromReader(message: UnsupportedMessageResponse, reader: jspb.BinaryReader): UnsupportedMessageResponse; +} + +export namespace UnsupportedMessageResponse { + export type AsObject = { + message: string, + } +} + +export class CacheFileRequest extends jspb.Message { + getContent(): string; + setContent(value: string): CacheFileRequest; + + getFilepath(): string; + setFilepath(value: string): CacheFileRequest; + + getIsclosed(): boolean; + setIsclosed(value: boolean): CacheFileRequest; + + getStatus(): CacheFileRequest.FileStatus; + setStatus(value: CacheFileRequest.FileStatus): CacheFileRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CacheFileRequest.AsObject; + static toObject(includeInstance: boolean, msg: CacheFileRequest): CacheFileRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CacheFileRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CacheFileRequest; + static deserializeBinaryFromReader(message: CacheFileRequest, reader: jspb.BinaryReader): CacheFileRequest; +} + +export namespace CacheFileRequest { + export type AsObject = { + content: string, + filepath: string, + isclosed: boolean, + status: CacheFileRequest.FileStatus, + } + + export enum FileStatus { + CHANGED = 0, + CLOSED = 1, + CREATED = 2, + DELETED = 3, + OPENED = 4, + } + +} + +export class StepPositionsRequest extends jspb.Message { + getFilepath(): string; + setFilepath(value: string): StepPositionsRequest; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StepPositionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: StepPositionsRequest): StepPositionsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StepPositionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StepPositionsRequest; + static deserializeBinaryFromReader(message: StepPositionsRequest, reader: jspb.BinaryReader): StepPositionsRequest; +} + +export namespace StepPositionsRequest { + export type AsObject = { + filepath: string, + } +} + +export class StepPositionsResponse extends jspb.Message { + clearSteppositionsList(): void; + getSteppositionsList(): Array; + setSteppositionsList(value: Array): StepPositionsResponse; + addSteppositions(value?: StepPositionsResponse.StepPosition, index?: number): StepPositionsResponse.StepPosition; + + getError(): string; + setError(value: string): StepPositionsResponse; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StepPositionsResponse.AsObject; + static toObject(includeInstance: boolean, msg: StepPositionsResponse): StepPositionsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StepPositionsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StepPositionsResponse; + static deserializeBinaryFromReader(message: StepPositionsResponse, reader: jspb.BinaryReader): StepPositionsResponse; +} + +export namespace StepPositionsResponse { + export type AsObject = { + steppositionsList: Array, + error: string, + } + + + export class StepPosition extends jspb.Message { + getStepvalue(): string; + setStepvalue(value: string): StepPosition; + + + hasSpan(): boolean; + clearSpan(): void; + getSpan(): spec_pb.Span | undefined; + setSpan(value?: spec_pb.Span): StepPosition; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StepPosition.AsObject; + static toObject(includeInstance: boolean, msg: StepPosition): StepPosition.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StepPosition, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StepPosition; + static deserializeBinaryFromReader(message: StepPosition, reader: jspb.BinaryReader): StepPosition; + } + + export namespace StepPosition { + export type AsObject = { + stepvalue: string, + span?: spec_pb.Span.AsObject, + } + } + +} + +export class ImplementationFileGlobPatternRequest extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ImplementationFileGlobPatternRequest.AsObject; + static toObject(includeInstance: boolean, msg: ImplementationFileGlobPatternRequest): ImplementationFileGlobPatternRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ImplementationFileGlobPatternRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ImplementationFileGlobPatternRequest; + static deserializeBinaryFromReader(message: ImplementationFileGlobPatternRequest, reader: jspb.BinaryReader): ImplementationFileGlobPatternRequest; +} + +export namespace ImplementationFileGlobPatternRequest { + export type AsObject = { + } +} + +export class ImplementationFileGlobPatternResponse extends jspb.Message { + clearGlobpatternsList(): void; + getGlobpatternsList(): Array; + setGlobpatternsList(value: Array): ImplementationFileGlobPatternResponse; + addGlobpatterns(value: string, index?: number): string; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ImplementationFileGlobPatternResponse.AsObject; + static toObject(includeInstance: boolean, msg: ImplementationFileGlobPatternResponse): ImplementationFileGlobPatternResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ImplementationFileGlobPatternResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ImplementationFileGlobPatternResponse; + static deserializeBinaryFromReader(message: ImplementationFileGlobPatternResponse, reader: jspb.BinaryReader): ImplementationFileGlobPatternResponse; +} + +export namespace ImplementationFileGlobPatternResponse { + export type AsObject = { + globpatternsList: Array, + } +} + +export class ImplementationFileListRequest extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ImplementationFileListRequest.AsObject; + static toObject(includeInstance: boolean, msg: ImplementationFileListRequest): ImplementationFileListRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ImplementationFileListRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ImplementationFileListRequest; + static deserializeBinaryFromReader(message: ImplementationFileListRequest, reader: jspb.BinaryReader): ImplementationFileListRequest; +} + +export namespace ImplementationFileListRequest { + export type AsObject = { + } +} + +export class ImplementationFileListResponse extends jspb.Message { + clearImplementationfilepathsList(): void; + getImplementationfilepathsList(): Array; + setImplementationfilepathsList(value: Array): ImplementationFileListResponse; + addImplementationfilepaths(value: string, index?: number): string; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ImplementationFileListResponse.AsObject; + static toObject(includeInstance: boolean, msg: ImplementationFileListResponse): ImplementationFileListResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ImplementationFileListResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ImplementationFileListResponse; + static deserializeBinaryFromReader(message: ImplementationFileListResponse, reader: jspb.BinaryReader): ImplementationFileListResponse; +} + +export namespace ImplementationFileListResponse { + export type AsObject = { + implementationfilepathsList: Array, + } +} + +export class StubImplementationCodeRequest extends jspb.Message { + getImplementationfilepath(): string; + setImplementationfilepath(value: string): StubImplementationCodeRequest; + + clearCodesList(): void; + getCodesList(): Array; + setCodesList(value: Array): StubImplementationCodeRequest; + addCodes(value: string, index?: number): string; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StubImplementationCodeRequest.AsObject; + static toObject(includeInstance: boolean, msg: StubImplementationCodeRequest): StubImplementationCodeRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StubImplementationCodeRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StubImplementationCodeRequest; + static deserializeBinaryFromReader(message: StubImplementationCodeRequest, reader: jspb.BinaryReader): StubImplementationCodeRequest; +} + +export namespace StubImplementationCodeRequest { + export type AsObject = { + implementationfilepath: string, + codesList: Array, + } +} + +export class TextDiff extends jspb.Message { + + hasSpan(): boolean; + clearSpan(): void; + getSpan(): spec_pb.Span | undefined; + setSpan(value?: spec_pb.Span): TextDiff; + + getContent(): string; + setContent(value: string): TextDiff; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TextDiff.AsObject; + static toObject(includeInstance: boolean, msg: TextDiff): TextDiff.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TextDiff, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TextDiff; + static deserializeBinaryFromReader(message: TextDiff, reader: jspb.BinaryReader): TextDiff; +} + +export namespace TextDiff { + export type AsObject = { + span?: spec_pb.Span.AsObject, + content: string, + } +} + +export class FileDiff extends jspb.Message { + getFilepath(): string; + setFilepath(value: string): FileDiff; + + clearTextdiffsList(): void; + getTextdiffsList(): Array; + setTextdiffsList(value: Array): FileDiff; + addTextdiffs(value?: TextDiff, index?: number): TextDiff; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FileDiff.AsObject; + static toObject(includeInstance: boolean, msg: FileDiff): FileDiff.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: FileDiff, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FileDiff; + static deserializeBinaryFromReader(message: FileDiff, reader: jspb.BinaryReader): FileDiff; +} + +export namespace FileDiff { + export type AsObject = { + filepath: string, + textdiffsList: Array, + } +} + +export class KeepAlive extends jspb.Message { + getPluginid(): string; + setPluginid(value: string): KeepAlive; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): KeepAlive.AsObject; + static toObject(includeInstance: boolean, msg: KeepAlive): KeepAlive.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: KeepAlive, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): KeepAlive; + static deserializeBinaryFromReader(message: KeepAlive, reader: jspb.BinaryReader): KeepAlive; +} + +export namespace KeepAlive { + export type AsObject = { + pluginid: string, + } +} + +export class SpecDetails extends jspb.Message { + clearDetailsList(): void; + getDetailsList(): Array; + setDetailsList(value: Array): SpecDetails; + addDetails(value?: SpecDetails.SpecDetail, index?: number): SpecDetails.SpecDetail; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SpecDetails.AsObject; + static toObject(includeInstance: boolean, msg: SpecDetails): SpecDetails.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SpecDetails, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SpecDetails; + static deserializeBinaryFromReader(message: SpecDetails, reader: jspb.BinaryReader): SpecDetails; +} + +export namespace SpecDetails { + export type AsObject = { + detailsList: Array, + } + + + export class SpecDetail extends jspb.Message { + + hasSpec(): boolean; + clearSpec(): void; + getSpec(): spec_pb.ProtoSpec | undefined; + setSpec(value?: spec_pb.ProtoSpec): SpecDetail; + + clearParseerrorsList(): void; + getParseerrorsList(): Array; + setParseerrorsList(value: Array): SpecDetail; + addParseerrors(value?: spec_pb.Error, index?: number): spec_pb.Error; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SpecDetail.AsObject; + static toObject(includeInstance: boolean, msg: SpecDetail): SpecDetail.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SpecDetail, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SpecDetail; + static deserializeBinaryFromReader(message: SpecDetail, reader: jspb.BinaryReader): SpecDetail; + } + + export namespace SpecDetail { + export type AsObject = { + spec?: spec_pb.ProtoSpec.AsObject, + parseerrorsList: Array, + } + } + +} + +export class Empty extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Empty.AsObject; + static toObject(includeInstance: boolean, msg: Empty): Empty.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Empty, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Empty; + static deserializeBinaryFromReader(message: Empty, reader: jspb.BinaryReader): Empty; +} + +export namespace Empty { + export type AsObject = { + } +} + +export class Message extends jspb.Message { + getMessagetype(): Message.MessageType; + setMessagetype(value: Message.MessageType): Message; + + getMessageid(): number; + setMessageid(value: number): Message; + + + hasExecutionstartingrequest(): boolean; + clearExecutionstartingrequest(): void; + getExecutionstartingrequest(): ExecutionStartingRequest | undefined; + setExecutionstartingrequest(value?: ExecutionStartingRequest): Message; + + + hasSpecexecutionstartingrequest(): boolean; + clearSpecexecutionstartingrequest(): void; + getSpecexecutionstartingrequest(): SpecExecutionStartingRequest | undefined; + setSpecexecutionstartingrequest(value?: SpecExecutionStartingRequest): Message; + + + hasSpecexecutionendingrequest(): boolean; + clearSpecexecutionendingrequest(): void; + getSpecexecutionendingrequest(): SpecExecutionEndingRequest | undefined; + setSpecexecutionendingrequest(value?: SpecExecutionEndingRequest): Message; + + + hasScenarioexecutionstartingrequest(): boolean; + clearScenarioexecutionstartingrequest(): void; + getScenarioexecutionstartingrequest(): ScenarioExecutionStartingRequest | undefined; + setScenarioexecutionstartingrequest(value?: ScenarioExecutionStartingRequest): Message; + + + hasScenarioexecutionendingrequest(): boolean; + clearScenarioexecutionendingrequest(): void; + getScenarioexecutionendingrequest(): ScenarioExecutionEndingRequest | undefined; + setScenarioexecutionendingrequest(value?: ScenarioExecutionEndingRequest): Message; + + + hasStepexecutionstartingrequest(): boolean; + clearStepexecutionstartingrequest(): void; + getStepexecutionstartingrequest(): StepExecutionStartingRequest | undefined; + setStepexecutionstartingrequest(value?: StepExecutionStartingRequest): Message; + + + hasStepexecutionendingrequest(): boolean; + clearStepexecutionendingrequest(): void; + getStepexecutionendingrequest(): StepExecutionEndingRequest | undefined; + setStepexecutionendingrequest(value?: StepExecutionEndingRequest): Message; + + + hasExecutesteprequest(): boolean; + clearExecutesteprequest(): void; + getExecutesteprequest(): ExecuteStepRequest | undefined; + setExecutesteprequest(value?: ExecuteStepRequest): Message; + + + hasExecutionendingrequest(): boolean; + clearExecutionendingrequest(): void; + getExecutionendingrequest(): ExecutionEndingRequest | undefined; + setExecutionendingrequest(value?: ExecutionEndingRequest): Message; + + + hasStepvalidaterequest(): boolean; + clearStepvalidaterequest(): void; + getStepvalidaterequest(): StepValidateRequest | undefined; + setStepvalidaterequest(value?: StepValidateRequest): Message; + + + hasStepvalidateresponse(): boolean; + clearStepvalidateresponse(): void; + getStepvalidateresponse(): StepValidateResponse | undefined; + setStepvalidateresponse(value?: StepValidateResponse): Message; + + + hasExecutionstatusresponse(): boolean; + clearExecutionstatusresponse(): void; + getExecutionstatusresponse(): ExecutionStatusResponse | undefined; + setExecutionstatusresponse(value?: ExecutionStatusResponse): Message; + + + hasStepnamesrequest(): boolean; + clearStepnamesrequest(): void; + getStepnamesrequest(): StepNamesRequest | undefined; + setStepnamesrequest(value?: StepNamesRequest): Message; + + + hasStepnamesresponse(): boolean; + clearStepnamesresponse(): void; + getStepnamesresponse(): StepNamesResponse | undefined; + setStepnamesresponse(value?: StepNamesResponse): Message; + + + hasSuiteexecutionresult(): boolean; + clearSuiteexecutionresult(): void; + getSuiteexecutionresult(): SuiteExecutionResult | undefined; + setSuiteexecutionresult(value?: SuiteExecutionResult): Message; + + + hasKillprocessrequest(): boolean; + clearKillprocessrequest(): void; + getKillprocessrequest(): KillProcessRequest | undefined; + setKillprocessrequest(value?: KillProcessRequest): Message; + + + hasScenariodatastoreinitrequest(): boolean; + clearScenariodatastoreinitrequest(): void; + getScenariodatastoreinitrequest(): ScenarioDataStoreInitRequest | undefined; + setScenariodatastoreinitrequest(value?: ScenarioDataStoreInitRequest): Message; + + + hasSpecdatastoreinitrequest(): boolean; + clearSpecdatastoreinitrequest(): void; + getSpecdatastoreinitrequest(): SpecDataStoreInitRequest | undefined; + setSpecdatastoreinitrequest(value?: SpecDataStoreInitRequest): Message; + + + hasSuitedatastoreinitrequest(): boolean; + clearSuitedatastoreinitrequest(): void; + getSuitedatastoreinitrequest(): SuiteDataStoreInitRequest | undefined; + setSuitedatastoreinitrequest(value?: SuiteDataStoreInitRequest): Message; + + + hasStepnamerequest(): boolean; + clearStepnamerequest(): void; + getStepnamerequest(): StepNameRequest | undefined; + setStepnamerequest(value?: StepNameRequest): Message; + + + hasStepnameresponse(): boolean; + clearStepnameresponse(): void; + getStepnameresponse(): StepNameResponse | undefined; + setStepnameresponse(value?: StepNameResponse): Message; + + + hasRefactorrequest(): boolean; + clearRefactorrequest(): void; + getRefactorrequest(): RefactorRequest | undefined; + setRefactorrequest(value?: RefactorRequest): Message; + + + hasRefactorresponse(): boolean; + clearRefactorresponse(): void; + getRefactorresponse(): RefactorResponse | undefined; + setRefactorresponse(value?: RefactorResponse): Message; + + + hasUnsupportedmessageresponse(): boolean; + clearUnsupportedmessageresponse(): void; + getUnsupportedmessageresponse(): UnsupportedMessageResponse | undefined; + setUnsupportedmessageresponse(value?: UnsupportedMessageResponse): Message; + + + hasCachefilerequest(): boolean; + clearCachefilerequest(): void; + getCachefilerequest(): CacheFileRequest | undefined; + setCachefilerequest(value?: CacheFileRequest): Message; + + + hasSteppositionsrequest(): boolean; + clearSteppositionsrequest(): void; + getSteppositionsrequest(): StepPositionsRequest | undefined; + setSteppositionsrequest(value?: StepPositionsRequest): Message; + + + hasSteppositionsresponse(): boolean; + clearSteppositionsresponse(): void; + getSteppositionsresponse(): StepPositionsResponse | undefined; + setSteppositionsresponse(value?: StepPositionsResponse): Message; + + + hasImplementationfilelistrequest(): boolean; + clearImplementationfilelistrequest(): void; + getImplementationfilelistrequest(): ImplementationFileListRequest | undefined; + setImplementationfilelistrequest(value?: ImplementationFileListRequest): Message; + + + hasImplementationfilelistresponse(): boolean; + clearImplementationfilelistresponse(): void; + getImplementationfilelistresponse(): ImplementationFileListResponse | undefined; + setImplementationfilelistresponse(value?: ImplementationFileListResponse): Message; + + + hasStubimplementationcoderequest(): boolean; + clearStubimplementationcoderequest(): void; + getStubimplementationcoderequest(): StubImplementationCodeRequest | undefined; + setStubimplementationcoderequest(value?: StubImplementationCodeRequest): Message; + + + hasFilediff(): boolean; + clearFilediff(): void; + getFilediff(): FileDiff | undefined; + setFilediff(value?: FileDiff): Message; + + + hasImplementationfileglobpatternrequest(): boolean; + clearImplementationfileglobpatternrequest(): void; + getImplementationfileglobpatternrequest(): ImplementationFileGlobPatternRequest | undefined; + setImplementationfileglobpatternrequest(value?: ImplementationFileGlobPatternRequest): Message; + + + hasImplementationfileglobpatternresponse(): boolean; + clearImplementationfileglobpatternresponse(): void; + getImplementationfileglobpatternresponse(): ImplementationFileGlobPatternResponse | undefined; + setImplementationfileglobpatternresponse(value?: ImplementationFileGlobPatternResponse): Message; + + + hasSuiteexecutionresultitem(): boolean; + clearSuiteexecutionresultitem(): void; + getSuiteexecutionresultitem(): SuiteExecutionResultItem | undefined; + setSuiteexecutionresultitem(value?: SuiteExecutionResultItem): Message; + + + hasKeepalive(): boolean; + clearKeepalive(): void; + getKeepalive(): KeepAlive | undefined; + setKeepalive(value?: KeepAlive): Message; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Message.AsObject; + static toObject(includeInstance: boolean, msg: Message): Message.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Message, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Message; + static deserializeBinaryFromReader(message: Message, reader: jspb.BinaryReader): Message; +} + +export namespace Message { + export type AsObject = { + messagetype: Message.MessageType, + messageid: number, + executionstartingrequest?: ExecutionStartingRequest.AsObject, + specexecutionstartingrequest?: SpecExecutionStartingRequest.AsObject, + specexecutionendingrequest?: SpecExecutionEndingRequest.AsObject, + scenarioexecutionstartingrequest?: ScenarioExecutionStartingRequest.AsObject, + scenarioexecutionendingrequest?: ScenarioExecutionEndingRequest.AsObject, + stepexecutionstartingrequest?: StepExecutionStartingRequest.AsObject, + stepexecutionendingrequest?: StepExecutionEndingRequest.AsObject, + executesteprequest?: ExecuteStepRequest.AsObject, + executionendingrequest?: ExecutionEndingRequest.AsObject, + stepvalidaterequest?: StepValidateRequest.AsObject, + stepvalidateresponse?: StepValidateResponse.AsObject, + executionstatusresponse?: ExecutionStatusResponse.AsObject, + stepnamesrequest?: StepNamesRequest.AsObject, + stepnamesresponse?: StepNamesResponse.AsObject, + suiteexecutionresult?: SuiteExecutionResult.AsObject, + killprocessrequest?: KillProcessRequest.AsObject, + scenariodatastoreinitrequest?: ScenarioDataStoreInitRequest.AsObject, + specdatastoreinitrequest?: SpecDataStoreInitRequest.AsObject, + suitedatastoreinitrequest?: SuiteDataStoreInitRequest.AsObject, + stepnamerequest?: StepNameRequest.AsObject, + stepnameresponse?: StepNameResponse.AsObject, + refactorrequest?: RefactorRequest.AsObject, + refactorresponse?: RefactorResponse.AsObject, + unsupportedmessageresponse?: UnsupportedMessageResponse.AsObject, + cachefilerequest?: CacheFileRequest.AsObject, + steppositionsrequest?: StepPositionsRequest.AsObject, + steppositionsresponse?: StepPositionsResponse.AsObject, + implementationfilelistrequest?: ImplementationFileListRequest.AsObject, + implementationfilelistresponse?: ImplementationFileListResponse.AsObject, + stubimplementationcoderequest?: StubImplementationCodeRequest.AsObject, + filediff?: FileDiff.AsObject, + implementationfileglobpatternrequest?: ImplementationFileGlobPatternRequest.AsObject, + implementationfileglobpatternresponse?: ImplementationFileGlobPatternResponse.AsObject, + suiteexecutionresultitem?: SuiteExecutionResultItem.AsObject, + keepalive?: KeepAlive.AsObject, + } + + export enum MessageType { + EXECUTIONSTARTING = 0, + SPECEXECUTIONSTARTING = 1, + SPECEXECUTIONENDING = 2, + SCENARIOEXECUTIONSTARTING = 3, + SCENARIOEXECUTIONENDING = 4, + STEPEXECUTIONSTARTING = 5, + STEPEXECUTIONENDING = 6, + EXECUTESTEP = 7, + EXECUTIONENDING = 8, + STEPVALIDATEREQUEST = 9, + STEPVALIDATERESPONSE = 10, + EXECUTIONSTATUSRESPONSE = 11, + STEPNAMESREQUEST = 12, + STEPNAMESRESPONSE = 13, + KILLPROCESSREQUEST = 14, + SUITEEXECUTIONRESULT = 15, + SCENARIODATASTOREINIT = 16, + SPECDATASTOREINIT = 17, + SUITEDATASTOREINIT = 18, + STEPNAMEREQUEST = 19, + STEPNAMERESPONSE = 20, + REFACTORREQUEST = 21, + REFACTORRESPONSE = 22, + UNSUPPORTEDMESSAGERESPONSE = 23, + CACHEFILEREQUEST = 24, + STEPPOSITIONSREQUEST = 25, + STEPPOSITIONSRESPONSE = 26, + IMPLEMENTATIONFILELISTREQUEST = 27, + IMPLEMENTATIONFILELISTRESPONSE = 28, + STUBIMPLEMENTATIONCODEREQUEST = 29, + FILEDIFF = 30, + IMPLEMENTATIONFILEGLOBPATTERNREQUEST = 31, + IMPLEMENTATIONFILEGLOBPATTERNRESPONSE = 32, + SUITEEXECUTIONRESULTITEM = 33, + KEEPALIVE = 34, + } + +} diff --git a/src/gen/messages_pb.js b/src/gen/messages_pb.js new file mode 100644 index 0000000..31b6e6d --- /dev/null +++ b/src/gen/messages_pb.js @@ -0,0 +1,12093 @@ +// source: messages.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var spec_pb = require('./spec_pb.js'); +goog.object.extend(proto, spec_pb); +goog.exportSymbol('proto.gauge.messages.CacheFileRequest', null, global); +goog.exportSymbol('proto.gauge.messages.CacheFileRequest.FileStatus', null, global); +goog.exportSymbol('proto.gauge.messages.Empty', null, global); +goog.exportSymbol('proto.gauge.messages.ExecuteStepRequest', null, global); +goog.exportSymbol('proto.gauge.messages.ExecutionArg', null, global); +goog.exportSymbol('proto.gauge.messages.ExecutionEndingRequest', null, global); +goog.exportSymbol('proto.gauge.messages.ExecutionInfo', null, global); +goog.exportSymbol('proto.gauge.messages.ExecutionStartingRequest', null, global); +goog.exportSymbol('proto.gauge.messages.ExecutionStatusResponse', null, global); +goog.exportSymbol('proto.gauge.messages.FileChanges', null, global); +goog.exportSymbol('proto.gauge.messages.FileDiff', null, global); +goog.exportSymbol('proto.gauge.messages.ImplementationFileGlobPatternRequest', null, global); +goog.exportSymbol('proto.gauge.messages.ImplementationFileGlobPatternResponse', null, global); +goog.exportSymbol('proto.gauge.messages.ImplementationFileListRequest', null, global); +goog.exportSymbol('proto.gauge.messages.ImplementationFileListResponse', null, global); +goog.exportSymbol('proto.gauge.messages.KeepAlive', null, global); +goog.exportSymbol('proto.gauge.messages.KillProcessRequest', null, global); +goog.exportSymbol('proto.gauge.messages.Message', null, global); +goog.exportSymbol('proto.gauge.messages.Message.MessageType', null, global); +goog.exportSymbol('proto.gauge.messages.ParameterPosition', null, global); +goog.exportSymbol('proto.gauge.messages.RefactorRequest', null, global); +goog.exportSymbol('proto.gauge.messages.RefactorResponse', null, global); +goog.exportSymbol('proto.gauge.messages.ScenarioDataStoreInitRequest', null, global); +goog.exportSymbol('proto.gauge.messages.ScenarioExecutionEndingRequest', null, global); +goog.exportSymbol('proto.gauge.messages.ScenarioExecutionStartingRequest', null, global); +goog.exportSymbol('proto.gauge.messages.ScenarioInfo', null, global); +goog.exportSymbol('proto.gauge.messages.SpecDataStoreInitRequest', null, global); +goog.exportSymbol('proto.gauge.messages.SpecDetails', null, global); +goog.exportSymbol('proto.gauge.messages.SpecDetails.SpecDetail', null, global); +goog.exportSymbol('proto.gauge.messages.SpecExecutionEndingRequest', null, global); +goog.exportSymbol('proto.gauge.messages.SpecExecutionStartingRequest', null, global); +goog.exportSymbol('proto.gauge.messages.SpecInfo', null, global); +goog.exportSymbol('proto.gauge.messages.StepExecutionEndingRequest', null, global); +goog.exportSymbol('proto.gauge.messages.StepExecutionStartingRequest', null, global); +goog.exportSymbol('proto.gauge.messages.StepInfo', null, global); +goog.exportSymbol('proto.gauge.messages.StepNameRequest', null, global); +goog.exportSymbol('proto.gauge.messages.StepNameResponse', null, global); +goog.exportSymbol('proto.gauge.messages.StepNamesRequest', null, global); +goog.exportSymbol('proto.gauge.messages.StepNamesResponse', null, global); +goog.exportSymbol('proto.gauge.messages.StepPositionsRequest', null, global); +goog.exportSymbol('proto.gauge.messages.StepPositionsResponse', null, global); +goog.exportSymbol('proto.gauge.messages.StepPositionsResponse.StepPosition', null, global); +goog.exportSymbol('proto.gauge.messages.StepValidateRequest', null, global); +goog.exportSymbol('proto.gauge.messages.StepValidateResponse', null, global); +goog.exportSymbol('proto.gauge.messages.StepValidateResponse.ErrorType', null, global); +goog.exportSymbol('proto.gauge.messages.StubImplementationCodeRequest', null, global); +goog.exportSymbol('proto.gauge.messages.SuiteDataStoreInitRequest', null, global); +goog.exportSymbol('proto.gauge.messages.SuiteExecutionResult', null, global); +goog.exportSymbol('proto.gauge.messages.SuiteExecutionResultItem', null, global); +goog.exportSymbol('proto.gauge.messages.TextDiff', null, global); +goog.exportSymbol('proto.gauge.messages.UnsupportedMessageResponse', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.KillProcessRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.KillProcessRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.KillProcessRequest.displayName = 'proto.gauge.messages.KillProcessRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ExecutionStatusResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ExecutionStatusResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ExecutionStatusResponse.displayName = 'proto.gauge.messages.ExecutionStatusResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ExecutionStartingRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ExecutionStartingRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ExecutionStartingRequest.displayName = 'proto.gauge.messages.ExecutionStartingRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ExecutionEndingRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ExecutionEndingRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ExecutionEndingRequest.displayName = 'proto.gauge.messages.ExecutionEndingRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.SpecExecutionStartingRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.SpecExecutionStartingRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.SpecExecutionStartingRequest.displayName = 'proto.gauge.messages.SpecExecutionStartingRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.SpecExecutionEndingRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.SpecExecutionEndingRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.SpecExecutionEndingRequest.displayName = 'proto.gauge.messages.SpecExecutionEndingRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ScenarioExecutionStartingRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ScenarioExecutionStartingRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ScenarioExecutionStartingRequest.displayName = 'proto.gauge.messages.ScenarioExecutionStartingRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ScenarioExecutionEndingRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ScenarioExecutionEndingRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ScenarioExecutionEndingRequest.displayName = 'proto.gauge.messages.ScenarioExecutionEndingRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.StepExecutionStartingRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.StepExecutionStartingRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.StepExecutionStartingRequest.displayName = 'proto.gauge.messages.StepExecutionStartingRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.StepExecutionEndingRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.StepExecutionEndingRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.StepExecutionEndingRequest.displayName = 'proto.gauge.messages.StepExecutionEndingRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ExecutionArg = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ExecutionArg.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ExecutionArg, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ExecutionArg.displayName = 'proto.gauge.messages.ExecutionArg'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ExecutionInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ExecutionInfo.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ExecutionInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ExecutionInfo.displayName = 'proto.gauge.messages.ExecutionInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.SpecInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.SpecInfo.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.SpecInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.SpecInfo.displayName = 'proto.gauge.messages.SpecInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ScenarioInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ScenarioInfo.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ScenarioInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ScenarioInfo.displayName = 'proto.gauge.messages.ScenarioInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.StepInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.StepInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.StepInfo.displayName = 'proto.gauge.messages.StepInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ExecuteStepRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ExecuteStepRequest.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ExecuteStepRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ExecuteStepRequest.displayName = 'proto.gauge.messages.ExecuteStepRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.StepValidateRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.StepValidateRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.StepValidateRequest.displayName = 'proto.gauge.messages.StepValidateRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.StepValidateResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.StepValidateResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.StepValidateResponse.displayName = 'proto.gauge.messages.StepValidateResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.SuiteExecutionResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.SuiteExecutionResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.SuiteExecutionResult.displayName = 'proto.gauge.messages.SuiteExecutionResult'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.SuiteExecutionResultItem = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.SuiteExecutionResultItem, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.SuiteExecutionResultItem.displayName = 'proto.gauge.messages.SuiteExecutionResultItem'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.StepNamesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.StepNamesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.StepNamesRequest.displayName = 'proto.gauge.messages.StepNamesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.StepNamesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.StepNamesResponse.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.StepNamesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.StepNamesResponse.displayName = 'proto.gauge.messages.StepNamesResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ScenarioDataStoreInitRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ScenarioDataStoreInitRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ScenarioDataStoreInitRequest.displayName = 'proto.gauge.messages.ScenarioDataStoreInitRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.SpecDataStoreInitRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.SpecDataStoreInitRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.SpecDataStoreInitRequest.displayName = 'proto.gauge.messages.SpecDataStoreInitRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.SuiteDataStoreInitRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.SuiteDataStoreInitRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.SuiteDataStoreInitRequest.displayName = 'proto.gauge.messages.SuiteDataStoreInitRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ParameterPosition = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ParameterPosition, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ParameterPosition.displayName = 'proto.gauge.messages.ParameterPosition'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.RefactorRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.RefactorRequest.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.RefactorRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.RefactorRequest.displayName = 'proto.gauge.messages.RefactorRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.FileChanges = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.FileChanges.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.FileChanges, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.FileChanges.displayName = 'proto.gauge.messages.FileChanges'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.RefactorResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.RefactorResponse.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.RefactorResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.RefactorResponse.displayName = 'proto.gauge.messages.RefactorResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.StepNameRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.StepNameRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.StepNameRequest.displayName = 'proto.gauge.messages.StepNameRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.StepNameResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.StepNameResponse.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.StepNameResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.StepNameResponse.displayName = 'proto.gauge.messages.StepNameResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.UnsupportedMessageResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.UnsupportedMessageResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.UnsupportedMessageResponse.displayName = 'proto.gauge.messages.UnsupportedMessageResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.CacheFileRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.CacheFileRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.CacheFileRequest.displayName = 'proto.gauge.messages.CacheFileRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.StepPositionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.StepPositionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.StepPositionsRequest.displayName = 'proto.gauge.messages.StepPositionsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.StepPositionsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.StepPositionsResponse.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.StepPositionsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.StepPositionsResponse.displayName = 'proto.gauge.messages.StepPositionsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.StepPositionsResponse.StepPosition = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.StepPositionsResponse.StepPosition, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.StepPositionsResponse.StepPosition.displayName = 'proto.gauge.messages.StepPositionsResponse.StepPosition'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ImplementationFileGlobPatternRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ImplementationFileGlobPatternRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ImplementationFileGlobPatternRequest.displayName = 'proto.gauge.messages.ImplementationFileGlobPatternRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ImplementationFileGlobPatternResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ImplementationFileGlobPatternResponse.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ImplementationFileGlobPatternResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ImplementationFileGlobPatternResponse.displayName = 'proto.gauge.messages.ImplementationFileGlobPatternResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ImplementationFileListRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ImplementationFileListRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ImplementationFileListRequest.displayName = 'proto.gauge.messages.ImplementationFileListRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ImplementationFileListResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ImplementationFileListResponse.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ImplementationFileListResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ImplementationFileListResponse.displayName = 'proto.gauge.messages.ImplementationFileListResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.StubImplementationCodeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.StubImplementationCodeRequest.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.StubImplementationCodeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.StubImplementationCodeRequest.displayName = 'proto.gauge.messages.StubImplementationCodeRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.TextDiff = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.TextDiff, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.TextDiff.displayName = 'proto.gauge.messages.TextDiff'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.FileDiff = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.FileDiff.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.FileDiff, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.FileDiff.displayName = 'proto.gauge.messages.FileDiff'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.KeepAlive = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.KeepAlive, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.KeepAlive.displayName = 'proto.gauge.messages.KeepAlive'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.SpecDetails = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.SpecDetails.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.SpecDetails, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.SpecDetails.displayName = 'proto.gauge.messages.SpecDetails'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.SpecDetails.SpecDetail = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.SpecDetails.SpecDetail.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.SpecDetails.SpecDetail, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.SpecDetails.SpecDetail.displayName = 'proto.gauge.messages.SpecDetails.SpecDetail'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.Empty = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.Empty, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.Empty.displayName = 'proto.gauge.messages.Empty'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.Message = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.Message, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.Message.displayName = 'proto.gauge.messages.Message'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.KillProcessRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.KillProcessRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.KillProcessRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.KillProcessRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.KillProcessRequest} + */ +proto.gauge.messages.KillProcessRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.KillProcessRequest; + return proto.gauge.messages.KillProcessRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.KillProcessRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.KillProcessRequest} + */ +proto.gauge.messages.KillProcessRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.KillProcessRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.KillProcessRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.KillProcessRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.KillProcessRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ExecutionStatusResponse.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ExecutionStatusResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ExecutionStatusResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ExecutionStatusResponse.toObject = function(includeInstance, msg) { + var f, obj = { + executionresult: (f = msg.getExecutionresult()) && spec_pb.ProtoExecutionResult.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ExecutionStatusResponse} + */ +proto.gauge.messages.ExecutionStatusResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ExecutionStatusResponse; + return proto.gauge.messages.ExecutionStatusResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ExecutionStatusResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ExecutionStatusResponse} + */ +proto.gauge.messages.ExecutionStatusResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new spec_pb.ProtoExecutionResult; + reader.readMessage(value,spec_pb.ProtoExecutionResult.deserializeBinaryFromReader); + msg.setExecutionresult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ExecutionStatusResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ExecutionStatusResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ExecutionStatusResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ExecutionStatusResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getExecutionresult(); + if (f != null) { + writer.writeMessage( + 1, + f, + spec_pb.ProtoExecutionResult.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ProtoExecutionResult executionResult = 1; + * @return {?proto.gauge.messages.ProtoExecutionResult} + */ +proto.gauge.messages.ExecutionStatusResponse.prototype.getExecutionresult = function() { + return /** @type{?proto.gauge.messages.ProtoExecutionResult} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoExecutionResult, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoExecutionResult|undefined} value + * @return {!proto.gauge.messages.ExecutionStatusResponse} returns this +*/ +proto.gauge.messages.ExecutionStatusResponse.prototype.setExecutionresult = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ExecutionStatusResponse} returns this + */ +proto.gauge.messages.ExecutionStatusResponse.prototype.clearExecutionresult = function() { + return this.setExecutionresult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ExecutionStatusResponse.prototype.hasExecutionresult = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ExecutionStartingRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ExecutionStartingRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ExecutionStartingRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ExecutionStartingRequest.toObject = function(includeInstance, msg) { + var f, obj = { + currentexecutioninfo: (f = msg.getCurrentexecutioninfo()) && proto.gauge.messages.ExecutionInfo.toObject(includeInstance, f), + suiteresult: (f = msg.getSuiteresult()) && spec_pb.ProtoSuiteResult.toObject(includeInstance, f), + stream: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ExecutionStartingRequest} + */ +proto.gauge.messages.ExecutionStartingRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ExecutionStartingRequest; + return proto.gauge.messages.ExecutionStartingRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ExecutionStartingRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ExecutionStartingRequest} + */ +proto.gauge.messages.ExecutionStartingRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ExecutionInfo; + reader.readMessage(value,proto.gauge.messages.ExecutionInfo.deserializeBinaryFromReader); + msg.setCurrentexecutioninfo(value); + break; + case 2: + var value = new spec_pb.ProtoSuiteResult; + reader.readMessage(value,spec_pb.ProtoSuiteResult.deserializeBinaryFromReader); + msg.setSuiteresult(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStream(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ExecutionStartingRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ExecutionStartingRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ExecutionStartingRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ExecutionStartingRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCurrentexecutioninfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ExecutionInfo.serializeBinaryToWriter + ); + } + f = message.getSuiteresult(); + if (f != null) { + writer.writeMessage( + 2, + f, + spec_pb.ProtoSuiteResult.serializeBinaryToWriter + ); + } + f = message.getStream(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } +}; + + +/** + * optional ExecutionInfo currentExecutionInfo = 1; + * @return {?proto.gauge.messages.ExecutionInfo} + */ +proto.gauge.messages.ExecutionStartingRequest.prototype.getCurrentexecutioninfo = function() { + return /** @type{?proto.gauge.messages.ExecutionInfo} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ExecutionInfo, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ExecutionInfo|undefined} value + * @return {!proto.gauge.messages.ExecutionStartingRequest} returns this +*/ +proto.gauge.messages.ExecutionStartingRequest.prototype.setCurrentexecutioninfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ExecutionStartingRequest} returns this + */ +proto.gauge.messages.ExecutionStartingRequest.prototype.clearCurrentexecutioninfo = function() { + return this.setCurrentexecutioninfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ExecutionStartingRequest.prototype.hasCurrentexecutioninfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ProtoSuiteResult suiteResult = 2; + * @return {?proto.gauge.messages.ProtoSuiteResult} + */ +proto.gauge.messages.ExecutionStartingRequest.prototype.getSuiteresult = function() { + return /** @type{?proto.gauge.messages.ProtoSuiteResult} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoSuiteResult, 2)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoSuiteResult|undefined} value + * @return {!proto.gauge.messages.ExecutionStartingRequest} returns this +*/ +proto.gauge.messages.ExecutionStartingRequest.prototype.setSuiteresult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ExecutionStartingRequest} returns this + */ +proto.gauge.messages.ExecutionStartingRequest.prototype.clearSuiteresult = function() { + return this.setSuiteresult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ExecutionStartingRequest.prototype.hasSuiteresult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional int32 stream = 3; + * @return {number} + */ +proto.gauge.messages.ExecutionStartingRequest.prototype.getStream = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ExecutionStartingRequest} returns this + */ +proto.gauge.messages.ExecutionStartingRequest.prototype.setStream = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ExecutionEndingRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ExecutionEndingRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ExecutionEndingRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ExecutionEndingRequest.toObject = function(includeInstance, msg) { + var f, obj = { + currentexecutioninfo: (f = msg.getCurrentexecutioninfo()) && proto.gauge.messages.ExecutionInfo.toObject(includeInstance, f), + suiteresult: (f = msg.getSuiteresult()) && spec_pb.ProtoSuiteResult.toObject(includeInstance, f), + stream: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ExecutionEndingRequest} + */ +proto.gauge.messages.ExecutionEndingRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ExecutionEndingRequest; + return proto.gauge.messages.ExecutionEndingRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ExecutionEndingRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ExecutionEndingRequest} + */ +proto.gauge.messages.ExecutionEndingRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ExecutionInfo; + reader.readMessage(value,proto.gauge.messages.ExecutionInfo.deserializeBinaryFromReader); + msg.setCurrentexecutioninfo(value); + break; + case 2: + var value = new spec_pb.ProtoSuiteResult; + reader.readMessage(value,spec_pb.ProtoSuiteResult.deserializeBinaryFromReader); + msg.setSuiteresult(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStream(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ExecutionEndingRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ExecutionEndingRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ExecutionEndingRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ExecutionEndingRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCurrentexecutioninfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ExecutionInfo.serializeBinaryToWriter + ); + } + f = message.getSuiteresult(); + if (f != null) { + writer.writeMessage( + 2, + f, + spec_pb.ProtoSuiteResult.serializeBinaryToWriter + ); + } + f = message.getStream(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } +}; + + +/** + * optional ExecutionInfo currentExecutionInfo = 1; + * @return {?proto.gauge.messages.ExecutionInfo} + */ +proto.gauge.messages.ExecutionEndingRequest.prototype.getCurrentexecutioninfo = function() { + return /** @type{?proto.gauge.messages.ExecutionInfo} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ExecutionInfo, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ExecutionInfo|undefined} value + * @return {!proto.gauge.messages.ExecutionEndingRequest} returns this +*/ +proto.gauge.messages.ExecutionEndingRequest.prototype.setCurrentexecutioninfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ExecutionEndingRequest} returns this + */ +proto.gauge.messages.ExecutionEndingRequest.prototype.clearCurrentexecutioninfo = function() { + return this.setCurrentexecutioninfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ExecutionEndingRequest.prototype.hasCurrentexecutioninfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ProtoSuiteResult suiteResult = 2; + * @return {?proto.gauge.messages.ProtoSuiteResult} + */ +proto.gauge.messages.ExecutionEndingRequest.prototype.getSuiteresult = function() { + return /** @type{?proto.gauge.messages.ProtoSuiteResult} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoSuiteResult, 2)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoSuiteResult|undefined} value + * @return {!proto.gauge.messages.ExecutionEndingRequest} returns this +*/ +proto.gauge.messages.ExecutionEndingRequest.prototype.setSuiteresult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ExecutionEndingRequest} returns this + */ +proto.gauge.messages.ExecutionEndingRequest.prototype.clearSuiteresult = function() { + return this.setSuiteresult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ExecutionEndingRequest.prototype.hasSuiteresult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional int32 stream = 3; + * @return {number} + */ +proto.gauge.messages.ExecutionEndingRequest.prototype.getStream = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ExecutionEndingRequest} returns this + */ +proto.gauge.messages.ExecutionEndingRequest.prototype.setStream = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.SpecExecutionStartingRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.SpecExecutionStartingRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.SpecExecutionStartingRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SpecExecutionStartingRequest.toObject = function(includeInstance, msg) { + var f, obj = { + currentexecutioninfo: (f = msg.getCurrentexecutioninfo()) && proto.gauge.messages.ExecutionInfo.toObject(includeInstance, f), + specresult: (f = msg.getSpecresult()) && spec_pb.ProtoSpecResult.toObject(includeInstance, f), + stream: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.SpecExecutionStartingRequest} + */ +proto.gauge.messages.SpecExecutionStartingRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.SpecExecutionStartingRequest; + return proto.gauge.messages.SpecExecutionStartingRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.SpecExecutionStartingRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.SpecExecutionStartingRequest} + */ +proto.gauge.messages.SpecExecutionStartingRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ExecutionInfo; + reader.readMessage(value,proto.gauge.messages.ExecutionInfo.deserializeBinaryFromReader); + msg.setCurrentexecutioninfo(value); + break; + case 2: + var value = new spec_pb.ProtoSpecResult; + reader.readMessage(value,spec_pb.ProtoSpecResult.deserializeBinaryFromReader); + msg.setSpecresult(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStream(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.SpecExecutionStartingRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.SpecExecutionStartingRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.SpecExecutionStartingRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SpecExecutionStartingRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCurrentexecutioninfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ExecutionInfo.serializeBinaryToWriter + ); + } + f = message.getSpecresult(); + if (f != null) { + writer.writeMessage( + 2, + f, + spec_pb.ProtoSpecResult.serializeBinaryToWriter + ); + } + f = message.getStream(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } +}; + + +/** + * optional ExecutionInfo currentExecutionInfo = 1; + * @return {?proto.gauge.messages.ExecutionInfo} + */ +proto.gauge.messages.SpecExecutionStartingRequest.prototype.getCurrentexecutioninfo = function() { + return /** @type{?proto.gauge.messages.ExecutionInfo} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ExecutionInfo, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ExecutionInfo|undefined} value + * @return {!proto.gauge.messages.SpecExecutionStartingRequest} returns this +*/ +proto.gauge.messages.SpecExecutionStartingRequest.prototype.setCurrentexecutioninfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.SpecExecutionStartingRequest} returns this + */ +proto.gauge.messages.SpecExecutionStartingRequest.prototype.clearCurrentexecutioninfo = function() { + return this.setCurrentexecutioninfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.SpecExecutionStartingRequest.prototype.hasCurrentexecutioninfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ProtoSpecResult specResult = 2; + * @return {?proto.gauge.messages.ProtoSpecResult} + */ +proto.gauge.messages.SpecExecutionStartingRequest.prototype.getSpecresult = function() { + return /** @type{?proto.gauge.messages.ProtoSpecResult} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoSpecResult, 2)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoSpecResult|undefined} value + * @return {!proto.gauge.messages.SpecExecutionStartingRequest} returns this +*/ +proto.gauge.messages.SpecExecutionStartingRequest.prototype.setSpecresult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.SpecExecutionStartingRequest} returns this + */ +proto.gauge.messages.SpecExecutionStartingRequest.prototype.clearSpecresult = function() { + return this.setSpecresult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.SpecExecutionStartingRequest.prototype.hasSpecresult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional int32 stream = 3; + * @return {number} + */ +proto.gauge.messages.SpecExecutionStartingRequest.prototype.getStream = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.SpecExecutionStartingRequest} returns this + */ +proto.gauge.messages.SpecExecutionStartingRequest.prototype.setStream = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.SpecExecutionEndingRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.SpecExecutionEndingRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.SpecExecutionEndingRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SpecExecutionEndingRequest.toObject = function(includeInstance, msg) { + var f, obj = { + currentexecutioninfo: (f = msg.getCurrentexecutioninfo()) && proto.gauge.messages.ExecutionInfo.toObject(includeInstance, f), + specresult: (f = msg.getSpecresult()) && spec_pb.ProtoSpecResult.toObject(includeInstance, f), + stream: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.SpecExecutionEndingRequest} + */ +proto.gauge.messages.SpecExecutionEndingRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.SpecExecutionEndingRequest; + return proto.gauge.messages.SpecExecutionEndingRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.SpecExecutionEndingRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.SpecExecutionEndingRequest} + */ +proto.gauge.messages.SpecExecutionEndingRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ExecutionInfo; + reader.readMessage(value,proto.gauge.messages.ExecutionInfo.deserializeBinaryFromReader); + msg.setCurrentexecutioninfo(value); + break; + case 2: + var value = new spec_pb.ProtoSpecResult; + reader.readMessage(value,spec_pb.ProtoSpecResult.deserializeBinaryFromReader); + msg.setSpecresult(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStream(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.SpecExecutionEndingRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.SpecExecutionEndingRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.SpecExecutionEndingRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SpecExecutionEndingRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCurrentexecutioninfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ExecutionInfo.serializeBinaryToWriter + ); + } + f = message.getSpecresult(); + if (f != null) { + writer.writeMessage( + 2, + f, + spec_pb.ProtoSpecResult.serializeBinaryToWriter + ); + } + f = message.getStream(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } +}; + + +/** + * optional ExecutionInfo currentExecutionInfo = 1; + * @return {?proto.gauge.messages.ExecutionInfo} + */ +proto.gauge.messages.SpecExecutionEndingRequest.prototype.getCurrentexecutioninfo = function() { + return /** @type{?proto.gauge.messages.ExecutionInfo} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ExecutionInfo, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ExecutionInfo|undefined} value + * @return {!proto.gauge.messages.SpecExecutionEndingRequest} returns this +*/ +proto.gauge.messages.SpecExecutionEndingRequest.prototype.setCurrentexecutioninfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.SpecExecutionEndingRequest} returns this + */ +proto.gauge.messages.SpecExecutionEndingRequest.prototype.clearCurrentexecutioninfo = function() { + return this.setCurrentexecutioninfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.SpecExecutionEndingRequest.prototype.hasCurrentexecutioninfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ProtoSpecResult specResult = 2; + * @return {?proto.gauge.messages.ProtoSpecResult} + */ +proto.gauge.messages.SpecExecutionEndingRequest.prototype.getSpecresult = function() { + return /** @type{?proto.gauge.messages.ProtoSpecResult} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoSpecResult, 2)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoSpecResult|undefined} value + * @return {!proto.gauge.messages.SpecExecutionEndingRequest} returns this +*/ +proto.gauge.messages.SpecExecutionEndingRequest.prototype.setSpecresult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.SpecExecutionEndingRequest} returns this + */ +proto.gauge.messages.SpecExecutionEndingRequest.prototype.clearSpecresult = function() { + return this.setSpecresult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.SpecExecutionEndingRequest.prototype.hasSpecresult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional int32 stream = 3; + * @return {number} + */ +proto.gauge.messages.SpecExecutionEndingRequest.prototype.getStream = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.SpecExecutionEndingRequest} returns this + */ +proto.gauge.messages.SpecExecutionEndingRequest.prototype.setStream = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ScenarioExecutionStartingRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ScenarioExecutionStartingRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ScenarioExecutionStartingRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ScenarioExecutionStartingRequest.toObject = function(includeInstance, msg) { + var f, obj = { + currentexecutioninfo: (f = msg.getCurrentexecutioninfo()) && proto.gauge.messages.ExecutionInfo.toObject(includeInstance, f), + scenarioresult: (f = msg.getScenarioresult()) && spec_pb.ProtoScenarioResult.toObject(includeInstance, f), + stream: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ScenarioExecutionStartingRequest} + */ +proto.gauge.messages.ScenarioExecutionStartingRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ScenarioExecutionStartingRequest; + return proto.gauge.messages.ScenarioExecutionStartingRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ScenarioExecutionStartingRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ScenarioExecutionStartingRequest} + */ +proto.gauge.messages.ScenarioExecutionStartingRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ExecutionInfo; + reader.readMessage(value,proto.gauge.messages.ExecutionInfo.deserializeBinaryFromReader); + msg.setCurrentexecutioninfo(value); + break; + case 2: + var value = new spec_pb.ProtoScenarioResult; + reader.readMessage(value,spec_pb.ProtoScenarioResult.deserializeBinaryFromReader); + msg.setScenarioresult(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStream(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ScenarioExecutionStartingRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ScenarioExecutionStartingRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ScenarioExecutionStartingRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ScenarioExecutionStartingRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCurrentexecutioninfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ExecutionInfo.serializeBinaryToWriter + ); + } + f = message.getScenarioresult(); + if (f != null) { + writer.writeMessage( + 2, + f, + spec_pb.ProtoScenarioResult.serializeBinaryToWriter + ); + } + f = message.getStream(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } +}; + + +/** + * optional ExecutionInfo currentExecutionInfo = 1; + * @return {?proto.gauge.messages.ExecutionInfo} + */ +proto.gauge.messages.ScenarioExecutionStartingRequest.prototype.getCurrentexecutioninfo = function() { + return /** @type{?proto.gauge.messages.ExecutionInfo} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ExecutionInfo, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ExecutionInfo|undefined} value + * @return {!proto.gauge.messages.ScenarioExecutionStartingRequest} returns this +*/ +proto.gauge.messages.ScenarioExecutionStartingRequest.prototype.setCurrentexecutioninfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ScenarioExecutionStartingRequest} returns this + */ +proto.gauge.messages.ScenarioExecutionStartingRequest.prototype.clearCurrentexecutioninfo = function() { + return this.setCurrentexecutioninfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ScenarioExecutionStartingRequest.prototype.hasCurrentexecutioninfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ProtoScenarioResult scenarioResult = 2; + * @return {?proto.gauge.messages.ProtoScenarioResult} + */ +proto.gauge.messages.ScenarioExecutionStartingRequest.prototype.getScenarioresult = function() { + return /** @type{?proto.gauge.messages.ProtoScenarioResult} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoScenarioResult, 2)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoScenarioResult|undefined} value + * @return {!proto.gauge.messages.ScenarioExecutionStartingRequest} returns this +*/ +proto.gauge.messages.ScenarioExecutionStartingRequest.prototype.setScenarioresult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ScenarioExecutionStartingRequest} returns this + */ +proto.gauge.messages.ScenarioExecutionStartingRequest.prototype.clearScenarioresult = function() { + return this.setScenarioresult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ScenarioExecutionStartingRequest.prototype.hasScenarioresult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional int32 stream = 3; + * @return {number} + */ +proto.gauge.messages.ScenarioExecutionStartingRequest.prototype.getStream = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ScenarioExecutionStartingRequest} returns this + */ +proto.gauge.messages.ScenarioExecutionStartingRequest.prototype.setStream = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ScenarioExecutionEndingRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ScenarioExecutionEndingRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ScenarioExecutionEndingRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ScenarioExecutionEndingRequest.toObject = function(includeInstance, msg) { + var f, obj = { + currentexecutioninfo: (f = msg.getCurrentexecutioninfo()) && proto.gauge.messages.ExecutionInfo.toObject(includeInstance, f), + scenarioresult: (f = msg.getScenarioresult()) && spec_pb.ProtoScenarioResult.toObject(includeInstance, f), + stream: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ScenarioExecutionEndingRequest} + */ +proto.gauge.messages.ScenarioExecutionEndingRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ScenarioExecutionEndingRequest; + return proto.gauge.messages.ScenarioExecutionEndingRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ScenarioExecutionEndingRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ScenarioExecutionEndingRequest} + */ +proto.gauge.messages.ScenarioExecutionEndingRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ExecutionInfo; + reader.readMessage(value,proto.gauge.messages.ExecutionInfo.deserializeBinaryFromReader); + msg.setCurrentexecutioninfo(value); + break; + case 2: + var value = new spec_pb.ProtoScenarioResult; + reader.readMessage(value,spec_pb.ProtoScenarioResult.deserializeBinaryFromReader); + msg.setScenarioresult(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStream(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ScenarioExecutionEndingRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ScenarioExecutionEndingRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ScenarioExecutionEndingRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ScenarioExecutionEndingRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCurrentexecutioninfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ExecutionInfo.serializeBinaryToWriter + ); + } + f = message.getScenarioresult(); + if (f != null) { + writer.writeMessage( + 2, + f, + spec_pb.ProtoScenarioResult.serializeBinaryToWriter + ); + } + f = message.getStream(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } +}; + + +/** + * optional ExecutionInfo currentExecutionInfo = 1; + * @return {?proto.gauge.messages.ExecutionInfo} + */ +proto.gauge.messages.ScenarioExecutionEndingRequest.prototype.getCurrentexecutioninfo = function() { + return /** @type{?proto.gauge.messages.ExecutionInfo} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ExecutionInfo, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ExecutionInfo|undefined} value + * @return {!proto.gauge.messages.ScenarioExecutionEndingRequest} returns this +*/ +proto.gauge.messages.ScenarioExecutionEndingRequest.prototype.setCurrentexecutioninfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ScenarioExecutionEndingRequest} returns this + */ +proto.gauge.messages.ScenarioExecutionEndingRequest.prototype.clearCurrentexecutioninfo = function() { + return this.setCurrentexecutioninfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ScenarioExecutionEndingRequest.prototype.hasCurrentexecutioninfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ProtoScenarioResult scenarioResult = 2; + * @return {?proto.gauge.messages.ProtoScenarioResult} + */ +proto.gauge.messages.ScenarioExecutionEndingRequest.prototype.getScenarioresult = function() { + return /** @type{?proto.gauge.messages.ProtoScenarioResult} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoScenarioResult, 2)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoScenarioResult|undefined} value + * @return {!proto.gauge.messages.ScenarioExecutionEndingRequest} returns this +*/ +proto.gauge.messages.ScenarioExecutionEndingRequest.prototype.setScenarioresult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ScenarioExecutionEndingRequest} returns this + */ +proto.gauge.messages.ScenarioExecutionEndingRequest.prototype.clearScenarioresult = function() { + return this.setScenarioresult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ScenarioExecutionEndingRequest.prototype.hasScenarioresult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional int32 stream = 3; + * @return {number} + */ +proto.gauge.messages.ScenarioExecutionEndingRequest.prototype.getStream = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ScenarioExecutionEndingRequest} returns this + */ +proto.gauge.messages.ScenarioExecutionEndingRequest.prototype.setStream = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.StepExecutionStartingRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.StepExecutionStartingRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.StepExecutionStartingRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepExecutionStartingRequest.toObject = function(includeInstance, msg) { + var f, obj = { + currentexecutioninfo: (f = msg.getCurrentexecutioninfo()) && proto.gauge.messages.ExecutionInfo.toObject(includeInstance, f), + stepresult: (f = msg.getStepresult()) && spec_pb.ProtoStepResult.toObject(includeInstance, f), + stream: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.StepExecutionStartingRequest} + */ +proto.gauge.messages.StepExecutionStartingRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.StepExecutionStartingRequest; + return proto.gauge.messages.StepExecutionStartingRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.StepExecutionStartingRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.StepExecutionStartingRequest} + */ +proto.gauge.messages.StepExecutionStartingRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ExecutionInfo; + reader.readMessage(value,proto.gauge.messages.ExecutionInfo.deserializeBinaryFromReader); + msg.setCurrentexecutioninfo(value); + break; + case 2: + var value = new spec_pb.ProtoStepResult; + reader.readMessage(value,spec_pb.ProtoStepResult.deserializeBinaryFromReader); + msg.setStepresult(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStream(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.StepExecutionStartingRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.StepExecutionStartingRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.StepExecutionStartingRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepExecutionStartingRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCurrentexecutioninfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ExecutionInfo.serializeBinaryToWriter + ); + } + f = message.getStepresult(); + if (f != null) { + writer.writeMessage( + 2, + f, + spec_pb.ProtoStepResult.serializeBinaryToWriter + ); + } + f = message.getStream(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } +}; + + +/** + * optional ExecutionInfo currentExecutionInfo = 1; + * @return {?proto.gauge.messages.ExecutionInfo} + */ +proto.gauge.messages.StepExecutionStartingRequest.prototype.getCurrentexecutioninfo = function() { + return /** @type{?proto.gauge.messages.ExecutionInfo} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ExecutionInfo, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ExecutionInfo|undefined} value + * @return {!proto.gauge.messages.StepExecutionStartingRequest} returns this +*/ +proto.gauge.messages.StepExecutionStartingRequest.prototype.setCurrentexecutioninfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.StepExecutionStartingRequest} returns this + */ +proto.gauge.messages.StepExecutionStartingRequest.prototype.clearCurrentexecutioninfo = function() { + return this.setCurrentexecutioninfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.StepExecutionStartingRequest.prototype.hasCurrentexecutioninfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ProtoStepResult stepResult = 2; + * @return {?proto.gauge.messages.ProtoStepResult} + */ +proto.gauge.messages.StepExecutionStartingRequest.prototype.getStepresult = function() { + return /** @type{?proto.gauge.messages.ProtoStepResult} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoStepResult, 2)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoStepResult|undefined} value + * @return {!proto.gauge.messages.StepExecutionStartingRequest} returns this +*/ +proto.gauge.messages.StepExecutionStartingRequest.prototype.setStepresult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.StepExecutionStartingRequest} returns this + */ +proto.gauge.messages.StepExecutionStartingRequest.prototype.clearStepresult = function() { + return this.setStepresult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.StepExecutionStartingRequest.prototype.hasStepresult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional int32 stream = 3; + * @return {number} + */ +proto.gauge.messages.StepExecutionStartingRequest.prototype.getStream = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.StepExecutionStartingRequest} returns this + */ +proto.gauge.messages.StepExecutionStartingRequest.prototype.setStream = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.StepExecutionEndingRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.StepExecutionEndingRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.StepExecutionEndingRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepExecutionEndingRequest.toObject = function(includeInstance, msg) { + var f, obj = { + currentexecutioninfo: (f = msg.getCurrentexecutioninfo()) && proto.gauge.messages.ExecutionInfo.toObject(includeInstance, f), + stepresult: (f = msg.getStepresult()) && spec_pb.ProtoStepResult.toObject(includeInstance, f), + stream: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.StepExecutionEndingRequest} + */ +proto.gauge.messages.StepExecutionEndingRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.StepExecutionEndingRequest; + return proto.gauge.messages.StepExecutionEndingRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.StepExecutionEndingRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.StepExecutionEndingRequest} + */ +proto.gauge.messages.StepExecutionEndingRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ExecutionInfo; + reader.readMessage(value,proto.gauge.messages.ExecutionInfo.deserializeBinaryFromReader); + msg.setCurrentexecutioninfo(value); + break; + case 2: + var value = new spec_pb.ProtoStepResult; + reader.readMessage(value,spec_pb.ProtoStepResult.deserializeBinaryFromReader); + msg.setStepresult(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStream(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.StepExecutionEndingRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.StepExecutionEndingRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.StepExecutionEndingRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepExecutionEndingRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCurrentexecutioninfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ExecutionInfo.serializeBinaryToWriter + ); + } + f = message.getStepresult(); + if (f != null) { + writer.writeMessage( + 2, + f, + spec_pb.ProtoStepResult.serializeBinaryToWriter + ); + } + f = message.getStream(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } +}; + + +/** + * optional ExecutionInfo currentExecutionInfo = 1; + * @return {?proto.gauge.messages.ExecutionInfo} + */ +proto.gauge.messages.StepExecutionEndingRequest.prototype.getCurrentexecutioninfo = function() { + return /** @type{?proto.gauge.messages.ExecutionInfo} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ExecutionInfo, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ExecutionInfo|undefined} value + * @return {!proto.gauge.messages.StepExecutionEndingRequest} returns this +*/ +proto.gauge.messages.StepExecutionEndingRequest.prototype.setCurrentexecutioninfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.StepExecutionEndingRequest} returns this + */ +proto.gauge.messages.StepExecutionEndingRequest.prototype.clearCurrentexecutioninfo = function() { + return this.setCurrentexecutioninfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.StepExecutionEndingRequest.prototype.hasCurrentexecutioninfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ProtoStepResult stepResult = 2; + * @return {?proto.gauge.messages.ProtoStepResult} + */ +proto.gauge.messages.StepExecutionEndingRequest.prototype.getStepresult = function() { + return /** @type{?proto.gauge.messages.ProtoStepResult} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoStepResult, 2)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoStepResult|undefined} value + * @return {!proto.gauge.messages.StepExecutionEndingRequest} returns this +*/ +proto.gauge.messages.StepExecutionEndingRequest.prototype.setStepresult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.StepExecutionEndingRequest} returns this + */ +proto.gauge.messages.StepExecutionEndingRequest.prototype.clearStepresult = function() { + return this.setStepresult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.StepExecutionEndingRequest.prototype.hasStepresult = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional int32 stream = 3; + * @return {number} + */ +proto.gauge.messages.StepExecutionEndingRequest.prototype.getStream = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.StepExecutionEndingRequest} returns this + */ +proto.gauge.messages.StepExecutionEndingRequest.prototype.setStream = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ExecutionArg.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ExecutionArg.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ExecutionArg.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ExecutionArg} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ExecutionArg.toObject = function(includeInstance, msg) { + var f, obj = { + flagname: jspb.Message.getFieldWithDefault(msg, 1, ""), + flagvalueList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ExecutionArg} + */ +proto.gauge.messages.ExecutionArg.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ExecutionArg; + return proto.gauge.messages.ExecutionArg.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ExecutionArg} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ExecutionArg} + */ +proto.gauge.messages.ExecutionArg.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setFlagname(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addFlagvalue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ExecutionArg.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ExecutionArg.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ExecutionArg} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ExecutionArg.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFlagname(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getFlagvalueList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional string flagName = 1; + * @return {string} + */ +proto.gauge.messages.ExecutionArg.prototype.getFlagname = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ExecutionArg} returns this + */ +proto.gauge.messages.ExecutionArg.prototype.setFlagname = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated string flagValue = 2; + * @return {!Array} + */ +proto.gauge.messages.ExecutionArg.prototype.getFlagvalueList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ExecutionArg} returns this + */ +proto.gauge.messages.ExecutionArg.prototype.setFlagvalueList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ExecutionArg} returns this + */ +proto.gauge.messages.ExecutionArg.prototype.addFlagvalue = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ExecutionArg} returns this + */ +proto.gauge.messages.ExecutionArg.prototype.clearFlagvalueList = function() { + return this.setFlagvalueList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ExecutionInfo.repeatedFields_ = [6]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ExecutionInfo.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ExecutionInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ExecutionInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ExecutionInfo.toObject = function(includeInstance, msg) { + var f, obj = { + currentspec: (f = msg.getCurrentspec()) && proto.gauge.messages.SpecInfo.toObject(includeInstance, f), + currentscenario: (f = msg.getCurrentscenario()) && proto.gauge.messages.ScenarioInfo.toObject(includeInstance, f), + currentstep: (f = msg.getCurrentstep()) && proto.gauge.messages.StepInfo.toObject(includeInstance, f), + stacktrace: jspb.Message.getFieldWithDefault(msg, 4, ""), + projectname: jspb.Message.getFieldWithDefault(msg, 5, ""), + executionargsList: jspb.Message.toObjectList(msg.getExecutionargsList(), + proto.gauge.messages.ExecutionArg.toObject, includeInstance), + numberofexecutionstreams: jspb.Message.getFieldWithDefault(msg, 7, 0), + runnerid: jspb.Message.getFieldWithDefault(msg, 8, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ExecutionInfo} + */ +proto.gauge.messages.ExecutionInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ExecutionInfo; + return proto.gauge.messages.ExecutionInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ExecutionInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ExecutionInfo} + */ +proto.gauge.messages.ExecutionInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.SpecInfo; + reader.readMessage(value,proto.gauge.messages.SpecInfo.deserializeBinaryFromReader); + msg.setCurrentspec(value); + break; + case 2: + var value = new proto.gauge.messages.ScenarioInfo; + reader.readMessage(value,proto.gauge.messages.ScenarioInfo.deserializeBinaryFromReader); + msg.setCurrentscenario(value); + break; + case 3: + var value = new proto.gauge.messages.StepInfo; + reader.readMessage(value,proto.gauge.messages.StepInfo.deserializeBinaryFromReader); + msg.setCurrentstep(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setStacktrace(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setProjectname(value); + break; + case 6: + var value = new proto.gauge.messages.ExecutionArg; + reader.readMessage(value,proto.gauge.messages.ExecutionArg.deserializeBinaryFromReader); + msg.addExecutionargs(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt32()); + msg.setNumberofexecutionstreams(value); + break; + case 8: + var value = /** @type {number} */ (reader.readInt32()); + msg.setRunnerid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ExecutionInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ExecutionInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ExecutionInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ExecutionInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCurrentspec(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.SpecInfo.serializeBinaryToWriter + ); + } + f = message.getCurrentscenario(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.gauge.messages.ScenarioInfo.serializeBinaryToWriter + ); + } + f = message.getCurrentstep(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.gauge.messages.StepInfo.serializeBinaryToWriter + ); + } + f = message.getStacktrace(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getProjectname(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getExecutionargsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + proto.gauge.messages.ExecutionArg.serializeBinaryToWriter + ); + } + f = message.getNumberofexecutionstreams(); + if (f !== 0) { + writer.writeInt32( + 7, + f + ); + } + f = message.getRunnerid(); + if (f !== 0) { + writer.writeInt32( + 8, + f + ); + } +}; + + +/** + * optional SpecInfo currentSpec = 1; + * @return {?proto.gauge.messages.SpecInfo} + */ +proto.gauge.messages.ExecutionInfo.prototype.getCurrentspec = function() { + return /** @type{?proto.gauge.messages.SpecInfo} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.SpecInfo, 1)); +}; + + +/** + * @param {?proto.gauge.messages.SpecInfo|undefined} value + * @return {!proto.gauge.messages.ExecutionInfo} returns this +*/ +proto.gauge.messages.ExecutionInfo.prototype.setCurrentspec = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ExecutionInfo} returns this + */ +proto.gauge.messages.ExecutionInfo.prototype.clearCurrentspec = function() { + return this.setCurrentspec(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ExecutionInfo.prototype.hasCurrentspec = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ScenarioInfo currentScenario = 2; + * @return {?proto.gauge.messages.ScenarioInfo} + */ +proto.gauge.messages.ExecutionInfo.prototype.getCurrentscenario = function() { + return /** @type{?proto.gauge.messages.ScenarioInfo} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ScenarioInfo, 2)); +}; + + +/** + * @param {?proto.gauge.messages.ScenarioInfo|undefined} value + * @return {!proto.gauge.messages.ExecutionInfo} returns this +*/ +proto.gauge.messages.ExecutionInfo.prototype.setCurrentscenario = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ExecutionInfo} returns this + */ +proto.gauge.messages.ExecutionInfo.prototype.clearCurrentscenario = function() { + return this.setCurrentscenario(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ExecutionInfo.prototype.hasCurrentscenario = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional StepInfo currentStep = 3; + * @return {?proto.gauge.messages.StepInfo} + */ +proto.gauge.messages.ExecutionInfo.prototype.getCurrentstep = function() { + return /** @type{?proto.gauge.messages.StepInfo} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.StepInfo, 3)); +}; + + +/** + * @param {?proto.gauge.messages.StepInfo|undefined} value + * @return {!proto.gauge.messages.ExecutionInfo} returns this +*/ +proto.gauge.messages.ExecutionInfo.prototype.setCurrentstep = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ExecutionInfo} returns this + */ +proto.gauge.messages.ExecutionInfo.prototype.clearCurrentstep = function() { + return this.setCurrentstep(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ExecutionInfo.prototype.hasCurrentstep = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string stacktrace = 4; + * @return {string} + */ +proto.gauge.messages.ExecutionInfo.prototype.getStacktrace = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ExecutionInfo} returns this + */ +proto.gauge.messages.ExecutionInfo.prototype.setStacktrace = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string projectName = 5; + * @return {string} + */ +proto.gauge.messages.ExecutionInfo.prototype.getProjectname = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ExecutionInfo} returns this + */ +proto.gauge.messages.ExecutionInfo.prototype.setProjectname = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * repeated ExecutionArg ExecutionArgs = 6; + * @return {!Array} + */ +proto.gauge.messages.ExecutionInfo.prototype.getExecutionargsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.ExecutionArg, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ExecutionInfo} returns this +*/ +proto.gauge.messages.ExecutionInfo.prototype.setExecutionargsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.gauge.messages.ExecutionArg=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ExecutionArg} + */ +proto.gauge.messages.ExecutionInfo.prototype.addExecutionargs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.gauge.messages.ExecutionArg, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ExecutionInfo} returns this + */ +proto.gauge.messages.ExecutionInfo.prototype.clearExecutionargsList = function() { + return this.setExecutionargsList([]); +}; + + +/** + * optional int32 numberOfExecutionStreams = 7; + * @return {number} + */ +proto.gauge.messages.ExecutionInfo.prototype.getNumberofexecutionstreams = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ExecutionInfo} returns this + */ +proto.gauge.messages.ExecutionInfo.prototype.setNumberofexecutionstreams = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional int32 runnerId = 8; + * @return {number} + */ +proto.gauge.messages.ExecutionInfo.prototype.getRunnerid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ExecutionInfo} returns this + */ +proto.gauge.messages.ExecutionInfo.prototype.setRunnerid = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.SpecInfo.repeatedFields_ = [4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.SpecInfo.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.SpecInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.SpecInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SpecInfo.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + filename: jspb.Message.getFieldWithDefault(msg, 2, ""), + isfailed: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + tagsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.SpecInfo} + */ +proto.gauge.messages.SpecInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.SpecInfo; + return proto.gauge.messages.SpecInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.SpecInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.SpecInfo} + */ +proto.gauge.messages.SpecInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setFilename(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsfailed(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addTags(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.SpecInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.SpecInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.SpecInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SpecInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getFilename(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getIsfailed(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getTagsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.gauge.messages.SpecInfo.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.SpecInfo} returns this + */ +proto.gauge.messages.SpecInfo.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string fileName = 2; + * @return {string} + */ +proto.gauge.messages.SpecInfo.prototype.getFilename = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.SpecInfo} returns this + */ +proto.gauge.messages.SpecInfo.prototype.setFilename = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bool isFailed = 3; + * @return {boolean} + */ +proto.gauge.messages.SpecInfo.prototype.getIsfailed = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.SpecInfo} returns this + */ +proto.gauge.messages.SpecInfo.prototype.setIsfailed = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * repeated string tags = 4; + * @return {!Array} + */ +proto.gauge.messages.SpecInfo.prototype.getTagsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.SpecInfo} returns this + */ +proto.gauge.messages.SpecInfo.prototype.setTagsList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.SpecInfo} returns this + */ +proto.gauge.messages.SpecInfo.prototype.addTags = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.SpecInfo} returns this + */ +proto.gauge.messages.SpecInfo.prototype.clearTagsList = function() { + return this.setTagsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ScenarioInfo.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ScenarioInfo.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ScenarioInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ScenarioInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ScenarioInfo.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + isfailed: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + tagsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ScenarioInfo} + */ +proto.gauge.messages.ScenarioInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ScenarioInfo; + return proto.gauge.messages.ScenarioInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ScenarioInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ScenarioInfo} + */ +proto.gauge.messages.ScenarioInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsfailed(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addTags(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ScenarioInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ScenarioInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ScenarioInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ScenarioInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getIsfailed(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getTagsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.gauge.messages.ScenarioInfo.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ScenarioInfo} returns this + */ +proto.gauge.messages.ScenarioInfo.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bool isFailed = 2; + * @return {boolean} + */ +proto.gauge.messages.ScenarioInfo.prototype.getIsfailed = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.ScenarioInfo} returns this + */ +proto.gauge.messages.ScenarioInfo.prototype.setIsfailed = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * repeated string tags = 3; + * @return {!Array} + */ +proto.gauge.messages.ScenarioInfo.prototype.getTagsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ScenarioInfo} returns this + */ +proto.gauge.messages.ScenarioInfo.prototype.setTagsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ScenarioInfo} returns this + */ +proto.gauge.messages.ScenarioInfo.prototype.addTags = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ScenarioInfo} returns this + */ +proto.gauge.messages.ScenarioInfo.prototype.clearTagsList = function() { + return this.setTagsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.StepInfo.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.StepInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.StepInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepInfo.toObject = function(includeInstance, msg) { + var f, obj = { + step: (f = msg.getStep()) && proto.gauge.messages.ExecuteStepRequest.toObject(includeInstance, f), + isfailed: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + stacktrace: jspb.Message.getFieldWithDefault(msg, 3, ""), + errormessage: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.StepInfo} + */ +proto.gauge.messages.StepInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.StepInfo; + return proto.gauge.messages.StepInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.StepInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.StepInfo} + */ +proto.gauge.messages.StepInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ExecuteStepRequest; + reader.readMessage(value,proto.gauge.messages.ExecuteStepRequest.deserializeBinaryFromReader); + msg.setStep(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsfailed(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setStacktrace(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setErrormessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.StepInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.StepInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.StepInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStep(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ExecuteStepRequest.serializeBinaryToWriter + ); + } + f = message.getIsfailed(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getStacktrace(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getErrormessage(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional ExecuteStepRequest step = 1; + * @return {?proto.gauge.messages.ExecuteStepRequest} + */ +proto.gauge.messages.StepInfo.prototype.getStep = function() { + return /** @type{?proto.gauge.messages.ExecuteStepRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ExecuteStepRequest, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ExecuteStepRequest|undefined} value + * @return {!proto.gauge.messages.StepInfo} returns this +*/ +proto.gauge.messages.StepInfo.prototype.setStep = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.StepInfo} returns this + */ +proto.gauge.messages.StepInfo.prototype.clearStep = function() { + return this.setStep(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.StepInfo.prototype.hasStep = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bool isFailed = 2; + * @return {boolean} + */ +proto.gauge.messages.StepInfo.prototype.getIsfailed = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.StepInfo} returns this + */ +proto.gauge.messages.StepInfo.prototype.setIsfailed = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional string stackTrace = 3; + * @return {string} + */ +proto.gauge.messages.StepInfo.prototype.getStacktrace = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.StepInfo} returns this + */ +proto.gauge.messages.StepInfo.prototype.setStacktrace = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string errorMessage = 4; + * @return {string} + */ +proto.gauge.messages.StepInfo.prototype.getErrormessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.StepInfo} returns this + */ +proto.gauge.messages.StepInfo.prototype.setErrormessage = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ExecuteStepRequest.repeatedFields_ = [4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ExecuteStepRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ExecuteStepRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ExecuteStepRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ExecuteStepRequest.toObject = function(includeInstance, msg) { + var f, obj = { + actualsteptext: jspb.Message.getFieldWithDefault(msg, 1, ""), + parsedsteptext: jspb.Message.getFieldWithDefault(msg, 2, ""), + scenariofailing: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + parametersList: jspb.Message.toObjectList(msg.getParametersList(), + spec_pb.Parameter.toObject, includeInstance), + stream: jspb.Message.getFieldWithDefault(msg, 5, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ExecuteStepRequest} + */ +proto.gauge.messages.ExecuteStepRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ExecuteStepRequest; + return proto.gauge.messages.ExecuteStepRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ExecuteStepRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ExecuteStepRequest} + */ +proto.gauge.messages.ExecuteStepRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setActualsteptext(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setParsedsteptext(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setScenariofailing(value); + break; + case 4: + var value = new spec_pb.Parameter; + reader.readMessage(value,spec_pb.Parameter.deserializeBinaryFromReader); + msg.addParameters(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStream(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ExecuteStepRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ExecuteStepRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ExecuteStepRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ExecuteStepRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getActualsteptext(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParsedsteptext(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getScenariofailing(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getParametersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + spec_pb.Parameter.serializeBinaryToWriter + ); + } + f = message.getStream(); + if (f !== 0) { + writer.writeInt32( + 5, + f + ); + } +}; + + +/** + * optional string actualStepText = 1; + * @return {string} + */ +proto.gauge.messages.ExecuteStepRequest.prototype.getActualsteptext = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ExecuteStepRequest} returns this + */ +proto.gauge.messages.ExecuteStepRequest.prototype.setActualsteptext = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string parsedStepText = 2; + * @return {string} + */ +proto.gauge.messages.ExecuteStepRequest.prototype.getParsedsteptext = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ExecuteStepRequest} returns this + */ +proto.gauge.messages.ExecuteStepRequest.prototype.setParsedsteptext = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bool scenarioFailing = 3; + * @return {boolean} + */ +proto.gauge.messages.ExecuteStepRequest.prototype.getScenariofailing = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.ExecuteStepRequest} returns this + */ +proto.gauge.messages.ExecuteStepRequest.prototype.setScenariofailing = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * repeated Parameter parameters = 4; + * @return {!Array} + */ +proto.gauge.messages.ExecuteStepRequest.prototype.getParametersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, spec_pb.Parameter, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ExecuteStepRequest} returns this +*/ +proto.gauge.messages.ExecuteStepRequest.prototype.setParametersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.gauge.messages.Parameter=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.Parameter} + */ +proto.gauge.messages.ExecuteStepRequest.prototype.addParameters = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.gauge.messages.Parameter, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ExecuteStepRequest} returns this + */ +proto.gauge.messages.ExecuteStepRequest.prototype.clearParametersList = function() { + return this.setParametersList([]); +}; + + +/** + * optional int32 stream = 5; + * @return {number} + */ +proto.gauge.messages.ExecuteStepRequest.prototype.getStream = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ExecuteStepRequest} returns this + */ +proto.gauge.messages.ExecuteStepRequest.prototype.setStream = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.StepValidateRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.StepValidateRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.StepValidateRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepValidateRequest.toObject = function(includeInstance, msg) { + var f, obj = { + steptext: jspb.Message.getFieldWithDefault(msg, 1, ""), + numberofparameters: jspb.Message.getFieldWithDefault(msg, 2, 0), + stepvalue: (f = msg.getStepvalue()) && spec_pb.ProtoStepValue.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.StepValidateRequest} + */ +proto.gauge.messages.StepValidateRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.StepValidateRequest; + return proto.gauge.messages.StepValidateRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.StepValidateRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.StepValidateRequest} + */ +proto.gauge.messages.StepValidateRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSteptext(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setNumberofparameters(value); + break; + case 3: + var value = new spec_pb.ProtoStepValue; + reader.readMessage(value,spec_pb.ProtoStepValue.deserializeBinaryFromReader); + msg.setStepvalue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.StepValidateRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.StepValidateRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.StepValidateRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepValidateRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSteptext(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getNumberofparameters(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getStepvalue(); + if (f != null) { + writer.writeMessage( + 3, + f, + spec_pb.ProtoStepValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string stepText = 1; + * @return {string} + */ +proto.gauge.messages.StepValidateRequest.prototype.getSteptext = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.StepValidateRequest} returns this + */ +proto.gauge.messages.StepValidateRequest.prototype.setSteptext = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int32 numberOfParameters = 2; + * @return {number} + */ +proto.gauge.messages.StepValidateRequest.prototype.getNumberofparameters = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.StepValidateRequest} returns this + */ +proto.gauge.messages.StepValidateRequest.prototype.setNumberofparameters = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional ProtoStepValue stepValue = 3; + * @return {?proto.gauge.messages.ProtoStepValue} + */ +proto.gauge.messages.StepValidateRequest.prototype.getStepvalue = function() { + return /** @type{?proto.gauge.messages.ProtoStepValue} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoStepValue, 3)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoStepValue|undefined} value + * @return {!proto.gauge.messages.StepValidateRequest} returns this +*/ +proto.gauge.messages.StepValidateRequest.prototype.setStepvalue = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.StepValidateRequest} returns this + */ +proto.gauge.messages.StepValidateRequest.prototype.clearStepvalue = function() { + return this.setStepvalue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.StepValidateRequest.prototype.hasStepvalue = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.StepValidateResponse.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.StepValidateResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.StepValidateResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepValidateResponse.toObject = function(includeInstance, msg) { + var f, obj = { + isvalid: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + errormessage: jspb.Message.getFieldWithDefault(msg, 2, ""), + errortype: jspb.Message.getFieldWithDefault(msg, 3, 0), + suggestion: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.StepValidateResponse} + */ +proto.gauge.messages.StepValidateResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.StepValidateResponse; + return proto.gauge.messages.StepValidateResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.StepValidateResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.StepValidateResponse} + */ +proto.gauge.messages.StepValidateResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsvalid(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setErrormessage(value); + break; + case 3: + var value = /** @type {!proto.gauge.messages.StepValidateResponse.ErrorType} */ (reader.readEnum()); + msg.setErrortype(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setSuggestion(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.StepValidateResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.StepValidateResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.StepValidateResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepValidateResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIsvalid(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getErrormessage(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getErrortype(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } + f = message.getSuggestion(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.gauge.messages.StepValidateResponse.ErrorType = { + STEP_IMPLEMENTATION_NOT_FOUND: 0, + DUPLICATE_STEP_IMPLEMENTATION: 1 +}; + +/** + * optional bool isValid = 1; + * @return {boolean} + */ +proto.gauge.messages.StepValidateResponse.prototype.getIsvalid = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.StepValidateResponse} returns this + */ +proto.gauge.messages.StepValidateResponse.prototype.setIsvalid = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional string errorMessage = 2; + * @return {string} + */ +proto.gauge.messages.StepValidateResponse.prototype.getErrormessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.StepValidateResponse} returns this + */ +proto.gauge.messages.StepValidateResponse.prototype.setErrormessage = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional ErrorType errorType = 3; + * @return {!proto.gauge.messages.StepValidateResponse.ErrorType} + */ +proto.gauge.messages.StepValidateResponse.prototype.getErrortype = function() { + return /** @type {!proto.gauge.messages.StepValidateResponse.ErrorType} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.gauge.messages.StepValidateResponse.ErrorType} value + * @return {!proto.gauge.messages.StepValidateResponse} returns this + */ +proto.gauge.messages.StepValidateResponse.prototype.setErrortype = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + +/** + * optional string suggestion = 4; + * @return {string} + */ +proto.gauge.messages.StepValidateResponse.prototype.getSuggestion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.StepValidateResponse} returns this + */ +proto.gauge.messages.StepValidateResponse.prototype.setSuggestion = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.SuiteExecutionResult.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.SuiteExecutionResult.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.SuiteExecutionResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SuiteExecutionResult.toObject = function(includeInstance, msg) { + var f, obj = { + suiteresult: (f = msg.getSuiteresult()) && spec_pb.ProtoSuiteResult.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.SuiteExecutionResult} + */ +proto.gauge.messages.SuiteExecutionResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.SuiteExecutionResult; + return proto.gauge.messages.SuiteExecutionResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.SuiteExecutionResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.SuiteExecutionResult} + */ +proto.gauge.messages.SuiteExecutionResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new spec_pb.ProtoSuiteResult; + reader.readMessage(value,spec_pb.ProtoSuiteResult.deserializeBinaryFromReader); + msg.setSuiteresult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.SuiteExecutionResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.SuiteExecutionResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.SuiteExecutionResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SuiteExecutionResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSuiteresult(); + if (f != null) { + writer.writeMessage( + 1, + f, + spec_pb.ProtoSuiteResult.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ProtoSuiteResult suiteResult = 1; + * @return {?proto.gauge.messages.ProtoSuiteResult} + */ +proto.gauge.messages.SuiteExecutionResult.prototype.getSuiteresult = function() { + return /** @type{?proto.gauge.messages.ProtoSuiteResult} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoSuiteResult, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoSuiteResult|undefined} value + * @return {!proto.gauge.messages.SuiteExecutionResult} returns this +*/ +proto.gauge.messages.SuiteExecutionResult.prototype.setSuiteresult = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.SuiteExecutionResult} returns this + */ +proto.gauge.messages.SuiteExecutionResult.prototype.clearSuiteresult = function() { + return this.setSuiteresult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.SuiteExecutionResult.prototype.hasSuiteresult = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.SuiteExecutionResultItem.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.SuiteExecutionResultItem.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.SuiteExecutionResultItem} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SuiteExecutionResultItem.toObject = function(includeInstance, msg) { + var f, obj = { + resultitem: (f = msg.getResultitem()) && spec_pb.ProtoItem.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.SuiteExecutionResultItem} + */ +proto.gauge.messages.SuiteExecutionResultItem.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.SuiteExecutionResultItem; + return proto.gauge.messages.SuiteExecutionResultItem.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.SuiteExecutionResultItem} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.SuiteExecutionResultItem} + */ +proto.gauge.messages.SuiteExecutionResultItem.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new spec_pb.ProtoItem; + reader.readMessage(value,spec_pb.ProtoItem.deserializeBinaryFromReader); + msg.setResultitem(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.SuiteExecutionResultItem.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.SuiteExecutionResultItem.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.SuiteExecutionResultItem} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SuiteExecutionResultItem.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getResultitem(); + if (f != null) { + writer.writeMessage( + 1, + f, + spec_pb.ProtoItem.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ProtoItem resultItem = 1; + * @return {?proto.gauge.messages.ProtoItem} + */ +proto.gauge.messages.SuiteExecutionResultItem.prototype.getResultitem = function() { + return /** @type{?proto.gauge.messages.ProtoItem} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoItem, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoItem|undefined} value + * @return {!proto.gauge.messages.SuiteExecutionResultItem} returns this +*/ +proto.gauge.messages.SuiteExecutionResultItem.prototype.setResultitem = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.SuiteExecutionResultItem} returns this + */ +proto.gauge.messages.SuiteExecutionResultItem.prototype.clearResultitem = function() { + return this.setResultitem(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.SuiteExecutionResultItem.prototype.hasResultitem = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.StepNamesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.StepNamesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.StepNamesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepNamesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.StepNamesRequest} + */ +proto.gauge.messages.StepNamesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.StepNamesRequest; + return proto.gauge.messages.StepNamesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.StepNamesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.StepNamesRequest} + */ +proto.gauge.messages.StepNamesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.StepNamesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.StepNamesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.StepNamesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepNamesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.StepNamesResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.StepNamesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.StepNamesResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.StepNamesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepNamesResponse.toObject = function(includeInstance, msg) { + var f, obj = { + stepsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.StepNamesResponse} + */ +proto.gauge.messages.StepNamesResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.StepNamesResponse; + return proto.gauge.messages.StepNamesResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.StepNamesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.StepNamesResponse} + */ +proto.gauge.messages.StepNamesResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addSteps(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.StepNamesResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.StepNamesResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.StepNamesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepNamesResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStepsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } +}; + + +/** + * repeated string steps = 1; + * @return {!Array} + */ +proto.gauge.messages.StepNamesResponse.prototype.getStepsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.StepNamesResponse} returns this + */ +proto.gauge.messages.StepNamesResponse.prototype.setStepsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.StepNamesResponse} returns this + */ +proto.gauge.messages.StepNamesResponse.prototype.addSteps = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.StepNamesResponse} returns this + */ +proto.gauge.messages.StepNamesResponse.prototype.clearStepsList = function() { + return this.setStepsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ScenarioDataStoreInitRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ScenarioDataStoreInitRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ScenarioDataStoreInitRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ScenarioDataStoreInitRequest.toObject = function(includeInstance, msg) { + var f, obj = { + stream: jspb.Message.getFieldWithDefault(msg, 1, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ScenarioDataStoreInitRequest} + */ +proto.gauge.messages.ScenarioDataStoreInitRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ScenarioDataStoreInitRequest; + return proto.gauge.messages.ScenarioDataStoreInitRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ScenarioDataStoreInitRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ScenarioDataStoreInitRequest} + */ +proto.gauge.messages.ScenarioDataStoreInitRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStream(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ScenarioDataStoreInitRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ScenarioDataStoreInitRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ScenarioDataStoreInitRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ScenarioDataStoreInitRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStream(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } +}; + + +/** + * optional int32 stream = 1; + * @return {number} + */ +proto.gauge.messages.ScenarioDataStoreInitRequest.prototype.getStream = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ScenarioDataStoreInitRequest} returns this + */ +proto.gauge.messages.ScenarioDataStoreInitRequest.prototype.setStream = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.SpecDataStoreInitRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.SpecDataStoreInitRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.SpecDataStoreInitRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SpecDataStoreInitRequest.toObject = function(includeInstance, msg) { + var f, obj = { + stream: jspb.Message.getFieldWithDefault(msg, 1, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.SpecDataStoreInitRequest} + */ +proto.gauge.messages.SpecDataStoreInitRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.SpecDataStoreInitRequest; + return proto.gauge.messages.SpecDataStoreInitRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.SpecDataStoreInitRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.SpecDataStoreInitRequest} + */ +proto.gauge.messages.SpecDataStoreInitRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStream(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.SpecDataStoreInitRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.SpecDataStoreInitRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.SpecDataStoreInitRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SpecDataStoreInitRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStream(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } +}; + + +/** + * optional int32 stream = 1; + * @return {number} + */ +proto.gauge.messages.SpecDataStoreInitRequest.prototype.getStream = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.SpecDataStoreInitRequest} returns this + */ +proto.gauge.messages.SpecDataStoreInitRequest.prototype.setStream = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.SuiteDataStoreInitRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.SuiteDataStoreInitRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.SuiteDataStoreInitRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SuiteDataStoreInitRequest.toObject = function(includeInstance, msg) { + var f, obj = { + stream: jspb.Message.getFieldWithDefault(msg, 1, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.SuiteDataStoreInitRequest} + */ +proto.gauge.messages.SuiteDataStoreInitRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.SuiteDataStoreInitRequest; + return proto.gauge.messages.SuiteDataStoreInitRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.SuiteDataStoreInitRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.SuiteDataStoreInitRequest} + */ +proto.gauge.messages.SuiteDataStoreInitRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStream(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.SuiteDataStoreInitRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.SuiteDataStoreInitRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.SuiteDataStoreInitRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SuiteDataStoreInitRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStream(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } +}; + + +/** + * optional int32 stream = 1; + * @return {number} + */ +proto.gauge.messages.SuiteDataStoreInitRequest.prototype.getStream = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.SuiteDataStoreInitRequest} returns this + */ +proto.gauge.messages.SuiteDataStoreInitRequest.prototype.setStream = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ParameterPosition.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ParameterPosition.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ParameterPosition} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ParameterPosition.toObject = function(includeInstance, msg) { + var f, obj = { + oldposition: jspb.Message.getFieldWithDefault(msg, 1, 0), + newposition: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ParameterPosition} + */ +proto.gauge.messages.ParameterPosition.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ParameterPosition; + return proto.gauge.messages.ParameterPosition.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ParameterPosition} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ParameterPosition} + */ +proto.gauge.messages.ParameterPosition.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setOldposition(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setNewposition(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ParameterPosition.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ParameterPosition.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ParameterPosition} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ParameterPosition.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOldposition(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getNewposition(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * optional int32 oldPosition = 1; + * @return {number} + */ +proto.gauge.messages.ParameterPosition.prototype.getOldposition = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ParameterPosition} returns this + */ +proto.gauge.messages.ParameterPosition.prototype.setOldposition = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 newPosition = 2; + * @return {number} + */ +proto.gauge.messages.ParameterPosition.prototype.getNewposition = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ParameterPosition} returns this + */ +proto.gauge.messages.ParameterPosition.prototype.setNewposition = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.RefactorRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.RefactorRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.RefactorRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.RefactorRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.RefactorRequest.toObject = function(includeInstance, msg) { + var f, obj = { + oldstepvalue: (f = msg.getOldstepvalue()) && spec_pb.ProtoStepValue.toObject(includeInstance, f), + newstepvalue: (f = msg.getNewstepvalue()) && spec_pb.ProtoStepValue.toObject(includeInstance, f), + parampositionsList: jspb.Message.toObjectList(msg.getParampositionsList(), + proto.gauge.messages.ParameterPosition.toObject, includeInstance), + savechanges: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.RefactorRequest} + */ +proto.gauge.messages.RefactorRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.RefactorRequest; + return proto.gauge.messages.RefactorRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.RefactorRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.RefactorRequest} + */ +proto.gauge.messages.RefactorRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new spec_pb.ProtoStepValue; + reader.readMessage(value,spec_pb.ProtoStepValue.deserializeBinaryFromReader); + msg.setOldstepvalue(value); + break; + case 2: + var value = new spec_pb.ProtoStepValue; + reader.readMessage(value,spec_pb.ProtoStepValue.deserializeBinaryFromReader); + msg.setNewstepvalue(value); + break; + case 3: + var value = new proto.gauge.messages.ParameterPosition; + reader.readMessage(value,proto.gauge.messages.ParameterPosition.deserializeBinaryFromReader); + msg.addParampositions(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSavechanges(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.RefactorRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.RefactorRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.RefactorRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.RefactorRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOldstepvalue(); + if (f != null) { + writer.writeMessage( + 1, + f, + spec_pb.ProtoStepValue.serializeBinaryToWriter + ); + } + f = message.getNewstepvalue(); + if (f != null) { + writer.writeMessage( + 2, + f, + spec_pb.ProtoStepValue.serializeBinaryToWriter + ); + } + f = message.getParampositionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.gauge.messages.ParameterPosition.serializeBinaryToWriter + ); + } + f = message.getSavechanges(); + if (f) { + writer.writeBool( + 4, + f + ); + } +}; + + +/** + * optional ProtoStepValue oldStepValue = 1; + * @return {?proto.gauge.messages.ProtoStepValue} + */ +proto.gauge.messages.RefactorRequest.prototype.getOldstepvalue = function() { + return /** @type{?proto.gauge.messages.ProtoStepValue} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoStepValue, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoStepValue|undefined} value + * @return {!proto.gauge.messages.RefactorRequest} returns this +*/ +proto.gauge.messages.RefactorRequest.prototype.setOldstepvalue = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.RefactorRequest} returns this + */ +proto.gauge.messages.RefactorRequest.prototype.clearOldstepvalue = function() { + return this.setOldstepvalue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.RefactorRequest.prototype.hasOldstepvalue = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ProtoStepValue newStepValue = 2; + * @return {?proto.gauge.messages.ProtoStepValue} + */ +proto.gauge.messages.RefactorRequest.prototype.getNewstepvalue = function() { + return /** @type{?proto.gauge.messages.ProtoStepValue} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoStepValue, 2)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoStepValue|undefined} value + * @return {!proto.gauge.messages.RefactorRequest} returns this +*/ +proto.gauge.messages.RefactorRequest.prototype.setNewstepvalue = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.RefactorRequest} returns this + */ +proto.gauge.messages.RefactorRequest.prototype.clearNewstepvalue = function() { + return this.setNewstepvalue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.RefactorRequest.prototype.hasNewstepvalue = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated ParameterPosition paramPositions = 3; + * @return {!Array} + */ +proto.gauge.messages.RefactorRequest.prototype.getParampositionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.ParameterPosition, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.RefactorRequest} returns this +*/ +proto.gauge.messages.RefactorRequest.prototype.setParampositionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.gauge.messages.ParameterPosition=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ParameterPosition} + */ +proto.gauge.messages.RefactorRequest.prototype.addParampositions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gauge.messages.ParameterPosition, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.RefactorRequest} returns this + */ +proto.gauge.messages.RefactorRequest.prototype.clearParampositionsList = function() { + return this.setParampositionsList([]); +}; + + +/** + * optional bool saveChanges = 4; + * @return {boolean} + */ +proto.gauge.messages.RefactorRequest.prototype.getSavechanges = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.RefactorRequest} returns this + */ +proto.gauge.messages.RefactorRequest.prototype.setSavechanges = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.FileChanges.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.FileChanges.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.FileChanges.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.FileChanges} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.FileChanges.toObject = function(includeInstance, msg) { + var f, obj = { + filename: jspb.Message.getFieldWithDefault(msg, 1, ""), + filecontent: jspb.Message.getFieldWithDefault(msg, 2, ""), + diffsList: jspb.Message.toObjectList(msg.getDiffsList(), + proto.gauge.messages.TextDiff.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.FileChanges} + */ +proto.gauge.messages.FileChanges.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.FileChanges; + return proto.gauge.messages.FileChanges.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.FileChanges} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.FileChanges} + */ +proto.gauge.messages.FileChanges.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setFilename(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setFilecontent(value); + break; + case 3: + var value = new proto.gauge.messages.TextDiff; + reader.readMessage(value,proto.gauge.messages.TextDiff.deserializeBinaryFromReader); + msg.addDiffs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.FileChanges.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.FileChanges.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.FileChanges} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.FileChanges.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFilename(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getFilecontent(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDiffsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.gauge.messages.TextDiff.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string fileName = 1; + * @return {string} + */ +proto.gauge.messages.FileChanges.prototype.getFilename = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.FileChanges} returns this + */ +proto.gauge.messages.FileChanges.prototype.setFilename = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string fileContent = 2; + * @return {string} + */ +proto.gauge.messages.FileChanges.prototype.getFilecontent = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.FileChanges} returns this + */ +proto.gauge.messages.FileChanges.prototype.setFilecontent = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated TextDiff diffs = 3; + * @return {!Array} + */ +proto.gauge.messages.FileChanges.prototype.getDiffsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.TextDiff, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.FileChanges} returns this +*/ +proto.gauge.messages.FileChanges.prototype.setDiffsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.gauge.messages.TextDiff=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.TextDiff} + */ +proto.gauge.messages.FileChanges.prototype.addDiffs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gauge.messages.TextDiff, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.FileChanges} returns this + */ +proto.gauge.messages.FileChanges.prototype.clearDiffsList = function() { + return this.setDiffsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.RefactorResponse.repeatedFields_ = [3,4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.RefactorResponse.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.RefactorResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.RefactorResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.RefactorResponse.toObject = function(includeInstance, msg) { + var f, obj = { + success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + error: jspb.Message.getFieldWithDefault(msg, 2, ""), + fileschangedList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + filechangesList: jspb.Message.toObjectList(msg.getFilechangesList(), + proto.gauge.messages.FileChanges.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.RefactorResponse} + */ +proto.gauge.messages.RefactorResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.RefactorResponse; + return proto.gauge.messages.RefactorResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.RefactorResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.RefactorResponse} + */ +proto.gauge.messages.RefactorResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuccess(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setError(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addFileschanged(value); + break; + case 4: + var value = new proto.gauge.messages.FileChanges; + reader.readMessage(value,proto.gauge.messages.FileChanges.deserializeBinaryFromReader); + msg.addFilechanges(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.RefactorResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.RefactorResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.RefactorResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.RefactorResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSuccess(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getError(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getFileschangedList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } + f = message.getFilechangesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto.gauge.messages.FileChanges.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bool success = 1; + * @return {boolean} + */ +proto.gauge.messages.RefactorResponse.prototype.getSuccess = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.RefactorResponse} returns this + */ +proto.gauge.messages.RefactorResponse.prototype.setSuccess = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional string error = 2; + * @return {string} + */ +proto.gauge.messages.RefactorResponse.prototype.getError = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.RefactorResponse} returns this + */ +proto.gauge.messages.RefactorResponse.prototype.setError = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated string filesChanged = 3; + * @return {!Array} + */ +proto.gauge.messages.RefactorResponse.prototype.getFileschangedList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.RefactorResponse} returns this + */ +proto.gauge.messages.RefactorResponse.prototype.setFileschangedList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.RefactorResponse} returns this + */ +proto.gauge.messages.RefactorResponse.prototype.addFileschanged = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.RefactorResponse} returns this + */ +proto.gauge.messages.RefactorResponse.prototype.clearFileschangedList = function() { + return this.setFileschangedList([]); +}; + + +/** + * repeated FileChanges fileChanges = 4; + * @return {!Array} + */ +proto.gauge.messages.RefactorResponse.prototype.getFilechangesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.FileChanges, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.RefactorResponse} returns this +*/ +proto.gauge.messages.RefactorResponse.prototype.setFilechangesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.gauge.messages.FileChanges=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.FileChanges} + */ +proto.gauge.messages.RefactorResponse.prototype.addFilechanges = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.gauge.messages.FileChanges, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.RefactorResponse} returns this + */ +proto.gauge.messages.RefactorResponse.prototype.clearFilechangesList = function() { + return this.setFilechangesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.StepNameRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.StepNameRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.StepNameRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepNameRequest.toObject = function(includeInstance, msg) { + var f, obj = { + stepvalue: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.StepNameRequest} + */ +proto.gauge.messages.StepNameRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.StepNameRequest; + return proto.gauge.messages.StepNameRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.StepNameRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.StepNameRequest} + */ +proto.gauge.messages.StepNameRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStepvalue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.StepNameRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.StepNameRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.StepNameRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepNameRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStepvalue(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string stepValue = 1; + * @return {string} + */ +proto.gauge.messages.StepNameRequest.prototype.getStepvalue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.StepNameRequest} returns this + */ +proto.gauge.messages.StepNameRequest.prototype.setStepvalue = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.StepNameResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.StepNameResponse.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.StepNameResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.StepNameResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepNameResponse.toObject = function(includeInstance, msg) { + var f, obj = { + issteppresent: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + stepnameList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + hasalias: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + filename: jspb.Message.getFieldWithDefault(msg, 4, ""), + span: (f = msg.getSpan()) && spec_pb.Span.toObject(includeInstance, f), + isexternal: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.StepNameResponse} + */ +proto.gauge.messages.StepNameResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.StepNameResponse; + return proto.gauge.messages.StepNameResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.StepNameResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.StepNameResponse} + */ +proto.gauge.messages.StepNameResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIssteppresent(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addStepname(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setHasalias(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setFilename(value); + break; + case 5: + var value = new spec_pb.Span; + reader.readMessage(value,spec_pb.Span.deserializeBinaryFromReader); + msg.setSpan(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsexternal(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.StepNameResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.StepNameResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.StepNameResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepNameResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIssteppresent(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getStepnameList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getHasalias(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getFilename(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getSpan(); + if (f != null) { + writer.writeMessage( + 5, + f, + spec_pb.Span.serializeBinaryToWriter + ); + } + f = message.getIsexternal(); + if (f) { + writer.writeBool( + 6, + f + ); + } +}; + + +/** + * optional bool isStepPresent = 1; + * @return {boolean} + */ +proto.gauge.messages.StepNameResponse.prototype.getIssteppresent = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.StepNameResponse} returns this + */ +proto.gauge.messages.StepNameResponse.prototype.setIssteppresent = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * repeated string stepName = 2; + * @return {!Array} + */ +proto.gauge.messages.StepNameResponse.prototype.getStepnameList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.StepNameResponse} returns this + */ +proto.gauge.messages.StepNameResponse.prototype.setStepnameList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.StepNameResponse} returns this + */ +proto.gauge.messages.StepNameResponse.prototype.addStepname = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.StepNameResponse} returns this + */ +proto.gauge.messages.StepNameResponse.prototype.clearStepnameList = function() { + return this.setStepnameList([]); +}; + + +/** + * optional bool hasAlias = 3; + * @return {boolean} + */ +proto.gauge.messages.StepNameResponse.prototype.getHasalias = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.StepNameResponse} returns this + */ +proto.gauge.messages.StepNameResponse.prototype.setHasalias = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional string fileName = 4; + * @return {string} + */ +proto.gauge.messages.StepNameResponse.prototype.getFilename = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.StepNameResponse} returns this + */ +proto.gauge.messages.StepNameResponse.prototype.setFilename = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional Span span = 5; + * @return {?proto.gauge.messages.Span} + */ +proto.gauge.messages.StepNameResponse.prototype.getSpan = function() { + return /** @type{?proto.gauge.messages.Span} */ ( + jspb.Message.getWrapperField(this, spec_pb.Span, 5)); +}; + + +/** + * @param {?proto.gauge.messages.Span|undefined} value + * @return {!proto.gauge.messages.StepNameResponse} returns this +*/ +proto.gauge.messages.StepNameResponse.prototype.setSpan = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.StepNameResponse} returns this + */ +proto.gauge.messages.StepNameResponse.prototype.clearSpan = function() { + return this.setSpan(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.StepNameResponse.prototype.hasSpan = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional bool isExternal = 6; + * @return {boolean} + */ +proto.gauge.messages.StepNameResponse.prototype.getIsexternal = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.StepNameResponse} returns this + */ +proto.gauge.messages.StepNameResponse.prototype.setIsexternal = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.UnsupportedMessageResponse.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.UnsupportedMessageResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.UnsupportedMessageResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.UnsupportedMessageResponse.toObject = function(includeInstance, msg) { + var f, obj = { + message: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.UnsupportedMessageResponse} + */ +proto.gauge.messages.UnsupportedMessageResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.UnsupportedMessageResponse; + return proto.gauge.messages.UnsupportedMessageResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.UnsupportedMessageResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.UnsupportedMessageResponse} + */ +proto.gauge.messages.UnsupportedMessageResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.UnsupportedMessageResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.UnsupportedMessageResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.UnsupportedMessageResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.UnsupportedMessageResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMessage(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string message = 1; + * @return {string} + */ +proto.gauge.messages.UnsupportedMessageResponse.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.UnsupportedMessageResponse} returns this + */ +proto.gauge.messages.UnsupportedMessageResponse.prototype.setMessage = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.CacheFileRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.CacheFileRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.CacheFileRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.CacheFileRequest.toObject = function(includeInstance, msg) { + var f, obj = { + content: jspb.Message.getFieldWithDefault(msg, 1, ""), + filepath: jspb.Message.getFieldWithDefault(msg, 2, ""), + isclosed: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + status: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.CacheFileRequest} + */ +proto.gauge.messages.CacheFileRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.CacheFileRequest; + return proto.gauge.messages.CacheFileRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.CacheFileRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.CacheFileRequest} + */ +proto.gauge.messages.CacheFileRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setContent(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setFilepath(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsclosed(value); + break; + case 4: + var value = /** @type {!proto.gauge.messages.CacheFileRequest.FileStatus} */ (reader.readEnum()); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.CacheFileRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.CacheFileRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.CacheFileRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.CacheFileRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getContent(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getFilepath(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getIsclosed(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 4, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.gauge.messages.CacheFileRequest.FileStatus = { + CHANGED: 0, + CLOSED: 1, + CREATED: 2, + DELETED: 3, + OPENED: 4 +}; + +/** + * optional string content = 1; + * @return {string} + */ +proto.gauge.messages.CacheFileRequest.prototype.getContent = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.CacheFileRequest} returns this + */ +proto.gauge.messages.CacheFileRequest.prototype.setContent = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string filePath = 2; + * @return {string} + */ +proto.gauge.messages.CacheFileRequest.prototype.getFilepath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.CacheFileRequest} returns this + */ +proto.gauge.messages.CacheFileRequest.prototype.setFilepath = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bool isClosed = 3; + * @return {boolean} + */ +proto.gauge.messages.CacheFileRequest.prototype.getIsclosed = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.CacheFileRequest} returns this + */ +proto.gauge.messages.CacheFileRequest.prototype.setIsclosed = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional FileStatus status = 4; + * @return {!proto.gauge.messages.CacheFileRequest.FileStatus} + */ +proto.gauge.messages.CacheFileRequest.prototype.getStatus = function() { + return /** @type {!proto.gauge.messages.CacheFileRequest.FileStatus} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.gauge.messages.CacheFileRequest.FileStatus} value + * @return {!proto.gauge.messages.CacheFileRequest} returns this + */ +proto.gauge.messages.CacheFileRequest.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.StepPositionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.StepPositionsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.StepPositionsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepPositionsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + filepath: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.StepPositionsRequest} + */ +proto.gauge.messages.StepPositionsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.StepPositionsRequest; + return proto.gauge.messages.StepPositionsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.StepPositionsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.StepPositionsRequest} + */ +proto.gauge.messages.StepPositionsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setFilepath(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.StepPositionsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.StepPositionsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.StepPositionsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepPositionsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFilepath(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string filePath = 1; + * @return {string} + */ +proto.gauge.messages.StepPositionsRequest.prototype.getFilepath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.StepPositionsRequest} returns this + */ +proto.gauge.messages.StepPositionsRequest.prototype.setFilepath = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.StepPositionsResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.StepPositionsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.StepPositionsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.StepPositionsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepPositionsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + steppositionsList: jspb.Message.toObjectList(msg.getSteppositionsList(), + proto.gauge.messages.StepPositionsResponse.StepPosition.toObject, includeInstance), + error: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.StepPositionsResponse} + */ +proto.gauge.messages.StepPositionsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.StepPositionsResponse; + return proto.gauge.messages.StepPositionsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.StepPositionsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.StepPositionsResponse} + */ +proto.gauge.messages.StepPositionsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.StepPositionsResponse.StepPosition; + reader.readMessage(value,proto.gauge.messages.StepPositionsResponse.StepPosition.deserializeBinaryFromReader); + msg.addSteppositions(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setError(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.StepPositionsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.StepPositionsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.StepPositionsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepPositionsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSteppositionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.gauge.messages.StepPositionsResponse.StepPosition.serializeBinaryToWriter + ); + } + f = message.getError(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.StepPositionsResponse.StepPosition.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.StepPositionsResponse.StepPosition.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.StepPositionsResponse.StepPosition} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepPositionsResponse.StepPosition.toObject = function(includeInstance, msg) { + var f, obj = { + stepvalue: jspb.Message.getFieldWithDefault(msg, 1, ""), + span: (f = msg.getSpan()) && spec_pb.Span.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.StepPositionsResponse.StepPosition} + */ +proto.gauge.messages.StepPositionsResponse.StepPosition.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.StepPositionsResponse.StepPosition; + return proto.gauge.messages.StepPositionsResponse.StepPosition.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.StepPositionsResponse.StepPosition} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.StepPositionsResponse.StepPosition} + */ +proto.gauge.messages.StepPositionsResponse.StepPosition.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStepvalue(value); + break; + case 2: + var value = new spec_pb.Span; + reader.readMessage(value,spec_pb.Span.deserializeBinaryFromReader); + msg.setSpan(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.StepPositionsResponse.StepPosition.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.StepPositionsResponse.StepPosition.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.StepPositionsResponse.StepPosition} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StepPositionsResponse.StepPosition.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStepvalue(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSpan(); + if (f != null) { + writer.writeMessage( + 2, + f, + spec_pb.Span.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string stepValue = 1; + * @return {string} + */ +proto.gauge.messages.StepPositionsResponse.StepPosition.prototype.getStepvalue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.StepPositionsResponse.StepPosition} returns this + */ +proto.gauge.messages.StepPositionsResponse.StepPosition.prototype.setStepvalue = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Span span = 2; + * @return {?proto.gauge.messages.Span} + */ +proto.gauge.messages.StepPositionsResponse.StepPosition.prototype.getSpan = function() { + return /** @type{?proto.gauge.messages.Span} */ ( + jspb.Message.getWrapperField(this, spec_pb.Span, 2)); +}; + + +/** + * @param {?proto.gauge.messages.Span|undefined} value + * @return {!proto.gauge.messages.StepPositionsResponse.StepPosition} returns this +*/ +proto.gauge.messages.StepPositionsResponse.StepPosition.prototype.setSpan = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.StepPositionsResponse.StepPosition} returns this + */ +proto.gauge.messages.StepPositionsResponse.StepPosition.prototype.clearSpan = function() { + return this.setSpan(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.StepPositionsResponse.StepPosition.prototype.hasSpan = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated StepPosition stepPositions = 1; + * @return {!Array} + */ +proto.gauge.messages.StepPositionsResponse.prototype.getSteppositionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.StepPositionsResponse.StepPosition, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.StepPositionsResponse} returns this +*/ +proto.gauge.messages.StepPositionsResponse.prototype.setSteppositionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.gauge.messages.StepPositionsResponse.StepPosition=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.StepPositionsResponse.StepPosition} + */ +proto.gauge.messages.StepPositionsResponse.prototype.addSteppositions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gauge.messages.StepPositionsResponse.StepPosition, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.StepPositionsResponse} returns this + */ +proto.gauge.messages.StepPositionsResponse.prototype.clearSteppositionsList = function() { + return this.setSteppositionsList([]); +}; + + +/** + * optional string error = 2; + * @return {string} + */ +proto.gauge.messages.StepPositionsResponse.prototype.getError = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.StepPositionsResponse} returns this + */ +proto.gauge.messages.StepPositionsResponse.prototype.setError = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ImplementationFileGlobPatternRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ImplementationFileGlobPatternRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ImplementationFileGlobPatternRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ImplementationFileGlobPatternRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ImplementationFileGlobPatternRequest} + */ +proto.gauge.messages.ImplementationFileGlobPatternRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ImplementationFileGlobPatternRequest; + return proto.gauge.messages.ImplementationFileGlobPatternRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ImplementationFileGlobPatternRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ImplementationFileGlobPatternRequest} + */ +proto.gauge.messages.ImplementationFileGlobPatternRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ImplementationFileGlobPatternRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ImplementationFileGlobPatternRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ImplementationFileGlobPatternRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ImplementationFileGlobPatternRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ImplementationFileGlobPatternResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ImplementationFileGlobPatternResponse.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ImplementationFileGlobPatternResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ImplementationFileGlobPatternResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ImplementationFileGlobPatternResponse.toObject = function(includeInstance, msg) { + var f, obj = { + globpatternsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ImplementationFileGlobPatternResponse} + */ +proto.gauge.messages.ImplementationFileGlobPatternResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ImplementationFileGlobPatternResponse; + return proto.gauge.messages.ImplementationFileGlobPatternResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ImplementationFileGlobPatternResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ImplementationFileGlobPatternResponse} + */ +proto.gauge.messages.ImplementationFileGlobPatternResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addGlobpatterns(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ImplementationFileGlobPatternResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ImplementationFileGlobPatternResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ImplementationFileGlobPatternResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ImplementationFileGlobPatternResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGlobpatternsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } +}; + + +/** + * repeated string globPatterns = 1; + * @return {!Array} + */ +proto.gauge.messages.ImplementationFileGlobPatternResponse.prototype.getGlobpatternsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ImplementationFileGlobPatternResponse} returns this + */ +proto.gauge.messages.ImplementationFileGlobPatternResponse.prototype.setGlobpatternsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ImplementationFileGlobPatternResponse} returns this + */ +proto.gauge.messages.ImplementationFileGlobPatternResponse.prototype.addGlobpatterns = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ImplementationFileGlobPatternResponse} returns this + */ +proto.gauge.messages.ImplementationFileGlobPatternResponse.prototype.clearGlobpatternsList = function() { + return this.setGlobpatternsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ImplementationFileListRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ImplementationFileListRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ImplementationFileListRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ImplementationFileListRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ImplementationFileListRequest} + */ +proto.gauge.messages.ImplementationFileListRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ImplementationFileListRequest; + return proto.gauge.messages.ImplementationFileListRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ImplementationFileListRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ImplementationFileListRequest} + */ +proto.gauge.messages.ImplementationFileListRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ImplementationFileListRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ImplementationFileListRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ImplementationFileListRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ImplementationFileListRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ImplementationFileListResponse.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ImplementationFileListResponse.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ImplementationFileListResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ImplementationFileListResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ImplementationFileListResponse.toObject = function(includeInstance, msg) { + var f, obj = { + implementationfilepathsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ImplementationFileListResponse} + */ +proto.gauge.messages.ImplementationFileListResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ImplementationFileListResponse; + return proto.gauge.messages.ImplementationFileListResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ImplementationFileListResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ImplementationFileListResponse} + */ +proto.gauge.messages.ImplementationFileListResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addImplementationfilepaths(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ImplementationFileListResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ImplementationFileListResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ImplementationFileListResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ImplementationFileListResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getImplementationfilepathsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } +}; + + +/** + * repeated string implementationFilePaths = 1; + * @return {!Array} + */ +proto.gauge.messages.ImplementationFileListResponse.prototype.getImplementationfilepathsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ImplementationFileListResponse} returns this + */ +proto.gauge.messages.ImplementationFileListResponse.prototype.setImplementationfilepathsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ImplementationFileListResponse} returns this + */ +proto.gauge.messages.ImplementationFileListResponse.prototype.addImplementationfilepaths = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ImplementationFileListResponse} returns this + */ +proto.gauge.messages.ImplementationFileListResponse.prototype.clearImplementationfilepathsList = function() { + return this.setImplementationfilepathsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.StubImplementationCodeRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.StubImplementationCodeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.StubImplementationCodeRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.StubImplementationCodeRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StubImplementationCodeRequest.toObject = function(includeInstance, msg) { + var f, obj = { + implementationfilepath: jspb.Message.getFieldWithDefault(msg, 1, ""), + codesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.StubImplementationCodeRequest} + */ +proto.gauge.messages.StubImplementationCodeRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.StubImplementationCodeRequest; + return proto.gauge.messages.StubImplementationCodeRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.StubImplementationCodeRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.StubImplementationCodeRequest} + */ +proto.gauge.messages.StubImplementationCodeRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setImplementationfilepath(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addCodes(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.StubImplementationCodeRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.StubImplementationCodeRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.StubImplementationCodeRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.StubImplementationCodeRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getImplementationfilepath(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCodesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional string implementationFilePath = 1; + * @return {string} + */ +proto.gauge.messages.StubImplementationCodeRequest.prototype.getImplementationfilepath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.StubImplementationCodeRequest} returns this + */ +proto.gauge.messages.StubImplementationCodeRequest.prototype.setImplementationfilepath = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated string codes = 2; + * @return {!Array} + */ +proto.gauge.messages.StubImplementationCodeRequest.prototype.getCodesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.StubImplementationCodeRequest} returns this + */ +proto.gauge.messages.StubImplementationCodeRequest.prototype.setCodesList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.StubImplementationCodeRequest} returns this + */ +proto.gauge.messages.StubImplementationCodeRequest.prototype.addCodes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.StubImplementationCodeRequest} returns this + */ +proto.gauge.messages.StubImplementationCodeRequest.prototype.clearCodesList = function() { + return this.setCodesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.TextDiff.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.TextDiff.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.TextDiff} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.TextDiff.toObject = function(includeInstance, msg) { + var f, obj = { + span: (f = msg.getSpan()) && spec_pb.Span.toObject(includeInstance, f), + content: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.TextDiff} + */ +proto.gauge.messages.TextDiff.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.TextDiff; + return proto.gauge.messages.TextDiff.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.TextDiff} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.TextDiff} + */ +proto.gauge.messages.TextDiff.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new spec_pb.Span; + reader.readMessage(value,spec_pb.Span.deserializeBinaryFromReader); + msg.setSpan(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setContent(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.TextDiff.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.TextDiff.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.TextDiff} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.TextDiff.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSpan(); + if (f != null) { + writer.writeMessage( + 1, + f, + spec_pb.Span.serializeBinaryToWriter + ); + } + f = message.getContent(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional Span span = 1; + * @return {?proto.gauge.messages.Span} + */ +proto.gauge.messages.TextDiff.prototype.getSpan = function() { + return /** @type{?proto.gauge.messages.Span} */ ( + jspb.Message.getWrapperField(this, spec_pb.Span, 1)); +}; + + +/** + * @param {?proto.gauge.messages.Span|undefined} value + * @return {!proto.gauge.messages.TextDiff} returns this +*/ +proto.gauge.messages.TextDiff.prototype.setSpan = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.TextDiff} returns this + */ +proto.gauge.messages.TextDiff.prototype.clearSpan = function() { + return this.setSpan(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.TextDiff.prototype.hasSpan = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string content = 2; + * @return {string} + */ +proto.gauge.messages.TextDiff.prototype.getContent = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.TextDiff} returns this + */ +proto.gauge.messages.TextDiff.prototype.setContent = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.FileDiff.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.FileDiff.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.FileDiff.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.FileDiff} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.FileDiff.toObject = function(includeInstance, msg) { + var f, obj = { + filepath: jspb.Message.getFieldWithDefault(msg, 1, ""), + textdiffsList: jspb.Message.toObjectList(msg.getTextdiffsList(), + proto.gauge.messages.TextDiff.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.FileDiff} + */ +proto.gauge.messages.FileDiff.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.FileDiff; + return proto.gauge.messages.FileDiff.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.FileDiff} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.FileDiff} + */ +proto.gauge.messages.FileDiff.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setFilepath(value); + break; + case 2: + var value = new proto.gauge.messages.TextDiff; + reader.readMessage(value,proto.gauge.messages.TextDiff.deserializeBinaryFromReader); + msg.addTextdiffs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.FileDiff.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.FileDiff.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.FileDiff} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.FileDiff.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFilepath(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getTextdiffsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.gauge.messages.TextDiff.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string filePath = 1; + * @return {string} + */ +proto.gauge.messages.FileDiff.prototype.getFilepath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.FileDiff} returns this + */ +proto.gauge.messages.FileDiff.prototype.setFilepath = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated TextDiff textDiffs = 2; + * @return {!Array} + */ +proto.gauge.messages.FileDiff.prototype.getTextdiffsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.TextDiff, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.FileDiff} returns this +*/ +proto.gauge.messages.FileDiff.prototype.setTextdiffsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.gauge.messages.TextDiff=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.TextDiff} + */ +proto.gauge.messages.FileDiff.prototype.addTextdiffs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gauge.messages.TextDiff, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.FileDiff} returns this + */ +proto.gauge.messages.FileDiff.prototype.clearTextdiffsList = function() { + return this.setTextdiffsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.KeepAlive.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.KeepAlive.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.KeepAlive} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.KeepAlive.toObject = function(includeInstance, msg) { + var f, obj = { + pluginid: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.KeepAlive} + */ +proto.gauge.messages.KeepAlive.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.KeepAlive; + return proto.gauge.messages.KeepAlive.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.KeepAlive} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.KeepAlive} + */ +proto.gauge.messages.KeepAlive.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setPluginid(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.KeepAlive.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.KeepAlive.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.KeepAlive} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.KeepAlive.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPluginid(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string pluginId = 1; + * @return {string} + */ +proto.gauge.messages.KeepAlive.prototype.getPluginid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.KeepAlive} returns this + */ +proto.gauge.messages.KeepAlive.prototype.setPluginid = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.SpecDetails.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.SpecDetails.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.SpecDetails.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.SpecDetails} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SpecDetails.toObject = function(includeInstance, msg) { + var f, obj = { + detailsList: jspb.Message.toObjectList(msg.getDetailsList(), + proto.gauge.messages.SpecDetails.SpecDetail.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.SpecDetails} + */ +proto.gauge.messages.SpecDetails.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.SpecDetails; + return proto.gauge.messages.SpecDetails.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.SpecDetails} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.SpecDetails} + */ +proto.gauge.messages.SpecDetails.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.SpecDetails.SpecDetail; + reader.readMessage(value,proto.gauge.messages.SpecDetails.SpecDetail.deserializeBinaryFromReader); + msg.addDetails(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.SpecDetails.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.SpecDetails.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.SpecDetails} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SpecDetails.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDetailsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.gauge.messages.SpecDetails.SpecDetail.serializeBinaryToWriter + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.SpecDetails.SpecDetail.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.SpecDetails.SpecDetail.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.SpecDetails.SpecDetail.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.SpecDetails.SpecDetail} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SpecDetails.SpecDetail.toObject = function(includeInstance, msg) { + var f, obj = { + spec: (f = msg.getSpec()) && spec_pb.ProtoSpec.toObject(includeInstance, f), + parseerrorsList: jspb.Message.toObjectList(msg.getParseerrorsList(), + spec_pb.Error.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.SpecDetails.SpecDetail} + */ +proto.gauge.messages.SpecDetails.SpecDetail.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.SpecDetails.SpecDetail; + return proto.gauge.messages.SpecDetails.SpecDetail.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.SpecDetails.SpecDetail} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.SpecDetails.SpecDetail} + */ +proto.gauge.messages.SpecDetails.SpecDetail.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new spec_pb.ProtoSpec; + reader.readMessage(value,spec_pb.ProtoSpec.deserializeBinaryFromReader); + msg.setSpec(value); + break; + case 2: + var value = new spec_pb.Error; + reader.readMessage(value,spec_pb.Error.deserializeBinaryFromReader); + msg.addParseerrors(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.SpecDetails.SpecDetail.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.SpecDetails.SpecDetail.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.SpecDetails.SpecDetail} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.SpecDetails.SpecDetail.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSpec(); + if (f != null) { + writer.writeMessage( + 1, + f, + spec_pb.ProtoSpec.serializeBinaryToWriter + ); + } + f = message.getParseerrorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + spec_pb.Error.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ProtoSpec spec = 1; + * @return {?proto.gauge.messages.ProtoSpec} + */ +proto.gauge.messages.SpecDetails.SpecDetail.prototype.getSpec = function() { + return /** @type{?proto.gauge.messages.ProtoSpec} */ ( + jspb.Message.getWrapperField(this, spec_pb.ProtoSpec, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoSpec|undefined} value + * @return {!proto.gauge.messages.SpecDetails.SpecDetail} returns this +*/ +proto.gauge.messages.SpecDetails.SpecDetail.prototype.setSpec = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.SpecDetails.SpecDetail} returns this + */ +proto.gauge.messages.SpecDetails.SpecDetail.prototype.clearSpec = function() { + return this.setSpec(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.SpecDetails.SpecDetail.prototype.hasSpec = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Error parseErrors = 2; + * @return {!Array} + */ +proto.gauge.messages.SpecDetails.SpecDetail.prototype.getParseerrorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, spec_pb.Error, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.SpecDetails.SpecDetail} returns this +*/ +proto.gauge.messages.SpecDetails.SpecDetail.prototype.setParseerrorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.gauge.messages.Error=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.Error} + */ +proto.gauge.messages.SpecDetails.SpecDetail.prototype.addParseerrors = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gauge.messages.Error, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.SpecDetails.SpecDetail} returns this + */ +proto.gauge.messages.SpecDetails.SpecDetail.prototype.clearParseerrorsList = function() { + return this.setParseerrorsList([]); +}; + + +/** + * repeated SpecDetail details = 1; + * @return {!Array} + */ +proto.gauge.messages.SpecDetails.prototype.getDetailsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.SpecDetails.SpecDetail, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.SpecDetails} returns this +*/ +proto.gauge.messages.SpecDetails.prototype.setDetailsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.gauge.messages.SpecDetails.SpecDetail=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.SpecDetails.SpecDetail} + */ +proto.gauge.messages.SpecDetails.prototype.addDetails = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gauge.messages.SpecDetails.SpecDetail, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.SpecDetails} returns this + */ +proto.gauge.messages.SpecDetails.prototype.clearDetailsList = function() { + return this.setDetailsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.Empty.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.Empty.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.Empty} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.Empty.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.Empty} + */ +proto.gauge.messages.Empty.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.Empty; + return proto.gauge.messages.Empty.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.Empty} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.Empty} + */ +proto.gauge.messages.Empty.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.Empty.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.Empty.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.Empty} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.Empty.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.Message.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.Message.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.Message} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.Message.toObject = function(includeInstance, msg) { + var f, obj = { + messagetype: jspb.Message.getFieldWithDefault(msg, 1, 0), + messageid: jspb.Message.getFieldWithDefault(msg, 2, 0), + executionstartingrequest: (f = msg.getExecutionstartingrequest()) && proto.gauge.messages.ExecutionStartingRequest.toObject(includeInstance, f), + specexecutionstartingrequest: (f = msg.getSpecexecutionstartingrequest()) && proto.gauge.messages.SpecExecutionStartingRequest.toObject(includeInstance, f), + specexecutionendingrequest: (f = msg.getSpecexecutionendingrequest()) && proto.gauge.messages.SpecExecutionEndingRequest.toObject(includeInstance, f), + scenarioexecutionstartingrequest: (f = msg.getScenarioexecutionstartingrequest()) && proto.gauge.messages.ScenarioExecutionStartingRequest.toObject(includeInstance, f), + scenarioexecutionendingrequest: (f = msg.getScenarioexecutionendingrequest()) && proto.gauge.messages.ScenarioExecutionEndingRequest.toObject(includeInstance, f), + stepexecutionstartingrequest: (f = msg.getStepexecutionstartingrequest()) && proto.gauge.messages.StepExecutionStartingRequest.toObject(includeInstance, f), + stepexecutionendingrequest: (f = msg.getStepexecutionendingrequest()) && proto.gauge.messages.StepExecutionEndingRequest.toObject(includeInstance, f), + executesteprequest: (f = msg.getExecutesteprequest()) && proto.gauge.messages.ExecuteStepRequest.toObject(includeInstance, f), + executionendingrequest: (f = msg.getExecutionendingrequest()) && proto.gauge.messages.ExecutionEndingRequest.toObject(includeInstance, f), + stepvalidaterequest: (f = msg.getStepvalidaterequest()) && proto.gauge.messages.StepValidateRequest.toObject(includeInstance, f), + stepvalidateresponse: (f = msg.getStepvalidateresponse()) && proto.gauge.messages.StepValidateResponse.toObject(includeInstance, f), + executionstatusresponse: (f = msg.getExecutionstatusresponse()) && proto.gauge.messages.ExecutionStatusResponse.toObject(includeInstance, f), + stepnamesrequest: (f = msg.getStepnamesrequest()) && proto.gauge.messages.StepNamesRequest.toObject(includeInstance, f), + stepnamesresponse: (f = msg.getStepnamesresponse()) && proto.gauge.messages.StepNamesResponse.toObject(includeInstance, f), + suiteexecutionresult: (f = msg.getSuiteexecutionresult()) && proto.gauge.messages.SuiteExecutionResult.toObject(includeInstance, f), + killprocessrequest: (f = msg.getKillprocessrequest()) && proto.gauge.messages.KillProcessRequest.toObject(includeInstance, f), + scenariodatastoreinitrequest: (f = msg.getScenariodatastoreinitrequest()) && proto.gauge.messages.ScenarioDataStoreInitRequest.toObject(includeInstance, f), + specdatastoreinitrequest: (f = msg.getSpecdatastoreinitrequest()) && proto.gauge.messages.SpecDataStoreInitRequest.toObject(includeInstance, f), + suitedatastoreinitrequest: (f = msg.getSuitedatastoreinitrequest()) && proto.gauge.messages.SuiteDataStoreInitRequest.toObject(includeInstance, f), + stepnamerequest: (f = msg.getStepnamerequest()) && proto.gauge.messages.StepNameRequest.toObject(includeInstance, f), + stepnameresponse: (f = msg.getStepnameresponse()) && proto.gauge.messages.StepNameResponse.toObject(includeInstance, f), + refactorrequest: (f = msg.getRefactorrequest()) && proto.gauge.messages.RefactorRequest.toObject(includeInstance, f), + refactorresponse: (f = msg.getRefactorresponse()) && proto.gauge.messages.RefactorResponse.toObject(includeInstance, f), + unsupportedmessageresponse: (f = msg.getUnsupportedmessageresponse()) && proto.gauge.messages.UnsupportedMessageResponse.toObject(includeInstance, f), + cachefilerequest: (f = msg.getCachefilerequest()) && proto.gauge.messages.CacheFileRequest.toObject(includeInstance, f), + steppositionsrequest: (f = msg.getSteppositionsrequest()) && proto.gauge.messages.StepPositionsRequest.toObject(includeInstance, f), + steppositionsresponse: (f = msg.getSteppositionsresponse()) && proto.gauge.messages.StepPositionsResponse.toObject(includeInstance, f), + implementationfilelistrequest: (f = msg.getImplementationfilelistrequest()) && proto.gauge.messages.ImplementationFileListRequest.toObject(includeInstance, f), + implementationfilelistresponse: (f = msg.getImplementationfilelistresponse()) && proto.gauge.messages.ImplementationFileListResponse.toObject(includeInstance, f), + stubimplementationcoderequest: (f = msg.getStubimplementationcoderequest()) && proto.gauge.messages.StubImplementationCodeRequest.toObject(includeInstance, f), + filediff: (f = msg.getFilediff()) && proto.gauge.messages.FileDiff.toObject(includeInstance, f), + implementationfileglobpatternrequest: (f = msg.getImplementationfileglobpatternrequest()) && proto.gauge.messages.ImplementationFileGlobPatternRequest.toObject(includeInstance, f), + implementationfileglobpatternresponse: (f = msg.getImplementationfileglobpatternresponse()) && proto.gauge.messages.ImplementationFileGlobPatternResponse.toObject(includeInstance, f), + suiteexecutionresultitem: (f = msg.getSuiteexecutionresultitem()) && proto.gauge.messages.SuiteExecutionResultItem.toObject(includeInstance, f), + keepalive: (f = msg.getKeepalive()) && proto.gauge.messages.KeepAlive.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.Message} + */ +proto.gauge.messages.Message.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.Message; + return proto.gauge.messages.Message.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.Message} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.Message} + */ +proto.gauge.messages.Message.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.gauge.messages.Message.MessageType} */ (reader.readEnum()); + msg.setMessagetype(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setMessageid(value); + break; + case 3: + var value = new proto.gauge.messages.ExecutionStartingRequest; + reader.readMessage(value,proto.gauge.messages.ExecutionStartingRequest.deserializeBinaryFromReader); + msg.setExecutionstartingrequest(value); + break; + case 4: + var value = new proto.gauge.messages.SpecExecutionStartingRequest; + reader.readMessage(value,proto.gauge.messages.SpecExecutionStartingRequest.deserializeBinaryFromReader); + msg.setSpecexecutionstartingrequest(value); + break; + case 5: + var value = new proto.gauge.messages.SpecExecutionEndingRequest; + reader.readMessage(value,proto.gauge.messages.SpecExecutionEndingRequest.deserializeBinaryFromReader); + msg.setSpecexecutionendingrequest(value); + break; + case 6: + var value = new proto.gauge.messages.ScenarioExecutionStartingRequest; + reader.readMessage(value,proto.gauge.messages.ScenarioExecutionStartingRequest.deserializeBinaryFromReader); + msg.setScenarioexecutionstartingrequest(value); + break; + case 7: + var value = new proto.gauge.messages.ScenarioExecutionEndingRequest; + reader.readMessage(value,proto.gauge.messages.ScenarioExecutionEndingRequest.deserializeBinaryFromReader); + msg.setScenarioexecutionendingrequest(value); + break; + case 8: + var value = new proto.gauge.messages.StepExecutionStartingRequest; + reader.readMessage(value,proto.gauge.messages.StepExecutionStartingRequest.deserializeBinaryFromReader); + msg.setStepexecutionstartingrequest(value); + break; + case 9: + var value = new proto.gauge.messages.StepExecutionEndingRequest; + reader.readMessage(value,proto.gauge.messages.StepExecutionEndingRequest.deserializeBinaryFromReader); + msg.setStepexecutionendingrequest(value); + break; + case 10: + var value = new proto.gauge.messages.ExecuteStepRequest; + reader.readMessage(value,proto.gauge.messages.ExecuteStepRequest.deserializeBinaryFromReader); + msg.setExecutesteprequest(value); + break; + case 11: + var value = new proto.gauge.messages.ExecutionEndingRequest; + reader.readMessage(value,proto.gauge.messages.ExecutionEndingRequest.deserializeBinaryFromReader); + msg.setExecutionendingrequest(value); + break; + case 12: + var value = new proto.gauge.messages.StepValidateRequest; + reader.readMessage(value,proto.gauge.messages.StepValidateRequest.deserializeBinaryFromReader); + msg.setStepvalidaterequest(value); + break; + case 13: + var value = new proto.gauge.messages.StepValidateResponse; + reader.readMessage(value,proto.gauge.messages.StepValidateResponse.deserializeBinaryFromReader); + msg.setStepvalidateresponse(value); + break; + case 14: + var value = new proto.gauge.messages.ExecutionStatusResponse; + reader.readMessage(value,proto.gauge.messages.ExecutionStatusResponse.deserializeBinaryFromReader); + msg.setExecutionstatusresponse(value); + break; + case 15: + var value = new proto.gauge.messages.StepNamesRequest; + reader.readMessage(value,proto.gauge.messages.StepNamesRequest.deserializeBinaryFromReader); + msg.setStepnamesrequest(value); + break; + case 16: + var value = new proto.gauge.messages.StepNamesResponse; + reader.readMessage(value,proto.gauge.messages.StepNamesResponse.deserializeBinaryFromReader); + msg.setStepnamesresponse(value); + break; + case 17: + var value = new proto.gauge.messages.SuiteExecutionResult; + reader.readMessage(value,proto.gauge.messages.SuiteExecutionResult.deserializeBinaryFromReader); + msg.setSuiteexecutionresult(value); + break; + case 18: + var value = new proto.gauge.messages.KillProcessRequest; + reader.readMessage(value,proto.gauge.messages.KillProcessRequest.deserializeBinaryFromReader); + msg.setKillprocessrequest(value); + break; + case 19: + var value = new proto.gauge.messages.ScenarioDataStoreInitRequest; + reader.readMessage(value,proto.gauge.messages.ScenarioDataStoreInitRequest.deserializeBinaryFromReader); + msg.setScenariodatastoreinitrequest(value); + break; + case 20: + var value = new proto.gauge.messages.SpecDataStoreInitRequest; + reader.readMessage(value,proto.gauge.messages.SpecDataStoreInitRequest.deserializeBinaryFromReader); + msg.setSpecdatastoreinitrequest(value); + break; + case 21: + var value = new proto.gauge.messages.SuiteDataStoreInitRequest; + reader.readMessage(value,proto.gauge.messages.SuiteDataStoreInitRequest.deserializeBinaryFromReader); + msg.setSuitedatastoreinitrequest(value); + break; + case 22: + var value = new proto.gauge.messages.StepNameRequest; + reader.readMessage(value,proto.gauge.messages.StepNameRequest.deserializeBinaryFromReader); + msg.setStepnamerequest(value); + break; + case 23: + var value = new proto.gauge.messages.StepNameResponse; + reader.readMessage(value,proto.gauge.messages.StepNameResponse.deserializeBinaryFromReader); + msg.setStepnameresponse(value); + break; + case 24: + var value = new proto.gauge.messages.RefactorRequest; + reader.readMessage(value,proto.gauge.messages.RefactorRequest.deserializeBinaryFromReader); + msg.setRefactorrequest(value); + break; + case 25: + var value = new proto.gauge.messages.RefactorResponse; + reader.readMessage(value,proto.gauge.messages.RefactorResponse.deserializeBinaryFromReader); + msg.setRefactorresponse(value); + break; + case 26: + var value = new proto.gauge.messages.UnsupportedMessageResponse; + reader.readMessage(value,proto.gauge.messages.UnsupportedMessageResponse.deserializeBinaryFromReader); + msg.setUnsupportedmessageresponse(value); + break; + case 27: + var value = new proto.gauge.messages.CacheFileRequest; + reader.readMessage(value,proto.gauge.messages.CacheFileRequest.deserializeBinaryFromReader); + msg.setCachefilerequest(value); + break; + case 28: + var value = new proto.gauge.messages.StepPositionsRequest; + reader.readMessage(value,proto.gauge.messages.StepPositionsRequest.deserializeBinaryFromReader); + msg.setSteppositionsrequest(value); + break; + case 29: + var value = new proto.gauge.messages.StepPositionsResponse; + reader.readMessage(value,proto.gauge.messages.StepPositionsResponse.deserializeBinaryFromReader); + msg.setSteppositionsresponse(value); + break; + case 30: + var value = new proto.gauge.messages.ImplementationFileListRequest; + reader.readMessage(value,proto.gauge.messages.ImplementationFileListRequest.deserializeBinaryFromReader); + msg.setImplementationfilelistrequest(value); + break; + case 31: + var value = new proto.gauge.messages.ImplementationFileListResponse; + reader.readMessage(value,proto.gauge.messages.ImplementationFileListResponse.deserializeBinaryFromReader); + msg.setImplementationfilelistresponse(value); + break; + case 32: + var value = new proto.gauge.messages.StubImplementationCodeRequest; + reader.readMessage(value,proto.gauge.messages.StubImplementationCodeRequest.deserializeBinaryFromReader); + msg.setStubimplementationcoderequest(value); + break; + case 33: + var value = new proto.gauge.messages.FileDiff; + reader.readMessage(value,proto.gauge.messages.FileDiff.deserializeBinaryFromReader); + msg.setFilediff(value); + break; + case 34: + var value = new proto.gauge.messages.ImplementationFileGlobPatternRequest; + reader.readMessage(value,proto.gauge.messages.ImplementationFileGlobPatternRequest.deserializeBinaryFromReader); + msg.setImplementationfileglobpatternrequest(value); + break; + case 35: + var value = new proto.gauge.messages.ImplementationFileGlobPatternResponse; + reader.readMessage(value,proto.gauge.messages.ImplementationFileGlobPatternResponse.deserializeBinaryFromReader); + msg.setImplementationfileglobpatternresponse(value); + break; + case 36: + var value = new proto.gauge.messages.SuiteExecutionResultItem; + reader.readMessage(value,proto.gauge.messages.SuiteExecutionResultItem.deserializeBinaryFromReader); + msg.setSuiteexecutionresultitem(value); + break; + case 37: + var value = new proto.gauge.messages.KeepAlive; + reader.readMessage(value,proto.gauge.messages.KeepAlive.deserializeBinaryFromReader); + msg.setKeepalive(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.Message.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.Message.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.Message} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.Message.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMessagetype(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getMessageid(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getExecutionstartingrequest(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.gauge.messages.ExecutionStartingRequest.serializeBinaryToWriter + ); + } + f = message.getSpecexecutionstartingrequest(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.gauge.messages.SpecExecutionStartingRequest.serializeBinaryToWriter + ); + } + f = message.getSpecexecutionendingrequest(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.gauge.messages.SpecExecutionEndingRequest.serializeBinaryToWriter + ); + } + f = message.getScenarioexecutionstartingrequest(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.gauge.messages.ScenarioExecutionStartingRequest.serializeBinaryToWriter + ); + } + f = message.getScenarioexecutionendingrequest(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.gauge.messages.ScenarioExecutionEndingRequest.serializeBinaryToWriter + ); + } + f = message.getStepexecutionstartingrequest(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.gauge.messages.StepExecutionStartingRequest.serializeBinaryToWriter + ); + } + f = message.getStepexecutionendingrequest(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.gauge.messages.StepExecutionEndingRequest.serializeBinaryToWriter + ); + } + f = message.getExecutesteprequest(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.gauge.messages.ExecuteStepRequest.serializeBinaryToWriter + ); + } + f = message.getExecutionendingrequest(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.gauge.messages.ExecutionEndingRequest.serializeBinaryToWriter + ); + } + f = message.getStepvalidaterequest(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto.gauge.messages.StepValidateRequest.serializeBinaryToWriter + ); + } + f = message.getStepvalidateresponse(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.gauge.messages.StepValidateResponse.serializeBinaryToWriter + ); + } + f = message.getExecutionstatusresponse(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.gauge.messages.ExecutionStatusResponse.serializeBinaryToWriter + ); + } + f = message.getStepnamesrequest(); + if (f != null) { + writer.writeMessage( + 15, + f, + proto.gauge.messages.StepNamesRequest.serializeBinaryToWriter + ); + } + f = message.getStepnamesresponse(); + if (f != null) { + writer.writeMessage( + 16, + f, + proto.gauge.messages.StepNamesResponse.serializeBinaryToWriter + ); + } + f = message.getSuiteexecutionresult(); + if (f != null) { + writer.writeMessage( + 17, + f, + proto.gauge.messages.SuiteExecutionResult.serializeBinaryToWriter + ); + } + f = message.getKillprocessrequest(); + if (f != null) { + writer.writeMessage( + 18, + f, + proto.gauge.messages.KillProcessRequest.serializeBinaryToWriter + ); + } + f = message.getScenariodatastoreinitrequest(); + if (f != null) { + writer.writeMessage( + 19, + f, + proto.gauge.messages.ScenarioDataStoreInitRequest.serializeBinaryToWriter + ); + } + f = message.getSpecdatastoreinitrequest(); + if (f != null) { + writer.writeMessage( + 20, + f, + proto.gauge.messages.SpecDataStoreInitRequest.serializeBinaryToWriter + ); + } + f = message.getSuitedatastoreinitrequest(); + if (f != null) { + writer.writeMessage( + 21, + f, + proto.gauge.messages.SuiteDataStoreInitRequest.serializeBinaryToWriter + ); + } + f = message.getStepnamerequest(); + if (f != null) { + writer.writeMessage( + 22, + f, + proto.gauge.messages.StepNameRequest.serializeBinaryToWriter + ); + } + f = message.getStepnameresponse(); + if (f != null) { + writer.writeMessage( + 23, + f, + proto.gauge.messages.StepNameResponse.serializeBinaryToWriter + ); + } + f = message.getRefactorrequest(); + if (f != null) { + writer.writeMessage( + 24, + f, + proto.gauge.messages.RefactorRequest.serializeBinaryToWriter + ); + } + f = message.getRefactorresponse(); + if (f != null) { + writer.writeMessage( + 25, + f, + proto.gauge.messages.RefactorResponse.serializeBinaryToWriter + ); + } + f = message.getUnsupportedmessageresponse(); + if (f != null) { + writer.writeMessage( + 26, + f, + proto.gauge.messages.UnsupportedMessageResponse.serializeBinaryToWriter + ); + } + f = message.getCachefilerequest(); + if (f != null) { + writer.writeMessage( + 27, + f, + proto.gauge.messages.CacheFileRequest.serializeBinaryToWriter + ); + } + f = message.getSteppositionsrequest(); + if (f != null) { + writer.writeMessage( + 28, + f, + proto.gauge.messages.StepPositionsRequest.serializeBinaryToWriter + ); + } + f = message.getSteppositionsresponse(); + if (f != null) { + writer.writeMessage( + 29, + f, + proto.gauge.messages.StepPositionsResponse.serializeBinaryToWriter + ); + } + f = message.getImplementationfilelistrequest(); + if (f != null) { + writer.writeMessage( + 30, + f, + proto.gauge.messages.ImplementationFileListRequest.serializeBinaryToWriter + ); + } + f = message.getImplementationfilelistresponse(); + if (f != null) { + writer.writeMessage( + 31, + f, + proto.gauge.messages.ImplementationFileListResponse.serializeBinaryToWriter + ); + } + f = message.getStubimplementationcoderequest(); + if (f != null) { + writer.writeMessage( + 32, + f, + proto.gauge.messages.StubImplementationCodeRequest.serializeBinaryToWriter + ); + } + f = message.getFilediff(); + if (f != null) { + writer.writeMessage( + 33, + f, + proto.gauge.messages.FileDiff.serializeBinaryToWriter + ); + } + f = message.getImplementationfileglobpatternrequest(); + if (f != null) { + writer.writeMessage( + 34, + f, + proto.gauge.messages.ImplementationFileGlobPatternRequest.serializeBinaryToWriter + ); + } + f = message.getImplementationfileglobpatternresponse(); + if (f != null) { + writer.writeMessage( + 35, + f, + proto.gauge.messages.ImplementationFileGlobPatternResponse.serializeBinaryToWriter + ); + } + f = message.getSuiteexecutionresultitem(); + if (f != null) { + writer.writeMessage( + 36, + f, + proto.gauge.messages.SuiteExecutionResultItem.serializeBinaryToWriter + ); + } + f = message.getKeepalive(); + if (f != null) { + writer.writeMessage( + 37, + f, + proto.gauge.messages.KeepAlive.serializeBinaryToWriter + ); + } +}; + + +/** + * @enum {number} + */ +proto.gauge.messages.Message.MessageType = { + EXECUTIONSTARTING: 0, + SPECEXECUTIONSTARTING: 1, + SPECEXECUTIONENDING: 2, + SCENARIOEXECUTIONSTARTING: 3, + SCENARIOEXECUTIONENDING: 4, + STEPEXECUTIONSTARTING: 5, + STEPEXECUTIONENDING: 6, + EXECUTESTEP: 7, + EXECUTIONENDING: 8, + STEPVALIDATEREQUEST: 9, + STEPVALIDATERESPONSE: 10, + EXECUTIONSTATUSRESPONSE: 11, + STEPNAMESREQUEST: 12, + STEPNAMESRESPONSE: 13, + KILLPROCESSREQUEST: 14, + SUITEEXECUTIONRESULT: 15, + SCENARIODATASTOREINIT: 16, + SPECDATASTOREINIT: 17, + SUITEDATASTOREINIT: 18, + STEPNAMEREQUEST: 19, + STEPNAMERESPONSE: 20, + REFACTORREQUEST: 21, + REFACTORRESPONSE: 22, + UNSUPPORTEDMESSAGERESPONSE: 23, + CACHEFILEREQUEST: 24, + STEPPOSITIONSREQUEST: 25, + STEPPOSITIONSRESPONSE: 26, + IMPLEMENTATIONFILELISTREQUEST: 27, + IMPLEMENTATIONFILELISTRESPONSE: 28, + STUBIMPLEMENTATIONCODEREQUEST: 29, + FILEDIFF: 30, + IMPLEMENTATIONFILEGLOBPATTERNREQUEST: 31, + IMPLEMENTATIONFILEGLOBPATTERNRESPONSE: 32, + SUITEEXECUTIONRESULTITEM: 33, + KEEPALIVE: 34 +}; + +/** + * optional MessageType messageType = 1; + * @return {!proto.gauge.messages.Message.MessageType} + */ +proto.gauge.messages.Message.prototype.getMessagetype = function() { + return /** @type {!proto.gauge.messages.Message.MessageType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.gauge.messages.Message.MessageType} value + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.setMessagetype = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional int64 messageId = 2; + * @return {number} + */ +proto.gauge.messages.Message.prototype.getMessageid = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.setMessageid = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional ExecutionStartingRequest executionStartingRequest = 3; + * @return {?proto.gauge.messages.ExecutionStartingRequest} + */ +proto.gauge.messages.Message.prototype.getExecutionstartingrequest = function() { + return /** @type{?proto.gauge.messages.ExecutionStartingRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ExecutionStartingRequest, 3)); +}; + + +/** + * @param {?proto.gauge.messages.ExecutionStartingRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setExecutionstartingrequest = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearExecutionstartingrequest = function() { + return this.setExecutionstartingrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasExecutionstartingrequest = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional SpecExecutionStartingRequest specExecutionStartingRequest = 4; + * @return {?proto.gauge.messages.SpecExecutionStartingRequest} + */ +proto.gauge.messages.Message.prototype.getSpecexecutionstartingrequest = function() { + return /** @type{?proto.gauge.messages.SpecExecutionStartingRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.SpecExecutionStartingRequest, 4)); +}; + + +/** + * @param {?proto.gauge.messages.SpecExecutionStartingRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setSpecexecutionstartingrequest = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearSpecexecutionstartingrequest = function() { + return this.setSpecexecutionstartingrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasSpecexecutionstartingrequest = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional SpecExecutionEndingRequest specExecutionEndingRequest = 5; + * @return {?proto.gauge.messages.SpecExecutionEndingRequest} + */ +proto.gauge.messages.Message.prototype.getSpecexecutionendingrequest = function() { + return /** @type{?proto.gauge.messages.SpecExecutionEndingRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.SpecExecutionEndingRequest, 5)); +}; + + +/** + * @param {?proto.gauge.messages.SpecExecutionEndingRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setSpecexecutionendingrequest = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearSpecexecutionendingrequest = function() { + return this.setSpecexecutionendingrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasSpecexecutionendingrequest = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional ScenarioExecutionStartingRequest scenarioExecutionStartingRequest = 6; + * @return {?proto.gauge.messages.ScenarioExecutionStartingRequest} + */ +proto.gauge.messages.Message.prototype.getScenarioexecutionstartingrequest = function() { + return /** @type{?proto.gauge.messages.ScenarioExecutionStartingRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ScenarioExecutionStartingRequest, 6)); +}; + + +/** + * @param {?proto.gauge.messages.ScenarioExecutionStartingRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setScenarioexecutionstartingrequest = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearScenarioexecutionstartingrequest = function() { + return this.setScenarioexecutionstartingrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasScenarioexecutionstartingrequest = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional ScenarioExecutionEndingRequest scenarioExecutionEndingRequest = 7; + * @return {?proto.gauge.messages.ScenarioExecutionEndingRequest} + */ +proto.gauge.messages.Message.prototype.getScenarioexecutionendingrequest = function() { + return /** @type{?proto.gauge.messages.ScenarioExecutionEndingRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ScenarioExecutionEndingRequest, 7)); +}; + + +/** + * @param {?proto.gauge.messages.ScenarioExecutionEndingRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setScenarioexecutionendingrequest = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearScenarioexecutionendingrequest = function() { + return this.setScenarioexecutionendingrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasScenarioexecutionendingrequest = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional StepExecutionStartingRequest stepExecutionStartingRequest = 8; + * @return {?proto.gauge.messages.StepExecutionStartingRequest} + */ +proto.gauge.messages.Message.prototype.getStepexecutionstartingrequest = function() { + return /** @type{?proto.gauge.messages.StepExecutionStartingRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.StepExecutionStartingRequest, 8)); +}; + + +/** + * @param {?proto.gauge.messages.StepExecutionStartingRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setStepexecutionstartingrequest = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearStepexecutionstartingrequest = function() { + return this.setStepexecutionstartingrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasStepexecutionstartingrequest = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional StepExecutionEndingRequest stepExecutionEndingRequest = 9; + * @return {?proto.gauge.messages.StepExecutionEndingRequest} + */ +proto.gauge.messages.Message.prototype.getStepexecutionendingrequest = function() { + return /** @type{?proto.gauge.messages.StepExecutionEndingRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.StepExecutionEndingRequest, 9)); +}; + + +/** + * @param {?proto.gauge.messages.StepExecutionEndingRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setStepexecutionendingrequest = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearStepexecutionendingrequest = function() { + return this.setStepexecutionendingrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasStepexecutionendingrequest = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional ExecuteStepRequest executeStepRequest = 10; + * @return {?proto.gauge.messages.ExecuteStepRequest} + */ +proto.gauge.messages.Message.prototype.getExecutesteprequest = function() { + return /** @type{?proto.gauge.messages.ExecuteStepRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ExecuteStepRequest, 10)); +}; + + +/** + * @param {?proto.gauge.messages.ExecuteStepRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setExecutesteprequest = function(value) { + return jspb.Message.setWrapperField(this, 10, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearExecutesteprequest = function() { + return this.setExecutesteprequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasExecutesteprequest = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional ExecutionEndingRequest executionEndingRequest = 11; + * @return {?proto.gauge.messages.ExecutionEndingRequest} + */ +proto.gauge.messages.Message.prototype.getExecutionendingrequest = function() { + return /** @type{?proto.gauge.messages.ExecutionEndingRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ExecutionEndingRequest, 11)); +}; + + +/** + * @param {?proto.gauge.messages.ExecutionEndingRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setExecutionendingrequest = function(value) { + return jspb.Message.setWrapperField(this, 11, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearExecutionendingrequest = function() { + return this.setExecutionendingrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasExecutionendingrequest = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * optional StepValidateRequest stepValidateRequest = 12; + * @return {?proto.gauge.messages.StepValidateRequest} + */ +proto.gauge.messages.Message.prototype.getStepvalidaterequest = function() { + return /** @type{?proto.gauge.messages.StepValidateRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.StepValidateRequest, 12)); +}; + + +/** + * @param {?proto.gauge.messages.StepValidateRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setStepvalidaterequest = function(value) { + return jspb.Message.setWrapperField(this, 12, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearStepvalidaterequest = function() { + return this.setStepvalidaterequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasStepvalidaterequest = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional StepValidateResponse stepValidateResponse = 13; + * @return {?proto.gauge.messages.StepValidateResponse} + */ +proto.gauge.messages.Message.prototype.getStepvalidateresponse = function() { + return /** @type{?proto.gauge.messages.StepValidateResponse} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.StepValidateResponse, 13)); +}; + + +/** + * @param {?proto.gauge.messages.StepValidateResponse|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setStepvalidateresponse = function(value) { + return jspb.Message.setWrapperField(this, 13, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearStepvalidateresponse = function() { + return this.setStepvalidateresponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasStepvalidateresponse = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional ExecutionStatusResponse executionStatusResponse = 14; + * @return {?proto.gauge.messages.ExecutionStatusResponse} + */ +proto.gauge.messages.Message.prototype.getExecutionstatusresponse = function() { + return /** @type{?proto.gauge.messages.ExecutionStatusResponse} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ExecutionStatusResponse, 14)); +}; + + +/** + * @param {?proto.gauge.messages.ExecutionStatusResponse|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setExecutionstatusresponse = function(value) { + return jspb.Message.setWrapperField(this, 14, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearExecutionstatusresponse = function() { + return this.setExecutionstatusresponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasExecutionstatusresponse = function() { + return jspb.Message.getField(this, 14) != null; +}; + + +/** + * optional StepNamesRequest stepNamesRequest = 15; + * @return {?proto.gauge.messages.StepNamesRequest} + */ +proto.gauge.messages.Message.prototype.getStepnamesrequest = function() { + return /** @type{?proto.gauge.messages.StepNamesRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.StepNamesRequest, 15)); +}; + + +/** + * @param {?proto.gauge.messages.StepNamesRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setStepnamesrequest = function(value) { + return jspb.Message.setWrapperField(this, 15, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearStepnamesrequest = function() { + return this.setStepnamesrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasStepnamesrequest = function() { + return jspb.Message.getField(this, 15) != null; +}; + + +/** + * optional StepNamesResponse stepNamesResponse = 16; + * @return {?proto.gauge.messages.StepNamesResponse} + */ +proto.gauge.messages.Message.prototype.getStepnamesresponse = function() { + return /** @type{?proto.gauge.messages.StepNamesResponse} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.StepNamesResponse, 16)); +}; + + +/** + * @param {?proto.gauge.messages.StepNamesResponse|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setStepnamesresponse = function(value) { + return jspb.Message.setWrapperField(this, 16, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearStepnamesresponse = function() { + return this.setStepnamesresponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasStepnamesresponse = function() { + return jspb.Message.getField(this, 16) != null; +}; + + +/** + * optional SuiteExecutionResult suiteExecutionResult = 17; + * @return {?proto.gauge.messages.SuiteExecutionResult} + */ +proto.gauge.messages.Message.prototype.getSuiteexecutionresult = function() { + return /** @type{?proto.gauge.messages.SuiteExecutionResult} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.SuiteExecutionResult, 17)); +}; + + +/** + * @param {?proto.gauge.messages.SuiteExecutionResult|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setSuiteexecutionresult = function(value) { + return jspb.Message.setWrapperField(this, 17, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearSuiteexecutionresult = function() { + return this.setSuiteexecutionresult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasSuiteexecutionresult = function() { + return jspb.Message.getField(this, 17) != null; +}; + + +/** + * optional KillProcessRequest killProcessRequest = 18; + * @return {?proto.gauge.messages.KillProcessRequest} + */ +proto.gauge.messages.Message.prototype.getKillprocessrequest = function() { + return /** @type{?proto.gauge.messages.KillProcessRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.KillProcessRequest, 18)); +}; + + +/** + * @param {?proto.gauge.messages.KillProcessRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setKillprocessrequest = function(value) { + return jspb.Message.setWrapperField(this, 18, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearKillprocessrequest = function() { + return this.setKillprocessrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasKillprocessrequest = function() { + return jspb.Message.getField(this, 18) != null; +}; + + +/** + * optional ScenarioDataStoreInitRequest scenarioDataStoreInitRequest = 19; + * @return {?proto.gauge.messages.ScenarioDataStoreInitRequest} + */ +proto.gauge.messages.Message.prototype.getScenariodatastoreinitrequest = function() { + return /** @type{?proto.gauge.messages.ScenarioDataStoreInitRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ScenarioDataStoreInitRequest, 19)); +}; + + +/** + * @param {?proto.gauge.messages.ScenarioDataStoreInitRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setScenariodatastoreinitrequest = function(value) { + return jspb.Message.setWrapperField(this, 19, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearScenariodatastoreinitrequest = function() { + return this.setScenariodatastoreinitrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasScenariodatastoreinitrequest = function() { + return jspb.Message.getField(this, 19) != null; +}; + + +/** + * optional SpecDataStoreInitRequest specDataStoreInitRequest = 20; + * @return {?proto.gauge.messages.SpecDataStoreInitRequest} + */ +proto.gauge.messages.Message.prototype.getSpecdatastoreinitrequest = function() { + return /** @type{?proto.gauge.messages.SpecDataStoreInitRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.SpecDataStoreInitRequest, 20)); +}; + + +/** + * @param {?proto.gauge.messages.SpecDataStoreInitRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setSpecdatastoreinitrequest = function(value) { + return jspb.Message.setWrapperField(this, 20, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearSpecdatastoreinitrequest = function() { + return this.setSpecdatastoreinitrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasSpecdatastoreinitrequest = function() { + return jspb.Message.getField(this, 20) != null; +}; + + +/** + * optional SuiteDataStoreInitRequest suiteDataStoreInitRequest = 21; + * @return {?proto.gauge.messages.SuiteDataStoreInitRequest} + */ +proto.gauge.messages.Message.prototype.getSuitedatastoreinitrequest = function() { + return /** @type{?proto.gauge.messages.SuiteDataStoreInitRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.SuiteDataStoreInitRequest, 21)); +}; + + +/** + * @param {?proto.gauge.messages.SuiteDataStoreInitRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setSuitedatastoreinitrequest = function(value) { + return jspb.Message.setWrapperField(this, 21, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearSuitedatastoreinitrequest = function() { + return this.setSuitedatastoreinitrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasSuitedatastoreinitrequest = function() { + return jspb.Message.getField(this, 21) != null; +}; + + +/** + * optional StepNameRequest stepNameRequest = 22; + * @return {?proto.gauge.messages.StepNameRequest} + */ +proto.gauge.messages.Message.prototype.getStepnamerequest = function() { + return /** @type{?proto.gauge.messages.StepNameRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.StepNameRequest, 22)); +}; + + +/** + * @param {?proto.gauge.messages.StepNameRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setStepnamerequest = function(value) { + return jspb.Message.setWrapperField(this, 22, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearStepnamerequest = function() { + return this.setStepnamerequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasStepnamerequest = function() { + return jspb.Message.getField(this, 22) != null; +}; + + +/** + * optional StepNameResponse stepNameResponse = 23; + * @return {?proto.gauge.messages.StepNameResponse} + */ +proto.gauge.messages.Message.prototype.getStepnameresponse = function() { + return /** @type{?proto.gauge.messages.StepNameResponse} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.StepNameResponse, 23)); +}; + + +/** + * @param {?proto.gauge.messages.StepNameResponse|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setStepnameresponse = function(value) { + return jspb.Message.setWrapperField(this, 23, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearStepnameresponse = function() { + return this.setStepnameresponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasStepnameresponse = function() { + return jspb.Message.getField(this, 23) != null; +}; + + +/** + * optional RefactorRequest refactorRequest = 24; + * @return {?proto.gauge.messages.RefactorRequest} + */ +proto.gauge.messages.Message.prototype.getRefactorrequest = function() { + return /** @type{?proto.gauge.messages.RefactorRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.RefactorRequest, 24)); +}; + + +/** + * @param {?proto.gauge.messages.RefactorRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setRefactorrequest = function(value) { + return jspb.Message.setWrapperField(this, 24, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearRefactorrequest = function() { + return this.setRefactorrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasRefactorrequest = function() { + return jspb.Message.getField(this, 24) != null; +}; + + +/** + * optional RefactorResponse refactorResponse = 25; + * @return {?proto.gauge.messages.RefactorResponse} + */ +proto.gauge.messages.Message.prototype.getRefactorresponse = function() { + return /** @type{?proto.gauge.messages.RefactorResponse} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.RefactorResponse, 25)); +}; + + +/** + * @param {?proto.gauge.messages.RefactorResponse|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setRefactorresponse = function(value) { + return jspb.Message.setWrapperField(this, 25, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearRefactorresponse = function() { + return this.setRefactorresponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasRefactorresponse = function() { + return jspb.Message.getField(this, 25) != null; +}; + + +/** + * optional UnsupportedMessageResponse unsupportedMessageResponse = 26; + * @return {?proto.gauge.messages.UnsupportedMessageResponse} + */ +proto.gauge.messages.Message.prototype.getUnsupportedmessageresponse = function() { + return /** @type{?proto.gauge.messages.UnsupportedMessageResponse} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.UnsupportedMessageResponse, 26)); +}; + + +/** + * @param {?proto.gauge.messages.UnsupportedMessageResponse|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setUnsupportedmessageresponse = function(value) { + return jspb.Message.setWrapperField(this, 26, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearUnsupportedmessageresponse = function() { + return this.setUnsupportedmessageresponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasUnsupportedmessageresponse = function() { + return jspb.Message.getField(this, 26) != null; +}; + + +/** + * optional CacheFileRequest cacheFileRequest = 27; + * @return {?proto.gauge.messages.CacheFileRequest} + */ +proto.gauge.messages.Message.prototype.getCachefilerequest = function() { + return /** @type{?proto.gauge.messages.CacheFileRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.CacheFileRequest, 27)); +}; + + +/** + * @param {?proto.gauge.messages.CacheFileRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setCachefilerequest = function(value) { + return jspb.Message.setWrapperField(this, 27, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearCachefilerequest = function() { + return this.setCachefilerequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasCachefilerequest = function() { + return jspb.Message.getField(this, 27) != null; +}; + + +/** + * optional StepPositionsRequest stepPositionsRequest = 28; + * @return {?proto.gauge.messages.StepPositionsRequest} + */ +proto.gauge.messages.Message.prototype.getSteppositionsrequest = function() { + return /** @type{?proto.gauge.messages.StepPositionsRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.StepPositionsRequest, 28)); +}; + + +/** + * @param {?proto.gauge.messages.StepPositionsRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setSteppositionsrequest = function(value) { + return jspb.Message.setWrapperField(this, 28, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearSteppositionsrequest = function() { + return this.setSteppositionsrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasSteppositionsrequest = function() { + return jspb.Message.getField(this, 28) != null; +}; + + +/** + * optional StepPositionsResponse stepPositionsResponse = 29; + * @return {?proto.gauge.messages.StepPositionsResponse} + */ +proto.gauge.messages.Message.prototype.getSteppositionsresponse = function() { + return /** @type{?proto.gauge.messages.StepPositionsResponse} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.StepPositionsResponse, 29)); +}; + + +/** + * @param {?proto.gauge.messages.StepPositionsResponse|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setSteppositionsresponse = function(value) { + return jspb.Message.setWrapperField(this, 29, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearSteppositionsresponse = function() { + return this.setSteppositionsresponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasSteppositionsresponse = function() { + return jspb.Message.getField(this, 29) != null; +}; + + +/** + * optional ImplementationFileListRequest implementationFileListRequest = 30; + * @return {?proto.gauge.messages.ImplementationFileListRequest} + */ +proto.gauge.messages.Message.prototype.getImplementationfilelistrequest = function() { + return /** @type{?proto.gauge.messages.ImplementationFileListRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ImplementationFileListRequest, 30)); +}; + + +/** + * @param {?proto.gauge.messages.ImplementationFileListRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setImplementationfilelistrequest = function(value) { + return jspb.Message.setWrapperField(this, 30, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearImplementationfilelistrequest = function() { + return this.setImplementationfilelistrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasImplementationfilelistrequest = function() { + return jspb.Message.getField(this, 30) != null; +}; + + +/** + * optional ImplementationFileListResponse implementationFileListResponse = 31; + * @return {?proto.gauge.messages.ImplementationFileListResponse} + */ +proto.gauge.messages.Message.prototype.getImplementationfilelistresponse = function() { + return /** @type{?proto.gauge.messages.ImplementationFileListResponse} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ImplementationFileListResponse, 31)); +}; + + +/** + * @param {?proto.gauge.messages.ImplementationFileListResponse|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setImplementationfilelistresponse = function(value) { + return jspb.Message.setWrapperField(this, 31, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearImplementationfilelistresponse = function() { + return this.setImplementationfilelistresponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasImplementationfilelistresponse = function() { + return jspb.Message.getField(this, 31) != null; +}; + + +/** + * optional StubImplementationCodeRequest stubImplementationCodeRequest = 32; + * @return {?proto.gauge.messages.StubImplementationCodeRequest} + */ +proto.gauge.messages.Message.prototype.getStubimplementationcoderequest = function() { + return /** @type{?proto.gauge.messages.StubImplementationCodeRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.StubImplementationCodeRequest, 32)); +}; + + +/** + * @param {?proto.gauge.messages.StubImplementationCodeRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setStubimplementationcoderequest = function(value) { + return jspb.Message.setWrapperField(this, 32, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearStubimplementationcoderequest = function() { + return this.setStubimplementationcoderequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasStubimplementationcoderequest = function() { + return jspb.Message.getField(this, 32) != null; +}; + + +/** + * optional FileDiff fileDiff = 33; + * @return {?proto.gauge.messages.FileDiff} + */ +proto.gauge.messages.Message.prototype.getFilediff = function() { + return /** @type{?proto.gauge.messages.FileDiff} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.FileDiff, 33)); +}; + + +/** + * @param {?proto.gauge.messages.FileDiff|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setFilediff = function(value) { + return jspb.Message.setWrapperField(this, 33, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearFilediff = function() { + return this.setFilediff(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasFilediff = function() { + return jspb.Message.getField(this, 33) != null; +}; + + +/** + * optional ImplementationFileGlobPatternRequest implementationFileGlobPatternRequest = 34; + * @return {?proto.gauge.messages.ImplementationFileGlobPatternRequest} + */ +proto.gauge.messages.Message.prototype.getImplementationfileglobpatternrequest = function() { + return /** @type{?proto.gauge.messages.ImplementationFileGlobPatternRequest} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ImplementationFileGlobPatternRequest, 34)); +}; + + +/** + * @param {?proto.gauge.messages.ImplementationFileGlobPatternRequest|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setImplementationfileglobpatternrequest = function(value) { + return jspb.Message.setWrapperField(this, 34, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearImplementationfileglobpatternrequest = function() { + return this.setImplementationfileglobpatternrequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasImplementationfileglobpatternrequest = function() { + return jspb.Message.getField(this, 34) != null; +}; + + +/** + * optional ImplementationFileGlobPatternResponse implementationFileGlobPatternResponse = 35; + * @return {?proto.gauge.messages.ImplementationFileGlobPatternResponse} + */ +proto.gauge.messages.Message.prototype.getImplementationfileglobpatternresponse = function() { + return /** @type{?proto.gauge.messages.ImplementationFileGlobPatternResponse} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ImplementationFileGlobPatternResponse, 35)); +}; + + +/** + * @param {?proto.gauge.messages.ImplementationFileGlobPatternResponse|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setImplementationfileglobpatternresponse = function(value) { + return jspb.Message.setWrapperField(this, 35, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearImplementationfileglobpatternresponse = function() { + return this.setImplementationfileglobpatternresponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasImplementationfileglobpatternresponse = function() { + return jspb.Message.getField(this, 35) != null; +}; + + +/** + * optional SuiteExecutionResultItem suiteExecutionResultItem = 36; + * @return {?proto.gauge.messages.SuiteExecutionResultItem} + */ +proto.gauge.messages.Message.prototype.getSuiteexecutionresultitem = function() { + return /** @type{?proto.gauge.messages.SuiteExecutionResultItem} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.SuiteExecutionResultItem, 36)); +}; + + +/** + * @param {?proto.gauge.messages.SuiteExecutionResultItem|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setSuiteexecutionresultitem = function(value) { + return jspb.Message.setWrapperField(this, 36, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearSuiteexecutionresultitem = function() { + return this.setSuiteexecutionresultitem(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasSuiteexecutionresultitem = function() { + return jspb.Message.getField(this, 36) != null; +}; + + +/** + * optional KeepAlive keepAlive = 37; + * @return {?proto.gauge.messages.KeepAlive} + */ +proto.gauge.messages.Message.prototype.getKeepalive = function() { + return /** @type{?proto.gauge.messages.KeepAlive} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.KeepAlive, 37)); +}; + + +/** + * @param {?proto.gauge.messages.KeepAlive|undefined} value + * @return {!proto.gauge.messages.Message} returns this +*/ +proto.gauge.messages.Message.prototype.setKeepalive = function(value) { + return jspb.Message.setWrapperField(this, 37, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Message} returns this + */ +proto.gauge.messages.Message.prototype.clearKeepalive = function() { + return this.setKeepalive(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Message.prototype.hasKeepalive = function() { + return jspb.Message.getField(this, 37) != null; +}; + + +goog.object.extend(exports, proto.gauge.messages); diff --git a/src/gen/services.proto b/src/gen/services.proto deleted file mode 100644 index 9d410f6..0000000 --- a/src/gen/services.proto +++ /dev/null @@ -1,186 +0,0 @@ -syntax = "proto3"; -package gauge.messages; -option csharp_namespace = "Gauge.Messages"; -option java_package = "com.thoughtworks.gauge"; - -import "messages.proto"; - - -service Runner { - // ValidateStep is a RPC to validate a given step. - // - // Accepts a StepValidateRequest message and returns a StepValidateResponse message - rpc ValidateStep (StepValidateRequest) returns (StepValidateResponse); - - // SuiteDataStoreInit is a RPC to initialize the suite level data store. - // - // Accepts a Empty message and returns a ExecutionStatusResponse message - rpc InitializeSuiteDataStore(SuiteDataStoreInitRequest) returns (ExecutionStatusResponse); - - // ExecutionStarting is a RPC to tell runner to execute Suite level hooks. - // - // Accepts a ExecutionStartingRequest message and returns a ExecutionStatusResponse message - rpc StartExecution(ExecutionStartingRequest) returns (ExecutionStatusResponse); - - // SpecDataStoreInit is a RPC to initialize the spec level data store. - // - // Accepts a Empty message and returns a ExecutionStatusResponse message - rpc InitializeSpecDataStore(SpecDataStoreInitRequest) returns (ExecutionStatusResponse); - - // SpecExecutionStarting is a RPC to tell runner to execute spec level hooks. - // - // Accepts a SpecExecutionStartingRequest message and returns a ExecutionStatusResponse message - rpc StartSpecExecution(SpecExecutionStartingRequest) returns (ExecutionStatusResponse); - - // ScenarioDataStoreInit is a RPC to initialize the scenario level data store. - // - // Accepts a Empty message and returns a ExecutionStatusResponse message - rpc InitializeScenarioDataStore(ScenarioDataStoreInitRequest) returns (ExecutionStatusResponse); - - // ScenarioExecutionStarting is a RPC to tell runner to execute scenario level hooks. - // - // Accepts a ScenarioExecutionStartingRequest message and returns a ExecutionStatusResponse message - rpc StartScenarioExecution(ScenarioExecutionStartingRequest) returns (ExecutionStatusResponse); - - // StepExecutionStarting is a RPC to tell runner to execute step level hooks. - // - // Accepts a StepExecutionStartingRequest message and returns a ExecutionStatusResponse message - rpc StartStepExecution(StepExecutionStartingRequest) returns (ExecutionStatusResponse); - - // ExecuteStep is a RPC to tell runner to execute a step . - // - // Accepts a ExecuteStepRequest message and returns a ExecutionStatusResponse message - rpc ExecuteStep(ExecuteStepRequest) returns (ExecutionStatusResponse); - - // StepExecutionEnding is a RPC to tell runner to execute step level hooks. - // - // Accepts a StepExecutionEndingRequest message and returns a ExecutionStatusResponse message - rpc FinishStepExecution(StepExecutionEndingRequest) returns (ExecutionStatusResponse); - - // ScenarioExecutionEnding is a RPC to tell runner to execute Scenario level hooks. - // - // Accepts a ScenarioExecutionEndingRequest message and returns a ExecutionStatusResponse message - rpc FinishScenarioExecution(ScenarioExecutionEndingRequest) returns (ExecutionStatusResponse); - - // SpecExecutionEnding is a RPC to tell runner to execute spec level hooks. - // - // Accepts a SpecExecutionEndingRequest message and returns a ExecutionStatusResponse message - rpc FinishSpecExecution(SpecExecutionEndingRequest) returns (ExecutionStatusResponse); - - // ExecutionEnding is a RPC to tell runner to execute suite level hooks. - // - // Accepts a ExecutionEndingRequest message and returns a ExecutionStatusResponse message - rpc FinishExecution(ExecutionEndingRequest) returns (ExecutionStatusResponse); - - // CacheFile is a RPC to tell runner to load/reload/unload a implementation file. - // - // Accepts a CacheFileRequest message and returns a Empty message - rpc CacheFile (CacheFileRequest) returns (Empty); - - // GetStepName is a RPC to get information about the given step. - // - // Accepts a StepNameRequest message and returns a StepNameResponse message. - rpc GetStepName (StepNameRequest) returns (StepNameResponse); - - // GetGlobPatterns is a RPC to get the file path pattern which needs to be cached. - // - // Accepts a Empty message and returns a ImplementationFileGlobPatternResponse message. - rpc GetGlobPatterns (Empty) returns (ImplementationFileGlobPatternResponse); - - // GetStepNames is a RPC to get all the available steps from the runner. - // - // Accepts a StepNamesRequest message and returns a StepNamesResponse - rpc GetStepNames (StepNamesRequest) returns (StepNamesResponse); - - // GetStepPositions is a RPC to get positions of all available steps in a given file. - // - // Accepts a StepPositionsRequest message and returns a StepPositionsResponse message - rpc GetStepPositions (StepPositionsRequest) returns (StepPositionsResponse); - - // GetImplementationFiles is a RPC get all the existing implementation files. - // - // Accepts a Empty and returns a ImplementationFileListResponse message. - rpc GetImplementationFiles (Empty) returns (ImplementationFileListResponse); - - // ImplementStub is a RPC to to ask runner to add a given implementation to given file. - // - // Accepts a StubImplementationCodeRequest and returns a FileDiff message. - rpc ImplementStub (StubImplementationCodeRequest) returns (FileDiff); - - // Refactor is a RPC to refactor a given step in implementation file. - // - // Accepts a RefactorRequest message and returns a RefactorResponse message. - rpc Refactor (RefactorRequest) returns (RefactorResponse); - - // Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - // - // Accepts a KillProcessRequest message and returns a Empty message. - rpc Kill (KillProcessRequest) returns (Empty); -} - - -// Reporter services is meant for reporting plugins, or others plugins which are interested the live events -service Reporter { - // NotifyExecutionStarting is a RPC to tell plugins that the execution has started. - // - // Accepts a ExecutionStartingRequest message and returns a Empty message - rpc NotifyExecutionStarting(ExecutionStartingRequest) returns (Empty); - - // NotifySpecExecutionStarting is a RPC to tell plugins that the specification execution has started. - // - // Accepts a SpecExecutionStartingRequest message and returns a Empty message - rpc NotifySpecExecutionStarting(SpecExecutionStartingRequest) returns (Empty); - - // NotifyScenarioExecutionStarting is a RPC to tell plugins that the scenario execution has started. - // - // Accepts a ScenarioExecutionStartingRequest message and returns a Empty message - rpc NotifyScenarioExecutionStarting(ScenarioExecutionStartingRequest) returns (Empty); - - // NotifyStepExecutionStarting is a RPC to tell plugins that the step execution has started. - // - // Accepts a StepExecutionStartingRequest message and returns a Empty message - rpc NotifyStepExecutionStarting(StepExecutionStartingRequest) returns (Empty); - - // NotifyStepExecutionEnding is a RPC to tell plugins that the step execution has finished. - // - // Accepts a StepExecutionStartingRequest message and returns a Empty message - rpc NotifyStepExecutionEnding(StepExecutionEndingRequest) returns (Empty); - - // NotifyScenarioExecutionEnding is a RPC to tell plugins that the scenario execution has finished. - // - // Accepts a ScenarioExecutionEndingRequest message and returns a Empty message - rpc NotifyScenarioExecutionEnding(ScenarioExecutionEndingRequest) returns (Empty); - - // NotifySpecExecutionEnding is a RPC to tell plugins that the specification execution has finished. - // - // Accepts a SpecExecutionStartingRequest message and returns a Empty message - rpc NotifySpecExecutionEnding(SpecExecutionEndingRequest) returns (Empty); - - // NotifyExecutionEnding is a RPC to tell plugins that the execution has finished. - // - // Accepts a ExecutionEndingRequest message and returns a Empty message - rpc NotifyExecutionEnding(ExecutionEndingRequest) returns (Empty); - - // NotifySuiteResult is a RPC to tell about the end result of execution - // - // Accepts a SuiteExecutionResult message and returns a Empty message. - rpc NotifySuiteResult(SuiteExecutionResult) returns (Empty); - - // Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - // - // Accepts a KillProcessRequest message and returns a Empty message. - rpc Kill (KillProcessRequest) returns (Empty); -} - -// Reporter services is meant for documentation plugins -service Documenter { - // GenerateDocs is a RPC tell plugin to generate docs from the spec details. - // - // Accepts a SpecDetails message and returns a Empty message. - rpc GenerateDocs (SpecDetails) returns (Empty); - - // Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - // - // Accepts a KillProcessRequest message and returns a Empty message. - rpc Kill(KillProcessRequest) returns (Empty); -} \ No newline at end of file diff --git a/src/gen/services_grpc_pb.d.ts b/src/gen/services_grpc_pb.d.ts new file mode 100644 index 0000000..6763eb2 --- /dev/null +++ b/src/gen/services_grpc_pb.d.ts @@ -0,0 +1,636 @@ +// package: gauge.messages +// file: services.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import {handleClientStreamingCall} from "@grpc/grpc-js/build/src/server-call"; +import * as services_pb from "./services_pb"; +import * as messages_pb from "./messages_pb"; + +interface IRunnerService extends grpc.ServiceDefinition { + validateStep: IRunnerService_IValidateStep; + initializeSuiteDataStore: IRunnerService_IInitializeSuiteDataStore; + startExecution: IRunnerService_IStartExecution; + initializeSpecDataStore: IRunnerService_IInitializeSpecDataStore; + startSpecExecution: IRunnerService_IStartSpecExecution; + initializeScenarioDataStore: IRunnerService_IInitializeScenarioDataStore; + startScenarioExecution: IRunnerService_IStartScenarioExecution; + startStepExecution: IRunnerService_IStartStepExecution; + executeStep: IRunnerService_IExecuteStep; + finishStepExecution: IRunnerService_IFinishStepExecution; + finishScenarioExecution: IRunnerService_IFinishScenarioExecution; + finishSpecExecution: IRunnerService_IFinishSpecExecution; + finishExecution: IRunnerService_IFinishExecution; + cacheFile: IRunnerService_ICacheFile; + getStepName: IRunnerService_IGetStepName; + getGlobPatterns: IRunnerService_IGetGlobPatterns; + getStepNames: IRunnerService_IGetStepNames; + getStepPositions: IRunnerService_IGetStepPositions; + getImplementationFiles: IRunnerService_IGetImplementationFiles; + implementStub: IRunnerService_IImplementStub; + refactor: IRunnerService_IRefactor; + kill: IRunnerService_IKill; +} + +interface IRunnerService_IValidateStep extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/ValidateStep" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IInitializeSuiteDataStore extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/InitializeSuiteDataStore" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IStartExecution extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/StartExecution" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IInitializeSpecDataStore extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/InitializeSpecDataStore" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IStartSpecExecution extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/StartSpecExecution" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IInitializeScenarioDataStore extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/InitializeScenarioDataStore" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IStartScenarioExecution extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/StartScenarioExecution" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IStartStepExecution extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/StartStepExecution" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IExecuteStep extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/ExecuteStep" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IFinishStepExecution extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/FinishStepExecution" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IFinishScenarioExecution extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/FinishScenarioExecution" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IFinishSpecExecution extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/FinishSpecExecution" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IFinishExecution extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/FinishExecution" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_ICacheFile extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/CacheFile" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IGetStepName extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/GetStepName" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IGetGlobPatterns extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/GetGlobPatterns" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IGetStepNames extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/GetStepNames" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IGetStepPositions extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/GetStepPositions" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IGetImplementationFiles extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/GetImplementationFiles" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IImplementStub extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/ImplementStub" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IRefactor extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/Refactor" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IRunnerService_IKill extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Runner/Kill" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const RunnerService: IRunnerService; + +export interface IRunnerServer { + validateStep: grpc.handleUnaryCall; + initializeSuiteDataStore: grpc.handleUnaryCall; + startExecution: grpc.handleUnaryCall; + initializeSpecDataStore: grpc.handleUnaryCall; + startSpecExecution: grpc.handleUnaryCall; + initializeScenarioDataStore: grpc.handleUnaryCall; + startScenarioExecution: grpc.handleUnaryCall; + startStepExecution: grpc.handleUnaryCall; + executeStep: grpc.handleUnaryCall; + finishStepExecution: grpc.handleUnaryCall; + finishScenarioExecution: grpc.handleUnaryCall; + finishSpecExecution: grpc.handleUnaryCall; + finishExecution: grpc.handleUnaryCall; + cacheFile: grpc.handleUnaryCall; + getStepName: grpc.handleUnaryCall; + getGlobPatterns: grpc.handleUnaryCall; + getStepNames: grpc.handleUnaryCall; + getStepPositions: grpc.handleUnaryCall; + getImplementationFiles: grpc.handleUnaryCall; + implementStub: grpc.handleUnaryCall; + refactor: grpc.handleUnaryCall; + kill: grpc.handleUnaryCall; +} + +export interface IRunnerClient { + validateStep(request: messages_pb.StepValidateRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.StepValidateResponse) => void): grpc.ClientUnaryCall; + validateStep(request: messages_pb.StepValidateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.StepValidateResponse) => void): grpc.ClientUnaryCall; + validateStep(request: messages_pb.StepValidateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.StepValidateResponse) => void): grpc.ClientUnaryCall; + initializeSuiteDataStore(request: messages_pb.SuiteDataStoreInitRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + initializeSuiteDataStore(request: messages_pb.SuiteDataStoreInitRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + initializeSuiteDataStore(request: messages_pb.SuiteDataStoreInitRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + startExecution(request: messages_pb.ExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + startExecution(request: messages_pb.ExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + startExecution(request: messages_pb.ExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + initializeSpecDataStore(request: messages_pb.SpecDataStoreInitRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + initializeSpecDataStore(request: messages_pb.SpecDataStoreInitRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + initializeSpecDataStore(request: messages_pb.SpecDataStoreInitRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + startSpecExecution(request: messages_pb.SpecExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + startSpecExecution(request: messages_pb.SpecExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + startSpecExecution(request: messages_pb.SpecExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + initializeScenarioDataStore(request: messages_pb.ScenarioDataStoreInitRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + initializeScenarioDataStore(request: messages_pb.ScenarioDataStoreInitRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + initializeScenarioDataStore(request: messages_pb.ScenarioDataStoreInitRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + startScenarioExecution(request: messages_pb.ScenarioExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + startScenarioExecution(request: messages_pb.ScenarioExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + startScenarioExecution(request: messages_pb.ScenarioExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + startStepExecution(request: messages_pb.StepExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + startStepExecution(request: messages_pb.StepExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + startStepExecution(request: messages_pb.StepExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + executeStep(request: messages_pb.ExecuteStepRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + executeStep(request: messages_pb.ExecuteStepRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + executeStep(request: messages_pb.ExecuteStepRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + finishStepExecution(request: messages_pb.StepExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + finishStepExecution(request: messages_pb.StepExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + finishStepExecution(request: messages_pb.StepExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + finishScenarioExecution(request: messages_pb.ScenarioExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + finishScenarioExecution(request: messages_pb.ScenarioExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + finishScenarioExecution(request: messages_pb.ScenarioExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + finishSpecExecution(request: messages_pb.SpecExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + finishSpecExecution(request: messages_pb.SpecExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + finishSpecExecution(request: messages_pb.SpecExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + finishExecution(request: messages_pb.ExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + finishExecution(request: messages_pb.ExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + finishExecution(request: messages_pb.ExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + cacheFile(request: messages_pb.CacheFileRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + cacheFile(request: messages_pb.CacheFileRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + cacheFile(request: messages_pb.CacheFileRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + getStepName(request: messages_pb.StepNameRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.StepNameResponse) => void): grpc.ClientUnaryCall; + getStepName(request: messages_pb.StepNameRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.StepNameResponse) => void): grpc.ClientUnaryCall; + getStepName(request: messages_pb.StepNameRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.StepNameResponse) => void): grpc.ClientUnaryCall; + getGlobPatterns(request: messages_pb.Empty, callback: (error: grpc.ServiceError | null, response: messages_pb.ImplementationFileGlobPatternResponse) => void): grpc.ClientUnaryCall; + getGlobPatterns(request: messages_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ImplementationFileGlobPatternResponse) => void): grpc.ClientUnaryCall; + getGlobPatterns(request: messages_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ImplementationFileGlobPatternResponse) => void): grpc.ClientUnaryCall; + getStepNames(request: messages_pb.StepNamesRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.StepNamesResponse) => void): grpc.ClientUnaryCall; + getStepNames(request: messages_pb.StepNamesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.StepNamesResponse) => void): grpc.ClientUnaryCall; + getStepNames(request: messages_pb.StepNamesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.StepNamesResponse) => void): grpc.ClientUnaryCall; + getStepPositions(request: messages_pb.StepPositionsRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.StepPositionsResponse) => void): grpc.ClientUnaryCall; + getStepPositions(request: messages_pb.StepPositionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.StepPositionsResponse) => void): grpc.ClientUnaryCall; + getStepPositions(request: messages_pb.StepPositionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.StepPositionsResponse) => void): grpc.ClientUnaryCall; + getImplementationFiles(request: messages_pb.Empty, callback: (error: grpc.ServiceError | null, response: messages_pb.ImplementationFileListResponse) => void): grpc.ClientUnaryCall; + getImplementationFiles(request: messages_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ImplementationFileListResponse) => void): grpc.ClientUnaryCall; + getImplementationFiles(request: messages_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ImplementationFileListResponse) => void): grpc.ClientUnaryCall; + implementStub(request: messages_pb.StubImplementationCodeRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.FileDiff) => void): grpc.ClientUnaryCall; + implementStub(request: messages_pb.StubImplementationCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.FileDiff) => void): grpc.ClientUnaryCall; + implementStub(request: messages_pb.StubImplementationCodeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.FileDiff) => void): grpc.ClientUnaryCall; + refactor(request: messages_pb.RefactorRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.RefactorResponse) => void): grpc.ClientUnaryCall; + refactor(request: messages_pb.RefactorRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.RefactorResponse) => void): grpc.ClientUnaryCall; + refactor(request: messages_pb.RefactorRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.RefactorResponse) => void): grpc.ClientUnaryCall; + kill(request: messages_pb.KillProcessRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + kill(request: messages_pb.KillProcessRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + kill(request: messages_pb.KillProcessRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; +} + +export class RunnerClient extends grpc.Client implements IRunnerClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public validateStep(request: messages_pb.StepValidateRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.StepValidateResponse) => void): grpc.ClientUnaryCall; + public validateStep(request: messages_pb.StepValidateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.StepValidateResponse) => void): grpc.ClientUnaryCall; + public validateStep(request: messages_pb.StepValidateRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.StepValidateResponse) => void): grpc.ClientUnaryCall; + public initializeSuiteDataStore(request: messages_pb.SuiteDataStoreInitRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public initializeSuiteDataStore(request: messages_pb.SuiteDataStoreInitRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public initializeSuiteDataStore(request: messages_pb.SuiteDataStoreInitRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public startExecution(request: messages_pb.ExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public startExecution(request: messages_pb.ExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public startExecution(request: messages_pb.ExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public initializeSpecDataStore(request: messages_pb.SpecDataStoreInitRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public initializeSpecDataStore(request: messages_pb.SpecDataStoreInitRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public initializeSpecDataStore(request: messages_pb.SpecDataStoreInitRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public startSpecExecution(request: messages_pb.SpecExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public startSpecExecution(request: messages_pb.SpecExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public startSpecExecution(request: messages_pb.SpecExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public initializeScenarioDataStore(request: messages_pb.ScenarioDataStoreInitRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public initializeScenarioDataStore(request: messages_pb.ScenarioDataStoreInitRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public initializeScenarioDataStore(request: messages_pb.ScenarioDataStoreInitRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public startScenarioExecution(request: messages_pb.ScenarioExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public startScenarioExecution(request: messages_pb.ScenarioExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public startScenarioExecution(request: messages_pb.ScenarioExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public startStepExecution(request: messages_pb.StepExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public startStepExecution(request: messages_pb.StepExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public startStepExecution(request: messages_pb.StepExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public executeStep(request: messages_pb.ExecuteStepRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public executeStep(request: messages_pb.ExecuteStepRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public executeStep(request: messages_pb.ExecuteStepRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public finishStepExecution(request: messages_pb.StepExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public finishStepExecution(request: messages_pb.StepExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public finishStepExecution(request: messages_pb.StepExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public finishScenarioExecution(request: messages_pb.ScenarioExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public finishScenarioExecution(request: messages_pb.ScenarioExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public finishScenarioExecution(request: messages_pb.ScenarioExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public finishSpecExecution(request: messages_pb.SpecExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public finishSpecExecution(request: messages_pb.SpecExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public finishSpecExecution(request: messages_pb.SpecExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public finishExecution(request: messages_pb.ExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public finishExecution(request: messages_pb.ExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public finishExecution(request: messages_pb.ExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ExecutionStatusResponse) => void): grpc.ClientUnaryCall; + public cacheFile(request: messages_pb.CacheFileRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public cacheFile(request: messages_pb.CacheFileRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public cacheFile(request: messages_pb.CacheFileRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public getStepName(request: messages_pb.StepNameRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.StepNameResponse) => void): grpc.ClientUnaryCall; + public getStepName(request: messages_pb.StepNameRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.StepNameResponse) => void): grpc.ClientUnaryCall; + public getStepName(request: messages_pb.StepNameRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.StepNameResponse) => void): grpc.ClientUnaryCall; + public getGlobPatterns(request: messages_pb.Empty, callback: (error: grpc.ServiceError | null, response: messages_pb.ImplementationFileGlobPatternResponse) => void): grpc.ClientUnaryCall; + public getGlobPatterns(request: messages_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ImplementationFileGlobPatternResponse) => void): grpc.ClientUnaryCall; + public getGlobPatterns(request: messages_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ImplementationFileGlobPatternResponse) => void): grpc.ClientUnaryCall; + public getStepNames(request: messages_pb.StepNamesRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.StepNamesResponse) => void): grpc.ClientUnaryCall; + public getStepNames(request: messages_pb.StepNamesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.StepNamesResponse) => void): grpc.ClientUnaryCall; + public getStepNames(request: messages_pb.StepNamesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.StepNamesResponse) => void): grpc.ClientUnaryCall; + public getStepPositions(request: messages_pb.StepPositionsRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.StepPositionsResponse) => void): grpc.ClientUnaryCall; + public getStepPositions(request: messages_pb.StepPositionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.StepPositionsResponse) => void): grpc.ClientUnaryCall; + public getStepPositions(request: messages_pb.StepPositionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.StepPositionsResponse) => void): grpc.ClientUnaryCall; + public getImplementationFiles(request: messages_pb.Empty, callback: (error: grpc.ServiceError | null, response: messages_pb.ImplementationFileListResponse) => void): grpc.ClientUnaryCall; + public getImplementationFiles(request: messages_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.ImplementationFileListResponse) => void): grpc.ClientUnaryCall; + public getImplementationFiles(request: messages_pb.Empty, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.ImplementationFileListResponse) => void): grpc.ClientUnaryCall; + public implementStub(request: messages_pb.StubImplementationCodeRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.FileDiff) => void): grpc.ClientUnaryCall; + public implementStub(request: messages_pb.StubImplementationCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.FileDiff) => void): grpc.ClientUnaryCall; + public implementStub(request: messages_pb.StubImplementationCodeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.FileDiff) => void): grpc.ClientUnaryCall; + public refactor(request: messages_pb.RefactorRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.RefactorResponse) => void): grpc.ClientUnaryCall; + public refactor(request: messages_pb.RefactorRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.RefactorResponse) => void): grpc.ClientUnaryCall; + public refactor(request: messages_pb.RefactorRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.RefactorResponse) => void): grpc.ClientUnaryCall; + public kill(request: messages_pb.KillProcessRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public kill(request: messages_pb.KillProcessRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public kill(request: messages_pb.KillProcessRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; +} + +interface IReporterService extends grpc.ServiceDefinition { + notifyExecutionStarting: IReporterService_INotifyExecutionStarting; + notifySpecExecutionStarting: IReporterService_INotifySpecExecutionStarting; + notifyScenarioExecutionStarting: IReporterService_INotifyScenarioExecutionStarting; + notifyStepExecutionStarting: IReporterService_INotifyStepExecutionStarting; + notifyStepExecutionEnding: IReporterService_INotifyStepExecutionEnding; + notifyScenarioExecutionEnding: IReporterService_INotifyScenarioExecutionEnding; + notifySpecExecutionEnding: IReporterService_INotifySpecExecutionEnding; + notifyExecutionEnding: IReporterService_INotifyExecutionEnding; + notifySuiteResult: IReporterService_INotifySuiteResult; + kill: IReporterService_IKill; +} + +interface IReporterService_INotifyExecutionStarting extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Reporter/NotifyExecutionStarting" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IReporterService_INotifySpecExecutionStarting extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Reporter/NotifySpecExecutionStarting" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IReporterService_INotifyScenarioExecutionStarting extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Reporter/NotifyScenarioExecutionStarting" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IReporterService_INotifyStepExecutionStarting extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Reporter/NotifyStepExecutionStarting" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IReporterService_INotifyStepExecutionEnding extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Reporter/NotifyStepExecutionEnding" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IReporterService_INotifyScenarioExecutionEnding extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Reporter/NotifyScenarioExecutionEnding" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IReporterService_INotifySpecExecutionEnding extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Reporter/NotifySpecExecutionEnding" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IReporterService_INotifyExecutionEnding extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Reporter/NotifyExecutionEnding" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IReporterService_INotifySuiteResult extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Reporter/NotifySuiteResult" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IReporterService_IKill extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Reporter/Kill" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const ReporterService: IReporterService; + +export interface IReporterServer { + notifyExecutionStarting: grpc.handleUnaryCall; + notifySpecExecutionStarting: grpc.handleUnaryCall; + notifyScenarioExecutionStarting: grpc.handleUnaryCall; + notifyStepExecutionStarting: grpc.handleUnaryCall; + notifyStepExecutionEnding: grpc.handleUnaryCall; + notifyScenarioExecutionEnding: grpc.handleUnaryCall; + notifySpecExecutionEnding: grpc.handleUnaryCall; + notifyExecutionEnding: grpc.handleUnaryCall; + notifySuiteResult: grpc.handleUnaryCall; + kill: grpc.handleUnaryCall; +} + +export interface IReporterClient { + notifyExecutionStarting(request: messages_pb.ExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyExecutionStarting(request: messages_pb.ExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyExecutionStarting(request: messages_pb.ExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifySpecExecutionStarting(request: messages_pb.SpecExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifySpecExecutionStarting(request: messages_pb.SpecExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifySpecExecutionStarting(request: messages_pb.SpecExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyScenarioExecutionStarting(request: messages_pb.ScenarioExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyScenarioExecutionStarting(request: messages_pb.ScenarioExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyScenarioExecutionStarting(request: messages_pb.ScenarioExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyStepExecutionStarting(request: messages_pb.StepExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyStepExecutionStarting(request: messages_pb.StepExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyStepExecutionStarting(request: messages_pb.StepExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyStepExecutionEnding(request: messages_pb.StepExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyStepExecutionEnding(request: messages_pb.StepExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyStepExecutionEnding(request: messages_pb.StepExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyScenarioExecutionEnding(request: messages_pb.ScenarioExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyScenarioExecutionEnding(request: messages_pb.ScenarioExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyScenarioExecutionEnding(request: messages_pb.ScenarioExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifySpecExecutionEnding(request: messages_pb.SpecExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifySpecExecutionEnding(request: messages_pb.SpecExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifySpecExecutionEnding(request: messages_pb.SpecExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyExecutionEnding(request: messages_pb.ExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyExecutionEnding(request: messages_pb.ExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifyExecutionEnding(request: messages_pb.ExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifySuiteResult(request: messages_pb.SuiteExecutionResult, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifySuiteResult(request: messages_pb.SuiteExecutionResult, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + notifySuiteResult(request: messages_pb.SuiteExecutionResult, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + kill(request: messages_pb.KillProcessRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + kill(request: messages_pb.KillProcessRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + kill(request: messages_pb.KillProcessRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; +} + +export class ReporterClient extends grpc.Client implements IReporterClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public notifyExecutionStarting(request: messages_pb.ExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyExecutionStarting(request: messages_pb.ExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyExecutionStarting(request: messages_pb.ExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifySpecExecutionStarting(request: messages_pb.SpecExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifySpecExecutionStarting(request: messages_pb.SpecExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifySpecExecutionStarting(request: messages_pb.SpecExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyScenarioExecutionStarting(request: messages_pb.ScenarioExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyScenarioExecutionStarting(request: messages_pb.ScenarioExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyScenarioExecutionStarting(request: messages_pb.ScenarioExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyStepExecutionStarting(request: messages_pb.StepExecutionStartingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyStepExecutionStarting(request: messages_pb.StepExecutionStartingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyStepExecutionStarting(request: messages_pb.StepExecutionStartingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyStepExecutionEnding(request: messages_pb.StepExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyStepExecutionEnding(request: messages_pb.StepExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyStepExecutionEnding(request: messages_pb.StepExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyScenarioExecutionEnding(request: messages_pb.ScenarioExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyScenarioExecutionEnding(request: messages_pb.ScenarioExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyScenarioExecutionEnding(request: messages_pb.ScenarioExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifySpecExecutionEnding(request: messages_pb.SpecExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifySpecExecutionEnding(request: messages_pb.SpecExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifySpecExecutionEnding(request: messages_pb.SpecExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyExecutionEnding(request: messages_pb.ExecutionEndingRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyExecutionEnding(request: messages_pb.ExecutionEndingRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifyExecutionEnding(request: messages_pb.ExecutionEndingRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifySuiteResult(request: messages_pb.SuiteExecutionResult, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifySuiteResult(request: messages_pb.SuiteExecutionResult, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public notifySuiteResult(request: messages_pb.SuiteExecutionResult, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public kill(request: messages_pb.KillProcessRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public kill(request: messages_pb.KillProcessRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public kill(request: messages_pb.KillProcessRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; +} + +interface IDocumenterService extends grpc.ServiceDefinition { + generateDocs: IDocumenterService_IGenerateDocs; + kill: IDocumenterService_IKill; +} + +interface IDocumenterService_IGenerateDocs extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Documenter/GenerateDocs" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IDocumenterService_IKill extends grpc.MethodDefinition { + path: string; // "/gauge.messages.Documenter/Kill" + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const DocumenterService: IDocumenterService; + +export interface IDocumenterServer { + generateDocs: grpc.handleUnaryCall; + kill: grpc.handleUnaryCall; +} + +export interface IDocumenterClient { + generateDocs(request: messages_pb.SpecDetails, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + generateDocs(request: messages_pb.SpecDetails, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + generateDocs(request: messages_pb.SpecDetails, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + kill(request: messages_pb.KillProcessRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + kill(request: messages_pb.KillProcessRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + kill(request: messages_pb.KillProcessRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; +} + +export class DocumenterClient extends grpc.Client implements IDocumenterClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public generateDocs(request: messages_pb.SpecDetails, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public generateDocs(request: messages_pb.SpecDetails, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public generateDocs(request: messages_pb.SpecDetails, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public kill(request: messages_pb.KillProcessRequest, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public kill(request: messages_pb.KillProcessRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; + public kill(request: messages_pb.KillProcessRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: messages_pb.Empty) => void): grpc.ClientUnaryCall; +} diff --git a/src/gen/services_grpc_pb.js b/src/gen/services_grpc_pb.js new file mode 100644 index 0000000..627102a --- /dev/null +++ b/src/gen/services_grpc_pb.js @@ -0,0 +1,856 @@ +// GENERATED CODE -- DO NOT EDIT! + +// Original file comments: +// ---------------------------------------------------------------- +// Copyright (c) ThoughtWorks, Inc. +// Licensed under the Apache License, Version 2.0 +// See LICENSE in the project root for license information. +// ---------------------------------------------------------------- +// +'use strict'; +var grpc = require('@grpc/grpc-js'); +var messages_pb = require('./messages_pb.js'); + +function serialize_gauge_messages_CacheFileRequest(arg) { + if (!(arg instanceof messages_pb.CacheFileRequest)) { + throw new Error('Expected argument of type gauge.messages.CacheFileRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_CacheFileRequest(buffer_arg) { + return messages_pb.CacheFileRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_Empty(arg) { + if (!(arg instanceof messages_pb.Empty)) { + throw new Error('Expected argument of type gauge.messages.Empty'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_Empty(buffer_arg) { + return messages_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_ExecuteStepRequest(arg) { + if (!(arg instanceof messages_pb.ExecuteStepRequest)) { + throw new Error('Expected argument of type gauge.messages.ExecuteStepRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_ExecuteStepRequest(buffer_arg) { + return messages_pb.ExecuteStepRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_ExecutionEndingRequest(arg) { + if (!(arg instanceof messages_pb.ExecutionEndingRequest)) { + throw new Error('Expected argument of type gauge.messages.ExecutionEndingRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_ExecutionEndingRequest(buffer_arg) { + return messages_pb.ExecutionEndingRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_ExecutionStartingRequest(arg) { + if (!(arg instanceof messages_pb.ExecutionStartingRequest)) { + throw new Error('Expected argument of type gauge.messages.ExecutionStartingRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_ExecutionStartingRequest(buffer_arg) { + return messages_pb.ExecutionStartingRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_ExecutionStatusResponse(arg) { + if (!(arg instanceof messages_pb.ExecutionStatusResponse)) { + throw new Error('Expected argument of type gauge.messages.ExecutionStatusResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_ExecutionStatusResponse(buffer_arg) { + return messages_pb.ExecutionStatusResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_FileDiff(arg) { + if (!(arg instanceof messages_pb.FileDiff)) { + throw new Error('Expected argument of type gauge.messages.FileDiff'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_FileDiff(buffer_arg) { + return messages_pb.FileDiff.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_ImplementationFileGlobPatternResponse(arg) { + if (!(arg instanceof messages_pb.ImplementationFileGlobPatternResponse)) { + throw new Error('Expected argument of type gauge.messages.ImplementationFileGlobPatternResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_ImplementationFileGlobPatternResponse(buffer_arg) { + return messages_pb.ImplementationFileGlobPatternResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_ImplementationFileListResponse(arg) { + if (!(arg instanceof messages_pb.ImplementationFileListResponse)) { + throw new Error('Expected argument of type gauge.messages.ImplementationFileListResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_ImplementationFileListResponse(buffer_arg) { + return messages_pb.ImplementationFileListResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_KillProcessRequest(arg) { + if (!(arg instanceof messages_pb.KillProcessRequest)) { + throw new Error('Expected argument of type gauge.messages.KillProcessRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_KillProcessRequest(buffer_arg) { + return messages_pb.KillProcessRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_RefactorRequest(arg) { + if (!(arg instanceof messages_pb.RefactorRequest)) { + throw new Error('Expected argument of type gauge.messages.RefactorRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_RefactorRequest(buffer_arg) { + return messages_pb.RefactorRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_RefactorResponse(arg) { + if (!(arg instanceof messages_pb.RefactorResponse)) { + throw new Error('Expected argument of type gauge.messages.RefactorResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_RefactorResponse(buffer_arg) { + return messages_pb.RefactorResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_ScenarioDataStoreInitRequest(arg) { + if (!(arg instanceof messages_pb.ScenarioDataStoreInitRequest)) { + throw new Error('Expected argument of type gauge.messages.ScenarioDataStoreInitRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_ScenarioDataStoreInitRequest(buffer_arg) { + return messages_pb.ScenarioDataStoreInitRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_ScenarioExecutionEndingRequest(arg) { + if (!(arg instanceof messages_pb.ScenarioExecutionEndingRequest)) { + throw new Error('Expected argument of type gauge.messages.ScenarioExecutionEndingRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_ScenarioExecutionEndingRequest(buffer_arg) { + return messages_pb.ScenarioExecutionEndingRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_ScenarioExecutionStartingRequest(arg) { + if (!(arg instanceof messages_pb.ScenarioExecutionStartingRequest)) { + throw new Error('Expected argument of type gauge.messages.ScenarioExecutionStartingRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_ScenarioExecutionStartingRequest(buffer_arg) { + return messages_pb.ScenarioExecutionStartingRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_SpecDataStoreInitRequest(arg) { + if (!(arg instanceof messages_pb.SpecDataStoreInitRequest)) { + throw new Error('Expected argument of type gauge.messages.SpecDataStoreInitRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_SpecDataStoreInitRequest(buffer_arg) { + return messages_pb.SpecDataStoreInitRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_SpecDetails(arg) { + if (!(arg instanceof messages_pb.SpecDetails)) { + throw new Error('Expected argument of type gauge.messages.SpecDetails'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_SpecDetails(buffer_arg) { + return messages_pb.SpecDetails.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_SpecExecutionEndingRequest(arg) { + if (!(arg instanceof messages_pb.SpecExecutionEndingRequest)) { + throw new Error('Expected argument of type gauge.messages.SpecExecutionEndingRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_SpecExecutionEndingRequest(buffer_arg) { + return messages_pb.SpecExecutionEndingRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_SpecExecutionStartingRequest(arg) { + if (!(arg instanceof messages_pb.SpecExecutionStartingRequest)) { + throw new Error('Expected argument of type gauge.messages.SpecExecutionStartingRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_SpecExecutionStartingRequest(buffer_arg) { + return messages_pb.SpecExecutionStartingRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_StepExecutionEndingRequest(arg) { + if (!(arg instanceof messages_pb.StepExecutionEndingRequest)) { + throw new Error('Expected argument of type gauge.messages.StepExecutionEndingRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_StepExecutionEndingRequest(buffer_arg) { + return messages_pb.StepExecutionEndingRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_StepExecutionStartingRequest(arg) { + if (!(arg instanceof messages_pb.StepExecutionStartingRequest)) { + throw new Error('Expected argument of type gauge.messages.StepExecutionStartingRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_StepExecutionStartingRequest(buffer_arg) { + return messages_pb.StepExecutionStartingRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_StepNameRequest(arg) { + if (!(arg instanceof messages_pb.StepNameRequest)) { + throw new Error('Expected argument of type gauge.messages.StepNameRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_StepNameRequest(buffer_arg) { + return messages_pb.StepNameRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_StepNameResponse(arg) { + if (!(arg instanceof messages_pb.StepNameResponse)) { + throw new Error('Expected argument of type gauge.messages.StepNameResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_StepNameResponse(buffer_arg) { + return messages_pb.StepNameResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_StepNamesRequest(arg) { + if (!(arg instanceof messages_pb.StepNamesRequest)) { + throw new Error('Expected argument of type gauge.messages.StepNamesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_StepNamesRequest(buffer_arg) { + return messages_pb.StepNamesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_StepNamesResponse(arg) { + if (!(arg instanceof messages_pb.StepNamesResponse)) { + throw new Error('Expected argument of type gauge.messages.StepNamesResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_StepNamesResponse(buffer_arg) { + return messages_pb.StepNamesResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_StepPositionsRequest(arg) { + if (!(arg instanceof messages_pb.StepPositionsRequest)) { + throw new Error('Expected argument of type gauge.messages.StepPositionsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_StepPositionsRequest(buffer_arg) { + return messages_pb.StepPositionsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_StepPositionsResponse(arg) { + if (!(arg instanceof messages_pb.StepPositionsResponse)) { + throw new Error('Expected argument of type gauge.messages.StepPositionsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_StepPositionsResponse(buffer_arg) { + return messages_pb.StepPositionsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_StepValidateRequest(arg) { + if (!(arg instanceof messages_pb.StepValidateRequest)) { + throw new Error('Expected argument of type gauge.messages.StepValidateRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_StepValidateRequest(buffer_arg) { + return messages_pb.StepValidateRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_StepValidateResponse(arg) { + if (!(arg instanceof messages_pb.StepValidateResponse)) { + throw new Error('Expected argument of type gauge.messages.StepValidateResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_StepValidateResponse(buffer_arg) { + return messages_pb.StepValidateResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_StubImplementationCodeRequest(arg) { + if (!(arg instanceof messages_pb.StubImplementationCodeRequest)) { + throw new Error('Expected argument of type gauge.messages.StubImplementationCodeRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_StubImplementationCodeRequest(buffer_arg) { + return messages_pb.StubImplementationCodeRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_SuiteDataStoreInitRequest(arg) { + if (!(arg instanceof messages_pb.SuiteDataStoreInitRequest)) { + throw new Error('Expected argument of type gauge.messages.SuiteDataStoreInitRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_SuiteDataStoreInitRequest(buffer_arg) { + return messages_pb.SuiteDataStoreInitRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gauge_messages_SuiteExecutionResult(arg) { + if (!(arg instanceof messages_pb.SuiteExecutionResult)) { + throw new Error('Expected argument of type gauge.messages.SuiteExecutionResult'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gauge_messages_SuiteExecutionResult(buffer_arg) { + return messages_pb.SuiteExecutionResult.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +var RunnerService = exports.RunnerService = { + // ValidateStep is a RPC to validate a given step. +// +// Accepts a StepValidateRequest message and returns a StepValidateResponse message +validateStep: { + path: '/gauge.messages.Runner/ValidateStep', + requestStream: false, + responseStream: false, + requestType: messages_pb.StepValidateRequest, + responseType: messages_pb.StepValidateResponse, + requestSerialize: serialize_gauge_messages_StepValidateRequest, + requestDeserialize: deserialize_gauge_messages_StepValidateRequest, + responseSerialize: serialize_gauge_messages_StepValidateResponse, + responseDeserialize: deserialize_gauge_messages_StepValidateResponse, + }, + // SuiteDataStoreInit is a RPC to initialize the suite level data store. +// +// Accepts a Empty message and returns a ExecutionStatusResponse message +initializeSuiteDataStore: { + path: '/gauge.messages.Runner/InitializeSuiteDataStore', + requestStream: false, + responseStream: false, + requestType: messages_pb.SuiteDataStoreInitRequest, + responseType: messages_pb.ExecutionStatusResponse, + requestSerialize: serialize_gauge_messages_SuiteDataStoreInitRequest, + requestDeserialize: deserialize_gauge_messages_SuiteDataStoreInitRequest, + responseSerialize: serialize_gauge_messages_ExecutionStatusResponse, + responseDeserialize: deserialize_gauge_messages_ExecutionStatusResponse, + }, + // ExecutionStarting is a RPC to tell runner to execute Suite level hooks. +// +// Accepts a ExecutionStartingRequest message and returns a ExecutionStatusResponse message +startExecution: { + path: '/gauge.messages.Runner/StartExecution', + requestStream: false, + responseStream: false, + requestType: messages_pb.ExecutionStartingRequest, + responseType: messages_pb.ExecutionStatusResponse, + requestSerialize: serialize_gauge_messages_ExecutionStartingRequest, + requestDeserialize: deserialize_gauge_messages_ExecutionStartingRequest, + responseSerialize: serialize_gauge_messages_ExecutionStatusResponse, + responseDeserialize: deserialize_gauge_messages_ExecutionStatusResponse, + }, + // SpecDataStoreInit is a RPC to initialize the spec level data store. +// +// Accepts a Empty message and returns a ExecutionStatusResponse message +initializeSpecDataStore: { + path: '/gauge.messages.Runner/InitializeSpecDataStore', + requestStream: false, + responseStream: false, + requestType: messages_pb.SpecDataStoreInitRequest, + responseType: messages_pb.ExecutionStatusResponse, + requestSerialize: serialize_gauge_messages_SpecDataStoreInitRequest, + requestDeserialize: deserialize_gauge_messages_SpecDataStoreInitRequest, + responseSerialize: serialize_gauge_messages_ExecutionStatusResponse, + responseDeserialize: deserialize_gauge_messages_ExecutionStatusResponse, + }, + // SpecExecutionStarting is a RPC to tell runner to execute spec level hooks. +// +// Accepts a SpecExecutionStartingRequest message and returns a ExecutionStatusResponse message +startSpecExecution: { + path: '/gauge.messages.Runner/StartSpecExecution', + requestStream: false, + responseStream: false, + requestType: messages_pb.SpecExecutionStartingRequest, + responseType: messages_pb.ExecutionStatusResponse, + requestSerialize: serialize_gauge_messages_SpecExecutionStartingRequest, + requestDeserialize: deserialize_gauge_messages_SpecExecutionStartingRequest, + responseSerialize: serialize_gauge_messages_ExecutionStatusResponse, + responseDeserialize: deserialize_gauge_messages_ExecutionStatusResponse, + }, + // ScenarioDataStoreInit is a RPC to initialize the scenario level data store. +// +// Accepts a Empty message and returns a ExecutionStatusResponse message +initializeScenarioDataStore: { + path: '/gauge.messages.Runner/InitializeScenarioDataStore', + requestStream: false, + responseStream: false, + requestType: messages_pb.ScenarioDataStoreInitRequest, + responseType: messages_pb.ExecutionStatusResponse, + requestSerialize: serialize_gauge_messages_ScenarioDataStoreInitRequest, + requestDeserialize: deserialize_gauge_messages_ScenarioDataStoreInitRequest, + responseSerialize: serialize_gauge_messages_ExecutionStatusResponse, + responseDeserialize: deserialize_gauge_messages_ExecutionStatusResponse, + }, + // ScenarioExecutionStarting is a RPC to tell runner to execute scenario level hooks. +// +// Accepts a ScenarioExecutionStartingRequest message and returns a ExecutionStatusResponse message +startScenarioExecution: { + path: '/gauge.messages.Runner/StartScenarioExecution', + requestStream: false, + responseStream: false, + requestType: messages_pb.ScenarioExecutionStartingRequest, + responseType: messages_pb.ExecutionStatusResponse, + requestSerialize: serialize_gauge_messages_ScenarioExecutionStartingRequest, + requestDeserialize: deserialize_gauge_messages_ScenarioExecutionStartingRequest, + responseSerialize: serialize_gauge_messages_ExecutionStatusResponse, + responseDeserialize: deserialize_gauge_messages_ExecutionStatusResponse, + }, + // StepExecutionStarting is a RPC to tell runner to execute step level hooks. +// +// Accepts a StepExecutionStartingRequest message and returns a ExecutionStatusResponse message +startStepExecution: { + path: '/gauge.messages.Runner/StartStepExecution', + requestStream: false, + responseStream: false, + requestType: messages_pb.StepExecutionStartingRequest, + responseType: messages_pb.ExecutionStatusResponse, + requestSerialize: serialize_gauge_messages_StepExecutionStartingRequest, + requestDeserialize: deserialize_gauge_messages_StepExecutionStartingRequest, + responseSerialize: serialize_gauge_messages_ExecutionStatusResponse, + responseDeserialize: deserialize_gauge_messages_ExecutionStatusResponse, + }, + // ExecuteStep is a RPC to tell runner to execute a step . +// +// Accepts a ExecuteStepRequest message and returns a ExecutionStatusResponse message +executeStep: { + path: '/gauge.messages.Runner/ExecuteStep', + requestStream: false, + responseStream: false, + requestType: messages_pb.ExecuteStepRequest, + responseType: messages_pb.ExecutionStatusResponse, + requestSerialize: serialize_gauge_messages_ExecuteStepRequest, + requestDeserialize: deserialize_gauge_messages_ExecuteStepRequest, + responseSerialize: serialize_gauge_messages_ExecutionStatusResponse, + responseDeserialize: deserialize_gauge_messages_ExecutionStatusResponse, + }, + // StepExecutionEnding is a RPC to tell runner to execute step level hooks. +// +// Accepts a StepExecutionEndingRequest message and returns a ExecutionStatusResponse message +finishStepExecution: { + path: '/gauge.messages.Runner/FinishStepExecution', + requestStream: false, + responseStream: false, + requestType: messages_pb.StepExecutionEndingRequest, + responseType: messages_pb.ExecutionStatusResponse, + requestSerialize: serialize_gauge_messages_StepExecutionEndingRequest, + requestDeserialize: deserialize_gauge_messages_StepExecutionEndingRequest, + responseSerialize: serialize_gauge_messages_ExecutionStatusResponse, + responseDeserialize: deserialize_gauge_messages_ExecutionStatusResponse, + }, + // ScenarioExecutionEnding is a RPC to tell runner to execute Scenario level hooks. +// +// Accepts a ScenarioExecutionEndingRequest message and returns a ExecutionStatusResponse message +finishScenarioExecution: { + path: '/gauge.messages.Runner/FinishScenarioExecution', + requestStream: false, + responseStream: false, + requestType: messages_pb.ScenarioExecutionEndingRequest, + responseType: messages_pb.ExecutionStatusResponse, + requestSerialize: serialize_gauge_messages_ScenarioExecutionEndingRequest, + requestDeserialize: deserialize_gauge_messages_ScenarioExecutionEndingRequest, + responseSerialize: serialize_gauge_messages_ExecutionStatusResponse, + responseDeserialize: deserialize_gauge_messages_ExecutionStatusResponse, + }, + // SpecExecutionEnding is a RPC to tell runner to execute spec level hooks. +// +// Accepts a SpecExecutionEndingRequest message and returns a ExecutionStatusResponse message +finishSpecExecution: { + path: '/gauge.messages.Runner/FinishSpecExecution', + requestStream: false, + responseStream: false, + requestType: messages_pb.SpecExecutionEndingRequest, + responseType: messages_pb.ExecutionStatusResponse, + requestSerialize: serialize_gauge_messages_SpecExecutionEndingRequest, + requestDeserialize: deserialize_gauge_messages_SpecExecutionEndingRequest, + responseSerialize: serialize_gauge_messages_ExecutionStatusResponse, + responseDeserialize: deserialize_gauge_messages_ExecutionStatusResponse, + }, + // ExecutionEnding is a RPC to tell runner to execute suite level hooks. +// +// Accepts a ExecutionEndingRequest message and returns a ExecutionStatusResponse message +finishExecution: { + path: '/gauge.messages.Runner/FinishExecution', + requestStream: false, + responseStream: false, + requestType: messages_pb.ExecutionEndingRequest, + responseType: messages_pb.ExecutionStatusResponse, + requestSerialize: serialize_gauge_messages_ExecutionEndingRequest, + requestDeserialize: deserialize_gauge_messages_ExecutionEndingRequest, + responseSerialize: serialize_gauge_messages_ExecutionStatusResponse, + responseDeserialize: deserialize_gauge_messages_ExecutionStatusResponse, + }, + // CacheFile is a RPC to tell runner to load/reload/unload a implementation file. +// +// Accepts a CacheFileRequest message and returns a Empty message +cacheFile: { + path: '/gauge.messages.Runner/CacheFile', + requestStream: false, + responseStream: false, + requestType: messages_pb.CacheFileRequest, + responseType: messages_pb.Empty, + requestSerialize: serialize_gauge_messages_CacheFileRequest, + requestDeserialize: deserialize_gauge_messages_CacheFileRequest, + responseSerialize: serialize_gauge_messages_Empty, + responseDeserialize: deserialize_gauge_messages_Empty, + }, + // GetStepName is a RPC to get information about the given step. +// +// Accepts a StepNameRequest message and returns a StepNameResponse message. +getStepName: { + path: '/gauge.messages.Runner/GetStepName', + requestStream: false, + responseStream: false, + requestType: messages_pb.StepNameRequest, + responseType: messages_pb.StepNameResponse, + requestSerialize: serialize_gauge_messages_StepNameRequest, + requestDeserialize: deserialize_gauge_messages_StepNameRequest, + responseSerialize: serialize_gauge_messages_StepNameResponse, + responseDeserialize: deserialize_gauge_messages_StepNameResponse, + }, + // GetGlobPatterns is a RPC to get the file path pattern which needs to be cached. +// +// Accepts a Empty message and returns a ImplementationFileGlobPatternResponse message. +getGlobPatterns: { + path: '/gauge.messages.Runner/GetGlobPatterns', + requestStream: false, + responseStream: false, + requestType: messages_pb.Empty, + responseType: messages_pb.ImplementationFileGlobPatternResponse, + requestSerialize: serialize_gauge_messages_Empty, + requestDeserialize: deserialize_gauge_messages_Empty, + responseSerialize: serialize_gauge_messages_ImplementationFileGlobPatternResponse, + responseDeserialize: deserialize_gauge_messages_ImplementationFileGlobPatternResponse, + }, + // GetStepNames is a RPC to get all the available steps from the runner. +// +// Accepts a StepNamesRequest message and returns a StepNamesResponse +getStepNames: { + path: '/gauge.messages.Runner/GetStepNames', + requestStream: false, + responseStream: false, + requestType: messages_pb.StepNamesRequest, + responseType: messages_pb.StepNamesResponse, + requestSerialize: serialize_gauge_messages_StepNamesRequest, + requestDeserialize: deserialize_gauge_messages_StepNamesRequest, + responseSerialize: serialize_gauge_messages_StepNamesResponse, + responseDeserialize: deserialize_gauge_messages_StepNamesResponse, + }, + // GetStepPositions is a RPC to get positions of all available steps in a given file. +// +// Accepts a StepPositionsRequest message and returns a StepPositionsResponse message +getStepPositions: { + path: '/gauge.messages.Runner/GetStepPositions', + requestStream: false, + responseStream: false, + requestType: messages_pb.StepPositionsRequest, + responseType: messages_pb.StepPositionsResponse, + requestSerialize: serialize_gauge_messages_StepPositionsRequest, + requestDeserialize: deserialize_gauge_messages_StepPositionsRequest, + responseSerialize: serialize_gauge_messages_StepPositionsResponse, + responseDeserialize: deserialize_gauge_messages_StepPositionsResponse, + }, + // GetImplementationFiles is a RPC get all the existing implementation files. +// +// Accepts a Empty and returns a ImplementationFileListResponse message. +getImplementationFiles: { + path: '/gauge.messages.Runner/GetImplementationFiles', + requestStream: false, + responseStream: false, + requestType: messages_pb.Empty, + responseType: messages_pb.ImplementationFileListResponse, + requestSerialize: serialize_gauge_messages_Empty, + requestDeserialize: deserialize_gauge_messages_Empty, + responseSerialize: serialize_gauge_messages_ImplementationFileListResponse, + responseDeserialize: deserialize_gauge_messages_ImplementationFileListResponse, + }, + // ImplementStub is a RPC to to ask runner to add a given implementation to given file. +// +// Accepts a StubImplementationCodeRequest and returns a FileDiff message. +implementStub: { + path: '/gauge.messages.Runner/ImplementStub', + requestStream: false, + responseStream: false, + requestType: messages_pb.StubImplementationCodeRequest, + responseType: messages_pb.FileDiff, + requestSerialize: serialize_gauge_messages_StubImplementationCodeRequest, + requestDeserialize: deserialize_gauge_messages_StubImplementationCodeRequest, + responseSerialize: serialize_gauge_messages_FileDiff, + responseDeserialize: deserialize_gauge_messages_FileDiff, + }, + // Refactor is a RPC to refactor a given step in implementation file. +// +// Accepts a RefactorRequest message and returns a RefactorResponse message. +refactor: { + path: '/gauge.messages.Runner/Refactor', + requestStream: false, + responseStream: false, + requestType: messages_pb.RefactorRequest, + responseType: messages_pb.RefactorResponse, + requestSerialize: serialize_gauge_messages_RefactorRequest, + requestDeserialize: deserialize_gauge_messages_RefactorRequest, + responseSerialize: serialize_gauge_messages_RefactorResponse, + responseDeserialize: deserialize_gauge_messages_RefactorResponse, + }, + // Kill is a RPC tell plugin to stop grpc server and kill the plugin process. +// +// Accepts a KillProcessRequest message and returns a Empty message. +kill: { + path: '/gauge.messages.Runner/Kill', + requestStream: false, + responseStream: false, + requestType: messages_pb.KillProcessRequest, + responseType: messages_pb.Empty, + requestSerialize: serialize_gauge_messages_KillProcessRequest, + requestDeserialize: deserialize_gauge_messages_KillProcessRequest, + responseSerialize: serialize_gauge_messages_Empty, + responseDeserialize: deserialize_gauge_messages_Empty, + }, +}; + +exports.RunnerClient = grpc.makeGenericClientConstructor(RunnerService); +// Reporter services is meant for reporting plugins, or others plugins which are interested the live events +var ReporterService = exports.ReporterService = { + // NotifyExecutionStarting is a RPC to tell plugins that the execution has started. +// +// Accepts a ExecutionStartingRequest message and returns a Empty message +notifyExecutionStarting: { + path: '/gauge.messages.Reporter/NotifyExecutionStarting', + requestStream: false, + responseStream: false, + requestType: messages_pb.ExecutionStartingRequest, + responseType: messages_pb.Empty, + requestSerialize: serialize_gauge_messages_ExecutionStartingRequest, + requestDeserialize: deserialize_gauge_messages_ExecutionStartingRequest, + responseSerialize: serialize_gauge_messages_Empty, + responseDeserialize: deserialize_gauge_messages_Empty, + }, + // NotifySpecExecutionStarting is a RPC to tell plugins that the specification execution has started. +// +// Accepts a SpecExecutionStartingRequest message and returns a Empty message +notifySpecExecutionStarting: { + path: '/gauge.messages.Reporter/NotifySpecExecutionStarting', + requestStream: false, + responseStream: false, + requestType: messages_pb.SpecExecutionStartingRequest, + responseType: messages_pb.Empty, + requestSerialize: serialize_gauge_messages_SpecExecutionStartingRequest, + requestDeserialize: deserialize_gauge_messages_SpecExecutionStartingRequest, + responseSerialize: serialize_gauge_messages_Empty, + responseDeserialize: deserialize_gauge_messages_Empty, + }, + // NotifyScenarioExecutionStarting is a RPC to tell plugins that the scenario execution has started. +// +// Accepts a ScenarioExecutionStartingRequest message and returns a Empty message +notifyScenarioExecutionStarting: { + path: '/gauge.messages.Reporter/NotifyScenarioExecutionStarting', + requestStream: false, + responseStream: false, + requestType: messages_pb.ScenarioExecutionStartingRequest, + responseType: messages_pb.Empty, + requestSerialize: serialize_gauge_messages_ScenarioExecutionStartingRequest, + requestDeserialize: deserialize_gauge_messages_ScenarioExecutionStartingRequest, + responseSerialize: serialize_gauge_messages_Empty, + responseDeserialize: deserialize_gauge_messages_Empty, + }, + // NotifyStepExecutionStarting is a RPC to tell plugins that the step execution has started. +// +// Accepts a StepExecutionStartingRequest message and returns a Empty message +notifyStepExecutionStarting: { + path: '/gauge.messages.Reporter/NotifyStepExecutionStarting', + requestStream: false, + responseStream: false, + requestType: messages_pb.StepExecutionStartingRequest, + responseType: messages_pb.Empty, + requestSerialize: serialize_gauge_messages_StepExecutionStartingRequest, + requestDeserialize: deserialize_gauge_messages_StepExecutionStartingRequest, + responseSerialize: serialize_gauge_messages_Empty, + responseDeserialize: deserialize_gauge_messages_Empty, + }, + // NotifyStepExecutionEnding is a RPC to tell plugins that the step execution has finished. +// +// Accepts a StepExecutionStartingRequest message and returns a Empty message +notifyStepExecutionEnding: { + path: '/gauge.messages.Reporter/NotifyStepExecutionEnding', + requestStream: false, + responseStream: false, + requestType: messages_pb.StepExecutionEndingRequest, + responseType: messages_pb.Empty, + requestSerialize: serialize_gauge_messages_StepExecutionEndingRequest, + requestDeserialize: deserialize_gauge_messages_StepExecutionEndingRequest, + responseSerialize: serialize_gauge_messages_Empty, + responseDeserialize: deserialize_gauge_messages_Empty, + }, + // NotifyScenarioExecutionEnding is a RPC to tell plugins that the scenario execution has finished. +// +// Accepts a ScenarioExecutionEndingRequest message and returns a Empty message +notifyScenarioExecutionEnding: { + path: '/gauge.messages.Reporter/NotifyScenarioExecutionEnding', + requestStream: false, + responseStream: false, + requestType: messages_pb.ScenarioExecutionEndingRequest, + responseType: messages_pb.Empty, + requestSerialize: serialize_gauge_messages_ScenarioExecutionEndingRequest, + requestDeserialize: deserialize_gauge_messages_ScenarioExecutionEndingRequest, + responseSerialize: serialize_gauge_messages_Empty, + responseDeserialize: deserialize_gauge_messages_Empty, + }, + // NotifySpecExecutionEnding is a RPC to tell plugins that the specification execution has finished. +// +// Accepts a SpecExecutionStartingRequest message and returns a Empty message +notifySpecExecutionEnding: { + path: '/gauge.messages.Reporter/NotifySpecExecutionEnding', + requestStream: false, + responseStream: false, + requestType: messages_pb.SpecExecutionEndingRequest, + responseType: messages_pb.Empty, + requestSerialize: serialize_gauge_messages_SpecExecutionEndingRequest, + requestDeserialize: deserialize_gauge_messages_SpecExecutionEndingRequest, + responseSerialize: serialize_gauge_messages_Empty, + responseDeserialize: deserialize_gauge_messages_Empty, + }, + // NotifyExecutionEnding is a RPC to tell plugins that the execution has finished. +// +// Accepts a ExecutionEndingRequest message and returns a Empty message +notifyExecutionEnding: { + path: '/gauge.messages.Reporter/NotifyExecutionEnding', + requestStream: false, + responseStream: false, + requestType: messages_pb.ExecutionEndingRequest, + responseType: messages_pb.Empty, + requestSerialize: serialize_gauge_messages_ExecutionEndingRequest, + requestDeserialize: deserialize_gauge_messages_ExecutionEndingRequest, + responseSerialize: serialize_gauge_messages_Empty, + responseDeserialize: deserialize_gauge_messages_Empty, + }, + // NotifySuiteResult is a RPC to tell about the end result of execution +// +// Accepts a SuiteExecutionResult message and returns a Empty message. +notifySuiteResult: { + path: '/gauge.messages.Reporter/NotifySuiteResult', + requestStream: false, + responseStream: false, + requestType: messages_pb.SuiteExecutionResult, + responseType: messages_pb.Empty, + requestSerialize: serialize_gauge_messages_SuiteExecutionResult, + requestDeserialize: deserialize_gauge_messages_SuiteExecutionResult, + responseSerialize: serialize_gauge_messages_Empty, + responseDeserialize: deserialize_gauge_messages_Empty, + }, + // Kill is a RPC tell plugin to stop grpc server and kill the plugin process. +// +// Accepts a KillProcessRequest message and returns a Empty message. +kill: { + path: '/gauge.messages.Reporter/Kill', + requestStream: false, + responseStream: false, + requestType: messages_pb.KillProcessRequest, + responseType: messages_pb.Empty, + requestSerialize: serialize_gauge_messages_KillProcessRequest, + requestDeserialize: deserialize_gauge_messages_KillProcessRequest, + responseSerialize: serialize_gauge_messages_Empty, + responseDeserialize: deserialize_gauge_messages_Empty, + }, +}; + +exports.ReporterClient = grpc.makeGenericClientConstructor(ReporterService); +// Reporter services is meant for documentation plugins +var DocumenterService = exports.DocumenterService = { + // GenerateDocs is a RPC tell plugin to generate docs from the spec details. +// +// Accepts a SpecDetails message and returns a Empty message. +generateDocs: { + path: '/gauge.messages.Documenter/GenerateDocs', + requestStream: false, + responseStream: false, + requestType: messages_pb.SpecDetails, + responseType: messages_pb.Empty, + requestSerialize: serialize_gauge_messages_SpecDetails, + requestDeserialize: deserialize_gauge_messages_SpecDetails, + responseSerialize: serialize_gauge_messages_Empty, + responseDeserialize: deserialize_gauge_messages_Empty, + }, + // Kill is a RPC tell plugin to stop grpc server and kill the plugin process. +// +// Accepts a KillProcessRequest message and returns a Empty message. +kill: { + path: '/gauge.messages.Documenter/Kill', + requestStream: false, + responseStream: false, + requestType: messages_pb.KillProcessRequest, + responseType: messages_pb.Empty, + requestSerialize: serialize_gauge_messages_KillProcessRequest, + requestDeserialize: deserialize_gauge_messages_KillProcessRequest, + responseSerialize: serialize_gauge_messages_Empty, + responseDeserialize: deserialize_gauge_messages_Empty, + }, +}; + +exports.DocumenterClient = grpc.makeGenericClientConstructor(DocumenterService); diff --git a/src/gen/services_pb.d.ts b/src/gen/services_pb.d.ts new file mode 100644 index 0000000..c7247dd --- /dev/null +++ b/src/gen/services_pb.d.ts @@ -0,0 +1,8 @@ +// package: gauge.messages +// file: services.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as messages_pb from "./messages_pb"; diff --git a/src/gen/services_pb.js b/src/gen/services_pb.js new file mode 100644 index 0000000..3523520 --- /dev/null +++ b/src/gen/services_pb.js @@ -0,0 +1,16 @@ +// source: services.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +var messages_pb = require('./messages_pb.js'); +goog.object.extend(proto, messages_pb); diff --git a/src/gen/spec.proto b/src/gen/spec.proto deleted file mode 100644 index fe9a495..0000000 --- a/src/gen/spec.proto +++ /dev/null @@ -1,457 +0,0 @@ -// Copyright 2015 ThoughtWorks, Inc. - -// This file is part of gauge-proto. - -// gauge-proto is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// gauge-proto is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with gauge-proto. If not, see . -syntax = "proto3"; -package gauge.messages; -option csharp_namespace = "Gauge.Messages"; -option java_package = "com.thoughtworks.gauge"; - -// The comments are exported to Markdown, hence they may contain markdown syntax and cross-refs. - - -/// A proto object representing a Specification -/// A specification can contain Scenarios or Steps, besides Comments -message ProtoSpec { - /// Heading describing the Specification - string specHeading = 1; - /// A collection of items that come under this step - repeated ProtoItem items = 2; - /// Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter. - bool isTableDriven = 3; - /// Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error. - repeated ProtoHookFailure preHookFailures = 4; - /// Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error. - repeated ProtoHookFailure postHookFailures = 5; - /// Contains the filename for that holds this specification. - string fileName = 6; - /// Contains a list of tags that are defined at the specification level. Scenario tags are not present here. - repeated string tags = 7; - /// Additional information at pre hook exec time to be available on reports - repeated string preHookMessages = 8; - /// Additional information at post hook exec time to be available on reports - repeated string postHookMessages = 9; - /// [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports - repeated string preHookMessage = 10 [deprecated=true]; - /// [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports - repeated string postHookMessage = 11 [deprecated=true]; - /// [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - repeated bytes preHookScreenshots = 12 [deprecated=true]; - /// [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - repeated bytes postHookScreenshots = 13 [deprecated=true]; - /// meta field to indicate the number of items in the list - /// used when items are sent as individual chunk - int64 itemCount = 14; - /// Screenshots captured on pre hook exec time to be available on reports - repeated string preHookScreenshotFiles = 15; - /// Screenshots captured on post hook exec time to be available on reports - repeated string postHookScreenshotFiles = 16; -} - - -/// Container for all valid Items under a Specification. -message ProtoItem { - /// Enumerates various item types that the proto item can contain. Valid types are: Step, Comment, Concept, Scenario, TableDrivenScenario, Table, Tags - enum ItemType { - Step = 0; // Item is a Step - Comment = 1; // Item is a Comment - Concept = 2; // Item is a Concept - Scenario = 3; // Item is a Scenario - TableDrivenScenario = 4; // Item is a TableDrivenScenario, a special case of Scenario, where there is a Context Step defining a table. - Table = 5; // Item is a Table - Tags = 6; // Item is a Tag - } - /// Itemtype of the current ProtoItem - ItemType itemType = 1; - /// Holds the Step definition. Valid only if ItemType = Step - ProtoStep step = 2; - /// Holds the Concept definition. Valid only if ItemType = Concept - ProtoConcept concept = 3; - /// Holds the Scenario definition. Valid only if ItemType = Scenario - ProtoScenario scenario = 4; - /// Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario - ProtoTableDrivenScenario tableDrivenScenario = 5; - /// Holds the Comment definition. Valid only if ItemType = Comment - ProtoComment comment = 6; - /// Holds the Table definition. Valid only if ItemType = Table - ProtoTable table = 7; - /// Holds the Tags definition. Valid only if ItemType = Tags - ProtoTags tags = 8; - /// Holds the Filename that the item belongs to - string fileName = 9; -} - -/// Execution Status -enum ExecutionStatus { - NOTEXECUTED = 0; - PASSED = 1; - FAILED = 2; - SKIPPED = 3; -} - -/// A proto object representing a Scenario -message ProtoScenario { - /// Heading of the given Scenario - string scenarioHeading = 1; - /// Flag to indicate if the Scenario execution failed - bool failed = 2 [deprecated=true]; - /// Collection of Context steps. The Context steps are executed before every run. - repeated ProtoItem contexts = 3; - /// Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables - repeated ProtoItem scenarioItems = 4; - /// Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error. - ProtoHookFailure preHookFailure = 5; - /// Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error. - ProtoHookFailure postHookFailure = 6; - /// Contains a list of tags that are defined at the specification level. Scenario tags are not present here. - repeated string tags = 7; - /// Holds the time taken for executing this scenario. - int64 executionTime = 8; - /// Flag to indicate if the Scenario execution is skipped - bool skipped = 9 [deprecated=true]; - /// Holds the error messages for skipping scenario from execution - repeated string skipErrors = 10; - /// Holds the unique Identifier of a scenario. - string ID = 11; - /// Collection of Teardown steps. The Teardown steps are executed after every run. - repeated ProtoItem tearDownSteps = 12; - /// Span(start, end) of scenario - Span span = 13; - /// Execution status for the scenario - ExecutionStatus executionStatus = 14; - /// Additional information at pre hook exec time to be available on reports - repeated string preHookMessages = 15; - /// Additional information at post hook exec time to be available on reports - repeated string postHookMessages = 16; - /// [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports - repeated string preHookMessage = 17 [deprecated=true]; - /// [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports - repeated string postHookMessage = 18 [deprecated=true]; - /// [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - repeated bytes preHookScreenshots = 19 [deprecated=true]; - /// [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - repeated bytes postHookScreenshots = 20 [deprecated=true]; - /// Screenshots captured on pre hook exec time to be available on reports - repeated string preHookScreenshotFiles = 21; - /// Screenshots captured on post hook exec time to be available on reports - repeated string postHookScreenshotFiles = 22; -} - -/// A proto object representing a Span of content -message Span { - int64 start = 1; - int64 end = 2; - int64 startChar = 3; - int64 endChar = 4; -} - -/// A proto object representing a TableDrivenScenario -message ProtoTableDrivenScenario { - /// Scenario under Table driven execution - ProtoScenario scenario = 1; - /// Row Index of data table against which the current scenario is executed - int32 tableRowIndex = 2; - /// Row Index of scenario data table against which the current scenario is executed - int32 scenarioTableRowIndex = 3; - /// Executed against a spec data table - bool isSpecTableDriven = 4; - /// Executed against a scenario data table - bool isScenarioTableDriven = 5; - /// Holds the scenario data table - ProtoTable scenarioDataTable = 6; - /// Hold the row of scenario data table. - ProtoTable scenarioTableRow = 7; -} - -/// A proto object representing a Step -message ProtoStep { - /// Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values. - string actualText = 1; - /// Contains the parsed text of the Step. This will have placeholders for the parameters. - string parsedText = 2; - /// Collection of a list of fragments for a Step. A fragment could be either text or parameter. - repeated Fragment fragments = 3; - /// Holds the result from the execution. - ProtoStepExecutionResult stepExecutionResult = 4; - /// Additional information at pre hook exec time to be available on reports - repeated string preHookMessages = 5; - /// Additional information at post hook exec time to be available on reports - repeated string postHookMessages = 6; - /// [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - repeated bytes preHookScreenshots = 7 [deprecated=true]; - /// [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - repeated bytes postHookScreenshots = 8 [deprecated=true]; - /// Screenshots captured on pre hook exec time to be available on reports - repeated string preHookScreenshotFiles = 9; - /// Screenshots captured on post hook exec time to be available on reports - repeated string postHookScreenshotFiles = 10; -} - -/// Concept is a type of step, that can have multiple Steps. -/// But from a caller's perspective, it is still used as any other Step -/// A proto object representing a Concept -message ProtoConcept { - /// Represents the Step value of a Concept. - ProtoStep conceptStep = 1; - /// Collection of Steps in the given concepts. - repeated ProtoItem steps = 2; - /// Holds the execution result. - ProtoStepExecutionResult conceptExecutionResult = 3; -} - -/// A proto object representing Tags -message ProtoTags { - /// A collection of Tags - repeated string tags = 1; -} - -/// A proto object representing Fragment. -/// Fragments, put together make up A Step -message Fragment { - /// Enum representing the types of Fragment - enum FragmentType { - Text = 0; /// Fragment is a Text part - Parameter = 1; /// Fragment is a Parameter part - } - /// Type of Fragment, valid values are Text, Parameter - FragmentType fragmentType = 1; - /// Text part of the Fragment, valid only if FragmentType=Text - string text = 2; - /// Parameter part of the Fragment, valid only if FragmentType=Parameter - Parameter parameter = 3; -} - -/// A proto object representing Fragment. -message Parameter { - /// Enum representing types of Parameter. - enum ParameterType { - Static = 0; // Static parameter. The value of the parameter is defined at the Step. - Dynamic = 1; // Dynamic parameter. This is a parameter placeholder, and the actual value is injected at runtime, depending on the context of the call. - Special_String = 2; // Special paramter, taking a string value. Special paramters are read from a file. - Special_Table = 3; // Special paramter, taking a Table value. This parameter is read from a csv file. - Table = 4; // A table parameter, used for data driven execution. - } - /// Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table - ParameterType parameterType = 1; - /// Holds the value of the parameter - string value = 2; - /// Holds the name of the parameter, used as Key to lookup the value. - string name = 3; - /// Holds the table value, if parameterType=Table or Special_Table - ProtoTable table = 4; -} - -/// A proto object representing Comment. -message ProtoComment { - /// Text representing the Comment. - string text = 1; -} - -/// A proto object representing Table. -message ProtoTable { - /// Contains the Headers for the table - ProtoTableRow headers = 1; - /// Contains the Rows for the table - repeated ProtoTableRow rows = 2; -} - -/// A proto object representing Table. -message ProtoTableRow { - /// Represents the cells of a given table - repeated string cells = 1; -} - -/// A proto object representing Step Execution result -message ProtoStepExecutionResult { - /// The actual result of the execution - ProtoExecutionResult executionResult = 1; - /// Contains a 'before' hook failure message. This happens when the `before_step` hook has an error. - ProtoHookFailure preHookFailure = 2; - /// Contains a 'after' hook failure message. This happens when the `after_step` hook has an error. - ProtoHookFailure postHookFailure = 3; - - bool skipped = 4; - string skippedReason = 5; -} - -/// A proto object representing the result of an execution -message ProtoExecutionResult { - /// Flag to indicate failure - bool failed = 1; - /// Flag to indicate if the error is recoverable from. - bool recoverableError = 2; - /// The actual error message. - string errorMessage = 3; - /// Stacktrace of the error - string stackTrace = 4; - /// [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure. - bytes screenShot = 5 [deprecated=true]; - /// Holds the time taken for executing this scenario. - int64 executionTime = 6; - /// Additional information at exec time to be available on reports - repeated string message = 7; - - - enum ErrorType { - ASSERTION = 0; - VERIFICATION = 1; - } - /// Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION - ErrorType errorType = 8; - /// [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure. - bytes failureScreenshot = 9 [deprecated=true]; - /// [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked - repeated bytes screenshots = 10 [deprecated=true]; - /// Path to the screenshot file captured at the time of failure. - string failureScreenshotFile = 11; - /// Path to the screenshot files captured using Gauge screenshsot API. - repeated string screenshotFiles = 12; -} - -/// A proto object representing a pre-hook failure. -/// Used to hold failure information for before_suite, before_spec, before_scenario and before_spec hooks. -message ProtoHookFailure { - /// Stacktrace from the failure - string stackTrace = 1; - /// Error message from the failure - string errorMessage = 2; - /// [DEPRECATED, use failureScreenshotFile] Bytes holding the screenshot taken at the time of failure. - bytes screenShot = 3 [deprecated=true]; - // / Contains table row index corresponding to datatable rows - int32 tableRowIndex = 4; - /// [DEPRECATED, use failureScreenshotFile] Bytes holding the screenshot taken at the time of failure. - bytes failureScreenshot = 5 [deprecated=true]; - /// Path to the screenshot file captured at the time of failure. - string failureScreenshotFile = 6; -} - -/// A proto object representing the result of entire Suite execution. -message ProtoSuiteResult { - /// Contains the result from the execution - repeated ProtoSpecResult specResults = 1; - /// Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error - ProtoHookFailure preHookFailure = 2; - /// Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error - ProtoHookFailure postHookFailure = 3; - /// Flag to indicate failure - bool failed = 4; - /// Holds the count of number of Specifications that failed. - int32 specsFailedCount = 5; - /// Holds the time taken for executing the whole suite. - int64 executionTime = 6; - /// Holds a metric indicating the success rate of the execution. - float successRate = 7; - /// The environment against which execution was done - string environment = 8; - /// Tag expression used for filtering specification - string tags = 9; - /// Project name - string projectName = 10; - /// Timestamp of when execution started - string timestamp = 11; - int32 specsSkippedCount = 12; - /// Additional information at pre hook exec time to be available on reports - repeated string preHookMessages = 13; - /// Additional information at post hook exec time to be available on reports - repeated string postHookMessages = 14; - /// [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports - repeated string preHookMessage = 15 [deprecated=true]; - /// [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports - repeated string postHookMessage = 16 [deprecated=true]; - /// [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - repeated bytes preHookScreenshots = 17 [deprecated=true]; - /// [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - repeated bytes postHookScreenshots = 18 [deprecated=true]; - // Indicates if the result is sent in chunks - bool chunked = 19; - // Indicates the number of chunks to expect after this - int64 chunkSize = 20; - /// Screenshots captured on pre hook exec time to be available on reports - repeated string preHookScreenshotFiles = 21; - /// Screenshots captured on post hook exec time to be available on reports - repeated string postHookScreenshotFiles = 22; -} - -/// A proto object representing the result of Spec execution. -message ProtoSpecResult { - /// Represents the corresponding Specification - ProtoSpec protoSpec = 1; - /// Holds the number of Scenarios executed - int32 scenarioCount = 2; - /// Holds the number of Scenarios failed - int32 scenarioFailedCount = 3; - /// Flag to indicate failure - bool failed = 4; - /// Holds the row numbers, which caused the execution to fail. - repeated int32 failedDataTableRows = 5; - /// Holds the time taken for executing the spec. - int64 executionTime = 6; - /// Flag to indicate if spec is skipped - bool skipped = 7; - /// Holds the number of Scenarios skipped - int32 scenarioSkippedCount = 8; - /// Holds the row numbers, for which the execution skipped. - repeated int32 skippedDataTableRows = 9; - /// Holds parse, validation and skipped errors. - repeated Error errors = 10; - /// Holds the timestamp of event starting. - string timestamp = 11; -} - -/// A proto object representing the result of Scenario execution. -message ProtoScenarioResult { - /// Collection of scenarios in scenario execution result. - ProtoItem protoItem = 1; - /// Holds the time taken for executing the whole suite. - int64 executionTime = 2; - /// Holds the timestamp of event starting. - string timestamp = 3; -} - -/// A proto object representing the result of Step execution. -message ProtoStepResult { - /// Collection of steps in step execution result. - ProtoItem protoItem = 1; - /// Holds the time taken for executing the whole suite. - int64 executionTime = 2; - /// Holds the timestamp of event starting. - string timestamp = 3; -} - -/// A proto object representing an error in spec/Scenario. -message Error { - enum ErrorType { - PARSE_ERROR = 0; - VALIDATION_ERROR = 1; - } - /// Holds the type of error - ErrorType type = 1; - /// Holds the filename. - string filename = 2; - /// Holds the line number of the error in file. - int32 lineNumber = 3; - /// Holds the error message. - string message = 4; -} - -/// A proto object representing a Step value. -message ProtoStepValue { - /// The actual string value describing he Step - string stepValue = 1; - /// The parameterized string value describing he Step. The parameters are replaced with placeholders. - string parameterizedStepValue = 2; - /// A collection of strings representing the parameters. - repeated string parameters = 3; -} diff --git a/src/gen/spec_pb.d.ts b/src/gen/spec_pb.d.ts new file mode 100644 index 0000000..f0faf83 --- /dev/null +++ b/src/gen/spec_pb.d.ts @@ -0,0 +1,1249 @@ +// package: gauge.messages +// file: spec.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; + +export class ProtoSpec extends jspb.Message { + getSpecheading(): string; + setSpecheading(value: string): ProtoSpec; + + clearItemsList(): void; + getItemsList(): Array; + setItemsList(value: Array): ProtoSpec; + addItems(value?: ProtoItem, index?: number): ProtoItem; + + getIstabledriven(): boolean; + setIstabledriven(value: boolean): ProtoSpec; + + clearPrehookfailuresList(): void; + getPrehookfailuresList(): Array; + setPrehookfailuresList(value: Array): ProtoSpec; + addPrehookfailures(value?: ProtoHookFailure, index?: number): ProtoHookFailure; + + clearPosthookfailuresList(): void; + getPosthookfailuresList(): Array; + setPosthookfailuresList(value: Array): ProtoSpec; + addPosthookfailures(value?: ProtoHookFailure, index?: number): ProtoHookFailure; + + getFilename(): string; + setFilename(value: string): ProtoSpec; + + clearTagsList(): void; + getTagsList(): Array; + setTagsList(value: Array): ProtoSpec; + addTags(value: string, index?: number): string; + + clearPrehookmessagesList(): void; + getPrehookmessagesList(): Array; + setPrehookmessagesList(value: Array): ProtoSpec; + addPrehookmessages(value: string, index?: number): string; + + clearPosthookmessagesList(): void; + getPosthookmessagesList(): Array; + setPosthookmessagesList(value: Array): ProtoSpec; + addPosthookmessages(value: string, index?: number): string; + + clearPrehookmessageList(): void; + getPrehookmessageList(): Array; + setPrehookmessageList(value: Array): ProtoSpec; + addPrehookmessage(value: string, index?: number): string; + + clearPosthookmessageList(): void; + getPosthookmessageList(): Array; + setPosthookmessageList(value: Array): ProtoSpec; + addPosthookmessage(value: string, index?: number): string; + + clearPrehookscreenshotsList(): void; + getPrehookscreenshotsList(): Array; + getPrehookscreenshotsList_asU8(): Array; + getPrehookscreenshotsList_asB64(): Array; + setPrehookscreenshotsList(value: Array): ProtoSpec; + addPrehookscreenshots(value: Uint8Array | string, index?: number): Uint8Array | string; + + clearPosthookscreenshotsList(): void; + getPosthookscreenshotsList(): Array; + getPosthookscreenshotsList_asU8(): Array; + getPosthookscreenshotsList_asB64(): Array; + setPosthookscreenshotsList(value: Array): ProtoSpec; + addPosthookscreenshots(value: Uint8Array | string, index?: number): Uint8Array | string; + + getItemcount(): number; + setItemcount(value: number): ProtoSpec; + + clearPrehookscreenshotfilesList(): void; + getPrehookscreenshotfilesList(): Array; + setPrehookscreenshotfilesList(value: Array): ProtoSpec; + addPrehookscreenshotfiles(value: string, index?: number): string; + + clearPosthookscreenshotfilesList(): void; + getPosthookscreenshotfilesList(): Array; + setPosthookscreenshotfilesList(value: Array): ProtoSpec; + addPosthookscreenshotfiles(value: string, index?: number): string; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoSpec.AsObject; + static toObject(includeInstance: boolean, msg: ProtoSpec): ProtoSpec.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoSpec, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoSpec; + static deserializeBinaryFromReader(message: ProtoSpec, reader: jspb.BinaryReader): ProtoSpec; +} + +export namespace ProtoSpec { + export type AsObject = { + specheading: string, + itemsList: Array, + istabledriven: boolean, + prehookfailuresList: Array, + posthookfailuresList: Array, + filename: string, + tagsList: Array, + prehookmessagesList: Array, + posthookmessagesList: Array, + prehookmessageList: Array, + posthookmessageList: Array, + prehookscreenshotsList: Array, + posthookscreenshotsList: Array, + itemcount: number, + prehookscreenshotfilesList: Array, + posthookscreenshotfilesList: Array, + } +} + +export class ProtoItem extends jspb.Message { + getItemtype(): ProtoItem.ItemType; + setItemtype(value: ProtoItem.ItemType): ProtoItem; + + + hasStep(): boolean; + clearStep(): void; + getStep(): ProtoStep | undefined; + setStep(value?: ProtoStep): ProtoItem; + + + hasConcept(): boolean; + clearConcept(): void; + getConcept(): ProtoConcept | undefined; + setConcept(value?: ProtoConcept): ProtoItem; + + + hasScenario(): boolean; + clearScenario(): void; + getScenario(): ProtoScenario | undefined; + setScenario(value?: ProtoScenario): ProtoItem; + + + hasTabledrivenscenario(): boolean; + clearTabledrivenscenario(): void; + getTabledrivenscenario(): ProtoTableDrivenScenario | undefined; + setTabledrivenscenario(value?: ProtoTableDrivenScenario): ProtoItem; + + + hasComment(): boolean; + clearComment(): void; + getComment(): ProtoComment | undefined; + setComment(value?: ProtoComment): ProtoItem; + + + hasTable(): boolean; + clearTable(): void; + getTable(): ProtoTable | undefined; + setTable(value?: ProtoTable): ProtoItem; + + + hasTags(): boolean; + clearTags(): void; + getTags(): ProtoTags | undefined; + setTags(value?: ProtoTags): ProtoItem; + + getFilename(): string; + setFilename(value: string): ProtoItem; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoItem.AsObject; + static toObject(includeInstance: boolean, msg: ProtoItem): ProtoItem.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoItem, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoItem; + static deserializeBinaryFromReader(message: ProtoItem, reader: jspb.BinaryReader): ProtoItem; +} + +export namespace ProtoItem { + export type AsObject = { + itemtype: ProtoItem.ItemType, + step?: ProtoStep.AsObject, + concept?: ProtoConcept.AsObject, + scenario?: ProtoScenario.AsObject, + tabledrivenscenario?: ProtoTableDrivenScenario.AsObject, + comment?: ProtoComment.AsObject, + table?: ProtoTable.AsObject, + tags?: ProtoTags.AsObject, + filename: string, + } + + export enum ItemType { + STEP = 0, + COMMENT = 1, + CONCEPT = 2, + SCENARIO = 3, + TABLEDRIVENSCENARIO = 4, + TABLE = 5, + TAGS = 6, + } + +} + +export class ProtoScenario extends jspb.Message { + getScenarioheading(): string; + setScenarioheading(value: string): ProtoScenario; + + getFailed(): boolean; + setFailed(value: boolean): ProtoScenario; + + clearContextsList(): void; + getContextsList(): Array; + setContextsList(value: Array): ProtoScenario; + addContexts(value?: ProtoItem, index?: number): ProtoItem; + + clearScenarioitemsList(): void; + getScenarioitemsList(): Array; + setScenarioitemsList(value: Array): ProtoScenario; + addScenarioitems(value?: ProtoItem, index?: number): ProtoItem; + + + hasPrehookfailure(): boolean; + clearPrehookfailure(): void; + getPrehookfailure(): ProtoHookFailure | undefined; + setPrehookfailure(value?: ProtoHookFailure): ProtoScenario; + + + hasPosthookfailure(): boolean; + clearPosthookfailure(): void; + getPosthookfailure(): ProtoHookFailure | undefined; + setPosthookfailure(value?: ProtoHookFailure): ProtoScenario; + + clearTagsList(): void; + getTagsList(): Array; + setTagsList(value: Array): ProtoScenario; + addTags(value: string, index?: number): string; + + getExecutiontime(): number; + setExecutiontime(value: number): ProtoScenario; + + getSkipped(): boolean; + setSkipped(value: boolean): ProtoScenario; + + clearSkiperrorsList(): void; + getSkiperrorsList(): Array; + setSkiperrorsList(value: Array): ProtoScenario; + addSkiperrors(value: string, index?: number): string; + + getId(): string; + setId(value: string): ProtoScenario; + + clearTeardownstepsList(): void; + getTeardownstepsList(): Array; + setTeardownstepsList(value: Array): ProtoScenario; + addTeardownsteps(value?: ProtoItem, index?: number): ProtoItem; + + + hasSpan(): boolean; + clearSpan(): void; + getSpan(): Span | undefined; + setSpan(value?: Span): ProtoScenario; + + getExecutionstatus(): ExecutionStatus; + setExecutionstatus(value: ExecutionStatus): ProtoScenario; + + clearPrehookmessagesList(): void; + getPrehookmessagesList(): Array; + setPrehookmessagesList(value: Array): ProtoScenario; + addPrehookmessages(value: string, index?: number): string; + + clearPosthookmessagesList(): void; + getPosthookmessagesList(): Array; + setPosthookmessagesList(value: Array): ProtoScenario; + addPosthookmessages(value: string, index?: number): string; + + clearPrehookmessageList(): void; + getPrehookmessageList(): Array; + setPrehookmessageList(value: Array): ProtoScenario; + addPrehookmessage(value: string, index?: number): string; + + clearPosthookmessageList(): void; + getPosthookmessageList(): Array; + setPosthookmessageList(value: Array): ProtoScenario; + addPosthookmessage(value: string, index?: number): string; + + clearPrehookscreenshotsList(): void; + getPrehookscreenshotsList(): Array; + getPrehookscreenshotsList_asU8(): Array; + getPrehookscreenshotsList_asB64(): Array; + setPrehookscreenshotsList(value: Array): ProtoScenario; + addPrehookscreenshots(value: Uint8Array | string, index?: number): Uint8Array | string; + + clearPosthookscreenshotsList(): void; + getPosthookscreenshotsList(): Array; + getPosthookscreenshotsList_asU8(): Array; + getPosthookscreenshotsList_asB64(): Array; + setPosthookscreenshotsList(value: Array): ProtoScenario; + addPosthookscreenshots(value: Uint8Array | string, index?: number): Uint8Array | string; + + clearPrehookscreenshotfilesList(): void; + getPrehookscreenshotfilesList(): Array; + setPrehookscreenshotfilesList(value: Array): ProtoScenario; + addPrehookscreenshotfiles(value: string, index?: number): string; + + clearPosthookscreenshotfilesList(): void; + getPosthookscreenshotfilesList(): Array; + setPosthookscreenshotfilesList(value: Array): ProtoScenario; + addPosthookscreenshotfiles(value: string, index?: number): string; + + getRetriescount(): number; + setRetriescount(value: number): ProtoScenario; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoScenario.AsObject; + static toObject(includeInstance: boolean, msg: ProtoScenario): ProtoScenario.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoScenario, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoScenario; + static deserializeBinaryFromReader(message: ProtoScenario, reader: jspb.BinaryReader): ProtoScenario; +} + +export namespace ProtoScenario { + export type AsObject = { + scenarioheading: string, + failed: boolean, + contextsList: Array, + scenarioitemsList: Array, + prehookfailure?: ProtoHookFailure.AsObject, + posthookfailure?: ProtoHookFailure.AsObject, + tagsList: Array, + executiontime: number, + skipped: boolean, + skiperrorsList: Array, + id: string, + teardownstepsList: Array, + span?: Span.AsObject, + executionstatus: ExecutionStatus, + prehookmessagesList: Array, + posthookmessagesList: Array, + prehookmessageList: Array, + posthookmessageList: Array, + prehookscreenshotsList: Array, + posthookscreenshotsList: Array, + prehookscreenshotfilesList: Array, + posthookscreenshotfilesList: Array, + retriescount: number, + } +} + +export class Span extends jspb.Message { + getStart(): number; + setStart(value: number): Span; + + getEnd(): number; + setEnd(value: number): Span; + + getStartchar(): number; + setStartchar(value: number): Span; + + getEndchar(): number; + setEndchar(value: number): Span; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Span.AsObject; + static toObject(includeInstance: boolean, msg: Span): Span.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Span, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Span; + static deserializeBinaryFromReader(message: Span, reader: jspb.BinaryReader): Span; +} + +export namespace Span { + export type AsObject = { + start: number, + end: number, + startchar: number, + endchar: number, + } +} + +export class ProtoTableDrivenScenario extends jspb.Message { + + hasScenario(): boolean; + clearScenario(): void; + getScenario(): ProtoScenario | undefined; + setScenario(value?: ProtoScenario): ProtoTableDrivenScenario; + + getTablerowindex(): number; + setTablerowindex(value: number): ProtoTableDrivenScenario; + + getScenariotablerowindex(): number; + setScenariotablerowindex(value: number): ProtoTableDrivenScenario; + + getIsspectabledriven(): boolean; + setIsspectabledriven(value: boolean): ProtoTableDrivenScenario; + + getIsscenariotabledriven(): boolean; + setIsscenariotabledriven(value: boolean): ProtoTableDrivenScenario; + + + hasScenariodatatable(): boolean; + clearScenariodatatable(): void; + getScenariodatatable(): ProtoTable | undefined; + setScenariodatatable(value?: ProtoTable): ProtoTableDrivenScenario; + + + hasScenariotablerow(): boolean; + clearScenariotablerow(): void; + getScenariotablerow(): ProtoTable | undefined; + setScenariotablerow(value?: ProtoTable): ProtoTableDrivenScenario; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoTableDrivenScenario.AsObject; + static toObject(includeInstance: boolean, msg: ProtoTableDrivenScenario): ProtoTableDrivenScenario.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoTableDrivenScenario, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoTableDrivenScenario; + static deserializeBinaryFromReader(message: ProtoTableDrivenScenario, reader: jspb.BinaryReader): ProtoTableDrivenScenario; +} + +export namespace ProtoTableDrivenScenario { + export type AsObject = { + scenario?: ProtoScenario.AsObject, + tablerowindex: number, + scenariotablerowindex: number, + isspectabledriven: boolean, + isscenariotabledriven: boolean, + scenariodatatable?: ProtoTable.AsObject, + scenariotablerow?: ProtoTable.AsObject, + } +} + +export class ProtoStep extends jspb.Message { + getActualtext(): string; + setActualtext(value: string): ProtoStep; + + getParsedtext(): string; + setParsedtext(value: string): ProtoStep; + + clearFragmentsList(): void; + getFragmentsList(): Array; + setFragmentsList(value: Array): ProtoStep; + addFragments(value?: Fragment, index?: number): Fragment; + + + hasStepexecutionresult(): boolean; + clearStepexecutionresult(): void; + getStepexecutionresult(): ProtoStepExecutionResult | undefined; + setStepexecutionresult(value?: ProtoStepExecutionResult): ProtoStep; + + clearPrehookmessagesList(): void; + getPrehookmessagesList(): Array; + setPrehookmessagesList(value: Array): ProtoStep; + addPrehookmessages(value: string, index?: number): string; + + clearPosthookmessagesList(): void; + getPosthookmessagesList(): Array; + setPosthookmessagesList(value: Array): ProtoStep; + addPosthookmessages(value: string, index?: number): string; + + clearPrehookscreenshotsList(): void; + getPrehookscreenshotsList(): Array; + getPrehookscreenshotsList_asU8(): Array; + getPrehookscreenshotsList_asB64(): Array; + setPrehookscreenshotsList(value: Array): ProtoStep; + addPrehookscreenshots(value: Uint8Array | string, index?: number): Uint8Array | string; + + clearPosthookscreenshotsList(): void; + getPosthookscreenshotsList(): Array; + getPosthookscreenshotsList_asU8(): Array; + getPosthookscreenshotsList_asB64(): Array; + setPosthookscreenshotsList(value: Array): ProtoStep; + addPosthookscreenshots(value: Uint8Array | string, index?: number): Uint8Array | string; + + clearPrehookscreenshotfilesList(): void; + getPrehookscreenshotfilesList(): Array; + setPrehookscreenshotfilesList(value: Array): ProtoStep; + addPrehookscreenshotfiles(value: string, index?: number): string; + + clearPosthookscreenshotfilesList(): void; + getPosthookscreenshotfilesList(): Array; + setPosthookscreenshotfilesList(value: Array): ProtoStep; + addPosthookscreenshotfiles(value: string, index?: number): string; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoStep.AsObject; + static toObject(includeInstance: boolean, msg: ProtoStep): ProtoStep.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoStep, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoStep; + static deserializeBinaryFromReader(message: ProtoStep, reader: jspb.BinaryReader): ProtoStep; +} + +export namespace ProtoStep { + export type AsObject = { + actualtext: string, + parsedtext: string, + fragmentsList: Array, + stepexecutionresult?: ProtoStepExecutionResult.AsObject, + prehookmessagesList: Array, + posthookmessagesList: Array, + prehookscreenshotsList: Array, + posthookscreenshotsList: Array, + prehookscreenshotfilesList: Array, + posthookscreenshotfilesList: Array, + } +} + +export class ProtoConcept extends jspb.Message { + + hasConceptstep(): boolean; + clearConceptstep(): void; + getConceptstep(): ProtoStep | undefined; + setConceptstep(value?: ProtoStep): ProtoConcept; + + clearStepsList(): void; + getStepsList(): Array; + setStepsList(value: Array): ProtoConcept; + addSteps(value?: ProtoItem, index?: number): ProtoItem; + + + hasConceptexecutionresult(): boolean; + clearConceptexecutionresult(): void; + getConceptexecutionresult(): ProtoStepExecutionResult | undefined; + setConceptexecutionresult(value?: ProtoStepExecutionResult): ProtoConcept; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoConcept.AsObject; + static toObject(includeInstance: boolean, msg: ProtoConcept): ProtoConcept.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoConcept, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoConcept; + static deserializeBinaryFromReader(message: ProtoConcept, reader: jspb.BinaryReader): ProtoConcept; +} + +export namespace ProtoConcept { + export type AsObject = { + conceptstep?: ProtoStep.AsObject, + stepsList: Array, + conceptexecutionresult?: ProtoStepExecutionResult.AsObject, + } +} + +export class ProtoTags extends jspb.Message { + clearTagsList(): void; + getTagsList(): Array; + setTagsList(value: Array): ProtoTags; + addTags(value: string, index?: number): string; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoTags.AsObject; + static toObject(includeInstance: boolean, msg: ProtoTags): ProtoTags.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoTags, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoTags; + static deserializeBinaryFromReader(message: ProtoTags, reader: jspb.BinaryReader): ProtoTags; +} + +export namespace ProtoTags { + export type AsObject = { + tagsList: Array, + } +} + +export class Fragment extends jspb.Message { + getFragmenttype(): Fragment.FragmentType; + setFragmenttype(value: Fragment.FragmentType): Fragment; + + getText(): string; + setText(value: string): Fragment; + + + hasParameter(): boolean; + clearParameter(): void; + getParameter(): Parameter | undefined; + setParameter(value?: Parameter): Fragment; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Fragment.AsObject; + static toObject(includeInstance: boolean, msg: Fragment): Fragment.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Fragment, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Fragment; + static deserializeBinaryFromReader(message: Fragment, reader: jspb.BinaryReader): Fragment; +} + +export namespace Fragment { + export type AsObject = { + fragmenttype: Fragment.FragmentType, + text: string, + parameter?: Parameter.AsObject, + } + + export enum FragmentType { + TEXT = 0, + PARAMETER = 1, + } + +} + +export class Parameter extends jspb.Message { + getParametertype(): Parameter.ParameterType; + setParametertype(value: Parameter.ParameterType): Parameter; + + getValue(): string; + setValue(value: string): Parameter; + + getName(): string; + setName(value: string): Parameter; + + + hasTable(): boolean; + clearTable(): void; + getTable(): ProtoTable | undefined; + setTable(value?: ProtoTable): Parameter; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Parameter.AsObject; + static toObject(includeInstance: boolean, msg: Parameter): Parameter.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Parameter, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Parameter; + static deserializeBinaryFromReader(message: Parameter, reader: jspb.BinaryReader): Parameter; +} + +export namespace Parameter { + export type AsObject = { + parametertype: Parameter.ParameterType, + value: string, + name: string, + table?: ProtoTable.AsObject, + } + + export enum ParameterType { + STATIC = 0, + DYNAMIC = 1, + SPECIAL_STRING = 2, + SPECIAL_TABLE = 3, + TABLE = 4, + } + +} + +export class ProtoComment extends jspb.Message { + getText(): string; + setText(value: string): ProtoComment; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoComment.AsObject; + static toObject(includeInstance: boolean, msg: ProtoComment): ProtoComment.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoComment, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoComment; + static deserializeBinaryFromReader(message: ProtoComment, reader: jspb.BinaryReader): ProtoComment; +} + +export namespace ProtoComment { + export type AsObject = { + text: string, + } +} + +export class ProtoTable extends jspb.Message { + + hasHeaders(): boolean; + clearHeaders(): void; + getHeaders(): ProtoTableRow | undefined; + setHeaders(value?: ProtoTableRow): ProtoTable; + + clearRowsList(): void; + getRowsList(): Array; + setRowsList(value: Array): ProtoTable; + addRows(value?: ProtoTableRow, index?: number): ProtoTableRow; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoTable.AsObject; + static toObject(includeInstance: boolean, msg: ProtoTable): ProtoTable.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoTable, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoTable; + static deserializeBinaryFromReader(message: ProtoTable, reader: jspb.BinaryReader): ProtoTable; +} + +export namespace ProtoTable { + export type AsObject = { + headers?: ProtoTableRow.AsObject, + rowsList: Array, + } +} + +export class ProtoTableRow extends jspb.Message { + clearCellsList(): void; + getCellsList(): Array; + setCellsList(value: Array): ProtoTableRow; + addCells(value: string, index?: number): string; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoTableRow.AsObject; + static toObject(includeInstance: boolean, msg: ProtoTableRow): ProtoTableRow.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoTableRow, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoTableRow; + static deserializeBinaryFromReader(message: ProtoTableRow, reader: jspb.BinaryReader): ProtoTableRow; +} + +export namespace ProtoTableRow { + export type AsObject = { + cellsList: Array, + } +} + +export class ProtoStepExecutionResult extends jspb.Message { + + hasExecutionresult(): boolean; + clearExecutionresult(): void; + getExecutionresult(): ProtoExecutionResult | undefined; + setExecutionresult(value?: ProtoExecutionResult): ProtoStepExecutionResult; + + + hasPrehookfailure(): boolean; + clearPrehookfailure(): void; + getPrehookfailure(): ProtoHookFailure | undefined; + setPrehookfailure(value?: ProtoHookFailure): ProtoStepExecutionResult; + + + hasPosthookfailure(): boolean; + clearPosthookfailure(): void; + getPosthookfailure(): ProtoHookFailure | undefined; + setPosthookfailure(value?: ProtoHookFailure): ProtoStepExecutionResult; + + getSkipped(): boolean; + setSkipped(value: boolean): ProtoStepExecutionResult; + + getSkippedreason(): string; + setSkippedreason(value: string): ProtoStepExecutionResult; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoStepExecutionResult.AsObject; + static toObject(includeInstance: boolean, msg: ProtoStepExecutionResult): ProtoStepExecutionResult.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoStepExecutionResult, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoStepExecutionResult; + static deserializeBinaryFromReader(message: ProtoStepExecutionResult, reader: jspb.BinaryReader): ProtoStepExecutionResult; +} + +export namespace ProtoStepExecutionResult { + export type AsObject = { + executionresult?: ProtoExecutionResult.AsObject, + prehookfailure?: ProtoHookFailure.AsObject, + posthookfailure?: ProtoHookFailure.AsObject, + skipped: boolean, + skippedreason: string, + } +} + +export class ProtoExecutionResult extends jspb.Message { + getFailed(): boolean; + setFailed(value: boolean): ProtoExecutionResult; + + getRecoverableerror(): boolean; + setRecoverableerror(value: boolean): ProtoExecutionResult; + + getErrormessage(): string; + setErrormessage(value: string): ProtoExecutionResult; + + getStacktrace(): string; + setStacktrace(value: string): ProtoExecutionResult; + + getScreenshot(): Uint8Array | string; + getScreenshot_asU8(): Uint8Array; + getScreenshot_asB64(): string; + setScreenshot(value: Uint8Array | string): ProtoExecutionResult; + + getExecutiontime(): number; + setExecutiontime(value: number): ProtoExecutionResult; + + clearMessageList(): void; + getMessageList(): Array; + setMessageList(value: Array): ProtoExecutionResult; + addMessage(value: string, index?: number): string; + + getErrortype(): ProtoExecutionResult.ErrorType; + setErrortype(value: ProtoExecutionResult.ErrorType): ProtoExecutionResult; + + getFailurescreenshot(): Uint8Array | string; + getFailurescreenshot_asU8(): Uint8Array; + getFailurescreenshot_asB64(): string; + setFailurescreenshot(value: Uint8Array | string): ProtoExecutionResult; + + clearScreenshotsList(): void; + getScreenshotsList(): Array; + getScreenshotsList_asU8(): Array; + getScreenshotsList_asB64(): Array; + setScreenshotsList(value: Array): ProtoExecutionResult; + addScreenshots(value: Uint8Array | string, index?: number): Uint8Array | string; + + getFailurescreenshotfile(): string; + setFailurescreenshotfile(value: string): ProtoExecutionResult; + + clearScreenshotfilesList(): void; + getScreenshotfilesList(): Array; + setScreenshotfilesList(value: Array): ProtoExecutionResult; + addScreenshotfiles(value: string, index?: number): string; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoExecutionResult.AsObject; + static toObject(includeInstance: boolean, msg: ProtoExecutionResult): ProtoExecutionResult.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoExecutionResult, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoExecutionResult; + static deserializeBinaryFromReader(message: ProtoExecutionResult, reader: jspb.BinaryReader): ProtoExecutionResult; +} + +export namespace ProtoExecutionResult { + export type AsObject = { + failed: boolean, + recoverableerror: boolean, + errormessage: string, + stacktrace: string, + screenshot: Uint8Array | string, + executiontime: number, + messageList: Array, + errortype: ProtoExecutionResult.ErrorType, + failurescreenshot: Uint8Array | string, + screenshotsList: Array, + failurescreenshotfile: string, + screenshotfilesList: Array, + } + + export enum ErrorType { + ASSERTION = 0, + VERIFICATION = 1, + } + +} + +export class ProtoHookFailure extends jspb.Message { + getStacktrace(): string; + setStacktrace(value: string): ProtoHookFailure; + + getErrormessage(): string; + setErrormessage(value: string): ProtoHookFailure; + + getScreenshot(): Uint8Array | string; + getScreenshot_asU8(): Uint8Array; + getScreenshot_asB64(): string; + setScreenshot(value: Uint8Array | string): ProtoHookFailure; + + getTablerowindex(): number; + setTablerowindex(value: number): ProtoHookFailure; + + getFailurescreenshot(): Uint8Array | string; + getFailurescreenshot_asU8(): Uint8Array; + getFailurescreenshot_asB64(): string; + setFailurescreenshot(value: Uint8Array | string): ProtoHookFailure; + + getFailurescreenshotfile(): string; + setFailurescreenshotfile(value: string): ProtoHookFailure; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoHookFailure.AsObject; + static toObject(includeInstance: boolean, msg: ProtoHookFailure): ProtoHookFailure.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoHookFailure, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoHookFailure; + static deserializeBinaryFromReader(message: ProtoHookFailure, reader: jspb.BinaryReader): ProtoHookFailure; +} + +export namespace ProtoHookFailure { + export type AsObject = { + stacktrace: string, + errormessage: string, + screenshot: Uint8Array | string, + tablerowindex: number, + failurescreenshot: Uint8Array | string, + failurescreenshotfile: string, + } +} + +export class ProtoSuiteResult extends jspb.Message { + clearSpecresultsList(): void; + getSpecresultsList(): Array; + setSpecresultsList(value: Array): ProtoSuiteResult; + addSpecresults(value?: ProtoSpecResult, index?: number): ProtoSpecResult; + + + hasPrehookfailure(): boolean; + clearPrehookfailure(): void; + getPrehookfailure(): ProtoHookFailure | undefined; + setPrehookfailure(value?: ProtoHookFailure): ProtoSuiteResult; + + + hasPosthookfailure(): boolean; + clearPosthookfailure(): void; + getPosthookfailure(): ProtoHookFailure | undefined; + setPosthookfailure(value?: ProtoHookFailure): ProtoSuiteResult; + + getFailed(): boolean; + setFailed(value: boolean): ProtoSuiteResult; + + getSpecsfailedcount(): number; + setSpecsfailedcount(value: number): ProtoSuiteResult; + + getExecutiontime(): number; + setExecutiontime(value: number): ProtoSuiteResult; + + getSuccessrate(): number; + setSuccessrate(value: number): ProtoSuiteResult; + + getEnvironment(): string; + setEnvironment(value: string): ProtoSuiteResult; + + getTags(): string; + setTags(value: string): ProtoSuiteResult; + + getProjectname(): string; + setProjectname(value: string): ProtoSuiteResult; + + getTimestamp(): string; + setTimestamp(value: string): ProtoSuiteResult; + + getSpecsskippedcount(): number; + setSpecsskippedcount(value: number): ProtoSuiteResult; + + clearPrehookmessagesList(): void; + getPrehookmessagesList(): Array; + setPrehookmessagesList(value: Array): ProtoSuiteResult; + addPrehookmessages(value: string, index?: number): string; + + clearPosthookmessagesList(): void; + getPosthookmessagesList(): Array; + setPosthookmessagesList(value: Array): ProtoSuiteResult; + addPosthookmessages(value: string, index?: number): string; + + clearPrehookmessageList(): void; + getPrehookmessageList(): Array; + setPrehookmessageList(value: Array): ProtoSuiteResult; + addPrehookmessage(value: string, index?: number): string; + + clearPosthookmessageList(): void; + getPosthookmessageList(): Array; + setPosthookmessageList(value: Array): ProtoSuiteResult; + addPosthookmessage(value: string, index?: number): string; + + clearPrehookscreenshotsList(): void; + getPrehookscreenshotsList(): Array; + getPrehookscreenshotsList_asU8(): Array; + getPrehookscreenshotsList_asB64(): Array; + setPrehookscreenshotsList(value: Array): ProtoSuiteResult; + addPrehookscreenshots(value: Uint8Array | string, index?: number): Uint8Array | string; + + clearPosthookscreenshotsList(): void; + getPosthookscreenshotsList(): Array; + getPosthookscreenshotsList_asU8(): Array; + getPosthookscreenshotsList_asB64(): Array; + setPosthookscreenshotsList(value: Array): ProtoSuiteResult; + addPosthookscreenshots(value: Uint8Array | string, index?: number): Uint8Array | string; + + getChunked(): boolean; + setChunked(value: boolean): ProtoSuiteResult; + + getChunksize(): number; + setChunksize(value: number): ProtoSuiteResult; + + clearPrehookscreenshotfilesList(): void; + getPrehookscreenshotfilesList(): Array; + setPrehookscreenshotfilesList(value: Array): ProtoSuiteResult; + addPrehookscreenshotfiles(value: string, index?: number): string; + + clearPosthookscreenshotfilesList(): void; + getPosthookscreenshotfilesList(): Array; + setPosthookscreenshotfilesList(value: Array): ProtoSuiteResult; + addPosthookscreenshotfiles(value: string, index?: number): string; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoSuiteResult.AsObject; + static toObject(includeInstance: boolean, msg: ProtoSuiteResult): ProtoSuiteResult.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoSuiteResult, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoSuiteResult; + static deserializeBinaryFromReader(message: ProtoSuiteResult, reader: jspb.BinaryReader): ProtoSuiteResult; +} + +export namespace ProtoSuiteResult { + export type AsObject = { + specresultsList: Array, + prehookfailure?: ProtoHookFailure.AsObject, + posthookfailure?: ProtoHookFailure.AsObject, + failed: boolean, + specsfailedcount: number, + executiontime: number, + successrate: number, + environment: string, + tags: string, + projectname: string, + timestamp: string, + specsskippedcount: number, + prehookmessagesList: Array, + posthookmessagesList: Array, + prehookmessageList: Array, + posthookmessageList: Array, + prehookscreenshotsList: Array, + posthookscreenshotsList: Array, + chunked: boolean, + chunksize: number, + prehookscreenshotfilesList: Array, + posthookscreenshotfilesList: Array, + } +} + +export class ProtoSpecResult extends jspb.Message { + + hasProtospec(): boolean; + clearProtospec(): void; + getProtospec(): ProtoSpec | undefined; + setProtospec(value?: ProtoSpec): ProtoSpecResult; + + getScenariocount(): number; + setScenariocount(value: number): ProtoSpecResult; + + getScenariofailedcount(): number; + setScenariofailedcount(value: number): ProtoSpecResult; + + getFailed(): boolean; + setFailed(value: boolean): ProtoSpecResult; + + clearFaileddatatablerowsList(): void; + getFaileddatatablerowsList(): Array; + setFaileddatatablerowsList(value: Array): ProtoSpecResult; + addFaileddatatablerows(value: number, index?: number): number; + + getExecutiontime(): number; + setExecutiontime(value: number): ProtoSpecResult; + + getSkipped(): boolean; + setSkipped(value: boolean): ProtoSpecResult; + + getScenarioskippedcount(): number; + setScenarioskippedcount(value: number): ProtoSpecResult; + + clearSkippeddatatablerowsList(): void; + getSkippeddatatablerowsList(): Array; + setSkippeddatatablerowsList(value: Array): ProtoSpecResult; + addSkippeddatatablerows(value: number, index?: number): number; + + clearErrorsList(): void; + getErrorsList(): Array; + setErrorsList(value: Array): ProtoSpecResult; + addErrors(value?: Error, index?: number): Error; + + getTimestamp(): string; + setTimestamp(value: string): ProtoSpecResult; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoSpecResult.AsObject; + static toObject(includeInstance: boolean, msg: ProtoSpecResult): ProtoSpecResult.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoSpecResult, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoSpecResult; + static deserializeBinaryFromReader(message: ProtoSpecResult, reader: jspb.BinaryReader): ProtoSpecResult; +} + +export namespace ProtoSpecResult { + export type AsObject = { + protospec?: ProtoSpec.AsObject, + scenariocount: number, + scenariofailedcount: number, + failed: boolean, + faileddatatablerowsList: Array, + executiontime: number, + skipped: boolean, + scenarioskippedcount: number, + skippeddatatablerowsList: Array, + errorsList: Array, + timestamp: string, + } +} + +export class ProtoScenarioResult extends jspb.Message { + + hasProtoitem(): boolean; + clearProtoitem(): void; + getProtoitem(): ProtoItem | undefined; + setProtoitem(value?: ProtoItem): ProtoScenarioResult; + + getExecutiontime(): number; + setExecutiontime(value: number): ProtoScenarioResult; + + getTimestamp(): string; + setTimestamp(value: string): ProtoScenarioResult; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoScenarioResult.AsObject; + static toObject(includeInstance: boolean, msg: ProtoScenarioResult): ProtoScenarioResult.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoScenarioResult, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoScenarioResult; + static deserializeBinaryFromReader(message: ProtoScenarioResult, reader: jspb.BinaryReader): ProtoScenarioResult; +} + +export namespace ProtoScenarioResult { + export type AsObject = { + protoitem?: ProtoItem.AsObject, + executiontime: number, + timestamp: string, + } +} + +export class ProtoStepResult extends jspb.Message { + + hasProtoitem(): boolean; + clearProtoitem(): void; + getProtoitem(): ProtoItem | undefined; + setProtoitem(value?: ProtoItem): ProtoStepResult; + + getExecutiontime(): number; + setExecutiontime(value: number): ProtoStepResult; + + getTimestamp(): string; + setTimestamp(value: string): ProtoStepResult; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoStepResult.AsObject; + static toObject(includeInstance: boolean, msg: ProtoStepResult): ProtoStepResult.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoStepResult, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoStepResult; + static deserializeBinaryFromReader(message: ProtoStepResult, reader: jspb.BinaryReader): ProtoStepResult; +} + +export namespace ProtoStepResult { + export type AsObject = { + protoitem?: ProtoItem.AsObject, + executiontime: number, + timestamp: string, + } +} + +export class Error extends jspb.Message { + getType(): Error.ErrorType; + setType(value: Error.ErrorType): Error; + + getFilename(): string; + setFilename(value: string): Error; + + getLinenumber(): number; + setLinenumber(value: number): Error; + + getMessage(): string; + setMessage(value: string): Error; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Error.AsObject; + static toObject(includeInstance: boolean, msg: Error): Error.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Error, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Error; + static deserializeBinaryFromReader(message: Error, reader: jspb.BinaryReader): Error; +} + +export namespace Error { + export type AsObject = { + type: Error.ErrorType, + filename: string, + linenumber: number, + message: string, + } + + export enum ErrorType { + PARSE_ERROR = 0, + VALIDATION_ERROR = 1, + } + +} + +export class ProtoStepValue extends jspb.Message { + getStepvalue(): string; + setStepvalue(value: string): ProtoStepValue; + + getParameterizedstepvalue(): string; + setParameterizedstepvalue(value: string): ProtoStepValue; + + clearParametersList(): void; + getParametersList(): Array; + setParametersList(value: Array): ProtoStepValue; + addParameters(value: string, index?: number): string; + + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtoStepValue.AsObject; + static toObject(includeInstance: boolean, msg: ProtoStepValue): ProtoStepValue.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProtoStepValue, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtoStepValue; + static deserializeBinaryFromReader(message: ProtoStepValue, reader: jspb.BinaryReader): ProtoStepValue; +} + +export namespace ProtoStepValue { + export type AsObject = { + stepvalue: string, + parameterizedstepvalue: string, + parametersList: Array, + } +} + +export enum ExecutionStatus { + NOTEXECUTED = 0, + PASSED = 1, + FAILED = 2, + SKIPPED = 3, +} diff --git a/src/gen/spec_pb.js b/src/gen/spec_pb.js new file mode 100644 index 0000000..2e5d7c8 --- /dev/null +++ b/src/gen/spec_pb.js @@ -0,0 +1,9341 @@ +// source: spec.proto +/** + * @fileoverview + * @enhanceable + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +goog.exportSymbol('proto.gauge.messages.Error', null, global); +goog.exportSymbol('proto.gauge.messages.Error.ErrorType', null, global); +goog.exportSymbol('proto.gauge.messages.ExecutionStatus', null, global); +goog.exportSymbol('proto.gauge.messages.Fragment', null, global); +goog.exportSymbol('proto.gauge.messages.Fragment.FragmentType', null, global); +goog.exportSymbol('proto.gauge.messages.Parameter', null, global); +goog.exportSymbol('proto.gauge.messages.Parameter.ParameterType', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoComment', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoConcept', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoExecutionResult', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoExecutionResult.ErrorType', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoHookFailure', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoItem', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoItem.ItemType', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoScenario', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoScenarioResult', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoSpec', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoSpecResult', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoStep', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoStepExecutionResult', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoStepResult', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoStepValue', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoSuiteResult', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoTable', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoTableDrivenScenario', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoTableRow', null, global); +goog.exportSymbol('proto.gauge.messages.ProtoTags', null, global); +goog.exportSymbol('proto.gauge.messages.Span', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoSpec = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoSpec.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ProtoSpec, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoSpec.displayName = 'proto.gauge.messages.ProtoSpec'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoItem = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ProtoItem, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoItem.displayName = 'proto.gauge.messages.ProtoItem'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoScenario = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoScenario.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ProtoScenario, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoScenario.displayName = 'proto.gauge.messages.ProtoScenario'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.Span = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.Span, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.Span.displayName = 'proto.gauge.messages.Span'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoTableDrivenScenario = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ProtoTableDrivenScenario, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoTableDrivenScenario.displayName = 'proto.gauge.messages.ProtoTableDrivenScenario'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoStep = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoStep.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ProtoStep, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoStep.displayName = 'proto.gauge.messages.ProtoStep'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoConcept = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoConcept.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ProtoConcept, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoConcept.displayName = 'proto.gauge.messages.ProtoConcept'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoTags = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoTags.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ProtoTags, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoTags.displayName = 'proto.gauge.messages.ProtoTags'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.Fragment = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.Fragment, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.Fragment.displayName = 'proto.gauge.messages.Fragment'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.Parameter = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.Parameter, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.Parameter.displayName = 'proto.gauge.messages.Parameter'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoComment = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ProtoComment, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoComment.displayName = 'proto.gauge.messages.ProtoComment'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoTable = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoTable.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ProtoTable, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoTable.displayName = 'proto.gauge.messages.ProtoTable'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoTableRow = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoTableRow.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ProtoTableRow, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoTableRow.displayName = 'proto.gauge.messages.ProtoTableRow'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoStepExecutionResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ProtoStepExecutionResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoStepExecutionResult.displayName = 'proto.gauge.messages.ProtoStepExecutionResult'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoExecutionResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoExecutionResult.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ProtoExecutionResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoExecutionResult.displayName = 'proto.gauge.messages.ProtoExecutionResult'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoHookFailure = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ProtoHookFailure, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoHookFailure.displayName = 'proto.gauge.messages.ProtoHookFailure'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoSuiteResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoSuiteResult.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ProtoSuiteResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoSuiteResult.displayName = 'proto.gauge.messages.ProtoSuiteResult'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoSpecResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoSpecResult.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ProtoSpecResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoSpecResult.displayName = 'proto.gauge.messages.ProtoSpecResult'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoScenarioResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ProtoScenarioResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoScenarioResult.displayName = 'proto.gauge.messages.ProtoScenarioResult'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoStepResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.ProtoStepResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoStepResult.displayName = 'proto.gauge.messages.ProtoStepResult'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.Error = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gauge.messages.Error, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.Error.displayName = 'proto.gauge.messages.Error'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gauge.messages.ProtoStepValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoStepValue.repeatedFields_, null); +}; +goog.inherits(proto.gauge.messages.ProtoStepValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gauge.messages.ProtoStepValue.displayName = 'proto.gauge.messages.ProtoStepValue'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ProtoSpec.repeatedFields_ = [2,4,5,7,8,9,10,11,12,13,15,16]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoSpec.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoSpec.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoSpec} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoSpec.toObject = function(includeInstance, msg) { + var f, obj = { + specheading: jspb.Message.getFieldWithDefault(msg, 1, ""), + itemsList: jspb.Message.toObjectList(msg.getItemsList(), + proto.gauge.messages.ProtoItem.toObject, includeInstance), + istabledriven: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + prehookfailuresList: jspb.Message.toObjectList(msg.getPrehookfailuresList(), + proto.gauge.messages.ProtoHookFailure.toObject, includeInstance), + posthookfailuresList: jspb.Message.toObjectList(msg.getPosthookfailuresList(), + proto.gauge.messages.ProtoHookFailure.toObject, includeInstance), + filename: jspb.Message.getFieldWithDefault(msg, 6, ""), + tagsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, + prehookmessagesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f, + posthookmessagesList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, + prehookmessageList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f, + posthookmessageList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f, + prehookscreenshotsList: msg.getPrehookscreenshotsList_asB64(), + posthookscreenshotsList: msg.getPosthookscreenshotsList_asB64(), + itemcount: jspb.Message.getFieldWithDefault(msg, 14, 0), + prehookscreenshotfilesList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f, + posthookscreenshotfilesList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoSpec} + */ +proto.gauge.messages.ProtoSpec.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoSpec; + return proto.gauge.messages.ProtoSpec.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoSpec} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoSpec} + */ +proto.gauge.messages.ProtoSpec.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSpecheading(value); + break; + case 2: + var value = new proto.gauge.messages.ProtoItem; + reader.readMessage(value,proto.gauge.messages.ProtoItem.deserializeBinaryFromReader); + msg.addItems(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIstabledriven(value); + break; + case 4: + var value = new proto.gauge.messages.ProtoHookFailure; + reader.readMessage(value,proto.gauge.messages.ProtoHookFailure.deserializeBinaryFromReader); + msg.addPrehookfailures(value); + break; + case 5: + var value = new proto.gauge.messages.ProtoHookFailure; + reader.readMessage(value,proto.gauge.messages.ProtoHookFailure.deserializeBinaryFromReader); + msg.addPosthookfailures(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setFilename(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.addTags(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.addPrehookmessages(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.addPosthookmessages(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.addPrehookmessage(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.addPosthookmessage(value); + break; + case 12: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addPrehookscreenshots(value); + break; + case 13: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addPosthookscreenshots(value); + break; + case 14: + var value = /** @type {number} */ (reader.readInt64()); + msg.setItemcount(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.addPrehookscreenshotfiles(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.addPosthookscreenshotfiles(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoSpec.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoSpec.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoSpec} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoSpec.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSpecheading(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getItemsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.gauge.messages.ProtoItem.serializeBinaryToWriter + ); + } + f = message.getIstabledriven(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getPrehookfailuresList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto.gauge.messages.ProtoHookFailure.serializeBinaryToWriter + ); + } + f = message.getPosthookfailuresList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + proto.gauge.messages.ProtoHookFailure.serializeBinaryToWriter + ); + } + f = message.getFilename(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getTagsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 7, + f + ); + } + f = message.getPrehookmessagesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 8, + f + ); + } + f = message.getPosthookmessagesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 9, + f + ); + } + f = message.getPrehookmessageList(); + if (f.length > 0) { + writer.writeRepeatedString( + 10, + f + ); + } + f = message.getPosthookmessageList(); + if (f.length > 0) { + writer.writeRepeatedString( + 11, + f + ); + } + f = message.getPrehookscreenshotsList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 12, + f + ); + } + f = message.getPosthookscreenshotsList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 13, + f + ); + } + f = message.getItemcount(); + if (f !== 0) { + writer.writeInt64( + 14, + f + ); + } + f = message.getPrehookscreenshotfilesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 15, + f + ); + } + f = message.getPosthookscreenshotfilesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 16, + f + ); + } +}; + + +/** + * optional string specHeading = 1; + * @return {string} + */ +proto.gauge.messages.ProtoSpec.prototype.getSpecheading = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.setSpecheading = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated ProtoItem items = 2; + * @return {!Array} + */ +proto.gauge.messages.ProtoSpec.prototype.getItemsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.ProtoItem, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSpec} returns this +*/ +proto.gauge.messages.ProtoSpec.prototype.setItemsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.gauge.messages.ProtoItem=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoItem} + */ +proto.gauge.messages.ProtoSpec.prototype.addItems = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gauge.messages.ProtoItem, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.clearItemsList = function() { + return this.setItemsList([]); +}; + + +/** + * optional bool isTableDriven = 3; + * @return {boolean} + */ +proto.gauge.messages.ProtoSpec.prototype.getIstabledriven = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.setIstabledriven = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * repeated ProtoHookFailure preHookFailures = 4; + * @return {!Array} + */ +proto.gauge.messages.ProtoSpec.prototype.getPrehookfailuresList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.ProtoHookFailure, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSpec} returns this +*/ +proto.gauge.messages.ProtoSpec.prototype.setPrehookfailuresList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.gauge.messages.ProtoHookFailure=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoHookFailure} + */ +proto.gauge.messages.ProtoSpec.prototype.addPrehookfailures = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.gauge.messages.ProtoHookFailure, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.clearPrehookfailuresList = function() { + return this.setPrehookfailuresList([]); +}; + + +/** + * repeated ProtoHookFailure postHookFailures = 5; + * @return {!Array} + */ +proto.gauge.messages.ProtoSpec.prototype.getPosthookfailuresList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.ProtoHookFailure, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSpec} returns this +*/ +proto.gauge.messages.ProtoSpec.prototype.setPosthookfailuresList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.gauge.messages.ProtoHookFailure=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoHookFailure} + */ +proto.gauge.messages.ProtoSpec.prototype.addPosthookfailures = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gauge.messages.ProtoHookFailure, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.clearPosthookfailuresList = function() { + return this.setPosthookfailuresList([]); +}; + + +/** + * optional string fileName = 6; + * @return {string} + */ +proto.gauge.messages.ProtoSpec.prototype.getFilename = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.setFilename = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * repeated string tags = 7; + * @return {!Array} + */ +proto.gauge.messages.ProtoSpec.prototype.getTagsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.setTagsList = function(value) { + return jspb.Message.setField(this, 7, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.addTags = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.clearTagsList = function() { + return this.setTagsList([]); +}; + + +/** + * repeated string preHookMessages = 8; + * @return {!Array} + */ +proto.gauge.messages.ProtoSpec.prototype.getPrehookmessagesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 8)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.setPrehookmessagesList = function(value) { + return jspb.Message.setField(this, 8, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.addPrehookmessages = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 8, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.clearPrehookmessagesList = function() { + return this.setPrehookmessagesList([]); +}; + + +/** + * repeated string postHookMessages = 9; + * @return {!Array} + */ +proto.gauge.messages.ProtoSpec.prototype.getPosthookmessagesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.setPosthookmessagesList = function(value) { + return jspb.Message.setField(this, 9, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.addPosthookmessages = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 9, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.clearPosthookmessagesList = function() { + return this.setPosthookmessagesList([]); +}; + + +/** + * repeated string preHookMessage = 10; + * @return {!Array} + */ +proto.gauge.messages.ProtoSpec.prototype.getPrehookmessageList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.setPrehookmessageList = function(value) { + return jspb.Message.setField(this, 10, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.addPrehookmessage = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 10, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.clearPrehookmessageList = function() { + return this.setPrehookmessageList([]); +}; + + +/** + * repeated string postHookMessage = 11; + * @return {!Array} + */ +proto.gauge.messages.ProtoSpec.prototype.getPosthookmessageList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 11)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.setPosthookmessageList = function(value) { + return jspb.Message.setField(this, 11, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.addPosthookmessage = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 11, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.clearPosthookmessageList = function() { + return this.setPosthookmessageList([]); +}; + + +/** + * repeated bytes preHookScreenshots = 12; + * @return {!(Array|Array)} + */ +proto.gauge.messages.ProtoSpec.prototype.getPrehookscreenshotsList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 12)); +}; + + +/** + * repeated bytes preHookScreenshots = 12; + * This is a type-conversion wrapper around `getPrehookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoSpec.prototype.getPrehookscreenshotsList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getPrehookscreenshotsList())); +}; + + +/** + * repeated bytes preHookScreenshots = 12; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPrehookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoSpec.prototype.getPrehookscreenshotsList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getPrehookscreenshotsList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.setPrehookscreenshotsList = function(value) { + return jspb.Message.setField(this, 12, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.addPrehookscreenshots = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 12, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.clearPrehookscreenshotsList = function() { + return this.setPrehookscreenshotsList([]); +}; + + +/** + * repeated bytes postHookScreenshots = 13; + * @return {!(Array|Array)} + */ +proto.gauge.messages.ProtoSpec.prototype.getPosthookscreenshotsList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 13)); +}; + + +/** + * repeated bytes postHookScreenshots = 13; + * This is a type-conversion wrapper around `getPosthookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoSpec.prototype.getPosthookscreenshotsList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getPosthookscreenshotsList())); +}; + + +/** + * repeated bytes postHookScreenshots = 13; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPosthookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoSpec.prototype.getPosthookscreenshotsList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getPosthookscreenshotsList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.setPosthookscreenshotsList = function(value) { + return jspb.Message.setField(this, 13, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.addPosthookscreenshots = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 13, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.clearPosthookscreenshotsList = function() { + return this.setPosthookscreenshotsList([]); +}; + + +/** + * optional int64 itemCount = 14; + * @return {number} + */ +proto.gauge.messages.ProtoSpec.prototype.getItemcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.setItemcount = function(value) { + return jspb.Message.setProto3IntField(this, 14, value); +}; + + +/** + * repeated string preHookScreenshotFiles = 15; + * @return {!Array} + */ +proto.gauge.messages.ProtoSpec.prototype.getPrehookscreenshotfilesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 15)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.setPrehookscreenshotfilesList = function(value) { + return jspb.Message.setField(this, 15, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.addPrehookscreenshotfiles = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 15, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.clearPrehookscreenshotfilesList = function() { + return this.setPrehookscreenshotfilesList([]); +}; + + +/** + * repeated string postHookScreenshotFiles = 16; + * @return {!Array} + */ +proto.gauge.messages.ProtoSpec.prototype.getPosthookscreenshotfilesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 16)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.setPosthookscreenshotfilesList = function(value) { + return jspb.Message.setField(this, 16, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.addPosthookscreenshotfiles = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 16, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpec} returns this + */ +proto.gauge.messages.ProtoSpec.prototype.clearPosthookscreenshotfilesList = function() { + return this.setPosthookscreenshotfilesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoItem.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoItem.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoItem} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoItem.toObject = function(includeInstance, msg) { + var f, obj = { + itemtype: jspb.Message.getFieldWithDefault(msg, 1, 0), + step: (f = msg.getStep()) && proto.gauge.messages.ProtoStep.toObject(includeInstance, f), + concept: (f = msg.getConcept()) && proto.gauge.messages.ProtoConcept.toObject(includeInstance, f), + scenario: (f = msg.getScenario()) && proto.gauge.messages.ProtoScenario.toObject(includeInstance, f), + tabledrivenscenario: (f = msg.getTabledrivenscenario()) && proto.gauge.messages.ProtoTableDrivenScenario.toObject(includeInstance, f), + comment: (f = msg.getComment()) && proto.gauge.messages.ProtoComment.toObject(includeInstance, f), + table: (f = msg.getTable()) && proto.gauge.messages.ProtoTable.toObject(includeInstance, f), + tags: (f = msg.getTags()) && proto.gauge.messages.ProtoTags.toObject(includeInstance, f), + filename: jspb.Message.getFieldWithDefault(msg, 9, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoItem} + */ +proto.gauge.messages.ProtoItem.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoItem; + return proto.gauge.messages.ProtoItem.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoItem} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoItem} + */ +proto.gauge.messages.ProtoItem.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.gauge.messages.ProtoItem.ItemType} */ (reader.readEnum()); + msg.setItemtype(value); + break; + case 2: + var value = new proto.gauge.messages.ProtoStep; + reader.readMessage(value,proto.gauge.messages.ProtoStep.deserializeBinaryFromReader); + msg.setStep(value); + break; + case 3: + var value = new proto.gauge.messages.ProtoConcept; + reader.readMessage(value,proto.gauge.messages.ProtoConcept.deserializeBinaryFromReader); + msg.setConcept(value); + break; + case 4: + var value = new proto.gauge.messages.ProtoScenario; + reader.readMessage(value,proto.gauge.messages.ProtoScenario.deserializeBinaryFromReader); + msg.setScenario(value); + break; + case 5: + var value = new proto.gauge.messages.ProtoTableDrivenScenario; + reader.readMessage(value,proto.gauge.messages.ProtoTableDrivenScenario.deserializeBinaryFromReader); + msg.setTabledrivenscenario(value); + break; + case 6: + var value = new proto.gauge.messages.ProtoComment; + reader.readMessage(value,proto.gauge.messages.ProtoComment.deserializeBinaryFromReader); + msg.setComment(value); + break; + case 7: + var value = new proto.gauge.messages.ProtoTable; + reader.readMessage(value,proto.gauge.messages.ProtoTable.deserializeBinaryFromReader); + msg.setTable(value); + break; + case 8: + var value = new proto.gauge.messages.ProtoTags; + reader.readMessage(value,proto.gauge.messages.ProtoTags.deserializeBinaryFromReader); + msg.setTags(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setFilename(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoItem.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoItem.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoItem} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoItem.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getItemtype(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getStep(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.gauge.messages.ProtoStep.serializeBinaryToWriter + ); + } + f = message.getConcept(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.gauge.messages.ProtoConcept.serializeBinaryToWriter + ); + } + f = message.getScenario(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.gauge.messages.ProtoScenario.serializeBinaryToWriter + ); + } + f = message.getTabledrivenscenario(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.gauge.messages.ProtoTableDrivenScenario.serializeBinaryToWriter + ); + } + f = message.getComment(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.gauge.messages.ProtoComment.serializeBinaryToWriter + ); + } + f = message.getTable(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.gauge.messages.ProtoTable.serializeBinaryToWriter + ); + } + f = message.getTags(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.gauge.messages.ProtoTags.serializeBinaryToWriter + ); + } + f = message.getFilename(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.gauge.messages.ProtoItem.ItemType = { + STEP: 0, + COMMENT: 1, + CONCEPT: 2, + SCENARIO: 3, + TABLEDRIVENSCENARIO: 4, + TABLE: 5, + TAGS: 6 +}; + +/** + * optional ItemType itemType = 1; + * @return {!proto.gauge.messages.ProtoItem.ItemType} + */ +proto.gauge.messages.ProtoItem.prototype.getItemtype = function() { + return /** @type {!proto.gauge.messages.ProtoItem.ItemType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.gauge.messages.ProtoItem.ItemType} value + * @return {!proto.gauge.messages.ProtoItem} returns this + */ +proto.gauge.messages.ProtoItem.prototype.setItemtype = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional ProtoStep step = 2; + * @return {?proto.gauge.messages.ProtoStep} + */ +proto.gauge.messages.ProtoItem.prototype.getStep = function() { + return /** @type{?proto.gauge.messages.ProtoStep} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoStep, 2)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoStep|undefined} value + * @return {!proto.gauge.messages.ProtoItem} returns this +*/ +proto.gauge.messages.ProtoItem.prototype.setStep = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoItem} returns this + */ +proto.gauge.messages.ProtoItem.prototype.clearStep = function() { + return this.setStep(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoItem.prototype.hasStep = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ProtoConcept concept = 3; + * @return {?proto.gauge.messages.ProtoConcept} + */ +proto.gauge.messages.ProtoItem.prototype.getConcept = function() { + return /** @type{?proto.gauge.messages.ProtoConcept} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoConcept, 3)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoConcept|undefined} value + * @return {!proto.gauge.messages.ProtoItem} returns this +*/ +proto.gauge.messages.ProtoItem.prototype.setConcept = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoItem} returns this + */ +proto.gauge.messages.ProtoItem.prototype.clearConcept = function() { + return this.setConcept(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoItem.prototype.hasConcept = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ProtoScenario scenario = 4; + * @return {?proto.gauge.messages.ProtoScenario} + */ +proto.gauge.messages.ProtoItem.prototype.getScenario = function() { + return /** @type{?proto.gauge.messages.ProtoScenario} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoScenario, 4)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoScenario|undefined} value + * @return {!proto.gauge.messages.ProtoItem} returns this +*/ +proto.gauge.messages.ProtoItem.prototype.setScenario = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoItem} returns this + */ +proto.gauge.messages.ProtoItem.prototype.clearScenario = function() { + return this.setScenario(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoItem.prototype.hasScenario = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional ProtoTableDrivenScenario tableDrivenScenario = 5; + * @return {?proto.gauge.messages.ProtoTableDrivenScenario} + */ +proto.gauge.messages.ProtoItem.prototype.getTabledrivenscenario = function() { + return /** @type{?proto.gauge.messages.ProtoTableDrivenScenario} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoTableDrivenScenario, 5)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoTableDrivenScenario|undefined} value + * @return {!proto.gauge.messages.ProtoItem} returns this +*/ +proto.gauge.messages.ProtoItem.prototype.setTabledrivenscenario = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoItem} returns this + */ +proto.gauge.messages.ProtoItem.prototype.clearTabledrivenscenario = function() { + return this.setTabledrivenscenario(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoItem.prototype.hasTabledrivenscenario = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional ProtoComment comment = 6; + * @return {?proto.gauge.messages.ProtoComment} + */ +proto.gauge.messages.ProtoItem.prototype.getComment = function() { + return /** @type{?proto.gauge.messages.ProtoComment} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoComment, 6)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoComment|undefined} value + * @return {!proto.gauge.messages.ProtoItem} returns this +*/ +proto.gauge.messages.ProtoItem.prototype.setComment = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoItem} returns this + */ +proto.gauge.messages.ProtoItem.prototype.clearComment = function() { + return this.setComment(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoItem.prototype.hasComment = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional ProtoTable table = 7; + * @return {?proto.gauge.messages.ProtoTable} + */ +proto.gauge.messages.ProtoItem.prototype.getTable = function() { + return /** @type{?proto.gauge.messages.ProtoTable} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoTable, 7)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoTable|undefined} value + * @return {!proto.gauge.messages.ProtoItem} returns this +*/ +proto.gauge.messages.ProtoItem.prototype.setTable = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoItem} returns this + */ +proto.gauge.messages.ProtoItem.prototype.clearTable = function() { + return this.setTable(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoItem.prototype.hasTable = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional ProtoTags tags = 8; + * @return {?proto.gauge.messages.ProtoTags} + */ +proto.gauge.messages.ProtoItem.prototype.getTags = function() { + return /** @type{?proto.gauge.messages.ProtoTags} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoTags, 8)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoTags|undefined} value + * @return {!proto.gauge.messages.ProtoItem} returns this +*/ +proto.gauge.messages.ProtoItem.prototype.setTags = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoItem} returns this + */ +proto.gauge.messages.ProtoItem.prototype.clearTags = function() { + return this.setTags(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoItem.prototype.hasTags = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional string fileName = 9; + * @return {string} + */ +proto.gauge.messages.ProtoItem.prototype.getFilename = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoItem} returns this + */ +proto.gauge.messages.ProtoItem.prototype.setFilename = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ProtoScenario.repeatedFields_ = [3,4,7,10,12,15,16,17,18,19,20,21,22]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoScenario.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoScenario.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoScenario} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoScenario.toObject = function(includeInstance, msg) { + var f, obj = { + scenarioheading: jspb.Message.getFieldWithDefault(msg, 1, ""), + failed: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + contextsList: jspb.Message.toObjectList(msg.getContextsList(), + proto.gauge.messages.ProtoItem.toObject, includeInstance), + scenarioitemsList: jspb.Message.toObjectList(msg.getScenarioitemsList(), + proto.gauge.messages.ProtoItem.toObject, includeInstance), + prehookfailure: (f = msg.getPrehookfailure()) && proto.gauge.messages.ProtoHookFailure.toObject(includeInstance, f), + posthookfailure: (f = msg.getPosthookfailure()) && proto.gauge.messages.ProtoHookFailure.toObject(includeInstance, f), + tagsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, + executiontime: jspb.Message.getFieldWithDefault(msg, 8, 0), + skipped: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + skiperrorsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f, + id: jspb.Message.getFieldWithDefault(msg, 11, ""), + teardownstepsList: jspb.Message.toObjectList(msg.getTeardownstepsList(), + proto.gauge.messages.ProtoItem.toObject, includeInstance), + span: (f = msg.getSpan()) && proto.gauge.messages.Span.toObject(includeInstance, f), + executionstatus: jspb.Message.getFieldWithDefault(msg, 14, 0), + prehookmessagesList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f, + posthookmessagesList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f, + prehookmessageList: (f = jspb.Message.getRepeatedField(msg, 17)) == null ? undefined : f, + posthookmessageList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f, + prehookscreenshotsList: msg.getPrehookscreenshotsList_asB64(), + posthookscreenshotsList: msg.getPosthookscreenshotsList_asB64(), + prehookscreenshotfilesList: (f = jspb.Message.getRepeatedField(msg, 21)) == null ? undefined : f, + posthookscreenshotfilesList: (f = jspb.Message.getRepeatedField(msg, 22)) == null ? undefined : f, + retriescount: jspb.Message.getFieldWithDefault(msg, 23, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoScenario} + */ +proto.gauge.messages.ProtoScenario.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoScenario; + return proto.gauge.messages.ProtoScenario.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoScenario} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoScenario} + */ +proto.gauge.messages.ProtoScenario.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setScenarioheading(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setFailed(value); + break; + case 3: + var value = new proto.gauge.messages.ProtoItem; + reader.readMessage(value,proto.gauge.messages.ProtoItem.deserializeBinaryFromReader); + msg.addContexts(value); + break; + case 4: + var value = new proto.gauge.messages.ProtoItem; + reader.readMessage(value,proto.gauge.messages.ProtoItem.deserializeBinaryFromReader); + msg.addScenarioitems(value); + break; + case 5: + var value = new proto.gauge.messages.ProtoHookFailure; + reader.readMessage(value,proto.gauge.messages.ProtoHookFailure.deserializeBinaryFromReader); + msg.setPrehookfailure(value); + break; + case 6: + var value = new proto.gauge.messages.ProtoHookFailure; + reader.readMessage(value,proto.gauge.messages.ProtoHookFailure.deserializeBinaryFromReader); + msg.setPosthookfailure(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.addTags(value); + break; + case 8: + var value = /** @type {number} */ (reader.readInt64()); + msg.setExecutiontime(value); + break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSkipped(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.addSkiperrors(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 12: + var value = new proto.gauge.messages.ProtoItem; + reader.readMessage(value,proto.gauge.messages.ProtoItem.deserializeBinaryFromReader); + msg.addTeardownsteps(value); + break; + case 13: + var value = new proto.gauge.messages.Span; + reader.readMessage(value,proto.gauge.messages.Span.deserializeBinaryFromReader); + msg.setSpan(value); + break; + case 14: + var value = /** @type {!proto.gauge.messages.ExecutionStatus} */ (reader.readEnum()); + msg.setExecutionstatus(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.addPrehookmessages(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.addPosthookmessages(value); + break; + case 17: + var value = /** @type {string} */ (reader.readString()); + msg.addPrehookmessage(value); + break; + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.addPosthookmessage(value); + break; + case 19: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addPrehookscreenshots(value); + break; + case 20: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addPosthookscreenshots(value); + break; + case 21: + var value = /** @type {string} */ (reader.readString()); + msg.addPrehookscreenshotfiles(value); + break; + case 22: + var value = /** @type {string} */ (reader.readString()); + msg.addPosthookscreenshotfiles(value); + break; + case 23: + var value = /** @type {number} */ (reader.readInt64()); + msg.setRetriescount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoScenario.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoScenario.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoScenario} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoScenario.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getScenarioheading(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getFailed(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getContextsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.gauge.messages.ProtoItem.serializeBinaryToWriter + ); + } + f = message.getScenarioitemsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto.gauge.messages.ProtoItem.serializeBinaryToWriter + ); + } + f = message.getPrehookfailure(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.gauge.messages.ProtoHookFailure.serializeBinaryToWriter + ); + } + f = message.getPosthookfailure(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.gauge.messages.ProtoHookFailure.serializeBinaryToWriter + ); + } + f = message.getTagsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 7, + f + ); + } + f = message.getExecutiontime(); + if (f !== 0) { + writer.writeInt64( + 8, + f + ); + } + f = message.getSkipped(); + if (f) { + writer.writeBool( + 9, + f + ); + } + f = message.getSkiperrorsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 10, + f + ); + } + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } + f = message.getTeardownstepsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 12, + f, + proto.gauge.messages.ProtoItem.serializeBinaryToWriter + ); + } + f = message.getSpan(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.gauge.messages.Span.serializeBinaryToWriter + ); + } + f = message.getExecutionstatus(); + if (f !== 0.0) { + writer.writeEnum( + 14, + f + ); + } + f = message.getPrehookmessagesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 15, + f + ); + } + f = message.getPosthookmessagesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 16, + f + ); + } + f = message.getPrehookmessageList(); + if (f.length > 0) { + writer.writeRepeatedString( + 17, + f + ); + } + f = message.getPosthookmessageList(); + if (f.length > 0) { + writer.writeRepeatedString( + 18, + f + ); + } + f = message.getPrehookscreenshotsList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 19, + f + ); + } + f = message.getPosthookscreenshotsList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 20, + f + ); + } + f = message.getPrehookscreenshotfilesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 21, + f + ); + } + f = message.getPosthookscreenshotfilesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 22, + f + ); + } + f = message.getRetriescount(); + if (f !== 0) { + writer.writeInt64( + 23, + f + ); + } +}; + + +/** + * optional string scenarioHeading = 1; + * @return {string} + */ +proto.gauge.messages.ProtoScenario.prototype.getScenarioheading = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setScenarioheading = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bool failed = 2; + * @return {boolean} + */ +proto.gauge.messages.ProtoScenario.prototype.getFailed = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setFailed = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * repeated ProtoItem contexts = 3; + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getContextsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.ProtoItem, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoScenario} returns this +*/ +proto.gauge.messages.ProtoScenario.prototype.setContextsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.gauge.messages.ProtoItem=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoItem} + */ +proto.gauge.messages.ProtoScenario.prototype.addContexts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gauge.messages.ProtoItem, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearContextsList = function() { + return this.setContextsList([]); +}; + + +/** + * repeated ProtoItem scenarioItems = 4; + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getScenarioitemsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.ProtoItem, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoScenario} returns this +*/ +proto.gauge.messages.ProtoScenario.prototype.setScenarioitemsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.gauge.messages.ProtoItem=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoItem} + */ +proto.gauge.messages.ProtoScenario.prototype.addScenarioitems = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.gauge.messages.ProtoItem, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearScenarioitemsList = function() { + return this.setScenarioitemsList([]); +}; + + +/** + * optional ProtoHookFailure preHookFailure = 5; + * @return {?proto.gauge.messages.ProtoHookFailure} + */ +proto.gauge.messages.ProtoScenario.prototype.getPrehookfailure = function() { + return /** @type{?proto.gauge.messages.ProtoHookFailure} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoHookFailure, 5)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoHookFailure|undefined} value + * @return {!proto.gauge.messages.ProtoScenario} returns this +*/ +proto.gauge.messages.ProtoScenario.prototype.setPrehookfailure = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearPrehookfailure = function() { + return this.setPrehookfailure(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoScenario.prototype.hasPrehookfailure = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional ProtoHookFailure postHookFailure = 6; + * @return {?proto.gauge.messages.ProtoHookFailure} + */ +proto.gauge.messages.ProtoScenario.prototype.getPosthookfailure = function() { + return /** @type{?proto.gauge.messages.ProtoHookFailure} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoHookFailure, 6)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoHookFailure|undefined} value + * @return {!proto.gauge.messages.ProtoScenario} returns this +*/ +proto.gauge.messages.ProtoScenario.prototype.setPosthookfailure = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearPosthookfailure = function() { + return this.setPosthookfailure(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoScenario.prototype.hasPosthookfailure = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * repeated string tags = 7; + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getTagsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setTagsList = function(value) { + return jspb.Message.setField(this, 7, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.addTags = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearTagsList = function() { + return this.setTagsList([]); +}; + + +/** + * optional int64 executionTime = 8; + * @return {number} + */ +proto.gauge.messages.ProtoScenario.prototype.getExecutiontime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setExecutiontime = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional bool skipped = 9; + * @return {boolean} + */ +proto.gauge.messages.ProtoScenario.prototype.getSkipped = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setSkipped = function(value) { + return jspb.Message.setProto3BooleanField(this, 9, value); +}; + + +/** + * repeated string skipErrors = 10; + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getSkiperrorsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setSkiperrorsList = function(value) { + return jspb.Message.setField(this, 10, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.addSkiperrors = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 10, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearSkiperrorsList = function() { + return this.setSkiperrorsList([]); +}; + + +/** + * optional string ID = 11; + * @return {string} + */ +proto.gauge.messages.ProtoScenario.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); +}; + + +/** + * repeated ProtoItem tearDownSteps = 12; + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getTeardownstepsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.ProtoItem, 12)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoScenario} returns this +*/ +proto.gauge.messages.ProtoScenario.prototype.setTeardownstepsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 12, value); +}; + + +/** + * @param {!proto.gauge.messages.ProtoItem=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoItem} + */ +proto.gauge.messages.ProtoScenario.prototype.addTeardownsteps = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.gauge.messages.ProtoItem, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearTeardownstepsList = function() { + return this.setTeardownstepsList([]); +}; + + +/** + * optional Span span = 13; + * @return {?proto.gauge.messages.Span} + */ +proto.gauge.messages.ProtoScenario.prototype.getSpan = function() { + return /** @type{?proto.gauge.messages.Span} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.Span, 13)); +}; + + +/** + * @param {?proto.gauge.messages.Span|undefined} value + * @return {!proto.gauge.messages.ProtoScenario} returns this +*/ +proto.gauge.messages.ProtoScenario.prototype.setSpan = function(value) { + return jspb.Message.setWrapperField(this, 13, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearSpan = function() { + return this.setSpan(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoScenario.prototype.hasSpan = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional ExecutionStatus executionStatus = 14; + * @return {!proto.gauge.messages.ExecutionStatus} + */ +proto.gauge.messages.ProtoScenario.prototype.getExecutionstatus = function() { + return /** @type {!proto.gauge.messages.ExecutionStatus} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); +}; + + +/** + * @param {!proto.gauge.messages.ExecutionStatus} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setExecutionstatus = function(value) { + return jspb.Message.setProto3EnumField(this, 14, value); +}; + + +/** + * repeated string preHookMessages = 15; + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getPrehookmessagesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 15)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setPrehookmessagesList = function(value) { + return jspb.Message.setField(this, 15, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.addPrehookmessages = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 15, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearPrehookmessagesList = function() { + return this.setPrehookmessagesList([]); +}; + + +/** + * repeated string postHookMessages = 16; + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getPosthookmessagesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 16)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setPosthookmessagesList = function(value) { + return jspb.Message.setField(this, 16, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.addPosthookmessages = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 16, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearPosthookmessagesList = function() { + return this.setPosthookmessagesList([]); +}; + + +/** + * repeated string preHookMessage = 17; + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getPrehookmessageList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 17)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setPrehookmessageList = function(value) { + return jspb.Message.setField(this, 17, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.addPrehookmessage = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 17, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearPrehookmessageList = function() { + return this.setPrehookmessageList([]); +}; + + +/** + * repeated string postHookMessage = 18; + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getPosthookmessageList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 18)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setPosthookmessageList = function(value) { + return jspb.Message.setField(this, 18, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.addPosthookmessage = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 18, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearPosthookmessageList = function() { + return this.setPosthookmessageList([]); +}; + + +/** + * repeated bytes preHookScreenshots = 19; + * @return {!(Array|Array)} + */ +proto.gauge.messages.ProtoScenario.prototype.getPrehookscreenshotsList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 19)); +}; + + +/** + * repeated bytes preHookScreenshots = 19; + * This is a type-conversion wrapper around `getPrehookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getPrehookscreenshotsList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getPrehookscreenshotsList())); +}; + + +/** + * repeated bytes preHookScreenshots = 19; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPrehookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getPrehookscreenshotsList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getPrehookscreenshotsList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setPrehookscreenshotsList = function(value) { + return jspb.Message.setField(this, 19, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.addPrehookscreenshots = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 19, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearPrehookscreenshotsList = function() { + return this.setPrehookscreenshotsList([]); +}; + + +/** + * repeated bytes postHookScreenshots = 20; + * @return {!(Array|Array)} + */ +proto.gauge.messages.ProtoScenario.prototype.getPosthookscreenshotsList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 20)); +}; + + +/** + * repeated bytes postHookScreenshots = 20; + * This is a type-conversion wrapper around `getPosthookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getPosthookscreenshotsList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getPosthookscreenshotsList())); +}; + + +/** + * repeated bytes postHookScreenshots = 20; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPosthookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getPosthookscreenshotsList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getPosthookscreenshotsList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setPosthookscreenshotsList = function(value) { + return jspb.Message.setField(this, 20, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.addPosthookscreenshots = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 20, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearPosthookscreenshotsList = function() { + return this.setPosthookscreenshotsList([]); +}; + + +/** + * repeated string preHookScreenshotFiles = 21; + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getPrehookscreenshotfilesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 21)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setPrehookscreenshotfilesList = function(value) { + return jspb.Message.setField(this, 21, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.addPrehookscreenshotfiles = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 21, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearPrehookscreenshotfilesList = function() { + return this.setPrehookscreenshotfilesList([]); +}; + + +/** + * repeated string postHookScreenshotFiles = 22; + * @return {!Array} + */ +proto.gauge.messages.ProtoScenario.prototype.getPosthookscreenshotfilesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 22)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setPosthookscreenshotfilesList = function(value) { + return jspb.Message.setField(this, 22, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.addPosthookscreenshotfiles = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 22, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.clearPosthookscreenshotfilesList = function() { + return this.setPosthookscreenshotfilesList([]); +}; + + +/** + * optional int64 retriesCount = 23; + * @return {number} + */ +proto.gauge.messages.ProtoScenario.prototype.getRetriescount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoScenario} returns this + */ +proto.gauge.messages.ProtoScenario.prototype.setRetriescount = function(value) { + return jspb.Message.setProto3IntField(this, 23, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.Span.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.Span.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.Span} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.Span.toObject = function(includeInstance, msg) { + var f, obj = { + start: jspb.Message.getFieldWithDefault(msg, 1, 0), + end: jspb.Message.getFieldWithDefault(msg, 2, 0), + startchar: jspb.Message.getFieldWithDefault(msg, 3, 0), + endchar: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.Span} + */ +proto.gauge.messages.Span.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.Span; + return proto.gauge.messages.Span.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.Span} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.Span} + */ +proto.gauge.messages.Span.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt64()); + msg.setStart(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setEnd(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setStartchar(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setEndchar(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.Span.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.Span.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.Span} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.Span.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStart(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getEnd(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getStartchar(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getEndchar(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } +}; + + +/** + * optional int64 start = 1; + * @return {number} + */ +proto.gauge.messages.Span.prototype.getStart = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.Span} returns this + */ +proto.gauge.messages.Span.prototype.setStart = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int64 end = 2; + * @return {number} + */ +proto.gauge.messages.Span.prototype.getEnd = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.Span} returns this + */ +proto.gauge.messages.Span.prototype.setEnd = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int64 startChar = 3; + * @return {number} + */ +proto.gauge.messages.Span.prototype.getStartchar = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.Span} returns this + */ +proto.gauge.messages.Span.prototype.setStartchar = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional int64 endChar = 4; + * @return {number} + */ +proto.gauge.messages.Span.prototype.getEndchar = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.Span} returns this + */ +proto.gauge.messages.Span.prototype.setEndchar = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoTableDrivenScenario.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoTableDrivenScenario} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoTableDrivenScenario.toObject = function(includeInstance, msg) { + var f, obj = { + scenario: (f = msg.getScenario()) && proto.gauge.messages.ProtoScenario.toObject(includeInstance, f), + tablerowindex: jspb.Message.getFieldWithDefault(msg, 2, 0), + scenariotablerowindex: jspb.Message.getFieldWithDefault(msg, 3, 0), + isspectabledriven: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + isscenariotabledriven: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + scenariodatatable: (f = msg.getScenariodatatable()) && proto.gauge.messages.ProtoTable.toObject(includeInstance, f), + scenariotablerow: (f = msg.getScenariotablerow()) && proto.gauge.messages.ProtoTable.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoTableDrivenScenario} + */ +proto.gauge.messages.ProtoTableDrivenScenario.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoTableDrivenScenario; + return proto.gauge.messages.ProtoTableDrivenScenario.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoTableDrivenScenario} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoTableDrivenScenario} + */ +proto.gauge.messages.ProtoTableDrivenScenario.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ProtoScenario; + reader.readMessage(value,proto.gauge.messages.ProtoScenario.deserializeBinaryFromReader); + msg.setScenario(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setTablerowindex(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setScenariotablerowindex(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsspectabledriven(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsscenariotabledriven(value); + break; + case 6: + var value = new proto.gauge.messages.ProtoTable; + reader.readMessage(value,proto.gauge.messages.ProtoTable.deserializeBinaryFromReader); + msg.setScenariodatatable(value); + break; + case 7: + var value = new proto.gauge.messages.ProtoTable; + reader.readMessage(value,proto.gauge.messages.ProtoTable.deserializeBinaryFromReader); + msg.setScenariotablerow(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoTableDrivenScenario.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoTableDrivenScenario} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoTableDrivenScenario.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getScenario(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ProtoScenario.serializeBinaryToWriter + ); + } + f = message.getTablerowindex(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getScenariotablerowindex(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } + f = message.getIsspectabledriven(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getIsscenariotabledriven(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = message.getScenariodatatable(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.gauge.messages.ProtoTable.serializeBinaryToWriter + ); + } + f = message.getScenariotablerow(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.gauge.messages.ProtoTable.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ProtoScenario scenario = 1; + * @return {?proto.gauge.messages.ProtoScenario} + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.getScenario = function() { + return /** @type{?proto.gauge.messages.ProtoScenario} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoScenario, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoScenario|undefined} value + * @return {!proto.gauge.messages.ProtoTableDrivenScenario} returns this +*/ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.setScenario = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoTableDrivenScenario} returns this + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.clearScenario = function() { + return this.setScenario(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.hasScenario = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional int32 tableRowIndex = 2; + * @return {number} + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.getTablerowindex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoTableDrivenScenario} returns this + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.setTablerowindex = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int32 scenarioTableRowIndex = 3; + * @return {number} + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.getScenariotablerowindex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoTableDrivenScenario} returns this + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.setScenariotablerowindex = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional bool isSpecTableDriven = 4; + * @return {boolean} + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.getIsspectabledriven = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.ProtoTableDrivenScenario} returns this + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.setIsspectabledriven = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional bool isScenarioTableDriven = 5; + * @return {boolean} + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.getIsscenariotabledriven = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.ProtoTableDrivenScenario} returns this + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.setIsscenariotabledriven = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * optional ProtoTable scenarioDataTable = 6; + * @return {?proto.gauge.messages.ProtoTable} + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.getScenariodatatable = function() { + return /** @type{?proto.gauge.messages.ProtoTable} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoTable, 6)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoTable|undefined} value + * @return {!proto.gauge.messages.ProtoTableDrivenScenario} returns this +*/ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.setScenariodatatable = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoTableDrivenScenario} returns this + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.clearScenariodatatable = function() { + return this.setScenariodatatable(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.hasScenariodatatable = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional ProtoTable scenarioTableRow = 7; + * @return {?proto.gauge.messages.ProtoTable} + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.getScenariotablerow = function() { + return /** @type{?proto.gauge.messages.ProtoTable} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoTable, 7)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoTable|undefined} value + * @return {!proto.gauge.messages.ProtoTableDrivenScenario} returns this +*/ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.setScenariotablerow = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoTableDrivenScenario} returns this + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.clearScenariotablerow = function() { + return this.setScenariotablerow(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoTableDrivenScenario.prototype.hasScenariotablerow = function() { + return jspb.Message.getField(this, 7) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ProtoStep.repeatedFields_ = [3,5,6,7,8,9,10]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoStep.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoStep.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoStep} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoStep.toObject = function(includeInstance, msg) { + var f, obj = { + actualtext: jspb.Message.getFieldWithDefault(msg, 1, ""), + parsedtext: jspb.Message.getFieldWithDefault(msg, 2, ""), + fragmentsList: jspb.Message.toObjectList(msg.getFragmentsList(), + proto.gauge.messages.Fragment.toObject, includeInstance), + stepexecutionresult: (f = msg.getStepexecutionresult()) && proto.gauge.messages.ProtoStepExecutionResult.toObject(includeInstance, f), + prehookmessagesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, + posthookmessagesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, + prehookscreenshotsList: msg.getPrehookscreenshotsList_asB64(), + posthookscreenshotsList: msg.getPosthookscreenshotsList_asB64(), + prehookscreenshotfilesList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, + posthookscreenshotfilesList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoStep} + */ +proto.gauge.messages.ProtoStep.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoStep; + return proto.gauge.messages.ProtoStep.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoStep} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoStep} + */ +proto.gauge.messages.ProtoStep.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setActualtext(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setParsedtext(value); + break; + case 3: + var value = new proto.gauge.messages.Fragment; + reader.readMessage(value,proto.gauge.messages.Fragment.deserializeBinaryFromReader); + msg.addFragments(value); + break; + case 4: + var value = new proto.gauge.messages.ProtoStepExecutionResult; + reader.readMessage(value,proto.gauge.messages.ProtoStepExecutionResult.deserializeBinaryFromReader); + msg.setStepexecutionresult(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.addPrehookmessages(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.addPosthookmessages(value); + break; + case 7: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addPrehookscreenshots(value); + break; + case 8: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addPosthookscreenshots(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.addPrehookscreenshotfiles(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.addPosthookscreenshotfiles(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoStep.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoStep.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoStep} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoStep.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getActualtext(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParsedtext(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getFragmentsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.gauge.messages.Fragment.serializeBinaryToWriter + ); + } + f = message.getStepexecutionresult(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.gauge.messages.ProtoStepExecutionResult.serializeBinaryToWriter + ); + } + f = message.getPrehookmessagesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 5, + f + ); + } + f = message.getPosthookmessagesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 6, + f + ); + } + f = message.getPrehookscreenshotsList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 7, + f + ); + } + f = message.getPosthookscreenshotsList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 8, + f + ); + } + f = message.getPrehookscreenshotfilesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 9, + f + ); + } + f = message.getPosthookscreenshotfilesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 10, + f + ); + } +}; + + +/** + * optional string actualText = 1; + * @return {string} + */ +proto.gauge.messages.ProtoStep.prototype.getActualtext = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.setActualtext = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string parsedText = 2; + * @return {string} + */ +proto.gauge.messages.ProtoStep.prototype.getParsedtext = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.setParsedtext = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated Fragment fragments = 3; + * @return {!Array} + */ +proto.gauge.messages.ProtoStep.prototype.getFragmentsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.Fragment, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoStep} returns this +*/ +proto.gauge.messages.ProtoStep.prototype.setFragmentsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.gauge.messages.Fragment=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.Fragment} + */ +proto.gauge.messages.ProtoStep.prototype.addFragments = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gauge.messages.Fragment, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.clearFragmentsList = function() { + return this.setFragmentsList([]); +}; + + +/** + * optional ProtoStepExecutionResult stepExecutionResult = 4; + * @return {?proto.gauge.messages.ProtoStepExecutionResult} + */ +proto.gauge.messages.ProtoStep.prototype.getStepexecutionresult = function() { + return /** @type{?proto.gauge.messages.ProtoStepExecutionResult} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoStepExecutionResult, 4)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoStepExecutionResult|undefined} value + * @return {!proto.gauge.messages.ProtoStep} returns this +*/ +proto.gauge.messages.ProtoStep.prototype.setStepexecutionresult = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.clearStepexecutionresult = function() { + return this.setStepexecutionresult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoStep.prototype.hasStepexecutionresult = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * repeated string preHookMessages = 5; + * @return {!Array} + */ +proto.gauge.messages.ProtoStep.prototype.getPrehookmessagesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.setPrehookmessagesList = function(value) { + return jspb.Message.setField(this, 5, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.addPrehookmessages = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.clearPrehookmessagesList = function() { + return this.setPrehookmessagesList([]); +}; + + +/** + * repeated string postHookMessages = 6; + * @return {!Array} + */ +proto.gauge.messages.ProtoStep.prototype.getPosthookmessagesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.setPosthookmessagesList = function(value) { + return jspb.Message.setField(this, 6, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.addPosthookmessages = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 6, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.clearPosthookmessagesList = function() { + return this.setPosthookmessagesList([]); +}; + + +/** + * repeated bytes preHookScreenshots = 7; + * @return {!(Array|Array)} + */ +proto.gauge.messages.ProtoStep.prototype.getPrehookscreenshotsList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 7)); +}; + + +/** + * repeated bytes preHookScreenshots = 7; + * This is a type-conversion wrapper around `getPrehookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoStep.prototype.getPrehookscreenshotsList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getPrehookscreenshotsList())); +}; + + +/** + * repeated bytes preHookScreenshots = 7; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPrehookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoStep.prototype.getPrehookscreenshotsList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getPrehookscreenshotsList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.setPrehookscreenshotsList = function(value) { + return jspb.Message.setField(this, 7, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.addPrehookscreenshots = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.clearPrehookscreenshotsList = function() { + return this.setPrehookscreenshotsList([]); +}; + + +/** + * repeated bytes postHookScreenshots = 8; + * @return {!(Array|Array)} + */ +proto.gauge.messages.ProtoStep.prototype.getPosthookscreenshotsList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 8)); +}; + + +/** + * repeated bytes postHookScreenshots = 8; + * This is a type-conversion wrapper around `getPosthookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoStep.prototype.getPosthookscreenshotsList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getPosthookscreenshotsList())); +}; + + +/** + * repeated bytes postHookScreenshots = 8; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPosthookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoStep.prototype.getPosthookscreenshotsList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getPosthookscreenshotsList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.setPosthookscreenshotsList = function(value) { + return jspb.Message.setField(this, 8, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.addPosthookscreenshots = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 8, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.clearPosthookscreenshotsList = function() { + return this.setPosthookscreenshotsList([]); +}; + + +/** + * repeated string preHookScreenshotFiles = 9; + * @return {!Array} + */ +proto.gauge.messages.ProtoStep.prototype.getPrehookscreenshotfilesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.setPrehookscreenshotfilesList = function(value) { + return jspb.Message.setField(this, 9, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.addPrehookscreenshotfiles = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 9, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.clearPrehookscreenshotfilesList = function() { + return this.setPrehookscreenshotfilesList([]); +}; + + +/** + * repeated string postHookScreenshotFiles = 10; + * @return {!Array} + */ +proto.gauge.messages.ProtoStep.prototype.getPosthookscreenshotfilesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.setPosthookscreenshotfilesList = function(value) { + return jspb.Message.setField(this, 10, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.addPosthookscreenshotfiles = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 10, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoStep} returns this + */ +proto.gauge.messages.ProtoStep.prototype.clearPosthookscreenshotfilesList = function() { + return this.setPosthookscreenshotfilesList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ProtoConcept.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoConcept.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoConcept.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoConcept} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoConcept.toObject = function(includeInstance, msg) { + var f, obj = { + conceptstep: (f = msg.getConceptstep()) && proto.gauge.messages.ProtoStep.toObject(includeInstance, f), + stepsList: jspb.Message.toObjectList(msg.getStepsList(), + proto.gauge.messages.ProtoItem.toObject, includeInstance), + conceptexecutionresult: (f = msg.getConceptexecutionresult()) && proto.gauge.messages.ProtoStepExecutionResult.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoConcept} + */ +proto.gauge.messages.ProtoConcept.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoConcept; + return proto.gauge.messages.ProtoConcept.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoConcept} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoConcept} + */ +proto.gauge.messages.ProtoConcept.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ProtoStep; + reader.readMessage(value,proto.gauge.messages.ProtoStep.deserializeBinaryFromReader); + msg.setConceptstep(value); + break; + case 2: + var value = new proto.gauge.messages.ProtoItem; + reader.readMessage(value,proto.gauge.messages.ProtoItem.deserializeBinaryFromReader); + msg.addSteps(value); + break; + case 3: + var value = new proto.gauge.messages.ProtoStepExecutionResult; + reader.readMessage(value,proto.gauge.messages.ProtoStepExecutionResult.deserializeBinaryFromReader); + msg.setConceptexecutionresult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoConcept.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoConcept.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoConcept} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoConcept.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getConceptstep(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ProtoStep.serializeBinaryToWriter + ); + } + f = message.getStepsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.gauge.messages.ProtoItem.serializeBinaryToWriter + ); + } + f = message.getConceptexecutionresult(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.gauge.messages.ProtoStepExecutionResult.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ProtoStep conceptStep = 1; + * @return {?proto.gauge.messages.ProtoStep} + */ +proto.gauge.messages.ProtoConcept.prototype.getConceptstep = function() { + return /** @type{?proto.gauge.messages.ProtoStep} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoStep, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoStep|undefined} value + * @return {!proto.gauge.messages.ProtoConcept} returns this +*/ +proto.gauge.messages.ProtoConcept.prototype.setConceptstep = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoConcept} returns this + */ +proto.gauge.messages.ProtoConcept.prototype.clearConceptstep = function() { + return this.setConceptstep(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoConcept.prototype.hasConceptstep = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated ProtoItem steps = 2; + * @return {!Array} + */ +proto.gauge.messages.ProtoConcept.prototype.getStepsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.ProtoItem, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoConcept} returns this +*/ +proto.gauge.messages.ProtoConcept.prototype.setStepsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.gauge.messages.ProtoItem=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoItem} + */ +proto.gauge.messages.ProtoConcept.prototype.addSteps = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gauge.messages.ProtoItem, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoConcept} returns this + */ +proto.gauge.messages.ProtoConcept.prototype.clearStepsList = function() { + return this.setStepsList([]); +}; + + +/** + * optional ProtoStepExecutionResult conceptExecutionResult = 3; + * @return {?proto.gauge.messages.ProtoStepExecutionResult} + */ +proto.gauge.messages.ProtoConcept.prototype.getConceptexecutionresult = function() { + return /** @type{?proto.gauge.messages.ProtoStepExecutionResult} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoStepExecutionResult, 3)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoStepExecutionResult|undefined} value + * @return {!proto.gauge.messages.ProtoConcept} returns this +*/ +proto.gauge.messages.ProtoConcept.prototype.setConceptexecutionresult = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoConcept} returns this + */ +proto.gauge.messages.ProtoConcept.prototype.clearConceptexecutionresult = function() { + return this.setConceptexecutionresult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoConcept.prototype.hasConceptexecutionresult = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ProtoTags.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoTags.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoTags.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoTags} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoTags.toObject = function(includeInstance, msg) { + var f, obj = { + tagsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoTags} + */ +proto.gauge.messages.ProtoTags.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoTags; + return proto.gauge.messages.ProtoTags.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoTags} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoTags} + */ +proto.gauge.messages.ProtoTags.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addTags(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoTags.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoTags.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoTags} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoTags.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTagsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } +}; + + +/** + * repeated string tags = 1; + * @return {!Array} + */ +proto.gauge.messages.ProtoTags.prototype.getTagsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoTags} returns this + */ +proto.gauge.messages.ProtoTags.prototype.setTagsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoTags} returns this + */ +proto.gauge.messages.ProtoTags.prototype.addTags = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoTags} returns this + */ +proto.gauge.messages.ProtoTags.prototype.clearTagsList = function() { + return this.setTagsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.Fragment.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.Fragment.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.Fragment} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.Fragment.toObject = function(includeInstance, msg) { + var f, obj = { + fragmenttype: jspb.Message.getFieldWithDefault(msg, 1, 0), + text: jspb.Message.getFieldWithDefault(msg, 2, ""), + parameter: (f = msg.getParameter()) && proto.gauge.messages.Parameter.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.Fragment} + */ +proto.gauge.messages.Fragment.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.Fragment; + return proto.gauge.messages.Fragment.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.Fragment} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.Fragment} + */ +proto.gauge.messages.Fragment.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.gauge.messages.Fragment.FragmentType} */ (reader.readEnum()); + msg.setFragmenttype(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setText(value); + break; + case 3: + var value = new proto.gauge.messages.Parameter; + reader.readMessage(value,proto.gauge.messages.Parameter.deserializeBinaryFromReader); + msg.setParameter(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.Fragment.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.Fragment.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.Fragment} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.Fragment.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFragmenttype(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getText(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getParameter(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.gauge.messages.Parameter.serializeBinaryToWriter + ); + } +}; + + +/** + * @enum {number} + */ +proto.gauge.messages.Fragment.FragmentType = { + TEXT: 0, + PARAMETER: 1 +}; + +/** + * optional FragmentType fragmentType = 1; + * @return {!proto.gauge.messages.Fragment.FragmentType} + */ +proto.gauge.messages.Fragment.prototype.getFragmenttype = function() { + return /** @type {!proto.gauge.messages.Fragment.FragmentType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.gauge.messages.Fragment.FragmentType} value + * @return {!proto.gauge.messages.Fragment} returns this + */ +proto.gauge.messages.Fragment.prototype.setFragmenttype = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional string text = 2; + * @return {string} + */ +proto.gauge.messages.Fragment.prototype.getText = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.Fragment} returns this + */ +proto.gauge.messages.Fragment.prototype.setText = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional Parameter parameter = 3; + * @return {?proto.gauge.messages.Parameter} + */ +proto.gauge.messages.Fragment.prototype.getParameter = function() { + return /** @type{?proto.gauge.messages.Parameter} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.Parameter, 3)); +}; + + +/** + * @param {?proto.gauge.messages.Parameter|undefined} value + * @return {!proto.gauge.messages.Fragment} returns this +*/ +proto.gauge.messages.Fragment.prototype.setParameter = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Fragment} returns this + */ +proto.gauge.messages.Fragment.prototype.clearParameter = function() { + return this.setParameter(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Fragment.prototype.hasParameter = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.Parameter.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.Parameter.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.Parameter} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.Parameter.toObject = function(includeInstance, msg) { + var f, obj = { + parametertype: jspb.Message.getFieldWithDefault(msg, 1, 0), + value: jspb.Message.getFieldWithDefault(msg, 2, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + table: (f = msg.getTable()) && proto.gauge.messages.ProtoTable.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.Parameter} + */ +proto.gauge.messages.Parameter.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.Parameter; + return proto.gauge.messages.Parameter.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.Parameter} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.Parameter} + */ +proto.gauge.messages.Parameter.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.gauge.messages.Parameter.ParameterType} */ (reader.readEnum()); + msg.setParametertype(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setValue(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 4: + var value = new proto.gauge.messages.ProtoTable; + reader.readMessage(value,proto.gauge.messages.ProtoTable.deserializeBinaryFromReader); + msg.setTable(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.Parameter.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.Parameter.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.Parameter} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.Parameter.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParametertype(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getValue(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getTable(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.gauge.messages.ProtoTable.serializeBinaryToWriter + ); + } +}; + + +/** + * @enum {number} + */ +proto.gauge.messages.Parameter.ParameterType = { + STATIC: 0, + DYNAMIC: 1, + SPECIAL_STRING: 2, + SPECIAL_TABLE: 3, + TABLE: 4 +}; + +/** + * optional ParameterType parameterType = 1; + * @return {!proto.gauge.messages.Parameter.ParameterType} + */ +proto.gauge.messages.Parameter.prototype.getParametertype = function() { + return /** @type {!proto.gauge.messages.Parameter.ParameterType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.gauge.messages.Parameter.ParameterType} value + * @return {!proto.gauge.messages.Parameter} returns this + */ +proto.gauge.messages.Parameter.prototype.setParametertype = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional string value = 2; + * @return {string} + */ +proto.gauge.messages.Parameter.prototype.getValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.Parameter} returns this + */ +proto.gauge.messages.Parameter.prototype.setValue = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string name = 3; + * @return {string} + */ +proto.gauge.messages.Parameter.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.Parameter} returns this + */ +proto.gauge.messages.Parameter.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional ProtoTable table = 4; + * @return {?proto.gauge.messages.ProtoTable} + */ +proto.gauge.messages.Parameter.prototype.getTable = function() { + return /** @type{?proto.gauge.messages.ProtoTable} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoTable, 4)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoTable|undefined} value + * @return {!proto.gauge.messages.Parameter} returns this +*/ +proto.gauge.messages.Parameter.prototype.setTable = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.Parameter} returns this + */ +proto.gauge.messages.Parameter.prototype.clearTable = function() { + return this.setTable(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.Parameter.prototype.hasTable = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoComment.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoComment.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoComment} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoComment.toObject = function(includeInstance, msg) { + var f, obj = { + text: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoComment} + */ +proto.gauge.messages.ProtoComment.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoComment; + return proto.gauge.messages.ProtoComment.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoComment} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoComment} + */ +proto.gauge.messages.ProtoComment.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setText(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoComment.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoComment.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoComment} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoComment.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getText(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string text = 1; + * @return {string} + */ +proto.gauge.messages.ProtoComment.prototype.getText = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoComment} returns this + */ +proto.gauge.messages.ProtoComment.prototype.setText = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ProtoTable.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoTable.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoTable.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoTable} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoTable.toObject = function(includeInstance, msg) { + var f, obj = { + headers: (f = msg.getHeaders()) && proto.gauge.messages.ProtoTableRow.toObject(includeInstance, f), + rowsList: jspb.Message.toObjectList(msg.getRowsList(), + proto.gauge.messages.ProtoTableRow.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoTable} + */ +proto.gauge.messages.ProtoTable.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoTable; + return proto.gauge.messages.ProtoTable.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoTable} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoTable} + */ +proto.gauge.messages.ProtoTable.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ProtoTableRow; + reader.readMessage(value,proto.gauge.messages.ProtoTableRow.deserializeBinaryFromReader); + msg.setHeaders(value); + break; + case 2: + var value = new proto.gauge.messages.ProtoTableRow; + reader.readMessage(value,proto.gauge.messages.ProtoTableRow.deserializeBinaryFromReader); + msg.addRows(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoTable.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoTable.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoTable} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoTable.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHeaders(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ProtoTableRow.serializeBinaryToWriter + ); + } + f = message.getRowsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.gauge.messages.ProtoTableRow.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ProtoTableRow headers = 1; + * @return {?proto.gauge.messages.ProtoTableRow} + */ +proto.gauge.messages.ProtoTable.prototype.getHeaders = function() { + return /** @type{?proto.gauge.messages.ProtoTableRow} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoTableRow, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoTableRow|undefined} value + * @return {!proto.gauge.messages.ProtoTable} returns this +*/ +proto.gauge.messages.ProtoTable.prototype.setHeaders = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoTable} returns this + */ +proto.gauge.messages.ProtoTable.prototype.clearHeaders = function() { + return this.setHeaders(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoTable.prototype.hasHeaders = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated ProtoTableRow rows = 2; + * @return {!Array} + */ +proto.gauge.messages.ProtoTable.prototype.getRowsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.ProtoTableRow, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoTable} returns this +*/ +proto.gauge.messages.ProtoTable.prototype.setRowsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.gauge.messages.ProtoTableRow=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoTableRow} + */ +proto.gauge.messages.ProtoTable.prototype.addRows = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gauge.messages.ProtoTableRow, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoTable} returns this + */ +proto.gauge.messages.ProtoTable.prototype.clearRowsList = function() { + return this.setRowsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ProtoTableRow.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoTableRow.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoTableRow.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoTableRow} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoTableRow.toObject = function(includeInstance, msg) { + var f, obj = { + cellsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoTableRow} + */ +proto.gauge.messages.ProtoTableRow.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoTableRow; + return proto.gauge.messages.ProtoTableRow.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoTableRow} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoTableRow} + */ +proto.gauge.messages.ProtoTableRow.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addCells(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoTableRow.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoTableRow.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoTableRow} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoTableRow.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCellsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } +}; + + +/** + * repeated string cells = 1; + * @return {!Array} + */ +proto.gauge.messages.ProtoTableRow.prototype.getCellsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoTableRow} returns this + */ +proto.gauge.messages.ProtoTableRow.prototype.setCellsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoTableRow} returns this + */ +proto.gauge.messages.ProtoTableRow.prototype.addCells = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoTableRow} returns this + */ +proto.gauge.messages.ProtoTableRow.prototype.clearCellsList = function() { + return this.setCellsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoStepExecutionResult.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoStepExecutionResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoStepExecutionResult.toObject = function(includeInstance, msg) { + var f, obj = { + executionresult: (f = msg.getExecutionresult()) && proto.gauge.messages.ProtoExecutionResult.toObject(includeInstance, f), + prehookfailure: (f = msg.getPrehookfailure()) && proto.gauge.messages.ProtoHookFailure.toObject(includeInstance, f), + posthookfailure: (f = msg.getPosthookfailure()) && proto.gauge.messages.ProtoHookFailure.toObject(includeInstance, f), + skipped: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + skippedreason: jspb.Message.getFieldWithDefault(msg, 5, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoStepExecutionResult} + */ +proto.gauge.messages.ProtoStepExecutionResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoStepExecutionResult; + return proto.gauge.messages.ProtoStepExecutionResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoStepExecutionResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoStepExecutionResult} + */ +proto.gauge.messages.ProtoStepExecutionResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ProtoExecutionResult; + reader.readMessage(value,proto.gauge.messages.ProtoExecutionResult.deserializeBinaryFromReader); + msg.setExecutionresult(value); + break; + case 2: + var value = new proto.gauge.messages.ProtoHookFailure; + reader.readMessage(value,proto.gauge.messages.ProtoHookFailure.deserializeBinaryFromReader); + msg.setPrehookfailure(value); + break; + case 3: + var value = new proto.gauge.messages.ProtoHookFailure; + reader.readMessage(value,proto.gauge.messages.ProtoHookFailure.deserializeBinaryFromReader); + msg.setPosthookfailure(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSkipped(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setSkippedreason(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoStepExecutionResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoStepExecutionResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoStepExecutionResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getExecutionresult(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ProtoExecutionResult.serializeBinaryToWriter + ); + } + f = message.getPrehookfailure(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.gauge.messages.ProtoHookFailure.serializeBinaryToWriter + ); + } + f = message.getPosthookfailure(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.gauge.messages.ProtoHookFailure.serializeBinaryToWriter + ); + } + f = message.getSkipped(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getSkippedreason(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } +}; + + +/** + * optional ProtoExecutionResult executionResult = 1; + * @return {?proto.gauge.messages.ProtoExecutionResult} + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.getExecutionresult = function() { + return /** @type{?proto.gauge.messages.ProtoExecutionResult} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoExecutionResult, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoExecutionResult|undefined} value + * @return {!proto.gauge.messages.ProtoStepExecutionResult} returns this +*/ +proto.gauge.messages.ProtoStepExecutionResult.prototype.setExecutionresult = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoStepExecutionResult} returns this + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.clearExecutionresult = function() { + return this.setExecutionresult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.hasExecutionresult = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ProtoHookFailure preHookFailure = 2; + * @return {?proto.gauge.messages.ProtoHookFailure} + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.getPrehookfailure = function() { + return /** @type{?proto.gauge.messages.ProtoHookFailure} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoHookFailure, 2)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoHookFailure|undefined} value + * @return {!proto.gauge.messages.ProtoStepExecutionResult} returns this +*/ +proto.gauge.messages.ProtoStepExecutionResult.prototype.setPrehookfailure = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoStepExecutionResult} returns this + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.clearPrehookfailure = function() { + return this.setPrehookfailure(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.hasPrehookfailure = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ProtoHookFailure postHookFailure = 3; + * @return {?proto.gauge.messages.ProtoHookFailure} + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.getPosthookfailure = function() { + return /** @type{?proto.gauge.messages.ProtoHookFailure} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoHookFailure, 3)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoHookFailure|undefined} value + * @return {!proto.gauge.messages.ProtoStepExecutionResult} returns this +*/ +proto.gauge.messages.ProtoStepExecutionResult.prototype.setPosthookfailure = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoStepExecutionResult} returns this + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.clearPosthookfailure = function() { + return this.setPosthookfailure(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.hasPosthookfailure = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional bool skipped = 4; + * @return {boolean} + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.getSkipped = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.ProtoStepExecutionResult} returns this + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.setSkipped = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional string skippedReason = 5; + * @return {string} + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.getSkippedreason = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoStepExecutionResult} returns this + */ +proto.gauge.messages.ProtoStepExecutionResult.prototype.setSkippedreason = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ProtoExecutionResult.repeatedFields_ = [7,10,12]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoExecutionResult.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoExecutionResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoExecutionResult.toObject = function(includeInstance, msg) { + var f, obj = { + failed: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + recoverableerror: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + errormessage: jspb.Message.getFieldWithDefault(msg, 3, ""), + stacktrace: jspb.Message.getFieldWithDefault(msg, 4, ""), + screenshot: msg.getScreenshot_asB64(), + executiontime: jspb.Message.getFieldWithDefault(msg, 6, 0), + messageList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, + errortype: jspb.Message.getFieldWithDefault(msg, 8, 0), + failurescreenshot: msg.getFailurescreenshot_asB64(), + screenshotsList: msg.getScreenshotsList_asB64(), + failurescreenshotfile: jspb.Message.getFieldWithDefault(msg, 11, ""), + screenshotfilesList: (f = jspb.Message.getRepeatedField(msg, 12)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoExecutionResult} + */ +proto.gauge.messages.ProtoExecutionResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoExecutionResult; + return proto.gauge.messages.ProtoExecutionResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoExecutionResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoExecutionResult} + */ +proto.gauge.messages.ProtoExecutionResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setFailed(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setRecoverableerror(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setErrormessage(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setStacktrace(value); + break; + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setScreenshot(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt64()); + msg.setExecutiontime(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.addMessage(value); + break; + case 8: + var value = /** @type {!proto.gauge.messages.ProtoExecutionResult.ErrorType} */ (reader.readEnum()); + msg.setErrortype(value); + break; + case 9: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setFailurescreenshot(value); + break; + case 10: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addScreenshots(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setFailurescreenshotfile(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.addScreenshotfiles(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoExecutionResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoExecutionResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoExecutionResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFailed(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getRecoverableerror(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getErrormessage(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getStacktrace(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getScreenshot_asU8(); + if (f.length > 0) { + writer.writeBytes( + 5, + f + ); + } + f = message.getExecutiontime(); + if (f !== 0) { + writer.writeInt64( + 6, + f + ); + } + f = message.getMessageList(); + if (f.length > 0) { + writer.writeRepeatedString( + 7, + f + ); + } + f = message.getErrortype(); + if (f !== 0.0) { + writer.writeEnum( + 8, + f + ); + } + f = message.getFailurescreenshot_asU8(); + if (f.length > 0) { + writer.writeBytes( + 9, + f + ); + } + f = message.getScreenshotsList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 10, + f + ); + } + f = message.getFailurescreenshotfile(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } + f = message.getScreenshotfilesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 12, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.gauge.messages.ProtoExecutionResult.ErrorType = { + ASSERTION: 0, + VERIFICATION: 1 +}; + +/** + * optional bool failed = 1; + * @return {boolean} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getFailed = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.setFailed = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional bool recoverableError = 2; + * @return {boolean} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getRecoverableerror = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.setRecoverableerror = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional string errorMessage = 3; + * @return {string} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getErrormessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.setErrormessage = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string stackTrace = 4; + * @return {string} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getStacktrace = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.setStacktrace = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional bytes screenShot = 5; + * @return {!(string|Uint8Array)} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getScreenshot = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * optional bytes screenShot = 5; + * This is a type-conversion wrapper around `getScreenshot()` + * @return {string} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getScreenshot_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getScreenshot())); +}; + + +/** + * optional bytes screenShot = 5; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getScreenshot()` + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getScreenshot_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getScreenshot())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.setScreenshot = function(value) { + return jspb.Message.setProto3BytesField(this, 5, value); +}; + + +/** + * optional int64 executionTime = 6; + * @return {number} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getExecutiontime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.setExecutiontime = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * repeated string message = 7; + * @return {!Array} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getMessageList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.setMessageList = function(value) { + return jspb.Message.setField(this, 7, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.addMessage = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.clearMessageList = function() { + return this.setMessageList([]); +}; + + +/** + * optional ErrorType errorType = 8; + * @return {!proto.gauge.messages.ProtoExecutionResult.ErrorType} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getErrortype = function() { + return /** @type {!proto.gauge.messages.ProtoExecutionResult.ErrorType} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {!proto.gauge.messages.ProtoExecutionResult.ErrorType} value + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.setErrortype = function(value) { + return jspb.Message.setProto3EnumField(this, 8, value); +}; + + +/** + * optional bytes failureScreenshot = 9; + * @return {!(string|Uint8Array)} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getFailurescreenshot = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * optional bytes failureScreenshot = 9; + * This is a type-conversion wrapper around `getFailurescreenshot()` + * @return {string} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getFailurescreenshot_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getFailurescreenshot())); +}; + + +/** + * optional bytes failureScreenshot = 9; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getFailurescreenshot()` + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getFailurescreenshot_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getFailurescreenshot())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.setFailurescreenshot = function(value) { + return jspb.Message.setProto3BytesField(this, 9, value); +}; + + +/** + * repeated bytes screenshots = 10; + * @return {!(Array|Array)} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getScreenshotsList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 10)); +}; + + +/** + * repeated bytes screenshots = 10; + * This is a type-conversion wrapper around `getScreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getScreenshotsList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getScreenshotsList())); +}; + + +/** + * repeated bytes screenshots = 10; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getScreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getScreenshotsList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getScreenshotsList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.setScreenshotsList = function(value) { + return jspb.Message.setField(this, 10, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.addScreenshots = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 10, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.clearScreenshotsList = function() { + return this.setScreenshotsList([]); +}; + + +/** + * optional string failureScreenshotFile = 11; + * @return {string} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getFailurescreenshotfile = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.setFailurescreenshotfile = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); +}; + + +/** + * repeated string screenshotFiles = 12; + * @return {!Array} + */ +proto.gauge.messages.ProtoExecutionResult.prototype.getScreenshotfilesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 12)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.setScreenshotfilesList = function(value) { + return jspb.Message.setField(this, 12, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.addScreenshotfiles = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 12, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoExecutionResult} returns this + */ +proto.gauge.messages.ProtoExecutionResult.prototype.clearScreenshotfilesList = function() { + return this.setScreenshotfilesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoHookFailure.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoHookFailure.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoHookFailure} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoHookFailure.toObject = function(includeInstance, msg) { + var f, obj = { + stacktrace: jspb.Message.getFieldWithDefault(msg, 1, ""), + errormessage: jspb.Message.getFieldWithDefault(msg, 2, ""), + screenshot: msg.getScreenshot_asB64(), + tablerowindex: jspb.Message.getFieldWithDefault(msg, 4, 0), + failurescreenshot: msg.getFailurescreenshot_asB64(), + failurescreenshotfile: jspb.Message.getFieldWithDefault(msg, 6, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoHookFailure} + */ +proto.gauge.messages.ProtoHookFailure.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoHookFailure; + return proto.gauge.messages.ProtoHookFailure.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoHookFailure} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoHookFailure} + */ +proto.gauge.messages.ProtoHookFailure.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStacktrace(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setErrormessage(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setScreenshot(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setTablerowindex(value); + break; + case 5: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setFailurescreenshot(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setFailurescreenshotfile(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoHookFailure.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoHookFailure.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoHookFailure} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoHookFailure.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStacktrace(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getErrormessage(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getScreenshot_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getTablerowindex(); + if (f !== 0) { + writer.writeInt32( + 4, + f + ); + } + f = message.getFailurescreenshot_asU8(); + if (f.length > 0) { + writer.writeBytes( + 5, + f + ); + } + f = message.getFailurescreenshotfile(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } +}; + + +/** + * optional string stackTrace = 1; + * @return {string} + */ +proto.gauge.messages.ProtoHookFailure.prototype.getStacktrace = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoHookFailure} returns this + */ +proto.gauge.messages.ProtoHookFailure.prototype.setStacktrace = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string errorMessage = 2; + * @return {string} + */ +proto.gauge.messages.ProtoHookFailure.prototype.getErrormessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoHookFailure} returns this + */ +proto.gauge.messages.ProtoHookFailure.prototype.setErrormessage = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional bytes screenShot = 3; + * @return {!(string|Uint8Array)} + */ +proto.gauge.messages.ProtoHookFailure.prototype.getScreenshot = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes screenShot = 3; + * This is a type-conversion wrapper around `getScreenshot()` + * @return {string} + */ +proto.gauge.messages.ProtoHookFailure.prototype.getScreenshot_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getScreenshot())); +}; + + +/** + * optional bytes screenShot = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getScreenshot()` + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoHookFailure.prototype.getScreenshot_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getScreenshot())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.gauge.messages.ProtoHookFailure} returns this + */ +proto.gauge.messages.ProtoHookFailure.prototype.setScreenshot = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * optional int32 tableRowIndex = 4; + * @return {number} + */ +proto.gauge.messages.ProtoHookFailure.prototype.getTablerowindex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoHookFailure} returns this + */ +proto.gauge.messages.ProtoHookFailure.prototype.setTablerowindex = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional bytes failureScreenshot = 5; + * @return {!(string|Uint8Array)} + */ +proto.gauge.messages.ProtoHookFailure.prototype.getFailurescreenshot = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * optional bytes failureScreenshot = 5; + * This is a type-conversion wrapper around `getFailurescreenshot()` + * @return {string} + */ +proto.gauge.messages.ProtoHookFailure.prototype.getFailurescreenshot_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getFailurescreenshot())); +}; + + +/** + * optional bytes failureScreenshot = 5; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getFailurescreenshot()` + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoHookFailure.prototype.getFailurescreenshot_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getFailurescreenshot())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.gauge.messages.ProtoHookFailure} returns this + */ +proto.gauge.messages.ProtoHookFailure.prototype.setFailurescreenshot = function(value) { + return jspb.Message.setProto3BytesField(this, 5, value); +}; + + +/** + * optional string failureScreenshotFile = 6; + * @return {string} + */ +proto.gauge.messages.ProtoHookFailure.prototype.getFailurescreenshotfile = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoHookFailure} returns this + */ +proto.gauge.messages.ProtoHookFailure.prototype.setFailurescreenshotfile = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ProtoSuiteResult.repeatedFields_ = [1,13,14,15,16,17,18,21,22]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoSuiteResult.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoSuiteResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoSuiteResult.toObject = function(includeInstance, msg) { + var f, obj = { + specresultsList: jspb.Message.toObjectList(msg.getSpecresultsList(), + proto.gauge.messages.ProtoSpecResult.toObject, includeInstance), + prehookfailure: (f = msg.getPrehookfailure()) && proto.gauge.messages.ProtoHookFailure.toObject(includeInstance, f), + posthookfailure: (f = msg.getPosthookfailure()) && proto.gauge.messages.ProtoHookFailure.toObject(includeInstance, f), + failed: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + specsfailedcount: jspb.Message.getFieldWithDefault(msg, 5, 0), + executiontime: jspb.Message.getFieldWithDefault(msg, 6, 0), + successrate: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), + environment: jspb.Message.getFieldWithDefault(msg, 8, ""), + tags: jspb.Message.getFieldWithDefault(msg, 9, ""), + projectname: jspb.Message.getFieldWithDefault(msg, 10, ""), + timestamp: jspb.Message.getFieldWithDefault(msg, 11, ""), + specsskippedcount: jspb.Message.getFieldWithDefault(msg, 12, 0), + prehookmessagesList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f, + posthookmessagesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f, + prehookmessageList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f, + posthookmessageList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f, + prehookscreenshotsList: msg.getPrehookscreenshotsList_asB64(), + posthookscreenshotsList: msg.getPosthookscreenshotsList_asB64(), + chunked: jspb.Message.getBooleanFieldWithDefault(msg, 19, false), + chunksize: jspb.Message.getFieldWithDefault(msg, 20, 0), + prehookscreenshotfilesList: (f = jspb.Message.getRepeatedField(msg, 21)) == null ? undefined : f, + posthookscreenshotfilesList: (f = jspb.Message.getRepeatedField(msg, 22)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoSuiteResult} + */ +proto.gauge.messages.ProtoSuiteResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoSuiteResult; + return proto.gauge.messages.ProtoSuiteResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoSuiteResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoSuiteResult} + */ +proto.gauge.messages.ProtoSuiteResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ProtoSpecResult; + reader.readMessage(value,proto.gauge.messages.ProtoSpecResult.deserializeBinaryFromReader); + msg.addSpecresults(value); + break; + case 2: + var value = new proto.gauge.messages.ProtoHookFailure; + reader.readMessage(value,proto.gauge.messages.ProtoHookFailure.deserializeBinaryFromReader); + msg.setPrehookfailure(value); + break; + case 3: + var value = new proto.gauge.messages.ProtoHookFailure; + reader.readMessage(value,proto.gauge.messages.ProtoHookFailure.deserializeBinaryFromReader); + msg.setPosthookfailure(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setFailed(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setSpecsfailedcount(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt64()); + msg.setExecutiontime(value); + break; + case 7: + var value = /** @type {number} */ (reader.readFloat()); + msg.setSuccessrate(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setEnvironment(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setTags(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setProjectname(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setTimestamp(value); + break; + case 12: + var value = /** @type {number} */ (reader.readInt32()); + msg.setSpecsskippedcount(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.addPrehookmessages(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.addPosthookmessages(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.addPrehookmessage(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.addPosthookmessage(value); + break; + case 17: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addPrehookscreenshots(value); + break; + case 18: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addPosthookscreenshots(value); + break; + case 19: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setChunked(value); + break; + case 20: + var value = /** @type {number} */ (reader.readInt64()); + msg.setChunksize(value); + break; + case 21: + var value = /** @type {string} */ (reader.readString()); + msg.addPrehookscreenshotfiles(value); + break; + case 22: + var value = /** @type {string} */ (reader.readString()); + msg.addPosthookscreenshotfiles(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoSuiteResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoSuiteResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoSuiteResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSpecresultsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.gauge.messages.ProtoSpecResult.serializeBinaryToWriter + ); + } + f = message.getPrehookfailure(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.gauge.messages.ProtoHookFailure.serializeBinaryToWriter + ); + } + f = message.getPosthookfailure(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.gauge.messages.ProtoHookFailure.serializeBinaryToWriter + ); + } + f = message.getFailed(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getSpecsfailedcount(); + if (f !== 0) { + writer.writeInt32( + 5, + f + ); + } + f = message.getExecutiontime(); + if (f !== 0) { + writer.writeInt64( + 6, + f + ); + } + f = message.getSuccessrate(); + if (f !== 0.0) { + writer.writeFloat( + 7, + f + ); + } + f = message.getEnvironment(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getTags(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } + f = message.getProjectname(); + if (f.length > 0) { + writer.writeString( + 10, + f + ); + } + f = message.getTimestamp(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } + f = message.getSpecsskippedcount(); + if (f !== 0) { + writer.writeInt32( + 12, + f + ); + } + f = message.getPrehookmessagesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 13, + f + ); + } + f = message.getPosthookmessagesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 14, + f + ); + } + f = message.getPrehookmessageList(); + if (f.length > 0) { + writer.writeRepeatedString( + 15, + f + ); + } + f = message.getPosthookmessageList(); + if (f.length > 0) { + writer.writeRepeatedString( + 16, + f + ); + } + f = message.getPrehookscreenshotsList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 17, + f + ); + } + f = message.getPosthookscreenshotsList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 18, + f + ); + } + f = message.getChunked(); + if (f) { + writer.writeBool( + 19, + f + ); + } + f = message.getChunksize(); + if (f !== 0) { + writer.writeInt64( + 20, + f + ); + } + f = message.getPrehookscreenshotfilesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 21, + f + ); + } + f = message.getPosthookscreenshotfilesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 22, + f + ); + } +}; + + +/** + * repeated ProtoSpecResult specResults = 1; + * @return {!Array} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getSpecresultsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.ProtoSpecResult, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this +*/ +proto.gauge.messages.ProtoSuiteResult.prototype.setSpecresultsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.gauge.messages.ProtoSpecResult=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSpecResult} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.addSpecresults = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gauge.messages.ProtoSpecResult, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.clearSpecresultsList = function() { + return this.setSpecresultsList([]); +}; + + +/** + * optional ProtoHookFailure preHookFailure = 2; + * @return {?proto.gauge.messages.ProtoHookFailure} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getPrehookfailure = function() { + return /** @type{?proto.gauge.messages.ProtoHookFailure} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoHookFailure, 2)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoHookFailure|undefined} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this +*/ +proto.gauge.messages.ProtoSuiteResult.prototype.setPrehookfailure = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.clearPrehookfailure = function() { + return this.setPrehookfailure(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.hasPrehookfailure = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ProtoHookFailure postHookFailure = 3; + * @return {?proto.gauge.messages.ProtoHookFailure} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getPosthookfailure = function() { + return /** @type{?proto.gauge.messages.ProtoHookFailure} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoHookFailure, 3)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoHookFailure|undefined} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this +*/ +proto.gauge.messages.ProtoSuiteResult.prototype.setPosthookfailure = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.clearPosthookfailure = function() { + return this.setPosthookfailure(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.hasPosthookfailure = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional bool failed = 4; + * @return {boolean} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getFailed = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setFailed = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional int32 specsFailedCount = 5; + * @return {number} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getSpecsfailedcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setSpecsfailedcount = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional int64 executionTime = 6; + * @return {number} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getExecutiontime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setExecutiontime = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional float successRate = 7; + * @return {number} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getSuccessrate = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setSuccessrate = function(value) { + return jspb.Message.setProto3FloatField(this, 7, value); +}; + + +/** + * optional string environment = 8; + * @return {string} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getEnvironment = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setEnvironment = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * optional string tags = 9; + * @return {string} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getTags = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setTags = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + + +/** + * optional string projectName = 10; + * @return {string} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getProjectname = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setProjectname = function(value) { + return jspb.Message.setProto3StringField(this, 10, value); +}; + + +/** + * optional string timestamp = 11; + * @return {string} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getTimestamp = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); +}; + + +/** + * optional int32 specsSkippedCount = 12; + * @return {number} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getSpecsskippedcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setSpecsskippedcount = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + + +/** + * repeated string preHookMessages = 13; + * @return {!Array} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getPrehookmessagesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 13)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setPrehookmessagesList = function(value) { + return jspb.Message.setField(this, 13, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.addPrehookmessages = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 13, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.clearPrehookmessagesList = function() { + return this.setPrehookmessagesList([]); +}; + + +/** + * repeated string postHookMessages = 14; + * @return {!Array} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getPosthookmessagesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 14)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setPosthookmessagesList = function(value) { + return jspb.Message.setField(this, 14, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.addPosthookmessages = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 14, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.clearPosthookmessagesList = function() { + return this.setPosthookmessagesList([]); +}; + + +/** + * repeated string preHookMessage = 15; + * @return {!Array} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getPrehookmessageList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 15)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setPrehookmessageList = function(value) { + return jspb.Message.setField(this, 15, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.addPrehookmessage = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 15, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.clearPrehookmessageList = function() { + return this.setPrehookmessageList([]); +}; + + +/** + * repeated string postHookMessage = 16; + * @return {!Array} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getPosthookmessageList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 16)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setPosthookmessageList = function(value) { + return jspb.Message.setField(this, 16, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.addPosthookmessage = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 16, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.clearPosthookmessageList = function() { + return this.setPosthookmessageList([]); +}; + + +/** + * repeated bytes preHookScreenshots = 17; + * @return {!(Array|Array)} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getPrehookscreenshotsList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 17)); +}; + + +/** + * repeated bytes preHookScreenshots = 17; + * This is a type-conversion wrapper around `getPrehookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getPrehookscreenshotsList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getPrehookscreenshotsList())); +}; + + +/** + * repeated bytes preHookScreenshots = 17; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPrehookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getPrehookscreenshotsList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getPrehookscreenshotsList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setPrehookscreenshotsList = function(value) { + return jspb.Message.setField(this, 17, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.addPrehookscreenshots = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 17, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.clearPrehookscreenshotsList = function() { + return this.setPrehookscreenshotsList([]); +}; + + +/** + * repeated bytes postHookScreenshots = 18; + * @return {!(Array|Array)} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getPosthookscreenshotsList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 18)); +}; + + +/** + * repeated bytes postHookScreenshots = 18; + * This is a type-conversion wrapper around `getPosthookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getPosthookscreenshotsList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getPosthookscreenshotsList())); +}; + + +/** + * repeated bytes postHookScreenshots = 18; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPosthookscreenshotsList()` + * @return {!Array} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getPosthookscreenshotsList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getPosthookscreenshotsList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setPosthookscreenshotsList = function(value) { + return jspb.Message.setField(this, 18, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.addPosthookscreenshots = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 18, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.clearPosthookscreenshotsList = function() { + return this.setPosthookscreenshotsList([]); +}; + + +/** + * optional bool chunked = 19; + * @return {boolean} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getChunked = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 19, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setChunked = function(value) { + return jspb.Message.setProto3BooleanField(this, 19, value); +}; + + +/** + * optional int64 chunkSize = 20; + * @return {number} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getChunksize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setChunksize = function(value) { + return jspb.Message.setProto3IntField(this, 20, value); +}; + + +/** + * repeated string preHookScreenshotFiles = 21; + * @return {!Array} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getPrehookscreenshotfilesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 21)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setPrehookscreenshotfilesList = function(value) { + return jspb.Message.setField(this, 21, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.addPrehookscreenshotfiles = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 21, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.clearPrehookscreenshotfilesList = function() { + return this.setPrehookscreenshotfilesList([]); +}; + + +/** + * repeated string postHookScreenshotFiles = 22; + * @return {!Array} + */ +proto.gauge.messages.ProtoSuiteResult.prototype.getPosthookscreenshotfilesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 22)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.setPosthookscreenshotfilesList = function(value) { + return jspb.Message.setField(this, 22, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.addPosthookscreenshotfiles = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 22, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSuiteResult} returns this + */ +proto.gauge.messages.ProtoSuiteResult.prototype.clearPosthookscreenshotfilesList = function() { + return this.setPosthookscreenshotfilesList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ProtoSpecResult.repeatedFields_ = [5,9,10]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoSpecResult.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoSpecResult.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoSpecResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoSpecResult.toObject = function(includeInstance, msg) { + var f, obj = { + protospec: (f = msg.getProtospec()) && proto.gauge.messages.ProtoSpec.toObject(includeInstance, f), + scenariocount: jspb.Message.getFieldWithDefault(msg, 2, 0), + scenariofailedcount: jspb.Message.getFieldWithDefault(msg, 3, 0), + failed: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + faileddatatablerowsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, + executiontime: jspb.Message.getFieldWithDefault(msg, 6, 0), + skipped: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + scenarioskippedcount: jspb.Message.getFieldWithDefault(msg, 8, 0), + skippeddatatablerowsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, + errorsList: jspb.Message.toObjectList(msg.getErrorsList(), + proto.gauge.messages.Error.toObject, includeInstance), + timestamp: jspb.Message.getFieldWithDefault(msg, 11, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoSpecResult} + */ +proto.gauge.messages.ProtoSpecResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoSpecResult; + return proto.gauge.messages.ProtoSpecResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoSpecResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoSpecResult} + */ +proto.gauge.messages.ProtoSpecResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ProtoSpec; + reader.readMessage(value,proto.gauge.messages.ProtoSpec.deserializeBinaryFromReader); + msg.setProtospec(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setScenariocount(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setScenariofailedcount(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setFailed(value); + break; + case 5: + var value = /** @type {!Array} */ (reader.readPackedInt32()); + msg.setFaileddatatablerowsList(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt64()); + msg.setExecutiontime(value); + break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSkipped(value); + break; + case 8: + var value = /** @type {number} */ (reader.readInt32()); + msg.setScenarioskippedcount(value); + break; + case 9: + var value = /** @type {!Array} */ (reader.readPackedInt32()); + msg.setSkippeddatatablerowsList(value); + break; + case 10: + var value = new proto.gauge.messages.Error; + reader.readMessage(value,proto.gauge.messages.Error.deserializeBinaryFromReader); + msg.addErrors(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setTimestamp(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoSpecResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoSpecResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoSpecResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoSpecResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProtospec(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ProtoSpec.serializeBinaryToWriter + ); + } + f = message.getScenariocount(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getScenariofailedcount(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } + f = message.getFailed(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getFaileddatatablerowsList(); + if (f.length > 0) { + writer.writePackedInt32( + 5, + f + ); + } + f = message.getExecutiontime(); + if (f !== 0) { + writer.writeInt64( + 6, + f + ); + } + f = message.getSkipped(); + if (f) { + writer.writeBool( + 7, + f + ); + } + f = message.getScenarioskippedcount(); + if (f !== 0) { + writer.writeInt32( + 8, + f + ); + } + f = message.getSkippeddatatablerowsList(); + if (f.length > 0) { + writer.writePackedInt32( + 9, + f + ); + } + f = message.getErrorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 10, + f, + proto.gauge.messages.Error.serializeBinaryToWriter + ); + } + f = message.getTimestamp(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } +}; + + +/** + * optional ProtoSpec protoSpec = 1; + * @return {?proto.gauge.messages.ProtoSpec} + */ +proto.gauge.messages.ProtoSpecResult.prototype.getProtospec = function() { + return /** @type{?proto.gauge.messages.ProtoSpec} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoSpec, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoSpec|undefined} value + * @return {!proto.gauge.messages.ProtoSpecResult} returns this +*/ +proto.gauge.messages.ProtoSpecResult.prototype.setProtospec = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.clearProtospec = function() { + return this.setProtospec(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoSpecResult.prototype.hasProtospec = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional int32 scenarioCount = 2; + * @return {number} + */ +proto.gauge.messages.ProtoSpecResult.prototype.getScenariocount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.setScenariocount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int32 scenarioFailedCount = 3; + * @return {number} + */ +proto.gauge.messages.ProtoSpecResult.prototype.getScenariofailedcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.setScenariofailedcount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional bool failed = 4; + * @return {boolean} + */ +proto.gauge.messages.ProtoSpecResult.prototype.getFailed = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.setFailed = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * repeated int32 failedDataTableRows = 5; + * @return {!Array} + */ +proto.gauge.messages.ProtoSpecResult.prototype.getFaileddatatablerowsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.setFaileddatatablerowsList = function(value) { + return jspb.Message.setField(this, 5, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.addFaileddatatablerows = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.clearFaileddatatablerowsList = function() { + return this.setFaileddatatablerowsList([]); +}; + + +/** + * optional int64 executionTime = 6; + * @return {number} + */ +proto.gauge.messages.ProtoSpecResult.prototype.getExecutiontime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.setExecutiontime = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional bool skipped = 7; + * @return {boolean} + */ +proto.gauge.messages.ProtoSpecResult.prototype.getSkipped = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.setSkipped = function(value) { + return jspb.Message.setProto3BooleanField(this, 7, value); +}; + + +/** + * optional int32 scenarioSkippedCount = 8; + * @return {number} + */ +proto.gauge.messages.ProtoSpecResult.prototype.getScenarioskippedcount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.setScenarioskippedcount = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * repeated int32 skippedDataTableRows = 9; + * @return {!Array} + */ +proto.gauge.messages.ProtoSpecResult.prototype.getSkippeddatatablerowsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.setSkippeddatatablerowsList = function(value) { + return jspb.Message.setField(this, 9, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.addSkippeddatatablerows = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 9, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.clearSkippeddatatablerowsList = function() { + return this.setSkippeddatatablerowsList([]); +}; + + +/** + * repeated Error errors = 10; + * @return {!Array} + */ +proto.gauge.messages.ProtoSpecResult.prototype.getErrorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.Error, 10)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoSpecResult} returns this +*/ +proto.gauge.messages.ProtoSpecResult.prototype.setErrorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 10, value); +}; + + +/** + * @param {!proto.gauge.messages.Error=} opt_value + * @param {number=} opt_index + * @return {!proto.gauge.messages.Error} + */ +proto.gauge.messages.ProtoSpecResult.prototype.addErrors = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.gauge.messages.Error, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.clearErrorsList = function() { + return this.setErrorsList([]); +}; + + +/** + * optional string timestamp = 11; + * @return {string} + */ +proto.gauge.messages.ProtoSpecResult.prototype.getTimestamp = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoSpecResult} returns this + */ +proto.gauge.messages.ProtoSpecResult.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoScenarioResult.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoScenarioResult.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoScenarioResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoScenarioResult.toObject = function(includeInstance, msg) { + var f, obj = { + protoitem: (f = msg.getProtoitem()) && proto.gauge.messages.ProtoItem.toObject(includeInstance, f), + executiontime: jspb.Message.getFieldWithDefault(msg, 2, 0), + timestamp: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoScenarioResult} + */ +proto.gauge.messages.ProtoScenarioResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoScenarioResult; + return proto.gauge.messages.ProtoScenarioResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoScenarioResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoScenarioResult} + */ +proto.gauge.messages.ProtoScenarioResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ProtoItem; + reader.readMessage(value,proto.gauge.messages.ProtoItem.deserializeBinaryFromReader); + msg.setProtoitem(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setExecutiontime(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setTimestamp(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoScenarioResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoScenarioResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoScenarioResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoScenarioResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProtoitem(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ProtoItem.serializeBinaryToWriter + ); + } + f = message.getExecutiontime(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getTimestamp(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional ProtoItem protoItem = 1; + * @return {?proto.gauge.messages.ProtoItem} + */ +proto.gauge.messages.ProtoScenarioResult.prototype.getProtoitem = function() { + return /** @type{?proto.gauge.messages.ProtoItem} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoItem, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoItem|undefined} value + * @return {!proto.gauge.messages.ProtoScenarioResult} returns this +*/ +proto.gauge.messages.ProtoScenarioResult.prototype.setProtoitem = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoScenarioResult} returns this + */ +proto.gauge.messages.ProtoScenarioResult.prototype.clearProtoitem = function() { + return this.setProtoitem(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoScenarioResult.prototype.hasProtoitem = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional int64 executionTime = 2; + * @return {number} + */ +proto.gauge.messages.ProtoScenarioResult.prototype.getExecutiontime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoScenarioResult} returns this + */ +proto.gauge.messages.ProtoScenarioResult.prototype.setExecutiontime = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional string timestamp = 3; + * @return {string} + */ +proto.gauge.messages.ProtoScenarioResult.prototype.getTimestamp = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoScenarioResult} returns this + */ +proto.gauge.messages.ProtoScenarioResult.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoStepResult.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoStepResult.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoStepResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoStepResult.toObject = function(includeInstance, msg) { + var f, obj = { + protoitem: (f = msg.getProtoitem()) && proto.gauge.messages.ProtoItem.toObject(includeInstance, f), + executiontime: jspb.Message.getFieldWithDefault(msg, 2, 0), + timestamp: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoStepResult} + */ +proto.gauge.messages.ProtoStepResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoStepResult; + return proto.gauge.messages.ProtoStepResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoStepResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoStepResult} + */ +proto.gauge.messages.ProtoStepResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.gauge.messages.ProtoItem; + reader.readMessage(value,proto.gauge.messages.ProtoItem.deserializeBinaryFromReader); + msg.setProtoitem(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setExecutiontime(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setTimestamp(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoStepResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoStepResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoStepResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoStepResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProtoitem(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.gauge.messages.ProtoItem.serializeBinaryToWriter + ); + } + f = message.getExecutiontime(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getTimestamp(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional ProtoItem protoItem = 1; + * @return {?proto.gauge.messages.ProtoItem} + */ +proto.gauge.messages.ProtoStepResult.prototype.getProtoitem = function() { + return /** @type{?proto.gauge.messages.ProtoItem} */ ( + jspb.Message.getWrapperField(this, proto.gauge.messages.ProtoItem, 1)); +}; + + +/** + * @param {?proto.gauge.messages.ProtoItem|undefined} value + * @return {!proto.gauge.messages.ProtoStepResult} returns this +*/ +proto.gauge.messages.ProtoStepResult.prototype.setProtoitem = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gauge.messages.ProtoStepResult} returns this + */ +proto.gauge.messages.ProtoStepResult.prototype.clearProtoitem = function() { + return this.setProtoitem(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gauge.messages.ProtoStepResult.prototype.hasProtoitem = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional int64 executionTime = 2; + * @return {number} + */ +proto.gauge.messages.ProtoStepResult.prototype.getExecutiontime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.ProtoStepResult} returns this + */ +proto.gauge.messages.ProtoStepResult.prototype.setExecutiontime = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional string timestamp = 3; + * @return {string} + */ +proto.gauge.messages.ProtoStepResult.prototype.getTimestamp = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoStepResult} returns this + */ +proto.gauge.messages.ProtoStepResult.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.Error.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.Error.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.Error} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.Error.toObject = function(includeInstance, msg) { + var f, obj = { + type: jspb.Message.getFieldWithDefault(msg, 1, 0), + filename: jspb.Message.getFieldWithDefault(msg, 2, ""), + linenumber: jspb.Message.getFieldWithDefault(msg, 3, 0), + message: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.Error} + */ +proto.gauge.messages.Error.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.Error; + return proto.gauge.messages.Error.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.Error} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.Error} + */ +proto.gauge.messages.Error.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.gauge.messages.Error.ErrorType} */ (reader.readEnum()); + msg.setType(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setFilename(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLinenumber(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setMessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.Error.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.Error.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.Error} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.Error.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getFilename(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getLinenumber(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } + f = message.getMessage(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.gauge.messages.Error.ErrorType = { + PARSE_ERROR: 0, + VALIDATION_ERROR: 1 +}; + +/** + * optional ErrorType type = 1; + * @return {!proto.gauge.messages.Error.ErrorType} + */ +proto.gauge.messages.Error.prototype.getType = function() { + return /** @type {!proto.gauge.messages.Error.ErrorType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.gauge.messages.Error.ErrorType} value + * @return {!proto.gauge.messages.Error} returns this + */ +proto.gauge.messages.Error.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional string filename = 2; + * @return {string} + */ +proto.gauge.messages.Error.prototype.getFilename = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.Error} returns this + */ +proto.gauge.messages.Error.prototype.setFilename = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional int32 lineNumber = 3; + * @return {number} + */ +proto.gauge.messages.Error.prototype.getLinenumber = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gauge.messages.Error} returns this + */ +proto.gauge.messages.Error.prototype.setLinenumber = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional string message = 4; + * @return {string} + */ +proto.gauge.messages.Error.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.Error} returns this + */ +proto.gauge.messages.Error.prototype.setMessage = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gauge.messages.ProtoStepValue.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gauge.messages.ProtoStepValue.prototype.toObject = function(opt_includeInstance) { + return proto.gauge.messages.ProtoStepValue.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gauge.messages.ProtoStepValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoStepValue.toObject = function(includeInstance, msg) { + var f, obj = { + stepvalue: jspb.Message.getFieldWithDefault(msg, 1, ""), + parameterizedstepvalue: jspb.Message.getFieldWithDefault(msg, 2, ""), + parametersList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gauge.messages.ProtoStepValue} + */ +proto.gauge.messages.ProtoStepValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gauge.messages.ProtoStepValue; + return proto.gauge.messages.ProtoStepValue.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gauge.messages.ProtoStepValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gauge.messages.ProtoStepValue} + */ +proto.gauge.messages.ProtoStepValue.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStepvalue(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setParameterizedstepvalue(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addParameters(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gauge.messages.ProtoStepValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gauge.messages.ProtoStepValue.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gauge.messages.ProtoStepValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gauge.messages.ProtoStepValue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStepvalue(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParameterizedstepvalue(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getParametersList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } +}; + + +/** + * optional string stepValue = 1; + * @return {string} + */ +proto.gauge.messages.ProtoStepValue.prototype.getStepvalue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoStepValue} returns this + */ +proto.gauge.messages.ProtoStepValue.prototype.setStepvalue = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string parameterizedStepValue = 2; + * @return {string} + */ +proto.gauge.messages.ProtoStepValue.prototype.getParameterizedstepvalue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gauge.messages.ProtoStepValue} returns this + */ +proto.gauge.messages.ProtoStepValue.prototype.setParameterizedstepvalue = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated string parameters = 3; + * @return {!Array} + */ +proto.gauge.messages.ProtoStepValue.prototype.getParametersList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gauge.messages.ProtoStepValue} returns this + */ +proto.gauge.messages.ProtoStepValue.prototype.setParametersList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.gauge.messages.ProtoStepValue} returns this + */ +proto.gauge.messages.ProtoStepValue.prototype.addParameters = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gauge.messages.ProtoStepValue} returns this + */ +proto.gauge.messages.ProtoStepValue.prototype.clearParametersList = function() { + return this.setParametersList([]); +}; + + +/** + * @enum {number} + */ +proto.gauge.messages.ExecutionStatus = { + NOTEXECUTED: 0, + PASSED: 1, + FAILED: 2, + SKIPPED: 3 +}; + +goog.object.extend(exports, proto.gauge.messages); diff --git a/src/helpers/CodeHelper.ts b/src/helpers/CodeHelper.ts index 7a2ad13..b60cc7b 100644 --- a/src/helpers/CodeHelper.ts +++ b/src/helpers/CodeHelper.ts @@ -22,7 +22,7 @@ export abstract class CodeHelper { protected getStepTexts(method: MethodDeclaration): Array { const dec = (method.decorators as unknown) as Array; - const stepDecExp = (dec.filter(this.isStepDecorator)[0] + const stepDecExp = (dec.filter(CodeHelper.isStepDecorator)[0] .expression as unknown) as ExpressionType; const arg = stepDecExp.arguments[0]; @@ -35,19 +35,19 @@ export abstract class CodeHelper { return [arg.text]; } - protected isStepDecorator(d: Decorator): boolean { + protected static isStepDecorator(d: Decorator): boolean { const decExp = (d.expression as unknown) as ExpressionType; return decExp.expression.escapedText === "Step"; } protected hasStepDecorator(method: MethodDeclaration): boolean { - return !!method.decorators && method.decorators.some(this.isStepDecorator); + return !!method.decorators && method.decorators.some(CodeHelper.isStepDecorator); } protected hasStepText(method: MethodDeclaration, stepText: string): boolean { const dec = (method.decorators as unknown) as Array; - const stepDecExp = (dec.filter(this.isStepDecorator)[0] + const stepDecExp = (dec.filter(CodeHelper.isStepDecorator)[0] .expression as unknown) as ExpressionType; const arg = stepDecExp.arguments[0]; diff --git a/src/loaders/ImplLoader.ts b/src/loaders/ImplLoader.ts index 6712bbd..a287f78 100644 --- a/src/loaders/ImplLoader.ts +++ b/src/loaders/ImplLoader.ts @@ -5,7 +5,7 @@ import { Util } from "../utils/Util"; type ConstructorType = new () => Record; type ModuleType = { - default: ConstructorType + default: ConstructorType } export class ImplLoader { @@ -14,19 +14,20 @@ export class ImplLoader { registry.clear(); hookRegistry.clear(); for (const file of Util.getListOfFiles()) { - process.env.STEP_FILE_PATH = file; - const c = (await Util.importFile(file)) as ModuleType; - try { + process.env.STEP_FILE_PATH = file; + const c = (await Util.importFile(file)) as ModuleType; + if (c.default && c.default.length == 0) { const instance = new c.default(); ImplLoader.updateRegistry(file, instance); } - } catch (error) { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/restrict-template-expressions - error.message = `${error.message}. Step implementations classes needs to be exported as default without any constructor`; - console.error(error); + } catch (error: unknown) { + const err = error as Error; + + err.message = `${err.message}. Step implementations classes needs to be exported as default without any constructor`; + console.error(err); } } } diff --git a/src/loaders/StaticLoader.ts b/src/loaders/StaticLoader.ts index e089c15..e926643 100644 --- a/src/loaders/StaticLoader.ts +++ b/src/loaders/StaticLoader.ts @@ -23,7 +23,7 @@ export class StaticLoader extends CodeHelper { } public loadStepsFromText(file: string, text: string): void { - const source = createSourceFile(file, text, ScriptTarget.Latest) + const source = createSourceFile(file, text, ScriptTarget.Latest); forEachChild(source, (childNode: Node) => { if (isClassDeclaration(childNode)) { @@ -31,14 +31,14 @@ export class StaticLoader extends CodeHelper { if (isMethodDeclaration(node) && this.hasStepDecorator(node)) { this.processNode(node, file, source); } - }) + }); } - }) + }); } public reloadSteps(content: string, filePath: string): void { registry.removeSteps(filePath); - this.loadStepsFromText(filePath, content) + this.loadStepsFromText(filePath, content); } public removeSteps(filePath: string): void { @@ -50,7 +50,7 @@ export class StaticLoader extends CodeHelper { const text = Util.readFile(file); this.loadStepsFromText(file, text); - }) + }); } private processNode(node: MethodDeclaration, file: string, source: SourceFile) { diff --git a/src/models/HookRegistry.ts b/src/models/HookRegistry.ts index 1b7e81e..cee8674 100644 --- a/src/models/HookRegistry.ts +++ b/src/models/HookRegistry.ts @@ -16,7 +16,7 @@ export class HookRegistry { [HookType.AfterSpec, new Array()], [HookType.AfterScenario, new Array()], [HookType.AfterStep, new Array()] - ]) + ]); } public addHook(type: HookType, method: HookMethod): void { @@ -31,7 +31,7 @@ export class HookRegistry { } if (!tags.length) { - return hooks.filter((hook) => { return hook.getTags().length === 0 }); + return hooks.filter((hook) => { return hook.getTags().length === 0; }); } return hooks.filter((hook) => { @@ -39,7 +39,7 @@ export class HookRegistry { const operator = hook.getTagAggregationOperator(); if (!hookTags.length) { - return true + return true; } const matched = HookRegistry.hasIntersection(tags, hookTags); @@ -49,7 +49,7 @@ export class HookRegistry { case Operator.Or: return matched > 0; } - }) + }); } public setInstanceForMethodsIn(file: string, instance: Record): void { @@ -61,11 +61,11 @@ export class HookRegistry { } public clear(): void { - this._hooks.forEach((v, k) => { this._hooks.set(k, new Array()) }); + this._hooks.forEach((v, k) => { this._hooks.set(k, new Array()); }); } private static hasIntersection(tags: string[], hookTags: string[]): number { - return tags.filter((t) => { return hookTags.includes(t); }).length + return tags.filter((t) => { return hookTags.includes(t); }).length; } } diff --git a/src/models/StepRegistry.ts b/src/models/StepRegistry.ts index 49d0100..34282be 100644 --- a/src/models/StepRegistry.ts +++ b/src/models/StepRegistry.ts @@ -35,7 +35,7 @@ export class StepRegistry { } public addContinueOnFailure(func: CommonFunction, exceptions?: Array): void { - this._continueOnFailureFunctions.set(func, exceptions || [AssertionError.name]) + this._continueOnFailureFunctions.set(func, exceptions || [AssertionError.name]); } public getContinueOnFailureFunctions(func: CommonFunction): Array { @@ -55,7 +55,7 @@ export class StepRegistry { positions.push({ stepValue: step, span: entry.getRange() as Range - }) + }); } }); }); @@ -66,8 +66,8 @@ export class StepRegistry { public getStepTexts(): Array { let steps: Array = []; - this._registry.forEach((v: StepRegistryEntry[], k) => { - steps = steps.concat(v[0].getStepText()) + this._registry.forEach((v: StepRegistryEntry[]) => { + steps = steps.concat(v[0].getStepText()); }); return steps; @@ -97,7 +97,7 @@ export class StepRegistry { } public setInstanceForMethodsIn(file: string, instance: Record): void { - this._registry.forEach((entries, _) => { + this._registry.forEach((entries) => { entries.forEach((entry) => { if (entry.getFilePath() === file) { entry.setInstance(instance); diff --git a/src/processors/CacheFileProcessor.ts b/src/processors/CacheFileProcessor.ts index 5a5ccac..e4bd1c0 100644 --- a/src/processors/CacheFileProcessor.ts +++ b/src/processors/CacheFileProcessor.ts @@ -1,10 +1,9 @@ -import { gauge } from "../gen/messages"; import { StaticLoader } from "../loaders/StaticLoader"; import registry from "../models/StepRegistry"; import { Util } from "../utils/Util"; -import { IMessageProcessor } from "./IMessageProcessor"; +import { CacheFileRequest } from "../gen/messages_pb"; -export class CacheFileProcessor implements IMessageProcessor { +export class CacheFileProcessor { private readonly _loader: StaticLoader; @@ -12,39 +11,31 @@ export class CacheFileProcessor implements IMessageProcessor { this._loader = loader; } - public process(message: gauge.messages.IMessage): Promise { - const req = message.cacheFileRequest as gauge.messages.CacheFileRequest - - switch (req.status) { - case gauge.messages.CacheFileRequest.FileStatus.CHANGED: - case gauge.messages.CacheFileRequest.FileStatus.OPENED: - this._loader.reloadSteps(req.content, req.filePath) + public process(req: CacheFileRequest): void { + switch (req.getStatus()) { + case CacheFileRequest.FileStatus.CHANGED: + case CacheFileRequest.FileStatus.OPENED: + this._loader.reloadSteps(req.getContent(), req.getFilepath()); break; - case gauge.messages.CacheFileRequest.FileStatus.CREATED: - if (!registry.isFileCached(req.filePath)) { - this.loadFromDisk(req.filePath); + case CacheFileRequest.FileStatus.CREATED: + if (!registry.isFileCached(req.getFilepath())) { + this.loadFromDisk(req.getFilepath()); } break; - case gauge.messages.CacheFileRequest.FileStatus.CLOSED: - this.loadFromDisk(req.filePath); - break; - case gauge.messages.CacheFileRequest.FileStatus.DELETED: - this._loader.removeSteps(req.filePath); + case CacheFileRequest.FileStatus.CLOSED: + this.loadFromDisk(req.getFilepath()); break; - default: - this._loader.reloadSteps(req.content, req.filePath) + case CacheFileRequest.FileStatus.DELETED: + this._loader.removeSteps(req.getFilepath()); break; } - - return Promise.resolve(new gauge.messages.Message()); } private loadFromDisk(filePath: string) { if (!Util.exists(filePath)) { return; } - - this._loader.reloadSteps(Util.readFile(filePath), filePath) + this._loader.reloadSteps(Util.readFile(filePath), filePath); } } \ No newline at end of file diff --git a/src/processors/DataStoreInitProcessor.ts b/src/processors/DataStoreInitProcessor.ts deleted file mode 100644 index bb26929..0000000 --- a/src/processors/DataStoreInitProcessor.ts +++ /dev/null @@ -1,33 +0,0 @@ -import {gauge} from "../gen/messages"; -import {DataStoreFactory} from ".."; -import {IMessageProcessor} from "./IMessageProcessor"; - -export class DataStoreInitProcessor implements IMessageProcessor { - - public process(message: gauge.messages.IMessage): Promise { - switch (message.messageType as gauge.messages.Message.MessageType) { - case gauge.messages.Message.MessageType.SuiteDataStoreInit: - DataStoreFactory.getSuiteDataStore().clear(); - break; - case gauge.messages.Message.MessageType.SpecDataStoreInit: - DataStoreFactory.getSpecDataStore().clear(); - break; - case gauge.messages.Message.MessageType.ScenarioDataStoreInit: - DataStoreFactory.getScenarioDataStore().clear(); - break; - } - - return Promise.resolve(new gauge.messages.Message({ - messageId: message.messageId, - messageType: gauge.messages.Message.MessageType.ExecutionStatusResponse, - executionStatusResponse: new gauge.messages.ExecutionStatusResponse({ - executionResult: new gauge.messages.ProtoExecutionResult({ - failed: false, - executionTime: 0 - }) - }) - }) - ); - } - -} diff --git a/src/processors/ExecutionEndingProcessor.ts b/src/processors/ExecutionEndingProcessor.ts index fd7ec46..7810efd 100644 --- a/src/processors/ExecutionEndingProcessor.ts +++ b/src/processors/ExecutionEndingProcessor.ts @@ -1,8 +1,8 @@ -import { gauge } from "../gen/messages"; +import { ExecutionEndingRequest, ExecutionInfo } from "../gen/messages_pb"; import { HookMethod } from "../models/HookMethod"; import hookRegistry from "../models/HookRegistry"; import { HookType } from "../models/HookType"; -import { HookExecutionProcessor } from "./HookExecutionProcessor"; +import { HookExectionRequest, HookExecutionProcessor } from "./HookExecutionProcessor"; export class ExecutionEndingProcessor extends HookExecutionProcessor { @@ -12,13 +12,14 @@ export class ExecutionEndingProcessor extends HookExecutionProcessor { super(); } - protected getApplicableHooks(message: gauge.messages.IMessage): Array { - return hookRegistry.get(this.hookType, []) + protected getApplicableHooks(): Array { + return hookRegistry.get(this.hookType, []); } - protected getExecutionInfo(message: gauge.messages.IMessage): gauge.messages.ExecutionInfo { - return (message.executionEndingRequest as gauge.messages.ExecutionEndingRequest) - .currentExecutionInfo as gauge.messages.ExecutionInfo; + protected getExecutionInfo(message: HookExectionRequest): ExecutionInfo { + const req = message as ExecutionEndingRequest; + + return req.getCurrentexecutioninfo() as ExecutionInfo; } } diff --git a/src/processors/ExecutionProcessor.ts b/src/processors/ExecutionProcessor.ts index 177fbfd..a2bb99b 100644 --- a/src/processors/ExecutionProcessor.ts +++ b/src/processors/ExecutionProcessor.ts @@ -1,26 +1,22 @@ -import { gauge } from "../gen/messages"; -import {CommonFunction, Util} from "../utils/Util"; -import { IMessageProcessor } from "./IMessageProcessor"; +import { Util, CommonFunction } from "../utils/Util"; +import { ExecutionStatusResponse } from "../gen/messages_pb"; +import { ProtoExecutionResult } from "../gen/spec_pb"; -export abstract class ExecutionProcessor implements IMessageProcessor { +export class ExecutionProcessor { - abstract process(message: gauge.messages.IMessage): Promise + protected createExecutionResponse(result: ProtoExecutionResult): ExecutionStatusResponse { + const res = new ExecutionStatusResponse(); - protected wrapInMessage(result: gauge.messages.ProtoExecutionResult, request: gauge.messages.IMessage): gauge.messages.Message { - return new gauge.messages.Message({ - messageId: request.messageId, - messageType: gauge.messages.Message.MessageType.ExecutionStatusResponse, - executionStatusResponse: new gauge.messages.ExecutionStatusResponse({ - executionResult: result - }) - }) + res.setExecutionresult(result); + + return res; } protected async executeMethod(instance: Record, method: CommonFunction, params: unknown[]): Promise { - const promise = method.apply(instance, params); - if (Util.isAsync(method)) { - await promise; + await method.apply(instance, params); + } else { + method.apply(instance, params); } } diff --git a/src/processors/ExecutionStartingProcessor.ts b/src/processors/ExecutionStartingProcessor.ts index 944c5e7..c2c0237 100644 --- a/src/processors/ExecutionStartingProcessor.ts +++ b/src/processors/ExecutionStartingProcessor.ts @@ -1,9 +1,9 @@ import { open } from "inspector"; -import { gauge } from "../gen/messages"; import { HookMethod } from "../models/HookMethod"; import hookRegistry from "../models/HookRegistry"; import { HookType } from "../models/HookType"; -import { HookExecutionProcessor } from "./HookExecutionProcessor"; +import { HookExecutionProcessor, HookExectionRequest } from "./HookExecutionProcessor"; +import { ExecutionInfo, ExecutionStartingRequest } from "../gen/messages_pb"; const ATTACH_DEBUGGER_EVENT = "Runner Ready for Debugging"; @@ -21,7 +21,7 @@ export class ExecutionStartingProcessor extends HookExecutionProcessor { while (new Date().getTime() < now + ms) { /* do nothing */ } } - protected getExecutionInfo(message: gauge.messages.IMessage): gauge.messages.ExecutionInfo { + protected getExecutionInfo(message: HookExectionRequest): ExecutionInfo { if (process.env.DEBUGGING) { const port = parseInt(process.env.DEBUG_PORT as string); @@ -29,13 +29,13 @@ export class ExecutionStartingProcessor extends HookExecutionProcessor { open(port, "127.0.0.1", true); ExecutionStartingProcessor.sleepFor(1000); } + const req = message as ExecutionStartingRequest; - return (message.executionStartingRequest as gauge.messages.ExecutionStartingRequest) - .currentExecutionInfo as gauge.messages.ExecutionInfo; + return req.getCurrentexecutioninfo() as ExecutionInfo; } - protected getApplicableHooks(message: gauge.messages.IMessage): Array { - return hookRegistry.get(this.hookType, []) + protected getApplicableHooks(): Array { + return hookRegistry.get(this.hookType, []); } } diff --git a/src/processors/HookExecutionProcessor.ts b/src/processors/HookExecutionProcessor.ts index 67c4a42..44bf43f 100644 --- a/src/processors/HookExecutionProcessor.ts +++ b/src/processors/HookExecutionProcessor.ts @@ -1,116 +1,131 @@ -import {gauge} from "../gen/messages"; -import {HookMethod} from "../models/HookMethod"; -import {HookType} from "../models/HookType"; -import {ExecutionContext, Scenario, Specification, StepInfo} from ".."; -import {Screenshot} from "../screenshot/Screenshot"; -import {MessageStore} from "../stores/MessageStore"; -import {ScreenshotStore} from "../stores/ScreenshotStore"; -import {ExecutionProcessor} from "./ExecutionProcessor"; -import hookRegistry from '../models/HookRegistry'; - -type GaugeExecutionRequestType = - gauge.messages.ScenarioExecutionEndingRequest - | gauge.messages.ScenarioExecutionStartingRequest - | gauge.messages.SpecExecutionEndingRequest - | gauge.messages.SpecExecutionStartingRequest - | gauge.messages.StepExecutionEndingRequest - | gauge.messages.StepExecutionStartingRequest; +import { HookMethod } from "../models/HookMethod"; +import { HookType } from "../models/HookType"; +import { ExecutionContext } from "../public/context/ExecutionContext"; +import { Scenario } from "../public/context/Scenario"; +import { Specification } from "../public/context/Specification"; +import { StepInfo } from "../public/context/StepInfo"; +import { Screenshot } from "../screenshot/Screenshot"; +import { MessageStore } from "../stores/MessageStore"; +import { ScreenshotStore } from "../stores/ScreenshotStore"; +import { ExecutionProcessor } from "./ExecutionProcessor"; +import { + ExecutionStartingRequest, + ExecutionStatusResponse, + ExecutionInfo, + SpecExecutionStartingRequest, + ScenarioExecutionStartingRequest, + SpecInfo, ScenarioInfo, + StepInfo as ProtoStepInfo, + ExecuteStepRequest, + StepExecutionStartingRequest, + StepExecutionEndingRequest, + ScenarioExecutionEndingRequest, + SpecExecutionEndingRequest, + ExecutionEndingRequest +} from "../gen/messages_pb"; +import { ProtoExecutionResult } from "../gen/spec_pb"; + +export type HookExectionRequest = + | ExecutionStartingRequest + | SpecExecutionStartingRequest + | ScenarioExecutionStartingRequest + | StepExecutionStartingRequest + | StepExecutionEndingRequest + | ScenarioExecutionEndingRequest + | SpecExecutionEndingRequest + | ExecutionEndingRequest; export abstract class HookExecutionProcessor extends ExecutionProcessor { protected abstract hookType: HookType; - protected abstract getExecutionInfo(message: gauge.messages.IMessage): gauge.messages.ExecutionInfo; + protected abstract getExecutionInfo(req: HookExectionRequest): ExecutionInfo; + protected abstract getApplicableHooks(req: HookExectionRequest): Array; - protected abstract getApplicableHooks(message: gauge.messages.IMessage): Array; + public async process(req: HookExectionRequest): Promise { + const res = await this.executeHooks(req); - public async process(message: gauge.messages.IMessage): Promise { - const res = await this.executeHooks(message); - - return this.wrapInMessage(res, message) - } - - protected getApplicableHooksInternal(request: GaugeExecutionRequestType): Array { - const execInfo = request.currentExecutionInfo as gauge.messages.ExecutionInfo; - const specInfo = execInfo.currentSpec as gauge.messages.ISpecInfo; - const scenarioInfo = execInfo.currentScenario as gauge.messages.IScenarioInfo; - const specTags = specInfo.tags ? specInfo.tags : []; - const scenarioTags = scenarioInfo?.tags ? scenarioInfo.tags : []; - - return hookRegistry.get(this.hookType, specTags.concat(scenarioTags)); + return this.createExecutionResponse(res); } - private async executeHooks(req: gauge.messages.IMessage): Promise { + private async executeHooks(req: HookExectionRequest): Promise { const start = Date.now(); - const context = HookExecutionProcessor.getExecutionContext(this.getExecutionInfo(req)); - const hooks = this.getApplicableHooks(req) - const result = new gauge.messages.ProtoExecutionResult(); + const context = this.getExecutionContext(this.getExecutionInfo(req)); + const hooks = this.getApplicableHooks(req); + const result = new ProtoExecutionResult(); - result.failed = false; + result.setFailed(false); try { for (const hook of hooks) { - await this.executeMethod(hook.getInstance() as Record, hook.getMethod(), [context]); + await this.executeMethod(hook.getInstance() as Record, + hook.getMethod(), [context] + ); } - } catch (error) { - result.failed = true; - result.recoverableError = false; - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-assignment - result.errorMessage = error.message; - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-assignment - result.stackTrace = error.stack; + } catch (error: unknown) { + const err = error as Error; + + result.setFailed(true); + result.setRecoverableerror(false); + result.setErrormessage(err.message); + result.setStacktrace(err.stack ?? ''); if (process.env.screenshot_on_failure !== "false") { - result.failureScreenshotFile = await Screenshot.capture(); + const s = await Screenshot.capture(); + + result.setFailurescreenshotfile(s); } } - - result.executionTime = Date.now() - start; - result.message = MessageStore.pendingMessages(); - result.screenshotFiles = ScreenshotStore.pendingScreenshots(); + result.setExecutiontime(Date.now() - start); + result.setMessageList(MessageStore.pendingMessages()); + result.setScreenshotfilesList(ScreenshotStore.pendingScreenshots()); return result; } - private static getExecutionContext(info: gauge.messages.ExecutionInfo): ExecutionContext { - if (!info) { - return new ExecutionContext(null, null, null, null); - } - - const specInfo = info.currentSpec; - const scenarioInfo = info.currentScenario; - const stepInfo = info.currentStep; - const trace = info.stacktrace; - - return new ExecutionContext(HookExecutionProcessor.toSpec(specInfo), HookExecutionProcessor.toScenario(scenarioInfo), HookExecutionProcessor.toStepInfo(stepInfo), trace) + private getExecutionContext(info: ExecutionInfo): ExecutionContext { + if (!info) { return new ExecutionContext(null, null, null, null); } + const specInfo = info.getCurrentspec(); + const scenarioInfo = info.getCurrentscenario(); + const stepInfo = info.getCurrentstep(); + const trace = info.getStacktrace(); + + return new ExecutionContext(this.toSpec(specInfo), + this.toScenario(scenarioInfo), + this.toStepInfo(stepInfo), trace + ); } - private static toSpec(specInfo: gauge.messages.ISpecInfo | null | undefined): Specification | null { - if (!specInfo) { - return null; - } + private toSpec(specInfo: SpecInfo | undefined): Specification | null { + if (!specInfo) { return null; } + const info = specInfo; - return new Specification(specInfo.name, specInfo.fileName, specInfo.isFailed, specInfo.tags); + return new Specification(info.getName(), info.getFilename(), + info.getIsfailed(), info.getTagsList() + ); } - private static toScenario(scenInfo: gauge.messages.IScenarioInfo | null | undefined): Scenario | null { - if (!scenInfo) { - return null; - } + private toScenario(scenInfo: ScenarioInfo | undefined): Scenario | null { + if (!scenInfo) { return null; } + const info = scenInfo; - return new Scenario(scenInfo.name, scenInfo.isFailed, scenInfo.tags); + return new Scenario(info.getName(), info.getIsfailed(), info.getTagsList()); } - private static toStepInfo(stepInfo: gauge.messages.IStepInfo | null | undefined): StepInfo | null { - if (!stepInfo) { - return null; - } + private toStepInfo(stepInfo: ProtoStepInfo | undefined): StepInfo | null { + if (!stepInfo) { return null; } + const info = stepInfo; - if (stepInfo.step) { - const step = stepInfo.step as gauge.messages.ExecuteStepRequest; + if (info.getStep()) { + const step = info.getStep() as ExecuteStepRequest; - return new StepInfo(step.parsedStepText, step.actualStepText, stepInfo.isFailed, stepInfo.errorMessage, stepInfo.stackTrace); + return new StepInfo(step.getParsedsteptext(), + step.getActualsteptext(), stepInfo.getIsfailed(), + stepInfo.getErrormessage(), stepInfo.getStacktrace() + ); } - return new StepInfo(null, null, stepInfo.isFailed, stepInfo.errorMessage, stepInfo.stackTrace); + return new StepInfo(null, null, info.getIsfailed(), + stepInfo.getErrormessage(), stepInfo.getStacktrace() + ); } } diff --git a/src/processors/IMessageProcessor.ts b/src/processors/IMessageProcessor.ts deleted file mode 100644 index 999d3b9..0000000 --- a/src/processors/IMessageProcessor.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { gauge } from "../gen/messages"; - -export interface IMessageProcessor { - process(message: gauge.messages.IMessage): Promise; -} diff --git a/src/processors/ImplementationFileGlobPatternProcessor.ts b/src/processors/ImplementationFileGlobPatternProcessor.ts deleted file mode 100644 index 5332077..0000000 --- a/src/processors/ImplementationFileGlobPatternProcessor.ts +++ /dev/null @@ -1,23 +0,0 @@ -import {sep} from 'path'; -import {gauge} from '../gen/messages'; -import {Util} from '../utils/Util'; -import {IMessageProcessor} from './IMessageProcessor'; - -export class ImplementationFileGlobPatternProcessor implements IMessageProcessor { - - public async process(message: gauge.messages.IMessage): Promise { - const patterns = Util.getImplDirs().map((dir: string) => { - return dir.split(sep).concat(['**', '*.ts']).join('/'); - }) - - return Promise.resolve(new gauge.messages.Message({ - messageId: message.messageId, - messageType: gauge.messages.Message.MessageType.ImplementationFileGlobPatternResponse, - implementationFileGlobPatternResponse: new gauge.messages.ImplementationFileGlobPatternResponse({ - globPatterns: patterns - }) - }) - ); - } - -} diff --git a/src/processors/ImplementationFileListProcessor.ts b/src/processors/ImplementationFileListProcessor.ts deleted file mode 100644 index ec0f72b..0000000 --- a/src/processors/ImplementationFileListProcessor.ts +++ /dev/null @@ -1,19 +0,0 @@ -import {gauge} from '../gen/messages'; -import {Util} from '../utils/Util'; -import {IMessageProcessor} from './IMessageProcessor'; - -export class ImplementationFileListProcessor implements IMessageProcessor { - - public async process(message: gauge.messages.IMessage): Promise { - return Promise.resolve( - new gauge.messages.Message({ - messageId: message.messageId, - messageType: gauge.messages.Message.MessageType.ImplementationFileListResponse, - implementationFileListResponse: new gauge.messages.ImplementationFileListResponse({ - implementationFilePaths: Util.getListOfFiles() - }) - }) - ) - } - -} diff --git a/src/processors/MessageProcessorFactory.ts b/src/processors/MessageProcessorFactory.ts deleted file mode 100644 index 6c791eb..0000000 --- a/src/processors/MessageProcessorFactory.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { EventEmitter } from "events"; -import { gauge } from "../gen/messages"; -import { ImplLoader } from "../loaders/ImplLoader"; -import { StaticLoader } from "../loaders/StaticLoader"; -import { CacheFileProcessor } from "./CacheFileProcessor"; -import { DataStoreInitProcessor } from "./DataStoreInitProcessor"; -import { ExecutionEndingProcessor } from "./ExecutionEndingProcessor"; -import { ExecutionStartingProcessor } from "./ExecutionStartingProcessor"; -import { IMessageProcessor } from "./IMessageProcessor"; -import { ImplementationFileGlobPatternProcessor } from "./ImplementationFileGlobPatternProcessor"; -import { ImplementationFileListProcessor } from "./ImplementationFileListProcessor"; -import { RefactorProcessor } from "./RefactorProcessor"; -import { ScenarioExecutionEndingProcessor } from "./ScenarioExecutionEndingProcessor"; -import { ScenarioExecutionStartingProcessor } from "./ScenarioExecutionStartingProcessor"; -import { SpecExecutionEndingProcessor } from "./SpecExecutionEndingProcessor"; -import { SpecExecutionStartingProcessor } from "./SpecExecutionStartingProcessor"; -import { StepExecutionEndingProcessor } from "./StepExecutionEndingProcessor"; -import { StepExecutionProcessor } from "./StepExecutionProcessor"; -import { StepExecutionStartingProcessor } from "./StepExecutionStartingProcessor"; -import { StepNameProcessor } from "./StepNameProcessor"; -import { StepNamesProcessor } from "./StepNamesProcessor"; -import { StepPositionsProcessor } from "./StepPositionsProcessor"; -import { StubImplementationCodeProcessor } from "./StubImplementationCodeProcessor"; -import { ValidationProcessor } from "./ValidationProcessor"; - -export class MessageProcessorFactory extends EventEmitter { - - private _processors: Map; - private readonly _loader: StaticLoader; - - constructor(loader: StaticLoader) { - super(); - this._loader = loader; - this._processors = new Map([ - [gauge.messages.Message.MessageType.StepValidateRequest, new ValidationProcessor()], - [gauge.messages.Message.MessageType.RefactorRequest, new RefactorProcessor()], - [gauge.messages.Message.MessageType.StepNameRequest, new StepNameProcessor()], - - [gauge.messages.Message.MessageType.StepNamesRequest, new StepNamesProcessor()], - [gauge.messages.Message.MessageType.CacheFileRequest, new CacheFileProcessor(this._loader)], - [gauge.messages.Message.MessageType.StepPositionsRequest, new StepPositionsProcessor()], - [gauge.messages.Message.MessageType.ImplementationFileListRequest, new ImplementationFileListProcessor()], - [gauge.messages.Message.MessageType.StubImplementationCodeRequest, new StubImplementationCodeProcessor()], - [gauge.messages.Message.MessageType.StepPositionsRequest, new StepPositionsProcessor()], - [gauge.messages.Message.MessageType.ImplementationFileGlobPatternRequest, new ImplementationFileGlobPatternProcessor()], - - [gauge.messages.Message.MessageType.SuiteDataStoreInit, new DataStoreInitProcessor()], - [gauge.messages.Message.MessageType.SpecDataStoreInit, new DataStoreInitProcessor()], - [gauge.messages.Message.MessageType.ScenarioDataStoreInit, new DataStoreInitProcessor()], - - [gauge.messages.Message.MessageType.ExecutionStarting, new ExecutionStartingProcessor()], - [gauge.messages.Message.MessageType.SpecExecutionStarting, new SpecExecutionStartingProcessor()], - [gauge.messages.Message.MessageType.ScenarioExecutionStarting, new ScenarioExecutionStartingProcessor()], - [gauge.messages.Message.MessageType.StepExecutionStarting, new StepExecutionStartingProcessor()], - - [gauge.messages.Message.MessageType.ExecuteStep, new StepExecutionProcessor()], - - [gauge.messages.Message.MessageType.StepExecutionEnding, new StepExecutionEndingProcessor()], - [gauge.messages.Message.MessageType.ScenarioExecutionEnding, new ScenarioExecutionEndingProcessor()], - [gauge.messages.Message.MessageType.SpecExecutionEnding, new SpecExecutionEndingProcessor()], - [gauge.messages.Message.MessageType.ExecutionEnding, new ExecutionEndingProcessor()], - ]) - } - - public get(messageType: gauge.messages.Message.MessageType): IMessageProcessor { - return this._processors.get(messageType) as IMessageProcessor; - } - - public async process(message: gauge.messages.IMessage): Promise { - switch (message.messageType) { - case gauge.messages.Message.MessageType.KillProcessRequest: - process.exit(0); - - return; - case gauge.messages.Message.MessageType.ExecutionStarting: { - const loader = new ImplLoader(); - - await loader.loadImplementations(); - break; - } - } - - await this._process(message); - } - - private async _process(message: gauge.messages.IMessage) { - try { - const processor = this._processors.get(message.messageType as gauge.messages.Message.MessageType); - - if (processor) { - const res = await processor.process(message); - - this.emit('messageProcessed', res); - } else { - console.error(new Error('Unknown message type ' + - gauge.messages.Message.MessageType[message.messageType as number])); - process.exit(1); - } - } - catch (error) { - console.error(error); - process.exit(1); - } - } - -} diff --git a/src/processors/RefactorProcessor.ts b/src/processors/RefactorProcessor.ts index 34759f5..cc323e7 100644 --- a/src/processors/RefactorProcessor.ts +++ b/src/processors/RefactorProcessor.ts @@ -1,149 +1,130 @@ -import {EOL} from "os"; -import { - createNodeArray, - createParameter, - createSourceFile, - Decorator, - EmitHint, - forEachChild, - isClassDeclaration, - isMethodDeclaration, - MethodDeclaration, - Node, - NodeArray, - ParameterDeclaration, - ScriptKind, - ScriptTarget, - SourceFile, - TextRange -} from "typescript"; -import {gauge} from "../gen/messages"; -import {CodeHelper, ExpressionType} from "../helpers/CodeHelper"; +import { EOL } from "os"; +import { createParameter, createSourceFile, Decorator, EmitHint, forEachChild, isClassDeclaration, isMethodDeclaration, MethodDeclaration, Node, NodeArray, ParameterDeclaration, ScriptKind, ScriptTarget, SourceFile } from "typescript"; +import { CodeHelper } from "../helpers/CodeHelper"; import registry from "../models/StepRegistry"; -import {Util} from "../utils/Util"; -import {IMessageProcessor} from "./IMessageProcessor"; +import { Util } from "../utils/Util"; +import { RefactorRequest, RefactorResponse, ParameterPosition, FileChanges, TextDiff } from "../gen/messages_pb"; +import { ProtoStepValue, Span } from "../gen/spec_pb"; -export class RefactorProcessor extends CodeHelper implements IMessageProcessor { +export class RefactorProcessor extends CodeHelper { - public process(message: gauge.messages.IMessage): Promise { - const req = message.refactorRequest as gauge.messages.RefactorRequest; - const oldStep = req.oldStepValue as gauge.messages.ProtoStepValue; - const newStep = req.newStepValue as gauge.messages.ProtoStepValue; + public process(req: RefactorRequest): RefactorResponse { + const oldStep = req.getOldstepvalue() as ProtoStepValue; + const newStep = req.getNewstepvalue() as ProtoStepValue; - if (registry.hasMultipleImplementations(oldStep.stepValue)) { - return RefactorProcessor.wrapInMessage(message, new gauge.messages.RefactorResponse({ - success: false, - error: `Multiple Implementation found for ${oldStep.parameterizedStepValue}` - })); + if (registry.hasMultipleImplementations(oldStep.getStepvalue())) { + const res = new RefactorResponse(); + + res.setSuccess(false); + res.setError(`Multiple Implementation found for ${oldStep.getParameterizedstepvalue()}`); + + return res; } - const positions = req.paramPositions.map((p) => { - return new gauge.messages.ParameterPosition({ - newPosition: p.newPosition || 0, - oldPosition: p.oldPosition || 0 - }) - }) - - return RefactorProcessor.wrapInMessage(message, this.refactor(oldStep, newStep, positions, req.saveChanges)); + const positions = req.getParampositionsList().map((p) => { + const pp = new ParameterPosition(); + + pp.setNewposition(p.getNewposition()); + pp.setOldposition(p.getOldposition()); + + return pp; + }); + + return this.refactor(oldStep, newStep, positions); } - private refactor(oldStep: gauge.messages.ProtoStepValue, newStep: gauge.messages.ProtoStepValue, paramPositions: gauge.messages.IParameterPosition[], saveChanges: boolean): gauge.messages.RefactorResponse { - const response = new gauge.messages.RefactorResponse(); + private refactor(oldStep: ProtoStepValue, newStep: ProtoStepValue, paramPositions: ParameterPosition[]): RefactorResponse { + const response = new RefactorResponse(); try { - const info = registry.get(oldStep.stepValue); + const info = registry.get(oldStep.getStepvalue()); const filePath = info.getFilePath(); const source = createSourceFile(filePath, Util.readFile(filePath), ScriptTarget.Latest, false, ScriptKind.TS); - const change1: gauge.messages.FileChanges = new gauge.messages.FileChanges({fileName: filePath, diffs: []}); - const change2: gauge.messages.FileChanges = new gauge.messages.FileChanges({fileName: filePath, diffs: []}); + const change1 = new FileChanges(); + + change1.setFilename(filePath); + const change2 = new FileChanges(); + change2.setFilename(filePath); forEachChild(source, (childNode: Node) => { if (isClassDeclaration(childNode)) { forEachChild(childNode, (node: Node) => { if (isMethodDeclaration(node) && this.hasStepDecorator(node) && this.hasStepText(node, info.getStepText())) { - change1.diffs.push(new gauge.messages.TextDiff({ - content: `"${newStep.parameterizedStepValue}"`, - span: this.getStepTextRange(source, node) - })) - this.updateStepText(node, newStep); - change2.diffs.push(new gauge.messages.TextDiff({span: RefactorProcessor.createSpan(source, node.parameters)})) + const diff1 = new TextDiff(); + const span = this.getStepTextRange(source, node); + + diff1.setContent(`"${newStep.getParameterizedstepvalue()}"`); + diff1.setSpan(span); + change1.addDiffs(diff1); + + const diff2 = new TextDiff(); const oldParams = node.parameters; const newParams = new Array(); for (const p of paramPositions) { - if ((p.oldPosition as number) < 0) { - const pName = this.getParamName(paramPositions.indexOf(p), oldParams, source) + if (p.getOldposition() < 0) { + const pName = this.getParamName(paramPositions.indexOf(p), oldParams, source); - newParams.splice(p.newPosition as number, 0, createParameter(undefined, undefined, undefined, `${pName}: any`)) + newParams.splice(p.getNewposition(), 0, createParameter(undefined, undefined, undefined, `${pName}: any`)); } else { - newParams.splice(p.newPosition as number, 0, oldParams[p.oldPosition as number]) + newParams.splice(p.getNewposition(), 0, oldParams[p.getOldposition()]); } } - node.parameters = createNodeArray(newParams); - change2.diffs[0].content = newParams.map((p) => { + const content = newParams.map((p) => { return this.printer.printNode(EmitHint.Unspecified, p, source); }).join(', '); + + diff2.setContent(content); + diff2.setSpan(this.createSpan(source, node.parameters)); + change2.addDiffs(diff2); } - }) + }); } - }) - if (saveChanges) { - Util.writeFile(filePath, this.printer.printFile(source)) - } - - response.filesChanged = [filePath]; - response.fileChanges = [change1, change2]; - response.success = true; - } catch (error) { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/restrict-plus-operands - response.error = error.message + EOL + error.stack; - response.success = false + }); + response.setFileschangedList([filePath]); + response.setFilechangesList([change1, change2]); + response.setSuccess(true); + } catch (error: unknown) { + const err = error as Error; + + response.setError(`${err.message}${EOL}${err.stack ?? ''}`); + response.setSuccess(false); } return response; } - private updateStepText(node: MethodDeclaration, newStep: gauge.messages.ProtoStepValue) { - const dec = (node.decorators as unknown) as Array; - const stepDecExp = dec.filter(this.isStepDecorator)[0].expression as unknown as ExpressionType; - - stepDecExp.arguments[0].text = newStep.parameterizedStepValue; - } - private getParamName(index: number, params: NodeArray, source: SourceFile): string { const name = `arg${index}`; const p = params.map((p) => { - return this.printer.printNode(EmitHint.Unspecified, p, source) - }) + return this.printer.printNode(EmitHint.Unspecified, p, source); + }); - return !p.includes(name) ? name : this.getParamName(index++, params, source) + return !p.includes(name) ? name : this.getParamName(index++, params, source); } - private getStepTextRange(source: SourceFile, node: MethodDeclaration): gauge.messages.Span { + private getStepTextRange(source: SourceFile, node: MethodDeclaration): Span { const dec = (node.decorators as unknown) as Array; - const stepDecExp = dec.filter(this.isStepDecorator)[0].expression as unknown as ExpressionType; + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any + const stepDecExp = dec.filter(CodeHelper.isStepDecorator)[0].expression as any; - return RefactorProcessor.createSpan(source, stepDecExp.arguments[0]) + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access + return this.createSpan(source, stepDecExp.arguments[0]); } - private static createSpan(source: SourceFile, node: TextRange): gauge.messages.Span { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + private createSpan(source: SourceFile, node: any): Span { + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access const start = source.getLineAndCharacterOfPosition(node.pos); + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access const end = source.getLineAndCharacterOfPosition(node.end); + const span = new Span(); - return new gauge.messages.Span({ - start: start.line + 1, - startChar: start.character, - end: end.line + 1, - endChar: end.character - }) - } + span.setStart(start.line + 1); + span.setStartchar(start.character); + span.setEnd(end.line + 1); + span.setEndchar(end.character); - private static wrapInMessage(message: gauge.messages.IMessage, res: gauge.messages.RefactorResponse): Promise { - return Promise.resolve(new gauge.messages.Message({ - messageId: message.messageId, - messageType: gauge.messages.Message.MessageType.RefactorResponse, - refactorResponse: res - }) - ); + return span; } } diff --git a/src/processors/ScenarioExecutionEndingProcessor.ts b/src/processors/ScenarioExecutionEndingProcessor.ts index 9de8dc1..34bfbfc 100644 --- a/src/processors/ScenarioExecutionEndingProcessor.ts +++ b/src/processors/ScenarioExecutionEndingProcessor.ts @@ -1,7 +1,8 @@ -import {gauge} from "../gen/messages"; -import {HookMethod} from "../models/HookMethod"; -import {HookType} from "../models/HookType"; -import {HookExecutionProcessor} from "./HookExecutionProcessor"; +import { ExecutionInfo, ScenarioExecutionEndingRequest, ScenarioInfo, SpecInfo } from "../gen/messages_pb"; +import { HookMethod } from "../models/HookMethod"; +import hookRegistry from "../models/HookRegistry"; +import { HookType } from "../models/HookType"; +import { HookExectionRequest, HookExecutionProcessor } from "./HookExecutionProcessor"; export class ScenarioExecutionEndingProcessor extends HookExecutionProcessor { @@ -11,15 +12,18 @@ export class ScenarioExecutionEndingProcessor extends HookExecutionProcessor { super(); } - protected getExecutionInfo(message: gauge.messages.IMessage): gauge.messages.ExecutionInfo { - return (message.scenarioExecutionEndingRequest as gauge.messages.ScenarioExecutionEndingRequest) - .currentExecutionInfo as gauge.messages.ExecutionInfo; + protected getExecutionInfo(hookExecreq: HookExectionRequest): ExecutionInfo { + const req = hookExecreq as ScenarioExecutionEndingRequest; + + return req.getCurrentexecutioninfo() as ExecutionInfo; } - protected getApplicableHooks(message: gauge.messages.IMessage): Array { - const request = message.scenarioExecutionEndingRequest as gauge.messages.ScenarioExecutionEndingRequest; + protected getApplicableHooks(hookExecReq: HookExectionRequest): Array { + const execInfo = this.getExecutionInfo(hookExecReq); + const specInfo = execInfo.getCurrentspec() as SpecInfo; + const scenInfo = execInfo.getCurrentscenario() as ScenarioInfo; - return this.getApplicableHooksInternal(request); + return hookRegistry.get(this.hookType, specInfo.getTagsList().concat(scenInfo.getTagsList())); } } diff --git a/src/processors/ScenarioExecutionStartingProcessor.ts b/src/processors/ScenarioExecutionStartingProcessor.ts index 17e16b7..c8d4161 100644 --- a/src/processors/ScenarioExecutionStartingProcessor.ts +++ b/src/processors/ScenarioExecutionStartingProcessor.ts @@ -1,8 +1,8 @@ -import {gauge} from "../gen/messages"; -import {HookMethod} from "../models/HookMethod"; -import {HookType} from "../models/HookType"; -import {HookExecutionProcessor} from "./HookExecutionProcessor"; - +import { ExecutionInfo, ScenarioExecutionStartingRequest, ScenarioInfo, SpecInfo } from "../gen/messages_pb"; +import { HookMethod } from "../models/HookMethod"; +import hookRegistry from "../models/HookRegistry"; +import { HookType } from "../models/HookType"; +import { HookExectionRequest, HookExecutionProcessor } from "./HookExecutionProcessor"; export class ScenarioExecutionStartingProcessor extends HookExecutionProcessor { protected hookType: HookType = HookType.BeforeScenario; @@ -11,15 +11,18 @@ export class ScenarioExecutionStartingProcessor extends HookExecutionProcessor { super(); } - protected getExecutionInfo(message: gauge.messages.IMessage): gauge.messages.ExecutionInfo { - return (message.scenarioExecutionStartingRequest as gauge.messages.ScenarioExecutionStartingRequest) - .currentExecutionInfo as gauge.messages.ExecutionInfo; + protected getExecutionInfo(hookExecreq: HookExectionRequest): ExecutionInfo { + const req = hookExecreq as ScenarioExecutionStartingRequest; + + return req.getCurrentexecutioninfo() as ExecutionInfo; } - protected getApplicableHooks(message: gauge.messages.IMessage): Array { - const request = message.scenarioExecutionStartingRequest as gauge.messages.ScenarioExecutionStartingRequest; + protected getApplicableHooks(hookExecReq: HookExectionRequest): Array { + const execInfo = this.getExecutionInfo(hookExecReq); + const specInfo = execInfo.getCurrentspec() as SpecInfo; + const scenInfo = execInfo.getCurrentscenario() as ScenarioInfo; - return this.getApplicableHooksInternal(request); + return hookRegistry.get(this.hookType, specInfo.getTagsList().concat(scenInfo.getTagsList())); } } diff --git a/src/processors/SpecExecutionEndingProcessor.ts b/src/processors/SpecExecutionEndingProcessor.ts index 2a57204..147a4d0 100644 --- a/src/processors/SpecExecutionEndingProcessor.ts +++ b/src/processors/SpecExecutionEndingProcessor.ts @@ -1,8 +1,8 @@ -import { gauge } from "../gen/messages"; +import { ExecutionInfo, SpecExecutionEndingRequest, SpecInfo } from "../gen/messages_pb"; import { HookMethod } from "../models/HookMethod"; import hookRegistry from "../models/HookRegistry"; import { HookType } from "../models/HookType"; -import { HookExecutionProcessor } from "./HookExecutionProcessor"; +import { HookExectionRequest, HookExecutionProcessor } from "./HookExecutionProcessor"; export class SpecExecutionEndingProcessor extends HookExecutionProcessor { protected hookType: HookType = HookType.AfterSpec; @@ -11,15 +11,17 @@ export class SpecExecutionEndingProcessor extends HookExecutionProcessor { super(); } - protected getExecutionInfo(message: gauge.messages.IMessage): gauge.messages.ExecutionInfo { - return (message.specExecutionEndingRequest as gauge.messages.SpecExecutionEndingRequest) - .currentExecutionInfo as gauge.messages.ExecutionInfo; + protected getExecutionInfo(hookExecreq: HookExectionRequest): ExecutionInfo { + const req = hookExecreq as SpecExecutionEndingRequest; + + return req.getCurrentexecutioninfo() as ExecutionInfo; } - protected getApplicableHooks(message: gauge.messages.IMessage): Array { - const request = message.specExecutionEndingRequest as gauge.messages.SpecExecutionEndingRequest; + protected getApplicableHooks(hookExecReq: HookExectionRequest): Array { + const execInfo = this.getExecutionInfo(hookExecReq); + const specInfo = execInfo.getCurrentspec() as SpecInfo; - return this.getApplicableHooksInternal(request); + return hookRegistry.get(this.hookType, specInfo.getTagsList()); } } diff --git a/src/processors/SpecExecutionStartingProcessor.ts b/src/processors/SpecExecutionStartingProcessor.ts index 1aa22da..94862f3 100644 --- a/src/processors/SpecExecutionStartingProcessor.ts +++ b/src/processors/SpecExecutionStartingProcessor.ts @@ -1,24 +1,28 @@ -import {gauge} from "../gen/messages"; -import {HookMethod} from "../models/HookMethod"; -import {HookType} from "../models/HookType"; -import {HookExecutionProcessor} from "./HookExecutionProcessor"; +import { ExecutionInfo, SpecExecutionStartingRequest, SpecInfo } from "../gen/messages_pb"; +import { HookMethod } from "../models/HookMethod"; +import hookRegistry from "../models/HookRegistry"; +import { HookType } from "../models/HookType"; +import { HookExectionRequest, HookExecutionProcessor } from "./HookExecutionProcessor"; export class SpecExecutionStartingProcessor extends HookExecutionProcessor { protected hookType: HookType = HookType.BeforeSpec; + constructor() { super(); } - protected getExecutionInfo(message: gauge.messages.IMessage): gauge.messages.ExecutionInfo { - return (message.specExecutionStartingRequest as gauge.messages.SpecExecutionStartingRequest) - .currentExecutionInfo as gauge.messages.ExecutionInfo; + protected getExecutionInfo(hookExecreq: HookExectionRequest): ExecutionInfo { + const req = hookExecreq as SpecExecutionStartingRequest; + + return req.getCurrentexecutioninfo() as ExecutionInfo; } - protected getApplicableHooks(message: gauge.messages.IMessage): Array { - const request = message.specExecutionStartingRequest as gauge.messages.SpecExecutionStartingRequest; + protected getApplicableHooks(hookExecReq: HookExectionRequest): Array { + const execInfo = this.getExecutionInfo(hookExecReq); + const specInfo = execInfo.getCurrentspec() as SpecInfo; - return this.getApplicableHooksInternal(request); + return hookRegistry.get(this.hookType, specInfo.getTagsList()); } } diff --git a/src/processors/StepExecutionEndingProcessor.ts b/src/processors/StepExecutionEndingProcessor.ts index 814d9da..5524b4e 100644 --- a/src/processors/StepExecutionEndingProcessor.ts +++ b/src/processors/StepExecutionEndingProcessor.ts @@ -1,8 +1,8 @@ -import {gauge} from "../gen/messages"; -import {HookMethod} from "../models/HookMethod"; -import {HookType} from "../models/HookType"; -import {HookExecutionProcessor} from "./HookExecutionProcessor"; - +import { ExecutionInfo, ScenarioInfo, SpecInfo, StepExecutionEndingRequest } from "../gen/messages_pb"; +import { HookMethod } from "../models/HookMethod"; +import hookRegistry from "../models/HookRegistry"; +import { HookType } from "../models/HookType"; +import { HookExectionRequest, HookExecutionProcessor } from "./HookExecutionProcessor"; export class StepExecutionEndingProcessor extends HookExecutionProcessor { protected hookType: HookType = HookType.AfterStep; @@ -11,15 +11,18 @@ export class StepExecutionEndingProcessor extends HookExecutionProcessor { super(); } - protected getExecutionInfo(message: gauge.messages.IMessage): gauge.messages.ExecutionInfo { - return (message.stepExecutionEndingRequest as gauge.messages.StepExecutionEndingRequest) - .currentExecutionInfo as gauge.messages.ExecutionInfo; + protected getExecutionInfo(hookExecreq: HookExectionRequest): ExecutionInfo { + const req = hookExecreq as StepExecutionEndingRequest; + + return req.getCurrentexecutioninfo() as ExecutionInfo; } - protected getApplicableHooks(message: gauge.messages.IMessage): Array { - const request = message.stepExecutionEndingRequest as gauge.messages.StepExecutionEndingRequest; + protected getApplicableHooks(hookExecReq: HookExectionRequest): Array { + const execInfo = this.getExecutionInfo(hookExecReq); + const specInfo = execInfo.getCurrentspec() as SpecInfo; + const scenInfo = execInfo.getCurrentscenario() as ScenarioInfo; - return this.getApplicableHooksInternal(request); + return hookRegistry.get(this.hookType, specInfo.getTagsList().concat(scenInfo.getTagsList())); } } diff --git a/src/processors/StepExecutionProcessor.ts b/src/processors/StepExecutionProcessor.ts index ff99435..adec67b 100644 --- a/src/processors/StepExecutionProcessor.ts +++ b/src/processors/StepExecutionProcessor.ts @@ -1,73 +1,71 @@ -import {gauge} from "../gen/messages"; +import { ExecuteStepRequest, ExecutionStatusResponse } from '../gen/messages_pb'; +import { ProtoExecutionResult, ProtoTable } from '../gen/spec_pb'; import registry from '../models/StepRegistry'; -import {Screenshot} from "../screenshot/Screenshot"; -import {MessageStore} from "../stores/MessageStore"; -import {ScreenshotStore} from "../stores/ScreenshotStore"; -import {ExecutionProcessor} from "./ExecutionProcessor"; -import {CommonFunction} from '../utils/Util'; +import { Screenshot } from "../screenshot/Screenshot"; +import { MessageStore } from "../stores/MessageStore"; +import { ScreenshotStore } from "../stores/ScreenshotStore"; +import { ExecutionProcessor } from "./ExecutionProcessor"; +import { CommonFunction } from '../utils/Util'; export class StepExecutionProcessor extends ExecutionProcessor { - public async process(message: gauge.messages.IMessage): Promise { - const req = message.executeStepRequest as gauge.messages.ExecuteStepRequest; - - if (!registry.isImplemented(req.parsedStepText)) - {return Promise.resolve(this.executionError("Step Implementation not found", message));} + public async process(req: ExecuteStepRequest): Promise { + if (!registry.isImplemented(req.getParsedsteptext())) { return Promise.resolve(this.executionError("Step Implementation not found")); } const result = await this.execute(req); - return this.wrapInMessage(result, message); + return this.createExecutionResponse(result); } - private async execute(req: gauge.messages.ExecuteStepRequest): Promise { + private async execute(req: ExecuteStepRequest): Promise { const start = Date.now(); - const result = new gauge.messages.ProtoExecutionResult(); + const result = new ProtoExecutionResult(); - result.failed = false; - const mi = registry.get(req.parsedStepText) - const params = req.parameters.map((item) => { - return item.value ? item.value : item.table + result.setFailed(false); + const mi = registry.get(req.getParsedsteptext()); + const params = req.getParametersList().map((item) => { + return item.getValue() ? item.getValue() : (item.getTable() as ProtoTable).toObject(); }); const method = mi.getMethod() as CommonFunction; try { if (method.length !== params.length) { - throw new Error(`Argument length mismatch for \`${req.actualStepText}\`.` + - ` Actual Count: [${method.length}], Expected Count: [${params.length}]`) + throw new Error(`Argument length mismatch for \`${req.getActualsteptext()}\`.` + + ` Actual Count: [${method.length}], Expected Count: [${params.length}]`); } await this.executeMethod(mi.getInstance() as Record, method, params); - } catch (error) { - result.failed = true; + } catch (err) { + const error = err as Error; + + result.setFailed(true); const cofErrors = registry.getContinueOnFailureFunctions(method); - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access if (cofErrors && cofErrors.includes(error.constructor.name)) { - result.recoverableError = true; + result.setRecoverableerror(true); } - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-assignment - result.errorMessage = error.message; - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access - result.stackTrace = error.stack; + result.setErrormessage(error.message); + result.setStacktrace(error.stack ?? ''); if (process.env.screenshot_on_failure !== "false") { - result.failureScreenshotFile = await Screenshot.capture(); + const s = await Screenshot.capture(); + + result.setFailurescreenshotfile(s); } } - - result.executionTime = Date.now() - start; - result.message = MessageStore.pendingMessages(); - result.screenshotFiles = ScreenshotStore.pendingScreenshots(); + result.setExecutiontime(Date.now() - start); + result.setMessageList(MessageStore.pendingMessages()); + result.setScreenshotfilesList(ScreenshotStore.pendingScreenshots()); return result; } - private executionError(message: string, req: gauge.messages.IMessage): gauge.messages.IMessage { - const result = new gauge.messages.ProtoExecutionResult(); + private executionError(message: string): ExecutionStatusResponse { + const result = new ProtoExecutionResult(); - result.failed = true; - result.recoverableError = false; - result.executionTime = 0; - result.errorMessage = message; + result.setFailed(true); + result.setRecoverableerror(false); + result.setExecutiontime(0); + result.setErrormessage(message); - return this.wrapInMessage(result, req); + return this.createExecutionResponse(result); } } diff --git a/src/processors/StepExecutionStartingProcessor.ts b/src/processors/StepExecutionStartingProcessor.ts index 5620e8a..3cc269d 100644 --- a/src/processors/StepExecutionStartingProcessor.ts +++ b/src/processors/StepExecutionStartingProcessor.ts @@ -1,7 +1,8 @@ -import {gauge} from "../gen/messages"; -import {HookMethod} from "../models/HookMethod"; -import {HookType} from "../models/HookType"; -import {HookExecutionProcessor} from "./HookExecutionProcessor"; +import { ExecutionInfo, ScenarioInfo, SpecInfo, StepExecutionStartingRequest } from "../gen/messages_pb"; +import { HookMethod } from "../models/HookMethod"; +import hookRegistry from "../models/HookRegistry"; +import { HookType } from "../models/HookType"; +import { HookExectionRequest, HookExecutionProcessor } from "./HookExecutionProcessor"; export class StepExecutionStartingProcessor extends HookExecutionProcessor { @@ -11,15 +12,18 @@ export class StepExecutionStartingProcessor extends HookExecutionProcessor { super(); } - public getExecutionInfo(message: gauge.messages.IMessage): gauge.messages.ExecutionInfo { - return (message.stepExecutionStartingRequest as gauge.messages.StepExecutionStartingRequest) - .currentExecutionInfo as gauge.messages.ExecutionInfo; + protected getExecutionInfo(hookExecreq: HookExectionRequest): ExecutionInfo { + const req = hookExecreq as StepExecutionStartingRequest; + + return req.getCurrentexecutioninfo() as ExecutionInfo; } - protected getApplicableHooks(message: gauge.messages.IMessage): Array { - const request = message.stepExecutionStartingRequest as gauge.messages.StepExecutionStartingRequest; + protected getApplicableHooks(hookExecReq: HookExectionRequest): Array { + const execInfo = this.getExecutionInfo(hookExecReq); + const specInfo = execInfo.getCurrentspec() as SpecInfo; + const scenInfo = execInfo.getCurrentscenario() as ScenarioInfo; - return this.getApplicableHooksInternal(request); + return hookRegistry.get(this.hookType, specInfo.getTagsList().concat(scenInfo.getTagsList())); } } diff --git a/src/processors/StepNameProcessor.ts b/src/processors/StepNameProcessor.ts index bd8d703..df68c90 100644 --- a/src/processors/StepNameProcessor.ts +++ b/src/processors/StepNameProcessor.ts @@ -1,42 +1,33 @@ -import {gauge} from "../gen/messages"; -import {Range} from "../models/Range"; +import { StepNameRequest, StepNameResponse } from "../gen/messages_pb"; +import { Span } from "../gen/spec_pb"; +import { Range } from "../models/Range"; import registry from "../models/StepRegistry"; -import {IMessageProcessor} from "./IMessageProcessor"; -export class StepNameProcessor implements IMessageProcessor { +export class StepNameProcessor { - public process(message: gauge.messages.IMessage): Promise { - const req = message.stepNameRequest as gauge.messages.StepNameRequest; + public process(req: StepNameRequest): StepNameResponse { + const res = new StepNameResponse(); - const resMes = new gauge.messages.Message({ - messageId: message.messageId, - messageType: gauge.messages.Message.MessageType.StepNameResponse, - }); + if (!registry.isImplemented(req.getStepvalue())) { + res.setIssteppresent(false); + } else { + const info = registry.get(req.getStepvalue()); + const range = info.getRange() as Range; - if (!registry.isImplemented(req.stepValue)) { - resMes.stepNameResponse = new gauge.messages.StepNameResponse({isStepPresent: false}); + res.setIssteppresent(true); + res.setFilename(info.getFilePath()); + res.setHasalias(info.hasAlias()); + res.setStepnameList([info.getStepText()]); + const span = new Span(); - return Promise.resolve(resMes); + span.setStart(range.getStart().getLine()); + span.setStartchar(range.getStart().getChar()); + span.setEnd(range.getEnd().getLine()); + span.setEndchar(range.getEnd().getChar()); + res.setSpan(span); } - const info = registry.get(req.stepValue); - const span = info.getRange() as Range; - - resMes.stepNameResponse = new gauge.messages.StepNameResponse({ - isStepPresent: true, - fileName: info.getFilePath(), - hasAlias: info.hasAlias(), - stepName: [info.getStepText()], - span: new gauge.messages.Span({ - start: span.getStart().getLine(), - startChar: span.getStart().getChar(), - end: span.getEnd().getLine(), - endChar: span.getEnd().getChar(), - }), - - }); - - return Promise.resolve(resMes); + return res; } } \ No newline at end of file diff --git a/src/processors/StepNamesProcessor.ts b/src/processors/StepNamesProcessor.ts deleted file mode 100644 index e6875e9..0000000 --- a/src/processors/StepNamesProcessor.ts +++ /dev/null @@ -1,18 +0,0 @@ -import {gauge} from "../gen/messages"; -import registry from "../models/StepRegistry"; -import {IMessageProcessor} from "./IMessageProcessor"; - -export class StepNamesProcessor implements IMessageProcessor { - - public process(message: gauge.messages.IMessage): Promise { - return Promise.resolve(new gauge.messages.Message({ - messageId: message.messageId, - messageType: gauge.messages.Message.MessageType.StepNamesResponse, - stepNamesResponse: new gauge.messages.StepNamesResponse({ - steps: registry.getStepTexts() - }) - }) - ); - } - -} \ No newline at end of file diff --git a/src/processors/StepPositionsProcessor.ts b/src/processors/StepPositionsProcessor.ts index 757296c..2e1edad 100644 --- a/src/processors/StepPositionsProcessor.ts +++ b/src/processors/StepPositionsProcessor.ts @@ -1,37 +1,41 @@ -import {gauge} from "../gen/messages"; -import {Range} from "../models/Range"; +import { StepPositionsRequest, StepPositionsResponse } from "../gen/messages_pb"; +import { Span } from "../gen/spec_pb"; +import { Range } from "../models/Range"; import registry from "../models/StepRegistry"; -import {IMessageProcessor} from "./IMessageProcessor"; -export class StepPositionsProcessor implements IMessageProcessor { +export class StepPositionsProcessor { - public process(message: gauge.messages.IMessage): Promise { - const req = message.stepPositionsRequest as gauge.messages.StepPositionsRequest; - const positions = registry.getStepPositions(req.filePath); + public process(req: StepPositionsRequest): StepPositionsResponse { + const positions = registry.getStepPositions(req.getFilepath()); - return Promise.resolve(new gauge.messages.Message({ - messageId: message.messageId, - messageType: gauge.messages.Message.MessageType.StepPositionsResponse, - stepPositionsResponse: StepPositionsProcessor.createStepPositionsResponse(positions) - }) - ); + return this.createStepPostionsResponse(positions); } - private static createStepPositionsResponse(positions: { stepValue: string; span: Range; }[]): gauge.messages.StepPositionsResponse { - return new gauge.messages.StepPositionsResponse({ - error: "", - stepPositions: positions.map((p) => { - return new gauge.messages.StepPositionsResponse.StepPosition({ - stepValue: p.stepValue, - span: new gauge.messages.Span({ - start: p.span.getStart().getLine(), - end: p.span.getEnd().getLine(), - startChar: p.span.getStart().getChar(), - endChar: p.span.getEnd().getChar() - }) - }); - }) - }); + private createStepPostionsResponse(positions: { stepValue: string; span: Range; }[]): StepPositionsResponse { + const res = new StepPositionsResponse(); + + res.setError(""); + res.setSteppositionsList(positions.map((p) => { + const sp = new StepPositionsResponse.StepPosition(); + + sp.setStepvalue(p.stepValue); + sp.setSpan(this.getSpan(p.span)); + + return sp; + })); + + return res; + } + + private getSpan(range: Range): Span { + const span = new Span(); + + span.setStart(range.getStart().getLine()); + span.setEnd(range.getEnd().getLine()); + span.setStartchar(range.getStart().getChar()); + span.setEndchar(range.getEnd().getChar()); + + return span; } } \ No newline at end of file diff --git a/src/processors/StubImplementationCodeProcessor.ts b/src/processors/StubImplementationCodeProcessor.ts index d491e3c..ff05cc8 100644 --- a/src/processors/StubImplementationCodeProcessor.ts +++ b/src/processors/StubImplementationCodeProcessor.ts @@ -1,5 +1,5 @@ -import {EOL} from "os"; -import {basename} from "path"; +import { EOL } from "os"; +import { basename } from "path"; import { createSourceFile, Extension, @@ -9,32 +9,36 @@ import { Node, ScriptTarget } from "typescript"; -import {gauge} from "../gen/messages"; -import {Util} from "../utils/Util"; -import {IMessageProcessor} from "./IMessageProcessor"; +import { FileDiff, StubImplementationCodeRequest, TextDiff } from "../gen/messages_pb"; +import { Span } from "../gen/spec_pb"; +import { Util } from "../utils/Util"; -export class StubImplementationCodeProcessor implements IMessageProcessor { +export class StubImplementationCodeProcessor { - public process(message: gauge.messages.IMessage): Promise { - const req = message.stubImplementationCodeRequest as gauge.messages.StubImplementationCodeRequest - const filePath = req.implementationFilePath; - const content = req.codes.reduce((acc, cur) => { - return acc + EOL + cur - }); + public process(req: StubImplementationCodeRequest): FileDiff { + const filePath = req.getImplementationfilepath(); + const content = req.getCodesList().reduce((acc, cur) => { return acc + EOL + cur; }); + const fileDiff = new FileDiff(); + + fileDiff.setFilepath(filePath); + const textDiffs = new Array(); if (!Util.exists(filePath)) { const filePath = Util.getNewTSFileName(Util.getImplDirs()[0]); const className = basename(filePath).replace(Extension.Ts, ''); - return StubImplementationCodeProcessor.wrapInMessage(message, filePath, StubImplementationCodeProcessor.diffForImplementationInNewClass(content, className)) + textDiffs.push(this.diffForImplementationInNewClass(content, className)); + } else { + textDiffs.push(this.diffForImplementationInExistingClass(filePath, content)); } + fileDiff.setTextdiffsList(textDiffs); - return StubImplementationCodeProcessor.wrapInMessage(message, filePath, this.diffForImplementationInExistingClass(filePath, content)); + return fileDiff; } - private diffForImplementationInExistingClass(filePath: string, content: string): gauge.messages.TextDiff[] { + private diffForImplementationInExistingClass(filePath: string, content: string): TextDiff { const fileContent = Util.readFile(filePath).toString().replace("\r\n", "\n"); - const source = createSourceFile(filePath, fileContent, ScriptTarget.Latest) + const source = createSourceFile(filePath, fileContent, ScriptTarget.Latest); let lastMethod: Node | null = null; forEachChild(source, (childNode: Node) => { @@ -43,55 +47,46 @@ export class StubImplementationCodeProcessor implements IMessageProcessor { if (isMethodDeclaration(node)) { lastMethod = node; } - }) + }); } - }) - const pos = source.getLineAndCharacterOfPosition((lastMethod as unknown as Node).end) - const span = new gauge.messages.Span({start: pos.line + 1, end: pos.line + 1, startChar: 0, endChar: 0}); - const textDiff = new gauge.messages.TextDiff({ - span: span, content: content.split(EOL).map((c) => { - return '\t' + c - }).join(EOL) + EOL }); + const pos = source.getLineAndCharacterOfPosition((lastMethod as unknown as Node).end); + const span = new Span(); - return [textDiff]; - } + span.setStart(pos.line + 1); + span.setEnd(pos.line + 1); + span.setStartchar(0); + span.setEndchar(0); + const textDiff = new TextDiff(); + + textDiff.setSpan(span); + textDiff.setContent(content.split(EOL).map((c) => { return '\t' + c; }).join(EOL) + EOL); - private static wrapInMessage(message: gauge.messages.IMessage, filePath: string, diffs: gauge.messages.TextDiff[]): Promise { - return Promise.resolve( - new gauge.messages.Message({ - messageId: message.messageId, - messageType: gauge.messages.Message.MessageType.FileDiff, - fileDiff: new gauge.messages.FileDiff({ - filePath: filePath, - textDiffs: diffs - }) - }) - ); + return textDiff; } - private static diffForImplementationInNewClass(content: string, className: string): gauge.messages.TextDiff[] { - const span = new gauge.messages.Span({ - start: 0, - end: 0, - startChar: 0, - endChar: 0 - }); - const textDiff = new gauge.messages.TextDiff({ - span: span, - content: StubImplementationCodeProcessor.getContentForNewClass(content, className) - }); + private diffForImplementationInNewClass(content: string, className: string): TextDiff { + const span = new Span(); + + span.setStart(0); + span.setEnd(0); + span.setStartchar(0); + span.setEndchar(0); + const textDiff = new TextDiff(); + + textDiff.setSpan(span); + textDiff.setContent(this.getContentForNewClass(content, className)); - return [textDiff] + return textDiff; } - private static getContentForNewClass(content: string, className: string): string { + private getContentForNewClass(content: string, className: string): string { return `import { Step } from "gauge-ts";` + EOL + `export default class ${className} {` + EOL + `${content.split(EOL).map((c) => { - return '\t' + c + return '\t' + c; }).join(EOL)}` + EOL + - `}` + `}`; } } diff --git a/src/processors/ValidationProcessor.ts b/src/processors/ValidationProcessor.ts index cb16592..30a54ec 100644 --- a/src/processors/ValidationProcessor.ts +++ b/src/processors/ValidationProcessor.ts @@ -1,63 +1,49 @@ -import {randomBytes} from 'crypto'; -import {EOL} from "os"; -import {gauge} from "../gen/messages"; +import { randomBytes } from 'crypto'; +import { EOL } from "os"; +import { StepValidateRequest, StepValidateResponse } from '../gen/messages_pb'; +import { ProtoStepValue } from '../gen/spec_pb'; import registry from "../models/StepRegistry"; -import {IMessageProcessor} from "./IMessageProcessor"; -export class ValidationProcessor implements IMessageProcessor { - - public process(message: gauge.messages.IMessage): Promise { - const req = message.stepValidateRequest as gauge.messages.StepValidateRequest; - const step = (req.stepValue as gauge.messages.ProtoStepValue); - const stepValue = step.parameterizedStepValue; - let isValid = true; - let errorMessage = ""; - let errorType; - - if (!registry.isImplemented(req.stepText)) { - isValid = false; - errorMessage = "No step implementation found for " + stepValue - errorType = gauge.messages.StepValidateResponse.ErrorType.STEP_IMPLEMENTATION_NOT_FOUND; - } else if (registry.hasMultipleImplementations(req.stepText)) { - isValid = false; - errorMessage = "Multiple step implementation found for " + stepValue - errorType = gauge.messages.StepValidateResponse.ErrorType.DUPLICATE_STEP_IMPLEMENTATION; +export class ValidationProcessor { + + public process(req: StepValidateRequest): StepValidateResponse { + const step = req.getStepvalue() as ProtoStepValue; + const stepValue = step.getParameterizedstepvalue(); + + const res = new StepValidateResponse(); + + res.setIsvalid(true); + res.setErrormessage(""); + if (!registry.isImplemented(req.getSteptext())) { + res.setIsvalid(false); + res.setErrormessage("No step implementation found for " + stepValue); + res.setErrortype(StepValidateResponse.ErrorType.STEP_IMPLEMENTATION_NOT_FOUND); + res.setSuggestion(this.getSuggestion(step)); + } else if (registry.hasMultipleImplementations(req.getSteptext())) { + res.setIsvalid(false); + res.setErrormessage("Multiple step implementation found for " + stepValue); + res.setErrortype(StepValidateResponse.ErrorType.DUPLICATE_STEP_IMPLEMENTATION); } - return Promise.resolve( - new gauge.messages.Message({ - messageId: message.messageId, - messageType: gauge.messages.Message.MessageType.StepValidateResponse, - stepValidateResponse: new gauge.messages.StepValidateResponse({ - isValid: isValid, - errorMessage: errorMessage, - errorType: errorType, - suggestion: this.getSuggestion(isValid, step) - }) - }) - ); + return res; + } - private getSuggestion(isValid: boolean, step: gauge.messages.ProtoStepValue): string { - if (isValid) { - return ""; - } + private getSuggestion(step: ProtoStepValue): string { let argCount = 0; - const stepText = step.stepValue.replace(/{}/g, function () { - return ``; - }); + const stepText = step.getParameterizedstepvalue().replace(/{}/g, function () { return ``; }); return `@Step("${stepText}")` + EOL + - `public async ${ValidationProcessor.getMethodName(stepText)}(${ValidationProcessor.getParamsList(step.parameters)}) {` + EOL + + `public async ${this.getMethodName()}(${this.getParamsList(step.getParametersList())}) {` + EOL + `\tthrow new Error("Method not implemented.");` + EOL + '}'; } - private static getMethodName(stepText: string) { - return `implementation${randomBytes(10).toString('hex')}` + private getMethodName() { + return `implementation${randomBytes(10).toString('hex')}`; } - private static getParamsList(params: string[]): string { + private getParamsList(params: string[]): string { if (!params || !params.length) { return ''; } diff --git a/src/public/decorators.ts b/src/public/decorators.ts index 7af0cce..a649f77 100644 --- a/src/public/decorators.ts +++ b/src/public/decorators.ts @@ -43,7 +43,7 @@ export function BeforeSuite(): MethodDecorator { return function (target: unknown, _propertyKey, descriptor: PropertyDescriptor) { const file = process.env.STEP_FILE_PATH as string; - hookRegistry.addHook(HookType.BeforeSuite, new HookMethod(descriptor.value, file)) + hookRegistry.addHook(HookType.BeforeSuite, new HookMethod(descriptor.value, file)); }; } @@ -51,7 +51,7 @@ export function AfterSuite(): MethodDecorator { return function (target: unknown, _propertyKey, descriptor: PropertyDescriptor) { const file = process.env.STEP_FILE_PATH as string; - hookRegistry.addHook(HookType.AfterSuite, new HookMethod(descriptor.value, file)) + hookRegistry.addHook(HookType.AfterSuite, new HookMethod(descriptor.value, file)); }; } @@ -59,7 +59,7 @@ export function BeforeSpec(options?: { tags: Array, operator?: Operator return function (target: unknown, _propertyKey, descriptor: PropertyDescriptor) { const file = process.env.STEP_FILE_PATH as string; - hookRegistry.addHook(HookType.BeforeSpec, new HookMethod(descriptor.value, file, options)) + hookRegistry.addHook(HookType.BeforeSpec, new HookMethod(descriptor.value, file, options)); }; } @@ -67,7 +67,7 @@ export function AfterSpec(options?: { tags: Array, operator?: Operator } return function (target: unknown, _propertyKey, descriptor: PropertyDescriptor) { const file = process.env.STEP_FILE_PATH as string; - hookRegistry.addHook(HookType.AfterSpec, new HookMethod(descriptor.value, file, options)) + hookRegistry.addHook(HookType.AfterSpec, new HookMethod(descriptor.value, file, options)); }; } @@ -75,7 +75,7 @@ export function BeforeScenario(options?: { tags: Array, operator?: Opera return function (target: unknown, _propertyKey, descriptor: PropertyDescriptor) { const file = process.env.STEP_FILE_PATH as string; - hookRegistry.addHook(HookType.BeforeScenario, new HookMethod(descriptor.value, file, options)) + hookRegistry.addHook(HookType.BeforeScenario, new HookMethod(descriptor.value, file, options)); }; } @@ -83,7 +83,7 @@ export function AfterScenario(options?: { tags: Array, operator?: Operat return function (target: unknown, _propertyKey, descriptor: PropertyDescriptor) { const file = process.env.STEP_FILE_PATH as string; - hookRegistry.addHook(HookType.AfterScenario, new HookMethod(descriptor.value, file, options)) + hookRegistry.addHook(HookType.AfterScenario, new HookMethod(descriptor.value, file, options)); }; } @@ -91,7 +91,7 @@ export function BeforeStep(options?: { tags: Array, operator?: Operator return function (target: unknown, _propertyKey, descriptor: PropertyDescriptor) { const file = process.env.STEP_FILE_PATH as string; - hookRegistry.addHook(HookType.BeforeStep, new HookMethod(descriptor.value, file, options)) + hookRegistry.addHook(HookType.BeforeStep, new HookMethod(descriptor.value, file, options)); }; } @@ -99,7 +99,7 @@ export function AfterStep(options?: { tags: Array, operator?: Operator } return function (target: unknown, _propertyKey, descriptor: PropertyDescriptor) { const file = process.env.STEP_FILE_PATH as string; - hookRegistry.addHook(HookType.AfterStep, new HookMethod(descriptor.value, file, options)) + hookRegistry.addHook(HookType.AfterStep, new HookMethod(descriptor.value, file, options)); }; } @@ -107,7 +107,7 @@ export function AfterStep(options?: { tags: Array, operator?: Operator } * @deprecated Use CustomScreenshotWriter instead. */ export function CustomScreenGrabber(): MethodDecorator { - console.warn("CustomScreenGrabber is deprecated. Please use CustomScreenWriter.") + console.warn("CustomScreenGrabber is deprecated. Please use CustomScreenWriter."); return function (target: unknown, _propertyKey, descriptor: PropertyDescriptor) { Screenshot.setCustomScreenGrabber(descriptor.value); diff --git a/src/screenshot/Screenshot.ts b/src/screenshot/Screenshot.ts index 290603e..337f05f 100644 --- a/src/screenshot/Screenshot.ts +++ b/src/screenshot/Screenshot.ts @@ -1,6 +1,6 @@ import { writeFileSync } from "fs"; import { basename } from "path"; -import {CommonAsyncFunction, CommonFunction, Util} from "../utils/Util"; +import { CommonAsyncFunction, CommonFunction, Util } from "../utils/Util"; export class Screenshot { @@ -10,22 +10,25 @@ export class Screenshot { public static async capture(): Promise { try { if (this.customScreenshotWriter != null) { - if (Util.isAsync(this.customScreenshotWriter)) { - return await this.customScreenshotWriter(); + const out = this.customScreenshotWriter(); + + if (out.constructor.name === Promise.name) { + return await out; } else { - return Promise.resolve(this.customScreenshotWriter()); + return out; } } else if (this.customScreenGrabber != null) { let data: Uint8Array; + const out = this.customScreenGrabber(); - if (Util.isAsync(this.customScreenshotWriter)) { - data = await this.customScreenGrabber(); + if (out.constructor.name === Promise.name) { + data = await out; } else { - data = this.customScreenGrabber() as Uint8Array; + data = out as Uint8Array; } const file = Util.getUniqueScreenshotFileName(); - writeFileSync(file, data) + writeFileSync(file, data); return basename(file); } @@ -33,7 +36,7 @@ export class Screenshot { return this.captureScreenshot(); } } catch (error) { - console.log(error) + console.log(error); } return Promise.resolve(""); @@ -48,7 +51,7 @@ export class Screenshot { return basename(filename); } catch (error) { // eslint-disable-next-line @typescript-eslint/restrict-template-expressions - throw new Error(`\nFailed to take screenshot using gauge_screenshot.\n${error}`) + throw new Error(`\nFailed to take screenshot using gauge_screenshot.\n${error}`); } } diff --git a/src/stores/DataStore.ts b/src/stores/DataStore.ts index 26a2134..f1afeb2 100644 --- a/src/stores/DataStore.ts +++ b/src/stores/DataStore.ts @@ -18,6 +18,10 @@ export class DataStore { this.store.clear(); } + get length(): number { + return this.store.size; + } + public entries(): IterableIterator<[unknown, unknown]> { return this.store.entries(); } diff --git a/src/utils/Util.ts b/src/utils/Util.ts index 7690ca8..bc27260 100644 --- a/src/utils/Util.ts +++ b/src/utils/Util.ts @@ -92,11 +92,11 @@ export class Util { public static isAsync(m: CommonFunction): boolean { // eslint-disable-next-line @typescript-eslint/no-empty-function - return m instanceof (async () => {}).constructor; + return m instanceof (async () => { }).constructor; } public static getUniqueScreenshotFileName(): string { - const dir = process.env.gauge_screenshots_dir as string; + const dir = process.env.gauge_screenshots_dir as string ?? ''; return join(dir, `screenshot-${v4()}.png`); } diff --git a/tests/RunnerServiceImplTests.ts b/tests/RunnerServiceImplTests.ts new file mode 100644 index 0000000..50bd08b --- /dev/null +++ b/tests/RunnerServiceImplTests.ts @@ -0,0 +1,475 @@ + +import { mockProcessExit } from 'jest-mock-process'; +import { EOL } from 'os'; +import { StaticLoader } from '../src/loaders/StaticLoader'; +import { createMock } from 'ts-auto-mock'; +import registry from '../src/models/StepRegistry'; +import { RunnerServiceImpl } from '../src/RunnerServiceImpl'; +import { Util } from '../src/utils/Util'; +import { + StepNamesRequest as SNsReq, + StepNamesResponse as SNsRes, + ImplementationFileGlobPatternResponse as IFGPRes, + Empty, + KillProcessRequest as KPReq, + StepNameRequest as SNReq, + StepNameResponse as SNRes, + RefactorRequest as RReq, + RefactorResponse as RRes, + StepValidateRequest as SVReq, + StepValidateResponse as SVRes, + StubImplementationCodeRequest as SICReq, + FileDiff, + CacheFileRequest as CFReq, + ImplementationFileListResponse as IFLRes, + StepPositionsRequest as SPReq, + StepPositionsResponse as SPRes, + SuiteDataStoreInitRequest, + ExecutionStatusResponse as ESR, + SpecDataStoreInitRequest, + ScenarioDataStoreInitRequest, + ExecutionStartingRequest, + SpecExecutionStartingRequest, + ExecutionInfo, + SpecInfo, + ScenarioExecutionStartingRequest, + ScenarioInfo, + StepInfo, StepExecutionStartingRequest, StepExecutionEndingRequest, ExecuteStepRequest, ScenarioExecutionEndingRequest, SpecExecutionEndingRequest, ExecutionEndingRequest +} from '../src/gen/messages_pb'; +import { ServerUnaryCall as SUC, Server, StatusObject } from '@grpc/grpc-js'; +import { ServerErrorResponse } from '@grpc/grpc-js/build/src/server-call'; +import { ProtoStepValue } from '../src/gen/spec_pb'; +import { Position } from '../src/models/Position'; +import { Range } from '../src/models/Range'; +import { DataStoreFactory } from '../src/stores/DataStoreFactory'; + +type error = Partial | ServerErrorResponse | null; + +describe('RunnerServiceImpl', () => { + + const text1 = `import { Step } from "gauge-ts";` + EOL + + `export default class StepImpl {` + EOL + + ` @Step("foo")` + EOL + + ` public async foo() {` + EOL + + ` console.log("Hello World");` + EOL + + ` }` + EOL + + `}`; + + let loader: StaticLoader; + let handler: RunnerServiceImpl; + + beforeEach(() => { + jest.clearAllMocks(); + loader = new StaticLoader(); + handler = new RunnerServiceImpl(createMock(), loader); + registry.clear(); + }); + + describe('.initializeSuiteDataStore', () => { + it('should initialise suite data store', (done) => { + // eslint-disable-next-line @typescript-eslint/no-empty-function + Util.importFile = jest.fn().mockReturnValue({ default: () => { } }); + Util.getListOfFiles = jest.fn().mockReturnValue([]); + + const call = createMock>(); + + handler.initializeSuiteDataStore(call, (err: error, res: ESR | null) => { + expect(err).toBe(null); + expect(res?.getExecutionresult()?.getFailed()).toBeFalsy(); + expect(DataStoreFactory.getSuiteDataStore().length).toBe(0); + done(); + }); + }); + }); + + describe('.initializeSuiteDataStore', () => { + it('should fail to initialise suite data store', (done) => { + DataStoreFactory.getSuiteDataStore = jest.fn().mockImplementation(() => { throw new Error(); }); + // eslint-disable-next-line @typescript-eslint/no-empty-function + Util.importFile = jest.fn().mockReturnValue({ default: () => { } }); + Util.getListOfFiles = jest.fn().mockReturnValue([]); + + const call = createMock>(); + + handler.initializeSuiteDataStore(call, (err: error) => { + expect(err).not.toBeNull(); + done(); + }); + }); + }); + + describe('.initializeSpecDataStore', () => { + it('should initialise spec data store', (done) => { + const call = createMock>(); + + handler.initializeSpecDataStore(call, (err: error) => { + expect(err).toBe(null); + expect(DataStoreFactory.getSpecDataStore().length).toBe(0); + done(); + }); + }); + }); + + describe('.initializeSpecDataStore', () => { + it('should fail to initialise spec data store', (done) => { + DataStoreFactory.getSpecDataStore = jest.fn().mockImplementation(() => { throw new Error(); }); + const call = createMock>(); + + handler.initializeSpecDataStore(call, (err: error) => { + expect(err).not.toBe(null); + done(); + }); + }); + }); + + describe('.initializeScenarioDataStore', () => { + it('should initialise scenario data store', (done) => { + const call = createMock>(); + + handler.initializeScenarioDataStore(call, (err: error) => { + expect(err).toBe(null); + expect(DataStoreFactory.getScenarioDataStore().length).toBe(0); + done(); + }); + }); + }); + + describe('.initializeScenarioDataStore', () => { + it('should fail to initialise scenario data store', (done) => { + DataStoreFactory.getScenarioDataStore = jest.fn().mockImplementation(() => { throw new Error(); }); + const call = createMock>(); + + handler.initializeScenarioDataStore(call, (err: error) => { + expect(err).not.toBe(null); + done(); + }); + }); + }); + + describe('.startExecution', () => { + it('should start suite execution', (done) => { + const req = new ExecutionStartingRequest(); + const call = createMock>({ request: req }); + + handler.startExecution(call, (err: error) => { + expect(err).toBe(null); + done(); + }); + }); + }); + + describe('.startSpecExecution', () => { + it('should start spec execution', (done) => { + const req = new SpecExecutionStartingRequest(); + const info = new ExecutionInfo(); + + info.setCurrentspec(new SpecInfo()); + req.setCurrentexecutioninfo(info); + const call = createMock>({ request: req }); + + handler.startSpecExecution(call, (err: error) => { + expect(err).toBe(null); + done(); + }); + }); + }); + + describe('.startScenarioExecution', () => { + it('should start scenario execution', (done) => { + const req = new ScenarioExecutionStartingRequest(); + const info = new ExecutionInfo(); + + info.setCurrentspec(new SpecInfo()); + info.setCurrentscenario(new ScenarioInfo()); + req.setCurrentexecutioninfo(info); + const call = createMock>({ request: req }); + + handler.startScenarioExecution(call, (err: error) => { + expect(err).toBe(null); + done(); + }); + }); + }); + + describe('.startStepExecution', () => { + it('should start step execution', (done) => { + const req = new StepExecutionStartingRequest(); + const info = new ExecutionInfo(); + + info.setCurrentspec(new SpecInfo()); + info.setCurrentscenario(new ScenarioInfo()); + info.setCurrentspec(new SpecInfo()); + info.setCurrentstep(new StepInfo()); + req.setCurrentexecutioninfo(info); + const call = createMock>({ request: req }); + + handler.startStepExecution(call, (err: error) => { + expect(err).toBe(null); + done(); + }); + }); + }); + + describe('.executeStep', () => { + it('should execute step', (done) => { + const req = new ExecuteStepRequest(); + + const call = createMock>({ request: req }); + + handler.executeStep(call, (err: error) => { + expect(err).toBe(null); + done(); + }); + }); + }); + + describe('.finishStepExecution', () => { + it('should finish step execution', (done) => { + const req = new StepExecutionEndingRequest(); + const info = new ExecutionInfo(); + + info.setCurrentspec(new SpecInfo()); + info.setCurrentscenario(new ScenarioInfo()); + info.setCurrentspec(new SpecInfo()); + info.setCurrentstep(new StepInfo()); + req.setCurrentexecutioninfo(info); + const call = createMock>({ request: req }); + + handler.finishStepExecution(call, (err: error) => { + expect(err).toBe(null); + done(); + }); + }); + }); + + describe('.finishScenarioExecution', () => { + it('should finish scenario execution', (done) => { + const req = new ScenarioExecutionEndingRequest(); + const info = new ExecutionInfo(); + + info.setCurrentspec(new SpecInfo()); + info.setCurrentscenario(new ScenarioInfo()); + req.setCurrentexecutioninfo(info); + const call = createMock>({ request: req }); + + handler.finishScenarioExecution(call, (err: error) => { + expect(err).toBe(null); + done(); + }); + }); + }); + + describe('.finishSpecExecution', () => { + it('should finish spec execution', (done) => { + const req = new SpecExecutionEndingRequest(); + const info = new ExecutionInfo(); + + info.setCurrentspec(new SpecInfo()); + req.setCurrentexecutioninfo(info); + const call = createMock>({ request: req }); + + handler.finishSpecExecution(call, (err: error) => { + expect(err).toBe(null); + done(); + }); + }); + }); + + describe('.finishExecution', () => { + it('should finish suite execution', (done) => { + const req = new ExecutionEndingRequest(); + const call = createMock>({ request: req }); + + handler.finishExecution(call, (err: error) => { + expect(err).toBe(null); + done(); + }); + }); + }); + + describe('.getGlobPstters', () => { + it('should give all patterns', () => { + Util.getImplDirs = jest.fn().mockReturnValue(['src', 'tests']); + const call = createMock>(); + + call.request = new Empty(); + handler.getGlobPatterns(call, (err: error, res: IFGPRes | null) => { + expect(err).toBe(null); + const patterns = res?.getGlobpatternsList(); + + expect(patterns).toStrictEqual(['src/**/*.ts', 'tests/**/*.ts']); + }); + }); + }); + + describe('.cacheFile', () => { + it('should update the registry', () => { + const req = new CFReq(); + + req.setContent(text1); + req.setFilepath('StepImpl.ts'); + req.setStatus(CFReq.FileStatus.OPENED); + + const call = createMock>({ request: req }); + + handler.cacheFile(call, (err: error) => { + expect(err).toBe(null); + expect(registry.isImplemented('foo')).toBe(true); + }); + }); + }); + + describe('.getStepNames', () => { + it('should give all the step names', () => { + registry.getStepTexts = jest.fn().mockReturnValue(['foo']); + const call = createMock>(); + + handler.getStepNames(call, (err: error, res: SNsRes | null) => { + expect(err).toBe(null); + expect(res?.getStepsList()).toStrictEqual(['foo']); + }); + }); + }); + + describe('.getStepPositions', () => { + it('should give step positions', () => { + const req = new SPReq(); + + req.setFilepath("StepImpl.ts"); + registry.getStepPositions = jest.fn().mockReturnValue([{ + stepValue: 'foo', + span: new Range(new Position(3, 5), new Position(8, 5)) + }]); + const call = createMock>({ request: req }); + + handler.getStepPositions(call, (err: error, res: SPRes | null) => { + expect(err).toBe(null); + const positions = res?.getSteppositionsList() ?? []; + + expect(positions.length).toBe(1); + expect(positions[0].getStepvalue()).toBe('foo'); + const span = positions[0].getSpan(); + + expect(span?.getStart()).toBe(3); + expect(span?.getStartchar()).toBe(5); + expect(span?.getEnd()).toBe(8); + expect(span?.getEndchar()).toBe(5); + }); + }); + }); + + describe('.getImplementationFiles', () => { + it('should give all the step impl files', () => { + Util.getListOfFiles = jest.fn().mockReturnValue(['StepImpl.ts']); + const call = createMock>(); + + handler.getImplementationFiles(call, (err: error, res: IFLRes | null) => { + expect(err).toBe(null); + expect(res?.getImplementationfilepathsList()).toStrictEqual(['StepImpl.ts']); + }); + }); + }); + + describe('.implementStub', () => { + it('implement a stub', () => { + Util.exists = jest.fn().mockReturnValue(true); + Util.readFile = jest.fn().mockReturnValue(text1); + const code = `@Step("bar")` + EOL + + `public async foo() {` + EOL + + ` console.log("Hello World");` + EOL + + `}`; + const req = new SICReq(); + + req.setImplementationfilepath("StepImpl.ts"); + req.setCodesList([code]); + const call = createMock>({ request: req }); + + handler.implementStub(call, (err: error, res: FileDiff | null) => { + expect(err).toBe(null); + expect(res?.getFilepath()).toStrictEqual('StepImpl.ts'); + const expected = code.split(EOL).map((p) => { return `\t${p}`; }).join(EOL) + EOL; + + expect(res?.getTextdiffsList()[0].getContent()).toBe(expected); + }); + }); + }); + + describe('.validateStep', () => { + it('should valiadate a step', () => { + registry.isImplemented = jest.fn().mockReturnValue(true); + + const req = new SVReq(); + + req.setSteptext("foo"); + const stepValue = new ProtoStepValue(); + + stepValue.setStepvalue("foo"); + stepValue.setParameterizedstepvalue("foo"); + req.setStepvalue(stepValue); + + const call = createMock>({ request: req }); + + handler.validateStep(call, (err: error, res: SVRes | null) => { + expect(err).toBe(null); + expect(res?.getIsvalid()).toBe(true); + }); + }); + }); + + describe('.refactor', () => { + it('should refactor a step', () => { + loader.loadStepsFromText('StepImpl.ts', text1); + const oldStepValue = new ProtoStepValue(); + + oldStepValue.setStepvalue("foo"); + oldStepValue.setParameterizedstepvalue("foo"); + const newStepValue = new ProtoStepValue(); + + newStepValue.setStepvalue("bar"); + newStepValue.setParameterizedstepvalue("bar"); + const req = new RReq(); + + req.setOldstepvalue(oldStepValue); + req.setNewstepvalue(newStepValue); + const call = createMock>({ request: req }); + + handler.refactor(call, (err: error, res: RRes | null) => { + expect(err).toBe(null); + expect(res?.getSuccess()).toBe(true); + }); + }); + }); + + describe('.getStepName', () => { + it('should give a step info', () => { + loader.loadStepsFromText('StepImpl.ts', text1); + const req = new SNReq(); + + req.setStepvalue("foo"); + const call = createMock>({ request: req }); + + handler.getStepName(call, (err: error, res: SNRes | null) => { + expect(err).toBe(null); + expect(res?.getFilename()).toBe('StepImpl.ts'); + expect(res?.getIssteppresent()).toBe(true); + }); + }); + }); + + describe('.killProcess', () => { + it('should give a step info', () => { + const s = new Server(); + + handler = new RunnerServiceImpl(s, new StaticLoader()); + mockProcessExit(); + const mockShutdown = jest.spyOn(s, 'forceShutdown'); + const req = new KPReq(); + + handler.kill(createMock>({ request: req }), (err: error) => { + expect(err).toBe(null); + expect(mockShutdown).toHaveBeenCalled(); + }); + }); + }); + +}); diff --git a/tests/connection/GRPCHandlerTests.ts b/tests/connection/GRPCHandlerTests.ts deleted file mode 100644 index 3b2c0c0..0000000 --- a/tests/connection/GRPCHandlerTests.ts +++ /dev/null @@ -1,202 +0,0 @@ -import { Server } from 'grpc'; -import { mockProcessExit } from 'jest-mock-process'; -import { EOL } from 'os'; -import { GRPCHandler } from '../../src/connection/GRPCHandler'; -import { gauge } from '../../src/gen/messages'; -import { StaticLoader } from '../../src/loaders/StaticLoader'; -import { Position } from '../../src/models/Position'; -import { Range } from '../../src/models/Range'; -import registry from '../../src/models/StepRegistry'; -import { MessageProcessorFactory } from '../../src/processors/MessageProcessorFactory'; -import { Util } from '../../src/utils/Util'; - -describe('GRPCHandler', () => { - - const TEXT_1 = `import { Step } from "gauge-ts";` + EOL + - `export default class StepImpl {` + EOL + - ` @Step("foo")` + EOL + - ` public async foo() {` + EOL + - ` console.log("Hello World");` + EOL + - ` }` + EOL + - `}`; - - let hanlder: GRPCHandler; - let factory: MessageProcessorFactory; - let loader: StaticLoader; - - beforeEach(() => { - jest.clearAllMocks(); - loader = new StaticLoader(); - factory = new MessageProcessorFactory(loader) - hanlder = new GRPCHandler(null, factory); - registry.clear(); - }) - - describe('.getStepNames', () => { - it('should give all the step names', () => { - const res = new gauge.messages.StepNamesRequest({}); - - Util.getImplDirs = jest.fn().mockReturnValue(['src', 'tests']) - hanlder.getGlobPatterns({ request: res }, (err: gauge.messages.Error | null, res?: gauge.messages.ImplementationFileGlobPatternResponse) => { - expect(err).toBe(null); - const patterns = (res as gauge.messages.ImplementationFileGlobPatternResponse).globPatterns; - - expect(patterns).toStrictEqual(['src/**/*.ts', 'tests/**/*.ts']); - }) - }) - }) - - describe('.cacheFile', () => { - it('should update the registry', () => { - const res = new gauge.messages.CacheFileRequest({ - content: TEXT_1, - filePath: 'StepImpl.ts', - status: gauge.messages.CacheFileRequest.FileStatus.OPENED - }) - - hanlder.cacheFile({ request: res }, (err: gauge.messages.Error | null, res?: gauge.messages.Empty) => { - expect(err).toBe(null); - expect(registry.isImplemented('foo')).toBe(true); - }) - }) - }) - - describe('.getStepNames', () => { - it('should give all the step names', () => { - const res = new gauge.messages.StepNamesRequest({}); - - registry.getStepTexts = jest.fn().mockReturnValue(['foo']); - hanlder.getStepNames({ request: res }, (err: gauge.messages.Error | null, res?: gauge.messages.StepNamesResponse) => { - expect(err).toBe(null); - expect((res as gauge.messages.StepNamesResponse).steps).toStrictEqual(['foo']); - }) - }) - }) - - describe('.getStepPositions', () => { - it('should give step positions', () => { - const res = new gauge.messages.StepPositionsRequest({ filePath: "StepImpl.ts" }); - - registry.getStepPositions = jest.fn().mockReturnValue([{ stepValue: 'foo', span: new Range(new Position(3, 5), new Position(8, 5)) }]) - hanlder.getStepPositions({ request: res }, (err: gauge.messages.Error | null, res?: gauge.messages.StepPositionsResponse) => { - expect(err).toBe(null); - const positions = (res as gauge.messages.StepPositionsResponse).stepPositions; - - expect(positions.length).toBe(1); - expect(positions[0].stepValue).toBe('foo'); - const span = positions[0].span as gauge.messages.Span; - - expect(span.start).toBe(3); - expect(span.startChar).toBe(5); - expect(span.end).toBe(8); - expect(span.endChar).toBe(5); - }) - }) - }) - - describe('.getImplementationFiles', () => { - it('should give all the step impl files', () => { - const res = new gauge.messages.ImplementationFileListRequest({}); - - Util.getListOfFiles = jest.fn().mockReturnValue(['StepImpl.ts']); - hanlder.getImplementationFiles({ request: res }, (err: gauge.messages.Error | null, res?: gauge.messages.ImplementationFileListRequest) => { - expect(err).toBe(null); - expect((res as gauge.messages.ImplementationFileListResponse).implementationFilePaths).toStrictEqual(['StepImpl.ts']); - }) - }) - }) - - describe('.implementStub', () => { - it('implement a stub', () => { - Util.exists = jest.fn().mockReturnValue(true); - Util.readFile = jest.fn().mockReturnValue(TEXT_1); - const code = `@Step("bar")` + EOL + - `public async foo() {` + EOL + - ` console.log("Hello World");` + EOL + - `}` - const res = new gauge.messages.StubImplementationCodeRequest({ - implementationFilePath: 'StepImpl.ts', - codes: [code], - }); - - hanlder.implementStub({ request: res }, (err: gauge.messages.Error | null, res?: gauge.messages.FileDiff) => { - expect(err).toBe(null); - expect((res as gauge.messages.FileDiff).filePath).toStrictEqual('StepImpl.ts'); - const diffs = (res as gauge.messages.FileDiff).textDiffs.map((d) => { return d as gauge.messages.TextDiff }); - - expect(diffs[0].content).toBe(code.split(EOL).map((p) => { return `\t${p}` }).join(EOL) + EOL); - }) - }) - }) - - describe('.validateStep', () => { - it('should valiadate a step', () => { - registry.isImplemented = jest.fn().mockReturnValue(true); - const res = new gauge.messages.StepValidateRequest({ - stepText: "foo", - stepValue: new gauge.messages.ProtoStepValue({ - stepValue: "foo", parameterizedStepValue: "foo" - }), - }); - - hanlder.validateStep({ request: res }, (err: gauge.messages.Error | null, res?: gauge.messages.StepValidateResponse) => { - expect(err).toBe(null); - expect((res as gauge.messages.StepValidateResponse).isValid).toBe(true); - }) - }) - }) - - describe('.refactor', () => { - it('should refactor a step', () => { - loader.loadStepsFromText('StepImpl.ts', TEXT_1); - const res = new gauge.messages.RefactorRequest({ - oldStepValue: new gauge.messages.ProtoStepValue({ - stepValue: "foo", - parameterizedStepValue: "foo", - }), - newStepValue: new gauge.messages.ProtoStepValue({ - stepValue: "bar", - parameterizedStepValue: "bar", - }), paramPositions: [], - saveChanges: false - }); - - hanlder.refactor({ request: res }, (err: gauge.messages.Error | null, res?: gauge.messages.RefactorResponse) => { - expect(err).toBe(null); - expect((res as gauge.messages.RefactorResponse).success).toBe(true); - }) - }) - }) - - describe('.getStepName', () => { - it('should give a step info', () => { - loader.loadStepsFromText('StepImpl.ts', TEXT_1); - const res = new gauge.messages.StepNameRequest({ - stepValue: "foo", - }); - - hanlder.getStepName({ request: res }, (err: gauge.messages.Error | null, res?: gauge.messages.StepNameResponse) => { - expect(err).toBe(null); - expect((res as gauge.messages.StepNameResponse).fileName).toBe('StepImpl.ts'); - expect((res as gauge.messages.StepNameResponse).isStepPresent).toBe(true); - }) - }) - }) - - describe('.killProcess', () => { - it('should give a step info', () => { - const s = new Server(); - - hanlder = new GRPCHandler(s, factory); - mockProcessExit(); - const mockShutdown = jest.spyOn(s, 'forceShutdown'); - const req = new gauge.messages.KillProcessRequest(); - - hanlder.killProcess({ request: req }, (err: gauge.messages.Error | null, res?: gauge.messages.Empty) => { - expect(err).toBe(null); - expect(mockShutdown).toHaveBeenCalled(); - }) - }) - }) - -}) diff --git a/tests/indexTests.ts b/tests/indexTests.ts new file mode 100644 index 0000000..b99ce6a --- /dev/null +++ b/tests/indexTests.ts @@ -0,0 +1,28 @@ +describe('gaauge-ts', () => { + it('should export all the reuired types', async () => { + const gaugeTs = await import('../src/index'); + + expect(gaugeTs.Step).toBeInstanceOf(Function); + expect(gaugeTs.ContinueOnFailure).toBeInstanceOf(Function); + expect(gaugeTs.BeforeSuite).toBeInstanceOf(Function); + expect(gaugeTs.BeforeSpec).toBeInstanceOf(Function); + expect(gaugeTs.BeforeScenario).toBeInstanceOf(Function); + expect(gaugeTs.BeforeStep).toBeInstanceOf(Function); + expect(gaugeTs.AfterStep).toBeInstanceOf(Function); + expect(gaugeTs.AfterScenario).toBeInstanceOf(Function); + expect(gaugeTs.AfterSpec).toBeInstanceOf(Function); + expect(gaugeTs.AfterSuite).toBeInstanceOf(Function); + + expect(gaugeTs.CustomScreenGrabber).toBeInstanceOf(Function); + expect(gaugeTs.CustomScreenshotWriter).toBeInstanceOf(Function); + + expect(gaugeTs.ExecutionContext).toBeDefined(); + expect(gaugeTs.Specification).toBeDefined(); + expect(gaugeTs.Scenario).toBeDefined(); + expect(gaugeTs.StepInfo).toBeDefined(); + expect(gaugeTs.DataStoreFactory).toBeDefined(); + expect(gaugeTs.DataStore).toBeDefined(); + + expect(gaugeTs.Gauge).toHaveProperty("captureScreenshot"); + }); +}); \ No newline at end of file diff --git a/tests/loaders/ImplLoaderTests.ts b/tests/loaders/ImplLoaderTests.ts new file mode 100644 index 0000000..be92291 --- /dev/null +++ b/tests/loaders/ImplLoaderTests.ts @@ -0,0 +1,40 @@ +import { ImplLoader } from "../../src/loaders/ImplLoader"; +import { Util } from "../../src/utils/Util"; + +describe('ImplLoader', () => { + let loader: ImplLoader; + + beforeEach(() => { + loader = new ImplLoader(); + }); + + afterEach(() => { + jest.resetAllMocks(); + }); + + describe('.loadImplementations', () => { + it('should load implementation succesfully', async () => { + Util.getListOfFiles = jest.fn().mockReturnValue(['StepImpl.ts']); + Util.importFile = jest.fn().mockReturnValue({}); + await loader.loadImplementations(); + }); + + it('should load implementation succesfully when class is exported', async () => { + Util.getListOfFiles = jest.fn().mockReturnValue(['StepImpl.ts']); + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access + Util.importFile = jest.fn().mockReturnValue({ default: function () { this.foo = 'foo'; } }); + await loader.loadImplementations(); + }); + + it('should fail to load implementation if class is exported but does not have default constructor', async () => { + let exception = ''; + + console.error = (v: Error) => { exception = v.toString(); }; + + Util.getListOfFiles = jest.fn().mockReturnValue(['StepImpl.ts']); + Util.importFile = jest.fn().mockImplementation(() => { throw new Error('failed to import'); }); + await loader.loadImplementations(); + expect(exception).toContain('failed to import'); + }); + }); +}); \ No newline at end of file diff --git a/tests/loaders/StaticLoaderTests.ts b/tests/loaders/StaticLoaderTests.ts index 0956e48..89a1b4d 100644 --- a/tests/loaders/StaticLoaderTests.ts +++ b/tests/loaders/StaticLoaderTests.ts @@ -21,12 +21,19 @@ describe('StaticLoaderTests', () => { ` console.log("Hello World");` + EOL + ` }` + EOL + `}`; + const TEXT_3 = `import { Step } from "gauge-ts";` + EOL + + `export default class StepImpl {` + EOL + + ` @Step(["hello","hi"])` + EOL + + ` public async bar() {` + EOL + + ` console.log("Hello World");` + EOL + + ` }` + EOL + + `}`; beforeEach(() => { jest.clearAllMocks(); loader = new StaticLoader(); registry.clear(); - }) + }); describe('.loadFromText', () => { it('should load steps from given text', () => { @@ -35,8 +42,15 @@ describe('StaticLoaderTests', () => { loader.loadStepsFromText(file, TEXT_1); expect(registry.isImplemented("foo")).toBe(true); - }) - }) + }); + + it('should load steps from file with alias', () => { + const file = 'StepImpl.ts'; + + loader.loadStepsFromText(file, TEXT_3); + expect(registry.isImplemented("hello")).toBe(true); + }); + }); describe('.reloadSteps', () => { it('should reload steps from given test', () => { @@ -46,13 +60,13 @@ describe('StaticLoaderTests', () => { expect(registry.isImplemented("foo")).toBe(true); - loader.reloadSteps(TEXT_2, file) + loader.reloadSteps(TEXT_2, file); expect(registry.isImplemented("foo")).toBe(false); expect(registry.isImplemented("bar")).toBe(true); - }) + }); - }) + }); describe('.removeSteps', () => { it('should remove steps for a given file', () => { @@ -65,12 +79,12 @@ describe('StaticLoaderTests', () => { expect(registry.isImplemented("foo")).toBe(true); expect(registry.isImplemented("bar")).toBe(true); - loader.removeSteps(file) + loader.removeSteps(file); expect(registry.isImplemented("foo")).toBe(false); expect(registry.isImplemented("bar")).toBe(true); - }) + }); - }) + }); describe('.loadImplementations', () => { it('should load steps from all the files', () => { @@ -88,8 +102,8 @@ describe('StaticLoaderTests', () => { expect(registry.isImplemented("foo")).toBe(true); expect(registry.isImplemented("bar")).toBe(true); - }) + }); - }) + }); -}) +}); diff --git a/tests/models/HookRegistryTests.ts b/tests/models/HookRegistryTests.ts index 1dc2aa2..6e08834 100644 --- a/tests/models/HookRegistryTests.ts +++ b/tests/models/HookRegistryTests.ts @@ -1,7 +1,7 @@ import { HookMethod } from '../../src/models/HookMethod'; import hookRegistry from '../../src/models/HookRegistry'; import { HookType } from '../../src/models/HookType'; -import { Operator } from '../../src'; +import { Operator } from '../../src/public/Operator'; describe('HookRegistry', () => { @@ -11,45 +11,45 @@ describe('HookRegistry', () => { afterEach(() => { hookRegistry.clear(); - }) + }); describe('.add', () => { it('should add a given hook', () => { - hookRegistry.addHook(HookType.BeforeSuite, new HookMethod(DUMMY_FUNC, FILE)) + hookRegistry.addHook(HookType.BeforeSuite, new HookMethod(DUMMY_FUNC, FILE)); expect(hookRegistry.get(HookType.BeforeSuite, []).length).toEqual(1); - }) - }) + }); + }); describe('.get', () => { it('should give empty list if there is not hooks', () => { expect(hookRegistry.get(HookType.AfterScenario, [])).toStrictEqual([]); - }) + }); it('should give empty list if there is not hooks for given tag', () => { - hookRegistry.addHook(HookType.AfterScenario, new HookMethod(DUMMY_FUNC, FILE, { tags: ['scenario'] })) + hookRegistry.addHook(HookType.AfterScenario, new HookMethod(DUMMY_FUNC, FILE, { tags: ['scenario'] })); expect(hookRegistry.get(HookType.AfterScenario, ["spec"])).toStrictEqual([]); - }) + }); it('should give hooks for given tag', () => { const hook = new HookMethod(DUMMY_FUNC, FILE, { tags: ['scenario'] }); hookRegistry.addHook(HookType.AfterScenario, hook); expect(hookRegistry.get(HookType.AfterScenario, ['scenario'])).toStrictEqual([hook]); - }) + }); it('should give hooks for given tag with default operator if not given', () => { const hook = new HookMethod(DUMMY_FUNC, FILE, { tags: ['scenario', 'spec'] }); hookRegistry.addHook(HookType.AfterScenario, hook); expect(hookRegistry.get(HookType.AfterScenario, ['scenario'])).toStrictEqual([]); - }) + }); it('should give hooks for given tag with given operator', () => { const hook = new HookMethod(DUMMY_FUNC, FILE, { tags: ['scenario', 'spec'], operator:Operator.Or }); hookRegistry.addHook(HookType.AfterScenario, hook); expect(hookRegistry.get(HookType.AfterScenario, ['scenario'])).toStrictEqual([hook]); - }) + }); it('should give hooks for given all hooks if no tag is given', () => { const hook = new HookMethod(DUMMY_FUNC, FILE); @@ -58,20 +58,20 @@ describe('HookRegistry', () => { expect(hookRegistry.get(HookType.AfterScenario, ['spec'])).toStrictEqual([hook]); expect(hookRegistry.get(HookType.AfterScenario, [])[0].getMethod()).toEqual(DUMMY_FUNC); expect(hookRegistry.get(HookType.AfterScenario, [])[0].getFilePath()).toEqual(FILE); - }) - }) + }); + }); describe('.setInstanceForMethodsIn', () => { it('shooud set the instance for all methods of a given FILE', () => { const FILE_1 = 'HookImpl1.ts'; - hookRegistry.addHook(HookType.BeforeSuite, new HookMethod(DUMMY_FUNC, FILE)) - hookRegistry.addHook(HookType.AfterSuite, new HookMethod(DUMMY_FUNC, FILE_1)) + hookRegistry.addHook(HookType.BeforeSuite, new HookMethod(DUMMY_FUNC, FILE)); + hookRegistry.addHook(HookType.AfterSuite, new HookMethod(DUMMY_FUNC, FILE_1)); hookRegistry.setInstanceForMethodsIn(FILE, {}); expect(hookRegistry.get(HookType.BeforeSuite, [])[0].getInstance()).toBeDefined(); expect(hookRegistry.get(HookType.AfterSuite, [])[0].getInstance()).toBeDefined(); - }) - }) + }); + }); -}) +}); diff --git a/tests/models/StepRegistryTests.ts b/tests/models/StepRegistryTests.ts index 420f839..feab222 100644 --- a/tests/models/StepRegistryTests.ts +++ b/tests/models/StepRegistryTests.ts @@ -9,8 +9,8 @@ describe('StepRegistry', () => { const DUMMY_FUNC = () => { }; afterEach(() => { - registry.clear() - }) + registry.clear(); + }); describe(".add", () => { it('should add a step to the registry', () => { @@ -20,16 +20,16 @@ describe('StepRegistry', () => { registry.add(text, entry); expect(registry.isImplemented(text)).toBeTruthy(); - }) - }) + }); + }); describe(".isImplemented", () => { it('should tell if a step is valid or not', () => { const text = 'hello world'; expect(registry.isImplemented(text)).toBe(false); - }) - }) + }); + }); describe('.hasMultipleImplementations', () => { it('should tell if a step is implemented more than once', () => { @@ -41,8 +41,8 @@ describe('StepRegistry', () => { registry.add(text, entry1); registry.add(text, entry2); expect(registry.hasMultipleImplementations(text)).toBe(true); - }) - }) + }); + }); describe('.get', () => { it('should give the step entry', () => { @@ -53,8 +53,8 @@ describe('StepRegistry', () => { registry.add(text, entry1); expect(registry.get(text)).toStrictEqual(entry1); expect(registry.get(text).getMethod()).toBeDefined(); - }) - }) + }); + }); describe('.addContinueOnFailure', () => { it('should mark a step entry as recoverable step', () => { @@ -66,7 +66,7 @@ describe('StepRegistry', () => { registry.add(text, entry1); registry.addContinueOnFailure(DUMMY_FUNC, ['Error']); expect(registry.getContinueOnFailureFunctions(DUMMY_FUNC)).toStrictEqual(['Error']); - }) + }); it('should mark a step entry as recoverable step and add AssertionError as expeted error to contine if not provided', () => { const text = 'hello world'; @@ -76,8 +76,8 @@ describe('StepRegistry', () => { registry.add(text, entry1); registry.addContinueOnFailure(DUMMY_FUNC); expect(registry.getContinueOnFailureFunctions(DUMMY_FUNC)).toStrictEqual(['AssertionError']); - }) - }) + }); + }); describe('.getContinueOnFailureFuncs', () => { it('shoud give the expected error classes if the given funciton is recoverable', () => { @@ -88,7 +88,7 @@ describe('StepRegistry', () => { registry.add(text, entry1); registry.addContinueOnFailure(DUMMY_FUNC); expect(registry.getContinueOnFailureFunctions(DUMMY_FUNC)).toStrictEqual(['AssertionError']); - }) + }); it('shoud give empty if the given method is not recoverable', () => { const text = 'hello world'; @@ -97,8 +97,8 @@ describe('StepRegistry', () => { registry.add(text, entry1); expect(registry.getContinueOnFailureFunctions(DUMMY_FUNC)).toStrictEqual([]); - }) - }) + }); + }); describe('.getStepPositions', () => { it('should get position of steps from a given file', () => { @@ -106,7 +106,7 @@ describe('StepRegistry', () => { const file = 'StepImpl.ts'; const start = new Position(3, 5); const end = new Position(7, 5); - const span = new Range(start, end) + const span = new Range(start, end); const entry1 = new StepRegistryEntry(text, text, file, DUMMY_FUNC, span); registry.add(text, entry1); @@ -119,8 +119,8 @@ describe('StepRegistry', () => { expect(positions[0].span.getEnd()).toEqual(end); expect(registry.getStepPositions('foo.ts').length).toBe(0); - }) - }) + }); + }); describe('.getStepTexts', () => { it('should give all the step texts from the registry', () => { @@ -135,8 +135,8 @@ describe('StepRegistry', () => { const steps = registry.getStepTexts(); expect(steps.length).toEqual(2); - }) - }) + }); + }); describe('.isFileCached', () => { it('should tell if a file is already scaned', () => { @@ -148,8 +148,8 @@ describe('StepRegistry', () => { expect(registry.isFileCached(file)).toBe(true); expect(registry.isFileCached('foo.ts')).toBe(false); - }) - }) + }); + }); describe('.removeSteps', () => { it('should remove all the steps of a given file', () => { @@ -167,8 +167,8 @@ describe('StepRegistry', () => { expect(registry.isImplemented(text1)).toBe(false); expect(registry.isImplemented(text2)).toBe(true); - }) - }) + }); + }); describe('.setInstanceForMethodsIn', () => { it('should add an intance for all the steps of a given file', () => { @@ -186,7 +186,7 @@ describe('StepRegistry', () => { expect(registry.get(text1).getInstance()).toBeDefined(); expect(registry.get(text2).getInstance()).toBeUndefined(); - }) - }) + }); + }); -}) \ No newline at end of file +}); \ No newline at end of file diff --git a/tests/processors/CacheFileProcessorTests.ts b/tests/processors/CacheFileProcessorTests.ts index 6069542..0387a70 100644 --- a/tests/processors/CacheFileProcessorTests.ts +++ b/tests/processors/CacheFileProcessorTests.ts @@ -1,13 +1,13 @@ -import { gauge } from '../../src/gen/messages'; +import { CacheFileRequest } from '../../src/gen/messages_pb'; import { StaticLoader } from '../../src/loaders/StaticLoader'; import registry from '../../src/models/StepRegistry'; import { CacheFileProcessor } from '../../src/processors/CacheFileProcessor'; import { Util } from '../../src/utils/Util'; describe('CacheFileProcessor', () => { - let processor: CacheFileProcessor + let processor: CacheFileProcessor; let loader: StaticLoader; - const file1 = 'StepImpl1.ts' + const file1 = 'StepImpl1.ts'; const text1 = `import { Step } from "gauge-ts";` + `export default class StepImpl {` + ` @Step("foo")` + @@ -15,7 +15,6 @@ describe('CacheFileProcessor', () => { ` console.log("Hello World");` + ` }` + `}`; - const file2 = 'StepImpl2.ts' const text2 = `import { Step } from "gauge-ts";` + `export default class StepImpl {` + ` @Step("bar")` + @@ -29,78 +28,58 @@ describe('CacheFileProcessor', () => { loader = new StaticLoader(); processor = new CacheFileProcessor(loader); registry.clear(); - }) + }); describe('.process', () => { - it('should process cacheFileRequest when a file is opened', async () => { - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.CacheFileRequest, - cacheFileRequest: new gauge.messages.CacheFileRequest({ - status: gauge.messages.CacheFileRequest.FileStatus.OPENED, - content: text1, - filePath: file1, - isClosed: false - }) - }); - - await processor.process(req); + it('should process cacheFileRequest when a file is opened', () => { + const req = new CacheFileRequest(); + + req.setStatus(CacheFileRequest.FileStatus.OPENED); + req.setContent(text1); + req.setFilepath(file1); + req.setIsclosed(false); + processor.process(req); expect(registry.isImplemented("foo")).toBe(true); - }) + }); - it('should process cacheFileRequest when a file is changed', async () => { + it('should process cacheFileRequest when a file is changed', () => { loader.loadStepsFromText(file1, text1); - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.CacheFileRequest, - cacheFileRequest: new gauge.messages.CacheFileRequest({ - status: gauge.messages.CacheFileRequest.FileStatus.CHANGED, - content: text2, - filePath: file1, - isClosed: false - }) - }); - - await processor.process(req); + const req = new CacheFileRequest(); + + req.setStatus(CacheFileRequest.FileStatus.CHANGED); + req.setContent(text2); + req.setFilepath(file1); + req.setIsclosed(false); + processor.process(req); expect(registry.isImplemented("foo")).toBe(false); expect(registry.isImplemented("bar")).toBe(true); - }) + }); - it('should process cacheFileRequest when a file is created', async () => { + it('should process cacheFileRequest when a file is created', () => { Util.exists = jest.fn().mockReturnValue(true); Util.readFile = jest.fn().mockReturnValue(text1); + const req = new CacheFileRequest(); - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.CacheFileRequest, - cacheFileRequest: new gauge.messages.CacheFileRequest({ - status: gauge.messages.CacheFileRequest.FileStatus.CREATED, - filePath: file1, - isClosed: false - }) - }); - - await processor.process(req); + req.setStatus(CacheFileRequest.FileStatus.CREATED); + req.setFilepath(file1); + req.setIsclosed(false); + processor.process(req); expect(registry.isImplemented("foo")).toBe(true); - }) + }); - it('should process cacheFileRequest when a file is created and cached', async () => { + it('should process cacheFileRequest when a file is created and cached', () => { registry.isFileCached = jest.fn().mockReturnValue(true); - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.CacheFileRequest, - cacheFileRequest: new gauge.messages.CacheFileRequest({ - status: gauge.messages.CacheFileRequest.FileStatus.CREATED, - filePath: file1, - isClosed: false - }) - }); - - await processor.process(req); + + const req = new CacheFileRequest(); + + req.setStatus(CacheFileRequest.FileStatus.CREATED); + req.setFilepath(file1); + req.setIsclosed(false); + processor.process(req); expect(registry.isImplemented("foo")).toBe(false); - }) + }); - it('should process cacheFileRequest when a file closed', async () => { + it('should process cacheFileRequest when a file closed', () => { loader.loadStepsFromText(file1, text1); expect(registry.isImplemented("foo")).toBe(true); @@ -108,51 +87,34 @@ describe('CacheFileProcessor', () => { Util.exists = jest.fn().mockReturnValue(true); Util.readFile = jest.fn().mockReturnValue(text2); - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.CacheFileRequest, - cacheFileRequest: new gauge.messages.CacheFileRequest({ - status: gauge.messages.CacheFileRequest.FileStatus.CLOSED, - filePath: file1, - isClosed: true - }) - }); - - await processor.process(req); + const req = new CacheFileRequest(); + + req.setStatus(CacheFileRequest.FileStatus.CLOSED); + req.setFilepath(file1); + req.setIsclosed(true); + processor.process(req); expect(registry.isImplemented("foo")).toBe(false); expect(registry.isImplemented("bar")).toBe(true); - }) + }); - it('should process cacheFileRequest when a file closed and dont exists anymore', async () => { + it('should process cacheFileRequest when a file closed and dont exists anymore', () => { Util.exists = jest.fn().mockReturnValue(false); - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.CacheFileRequest, - cacheFileRequest: new gauge.messages.CacheFileRequest({ - status: gauge.messages.CacheFileRequest.FileStatus.CLOSED, - filePath: file1 - }) - }); - - await processor.process(req); - expect(registry.isImplemented("foo")).toBe(false); - }) + const req = new CacheFileRequest(); - it('should process cacheFileRequest when a file deleted', async () => { - loader.loadStepsFromText(file1, text1); - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.CacheFileRequest, - cacheFileRequest: new gauge.messages.CacheFileRequest({ - status: gauge.messages.CacheFileRequest.FileStatus.DELETED, - filePath: file1 - }) - }); - - await processor.process(req); + req.setStatus(CacheFileRequest.FileStatus.CLOSED); + req.setFilepath(file1); + processor.process(req); expect(registry.isImplemented("foo")).toBe(false); - }) + }); - }) + it('should process cacheFileRequest when a file deleted', () => { + loader.loadStepsFromText(file1, text1); + const req = new CacheFileRequest(); -}) \ No newline at end of file + req.setStatus(CacheFileRequest.FileStatus.DELETED); + req.setFilepath(file1); + processor.process(req); + expect(registry.isImplemented("foo")).toBe(false); + }); + }); +}); \ No newline at end of file diff --git a/tests/processors/DataStoreInitProcessorTests.ts b/tests/processors/DataStoreInitProcessorTests.ts deleted file mode 100644 index 023e8e7..0000000 --- a/tests/processors/DataStoreInitProcessorTests.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { gauge } from '../../src/gen/messages'; -import { DataStoreInitProcessor } from '../../src/processors/DataStoreInitProcessor'; - -describe('DataStoreInitProcessor', () => { - let processor: DataStoreInitProcessor - - beforeEach(() => { - processor = new DataStoreInitProcessor(); - }) - - describe('.process', () => { - it('should process SuiteDataStoreInit request', async () => { - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.SuiteDataStoreInit, - suiteDataStoreInitRequest: new gauge.messages.SuiteDataStoreInitRequest() - }) - const res = await processor.process(req) - - expect(res.messageType).toBe(gauge.messages.Message.MessageType.ExecutionStatusResponse); - const result = res.executionStatusResponse as gauge.messages.ExecutionStatusResponse - - expect((result.executionResult as gauge.messages.ProtoExecutionResult).failed).toBe(false); - }) - - it('should process SpecDataStoreInit request', async () => { - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.SpecDataStoreInit, - suiteDataStoreInitRequest: new gauge.messages.SpecDataStoreInitRequest() - }) - const res = await processor.process(req) - - expect(res.messageType).toBe(gauge.messages.Message.MessageType.ExecutionStatusResponse); - const result = res.executionStatusResponse as gauge.messages.ExecutionStatusResponse - - expect((result.executionResult as gauge.messages.ProtoExecutionResult).failed).toBe(false); - }) - - it('should process ScenarioDataStoreInit request', async () => { - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ScenarioDataStoreInit, - suiteDataStoreInitRequest: new gauge.messages.ScenarioDataStoreInitRequest() - }) - const res = await processor.process(req) - - expect(res.messageType).toBe(gauge.messages.Message.MessageType.ExecutionStatusResponse); - const result = res.executionStatusResponse as gauge.messages.ExecutionStatusResponse - - expect((result.executionResult as gauge.messages.ProtoExecutionResult).failed).toBe(false); - }) - }) - -}) diff --git a/tests/processors/ExecutionEndingProcessorTests.ts b/tests/processors/ExecutionEndingProcessorTests.ts index 4655037..682d029 100644 --- a/tests/processors/ExecutionEndingProcessorTests.ts +++ b/tests/processors/ExecutionEndingProcessorTests.ts @@ -1,4 +1,4 @@ -import { gauge } from '../../src/gen/messages'; +import { ExecutionEndingRequest, ExecutionInfo } from '../../src/gen/messages_pb'; import { HookMethod } from '../../src/models/HookMethod'; import hookRegistry from '../../src/models/HookRegistry'; import { HookType } from '../../src/models/HookType'; @@ -7,76 +7,64 @@ import { Screenshot } from '../../src/screenshot/Screenshot'; describe('ExecutionEndingProcessor', () => { - let processor: ExecutionEndingProcessor + let processor: ExecutionEndingProcessor; beforeEach(() => { jest.clearAllMocks(); hookRegistry.clear(); process.env.screenshot_on_failure = ""; processor = new ExecutionEndingProcessor(); - }) + }); describe('.process', () => { it('should process ExecutionEndingRequest and run AfterSuite hooks', async () => { // eslint-disable-next-line @typescript-eslint/no-empty-function - hookRegistry.addHook(HookType.AfterSuite, new HookMethod(async () => {}, "Hooks.ts")) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ExecutionEnding, - executionEndingRequest: new gauge.messages.ExecutionEndingRequest({ - currentExecutionInfo: new gauge.messages.ExecutionInfo() - }) - }) + hookRegistry.addHook(HookType.AfterSuite, new HookMethod(async () => { }, "Hooks.ts")); + const req = new ExecutionEndingRequest(); - const resMessage = await processor.process(message); - const res = resMessage.executionStatusResponse as gauge.messages.ExecutionStatusResponse + req.setCurrentexecutioninfo(new ExecutionInfo()); + const res = await processor.process(req); - expect((res.executionResult as gauge.messages.ProtoExecutionResult).failed).toBe(false); - }) + expect(res?.getExecutionresult()?.getFailed()).toBe(false); + }); it('should process ExecutionEndingRequest and give error if a hook fails', async () => { process.env.screenshot_on_failure = "false"; hookRegistry.addHook(HookType.AfterSuite, new HookMethod(jest.fn().mockImplementation(() => { - throw new Error("failed"); - }), "Hooks.ts")) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ExecutionEnding, - executionEndingRequest: new gauge.messages.ExecutionEndingRequest({ - currentExecutionInfo: new gauge.messages.ExecutionInfo() - }) - }) - - const resMessage = await processor.process(message); - const res = resMessage.executionStatusResponse as gauge.messages.ExecutionStatusResponse - const pRes = res.executionResult as gauge.messages.ProtoExecutionResult; - - expect(pRes.failed).toBe(true); - expect(pRes.errorMessage).toBe("failed"); - expect(pRes.screenShot.length).toBe(0); - }) + const err = new Error("failed"); + + err.stack = undefined; + throw err; + }), "Hooks.ts")); + + const req = new ExecutionEndingRequest(); + + req.setCurrentexecutioninfo(new ExecutionInfo()); + + const res = (await processor.process(req)).getExecutionresult(); + + expect(res?.getFailed()).toBe(true); + expect(res?.getErrormessage()).toBe("failed"); + expect(res?.getScreenshotsList().length).toBe(0); + }); it('should process ExecutionEndingRequest and give error with screenshot if a hook fails', async () => { Screenshot.capture = jest.fn().mockReturnValue(new Uint8Array(new ArrayBuffer(10))); hookRegistry.addHook(HookType.AfterSuite, new HookMethod(jest.fn().mockImplementation(() => { throw new Error("failed"); - }), "Hooks.ts")) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ExecutionEnding, - executionEndingRequest: new gauge.messages.ExecutionEndingRequest({ - currentExecutionInfo: new gauge.messages.ExecutionInfo() - }) - }) - - const resMessage = await processor.process(message); - const res = resMessage.executionStatusResponse as gauge.messages.ExecutionStatusResponse - const pRes = res.executionResult as gauge.messages.ProtoExecutionResult; - - expect(pRes.failed).toBe(true); - expect(pRes.errorMessage).toBe("failed"); - expect(pRes.failureScreenshotFile).toBeTruthy(); - }) - }) - -}) + }), "Hooks.ts")); + + const req = new ExecutionEndingRequest(); + + req.setCurrentexecutioninfo(new ExecutionInfo()); + + const res = (await processor.process(req)).getExecutionresult(); + + expect(res?.getFailed()).toBe(true); + expect(res?.getErrormessage()).toBe("failed"); + + expect(res?.getFailurescreenshotfile()).toBeTruthy(); + }); + }); + +}); diff --git a/tests/processors/ExecutionStartingProcessorTests.ts b/tests/processors/ExecutionStartingProcessorTests.ts index 3e3f6d5..8d7c040 100644 --- a/tests/processors/ExecutionStartingProcessorTests.ts +++ b/tests/processors/ExecutionStartingProcessorTests.ts @@ -1,5 +1,5 @@ import * as inspector from 'inspector'; -import { gauge } from '../../src/gen/messages'; +import { ExecutionInfo, ExecutionStartingRequest } from '../../src/gen/messages_pb'; import { HookMethod } from '../../src/models/HookMethod'; import hookRegistry from '../../src/models/HookRegistry'; import { HookType } from '../../src/models/HookType'; @@ -8,53 +8,45 @@ jest.mock('inspector'); describe('ExecutionStartingProcessor', () => { - let processor: ExecutionStartingProcessor + let processor: ExecutionStartingProcessor; beforeEach(() => { jest.clearAllMocks(); hookRegistry.clear(); process.env.screenshot_on_failure = ""; processor = new ExecutionStartingProcessor(); - }) + }); describe('.process', () => { it('should process ExecutionStartingRequest and run BeforeSuite hooks', async () => { // eslint-disable-next-line @typescript-eslint/no-empty-function - hookRegistry.addHook(HookType.BeforeSuite, new HookMethod(async () => {}, "Hooks.ts")) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ExecutionEnding, - executionStartingRequest: new gauge.messages.ExecutionStartingRequest({ - currentExecutionInfo: new gauge.messages.ExecutionInfo() - }) - }) + hookRegistry.addHook(HookType.BeforeSuite, new HookMethod(async () => { }, "Hooks.ts")); - const resMessage = await processor.process(message); - const res = resMessage.executionStatusResponse as gauge.messages.ExecutionStatusResponse + const req = new ExecutionStartingRequest(); - expect((res.executionResult as gauge.messages.ProtoExecutionResult).failed).toBe(false); - }) + req.setCurrentexecutioninfo(new ExecutionInfo()); - it('should process ExecutionStartingRequest and run BeforeSuite hooks', async () => { + const res = await processor.process(req); + + expect(res?.getExecutionresult()?.getFailed()).toBe(false); + }); + + it('should process ExecutionStartingRequest and start debugger', async () => { console.log = jest.fn(); const open = jest.spyOn(inspector, 'open'); process.env.DEBUGGING = 'true'; process.env.DEBUG_PORT = '1234'; // eslint-disable-next-line @typescript-eslint/no-empty-function - hookRegistry.addHook(HookType.AfterSuite, new HookMethod(async () => {}, "Hooks.ts")) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ExecutionEnding, - executionStartingRequest: new gauge.messages.ExecutionStartingRequest({ - currentExecutionInfo: new gauge.messages.ExecutionInfo() - }) - }) - - await processor.process(message); - expect(open).toHaveBeenCalledWith(1234, '127.0.0.1', true); - }) + hookRegistry.addHook(HookType.AfterSuite, new HookMethod(async () => { }, "Hooks.ts")); - }) + const req = new ExecutionStartingRequest(); -}) + req.setCurrentexecutioninfo(new ExecutionInfo()); + + await processor.process(req); + + expect(open).toHaveBeenCalledWith(1234, '127.0.0.1', true); + }); + }); +}); diff --git a/tests/processors/ImplementationFileGlobPatternProcessorTests.ts b/tests/processors/ImplementationFileGlobPatternProcessorTests.ts deleted file mode 100644 index 7bc9501..0000000 --- a/tests/processors/ImplementationFileGlobPatternProcessorTests.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { gauge } from '../../src/gen/messages'; -import { ImplementationFileGlobPatternProcessor } from '../../src/processors/ImplementationFileGlobPatternProcessor'; -import { Util } from '../../src/utils/Util'; - -describe('ImplementationFileGlobPatternProcessor', () => { - let processor: ImplementationFileGlobPatternProcessor - - beforeEach(() => { - jest.clearAllMocks(); - processor = new ImplementationFileGlobPatternProcessor(); - }) - describe('.process', () => { - it('should process ImplementationFileGlobPatternRequest request', async () => { - Util.getImplDirs = jest.fn().mockReturnValue(['src', 'tests']); - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ImplementationFileGlobPatternRequest, - implementationFileGlobPatternRequest: new gauge.messages.ImplementationFileGlobPatternRequest() - }) - - const resMess = await processor.process(req); - const res = (resMess.implementationFileGlobPatternResponse as gauge.messages.ImplementationFileGlobPatternResponse); - - expect(res.globPatterns).toStrictEqual(['src/**/*.ts', 'tests/**/*.ts']); - }) - - }) - -}) diff --git a/tests/processors/ImplementationFileListProcessorTests.ts b/tests/processors/ImplementationFileListProcessorTests.ts deleted file mode 100644 index be6c7c5..0000000 --- a/tests/processors/ImplementationFileListProcessorTests.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { gauge } from '../../src/gen/messages'; -import { ImplementationFileListProcessor } from '../../src/processors/ImplementationFileListProcessor'; -import { Util } from '../../src/utils/Util'; - -describe('ImplementationFileListProcessor', () => { - let processor: ImplementationFileListProcessor - - beforeEach(() => { - jest.clearAllMocks(); - processor = new ImplementationFileListProcessor(); - }) - describe('.process', () => { - it('should process ImplementationFileListRequest request', async () => { - Util.getListOfFiles = jest.fn().mockReturnValue(['StepImpl1.ts', 'StepImpl2.ts']); - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ImplementationFileListRequest, - implementationFileListRequest: new gauge.messages.ImplementationFileListRequest({}) - }) - - const resMess = await processor.process(req); - const res = (resMess.implementationFileListResponse as gauge.messages.ImplementationFileListResponse); - - expect(res.implementationFilePaths).toStrictEqual(['StepImpl1.ts', 'StepImpl2.ts']); - }) - - }) - -}) diff --git a/tests/processors/MessageProcessorFactoryTests.ts b/tests/processors/MessageProcessorFactoryTests.ts deleted file mode 100644 index a238c79..0000000 --- a/tests/processors/MessageProcessorFactoryTests.ts +++ /dev/null @@ -1,86 +0,0 @@ -import {mockProcessExit} from 'jest-mock-process'; -import {gauge} from '../../src/gen/messages'; -import {StaticLoader} from '../../src/loaders/StaticLoader'; -import {MessageProcessorFactory} from '../../src/processors/MessageProcessorFactory'; -import {Util} from '../../src/utils/Util'; - -describe('MessageProcessorFactory', () => { - const factory = new MessageProcessorFactory(new StaticLoader()); - const _exit = process.exit; - - afterEach(() => { - jest.clearAllMocks(); - }) - - describe('.process', () => { - it('should process kill process request', async () => { - const mockExit = mockProcessExit(); - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.KillProcessRequest, - killProcessRequest: new gauge.messages.KillProcessRequest() - }) - - await factory.process(message); - - expect(mockExit).toHaveBeenCalledWith(0); - }) - - it('should load impl before loading files', async () => { - class Foo { - - // eslint-disable-next-line @typescript-eslint/no-empty-function - constructor() { - } - - } - - Util.getListOfFiles = jest.fn().mockReturnValue(['StepImpl.ts']); - Util.importFile = jest.fn().mockResolvedValue({default: Foo}) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ExecutionStarting, - executionStartingRequest: new gauge.messages.ExecutionStartingRequest() - }) - - console.error = jest.fn(); - const err = jest.spyOn(console, 'error'); - - await factory.process(message); - expect(err).toBeCalledTimes(0); - }) - - it('should load impl before loading files which fails to create instance', async () => { - Util.getListOfFiles = jest.fn().mockReturnValue(['StepImpl.ts']); - // eslint-disable-next-line @typescript-eslint/no-empty-function - Util.importFile = jest.fn().mockResolvedValue({ - // eslint-disable-next-line @typescript-eslint/no-empty-function - default: () => { - } - }) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ExecutionStarting, - executionStartingRequest: new gauge.messages.ExecutionStartingRequest() - }) - - console.error = jest.fn(); - const err = jest.spyOn(console, 'error'); - - await factory.process(message); - expect(err).toHaveBeenCalled(); - }) - - it('should process unsupport message', async () => { - console.error = jest.fn(); - const mockExit = mockProcessExit(); - const message = new gauge.messages.Message({ - messageId: 0, - messageType: 343, - }) - - await factory.process(message); - expect(mockExit).toHaveBeenCalledWith(1); - }) - }) -}) diff --git a/tests/processors/RefactorProcessorTests.ts b/tests/processors/RefactorProcessorTests.ts index cda2ef6..5618122 100644 --- a/tests/processors/RefactorProcessorTests.ts +++ b/tests/processors/RefactorProcessorTests.ts @@ -1,9 +1,10 @@ import { EOL } from "os"; -import { gauge } from "../../src/gen/messages"; import registry from "../../src/models/StepRegistry"; import { StepRegistryEntry } from "../../src/models/StepRegistryEntry"; import { RefactorProcessor } from "../../src/processors/RefactorProcessor"; import { Util } from "../../src/utils/Util"; +import { ProtoStepValue } from "../../src/gen/spec_pb"; +import { RefactorRequest, ParameterPosition } from "../../src/gen/messages_pb"; describe.only('RefactorProcessor', () => { @@ -30,231 +31,243 @@ describe.only('RefactorProcessor', () => { ` console.log("Hello World");` + EOL + ` }` + EOL + `}`; - let processor: RefactorProcessor + let processor: RefactorProcessor; beforeEach(() => { jest.clearAllMocks(); processor = new RefactorProcessor(); - }) + }); describe('.process', () => { - it('should process RefactorRequest when step has mutiple impl and return response with error', async () => { + it('should process RefactorRequest when step has mutiple impl and return response with error', () => { registry.hasMultipleImplementations = jest.fn().mockReturnValue(true); - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.RefactorRequest, - refactorRequest: new gauge.messages.RefactorRequest({ - newStepValue: new gauge.messages.ProtoStepValue({ - stepValue: "foo", - parameterizedStepValue: "foo" - }), - oldStepValue: new gauge.messages.ProtoStepValue({ - stepValue: "bar", - parameterizedStepValue: "bar" - }), - saveChanges: false, - }) - }); - - const resMess = await processor.process(message); - const res = resMess.refactorResponse as gauge.messages.RefactorResponse; - - expect(res.success).toBe(false); - expect(res.error).toBe('Multiple Implementation found for bar'); - }) - - it('should process RefactorRequest for a step and return response', async () => { + + const newStepValue = new ProtoStepValue(); + + newStepValue.setStepvalue("foo"); + newStepValue.setParameterizedstepvalue("foo"); + const oldStepValue = new ProtoStepValue(); + + oldStepValue.setStepvalue("bar"); + oldStepValue.setParameterizedstepvalue("bar"); + const request = new RefactorRequest(); + + request.setNewstepvalue(newStepValue); + request.setOldstepvalue(oldStepValue); + request.setSavechanges(false); + + const res = processor.process(request); + + expect(res.getSuccess()).toBe(false); + expect(res.getError()).toBe('Multiple Implementation found for bar'); + }); + + it('should process RefactorRequest for a step and return response', () => { registry.hasMultipleImplementations = jest.fn().mockReturnValue(false); registry.get = jest.fn().mockReturnValue(new StepRegistryEntry("foo", "foo", "StepImpl.ts")); Util.readFile = jest.fn().mockReturnValue(text1); - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.RefactorRequest, - refactorRequest: new gauge.messages.RefactorRequest({ - oldStepValue: new gauge.messages.ProtoStepValue({ - stepValue: "foo", - parameterizedStepValue: "foo", - }), - newStepValue: new gauge.messages.ProtoStepValue({ - stepValue: "bar", - parameterizedStepValue: "bar", - }), - saveChanges: false, - }) - }); - - const resMess = await processor.process(message); - const res = resMess.refactorResponse as gauge.messages.RefactorResponse; - - expect(res.success).toBe(true); - expect(res.error).toBe(''); - expect(res.filesChanged).toStrictEqual(['StepImpl.ts']); - expect(res.fileChanges.length).toBe(2); - const changes = res.fileChanges.map((c) => { return c as gauge.messages.FileChanges }); - - expect(changes[0].fileName).toBe('StepImpl.ts'); - const diff = changes[0].diffs[0] as gauge.messages.TextDiff; - - expect(diff.content).toBe(`"bar"`); - const span = diff.span as gauge.messages.Span; - - expect(span.start).toBe(3); - expect(span.startChar).toBe(10); - expect(span.end).toBe(3); - expect(span.endChar).toBe(17); - }) - - it('should process RefactorRequest for a step with params and return response', async () => { + + const oldStepValue = new ProtoStepValue(); + + oldStepValue.setStepvalue("foo"); + oldStepValue.setParameterizedstepvalue("foo"); + const newStepValue = new ProtoStepValue(); + + newStepValue.setStepvalue("bar"); + newStepValue.setParameterizedstepvalue("bar"); + const request = new RefactorRequest(); + + request.setNewstepvalue(newStepValue); + request.setOldstepvalue(oldStepValue); + request.setSavechanges(false); + + const res = processor.process(request); + + expect(res.getSuccess()).toBe(true); + expect(res.getError()).toBe(''); + expect(res.getFileschangedList()).toStrictEqual(['StepImpl.ts']); + expect(res.getFilechangesList().length).toBe(2); + const changes = res.getFilechangesList(); + + expect(changes[0].getFilename()).toBe('StepImpl.ts'); + const diff = changes[0].getDiffsList()[0]; + + expect(diff.getContent()).toBe('"bar"'); + const span = diff.getSpan(); + + expect(span?.getStart()).toBe(3); + expect(span?.getStartchar()).toBe(10); + expect(span?.getEnd()).toBe(3); + expect(span?.getEndchar()).toBe(17); + }); + + it('should process RefactorRequest for a step with params and return response', () => { registry.hasMultipleImplementations = jest.fn().mockReturnValue(false); registry.get = jest.fn().mockReturnValue(new StepRegistryEntry("The word has vowels.", "The word {} has {} vowels.", "StepImpl.ts")); Util.readFile = jest.fn().mockReturnValue(text2); Util.writeFile = jest.fn(); - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.RefactorRequest, - refactorRequest: new gauge.messages.RefactorRequest({ - oldStepValue: new gauge.messages.ProtoStepValue({ - stepValue: "The word {} has {} vowels.", - parameterizedStepValue: "The word has vowels.", - parameters: ["word", "number"] - }), - newStepValue: new gauge.messages.ProtoStepValue({ - stepValue: "This English word {} has {} vowels.", - parameterizedStepValue: "This English word has vowels.", - parameters: ["word_en", "numbers"] - }), - paramPositions: [ - new gauge.messages.ParameterPosition({ oldPosition: -1, newPosition: 0 }), - new gauge.messages.ParameterPosition({ oldPosition: -1, newPosition: 1 }) - ], - saveChanges: true, - }) - }); - - const resMess = await processor.process(message); - const res = resMess.refactorResponse as gauge.messages.RefactorResponse; - - expect(res.success).toBe(true); - expect(res.error).toBe(''); - expect(res.filesChanged).toStrictEqual(['StepImpl.ts']); - expect(res.fileChanges.length).toBe(2); - const changes = res.fileChanges.map((c) => { return c as gauge.messages.FileChanges }); - - expect(changes[0].fileName).toBe('StepImpl.ts'); - const diff1 = changes[0].diffs[0] as gauge.messages.TextDiff; - const diff2 = changes[1].diffs[0] as gauge.messages.TextDiff; - - expect(diff1.content).toBe('"This English word has vowels."'); - const span1 = diff1.span as gauge.messages.Span; - - expect(span1.start).toBe(3); - expect(span1.startChar).toBe(10); - expect(span1.end).toBe(3); - expect(span1.endChar).toBe(48); - - expect(diff2.content).toBe("arg0: any, arg1: any"); - const span2 = diff2.span as gauge.messages.Span; - - expect(span2.start).toBe(4); - expect(span2.startChar).toBe(21); - expect(span2.end).toBe(4); - expect(span2.endChar).toBe(43); - }) - - it('should process RefactorRequest for a step with params and return response', async () => { + const oldStepValue = new ProtoStepValue(); + + oldStepValue.setStepvalue("The word {} has {} vowels."); + oldStepValue.setParameterizedstepvalue("The word has vowels."); + oldStepValue.setParametersList(["word", "number"]); + const newStepValue = new ProtoStepValue(); + + newStepValue.setStepvalue("This English word {} has {} vowels."); + newStepValue.setParameterizedstepvalue("This English word has vowels."); + newStepValue.setParametersList(["word_en", "numbers"]); + + const pp1 = new ParameterPosition(); + + pp1.setOldposition(-1); + pp1.setNewposition(0); + const pp2 = new ParameterPosition(); + + pp2.setOldposition(-1); + pp2.setNewposition(1); + + const request = new RefactorRequest(); + + request.setNewstepvalue(newStepValue); + request.setOldstepvalue(oldStepValue); + request.setParampositionsList([pp1, pp2]); + + const res = processor.process(request); + + expect(res.getSuccess()).toBe(true); + expect(res.getError()).toBe(''); + expect(res.getFilechangesList().length).toBe(2); + + const changes = res.getFilechangesList(); + + expect(changes[0].getFilename()).toBe('StepImpl.ts'); + + const diff1 = changes[0].getDiffsList()[0]; + + expect(diff1.getContent()).toBe('"This English word has vowels."'); + + const span1 = diff1.getSpan(); + + expect(span1?.getStart()).toBe(3); + expect(span1?.getStartchar()).toBe(10); + expect(span1?.getEnd()).toBe(3); + expect(span1?.getEndchar()).toBe(48); + + const diff2 = changes[1].getDiffsList()[0]; + + expect(diff2.getContent()).toBe("arg0: any, arg1: any"); + + const span2 = diff2.getSpan(); + + expect(span2?.getStart()).toBe(4); + expect(span2?.getStartchar()).toBe(21); + expect(span2?.getEnd()).toBe(4); + expect(span2?.getEndchar()).toBe(43); + }); + + it('should process RefactorRequest for a step with params and return response', () => { registry.hasMultipleImplementations = jest.fn().mockReturnValue(false); registry.get = jest.fn().mockReturnValue(new StepRegistryEntry("The word has", "The word {} has", "StepImpl.ts")); Util.readFile = jest.fn().mockReturnValue(text3); Util.writeFile = jest.fn(); - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.RefactorRequest, - refactorRequest: new gauge.messages.RefactorRequest({ - oldStepValue: new gauge.messages.ProtoStepValue({ - stepValue: "The word {} has", - parameterizedStepValue: "The word ", - parameters: ["word"] - }), - newStepValue: new gauge.messages.ProtoStepValue({ - stepValue: "This English word {} has {} vowels.", - parameterizedStepValue: "This English word has vowels.", - parameters: ["word", "number"] - }), - paramPositions: [ - new gauge.messages.ParameterPosition({ oldPosition: 0, newPosition: 0 }), - new gauge.messages.ParameterPosition({ oldPosition: -1, newPosition: 1 }) - ], - saveChanges: true, - }) - }); - - const resMess = await processor.process(message); - const res = resMess.refactorResponse as gauge.messages.RefactorResponse; - - expect(res.success).toBe(true); - expect(res.error).toBe(''); - expect(res.filesChanged).toStrictEqual(['StepImpl.ts']); - expect(res.fileChanges.length).toBe(2); - const changes = res.fileChanges.map((c) => { return c as gauge.messages.FileChanges }); - - expect(changes[0].fileName).toBe('StepImpl.ts'); - const diff1 = changes[0].diffs[0] as gauge.messages.TextDiff; - const diff2 = changes[1].diffs[0] as gauge.messages.TextDiff; - - expect(diff1.content).toBe('"This English word has vowels."'); - const span1 = diff1.span as gauge.messages.Span; - - expect(span1.start).toBe(3); - expect(span1.startChar).toBe(10); - expect(span1.end).toBe(3); - expect(span1.endChar).toBe(31); - - expect(diff2.content).toBe("word: any, arg1: any"); - const span2 = diff2.span as gauge.messages.Span; - - expect(span2.start).toBe(4); - expect(span2.startChar).toBe(21); - expect(span2.end).toBe(4); - expect(span2.endChar).toBe(30); - }) - - it('should process RefactorRequest for a step and return response is fails', async () => { + const oldStepValue = new ProtoStepValue(); + + oldStepValue.setStepvalue("The word {} has"); + oldStepValue.setParameterizedstepvalue("The word "); + oldStepValue.setParametersList(["word"]); + const newStepValue = new ProtoStepValue(); + + newStepValue.setStepvalue("This English word {} has {} vowels."); + newStepValue.setParameterizedstepvalue("This English word has vowels."); + newStepValue.setParametersList(["word", "number"]); + + const pp1 = new ParameterPosition(); + + pp1.setOldposition(0); + pp1.setNewposition(0); + const pp2 = new ParameterPosition(); + + pp2.setOldposition(-1); + pp2.setNewposition(1); + + const request = new RefactorRequest(); + + request.setNewstepvalue(newStepValue); + request.setOldstepvalue(oldStepValue); + request.setParampositionsList([pp1, pp2]); + + const res = processor.process(request); + + expect(res.getSuccess()).toBe(true); + expect(res.getError()).toBe(''); + expect(res.getFilechangesList().length).toBe(2); + + const changes = res.getFilechangesList(); + + expect(changes[0].getFilename()).toBe('StepImpl.ts'); + + const diff1 = changes[0].getDiffsList()[0]; + const diff2 = changes[1].getDiffsList()[0]; + + expect(diff1.getContent()).toBe('"This English word has vowels."'); + + const span1 = diff1.getSpan(); + + expect(span1?.getStart()).toBe(3); + expect(span1?.getStartchar()).toBe(10); + expect(span1?.getEnd()).toBe(3); + expect(span1?.getEndchar()).toBe(31); + + expect(diff2.getContent()).toBe("word: any, arg1: any"); + + const span2 = diff2.getSpan(); + + expect(span2?.getStart()).toBe(4); + expect(span2?.getStartchar()).toBe(21); + expect(span2?.getEnd()).toBe(4); + expect(span2?.getEndchar()).toBe(30); + }); + + it('should process RefactorRequest for a step and return response is fails', () => { registry.hasMultipleImplementations = jest.fn().mockReturnValue(false); const error = new Error('fail to refactor'); error.stack = "stacktrace"; - registry.get = jest.fn().mockImplementation(() => { throw error }) - - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.RefactorRequest, - refactorRequest: new gauge.messages.RefactorRequest({ - oldStepValue: new gauge.messages.ProtoStepValue({ - stepValue: "The word {} has", - parameterizedStepValue: "The word ", - parameters: ["word"] - }), - newStepValue: new gauge.messages.ProtoStepValue({ - stepValue: "This English word {} has {} vowels.", - parameterizedStepValue: "This English word has vowels.", - parameters: ["word", "number"] - }), - paramPositions: [ - new gauge.messages.ParameterPosition({ oldPosition: 0, newPosition: 0 }), - new gauge.messages.ParameterPosition({ oldPosition: -1, newPosition: 1 }) - ], - saveChanges: true, - }) - }); - - const resMess = await processor.process(message); - const res = resMess.refactorResponse as gauge.messages.RefactorResponse; - - expect(res.success).toBe(false); - expect(res.error).toBe('fail to refactor' + EOL + "stacktrace"); - }) - }) -}) + registry.get = jest.fn().mockImplementation(() => { throw error; }); + + const oldStepValue = new ProtoStepValue(); + + oldStepValue.setStepvalue("The word {} has"); + oldStepValue.setParameterizedstepvalue("The word "); + oldStepValue.setParametersList(["word"]); + const newStepValue = new ProtoStepValue(); + + newStepValue.setStepvalue("This English word {} has {} vowels."); + newStepValue.setParameterizedstepvalue("This English word has vowels."); + newStepValue.setParametersList(["word", "number"]); + + const pp1 = new ParameterPosition(); + + pp1.setOldposition(0); + pp1.setNewposition(0); + const pp2 = new ParameterPosition(); + + pp2.setOldposition(-1); + pp2.setNewposition(1); + + const request = new RefactorRequest(); + + request.setNewstepvalue(newStepValue); + request.setOldstepvalue(oldStepValue); + request.setParampositionsList([pp1, pp2]); + + const res = processor.process(request); + + expect(res.getSuccess()).toBe(false); + expect(res.getError()).toBe('fail to refactor' + EOL + "stacktrace"); + }); + }); +}); diff --git a/tests/processors/ScenarioExecutionEndingProcessorTests.ts b/tests/processors/ScenarioExecutionEndingProcessorTests.ts index 159b624..abed5e9 100644 --- a/tests/processors/ScenarioExecutionEndingProcessorTests.ts +++ b/tests/processors/ScenarioExecutionEndingProcessorTests.ts @@ -1,4 +1,4 @@ -import { gauge } from '../../src/gen/messages'; +import { ExecutionInfo, ScenarioExecutionStartingRequest, ScenarioInfo, SpecInfo } from '../../src/gen/messages_pb'; import { HookMethod } from '../../src/models/HookMethod'; import hookRegistry from '../../src/models/HookRegistry'; import { HookType } from '../../src/models/HookType'; @@ -6,44 +6,42 @@ import { ScenarioExecutionEndingProcessor } from '../../src/processors/ScenarioE describe('ScenarioExecutionEndingProcessor', () => { - let processor: ScenarioExecutionEndingProcessor + let processor: ScenarioExecutionEndingProcessor; beforeEach(() => { jest.clearAllMocks(); hookRegistry.clear(); process.env.screenshot_on_failure = ""; processor = new ScenarioExecutionEndingProcessor(); - }) + }); describe('.process', () => { it('should process ScenarioExecutionEndingRequest and run AfterScenario hooks', async () => { // eslint-disable-next-line @typescript-eslint/no-empty-function - hookRegistry.addHook(HookType.AfterScenario, new HookMethod(async () => { }, "Hooks.ts")) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ScenarioExecutionEnding, - scenarioExecutionEndingRequest: new gauge.messages.ScenarioExecutionEndingRequest({ - currentExecutionInfo: new gauge.messages.ExecutionInfo({ - currentSpec: new gauge.messages.SpecInfo({ - fileName: "foo.spec", - name: "foo", - tags: ["hello"], - isFailed: false - }), - currentScenario: new gauge.messages.ScenarioInfo({ - name: "scenario", - isFailed: false, - tags: [] - }) - }) - }) - }) - - const resMessage = await processor.process(message); - const res = resMessage.executionStatusResponse as gauge.messages.ExecutionStatusResponse - - expect((res.executionResult as gauge.messages.ProtoExecutionResult).failed).toBe(false); - }) - }) - -}) + hookRegistry.addHook(HookType.AfterScenario, new HookMethod(async () => { }, "Hooks.ts")); + + const currentSpec = new SpecInfo(); + + currentSpec.setName("foo"); + currentSpec.setFilename("foo.spec"); + currentSpec.setTagsList(["hello"]); + currentSpec.setIsfailed(false); + const currentScen = new ScenarioInfo(); + + currentScen.setName("scenario"); + currentScen.setIsfailed(false); + currentScen.setTagsList([]); + const info = new ExecutionInfo(); + + info.setCurrentspec(currentSpec); + info.setCurrentscenario(currentScen); + const req = new ScenarioExecutionStartingRequest(); + + req.setCurrentexecutioninfo(info); + + const res = await processor.process(req); + + expect(res?.getExecutionresult()?.getFailed()).toBe(false); + }); + }); +}); diff --git a/tests/processors/ScenarioExecutionStartingProcessor.ts b/tests/processors/ScenarioExecutionStartingProcessor.ts deleted file mode 100644 index 73ca8f9..0000000 --- a/tests/processors/ScenarioExecutionStartingProcessor.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { gauge } from '../../src/gen/messages'; -import { HookMethod } from '../../src/models/HookMethod'; -import hookRegistry from '../../src/models/HookRegistry'; -import { HookType } from '../../src/models/HookType'; -import { ScenarioExecutionStartingProcessor } from '../../src/processors/ScenarioExecutionStartingProcessor'; -jest.mock('inspector'); - -describe('ScenarioExecutionStartingProcessor', () => { - - let processor: ScenarioExecutionStartingProcessor - - beforeEach(() => { - jest.clearAllMocks(); - hookRegistry.clear(); - process.env.screenshot_on_failure = ""; - processor = new ScenarioExecutionStartingProcessor(); - }) - - describe('.process', () => { - it('should process ScenarioExecutionStartingRequest and run BeforeSuite hooks', async () => { - // eslint-disable-next-line @typescript-eslint/no-empty-function - hookRegistry.addHook(HookType.BeforeScenario, new HookMethod(async () => {}, "Hooks.ts")) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ScenarioExecutionStarting, - scenarioExecutionStartingRequest: new gauge.messages.ScenarioExecutionStartingRequest({ - currentExecutionInfo: new gauge.messages.ExecutionInfo({ - currentSpec: new gauge.messages.SpecInfo({ - name: "Foo", - fileName:"foo.ts", - tags:[] - }), - currentScenario: new gauge.messages.ScenarioInfo({ - name:"scenario", - tags: [] - }) - }) - }) - }) - - const resMessage = await processor.process(message); - const res = resMessage.executionStatusResponse as gauge.messages.ExecutionStatusResponse - - expect((res.executionResult as gauge.messages.ProtoExecutionResult).failed).toBe(false); - }) - }) - -}) diff --git a/tests/processors/ScenarioExecutionStartingProcessorTests.ts b/tests/processors/ScenarioExecutionStartingProcessorTests.ts new file mode 100644 index 0000000..2fc5b5a --- /dev/null +++ b/tests/processors/ScenarioExecutionStartingProcessorTests.ts @@ -0,0 +1,46 @@ +import { ExecutionInfo, ScenarioExecutionStartingRequest, ScenarioInfo, SpecInfo } from '../../src/gen/messages_pb'; +import { HookMethod } from '../../src/models/HookMethod'; +import hookRegistry from '../../src/models/HookRegistry'; +import { HookType } from '../../src/models/HookType'; +import { ScenarioExecutionStartingProcessor } from '../../src/processors/ScenarioExecutionStartingProcessor'; +jest.mock('inspector'); + +describe('ScenarioExecutionStartingProcessor', () => { + + let processor: ScenarioExecutionStartingProcessor; + + beforeEach(() => { + jest.clearAllMocks(); + hookRegistry.clear(); + process.env.screenshot_on_failure = ""; + processor = new ScenarioExecutionStartingProcessor(); + }); + + describe('.process', () => { + it('should process ScenarioExecutionStartingRequest and run BeforeScenariop hooks', async () => { + // eslint-disable-next-line @typescript-eslint/no-empty-function + hookRegistry.addHook(HookType.BeforeScenario, new HookMethod(async () => { }, "Hooks.ts")); + const currentSpec = new SpecInfo(); + + currentSpec.setName("Foo"); + currentSpec.setFilename("foo.ts"); + currentSpec.setTagsList([]); + const currentScen = new ScenarioInfo(); + + currentScen.setName("scenario"); + currentScen.setTagsList([]); + const info = new ExecutionInfo(); + + info.setCurrentspec(currentSpec); + info.setCurrentscenario(currentScen); + const req = new ScenarioExecutionStartingRequest(); + + req.setCurrentexecutioninfo(info); + + const res = (await processor.process(req)).getExecutionresult(); + + expect(res?.getFailed()).toBe(false); + }); + }); + +}); diff --git a/tests/processors/SpecExecutionEndingProcessorTests.ts b/tests/processors/SpecExecutionEndingProcessorTests.ts index dfe74ea..b53e193 100644 --- a/tests/processors/SpecExecutionEndingProcessorTests.ts +++ b/tests/processors/SpecExecutionEndingProcessorTests.ts @@ -1,4 +1,4 @@ -import { gauge } from '../../src/gen/messages'; +import { ExecutionInfo, SpecExecutionEndingRequest, SpecInfo } from '../../src/gen/messages_pb'; import { HookMethod } from '../../src/models/HookMethod'; import hookRegistry from '../../src/models/HookRegistry'; import { HookType } from '../../src/models/HookType'; @@ -6,39 +6,35 @@ import { SpecExecutionEndingProcessor } from '../../src/processors/SpecExecution describe('SpecExecutionEndingProcessor', () => { - let processor: SpecExecutionEndingProcessor + let processor: SpecExecutionEndingProcessor; beforeEach(() => { jest.clearAllMocks(); hookRegistry.clear(); process.env.screenshot_on_failure = ""; processor = new SpecExecutionEndingProcessor(); - }) + }); describe('.process', () => { it('should process SpecExecutionEndingRequest and run AfterSpec hooks', async () => { // eslint-disable-next-line @typescript-eslint/no-empty-function - hookRegistry.addHook(HookType.AfterSpec, new HookMethod(async () => { }, "Hooks.ts")) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ExecutionEnding, - specExecutionEndingRequest: new gauge.messages.SpecExecutionEndingRequest({ - currentExecutionInfo: new gauge.messages.ExecutionInfo({ - currentSpec: new gauge.messages.SpecInfo({ - fileName: "foo.spec", - name: "foo", - tags: ["hello"], - isFailed: false - }) - }) - }) - }) - - const resMessage = await processor.process(message); - const res = resMessage.executionStatusResponse as gauge.messages.ExecutionStatusResponse - - expect((res.executionResult as gauge.messages.ProtoExecutionResult).failed).toBe(false); - }) - }) - -}) + hookRegistry.addHook(HookType.AfterSpec, new HookMethod(async () => { }, "Hooks.ts")); + const currentSpec = new SpecInfo(); + + currentSpec.setName("foo"); + currentSpec.setFilename("foo.spec"); + currentSpec.setTagsList(["hello"]); + const info = new ExecutionInfo(); + + info.setCurrentspec(currentSpec); + const req = new SpecExecutionEndingRequest(); + + req.setCurrentexecutioninfo(info); + + const res = (await processor.process(req)).getExecutionresult(); + + expect(res?.getFailed()).toBe(false); + }); + }); + +}); diff --git a/tests/processors/SpecExecutionStartingProcessorTests.ts b/tests/processors/SpecExecutionStartingProcessorTests.ts index 9b6e715..6021fa3 100644 --- a/tests/processors/SpecExecutionStartingProcessorTests.ts +++ b/tests/processors/SpecExecutionStartingProcessorTests.ts @@ -1,4 +1,5 @@ -import { gauge } from '../../src/gen/messages'; +/* eslint-disable @typescript-eslint/no-empty-function */ +import { ExecutionInfo, SpecExecutionEndingRequest, SpecInfo } from '../../src/gen/messages_pb'; import { HookMethod } from '../../src/models/HookMethod'; import hookRegistry from '../../src/models/HookRegistry'; import { HookType } from '../../src/models/HookType'; @@ -7,37 +8,36 @@ jest.mock('inspector'); describe('SpecExecutionStartingProcessor', () => { - let processor: SpecExecutionStartingProcessor + let processor: SpecExecutionStartingProcessor; beforeEach(() => { jest.clearAllMocks(); hookRegistry.clear(); process.env.screenshot_on_failure = ""; processor = new SpecExecutionStartingProcessor(); - }) + }); describe('.process', () => { it('should process SpecExecutionStartingRequest and run BeforeSuite hooks', async () => { - // eslint-disable-next-line @typescript-eslint/no-empty-function - hookRegistry.addHook(HookType.BeforeSpec, new HookMethod(async () => {}, "Hooks.ts")) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.SpecExecutionStarting, - specExecutionStartingRequest: new gauge.messages.SpecExecutionStartingRequest({ - currentExecutionInfo: new gauge.messages.ExecutionInfo({ - currentSpec: new gauge.messages.SpecInfo({ - name: "Foo", - fileName:"foo.ts" - }) - }) - }) - }) - - const resMessage = await processor.process(message); - const res = resMessage.executionStatusResponse as gauge.messages.ExecutionStatusResponse - - expect((res.executionResult as gauge.messages.ProtoExecutionResult).failed).toBe(false); - }) - }) - -}) + hookRegistry.addHook(HookType.BeforeSpec, new HookMethod(async () => { }, "Hooks.ts")); + hookRegistry.addHook(HookType.AfterSpec, new HookMethod(async () => { }, "Hooks.ts")); + + const currentSpec = new SpecInfo(); + + currentSpec.setName("foo"); + currentSpec.setFilename("foo.spec"); + currentSpec.setTagsList([]); + const info = new ExecutionInfo(); + + info.setCurrentspec(currentSpec); + const req = new SpecExecutionEndingRequest(); + + req.setCurrentexecutioninfo(info); + + const res = (await processor.process(req)).getExecutionresult(); + + expect(res?.getFailed()).toBe(false); + }); + }); + +}); diff --git a/tests/processors/StepExecutionEndingProcessorTests.ts b/tests/processors/StepExecutionEndingProcessorTests.ts index 6603151..4fe77f1 100644 --- a/tests/processors/StepExecutionEndingProcessorTests.ts +++ b/tests/processors/StepExecutionEndingProcessorTests.ts @@ -1,4 +1,4 @@ -import { gauge } from '../../src/gen/messages'; +import { ExecutionInfo, ScenarioInfo, SpecInfo, StepExecutionStartingRequest, StepInfo } from '../../src/gen/messages_pb'; import { HookMethod } from '../../src/models/HookMethod'; import hookRegistry from '../../src/models/HookRegistry'; import { HookType } from '../../src/models/HookType'; @@ -6,46 +6,44 @@ import { StepExecutionEndingProcessor } from '../../src/processors/StepExecution describe('StepExecutionEndingProcessor', () => { - let processor: StepExecutionEndingProcessor + let processor: StepExecutionEndingProcessor; beforeEach(() => { jest.clearAllMocks(); hookRegistry.clear(); process.env.screenshot_on_failure = ""; processor = new StepExecutionEndingProcessor(); - }) + }); describe('.process', () => { it('should process StepExecutionEndingRequest and run AfterStepe hooks', async () => { // eslint-disable-next-line @typescript-eslint/no-empty-function - hookRegistry.addHook(HookType.AfterStep, new HookMethod(async () => { }, "Hooks.ts")) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ScenarioExecutionEnding, - stepExecutionEndingRequest: new gauge.messages.StepExecutionEndingRequest({ - currentExecutionInfo: new gauge.messages.ExecutionInfo({ - currentSpec: new gauge.messages.SpecInfo({ - fileName: "foo.spec", - name: "foo", - tags: ["hello"], - isFailed: false - }), - currentScenario: new gauge.messages.ScenarioInfo({ - name: "scenario", - isFailed: false, - tags: [] - }), - currentStep: new gauge.messages.StepInfo({ - }), - }) - }) - }) - - const resMessage = await processor.process(message); - const res = resMessage.executionStatusResponse as gauge.messages.ExecutionStatusResponse - - expect((res.executionResult as gauge.messages.ProtoExecutionResult).failed).toBe(false); - }) - }) - -}) + hookRegistry.addHook(HookType.AfterStep, new HookMethod(async () => { }, "Hooks.ts")); + + const currentSpec = new SpecInfo(); + + currentSpec.setName("foo"); + currentSpec.setFilename("foo.spec"); + currentSpec.setTagsList(["hello"]); + currentSpec.setIsfailed(false); + const currentScen = new ScenarioInfo(); + + currentScen.setName("scenario"); + currentScen.setIsfailed(false); + currentScen.setTagsList([]); + const info = new ExecutionInfo(); + + info.setCurrentspec(currentSpec); + info.setCurrentscenario(currentScen); + info.setCurrentstep(new StepInfo()); + const req = new StepExecutionStartingRequest(); + + req.setCurrentexecutioninfo(info); + + const res = (await processor.process(req)).getExecutionresult(); + + expect(res?.getFailed()).toBe(false); + }); + }); + +}); diff --git a/tests/processors/StepExecutionProcessorTests.ts b/tests/processors/StepExecutionProcessorTests.ts index 982f278..5dc1b79 100644 --- a/tests/processors/StepExecutionProcessorTests.ts +++ b/tests/processors/StepExecutionProcessorTests.ts @@ -1,5 +1,7 @@ +/* eslint-disable @typescript-eslint/no-empty-function */ import { equal } from 'assert'; -import { gauge } from '../../src/gen/messages'; +import { ExecuteStepRequest } from '../../src/gen/messages_pb'; +import { Parameter, ProtoTable } from '../../src/gen/spec_pb'; import registry from '../../src/models/StepRegistry'; import { StepRegistryEntry } from '../../src/models/StepRegistryEntry'; import { StepExecutionProcessor } from '../../src/processors/StepExecutionProcessor'; @@ -11,85 +13,75 @@ describe('StepExecutionProcessor', () => { beforeEach(() => { jest.clearAllMocks(); - Screenshot.capture = jest.fn() + Screenshot.capture = jest.fn(); processor = new StepExecutionProcessor(); - }) + }); describe('.process', () => { it('should process step execution request when step is unimplemented', async () => { - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ExecuteStep, - executeStepRequest: new gauge.messages.ExecuteStepRequest({ - parsedStepText: "hello", - actualStepText: "hello", - }) - }) - const resMess = await processor.process(message); - const response = resMess.executionStatusResponse as gauge.messages.ExecutionStatusResponse; - const result = response.executionResult as gauge.messages.ProtoExecutionResult; - - expect(result.failed).toBe(true); - expect(result.errorMessage).toBe('Step Implementation not found'); - }) + const req = new ExecuteStepRequest(); + + req.setActualsteptext("foo"); + req.setParsedsteptext("foo"); + const response = await processor.process(req); + const result = response.getExecutionresult(); + + expect(result?.getFailed()).toBe(true); + expect(result?.getErrormessage()).toBe('Step Implementation not found'); + }); it('should process step execution request when there is param lenght mismatch', async () => { const capture = jest.spyOn(Screenshot, "capture"); registry.isImplemented = jest.fn().mockReturnValue(true); - // eslint-disable-next-line @typescript-eslint/no-empty-function - registry.get = jest.fn().mockReturnValue(new StepRegistryEntry('hello', 'hello', 'StepImpl.ts', (a: any) => { })) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ExecuteStep, - executeStepRequest: new gauge.messages.ExecuteStepRequest({ - parsedStepText: "hello", - actualStepText: "hello", - }) - }) - const resMess = await processor.process(message); - const response = resMess.executionStatusResponse as gauge.messages.ExecutionStatusResponse; - const result = response.executionResult as gauge.messages.ProtoExecutionResult; - - expect(result.failed).toBe(true); - expect(result.errorMessage).toBe('Argument length mismatch for `hello`. Actual Count: [1], Expected Count: [0]'); + // eslint-disable-next-line @typescript-eslint/no-unused-vars + registry.get = jest.fn().mockReturnValue(new StepRegistryEntry('hello', 'hello', 'StepImpl.ts', (a: unknown) => { })); + + const req = new ExecuteStepRequest(); + + req.setActualsteptext("hello"); + req.setParsedsteptext("hello"); + + const response = await processor.process(req); + const result = response.getExecutionresult(); + + expect(result?.getFailed()).toBe(true); + expect(result?.getErrormessage()).toBe('Argument length mismatch for `hello`. Actual Count: [1], Expected Count: [0]'); expect(capture).toBeCalled(); - }) + }); it('should process step execution request', async () => { registry.isImplemented = jest.fn().mockReturnValue(true); registry.get = jest.fn().mockReturnValue(new StepRegistryEntry('hello to ', 'hello {} to {}', 'StepImpl.ts', - // eslint-disable-next-line @typescript-eslint/no-empty-function - (arg0: any, arg1: any) => { } + // eslint-disable-next-line @typescript-eslint/no-unused-vars + (arg0: unknown, arg1: unknown) => { } )); - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ExecuteStep, - executeStepRequest: new gauge.messages.ExecuteStepRequest({ - parsedStepText: "hello {} to {}", - actualStepText: "hello to
", - parameters: [ - new gauge.messages.Parameter({ - name: "world", - parameterType: gauge.messages.Parameter.ParameterType.Static, - value: "world" - }), new gauge.messages.Parameter({ - name: "table", - parameterType: gauge.messages.Parameter.ParameterType.Table, - table: new gauge.messages.ProtoTable({}) - }) - ] - }) - }) - const resMess = await processor.process(message); - const response = resMess.executionStatusResponse as gauge.messages.ExecutionStatusResponse; - const result = response.executionResult as gauge.messages.ProtoExecutionResult; - - expect(result.failed).toBe(false); - expect(result.errorMessage).toBe(''); - }) + + const p1 = new Parameter(); + + p1.setName("world"); + p1.setValue("world"); + p1.setParametertype(Parameter.ParameterType.STATIC); + const p2 = new Parameter(); + + p2.setName("table"); + p2.setTable(new ProtoTable()); + p2.setParametertype(Parameter.ParameterType.TABLE); + + const req = new ExecuteStepRequest(); + + req.setParsedsteptext("hello {} to {}"); + req.setActualsteptext("hello to
"); + req.setParametersList([p1, p2]); + + const resMess = await processor.process(req); + const result = resMess.getExecutionresult(); + + expect(result?.getFailed()).toBe(false); + expect(result?.getErrormessage()).toBe(''); + }); it('should process step execution request when step is recoverable', async () => { const capture = jest.spyOn(Screenshot, "capture"); @@ -97,26 +89,53 @@ describe('StepExecutionProcessor', () => { process.env.screenshot_on_failure = 'false'; registry.isImplemented = jest.fn().mockReturnValue(true); - const method = () => { equal(1, 2) }; - - registry.get = jest.fn().mockReturnValue(new StepRegistryEntry('hello', 'hello', 'StepImpl.ts', method)) - registry.getContinueOnFailureFunctions = jest.fn().mockReturnValue(['AssertionError']) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.ExecuteStep, - executeStepRequest: new gauge.messages.ExecuteStepRequest({ - parsedStepText: "hello", - actualStepText: "hello", - }) - }) - const resMess = await processor.process(message); - const response = resMess.executionStatusResponse as gauge.messages.ExecutionStatusResponse; - const result = response.executionResult as gauge.messages.ProtoExecutionResult; - - expect(result.failed).toBe(true); - expect(result.errorMessage).toBe('1 == 2'); - expect(result.recoverableError).toBe(true); + const method = () => { equal(1, 2); }; + + registry.get = jest.fn().mockReturnValue(new StepRegistryEntry('hello', 'hello', 'StepImpl.ts', method)); + registry.getContinueOnFailureFunctions = jest.fn().mockReturnValue(['AssertionError']); + + const req = new ExecuteStepRequest(); + + req.setActualsteptext("hello"); + req.setParsedsteptext("hello"); + + const resMess = await processor.process(req); + + const result = resMess.getExecutionresult(); + + expect(result?.getFailed()).toBe(true); + expect(result?.getErrormessage()).toBe('1 == 2'); + expect(result?.getRecoverableerror()).toBe(true); + expect(capture).toBeCalledTimes(0); + }); + + it('should process step execution request when step fails', async () => { + const capture = jest.spyOn(Screenshot, "capture"); + + process.env.screenshot_on_failure = 'false'; + + registry.isImplemented = jest.fn().mockReturnValue(true); + const method = () => { + const err = new Error("failed"); + + err.stack = undefined; + throw err; + }; + + registry.get = jest.fn().mockReturnValue(new StepRegistryEntry('hello', 'hello', 'StepImpl.ts', method)); + const req = new ExecuteStepRequest(); + + req.setActualsteptext("hello"); + req.setParsedsteptext("hello"); + + const resMess = await processor.process(req); + + const result = resMess.getExecutionresult(); + + expect(result?.getFailed()).toBe(true); + expect(result?.getErrormessage()).toBe('failed'); + expect(result?.getStacktrace()).toBe(''); expect(capture).toBeCalledTimes(0); - }) - }) -}) + }); + }); +}); diff --git a/tests/processors/StepExecutionStartingProcessorTests.ts b/tests/processors/StepExecutionStartingProcessorTests.ts index 096fc9a..5375302 100644 --- a/tests/processors/StepExecutionStartingProcessorTests.ts +++ b/tests/processors/StepExecutionStartingProcessorTests.ts @@ -1,4 +1,4 @@ -import { gauge } from '../../src/gen/messages'; +import { ExecuteStepRequest, ExecutionInfo, ScenarioInfo, SpecInfo, StepExecutionStartingRequest, StepInfo } from '../../src/gen/messages_pb'; import { HookMethod } from '../../src/models/HookMethod'; import hookRegistry from '../../src/models/HookRegistry'; import { HookType } from '../../src/models/HookType'; @@ -7,43 +7,102 @@ jest.mock('inspector'); describe('StepExecutionStartingProcessor', () => { - let processor: StepExecutionStartingProcessor + let processor: StepExecutionStartingProcessor; beforeEach(() => { jest.clearAllMocks(); hookRegistry.clear(); process.env.screenshot_on_failure = ""; processor = new StepExecutionStartingProcessor(); - }) + }); describe('.process', () => { - it('should process StepExecutionStartingRequest and run BeforeSuite hooks', async () => { + + it('should process StepExecutionStartingRequest and run BeforeStep hooks no step in context', async () => { // eslint-disable-next-line @typescript-eslint/no-empty-function - hookRegistry.addHook(HookType.BeforeStep, new HookMethod(async () => {}, "Hooks.ts")) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.StepExecutionStarting, - stepExecutionStartingRequest: new gauge.messages.StepExecutionStartingRequest({ - currentExecutionInfo: new gauge.messages.ExecutionInfo({ - currentSpec: new gauge.messages.SpecInfo({ - name: "Foo", - fileName:"foo.ts", - tags:[] - }), - currentScenario: new gauge.messages.ScenarioInfo({ - name:"scenario", - tags: [] - }), - currentStep: new gauge.messages.StepInfo() - }) - }) - }) - - const resMessage = await processor.process(message); - const res = resMessage.executionStatusResponse as gauge.messages.ExecutionStatusResponse - - expect((res.executionResult as gauge.messages.ProtoExecutionResult).failed).toBe(false); - }) - }) - -}) + hookRegistry.addHook(HookType.BeforeStep, new HookMethod(async () => { }, "Hooks.ts")); + const currentSpec = new SpecInfo(); + + currentSpec.setName("Foo"); + currentSpec.setFilename("foo.ts"); + currentSpec.setTagsList([]); + const currentScen = new ScenarioInfo(); + + currentScen.setName("scenario"); + currentScen.setTagsList([]); + + const info = new ExecutionInfo(); + + info.setCurrentspec(currentSpec); + info.setCurrentscenario(currentScen); + info.setCurrentstep(); + const req = new StepExecutionStartingRequest(); + + req.setCurrentexecutioninfo(info); + + const res = await processor.process(req); + + expect(res?.getExecutionresult()?.getFailed()).toBe(false); + }); + + it('should process StepExecutionStartingRequest and run BeforeStep hooks with step in context', async () => { + // eslint-disable-next-line @typescript-eslint/no-empty-function + hookRegistry.addHook(HookType.BeforeStep, new HookMethod(async () => { }, "Hooks.ts")); + const currentSpec = new SpecInfo(); + + currentSpec.setName("Foo"); + currentSpec.setFilename("foo.ts"); + currentSpec.setTagsList([]); + const currentScen = new ScenarioInfo(); + + currentScen.setName("scenario"); + currentScen.setTagsList([]); + + const currentStep = new StepInfo(); + + currentStep.setStep(new ExecuteStepRequest()); + const info = new ExecutionInfo(); + + info.setCurrentspec(currentSpec); + info.setCurrentscenario(currentScen); + info.setCurrentstep(currentStep); + const req = new StepExecutionStartingRequest(); + + req.setCurrentexecutioninfo(info); + + const res = await processor.process(req); + + expect(res?.getExecutionresult()?.getFailed()).toBe(false); + }); + + it('should process StepExecutionStartingRequest and run BeforeStep hooks with step without request in context', async () => { + // eslint-disable-next-line @typescript-eslint/no-empty-function + hookRegistry.addHook(HookType.BeforeStep, new HookMethod(async () => { }, "Hooks.ts")); + const currentSpec = new SpecInfo(); + + currentSpec.setName("Foo"); + currentSpec.setFilename("foo.ts"); + currentSpec.setTagsList([]); + const currentScen = new ScenarioInfo(); + + currentScen.setName("scenario"); + currentScen.setTagsList([]); + + const currentStep = new StepInfo(); + + const info = new ExecutionInfo(); + + info.setCurrentspec(currentSpec); + info.setCurrentscenario(currentScen); + info.setCurrentstep(currentStep); + const req = new StepExecutionStartingRequest(); + + req.setCurrentexecutioninfo(info); + + const res = await processor.process(req); + + expect(res?.getExecutionresult()?.getFailed()).toBe(false); + }); + }); + +}); diff --git a/tests/processors/StepNameProcessorTests.ts b/tests/processors/StepNameProcessorTests.ts index 1def8e6..c59cede 100644 --- a/tests/processors/StepNameProcessorTests.ts +++ b/tests/processors/StepNameProcessorTests.ts @@ -1,4 +1,4 @@ -import { gauge } from '../../src/gen/messages'; +import { StepNameRequest } from '../../src/gen/messages_pb'; import { Position } from '../../src/models/Position'; import { Range } from '../../src/models/Range'; import registry from '../../src/models/StepRegistry'; @@ -8,54 +8,46 @@ import { StepNameProcessor } from '../../src/processors/StepNameProcessor'; describe('StepNameProcessor', () => { describe('.process', () => { - let processor: StepNameProcessor + let processor: StepNameProcessor; beforeEach(() => { jest.clearAllMocks(); registry.clear(); process.env.screenshot_on_failure = ""; processor = new StepNameProcessor(); - }) - it('should give the step info', async () => { + }); + it('should give the step info', () => { // eslint-disable-next-line @typescript-eslint/no-empty-function - registry.add("foo", new StepRegistryEntry("foo", "foo", "foo.ts", () => { }, new Range(new Position(3, 3), new Position(7, 3)))) - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.StepNameRequest, - stepNameRequest: new gauge.messages.StepNameRequest({ - stepValue: "foo" - }) - }) - - const resMess = await processor.process(message); - const res = resMess.stepNameResponse as gauge.messages.StepNameResponse; - - expect(res.fileName).toBe('foo.ts'); - expect(res.isStepPresent).toBe(true); - expect(res.hasAlias).toBe(false); - expect(res.stepName).toStrictEqual(['foo']); - const span = res.span as gauge.messages.Span; - - expect(span.start).toBe(3) - expect(span.startChar).toBe(3) - expect(span.end).toBe(7); - expect(span.endChar).toBe(3) - }) - - it('should give the step info if step is not implemented', async () => { - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.StepNameRequest, - stepNameRequest: new gauge.messages.StepNameRequest({ - stepValue: "foo" - }) - }) - - const resMess = await processor.process(message); - const res = resMess.stepNameResponse as gauge.messages.StepNameResponse; - - expect(res.isStepPresent).toBe(false); - }) - }) - -}) + registry.add("foo", new StepRegistryEntry("foo", "foo", "foo.ts", () => { }, new Range(new Position(3, 3), new Position(7, 3)))); + + const req = new StepNameRequest(); + + req.setStepvalue("foo"); + + const res = processor.process(req); + + expect(res?.getFilename()).toBe('foo.ts'); + expect(res?.getIssteppresent()).toBe(true); + expect(res?.getHasalias()).toBe(false); + expect(res?.getStepnameList()).toStrictEqual(['foo']); + + const span = res?.getSpan(); + + expect(span?.getStart()).toBe(3); + expect(span?.getStartchar()).toBe(3); + expect(span?.getEnd()).toBe(7); + expect(span?.getEndchar()).toBe(3); + }); + + it('should give the step info if step is not implemented', () => { + const req = new StepNameRequest(); + + req.setStepvalue("foo"); + + const res = processor.process(req); + + expect(res?.getIssteppresent()).toBe(false); + }); + }); + +}); diff --git a/tests/processors/StepNamesProcessorTests.ts b/tests/processors/StepNamesProcessorTests.ts deleted file mode 100644 index 49c4c5b..0000000 --- a/tests/processors/StepNamesProcessorTests.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { gauge } from '../../src/gen/messages'; -import registry from '../../src/models/StepRegistry'; -import { StepNamesProcessor } from '../../src/processors/StepNamesProcessor'; - -describe('StepNamesProcessor', () => { - describe('.process', () => { - - it('should give the all the step texts ', async () => { - registry.getStepTexts = jest.fn().mockReturnValue(['foo', 'bar']); - const processor = new StepNamesProcessor(); - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.StepNameRequest, - stepNamesRequest: new gauge.messages.StepNamesRequest({ - - }) - }) - - const resMess = await processor.process(message); - const res = resMess.stepNamesResponse as gauge.messages.StepNamesResponse; - - expect(res.steps).toStrictEqual(['foo', 'bar']) - jest.clearAllMocks(); - }) - - }) -}) diff --git a/tests/processors/StepPositionsProcessorTests.ts b/tests/processors/StepPositionsProcessorTests.ts index 8786a74..ab4a798 100644 --- a/tests/processors/StepPositionsProcessorTests.ts +++ b/tests/processors/StepPositionsProcessorTests.ts @@ -1,4 +1,4 @@ -import { gauge } from "../../src/gen/messages"; +import { StepPositionsRequest } from "../../src/gen/messages_pb"; import { Position } from "../../src/models/Position"; import { Range } from "../../src/models/Range"; import registry from "../../src/models/StepRegistry"; @@ -6,34 +6,28 @@ import { StepPositionsProcessor } from '../../src/processors/StepPositionsProces describe('StepPositionsProcessor', () => { - let processor: StepPositionsProcessor + let processor: StepPositionsProcessor; beforeEach(() => { jest.clearAllMocks(); registry.clear(); processor = new StepPositionsProcessor(); - }) + }); describe('.prcoess', () => { - it('should StepPositionsRequest and give step positions for a given file', async () => { + it('should StepPositionsRequest and give step positions for a given file', () => { registry.getStepPositions = jest.fn().mockReturnValue([ - {stepValue: 'foo', span: new Range(new Position(3, 3), new Position(5, 3))}, - {stepValue: 'bar', span: new Range(new Position(7, 3), new Position(9, 3))}, - {stepValue: 'foo', span: new Range(new Position(11, 3), new Position(15, 3))} - ]) - const message = new gauge.messages.Message({ - messageId:0, - messageType: gauge.messages.Message.MessageType.StepPositionsRequest, - stepPositionsRequest: new gauge.messages.StepPositionsRequest({ - filePath: "foo.js" - }) - }) + { stepValue: 'foo', span: new Range(new Position(3, 3), new Position(5, 3)) }, + { stepValue: 'bar', span: new Range(new Position(7, 3), new Position(9, 3)) }, + { stepValue: 'foo', span: new Range(new Position(11, 3), new Position(15, 3)) } + ]); + const req = new StepPositionsRequest(); - const resMess = await processor.process(message); - const positions = resMess.stepPositionsResponse as gauge.messages.StepPositionsResponse + req.setFilepath("foo.js"); + const res = (processor.process(req)); - expect(positions.error).toBe(""); - expect(positions.stepPositions.length).toBe(3); - }) - }) + expect(res.getError()).toBe(""); + expect(res.getSteppositionsList().length).toBe(3); + }); + }); -}) +}); diff --git a/tests/processors/StubImplementationCodeProcessorTests.ts b/tests/processors/StubImplementationCodeProcessorTests.ts index 3fad84a..61adea5 100644 --- a/tests/processors/StubImplementationCodeProcessorTests.ts +++ b/tests/processors/StubImplementationCodeProcessorTests.ts @@ -1,5 +1,5 @@ import { EOL } from 'os'; -import { gauge } from '../../src/gen/messages'; +import { StubImplementationCodeRequest } from '../../src/gen/messages_pb'; import hookRegistry from '../../src/models/HookRegistry'; import { StubImplementationCodeProcessor } from '../../src/processors/StubImplementationCodeProcessor'; import { Util } from '../../src/utils/Util'; @@ -14,83 +14,84 @@ describe('StubImplementationCodeProcessor', () => { ` }` + EOL + `}`; - let processor: StubImplementationCodeProcessor + let processor: StubImplementationCodeProcessor; beforeEach(() => { jest.clearAllMocks(); hookRegistry.clear(); process.env.screenshot_on_failure = ""; processor = new StubImplementationCodeProcessor(); - }) + }); describe('.process', () => { - it.only('should process StubImplementationCodeRequest and give the diff when file exists', async () => { + it.only('should process StubImplementationCodeRequest and give the diff when file exists', () => { Util.exists = jest.fn().mockReturnValue(true); Util.readFile = jest.fn().mockReturnValue(text1); const code = `@Step("foo")` + EOL + `public async foo() {` + EOL + ` console.log("Hello World");` + EOL + - `}` - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.StubImplementationCodeRequest, - stubImplementationCodeRequest: new gauge.messages.StubImplementationCodeRequest({ - implementationFilePath: 'foo.ts', - codes: [code] - }) - }) - const resMessage = (await processor.process(message)).fileDiff as gauge.messages.FileDiff; - const diff = resMessage.textDiffs.map(d => d as gauge.messages.TextDiff); - - expect(diff.length).toBe(1); - const span = diff[0].span as gauge.messages.Span; - - expect(span.start).toBe(6); - expect(span.startChar).toBe(0); - expect(span.end).toBe(6); - expect(span.endChar).toBe(0); - const expected = code.split(EOL).map((s) => { return '\t' + s }).join(EOL) + EOL; - - expect(diff[0].content).toBe(expected); - }) - - it.only('should process StubImplementationCodeRequest and give the diff when file does not exists', async () => { + `}`; + + const req = new StubImplementationCodeRequest(); + + req.setImplementationfilepath("foo.ts"); + req.setCodesList([code]); + + const res = processor.process(req); + const diffs = res?.getTextdiffsList(); + + expect(diffs.length).toBe(1); + + const span = diffs[0].getSpan(); + + expect(span?.getStart()).toBe(6); + expect(span?.getStartchar()).toBe(0); + expect(span?.getEnd()).toBe(6); + expect(span?.getEndchar()).toBe(0); + + const expected = code.split(EOL).map((s) => { return '\t' + s; }).join(EOL) + EOL; + + expect(diffs[0].getContent()).toBe(expected); + }); + + it.only('should process StubImplementationCodeRequest and give the diff when file does not exists', () => { Util.exists = jest.fn().mockReturnValue(false); Util.getNewTSFileName = jest.fn().mockReturnValue('StepImpl.ts'); Util.getImplDirs = jest.fn().mockReturnValue([]); - const code = `@Step("foo")` + EOL + + const code1 = `@Step("foo")` + EOL + `public async foo() {` + EOL + ` console.log("Hello World");` + EOL + - `}` - const message = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.StubImplementationCodeRequest, - stubImplementationCodeRequest: new gauge.messages.StubImplementationCodeRequest({ - implementationFilePath: '', - codes: [code] - }) - }) - const resMessage = (await processor.process(message)).fileDiff as gauge.messages.FileDiff; - const diff = resMessage.textDiffs.map(d => d as gauge.messages.TextDiff); - - expect(diff.length).toBe(1); - const span = diff[0].span as gauge.messages.Span; - - expect(span.start).toBe(0); - expect(span.startChar).toBe(0); - expect(span.end).toBe(0); - expect(span.endChar).toBe(0); - const expected = `import { Step } from "gauge-ts";` + EOL + - `export default class StepImpl {` + EOL + - `\t@Step("foo")` + EOL + - `\tpublic async foo() {` + EOL + - `\t console.log("Hello World");` + EOL + - `\t}` + EOL + `}`; - expect(diff[0].content).toBe(expected); + const code2 = `@Step("bar")` + EOL + + `public async foo() {` + EOL + + ` console.log("Hello World");` + EOL + + `}`; + + const req = new StubImplementationCodeRequest(); + + req.setImplementationfilepath("foo.ts"); + req.setCodesList([code1, code2]); + + const res = processor.process(req); + const diffs = res?.getTextdiffsList(); - }) - }) + expect(diffs.length).toBe(1); + + const span = diffs[0].getSpan(); + + expect(span?.getStart()).toBe(0); + expect(span?.getStartchar()).toBe(0); + expect(span?.getEnd()).toBe(0); + expect(span?.getEndchar()).toBe(0); + + const expected = `import { Step } from "gauge-ts";` + EOL + + `export default class StepImpl {` + EOL + + `${code1.split(EOL).map((s) => { return '\t' + s; }).join(EOL)}` + EOL + + `${code2.split(EOL).map((s) => { return '\t' + s; }).join(EOL)}` + EOL + + `}`; -}) + expect(diffs[0].getContent()).toBe(expected); + }); + }); +}); diff --git a/tests/processors/ValidationProcessorTests.ts b/tests/processors/ValidationProcessorTests.ts index 3eaca7a..1395118 100644 --- a/tests/processors/ValidationProcessorTests.ts +++ b/tests/processors/ValidationProcessorTests.ts @@ -1,82 +1,95 @@ -import { gauge } from '../../src/gen/messages'; +import { StepValidateRequest, StepValidateResponse } from '../../src/gen/messages_pb'; +import { ProtoStepValue } from '../../src/gen/spec_pb'; import registry from '../../src/models/StepRegistry'; import { ValidationProcessor } from '../../src/processors/ValidationProcessor'; describe('ValidationProcessor', () => { - let processor: ValidationProcessor + let processor: ValidationProcessor; beforeEach(() => { jest.clearAllMocks(); processor = new ValidationProcessor(); - }) + }); describe('.process', () => { - it('should process StepValidateRequest request', async () => { + it('should process StepValidateRequest request', () => { registry.isImplemented = jest.fn().mockReturnValue(true); - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.StepValidateRequest, - stepValidateRequest: new gauge.messages.StepValidateRequest({ - stepValue: new gauge.messages.ProtoStepValue({ - parameterizedStepValue: "foo", - parameters: [], - stepValue: "foo" - }), - stepText: "foo", - numberOfParameters: 0 - }) - }) - - const res = await processor.process(req); - - expect((res.stepValidateResponse as gauge.messages.StepValidateResponse).isValid).toBe(true); - }) - - it('should process StepValidateRequest request when step is not implemented', async () => { + const stepValue = new ProtoStepValue(); + + stepValue.setParameterizedstepvalue("foo"); + stepValue.setParametersList([]); + stepValue.setStepvalue("foo"); + + const req = new StepValidateRequest(); + + req.setSteptext("foo"); + req.setNumberofparameters(0); + req.setStepvalue(stepValue); + + const res = processor.process(req); + + expect(res.getIsvalid()).toBe(true); + }); + + it('should process StepValidateRequest request when step is not implemented', () => { + registry.isImplemented = jest.fn().mockReturnValue(false); + + const stepValue = new ProtoStepValue(); + + stepValue.setParameterizedstepvalue("hello"); + stepValue.setStepvalue("hello"); + + const req = new StepValidateRequest(); + + req.setSteptext("hello"); + req.setStepvalue(stepValue); + + const res = processor.process(req); + + expect(res.getIsvalid()).toBe(false); + expect(res.getErrortype()).toBe(StepValidateResponse.ErrorType.STEP_IMPLEMENTATION_NOT_FOUND); + }); + + it('should process StepValidateRequest request and give suggestion when step is not implemented', () => { registry.isImplemented = jest.fn().mockReturnValue(false); - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.StepValidateRequest, - stepValidateRequest: new gauge.messages.StepValidateRequest({ - stepValue: new gauge.messages.ProtoStepValue({ - parameterizedStepValue: "hello {}", - parameters: ["world"], - stepValue: "hello " - }), - stepText: "hello ", - numberOfParameters: 1 - }) - }) - - const resMess = await processor.process(req); - const res = (resMess.stepValidateResponse as gauge.messages.StepValidateResponse) - - expect(res.isValid).toBe(false); - expect(res.errorType).toBe(gauge.messages.StepValidateResponse.ErrorType.STEP_IMPLEMENTATION_NOT_FOUND); - }) - - it('should process StepValidateRequest request when step is implemented more than once', async () => { + + const stepValue = new ProtoStepValue(); + + stepValue.setParameterizedstepvalue("say {} to {}"); + stepValue.setParametersList(["hello", "world"]); + stepValue.setStepvalue("say to "); + + const req = new StepValidateRequest(); + + req.setSteptext("say to "); + req.setNumberofparameters(2); + req.setStepvalue(stepValue); + + const res = processor.process(req); + + expect(res.getIsvalid()).toBe(false); + expect(res.getErrortype()).toBe(StepValidateResponse.ErrorType.STEP_IMPLEMENTATION_NOT_FOUND); + }); + + it('should process StepValidateRequest request when step is implemented more than once', () => { registry.isImplemented = jest.fn().mockReturnValue(true); registry.hasMultipleImplementations = jest.fn().mockReturnValue(true); - const req = new gauge.messages.Message({ - messageId: 0, - messageType: gauge.messages.Message.MessageType.StepValidateRequest, - stepValidateRequest: new gauge.messages.StepValidateRequest({ - stepValue: new gauge.messages.ProtoStepValue({ - parameterizedStepValue: "hello {}", - parameters: ["world"], - stepValue: "hello " - }), - stepText: "hello ", - numberOfParameters: 1 - }) - }) - - const resMess = await processor.process(req); - const res = (resMess.stepValidateResponse as gauge.messages.StepValidateResponse) - - expect(res.isValid).toBe(false); - expect(res.errorType).toBe(gauge.messages.StepValidateResponse.ErrorType.DUPLICATE_STEP_IMPLEMENTATION); - }) - }) - -}) + const stepValue = new ProtoStepValue(); + + stepValue.setParameterizedstepvalue("hello {}"); + stepValue.setParametersList(["world"]); + stepValue.setStepvalue("hello "); + + const req = new StepValidateRequest(); + + req.setSteptext("hello "); + req.setNumberofparameters(1); + req.setStepvalue(stepValue); + + const res = processor.process(req); + + expect(res.getIsvalid()).toBe(false); + expect(res.getErrortype()).toBe(StepValidateResponse.ErrorType.DUPLICATE_STEP_IMPLEMENTATION); + }); + }); + +}); diff --git a/tests/public/ExecutionContextTests.ts b/tests/public/ExecutionContextTests.ts new file mode 100644 index 0000000..01f03a9 --- /dev/null +++ b/tests/public/ExecutionContextTests.ts @@ -0,0 +1,53 @@ +import { ExecutionContext } from "../../src/public/context/ExecutionContext"; +import { Scenario } from "../../src/public/context/Scenario"; +import { Specification } from "../../src/public/context/Specification"; +import { StepInfo } from "../../src/public/context/StepInfo"; + +describe('ExecutionContext', () => { + describe('.getCurrentSpec', () => { + it('should give the current spec execution info', () => { + const spec = new Specification("Spec", "foo.ts", false, []); + const context = new ExecutionContext(spec, null, null, null); + + const info = context.getCurrentSpec(); + + expect(info).not.toBeNull(); + expect(info?.getName()).toBe("Spec"); + expect(info?.getFileName()).toBe('foo.ts'); + expect(info?.getIsFailing()).toBeFalsy(); + expect(info?.getTags()).toStrictEqual([]); + }); + }); + + describe('.getCurrentScenario', () => { + it('should give the current scenario execution info', () => { + const scenario = new Scenario("scenario", false, []); + const context = new ExecutionContext(null, scenario, null, null); + + const info = context.getCurrentScenario(); + + expect(info).not.toBeNull(); + expect(info?.getName()).toBe("scenario"); + expect(info?.getIsFailing()).toBeFalsy(); + expect(info?.getTags()).toStrictEqual([]); + }); + }); + + describe('.getCurrentStep', () => { + it('should give the currebnt step execution info', () => { + const step = new StepInfo("step {}", "step ", false, '', ''); + const context = new ExecutionContext(null, null, step, null); + + expect(context.getStacktrace()).toBe(null); + + const info = context.getCurrentStep(); + + expect(info).not.toBeNull(); + expect(info?.getText()).toBe("step {}"); + expect(info?.getDynamicText()).toBe("step "); + expect(info?.getIsFailing()).toBeFalsy(); + expect(info?.getErrorMessage()).toBe(''); + expect(info?.getStacktrace()).toBe(''); + }); + }); +}); \ No newline at end of file diff --git a/tests/public/GaugeTests.ts b/tests/public/GaugeTests.ts index a6f1772..9dcded2 100644 --- a/tests/public/GaugeTests.ts +++ b/tests/public/GaugeTests.ts @@ -1,4 +1,4 @@ -import { Gauge } from '../../src'; +import { Gauge } from '../../src/public/Gauge'; import { Screenshot } from '../../src/screenshot/Screenshot'; import { MessageStore } from '../../src/stores/MessageStore'; import { ScreenshotStore } from '../../src/stores/ScreenshotStore'; @@ -9,8 +9,8 @@ describe('Gauge', () => { Screenshot.capture = jest.fn(); await Gauge.captureScreenshot(); expect(ScreenshotStore.pendingScreenshots().length).toBe(1); - }) - }) + }); + }); describe('writeMessage', () => { it('should capture', () => { @@ -20,6 +20,6 @@ describe('Gauge', () => { expect(m.length).toBe(2); expect(m).toStrictEqual(["Hello", "World"]); - }) - }) -}) \ No newline at end of file + }); + }); +}); \ No newline at end of file diff --git a/tests/public/decoratorsTests.ts b/tests/public/decoratorsTests.ts new file mode 100644 index 0000000..0ba3e80 --- /dev/null +++ b/tests/public/decoratorsTests.ts @@ -0,0 +1,130 @@ +import hookRegistry from "../../src/models/HookRegistry"; +import { HookType } from "../../src/models/HookType"; +import regsitry from "../../src/models/StepRegistry"; +import { AfterScenario, AfterSpec, AfterStep, AfterSuite, BeforeScenario, BeforeSpec, BeforeStep, BeforeSuite, ContinueOnFailure, CustomScreenGrabber, CustomScreenshotWriter, Step } from "../../src/public/decorators"; +import { Screenshot } from "../../src/screenshot/Screenshot"; + +describe('decoators', () => { + beforeEach(() => { + regsitry.clear(); + hookRegistry.clear(); + jest.clearAllMocks(); + }); + + describe('Step', () => { + it('should add step to stepRegistry', () => { + Step("hello")(new Object(), '', { value: () => { console.log('hello'); } }); + expect(regsitry.isImplemented('hello')).toBeTruthy(); + }); + + it('should add step with aliases to stepRegistry', () => { + Step(["hi", "hello"])(new Object(), '', { value: () => { console.log('hello'); } }); + expect(regsitry.isImplemented('hi')).toBeTruthy(); + expect(regsitry.isImplemented('hello')).toBeTruthy(); + }); + }); + + describe('ContinueOnFailure', () => { + it('should add function as recoverable', () => { + const impl = () => { console.log('hello'); }; + + ContinueOnFailure()(new Object(), '', { value: impl }); + expect(regsitry.getContinueOnFailureFunctions(impl).length).toBe(1); + }); + }); + + describe('BeforeSuite', () => { + it('should add before suite hook to hookRegistry', () => { + const impl = () => { console.log('hello'); }; + + BeforeSuite()(new Object(), '', { value: impl }); + expect(hookRegistry.get(HookType.BeforeSuite, []).length).toBe(1); + }); + }); + + describe('AfterSuite', () => { + it('should add After suite hook to hookRegistry', () => { + const impl = () => { console.log('hello'); }; + + AfterSuite()(new Object(), '', { value: impl }); + expect(hookRegistry.get(HookType.AfterSuite, []).length).toBe(1); + }); + }); + + describe('BeforeSpec', () => { + it('should add before Spec hook to hookRegistry', () => { + const impl = () => { console.log('hello'); }; + + BeforeSpec()(new Object(), '', { value: impl }); + expect(hookRegistry.get(HookType.BeforeSpec, []).length).toBe(1); + }); + }); + describe('AfterSpec', () => { + it('should add after spec hook to hookRegistry', () => { + const impl = () => { console.log('hello'); }; + + AfterSpec()(new Object(), '', { value: impl }); + expect(hookRegistry.get(HookType.AfterSpec, []).length).toBe(1); + }); + }); + describe('BeforeScenario', () => { + it('should add before scenario hook to hookRegistry', () => { + const impl = () => { console.log('hello'); }; + + BeforeScenario()(new Object(), '', { value: impl }); + expect(hookRegistry.get(HookType.BeforeScenario, []).length).toBe(1); + }); + }); + describe('AfterScenario', () => { + it('should add After scenario hook to hookRegistry', () => { + const impl = () => { console.log('hello'); }; + + AfterScenario()(new Object(), '', { value: impl }); + expect(hookRegistry.get(HookType.AfterScenario, []).length).toBe(1); + }); + }); + describe('BeforeStep', () => { + it('should add before step hook to hookRegistry', () => { + const impl = () => { console.log('hello'); }; + + BeforeStep()(new Object(), '', { value: impl }); + expect(hookRegistry.get(HookType.BeforeStep, []).length).toBe(1); + }); + }); + + describe('AfterStep', () => { + it('should add after step hook to hookRegistry', () => { + const impl = () => { console.log('hello'); }; + + AfterStep()(new Object(), '', { value: impl }); + expect(hookRegistry.get(HookType.AfterStep, []).length).toBe(1); + }); + }); + + describe('CustomScreenGrabber', () => { + it('should add screen grabber function and give the deprecation warning', async () => { + const impl = () => { return new Uint8Array(); }; + let warning = ''; + + console.warn = jest.fn().mockImplementation((...str) => { + warning = str as string; + }); + CustomScreenGrabber()(new Object(), '', { value: impl }); + const file = await Screenshot.capture(); + + expect(file).toContain('.png'); + expect(warning).not.toBe(''); + }); + }); + + describe('CustomScreenshotWriter', () => { + it('should add screen shot writer', async () => { + const impl = () => { return 'foo.png'; }; + + CustomScreenshotWriter()(new Object(), '', { value: impl }); + const file = await Screenshot.capture(); + + expect(file).toBe('foo.png'); + }); + }); +}); \ No newline at end of file diff --git a/tests/screenshot/ScreenshotTest.ts b/tests/screenshot/ScreenshotTest.ts index 3d79415..799a7a9 100644 --- a/tests/screenshot/ScreenshotTest.ts +++ b/tests/screenshot/ScreenshotTest.ts @@ -1,4 +1,5 @@ import { existsSync, unlinkSync } from 'fs'; +import { tmpdir } from 'os'; import { Screenshot } from '../../src/screenshot/Screenshot'; import { Util } from '../../src/utils/Util'; @@ -8,42 +9,57 @@ describe('Screenshot', () => { describe('.capture', () => { + beforeAll(() => { + process.env.gauge_screenshots_dir = tmpdir(); + }); + afterEach(() => { if (existsSync(screenshotFile)) { unlinkSync(screenshotFile); } - }) + }); it('should capture screen shot and return the buffer', async () => { - process.env.gauge_screenshots_dir = ""; Util.readFileBuffer = jest.fn().mockReturnValue(new ArrayBuffer(10)); Util.spawn = jest.fn(); screenshotFile = await Screenshot.capture(); expect(screenshotFile.endsWith('.png')).toBe(true); - }) + }); it('should return empty buffer if fails to capture screenshot', async () => { Util.readFileBuffer = jest.fn().mockReturnValue(new ArrayBuffer(10)); - Util.spawn = jest.fn().mockImplementation(() => { throw new Error('failed to spawn') }); + Util.spawn = jest.fn().mockImplementation(() => { throw new Error('failed to spawn'); }); console.log = jest.fn(); const file = await Screenshot.capture(); expect(file).toBe(""); - }) + }); it('should capture screenshot using custom screen grabber and write data to file', async () => { - process.env.gauge_screenshots_dir = process.cwd(); - Screenshot.setCustomScreenGrabber(() => { return new Uint8Array(new ArrayBuffer(10)) }) + Screenshot.setCustomScreenGrabber(() => { return new Uint8Array(new ArrayBuffer(10)); }); screenshotFile = await Screenshot.capture(); expect(screenshotFile.endsWith('png')).toBeTruthy(); - }) + }); it('should capture screenshot using async custom screen grabber and write data to file', async () => { - process.env.gauge_screenshots_dir = ""; // eslint-disable-next-line @typescript-eslint/require-await - Screenshot.setCustomScreenGrabber(async () => { return new Uint8Array(new ArrayBuffer(5)) }) + Screenshot.setCustomScreenGrabber(async () => { return new Uint8Array(new ArrayBuffer(5)); }); screenshotFile = await Screenshot.capture(); expect(screenshotFile.endsWith('png')).toBeTruthy(); - }) - }) -}) \ No newline at end of file + }); + + it('should capture screenshot using custom screen writer', async () => { + Screenshot.setCustomScreenshotWriter(() => { return 'foo.png'; }); + screenshotFile = await Screenshot.capture(); + expect(screenshotFile.endsWith('png')).toBeTruthy(); + }); + + it('should capture screenshot using async custom screen writer', async () => { + // eslint-disable-next-line @typescript-eslint/require-await + Screenshot.setCustomScreenshotWriter(async () => { return 'foo.png'; }); + screenshotFile = await Screenshot.capture(); + expect(screenshotFile.endsWith('png')).toBeTruthy(); + }); + + }); +}); \ No newline at end of file diff --git a/tests/stores/DataStoreTests.ts b/tests/stores/DataStoreTests.ts new file mode 100644 index 0000000..05595b1 --- /dev/null +++ b/tests/stores/DataStoreTests.ts @@ -0,0 +1,27 @@ +import { DataStore } from '../../src/stores/DataStore'; + +describe('DataStore', () => { + it('should be able to store and fetch data', () => { + const ds = new DataStore(); + + ds.put('key', 1); + expect(ds.get('key')).toBe(1); + }); + + it('should be able to remove', () => { + const ds = new DataStore(); + + ds.put('key', 1); + ds.remove('key'); + expect(ds.get('key')).toBeUndefined(); + }); + + it('should be able get entries', () => { + const ds = new DataStore(); + + ds.put('key', 1); + const entries = ds.entries(); + + expect(entries.next().value).toStrictEqual(['key', 1]); + }); +}); \ No newline at end of file diff --git a/ts.json b/ts.json index f5376b5..5a86163 100644 --- a/ts.json +++ b/ts.json @@ -34,5 +34,6 @@ "--start" ] }, - "version": "0.0.6" + "version": "0.2.0", + "gRPCSupport": true } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index a5b7e21..556db8f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,9 @@ /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */ "module": "commonjs", /* Specify module code generation: 'none', commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - "lib": ["es2016"], /* Specify library files to be included in the compilation: */ + "lib": [ + "es2016" + ], /* Specify library files to be included in the compilation: */ // "checkJs": true, /* Report errors in .js files. */ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ "declaration": true, @@ -20,7 +22,6 @@ // "importHelpers": true, /* Import emit helpers from 'tslib'. */ // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ - /* Strict Type-Checking Options */ "strict": true, /* Enable all strict type-checking options. */ @@ -28,32 +29,34 @@ // "strictNullChecks": true, /* Enable strict null checks. */ // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ - /* Additional Checks */ // "noUnusedLocals": true, /* Report errors on unused locals. */ // "noUnusedParameters": true, /* Report errors on unused parameters. */ // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ - /* Module Resolution Options */ "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ - // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ - // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ - // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ - // "typeRoots": [], /* List of folders to include type definitions from. */ - // "types": [], /* Type declaration files to be included in compilation. */ - // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ - // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ - + // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ + // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ + // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ + // "typeRoots": [], /* List of folders to include type definitions from. */ + // "types": [], /* Type declaration files to be included in compilation. */ + // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ + // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ /* Source Map Options */ // "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ // "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */ // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ - /* Experimental Options */ - "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ - "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ + "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ + "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ + "plugins": [ + { + "transform": "ts-auto-mock/transformer", + "cacheBetweenTests": false + } + ], }, "include": [ "src/**/*"